Class PrivateClusterConfig.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<PrivateClusterConfig.Builder>
      • clear

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

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

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

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

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

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

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

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

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

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

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

        public PrivateClusterConfig.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<PrivateClusterConfig.Builder>
        Throws:
        IOException
      • getEnablePrivateNodes

        public boolean getEnablePrivateNodes()
         Whether nodes have internal IP addresses only. If enabled, all nodes are
         given only RFC 1918 private addresses and communicate with the master via
         private networking.
         
        bool enable_private_nodes = 1;
        Specified by:
        getEnablePrivateNodes in interface PrivateClusterConfigOrBuilder
        Returns:
        The enablePrivateNodes.
      • setEnablePrivateNodes

        public PrivateClusterConfig.Builder setEnablePrivateNodes​(boolean value)
         Whether nodes have internal IP addresses only. If enabled, all nodes are
         given only RFC 1918 private addresses and communicate with the master via
         private networking.
         
        bool enable_private_nodes = 1;
        Parameters:
        value - The enablePrivateNodes to set.
        Returns:
        This builder for chaining.
      • clearEnablePrivateNodes

        public PrivateClusterConfig.Builder clearEnablePrivateNodes()
         Whether nodes have internal IP addresses only. If enabled, all nodes are
         given only RFC 1918 private addresses and communicate with the master via
         private networking.
         
        bool enable_private_nodes = 1;
        Returns:
        This builder for chaining.
      • getEnablePrivateEndpoint

        public boolean getEnablePrivateEndpoint()
         Whether the master's internal IP address is used as the cluster endpoint.
         
        bool enable_private_endpoint = 2;
        Specified by:
        getEnablePrivateEndpoint in interface PrivateClusterConfigOrBuilder
        Returns:
        The enablePrivateEndpoint.
      • setEnablePrivateEndpoint

        public PrivateClusterConfig.Builder setEnablePrivateEndpoint​(boolean value)
         Whether the master's internal IP address is used as the cluster endpoint.
         
        bool enable_private_endpoint = 2;
        Parameters:
        value - The enablePrivateEndpoint to set.
        Returns:
        This builder for chaining.
      • clearEnablePrivateEndpoint

        public PrivateClusterConfig.Builder clearEnablePrivateEndpoint()
         Whether the master's internal IP address is used as the cluster endpoint.
         
        bool enable_private_endpoint = 2;
        Returns:
        This builder for chaining.
      • getMasterIpv4CidrBlock

        public String getMasterIpv4CidrBlock()
         The IP range in CIDR notation to use for the hosted master network. This
         range will be used for assigning internal IP addresses to the master or
         set of masters, as well as the ILB VIP. This range must not overlap with
         any other ranges in use within the cluster's network.
         
        string master_ipv4_cidr_block = 3;
        Specified by:
        getMasterIpv4CidrBlock in interface PrivateClusterConfigOrBuilder
        Returns:
        The masterIpv4CidrBlock.
      • getMasterIpv4CidrBlockBytes

        public com.google.protobuf.ByteString getMasterIpv4CidrBlockBytes()
         The IP range in CIDR notation to use for the hosted master network. This
         range will be used for assigning internal IP addresses to the master or
         set of masters, as well as the ILB VIP. This range must not overlap with
         any other ranges in use within the cluster's network.
         
        string master_ipv4_cidr_block = 3;
        Specified by:
        getMasterIpv4CidrBlockBytes in interface PrivateClusterConfigOrBuilder
        Returns:
        The bytes for masterIpv4CidrBlock.
      • setMasterIpv4CidrBlock

        public PrivateClusterConfig.Builder setMasterIpv4CidrBlock​(String value)
         The IP range in CIDR notation to use for the hosted master network. This
         range will be used for assigning internal IP addresses to the master or
         set of masters, as well as the ILB VIP. This range must not overlap with
         any other ranges in use within the cluster's network.
         
        string master_ipv4_cidr_block = 3;
        Parameters:
        value - The masterIpv4CidrBlock to set.
        Returns:
        This builder for chaining.
      • clearMasterIpv4CidrBlock

        public PrivateClusterConfig.Builder clearMasterIpv4CidrBlock()
         The IP range in CIDR notation to use for the hosted master network. This
         range will be used for assigning internal IP addresses to the master or
         set of masters, as well as the ILB VIP. This range must not overlap with
         any other ranges in use within the cluster's network.
         
        string master_ipv4_cidr_block = 3;
        Returns:
        This builder for chaining.
      • setMasterIpv4CidrBlockBytes

        public PrivateClusterConfig.Builder setMasterIpv4CidrBlockBytes​(com.google.protobuf.ByteString value)
         The IP range in CIDR notation to use for the hosted master network. This
         range will be used for assigning internal IP addresses to the master or
         set of masters, as well as the ILB VIP. This range must not overlap with
         any other ranges in use within the cluster's network.
         
        string master_ipv4_cidr_block = 3;
        Parameters:
        value - The bytes for masterIpv4CidrBlock to set.
        Returns:
        This builder for chaining.
      • getPrivateEndpoint

        public String getPrivateEndpoint()
         Output only. The internal IP address of this cluster's master endpoint.
         
        string private_endpoint = 4;
        Specified by:
        getPrivateEndpoint in interface PrivateClusterConfigOrBuilder
        Returns:
        The privateEndpoint.
      • getPrivateEndpointBytes

        public com.google.protobuf.ByteString getPrivateEndpointBytes()
         Output only. The internal IP address of this cluster's master endpoint.
         
        string private_endpoint = 4;
        Specified by:
        getPrivateEndpointBytes in interface PrivateClusterConfigOrBuilder
        Returns:
        The bytes for privateEndpoint.
      • setPrivateEndpoint

        public PrivateClusterConfig.Builder setPrivateEndpoint​(String value)
         Output only. The internal IP address of this cluster's master endpoint.
         
        string private_endpoint = 4;
        Parameters:
        value - The privateEndpoint to set.
        Returns:
        This builder for chaining.
      • clearPrivateEndpoint

        public PrivateClusterConfig.Builder clearPrivateEndpoint()
         Output only. The internal IP address of this cluster's master endpoint.
         
        string private_endpoint = 4;
        Returns:
        This builder for chaining.
      • setPrivateEndpointBytes

        public PrivateClusterConfig.Builder setPrivateEndpointBytes​(com.google.protobuf.ByteString value)
         Output only. The internal IP address of this cluster's master endpoint.
         
        string private_endpoint = 4;
        Parameters:
        value - The bytes for privateEndpoint to set.
        Returns:
        This builder for chaining.
      • getPublicEndpoint

        public String getPublicEndpoint()
         Output only. The external IP address of this cluster's master endpoint.
         
        string public_endpoint = 5;
        Specified by:
        getPublicEndpoint in interface PrivateClusterConfigOrBuilder
        Returns:
        The publicEndpoint.
      • getPublicEndpointBytes

        public com.google.protobuf.ByteString getPublicEndpointBytes()
         Output only. The external IP address of this cluster's master endpoint.
         
        string public_endpoint = 5;
        Specified by:
        getPublicEndpointBytes in interface PrivateClusterConfigOrBuilder
        Returns:
        The bytes for publicEndpoint.
      • setPublicEndpoint

        public PrivateClusterConfig.Builder setPublicEndpoint​(String value)
         Output only. The external IP address of this cluster's master endpoint.
         
        string public_endpoint = 5;
        Parameters:
        value - The publicEndpoint to set.
        Returns:
        This builder for chaining.
      • clearPublicEndpoint

        public PrivateClusterConfig.Builder clearPublicEndpoint()
         Output only. The external IP address of this cluster's master endpoint.
         
        string public_endpoint = 5;
        Returns:
        This builder for chaining.
      • setPublicEndpointBytes

        public PrivateClusterConfig.Builder setPublicEndpointBytes​(com.google.protobuf.ByteString value)
         Output only. The external IP address of this cluster's master endpoint.
         
        string public_endpoint = 5;
        Parameters:
        value - The bytes for publicEndpoint to set.
        Returns:
        This builder for chaining.
      • getPeeringName

        public String getPeeringName()
         Output only. The peering name in the customer VPC used by this cluster.
         
        string peering_name = 7;
        Specified by:
        getPeeringName in interface PrivateClusterConfigOrBuilder
        Returns:
        The peeringName.
      • getPeeringNameBytes

        public com.google.protobuf.ByteString getPeeringNameBytes()
         Output only. The peering name in the customer VPC used by this cluster.
         
        string peering_name = 7;
        Specified by:
        getPeeringNameBytes in interface PrivateClusterConfigOrBuilder
        Returns:
        The bytes for peeringName.
      • setPeeringName

        public PrivateClusterConfig.Builder setPeeringName​(String value)
         Output only. The peering name in the customer VPC used by this cluster.
         
        string peering_name = 7;
        Parameters:
        value - The peeringName to set.
        Returns:
        This builder for chaining.
      • clearPeeringName

        public PrivateClusterConfig.Builder clearPeeringName()
         Output only. The peering name in the customer VPC used by this cluster.
         
        string peering_name = 7;
        Returns:
        This builder for chaining.
      • setPeeringNameBytes

        public PrivateClusterConfig.Builder setPeeringNameBytes​(com.google.protobuf.ByteString value)
         Output only. The peering name in the customer VPC used by this cluster.
         
        string peering_name = 7;
        Parameters:
        value - The bytes for peeringName to set.
        Returns:
        This builder for chaining.
      • hasMasterGlobalAccessConfig

        public boolean hasMasterGlobalAccessConfig()
         Controls master global access settings.
         
        .google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8;
        Specified by:
        hasMasterGlobalAccessConfig in interface PrivateClusterConfigOrBuilder
        Returns:
        Whether the masterGlobalAccessConfig field is set.
      • clearMasterGlobalAccessConfig

        public PrivateClusterConfig.Builder clearMasterGlobalAccessConfig()
         Controls master global access settings.
         
        .google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8;
      • getMasterGlobalAccessConfigBuilder

        public PrivateClusterMasterGlobalAccessConfig.Builder getMasterGlobalAccessConfigBuilder()
         Controls master global access settings.
         
        .google.container.v1beta1.PrivateClusterMasterGlobalAccessConfig master_global_access_config = 8;
      • getPrivateEndpointSubnetwork

        public String getPrivateEndpointSubnetwork()
         Subnet to provision the master's private endpoint during cluster creation.
         Specified in projects/*/regions/*/subnetworks/* format.
         
        string private_endpoint_subnetwork = 10;
        Specified by:
        getPrivateEndpointSubnetwork in interface PrivateClusterConfigOrBuilder
        Returns:
        The privateEndpointSubnetwork.
      • getPrivateEndpointSubnetworkBytes

        public com.google.protobuf.ByteString getPrivateEndpointSubnetworkBytes()
         Subnet to provision the master's private endpoint during cluster creation.
         Specified in projects/*/regions/*/subnetworks/* format.
         
        string private_endpoint_subnetwork = 10;
        Specified by:
        getPrivateEndpointSubnetworkBytes in interface PrivateClusterConfigOrBuilder
        Returns:
        The bytes for privateEndpointSubnetwork.
      • setPrivateEndpointSubnetwork

        public PrivateClusterConfig.Builder setPrivateEndpointSubnetwork​(String value)
         Subnet to provision the master's private endpoint during cluster creation.
         Specified in projects/*/regions/*/subnetworks/* format.
         
        string private_endpoint_subnetwork = 10;
        Parameters:
        value - The privateEndpointSubnetwork to set.
        Returns:
        This builder for chaining.
      • clearPrivateEndpointSubnetwork

        public PrivateClusterConfig.Builder clearPrivateEndpointSubnetwork()
         Subnet to provision the master's private endpoint during cluster creation.
         Specified in projects/*/regions/*/subnetworks/* format.
         
        string private_endpoint_subnetwork = 10;
        Returns:
        This builder for chaining.
      • setPrivateEndpointSubnetworkBytes

        public PrivateClusterConfig.Builder setPrivateEndpointSubnetworkBytes​(com.google.protobuf.ByteString value)
         Subnet to provision the master's private endpoint during cluster creation.
         Specified in projects/*/regions/*/subnetworks/* format.
         
        string private_endpoint_subnetwork = 10;
        Parameters:
        value - The bytes for privateEndpointSubnetwork to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

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

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