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

    size = 0;
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(predictHttpUri_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, predictHttpUri_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(explainHttpUri_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, explainHttpUri_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(healthHttpUri_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, healthHttpUri_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAttachment_)) {
      size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, serviceAttachment_);
    }
    size += getUnknownFields().getSerializedSize();
    memoizedSize = size;
    return size;
  }
<pre>
Output only. The name of the service attachment resource. Populated if
private service connect is enabled.
</pre>

<code>string service_attachment = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];</code>

@return The bytes for serviceAttachment.
java-vertexai/proto-google-cloud-vertexai-v1/src/main/java/com/google/cloud/vertexai/api/PrivateEndpoints.java