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

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

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

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

        public CreateAttachedClusterRequest.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<CreateAttachedClusterRequest.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 CreateAttachedClusterRequestOrBuilder
        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 CreateAttachedClusterRequestOrBuilder
        Returns:
        The bytes for parent.
      • setParent

        public CreateAttachedClusterRequest.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 CreateAttachedClusterRequest.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 CreateAttachedClusterRequest.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.
      • hasAttachedCluster

        public boolean hasAttachedCluster()
         Required. The specification of the
         [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] to create.
         
        .google.cloud.gkemulticloud.v1.AttachedCluster attached_cluster = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        hasAttachedCluster in interface CreateAttachedClusterRequestOrBuilder
        Returns:
        Whether the attachedCluster field is set.
      • getAttachedCluster

        public AttachedCluster getAttachedCluster()
         Required. The specification of the
         [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] to create.
         
        .google.cloud.gkemulticloud.v1.AttachedCluster attached_cluster = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getAttachedCluster in interface CreateAttachedClusterRequestOrBuilder
        Returns:
        The attachedCluster.
      • setAttachedCluster

        public CreateAttachedClusterRequest.Builder setAttachedCluster​(AttachedCluster value)
         Required. The specification of the
         [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] to create.
         
        .google.cloud.gkemulticloud.v1.AttachedCluster attached_cluster = 2 [(.google.api.field_behavior) = REQUIRED];
      • setAttachedCluster

        public CreateAttachedClusterRequest.Builder setAttachedCluster​(AttachedCluster.Builder builderForValue)
         Required. The specification of the
         [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] to create.
         
        .google.cloud.gkemulticloud.v1.AttachedCluster attached_cluster = 2 [(.google.api.field_behavior) = REQUIRED];
      • mergeAttachedCluster

        public CreateAttachedClusterRequest.Builder mergeAttachedCluster​(AttachedCluster value)
         Required. The specification of the
         [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] to create.
         
        .google.cloud.gkemulticloud.v1.AttachedCluster attached_cluster = 2 [(.google.api.field_behavior) = REQUIRED];
      • clearAttachedCluster

        public CreateAttachedClusterRequest.Builder clearAttachedCluster()
         Required. The specification of the
         [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] to create.
         
        .google.cloud.gkemulticloud.v1.AttachedCluster attached_cluster = 2 [(.google.api.field_behavior) = REQUIRED];
      • getAttachedClusterBuilder

        public AttachedCluster.Builder getAttachedClusterBuilder()
         Required. The specification of the
         [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] to create.
         
        .google.cloud.gkemulticloud.v1.AttachedCluster attached_cluster = 2 [(.google.api.field_behavior) = REQUIRED];
      • getAttachedClusterId

        public String getAttachedClusterId()
         Required. A client provided ID the resource. Must be unique within the
         parent resource.
        
         The provided ID will be part of the
         [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource
         name formatted as
         `projects/<project-id>/locations/<region>/attachedClusters/<cluster-id>`.
        
         Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters.
         
        string attached_cluster_id = 3 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getAttachedClusterId in interface CreateAttachedClusterRequestOrBuilder
        Returns:
        The attachedClusterId.
      • getAttachedClusterIdBytes

        public com.google.protobuf.ByteString getAttachedClusterIdBytes()
         Required. A client provided ID the resource. Must be unique within the
         parent resource.
        
         The provided ID will be part of the
         [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource
         name formatted as
         `projects/<project-id>/locations/<region>/attachedClusters/<cluster-id>`.
        
         Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters.
         
        string attached_cluster_id = 3 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        getAttachedClusterIdBytes in interface CreateAttachedClusterRequestOrBuilder
        Returns:
        The bytes for attachedClusterId.
      • setAttachedClusterId

        public CreateAttachedClusterRequest.Builder setAttachedClusterId​(String value)
         Required. A client provided ID the resource. Must be unique within the
         parent resource.
        
         The provided ID will be part of the
         [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource
         name formatted as
         `projects/<project-id>/locations/<region>/attachedClusters/<cluster-id>`.
        
         Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters.
         
        string attached_cluster_id = 3 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The attachedClusterId to set.
        Returns:
        This builder for chaining.
      • clearAttachedClusterId

        public CreateAttachedClusterRequest.Builder clearAttachedClusterId()
         Required. A client provided ID the resource. Must be unique within the
         parent resource.
        
         The provided ID will be part of the
         [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource
         name formatted as
         `projects/<project-id>/locations/<region>/attachedClusters/<cluster-id>`.
        
         Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters.
         
        string attached_cluster_id = 3 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        This builder for chaining.
      • setAttachedClusterIdBytes

        public CreateAttachedClusterRequest.Builder setAttachedClusterIdBytes​(com.google.protobuf.ByteString value)
         Required. A client provided ID the resource. Must be unique within the
         parent resource.
        
         The provided ID will be part of the
         [AttachedCluster][google.cloud.gkemulticloud.v1.AttachedCluster] resource
         name formatted as
         `projects/<project-id>/locations/<region>/attachedClusters/<cluster-id>`.
        
         Valid characters are `/[a-z][0-9]-/`. Cannot be longer than 63 characters.
         
        string attached_cluster_id = 3 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The bytes for attachedClusterId to set.
        Returns:
        This builder for chaining.
      • getValidateOnly

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

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

        public CreateAttachedClusterRequest.Builder clearValidateOnly()
         If set, only validate the request, but do not actually create the cluster.
         
        bool validate_only = 4;
        Returns:
        This builder for chaining.