Class ConnectionInfo.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ConnectionInfo.Builder>
com.google.cloud.alloydb.v1beta.ConnectionInfo.Builder
All Implemented Interfaces:
ConnectionInfoOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
ConnectionInfo

public static final class ConnectionInfo.Builder extends com.google.protobuf.GeneratedMessage.Builder<ConnectionInfo.Builder> implements ConnectionInfoOrBuilder
 ConnectionInfo singleton resource.
 https://google.aip.dev/156
 
Protobuf type google.cloud.alloydb.v1beta.ConnectionInfo
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<ConnectionInfo.Builder>
    • clear

      public ConnectionInfo.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<ConnectionInfo.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<ConnectionInfo.Builder>
    • getDefaultInstanceForType

      public ConnectionInfo getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public ConnectionInfo build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public ConnectionInfo buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public ConnectionInfo.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ConnectionInfo.Builder>
    • mergeFrom

      public ConnectionInfo.Builder mergeFrom(ConnectionInfo other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<ConnectionInfo.Builder>
    • mergeFrom

      public ConnectionInfo.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ConnectionInfo.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       The name of the ConnectionInfo singleton resource, e.g.:
       projects/{project}/locations/{location}/clusters/*/instances/*/connectionInfo
       This field currently has no semantic meaning.
       
      string name = 1;
      Specified by:
      getName in interface ConnectionInfoOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       The name of the ConnectionInfo singleton resource, e.g.:
       projects/{project}/locations/{location}/clusters/*/instances/*/connectionInfo
       This field currently has no semantic meaning.
       
      string name = 1;
      Specified by:
      getNameBytes in interface ConnectionInfoOrBuilder
      Returns:
      The bytes for name.
    • setName

      public ConnectionInfo.Builder setName(String value)
       The name of the ConnectionInfo singleton resource, e.g.:
       projects/{project}/locations/{location}/clusters/*/instances/*/connectionInfo
       This field currently has no semantic meaning.
       
      string name = 1;
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public ConnectionInfo.Builder clearName()
       The name of the ConnectionInfo singleton resource, e.g.:
       projects/{project}/locations/{location}/clusters/*/instances/*/connectionInfo
       This field currently has no semantic meaning.
       
      string name = 1;
      Returns:
      This builder for chaining.
    • setNameBytes

      public ConnectionInfo.Builder setNameBytes(com.google.protobuf.ByteString value)
       The name of the ConnectionInfo singleton resource, e.g.:
       projects/{project}/locations/{location}/clusters/*/instances/*/connectionInfo
       This field currently has no semantic meaning.
       
      string name = 1;
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getIpAddress

      public String getIpAddress()
       Output only. The private network IP address for the Instance. This is the
       default IP for the instance and is always created (even if enable_public_ip
       is set). This is the connection endpoint for an end-user application.
       
      string ip_address = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getIpAddress in interface ConnectionInfoOrBuilder
      Returns:
      The ipAddress.
    • getIpAddressBytes

      public com.google.protobuf.ByteString getIpAddressBytes()
       Output only. The private network IP address for the Instance. This is the
       default IP for the instance and is always created (even if enable_public_ip
       is set). This is the connection endpoint for an end-user application.
       
      string ip_address = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getIpAddressBytes in interface ConnectionInfoOrBuilder
      Returns:
      The bytes for ipAddress.
    • setIpAddress

      public ConnectionInfo.Builder setIpAddress(String value)
       Output only. The private network IP address for the Instance. This is the
       default IP for the instance and is always created (even if enable_public_ip
       is set). This is the connection endpoint for an end-user application.
       
      string ip_address = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The ipAddress to set.
      Returns:
      This builder for chaining.
    • clearIpAddress

      public ConnectionInfo.Builder clearIpAddress()
       Output only. The private network IP address for the Instance. This is the
       default IP for the instance and is always created (even if enable_public_ip
       is set). This is the connection endpoint for an end-user application.
       
      string ip_address = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setIpAddressBytes

      public ConnectionInfo.Builder setIpAddressBytes(com.google.protobuf.ByteString value)
       Output only. The private network IP address for the Instance. This is the
       default IP for the instance and is always created (even if enable_public_ip
       is set). This is the connection endpoint for an end-user application.
       
      string ip_address = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for ipAddress to set.
      Returns:
      This builder for chaining.
    • getPublicIpAddress

      public String getPublicIpAddress()
       Output only. The public IP addresses for the Instance. This is available
       ONLY when enable_public_ip is set. This is the connection endpoint for an
       end-user application.
       
      string public_ip_address = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }
      Specified by:
      getPublicIpAddress in interface ConnectionInfoOrBuilder
      Returns:
      The publicIpAddress.
    • getPublicIpAddressBytes

      public com.google.protobuf.ByteString getPublicIpAddressBytes()
       Output only. The public IP addresses for the Instance. This is available
       ONLY when enable_public_ip is set. This is the connection endpoint for an
       end-user application.
       
      string public_ip_address = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }
      Specified by:
      getPublicIpAddressBytes in interface ConnectionInfoOrBuilder
      Returns:
      The bytes for publicIpAddress.
    • setPublicIpAddress

      public ConnectionInfo.Builder setPublicIpAddress(String value)
       Output only. The public IP addresses for the Instance. This is available
       ONLY when enable_public_ip is set. This is the connection endpoint for an
       end-user application.
       
      string public_ip_address = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }
      Parameters:
      value - The publicIpAddress to set.
      Returns:
      This builder for chaining.
    • clearPublicIpAddress

      public ConnectionInfo.Builder clearPublicIpAddress()
       Output only. The public IP addresses for the Instance. This is available
       ONLY when enable_public_ip is set. This is the connection endpoint for an
       end-user application.
       
      string public_ip_address = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }
      Returns:
      This builder for chaining.
    • setPublicIpAddressBytes

      public ConnectionInfo.Builder setPublicIpAddressBytes(com.google.protobuf.ByteString value)
       Output only. The public IP addresses for the Instance. This is available
       ONLY when enable_public_ip is set. This is the connection endpoint for an
       end-user application.
       
      string public_ip_address = 5 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.field_info) = { ... }
      Parameters:
      value - The bytes for publicIpAddress to set.
      Returns:
      This builder for chaining.
    • getPemCertificateChainList

      @Deprecated public com.google.protobuf.ProtocolStringList getPemCertificateChainList()
      Deprecated.
      google.cloud.alloydb.v1beta.ConnectionInfo.pem_certificate_chain is deprecated. See google/cloud/alloydb/v1beta/resources.proto;l=1382
       Output only. The pem-encoded chain that may be used to verify the X.509
       certificate. Expected to be in issuer-to-root order according to RFC 5246.
       
      repeated string pem_certificate_chain = 3 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getPemCertificateChainList in interface ConnectionInfoOrBuilder
      Returns:
      A list containing the pemCertificateChain.
    • getPemCertificateChainCount

      @Deprecated public int getPemCertificateChainCount()
      Deprecated.
      google.cloud.alloydb.v1beta.ConnectionInfo.pem_certificate_chain is deprecated. See google/cloud/alloydb/v1beta/resources.proto;l=1382
       Output only. The pem-encoded chain that may be used to verify the X.509
       certificate. Expected to be in issuer-to-root order according to RFC 5246.
       
      repeated string pem_certificate_chain = 3 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getPemCertificateChainCount in interface ConnectionInfoOrBuilder
      Returns:
      The count of pemCertificateChain.
    • getPemCertificateChain

      @Deprecated public String getPemCertificateChain(int index)
      Deprecated.
      google.cloud.alloydb.v1beta.ConnectionInfo.pem_certificate_chain is deprecated. See google/cloud/alloydb/v1beta/resources.proto;l=1382
       Output only. The pem-encoded chain that may be used to verify the X.509
       certificate. Expected to be in issuer-to-root order according to RFC 5246.
       
      repeated string pem_certificate_chain = 3 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getPemCertificateChain in interface ConnectionInfoOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The pemCertificateChain at the given index.
    • getPemCertificateChainBytes

      @Deprecated public com.google.protobuf.ByteString getPemCertificateChainBytes(int index)
      Deprecated.
      google.cloud.alloydb.v1beta.ConnectionInfo.pem_certificate_chain is deprecated. See google/cloud/alloydb/v1beta/resources.proto;l=1382
       Output only. The pem-encoded chain that may be used to verify the X.509
       certificate. Expected to be in issuer-to-root order according to RFC 5246.
       
      repeated string pem_certificate_chain = 3 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getPemCertificateChainBytes in interface ConnectionInfoOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the pemCertificateChain at the given index.
    • setPemCertificateChain

      @Deprecated public ConnectionInfo.Builder setPemCertificateChain(int index, String value)
      Deprecated.
      google.cloud.alloydb.v1beta.ConnectionInfo.pem_certificate_chain is deprecated. See google/cloud/alloydb/v1beta/resources.proto;l=1382
       Output only. The pem-encoded chain that may be used to verify the X.509
       certificate. Expected to be in issuer-to-root order according to RFC 5246.
       
      repeated string pem_certificate_chain = 3 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      index - The index to set the value at.
      value - The pemCertificateChain to set.
      Returns:
      This builder for chaining.
    • addPemCertificateChain

      @Deprecated public ConnectionInfo.Builder addPemCertificateChain(String value)
      Deprecated.
      google.cloud.alloydb.v1beta.ConnectionInfo.pem_certificate_chain is deprecated. See google/cloud/alloydb/v1beta/resources.proto;l=1382
       Output only. The pem-encoded chain that may be used to verify the X.509
       certificate. Expected to be in issuer-to-root order according to RFC 5246.
       
      repeated string pem_certificate_chain = 3 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The pemCertificateChain to add.
      Returns:
      This builder for chaining.
    • addAllPemCertificateChain

      @Deprecated public ConnectionInfo.Builder addAllPemCertificateChain(Iterable<String> values)
      Deprecated.
      google.cloud.alloydb.v1beta.ConnectionInfo.pem_certificate_chain is deprecated. See google/cloud/alloydb/v1beta/resources.proto;l=1382
       Output only. The pem-encoded chain that may be used to verify the X.509
       certificate. Expected to be in issuer-to-root order according to RFC 5246.
       
      repeated string pem_certificate_chain = 3 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      values - The pemCertificateChain to add.
      Returns:
      This builder for chaining.
    • clearPemCertificateChain

      @Deprecated public ConnectionInfo.Builder clearPemCertificateChain()
      Deprecated.
      google.cloud.alloydb.v1beta.ConnectionInfo.pem_certificate_chain is deprecated. See google/cloud/alloydb/v1beta/resources.proto;l=1382
       Output only. The pem-encoded chain that may be used to verify the X.509
       certificate. Expected to be in issuer-to-root order according to RFC 5246.
       
      repeated string pem_certificate_chain = 3 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • addPemCertificateChainBytes

      @Deprecated public ConnectionInfo.Builder addPemCertificateChainBytes(com.google.protobuf.ByteString value)
      Deprecated.
      google.cloud.alloydb.v1beta.ConnectionInfo.pem_certificate_chain is deprecated. See google/cloud/alloydb/v1beta/resources.proto;l=1382
       Output only. The pem-encoded chain that may be used to verify the X.509
       certificate. Expected to be in issuer-to-root order according to RFC 5246.
       
      repeated string pem_certificate_chain = 3 [deprecated = true, (.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes of the pemCertificateChain to add.
      Returns:
      This builder for chaining.
    • getInstanceUid

      public String getInstanceUid()
       Output only. The unique ID of the Instance.
       
      string instance_uid = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getInstanceUid in interface ConnectionInfoOrBuilder
      Returns:
      The instanceUid.
    • getInstanceUidBytes

      public com.google.protobuf.ByteString getInstanceUidBytes()
       Output only. The unique ID of the Instance.
       
      string instance_uid = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getInstanceUidBytes in interface ConnectionInfoOrBuilder
      Returns:
      The bytes for instanceUid.
    • setInstanceUid

      public ConnectionInfo.Builder setInstanceUid(String value)
       Output only. The unique ID of the Instance.
       
      string instance_uid = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The instanceUid to set.
      Returns:
      This builder for chaining.
    • clearInstanceUid

      public ConnectionInfo.Builder clearInstanceUid()
       Output only. The unique ID of the Instance.
       
      string instance_uid = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setInstanceUidBytes

      public ConnectionInfo.Builder setInstanceUidBytes(com.google.protobuf.ByteString value)
       Output only. The unique ID of the Instance.
       
      string instance_uid = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for instanceUid to set.
      Returns:
      This builder for chaining.
    • getPscDnsName

      public String getPscDnsName()
       Output only. The DNS name to use with PSC for the Instance.
       
      string psc_dns_name = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getPscDnsName in interface ConnectionInfoOrBuilder
      Returns:
      The pscDnsName.
    • getPscDnsNameBytes

      public com.google.protobuf.ByteString getPscDnsNameBytes()
       Output only. The DNS name to use with PSC for the Instance.
       
      string psc_dns_name = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getPscDnsNameBytes in interface ConnectionInfoOrBuilder
      Returns:
      The bytes for pscDnsName.
    • setPscDnsName

      public ConnectionInfo.Builder setPscDnsName(String value)
       Output only. The DNS name to use with PSC for the Instance.
       
      string psc_dns_name = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The pscDnsName to set.
      Returns:
      This builder for chaining.
    • clearPscDnsName

      public ConnectionInfo.Builder clearPscDnsName()
       Output only. The DNS name to use with PSC for the Instance.
       
      string psc_dns_name = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Returns:
      This builder for chaining.
    • setPscDnsNameBytes

      public ConnectionInfo.Builder setPscDnsNameBytes(com.google.protobuf.ByteString value)
       Output only. The DNS name to use with PSC for the Instance.
       
      string psc_dns_name = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Parameters:
      value - The bytes for pscDnsName to set.
      Returns:
      This builder for chaining.