Class SqlIpConfig.Builder

  • All Implemented Interfaces:
    SqlIpConfigOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    SqlIpConfig

    public static final class SqlIpConfig.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<SqlIpConfig.Builder>
    implements SqlIpConfigOrBuilder
     IP Management configuration.
     
    Protobuf type google.cloud.clouddms.v1.SqlIpConfig
    • 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<SqlIpConfig.Builder>
      • clear

        public SqlIpConfig.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<SqlIpConfig.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<SqlIpConfig.Builder>
      • getDefaultInstanceForType

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

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

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

        public SqlIpConfig.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<SqlIpConfig.Builder>
      • setField

        public SqlIpConfig.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<SqlIpConfig.Builder>
      • clearField

        public SqlIpConfig.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<SqlIpConfig.Builder>
      • clearOneof

        public SqlIpConfig.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<SqlIpConfig.Builder>
      • setRepeatedField

        public SqlIpConfig.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<SqlIpConfig.Builder>
      • addRepeatedField

        public SqlIpConfig.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<SqlIpConfig.Builder>
      • mergeFrom

        public SqlIpConfig.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<SqlIpConfig.Builder>
      • isInitialized

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

        public SqlIpConfig.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<SqlIpConfig.Builder>
        Throws:
        IOException
      • hasEnableIpv4

        public boolean hasEnableIpv4()
         Whether the instance should be assigned an IPv4 address or not.
         
        .google.protobuf.BoolValue enable_ipv4 = 1;
        Specified by:
        hasEnableIpv4 in interface SqlIpConfigOrBuilder
        Returns:
        Whether the enableIpv4 field is set.
      • getEnableIpv4

        public com.google.protobuf.BoolValue getEnableIpv4()
         Whether the instance should be assigned an IPv4 address or not.
         
        .google.protobuf.BoolValue enable_ipv4 = 1;
        Specified by:
        getEnableIpv4 in interface SqlIpConfigOrBuilder
        Returns:
        The enableIpv4.
      • setEnableIpv4

        public SqlIpConfig.Builder setEnableIpv4​(com.google.protobuf.BoolValue value)
         Whether the instance should be assigned an IPv4 address or not.
         
        .google.protobuf.BoolValue enable_ipv4 = 1;
      • setEnableIpv4

        public SqlIpConfig.Builder setEnableIpv4​(com.google.protobuf.BoolValue.Builder builderForValue)
         Whether the instance should be assigned an IPv4 address or not.
         
        .google.protobuf.BoolValue enable_ipv4 = 1;
      • mergeEnableIpv4

        public SqlIpConfig.Builder mergeEnableIpv4​(com.google.protobuf.BoolValue value)
         Whether the instance should be assigned an IPv4 address or not.
         
        .google.protobuf.BoolValue enable_ipv4 = 1;
      • clearEnableIpv4

        public SqlIpConfig.Builder clearEnableIpv4()
         Whether the instance should be assigned an IPv4 address or not.
         
        .google.protobuf.BoolValue enable_ipv4 = 1;
      • getEnableIpv4Builder

        public com.google.protobuf.BoolValue.Builder getEnableIpv4Builder()
         Whether the instance should be assigned an IPv4 address or not.
         
        .google.protobuf.BoolValue enable_ipv4 = 1;
      • getEnableIpv4OrBuilder

        public com.google.protobuf.BoolValueOrBuilder getEnableIpv4OrBuilder()
         Whether the instance should be assigned an IPv4 address or not.
         
        .google.protobuf.BoolValue enable_ipv4 = 1;
        Specified by:
        getEnableIpv4OrBuilder in interface SqlIpConfigOrBuilder
      • getPrivateNetwork

        public String getPrivateNetwork()
         The resource link for the VPC network from which the Cloud SQL instance is
         accessible for private IP. For example,
         `projects/myProject/global/networks/default`. This setting can
         be updated, but it cannot be removed after it is set.
         
        string private_network = 2;
        Specified by:
        getPrivateNetwork in interface SqlIpConfigOrBuilder
        Returns:
        The privateNetwork.
      • getPrivateNetworkBytes

        public com.google.protobuf.ByteString getPrivateNetworkBytes()
         The resource link for the VPC network from which the Cloud SQL instance is
         accessible for private IP. For example,
         `projects/myProject/global/networks/default`. This setting can
         be updated, but it cannot be removed after it is set.
         
        string private_network = 2;
        Specified by:
        getPrivateNetworkBytes in interface SqlIpConfigOrBuilder
        Returns:
        The bytes for privateNetwork.
      • setPrivateNetwork

        public SqlIpConfig.Builder setPrivateNetwork​(String value)
         The resource link for the VPC network from which the Cloud SQL instance is
         accessible for private IP. For example,
         `projects/myProject/global/networks/default`. This setting can
         be updated, but it cannot be removed after it is set.
         
        string private_network = 2;
        Parameters:
        value - The privateNetwork to set.
        Returns:
        This builder for chaining.
      • clearPrivateNetwork

        public SqlIpConfig.Builder clearPrivateNetwork()
         The resource link for the VPC network from which the Cloud SQL instance is
         accessible for private IP. For example,
         `projects/myProject/global/networks/default`. This setting can
         be updated, but it cannot be removed after it is set.
         
        string private_network = 2;
        Returns:
        This builder for chaining.
      • setPrivateNetworkBytes

        public SqlIpConfig.Builder setPrivateNetworkBytes​(com.google.protobuf.ByteString value)
         The resource link for the VPC network from which the Cloud SQL instance is
         accessible for private IP. For example,
         `projects/myProject/global/networks/default`. This setting can
         be updated, but it cannot be removed after it is set.
         
        string private_network = 2;
        Parameters:
        value - The bytes for privateNetwork to set.
        Returns:
        This builder for chaining.
      • getAllocatedIpRange

        public String getAllocatedIpRange()
         Optional. The name of the allocated IP address range for the private IP
         Cloud SQL instance. This name refers to an already allocated IP range
         address. If set, the instance IP address will be created in the allocated
         range. Note that this IP address range can't be modified after the instance
         is created. If you change the VPC when configuring connectivity settings
         for the migration job, this field is not relevant.
         
        string allocated_ip_range = 5 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getAllocatedIpRange in interface SqlIpConfigOrBuilder
        Returns:
        The allocatedIpRange.
      • getAllocatedIpRangeBytes

        public com.google.protobuf.ByteString getAllocatedIpRangeBytes()
         Optional. The name of the allocated IP address range for the private IP
         Cloud SQL instance. This name refers to an already allocated IP range
         address. If set, the instance IP address will be created in the allocated
         range. Note that this IP address range can't be modified after the instance
         is created. If you change the VPC when configuring connectivity settings
         for the migration job, this field is not relevant.
         
        string allocated_ip_range = 5 [(.google.api.field_behavior) = OPTIONAL];
        Specified by:
        getAllocatedIpRangeBytes in interface SqlIpConfigOrBuilder
        Returns:
        The bytes for allocatedIpRange.
      • setAllocatedIpRange

        public SqlIpConfig.Builder setAllocatedIpRange​(String value)
         Optional. The name of the allocated IP address range for the private IP
         Cloud SQL instance. This name refers to an already allocated IP range
         address. If set, the instance IP address will be created in the allocated
         range. Note that this IP address range can't be modified after the instance
         is created. If you change the VPC when configuring connectivity settings
         for the migration job, this field is not relevant.
         
        string allocated_ip_range = 5 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The allocatedIpRange to set.
        Returns:
        This builder for chaining.
      • clearAllocatedIpRange

        public SqlIpConfig.Builder clearAllocatedIpRange()
         Optional. The name of the allocated IP address range for the private IP
         Cloud SQL instance. This name refers to an already allocated IP range
         address. If set, the instance IP address will be created in the allocated
         range. Note that this IP address range can't be modified after the instance
         is created. If you change the VPC when configuring connectivity settings
         for the migration job, this field is not relevant.
         
        string allocated_ip_range = 5 [(.google.api.field_behavior) = OPTIONAL];
        Returns:
        This builder for chaining.
      • setAllocatedIpRangeBytes

        public SqlIpConfig.Builder setAllocatedIpRangeBytes​(com.google.protobuf.ByteString value)
         Optional. The name of the allocated IP address range for the private IP
         Cloud SQL instance. This name refers to an already allocated IP range
         address. If set, the instance IP address will be created in the allocated
         range. Note that this IP address range can't be modified after the instance
         is created. If you change the VPC when configuring connectivity settings
         for the migration job, this field is not relevant.
         
        string allocated_ip_range = 5 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The bytes for allocatedIpRange to set.
        Returns:
        This builder for chaining.
      • hasRequireSsl

        public boolean hasRequireSsl()
         Whether SSL connections over IP should be enforced or not.
         
        .google.protobuf.BoolValue require_ssl = 3;
        Specified by:
        hasRequireSsl in interface SqlIpConfigOrBuilder
        Returns:
        Whether the requireSsl field is set.
      • getRequireSsl

        public com.google.protobuf.BoolValue getRequireSsl()
         Whether SSL connections over IP should be enforced or not.
         
        .google.protobuf.BoolValue require_ssl = 3;
        Specified by:
        getRequireSsl in interface SqlIpConfigOrBuilder
        Returns:
        The requireSsl.
      • setRequireSsl

        public SqlIpConfig.Builder setRequireSsl​(com.google.protobuf.BoolValue value)
         Whether SSL connections over IP should be enforced or not.
         
        .google.protobuf.BoolValue require_ssl = 3;
      • setRequireSsl

        public SqlIpConfig.Builder setRequireSsl​(com.google.protobuf.BoolValue.Builder builderForValue)
         Whether SSL connections over IP should be enforced or not.
         
        .google.protobuf.BoolValue require_ssl = 3;
      • mergeRequireSsl

        public SqlIpConfig.Builder mergeRequireSsl​(com.google.protobuf.BoolValue value)
         Whether SSL connections over IP should be enforced or not.
         
        .google.protobuf.BoolValue require_ssl = 3;
      • clearRequireSsl

        public SqlIpConfig.Builder clearRequireSsl()
         Whether SSL connections over IP should be enforced or not.
         
        .google.protobuf.BoolValue require_ssl = 3;
      • getRequireSslBuilder

        public com.google.protobuf.BoolValue.Builder getRequireSslBuilder()
         Whether SSL connections over IP should be enforced or not.
         
        .google.protobuf.BoolValue require_ssl = 3;
      • getRequireSslOrBuilder

        public com.google.protobuf.BoolValueOrBuilder getRequireSslOrBuilder()
         Whether SSL connections over IP should be enforced or not.
         
        .google.protobuf.BoolValue require_ssl = 3;
        Specified by:
        getRequireSslOrBuilder in interface SqlIpConfigOrBuilder
      • getAuthorizedNetworksList

        public List<SqlAclEntry> getAuthorizedNetworksList()
         The list of external networks that are allowed to connect to the instance
         using the IP. See
         https://en.wikipedia.org/wiki/CIDR_notation#CIDR_notation, also known as
         'slash' notation (e.g. `192.168.100.0/24`).
         
        repeated .google.cloud.clouddms.v1.SqlAclEntry authorized_networks = 4;
        Specified by:
        getAuthorizedNetworksList in interface SqlIpConfigOrBuilder
      • getAuthorizedNetworksCount

        public int getAuthorizedNetworksCount()
         The list of external networks that are allowed to connect to the instance
         using the IP. See
         https://en.wikipedia.org/wiki/CIDR_notation#CIDR_notation, also known as
         'slash' notation (e.g. `192.168.100.0/24`).
         
        repeated .google.cloud.clouddms.v1.SqlAclEntry authorized_networks = 4;
        Specified by:
        getAuthorizedNetworksCount in interface SqlIpConfigOrBuilder
      • getAuthorizedNetworks

        public SqlAclEntry getAuthorizedNetworks​(int index)
         The list of external networks that are allowed to connect to the instance
         using the IP. See
         https://en.wikipedia.org/wiki/CIDR_notation#CIDR_notation, also known as
         'slash' notation (e.g. `192.168.100.0/24`).
         
        repeated .google.cloud.clouddms.v1.SqlAclEntry authorized_networks = 4;
        Specified by:
        getAuthorizedNetworks in interface SqlIpConfigOrBuilder
      • setAuthorizedNetworks

        public SqlIpConfig.Builder setAuthorizedNetworks​(int index,
                                                         SqlAclEntry value)
         The list of external networks that are allowed to connect to the instance
         using the IP. See
         https://en.wikipedia.org/wiki/CIDR_notation#CIDR_notation, also known as
         'slash' notation (e.g. `192.168.100.0/24`).
         
        repeated .google.cloud.clouddms.v1.SqlAclEntry authorized_networks = 4;
      • setAuthorizedNetworks

        public SqlIpConfig.Builder setAuthorizedNetworks​(int index,
                                                         SqlAclEntry.Builder builderForValue)
         The list of external networks that are allowed to connect to the instance
         using the IP. See
         https://en.wikipedia.org/wiki/CIDR_notation#CIDR_notation, also known as
         'slash' notation (e.g. `192.168.100.0/24`).
         
        repeated .google.cloud.clouddms.v1.SqlAclEntry authorized_networks = 4;
      • addAuthorizedNetworks

        public SqlIpConfig.Builder addAuthorizedNetworks​(SqlAclEntry value)
         The list of external networks that are allowed to connect to the instance
         using the IP. See
         https://en.wikipedia.org/wiki/CIDR_notation#CIDR_notation, also known as
         'slash' notation (e.g. `192.168.100.0/24`).
         
        repeated .google.cloud.clouddms.v1.SqlAclEntry authorized_networks = 4;
      • addAuthorizedNetworks

        public SqlIpConfig.Builder addAuthorizedNetworks​(int index,
                                                         SqlAclEntry value)
         The list of external networks that are allowed to connect to the instance
         using the IP. See
         https://en.wikipedia.org/wiki/CIDR_notation#CIDR_notation, also known as
         'slash' notation (e.g. `192.168.100.0/24`).
         
        repeated .google.cloud.clouddms.v1.SqlAclEntry authorized_networks = 4;
      • addAuthorizedNetworks

        public SqlIpConfig.Builder addAuthorizedNetworks​(SqlAclEntry.Builder builderForValue)
         The list of external networks that are allowed to connect to the instance
         using the IP. See
         https://en.wikipedia.org/wiki/CIDR_notation#CIDR_notation, also known as
         'slash' notation (e.g. `192.168.100.0/24`).
         
        repeated .google.cloud.clouddms.v1.SqlAclEntry authorized_networks = 4;
      • addAuthorizedNetworks

        public SqlIpConfig.Builder addAuthorizedNetworks​(int index,
                                                         SqlAclEntry.Builder builderForValue)
         The list of external networks that are allowed to connect to the instance
         using the IP. See
         https://en.wikipedia.org/wiki/CIDR_notation#CIDR_notation, also known as
         'slash' notation (e.g. `192.168.100.0/24`).
         
        repeated .google.cloud.clouddms.v1.SqlAclEntry authorized_networks = 4;
      • addAllAuthorizedNetworks

        public SqlIpConfig.Builder addAllAuthorizedNetworks​(Iterable<? extends SqlAclEntry> values)
         The list of external networks that are allowed to connect to the instance
         using the IP. See
         https://en.wikipedia.org/wiki/CIDR_notation#CIDR_notation, also known as
         'slash' notation (e.g. `192.168.100.0/24`).
         
        repeated .google.cloud.clouddms.v1.SqlAclEntry authorized_networks = 4;
      • clearAuthorizedNetworks

        public SqlIpConfig.Builder clearAuthorizedNetworks()
         The list of external networks that are allowed to connect to the instance
         using the IP. See
         https://en.wikipedia.org/wiki/CIDR_notation#CIDR_notation, also known as
         'slash' notation (e.g. `192.168.100.0/24`).
         
        repeated .google.cloud.clouddms.v1.SqlAclEntry authorized_networks = 4;
      • removeAuthorizedNetworks

        public SqlIpConfig.Builder removeAuthorizedNetworks​(int index)
         The list of external networks that are allowed to connect to the instance
         using the IP. See
         https://en.wikipedia.org/wiki/CIDR_notation#CIDR_notation, also known as
         'slash' notation (e.g. `192.168.100.0/24`).
         
        repeated .google.cloud.clouddms.v1.SqlAclEntry authorized_networks = 4;
      • getAuthorizedNetworksBuilder

        public SqlAclEntry.Builder getAuthorizedNetworksBuilder​(int index)
         The list of external networks that are allowed to connect to the instance
         using the IP. See
         https://en.wikipedia.org/wiki/CIDR_notation#CIDR_notation, also known as
         'slash' notation (e.g. `192.168.100.0/24`).
         
        repeated .google.cloud.clouddms.v1.SqlAclEntry authorized_networks = 4;
      • getAuthorizedNetworksOrBuilder

        public SqlAclEntryOrBuilder getAuthorizedNetworksOrBuilder​(int index)
         The list of external networks that are allowed to connect to the instance
         using the IP. See
         https://en.wikipedia.org/wiki/CIDR_notation#CIDR_notation, also known as
         'slash' notation (e.g. `192.168.100.0/24`).
         
        repeated .google.cloud.clouddms.v1.SqlAclEntry authorized_networks = 4;
        Specified by:
        getAuthorizedNetworksOrBuilder in interface SqlIpConfigOrBuilder
      • getAuthorizedNetworksOrBuilderList

        public List<? extends SqlAclEntryOrBuilder> getAuthorizedNetworksOrBuilderList()
         The list of external networks that are allowed to connect to the instance
         using the IP. See
         https://en.wikipedia.org/wiki/CIDR_notation#CIDR_notation, also known as
         'slash' notation (e.g. `192.168.100.0/24`).
         
        repeated .google.cloud.clouddms.v1.SqlAclEntry authorized_networks = 4;
        Specified by:
        getAuthorizedNetworksOrBuilderList in interface SqlIpConfigOrBuilder
      • addAuthorizedNetworksBuilder

        public SqlAclEntry.Builder addAuthorizedNetworksBuilder()
         The list of external networks that are allowed to connect to the instance
         using the IP. See
         https://en.wikipedia.org/wiki/CIDR_notation#CIDR_notation, also known as
         'slash' notation (e.g. `192.168.100.0/24`).
         
        repeated .google.cloud.clouddms.v1.SqlAclEntry authorized_networks = 4;
      • addAuthorizedNetworksBuilder

        public SqlAclEntry.Builder addAuthorizedNetworksBuilder​(int index)
         The list of external networks that are allowed to connect to the instance
         using the IP. See
         https://en.wikipedia.org/wiki/CIDR_notation#CIDR_notation, also known as
         'slash' notation (e.g. `192.168.100.0/24`).
         
        repeated .google.cloud.clouddms.v1.SqlAclEntry authorized_networks = 4;
      • getAuthorizedNetworksBuilderList

        public List<SqlAclEntry.Builder> getAuthorizedNetworksBuilderList()
         The list of external networks that are allowed to connect to the instance
         using the IP. See
         https://en.wikipedia.org/wiki/CIDR_notation#CIDR_notation, also known as
         'slash' notation (e.g. `192.168.100.0/24`).
         
        repeated .google.cloud.clouddms.v1.SqlAclEntry authorized_networks = 4;
      • setUnknownFields

        public final SqlIpConfig.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<SqlIpConfig.Builder>
      • mergeUnknownFields

        public final SqlIpConfig.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<SqlIpConfig.Builder>