@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 (((bitField0_ & 0x00000001) != 0)) {
      output.writeMessage(2, getCreateTime());
    }
    if (((bitField0_ & 0x00000002) != 0)) {
      output.writeMessage(3, getUpdateTime());
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(hostname_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 5, hostname_);
    }
    if (protocol_
        != com.google.cloud.vmwareengine.v1.LoggingServer.Protocol.PROTOCOL_UNSPECIFIED
            .getNumber()) {
      output.writeEnum(6, protocol_);
    }
    if (port_ != 0) {
      output.writeInt32(7, port_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uid_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 8, uid_);
    }
    if (sourceType_
        != com.google.cloud.vmwareengine.v1.LoggingServer.SourceType.SOURCE_TYPE_UNSPECIFIED
            .getNumber()) {
      output.writeEnum(10, sourceType_);
    }
    getUnknownFields().writeTo(output);
  }
<pre>
Output only. System-generated unique identifier for the resource.
</pre>

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

@return The bytes for uid.
java-vmwareengine/proto-google-cloud-vmwareengine-v1/src/main/java/com/google/cloud/vmwareengine/v1/LoggingServer.java