@java.lang.Override
  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
    }
    if (resourceCase_ == 2) {
      output.writeMessage(2, (com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu) resource_);
    }
    if (tierCase_ == 3) {
      output.writeMessage(3, (com.google.cloud.tpu.v2alpha1.QueuedResource.BestEffort) tier_);
    }
    if (tierCase_ == 4) {
      output.writeMessage(4, (com.google.cloud.tpu.v2alpha1.QueuedResource.Guaranteed) tier_);
    }
    if (((bitField0_ & 0x00000002) != 0)) {
      output.writeMessage(5, getQueueingPolicy());
    }
    if (((bitField0_ & 0x00000004) != 0)) {
      output.writeMessage(6, getState());
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(reservationName_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 8, reservationName_);
    }
    if (tierCase_ == 9) {
      output.writeMessage(9, (com.google.cloud.tpu.v2alpha1.QueuedResource.Spot) tier_);
    }
    if (((bitField0_ & 0x00000001) != 0)) {
      output.writeMessage(11, getCreateTime());
    }
    getUnknownFields().writeTo(output);
  }
<pre>
Name of the reservation in which the resource should be provisioned.
Format: projects/{project}/locations/{zone}/reservations/{reservation}
</pre>

<code>string reservation_name = 8;</code>

@return The bytes for reservationName.
java-tpu/proto-google-cloud-tpu-v2alpha1/src/main/java/com/google/cloud/tpu/v2alpha1/QueuedResource.java