Class Instance.InstanceNetworkConfig.Builder

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

public static final class Instance.InstanceNetworkConfig.Builder extends com.google.protobuf.GeneratedMessage.Builder<Instance.InstanceNetworkConfig.Builder> implements Instance.InstanceNetworkConfigOrBuilder
 Metadata related to instance-level network configuration.
 
Protobuf type google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig
  • 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<Instance.InstanceNetworkConfig.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<Instance.InstanceNetworkConfig.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<Instance.InstanceNetworkConfig.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

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

    • isInitialized

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

      public Instance.InstanceNetworkConfig.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<Instance.InstanceNetworkConfig.Builder>
      Throws:
      IOException
    • getAuthorizedExternalNetworksList

      public List<Instance.InstanceNetworkConfig.AuthorizedNetwork> getAuthorizedExternalNetworksList()
       Optional. A list of external network authorized to access this instance.
       
      repeated .google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig.AuthorizedNetwork authorized_external_networks = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAuthorizedExternalNetworksList in interface Instance.InstanceNetworkConfigOrBuilder
    • getAuthorizedExternalNetworksCount

      public int getAuthorizedExternalNetworksCount()
       Optional. A list of external network authorized to access this instance.
       
      repeated .google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig.AuthorizedNetwork authorized_external_networks = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAuthorizedExternalNetworksCount in interface Instance.InstanceNetworkConfigOrBuilder
    • getAuthorizedExternalNetworks

      public Instance.InstanceNetworkConfig.AuthorizedNetwork getAuthorizedExternalNetworks(int index)
       Optional. A list of external network authorized to access this instance.
       
      repeated .google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig.AuthorizedNetwork authorized_external_networks = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAuthorizedExternalNetworks in interface Instance.InstanceNetworkConfigOrBuilder
    • setAuthorizedExternalNetworks

      public Instance.InstanceNetworkConfig.Builder setAuthorizedExternalNetworks(int index, Instance.InstanceNetworkConfig.AuthorizedNetwork value)
       Optional. A list of external network authorized to access this instance.
       
      repeated .google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig.AuthorizedNetwork authorized_external_networks = 1 [(.google.api.field_behavior) = OPTIONAL];
    • setAuthorizedExternalNetworks

      public Instance.InstanceNetworkConfig.Builder setAuthorizedExternalNetworks(int index, Instance.InstanceNetworkConfig.AuthorizedNetwork.Builder builderForValue)
       Optional. A list of external network authorized to access this instance.
       
      repeated .google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig.AuthorizedNetwork authorized_external_networks = 1 [(.google.api.field_behavior) = OPTIONAL];
    • addAuthorizedExternalNetworks

       Optional. A list of external network authorized to access this instance.
       
      repeated .google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig.AuthorizedNetwork authorized_external_networks = 1 [(.google.api.field_behavior) = OPTIONAL];
    • addAuthorizedExternalNetworks

      public Instance.InstanceNetworkConfig.Builder addAuthorizedExternalNetworks(int index, Instance.InstanceNetworkConfig.AuthorizedNetwork value)
       Optional. A list of external network authorized to access this instance.
       
      repeated .google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig.AuthorizedNetwork authorized_external_networks = 1 [(.google.api.field_behavior) = OPTIONAL];
    • addAuthorizedExternalNetworks

       Optional. A list of external network authorized to access this instance.
       
      repeated .google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig.AuthorizedNetwork authorized_external_networks = 1 [(.google.api.field_behavior) = OPTIONAL];
    • addAuthorizedExternalNetworks

      public Instance.InstanceNetworkConfig.Builder addAuthorizedExternalNetworks(int index, Instance.InstanceNetworkConfig.AuthorizedNetwork.Builder builderForValue)
       Optional. A list of external network authorized to access this instance.
       
      repeated .google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig.AuthorizedNetwork authorized_external_networks = 1 [(.google.api.field_behavior) = OPTIONAL];
    • addAllAuthorizedExternalNetworks

      public Instance.InstanceNetworkConfig.Builder addAllAuthorizedExternalNetworks(Iterable<? extends Instance.InstanceNetworkConfig.AuthorizedNetwork> values)
       Optional. A list of external network authorized to access this instance.
       
      repeated .google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig.AuthorizedNetwork authorized_external_networks = 1 [(.google.api.field_behavior) = OPTIONAL];
    • clearAuthorizedExternalNetworks

      public Instance.InstanceNetworkConfig.Builder clearAuthorizedExternalNetworks()
       Optional. A list of external network authorized to access this instance.
       
      repeated .google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig.AuthorizedNetwork authorized_external_networks = 1 [(.google.api.field_behavior) = OPTIONAL];
    • removeAuthorizedExternalNetworks

      public Instance.InstanceNetworkConfig.Builder removeAuthorizedExternalNetworks(int index)
       Optional. A list of external network authorized to access this instance.
       
      repeated .google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig.AuthorizedNetwork authorized_external_networks = 1 [(.google.api.field_behavior) = OPTIONAL];
    • getAuthorizedExternalNetworksBuilder

      public Instance.InstanceNetworkConfig.AuthorizedNetwork.Builder getAuthorizedExternalNetworksBuilder(int index)
       Optional. A list of external network authorized to access this instance.
       
      repeated .google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig.AuthorizedNetwork authorized_external_networks = 1 [(.google.api.field_behavior) = OPTIONAL];
    • getAuthorizedExternalNetworksOrBuilder

      public Instance.InstanceNetworkConfig.AuthorizedNetworkOrBuilder getAuthorizedExternalNetworksOrBuilder(int index)
       Optional. A list of external network authorized to access this instance.
       
      repeated .google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig.AuthorizedNetwork authorized_external_networks = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAuthorizedExternalNetworksOrBuilder in interface Instance.InstanceNetworkConfigOrBuilder
    • getAuthorizedExternalNetworksOrBuilderList

      public List<? extends Instance.InstanceNetworkConfig.AuthorizedNetworkOrBuilder> getAuthorizedExternalNetworksOrBuilderList()
       Optional. A list of external network authorized to access this instance.
       
      repeated .google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig.AuthorizedNetwork authorized_external_networks = 1 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAuthorizedExternalNetworksOrBuilderList in interface Instance.InstanceNetworkConfigOrBuilder
    • addAuthorizedExternalNetworksBuilder

      public Instance.InstanceNetworkConfig.AuthorizedNetwork.Builder addAuthorizedExternalNetworksBuilder()
       Optional. A list of external network authorized to access this instance.
       
      repeated .google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig.AuthorizedNetwork authorized_external_networks = 1 [(.google.api.field_behavior) = OPTIONAL];
    • addAuthorizedExternalNetworksBuilder

      public Instance.InstanceNetworkConfig.AuthorizedNetwork.Builder addAuthorizedExternalNetworksBuilder(int index)
       Optional. A list of external network authorized to access this instance.
       
      repeated .google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig.AuthorizedNetwork authorized_external_networks = 1 [(.google.api.field_behavior) = OPTIONAL];
    • getAuthorizedExternalNetworksBuilderList

      public List<Instance.InstanceNetworkConfig.AuthorizedNetwork.Builder> getAuthorizedExternalNetworksBuilderList()
       Optional. A list of external network authorized to access this instance.
       
      repeated .google.cloud.alloydb.v1beta.Instance.InstanceNetworkConfig.AuthorizedNetwork authorized_external_networks = 1 [(.google.api.field_behavior) = OPTIONAL];
    • getEnablePublicIp

      public boolean getEnablePublicIp()
       Optional. Enabling public ip for the instance.
       
      bool enable_public_ip = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getEnablePublicIp in interface Instance.InstanceNetworkConfigOrBuilder
      Returns:
      The enablePublicIp.
    • setEnablePublicIp

      public Instance.InstanceNetworkConfig.Builder setEnablePublicIp(boolean value)
       Optional. Enabling public ip for the instance.
       
      bool enable_public_ip = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The enablePublicIp to set.
      Returns:
      This builder for chaining.
    • clearEnablePublicIp

      public Instance.InstanceNetworkConfig.Builder clearEnablePublicIp()
       Optional. Enabling public ip for the instance.
       
      bool enable_public_ip = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • getEnableOutboundPublicIp

      public boolean getEnableOutboundPublicIp()
       Optional. Enabling an outbound public IP address to support a database
       server sending requests out into the internet.
       
      bool enable_outbound_public_ip = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getEnableOutboundPublicIp in interface Instance.InstanceNetworkConfigOrBuilder
      Returns:
      The enableOutboundPublicIp.
    • setEnableOutboundPublicIp

      public Instance.InstanceNetworkConfig.Builder setEnableOutboundPublicIp(boolean value)
       Optional. Enabling an outbound public IP address to support a database
       server sending requests out into the internet.
       
      bool enable_outbound_public_ip = 3 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The enableOutboundPublicIp to set.
      Returns:
      This builder for chaining.
    • clearEnableOutboundPublicIp

      public Instance.InstanceNetworkConfig.Builder clearEnableOutboundPublicIp()
       Optional. Enabling an outbound public IP address to support a database
       server sending requests out into the internet.
       
      bool enable_outbound_public_ip = 3 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • getNetwork

      public String getNetwork()
       Output only. The resource link for the VPC network in which instance
       resources are created and from which they are accessible via Private IP.
       This will be the same value as the parent cluster's network. It is
       specified in the form: //
       `projects/{project_number}/global/networks/{network_id}`.
       
      string network = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Specified by:
      getNetwork in interface Instance.InstanceNetworkConfigOrBuilder
      Returns:
      The network.
    • getNetworkBytes

      public com.google.protobuf.ByteString getNetworkBytes()
       Output only. The resource link for the VPC network in which instance
       resources are created and from which they are accessible via Private IP.
       This will be the same value as the parent cluster's network. It is
       specified in the form: //
       `projects/{project_number}/global/networks/{network_id}`.
       
      string network = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Specified by:
      getNetworkBytes in interface Instance.InstanceNetworkConfigOrBuilder
      Returns:
      The bytes for network.
    • setNetwork

       Output only. The resource link for the VPC network in which instance
       resources are created and from which they are accessible via Private IP.
       This will be the same value as the parent cluster's network. It is
       specified in the form: //
       `projects/{project_number}/global/networks/{network_id}`.
       
      string network = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The network to set.
      Returns:
      This builder for chaining.
    • clearNetwork

       Output only. The resource link for the VPC network in which instance
       resources are created and from which they are accessible via Private IP.
       This will be the same value as the parent cluster's network. It is
       specified in the form: //
       `projects/{project_number}/global/networks/{network_id}`.
       
      string network = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setNetworkBytes

      public Instance.InstanceNetworkConfig.Builder setNetworkBytes(com.google.protobuf.ByteString value)
       Output only. The resource link for the VPC network in which instance
       resources are created and from which they are accessible via Private IP.
       This will be the same value as the parent cluster's network. It is
       specified in the form: //
       `projects/{project_number}/global/networks/{network_id}`.
       
      string network = 4 [(.google.api.field_behavior) = OUTPUT_ONLY, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for network to set.
      Returns:
      This builder for chaining.
    • getAllocatedIpRangeOverride

      public String getAllocatedIpRangeOverride()
       Optional. Name of the allocated IP range for the private IP AlloyDB
       instance, for example: "google-managed-services-default". If set, the
       instance IPs will be created from this allocated range and will override
       the IP range used by the parent cluster. The range name must comply with
       [RFC 1035](http://datatracker.ietf.org/doc/html/rfc1035). Specifically,
       the name must be 1-63 characters long and match the regular expression
       [a-z]([-a-z0-9]*[a-z0-9])?.
       
      string allocated_ip_range_override = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAllocatedIpRangeOverride in interface Instance.InstanceNetworkConfigOrBuilder
      Returns:
      The allocatedIpRangeOverride.
    • getAllocatedIpRangeOverrideBytes

      public com.google.protobuf.ByteString getAllocatedIpRangeOverrideBytes()
       Optional. Name of the allocated IP range for the private IP AlloyDB
       instance, for example: "google-managed-services-default". If set, the
       instance IPs will be created from this allocated range and will override
       the IP range used by the parent cluster. The range name must comply with
       [RFC 1035](http://datatracker.ietf.org/doc/html/rfc1035). Specifically,
       the name must be 1-63 characters long and match the regular expression
       [a-z]([-a-z0-9]*[a-z0-9])?.
       
      string allocated_ip_range_override = 5 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAllocatedIpRangeOverrideBytes in interface Instance.InstanceNetworkConfigOrBuilder
      Returns:
      The bytes for allocatedIpRangeOverride.
    • setAllocatedIpRangeOverride

      public Instance.InstanceNetworkConfig.Builder setAllocatedIpRangeOverride(String value)
       Optional. Name of the allocated IP range for the private IP AlloyDB
       instance, for example: "google-managed-services-default". If set, the
       instance IPs will be created from this allocated range and will override
       the IP range used by the parent cluster. The range name must comply with
       [RFC 1035](http://datatracker.ietf.org/doc/html/rfc1035). Specifically,
       the name must be 1-63 characters long and match the regular expression
       [a-z]([-a-z0-9]*[a-z0-9])?.
       
      string allocated_ip_range_override = 5 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The allocatedIpRangeOverride to set.
      Returns:
      This builder for chaining.
    • clearAllocatedIpRangeOverride

      public Instance.InstanceNetworkConfig.Builder clearAllocatedIpRangeOverride()
       Optional. Name of the allocated IP range for the private IP AlloyDB
       instance, for example: "google-managed-services-default". If set, the
       instance IPs will be created from this allocated range and will override
       the IP range used by the parent cluster. The range name must comply with
       [RFC 1035](http://datatracker.ietf.org/doc/html/rfc1035). Specifically,
       the name must be 1-63 characters long and match the regular expression
       [a-z]([-a-z0-9]*[a-z0-9])?.
       
      string allocated_ip_range_override = 5 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setAllocatedIpRangeOverrideBytes

      public Instance.InstanceNetworkConfig.Builder setAllocatedIpRangeOverrideBytes(com.google.protobuf.ByteString value)
       Optional. Name of the allocated IP range for the private IP AlloyDB
       instance, for example: "google-managed-services-default". If set, the
       instance IPs will be created from this allocated range and will override
       the IP range used by the parent cluster. The range name must comply with
       [RFC 1035](http://datatracker.ietf.org/doc/html/rfc1035). Specifically,
       the name must be 1-63 characters long and match the regular expression
       [a-z]([-a-z0-9]*[a-z0-9])?.
       
      string allocated_ip_range_override = 5 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for allocatedIpRangeOverride to set.
      Returns:
      This builder for chaining.