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

    size = 0;
    if (type_ != com.google.cloud.tpu.v2.AcceleratorConfig.Type.TYPE_UNSPECIFIED.getNumber()) {
      size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, type_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(topology_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, topology_);
    }
    size += getUnknownFields().getSerializedSize();
    memoizedSize = size;
    return size;
  }
<pre>
Required. Topology of TPU in chips.
</pre>

<code>string topology = 2 [(.google.api.field_behavior) = REQUIRED];</code>

@return The bytes for topology.
java-tpu/proto-google-cloud-tpu-v2/src/main/java/com/google/cloud/tpu/v2/AcceleratorConfig.java