@java.lang.Override
  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pscConnectionId_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 1, pscConnectionId_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(ipAddress_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 2, ipAddress_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(forwardingRule_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 3, forwardingRule_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 4, projectId_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(network_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 5, network_);
    }
    if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(serviceAttachment_)) {
      com.google.protobuf.GeneratedMessageV3.writeString(output, 6, serviceAttachment_);
    }
    if (pscConnectionStatus_
        != com.google.cloud.memorystore.v1beta.PscConnectionStatus.PSC_CONNECTION_STATUS_UNSPECIFIED
            .getNumber()) {
      output.writeEnum(7, pscConnectionStatus_);
    }
    if (connectionType_
        != com.google.cloud.memorystore.v1beta.ConnectionType.CONNECTION_TYPE_UNSPECIFIED
            .getNumber()) {
      output.writeEnum(8, connectionType_);
    }
    if (portsCase_ == 9) {
      output.writeInt32(9, (int) ((java.lang.Integer) ports_));
    }
    getUnknownFields().writeTo(output);
  }
<pre>
Output only. Type of the PSC connection.
</pre>

<code>
.google.cloud.memorystore.v1beta.ConnectionType connection_type = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];
</code>

@return The connectionType.
java-valkey/proto-google-cloud-valkey-v1beta/src/main/java/com/google/cloud/memorystore/v1beta/PscAutoConnection.java