Class ImportAttachedClusterRequest.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<ImportAttachedClusterRequest.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<ImportAttachedClusterRequest.Builder>
      • getDefaultInstanceForType

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

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

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

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

        public ImportAttachedClusterRequest.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<ImportAttachedClusterRequest.Builder>
        Throws:
        IOException
      • getParent

        public String getParent()
         Required. The parent location where this
         [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource
         will be created.
        
         Location names are formatted as `projects/<project-id>/locations/<region>`.
        
         See [Resource Names](https://cloud.google.com/apis/design/resource_names)
         for more details on Google Cloud resource names.
         
        string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Specified by:
        getParent in interface ImportAttachedClusterRequestOrBuilder
        Returns:
        The parent.
      • getParentBytes

        public com.google.protobuf.ByteString getParentBytes()
         Required. The parent location where this
         [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource
         will be created.
        
         Location names are formatted as `projects/<project-id>/locations/<region>`.
        
         See [Resource Names](https://cloud.google.com/apis/design/resource_names)
         for more details on Google Cloud resource names.
         
        string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Specified by:
        getParentBytes in interface ImportAttachedClusterRequestOrBuilder
        Returns:
        The bytes for parent.
      • setParent

        public ImportAttachedClusterRequest.Builder setParent​(String value)
         Required. The parent location where this
         [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource
         will be created.
        
         Location names are formatted as `projects/<project-id>/locations/<region>`.
        
         See [Resource Names](https://cloud.google.com/apis/design/resource_names)
         for more details on Google Cloud resource names.
         
        string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The parent to set.
        Returns:
        This builder for chaining.
      • clearParent

        public ImportAttachedClusterRequest.Builder clearParent()
         Required. The parent location where this
         [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource
         will be created.
        
         Location names are formatted as `projects/<project-id>/locations/<region>`.
        
         See [Resource Names](https://cloud.google.com/apis/design/resource_names)
         for more details on Google Cloud resource names.
         
        string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Returns:
        This builder for chaining.
      • setParentBytes

        public ImportAttachedClusterRequest.Builder setParentBytes​(com.google.protobuf.ByteString value)
         Required. The parent location where this
         [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource
         will be created.
        
         Location names are formatted as `projects/<project-id>/locations/<region>`.
        
         See [Resource Names](https://cloud.google.com/apis/design/resource_names)
         for more details on Google Cloud resource names.
         
        string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
        Parameters:
        value - The bytes for parent to set.
        Returns:
        This builder for chaining.
      • getValidateOnly

        public boolean getValidateOnly()
         If set, only validate the request, but do not actually import the cluster.
         
        bool validate_only = 2;
        Specified by:
        getValidateOnly in interface ImportAttachedClusterRequestOrBuilder
        Returns:
        The validateOnly.
      • setValidateOnly

        public ImportAttachedClusterRequest.Builder setValidateOnly​(boolean value)
         If set, only validate the request, but do not actually import the cluster.
         
        bool validate_only = 2;
        Parameters:
        value - The validateOnly to set.
        Returns:
        This builder for chaining.
      • clearValidateOnly

        public ImportAttachedClusterRequest.Builder clearValidateOnly()
         If set, only validate the request, but do not actually import the cluster.
         
        bool validate_only = 2;
        Returns:
        This builder for chaining.
      • getFleetMembership

        public String getFleetMembership()
         Required. The name of the fleet membership resource to import.
         
        string fleet_membership = 3 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getFleetMembership in interface ImportAttachedClusterRequestOrBuilder
        Returns:
        The fleetMembership.
      • getFleetMembershipBytes

        public com.google.protobuf.ByteString getFleetMembershipBytes()
         Required. The name of the fleet membership resource to import.
         
        string fleet_membership = 3 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getFleetMembershipBytes in interface ImportAttachedClusterRequestOrBuilder
        Returns:
        The bytes for fleetMembership.
      • setFleetMembership

        public ImportAttachedClusterRequest.Builder setFleetMembership​(String value)
         Required. The name of the fleet membership resource to import.
         
        string fleet_membership = 3 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The fleetMembership to set.
        Returns:
        This builder for chaining.
      • clearFleetMembership

        public ImportAttachedClusterRequest.Builder clearFleetMembership()
         Required. The name of the fleet membership resource to import.
         
        string fleet_membership = 3 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        This builder for chaining.
      • setFleetMembershipBytes

        public ImportAttachedClusterRequest.Builder setFleetMembershipBytes​(com.google.protobuf.ByteString value)
         Required. The name of the fleet membership resource to import.
         
        string fleet_membership = 3 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The bytes for fleetMembership to set.
        Returns:
        This builder for chaining.
      • getPlatformVersion

        public String getPlatformVersion()
         Required. The platform version for the cluster (e.g. `1.19.0-gke.1000`).
        
         You can list all supported versions on a given Google Cloud region by
         calling
         [GetAttachedServerConfig][google.cloud.gkemulticloud.v1.AttachedClusters.GetAttachedServerConfig].
         
        string platform_version = 4 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getPlatformVersion in interface ImportAttachedClusterRequestOrBuilder
        Returns:
        The platformVersion.
      • getPlatformVersionBytes

        public com.google.protobuf.ByteString getPlatformVersionBytes()
         Required. The platform version for the cluster (e.g. `1.19.0-gke.1000`).
        
         You can list all supported versions on a given Google Cloud region by
         calling
         [GetAttachedServerConfig][google.cloud.gkemulticloud.v1.AttachedClusters.GetAttachedServerConfig].
         
        string platform_version = 4 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getPlatformVersionBytes in interface ImportAttachedClusterRequestOrBuilder
        Returns:
        The bytes for platformVersion.
      • setPlatformVersion

        public ImportAttachedClusterRequest.Builder setPlatformVersion​(String value)
         Required. The platform version for the cluster (e.g. `1.19.0-gke.1000`).
        
         You can list all supported versions on a given Google Cloud region by
         calling
         [GetAttachedServerConfig][google.cloud.gkemulticloud.v1.AttachedClusters.GetAttachedServerConfig].
         
        string platform_version = 4 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The platformVersion to set.
        Returns:
        This builder for chaining.
      • clearPlatformVersion

        public ImportAttachedClusterRequest.Builder clearPlatformVersion()
         Required. The platform version for the cluster (e.g. `1.19.0-gke.1000`).
        
         You can list all supported versions on a given Google Cloud region by
         calling
         [GetAttachedServerConfig][google.cloud.gkemulticloud.v1.AttachedClusters.GetAttachedServerConfig].
         
        string platform_version = 4 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        This builder for chaining.
      • setPlatformVersionBytes

        public ImportAttachedClusterRequest.Builder setPlatformVersionBytes​(com.google.protobuf.ByteString value)
         Required. The platform version for the cluster (e.g. `1.19.0-gke.1000`).
        
         You can list all supported versions on a given Google Cloud region by
         calling
         [GetAttachedServerConfig][google.cloud.gkemulticloud.v1.AttachedClusters.GetAttachedServerConfig].
         
        string platform_version = 4 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The bytes for platformVersion to set.
        Returns:
        This builder for chaining.
      • getDistribution

        public String getDistribution()
         Required. The Kubernetes distribution of the underlying attached cluster.
        
         Supported values: ["eks", "aks"].
         
        string distribution = 5 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getDistribution in interface ImportAttachedClusterRequestOrBuilder
        Returns:
        The distribution.
      • getDistributionBytes

        public com.google.protobuf.ByteString getDistributionBytes()
         Required. The Kubernetes distribution of the underlying attached cluster.
        
         Supported values: ["eks", "aks"].
         
        string distribution = 5 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getDistributionBytes in interface ImportAttachedClusterRequestOrBuilder
        Returns:
        The bytes for distribution.
      • setDistribution

        public ImportAttachedClusterRequest.Builder setDistribution​(String value)
         Required. The Kubernetes distribution of the underlying attached cluster.
        
         Supported values: ["eks", "aks"].
         
        string distribution = 5 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The distribution to set.
        Returns:
        This builder for chaining.
      • clearDistribution

        public ImportAttachedClusterRequest.Builder clearDistribution()
         Required. The Kubernetes distribution of the underlying attached cluster.
        
         Supported values: ["eks", "aks"].
         
        string distribution = 5 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        This builder for chaining.
      • setDistributionBytes

        public ImportAttachedClusterRequest.Builder setDistributionBytes​(com.google.protobuf.ByteString value)
         Required. The Kubernetes distribution of the underlying attached cluster.
        
         Supported values: ["eks", "aks"].
         
        string distribution = 5 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The bytes for distribution to set.
        Returns:
        This builder for chaining.