hlo_pb2
Hi @never-to-never ,

You can use bazel build command some thing like `bazel build //<target_file>` then include it in your project. Please refer bazel [documentation](https://bazel.build/run/build#specifying-build-targets) for more details.

Hope it helps. Thanks! This issue is stale because it has been open for 7 days with no activity. It will be closed if no further activity occurs. Thank you. This issue was closed because it has been inactive for 7 days since being marked as stale. Please reopen if you'd like to work on this further. Are you satisfied with the resolution of your issue?
<a href="https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=Yes&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/62312">Yes</a>
<a href="https://docs.google.com/forms/d/e/1FAIpQLSfaP12TRhd9xSxjXZjcZFNXPGk4kc1-qMdv3gc6bEP90vY1ew/viewform?entry.85265664=No&entry.2137816233=https://github.com/tensorflow/tensorflow/issues/62312">No</a>

### Issue type

Build/Install

### Have you reproduced the bug with TensorFlow Nightly?

No

### Source

source

### TensorFlow version

tf2.8

### Custom code

Yes

### OS platform and distribution

_No response_

### Mobile device

_No response_

### Python version

_No response_

### Bazel version

_No response_

### GCC/compiler version

_No response_

### CUDA/cuDNN version

_No response_

### GPU model and memory

_No response_

### Current behavior?

My program relies on a file such as hlo_pb2, which is imported from tensorflow.compiler.xla.service import hlo_pb2. This brings up a problem, I need to install tensorflow. But I don’t want to install the entire tensorflow when deploying. Is there any way to get hlo_pb2 by compiling certain files in xla?

### Standalone code to reproduce the issue

```shell
I don't know how to do it, please help
```


### Relevant log output

_No response_