Class Cluster.NetworkConfig.Builder

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

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

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

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

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

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

      public Cluster.NetworkConfig.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<Cluster.NetworkConfig.Builder>
      Throws:
      IOException
    • getNetwork

      public String getNetwork()
       Optional. The resource link for the VPC network in which cluster
       resources are created and from which they are accessible via Private IP.
       The network must belong to the same project as the cluster. It is
       specified in the form:
       `projects/{project_number}/global/networks/{network_id}`. This is
       required to create a cluster.
       
      string network = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      getNetwork in interface Cluster.NetworkConfigOrBuilder
      Returns:
      The network.
    • getNetworkBytes

      public com.google.protobuf.ByteString getNetworkBytes()
       Optional. The resource link for the VPC network in which cluster
       resources are created and from which they are accessible via Private IP.
       The network must belong to the same project as the cluster. It is
       specified in the form:
       `projects/{project_number}/global/networks/{network_id}`. This is
       required to create a cluster.
       
      string network = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      getNetworkBytes in interface Cluster.NetworkConfigOrBuilder
      Returns:
      The bytes for network.
    • setNetwork

      public Cluster.NetworkConfig.Builder setNetwork(String value)
       Optional. The resource link for the VPC network in which cluster
       resources are created and from which they are accessible via Private IP.
       The network must belong to the same project as the cluster. It is
       specified in the form:
       `projects/{project_number}/global/networks/{network_id}`. This is
       required to create a cluster.
       
      string network = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The network to set.
      Returns:
      This builder for chaining.
    • clearNetwork

      public Cluster.NetworkConfig.Builder clearNetwork()
       Optional. The resource link for the VPC network in which cluster
       resources are created and from which they are accessible via Private IP.
       The network must belong to the same project as the cluster. It is
       specified in the form:
       `projects/{project_number}/global/networks/{network_id}`. This is
       required to create a cluster.
       
      string network = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setNetworkBytes

      public Cluster.NetworkConfig.Builder setNetworkBytes(com.google.protobuf.ByteString value)
       Optional. The resource link for the VPC network in which cluster
       resources are created and from which they are accessible via Private IP.
       The network must belong to the same project as the cluster. It is
       specified in the form:
       `projects/{project_number}/global/networks/{network_id}`. This is
       required to create a cluster.
       
      string network = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for network to set.
      Returns:
      This builder for chaining.
    • getAllocatedIpRange

      public String getAllocatedIpRange()
       Optional. Name of the allocated IP range for the private IP AlloyDB
       cluster, for example: "google-managed-services-default". If set, the
       instance IPs for this cluster will be created in the allocated range. The
       range name must comply with RFC 1035. Specifically, the name must be 1-63
       characters long and match the regular expression
       `[a-z]([-a-z0-9]*[a-z0-9])?`.
       Field name is intended to be consistent with Cloud SQL.
       
      string allocated_ip_range = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAllocatedIpRange in interface Cluster.NetworkConfigOrBuilder
      Returns:
      The allocatedIpRange.
    • getAllocatedIpRangeBytes

      public com.google.protobuf.ByteString getAllocatedIpRangeBytes()
       Optional. Name of the allocated IP range for the private IP AlloyDB
       cluster, for example: "google-managed-services-default". If set, the
       instance IPs for this cluster will be created in the allocated range. The
       range name must comply with RFC 1035. Specifically, the name must be 1-63
       characters long and match the regular expression
       `[a-z]([-a-z0-9]*[a-z0-9])?`.
       Field name is intended to be consistent with Cloud SQL.
       
      string allocated_ip_range = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getAllocatedIpRangeBytes in interface Cluster.NetworkConfigOrBuilder
      Returns:
      The bytes for allocatedIpRange.
    • setAllocatedIpRange

      public Cluster.NetworkConfig.Builder setAllocatedIpRange(String value)
       Optional. Name of the allocated IP range for the private IP AlloyDB
       cluster, for example: "google-managed-services-default". If set, the
       instance IPs for this cluster will be created in the allocated range. The
       range name must comply with RFC 1035. Specifically, the name must be 1-63
       characters long and match the regular expression
       `[a-z]([-a-z0-9]*[a-z0-9])?`.
       Field name is intended to be consistent with Cloud SQL.
       
      string allocated_ip_range = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The allocatedIpRange to set.
      Returns:
      This builder for chaining.
    • clearAllocatedIpRange

      public Cluster.NetworkConfig.Builder clearAllocatedIpRange()
       Optional. Name of the allocated IP range for the private IP AlloyDB
       cluster, for example: "google-managed-services-default". If set, the
       instance IPs for this cluster will be created in the allocated range. The
       range name must comply with RFC 1035. Specifically, the name must be 1-63
       characters long and match the regular expression
       `[a-z]([-a-z0-9]*[a-z0-9])?`.
       Field name is intended to be consistent with Cloud SQL.
       
      string allocated_ip_range = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • setAllocatedIpRangeBytes

      public Cluster.NetworkConfig.Builder setAllocatedIpRangeBytes(com.google.protobuf.ByteString value)
       Optional. Name of the allocated IP range for the private IP AlloyDB
       cluster, for example: "google-managed-services-default". If set, the
       instance IPs for this cluster will be created in the allocated range. The
       range name must comply with RFC 1035. Specifically, the name must be 1-63
       characters long and match the regular expression
       `[a-z]([-a-z0-9]*[a-z0-9])?`.
       Field name is intended to be consistent with Cloud SQL.
       
      string allocated_ip_range = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes for allocatedIpRange to set.
      Returns:
      This builder for chaining.