Class SqlIpConfig

  • All Implemented Interfaces:
    SqlIpConfigOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

    public final class SqlIpConfig
    extends com.google.protobuf.GeneratedMessageV3
    implements SqlIpConfigOrBuilder
     IP Management configuration.
     
    Protobuf type google.cloud.clouddms.v1.SqlIpConfig
    See Also:
    Serialized Form
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  SqlIpConfig.Builder
      IP Management configuration.
      • Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3

        com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,​BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,​BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
      • Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite

        com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
    • Field Detail

      • ENABLE_IPV4_FIELD_NUMBER

        public static final int ENABLE_IPV4_FIELD_NUMBER
        See Also:
        Constant Field Values
      • PRIVATE_NETWORK_FIELD_NUMBER

        public static final int PRIVATE_NETWORK_FIELD_NUMBER
        See Also:
        Constant Field Values
      • ALLOCATED_IP_RANGE_FIELD_NUMBER

        public static final int ALLOCATED_IP_RANGE_FIELD_NUMBER
        See Also:
        Constant Field Values
      • REQUIRE_SSL_FIELD_NUMBER

        public static final int REQUIRE_SSL_FIELD_NUMBER
        See Also:
        Constant Field Values
      • AUTHORIZED_NETWORKS_FIELD_NUMBER

        public static final int AUTHORIZED_NETWORKS_FIELD_NUMBER
        See Also:
        Constant Field Values
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • 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
      • 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.
      • 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.
      • 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.
      • 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.
      • 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
      • 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
      • 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
      • 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
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.google.protobuf.AbstractMessage
      • parseFrom

        public static SqlIpConfig parseFrom​(ByteBuffer data)
                                     throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static SqlIpConfig parseFrom​(ByteBuffer data,
                                            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                     throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static SqlIpConfig parseFrom​(com.google.protobuf.ByteString data)
                                     throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static SqlIpConfig parseFrom​(com.google.protobuf.ByteString data,
                                            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                     throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static SqlIpConfig parseFrom​(byte[] data)
                                     throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static SqlIpConfig parseFrom​(byte[] data,
                                            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                     throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static SqlIpConfig parseFrom​(com.google.protobuf.CodedInputStream input,
                                            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                     throws IOException
        Throws:
        IOException
      • newBuilderForType

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

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

        protected SqlIpConfig.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstance

        public static SqlIpConfig getDefaultInstance()
      • parser

        public static com.google.protobuf.Parser<SqlIpConfig> parser()
      • getParserForType

        public com.google.protobuf.Parser<SqlIpConfig> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

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