Class Cluster.NetworkConfig.Builder

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

        public 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.GeneratedMessageV3.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.GeneratedMessageV3.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
      • clone

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

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

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

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

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

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.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()
         Required. 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. It can be updated, but it cannot be
         removed.
         
        string network = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Specified by:
        getNetwork in interface Cluster.NetworkConfigOrBuilder
        Returns:
        The network.
      • getNetworkBytes

        public com.google.protobuf.ByteString getNetworkBytes()
         Required. 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. It can be updated, but it cannot be
         removed.
         
        string network = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Specified by:
        getNetworkBytes in interface Cluster.NetworkConfigOrBuilder
        Returns:
        The bytes for network.
      • setNetwork

        public Cluster.NetworkConfig.Builder setNetwork​(String value)
         Required. 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. It can be updated, but it cannot be
         removed.
         
        string network = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The network to set.
        Returns:
        This builder for chaining.
      • clearNetwork

        public Cluster.NetworkConfig.Builder clearNetwork()
         Required. 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. It can be updated, but it cannot be
         removed.
         
        string network = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Returns:
        This builder for chaining.
      • setNetworkBytes

        public Cluster.NetworkConfig.Builder setNetworkBytes​(com.google.protobuf.ByteString value)
         Required. 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. It can be updated, but it cannot be
         removed.
         
        string network = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The bytes for network to set.
        Returns:
        This builder for chaining.
      • getAllocatedIpRange

        public String getAllocatedIpRange()
         Optional. The 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 CloudSQL.
         
        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. The 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 CloudSQL.
         
        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. The 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 CloudSQL.
         
        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. The 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 CloudSQL.
         
        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. The 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 CloudSQL.
         
        string allocated_ip_range = 2 [(.google.api.field_behavior) = OPTIONAL];
        Parameters:
        value - The bytes for allocatedIpRange to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

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

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