@java.lang.Override
  public int getSerializedSize() {
    int size = memoizedSize;
    if (size != -1) return size;

    size = 0;
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
    }
    if (resourceCase_ == 2) {
      size +=
          com.google.protobuf.CodedOutputStream.computeMessageSize(
              2, (com.google.cloud.tpu.v2alpha1.QueuedResource.Tpu) resource_);
    }
    if (tierCase_ == 3) {
      size +=
          com.google.protobuf.CodedOutputStream.computeMessageSize(
              3, (com.google.cloud.tpu.v2alpha1.QueuedResource.BestEffort) tier_);
    }
    if (tierCase_ == 4) {
      size +=
          com.google.protobuf.CodedOutputStream.computeMessageSize(
              4, (com.google.cloud.tpu.v2alpha1.QueuedResource.Guaranteed) tier_);
    }
    if (((bitField0_ & 0x00000002) != 0)) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(5, getQueueingPolicy());
    }
    if (((bitField0_ & 0x00000004) != 0)) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getState());
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(reservationName_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, reservationName_);
    }
    if (tierCase_ == 9) {
      size +=
          com.google.protobuf.CodedOutputStream.computeMessageSize(
              9, (com.google.cloud.tpu.v2alpha1.QueuedResource.Spot) tier_);
    }
    if (((bitField0_ & 0x00000001) != 0)) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(11, getCreateTime());
    }
    size += getUnknownFields().getSerializedSize();
    memoizedSize = size;
    return size;
  }
<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