Class 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.GeneratedMessageV3.Builder<ConnectionInfo.Builder>
    implements ConnectionInfoOrBuilder
     ConnectionInfo singleton resource.
     https://google.aip.dev/156
     
    Protobuf type google.cloud.alloydb.v1beta.ConnectionInfo
    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.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.GeneratedMessageV3.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.GeneratedMessageV3.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
      • clone

        public ConnectionInfo.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<ConnectionInfo.Builder>
      • setField

        public ConnectionInfo.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                               Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<ConnectionInfo.Builder>
      • clearField

        public ConnectionInfo.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<ConnectionInfo.Builder>
      • clearOneof

        public ConnectionInfo.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<ConnectionInfo.Builder>
      • setRepeatedField

        public ConnectionInfo.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                       int index,
                                                       Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ConnectionInfo.Builder>
      • addRepeatedField

        public ConnectionInfo.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                       Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ConnectionInfo.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>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.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 IP address for the Instance.
         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 IP address for the Instance.
         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 IP address for the Instance.
         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 IP address for the Instance.
         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 IP address for the Instance.
         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.
      • 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=894
         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=894
         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=894
         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=894
         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=894
         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=894
         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=894
         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=894
         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=894
         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.
      • setUnknownFields

        public final ConnectionInfo.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ConnectionInfo.Builder>
      • mergeUnknownFields

        public final ConnectionInfo.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ConnectionInfo.Builder>