Class CreateClusterRequest.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<CreateClusterRequest.Builder>
com.google.container.v1.CreateClusterRequest.Builder
All Implemented Interfaces:
CreateClusterRequestOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
CreateClusterRequest

public static final class CreateClusterRequest.Builder extends com.google.protobuf.GeneratedMessage.Builder<CreateClusterRequest.Builder> implements CreateClusterRequestOrBuilder
 CreateClusterRequest creates a cluster.
 
Protobuf type google.container.v1.CreateClusterRequest
  • 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<CreateClusterRequest.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<CreateClusterRequest.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<CreateClusterRequest.Builder>
    • getDefaultInstanceForType

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

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

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

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

      public CreateClusterRequest.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<CreateClusterRequest.Builder>
      Throws:
      IOException
    • getProjectId

      @Deprecated public String getProjectId()
      Deprecated.
      google.container.v1.CreateClusterRequest.project_id is deprecated. See google/container/v1/cluster_service.proto;l=4266
       Deprecated. The Google Developers Console [project ID or project
       number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
       This field has been deprecated and replaced by the parent field.
       
      string project_id = 1 [deprecated = true];
      Specified by:
      getProjectId in interface CreateClusterRequestOrBuilder
      Returns:
      The projectId.
    • getProjectIdBytes

      @Deprecated public com.google.protobuf.ByteString getProjectIdBytes()
      Deprecated.
      google.container.v1.CreateClusterRequest.project_id is deprecated. See google/container/v1/cluster_service.proto;l=4266
       Deprecated. The Google Developers Console [project ID or project
       number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
       This field has been deprecated and replaced by the parent field.
       
      string project_id = 1 [deprecated = true];
      Specified by:
      getProjectIdBytes in interface CreateClusterRequestOrBuilder
      Returns:
      The bytes for projectId.
    • setProjectId

      @Deprecated public CreateClusterRequest.Builder setProjectId(String value)
      Deprecated.
      google.container.v1.CreateClusterRequest.project_id is deprecated. See google/container/v1/cluster_service.proto;l=4266
       Deprecated. The Google Developers Console [project ID or project
       number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
       This field has been deprecated and replaced by the parent field.
       
      string project_id = 1 [deprecated = true];
      Parameters:
      value - The projectId to set.
      Returns:
      This builder for chaining.
    • clearProjectId

      @Deprecated public CreateClusterRequest.Builder clearProjectId()
      Deprecated.
      google.container.v1.CreateClusterRequest.project_id is deprecated. See google/container/v1/cluster_service.proto;l=4266
       Deprecated. The Google Developers Console [project ID or project
       number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
       This field has been deprecated and replaced by the parent field.
       
      string project_id = 1 [deprecated = true];
      Returns:
      This builder for chaining.
    • setProjectIdBytes

      @Deprecated public CreateClusterRequest.Builder setProjectIdBytes(com.google.protobuf.ByteString value)
      Deprecated.
      google.container.v1.CreateClusterRequest.project_id is deprecated. See google/container/v1/cluster_service.proto;l=4266
       Deprecated. The Google Developers Console [project ID or project
       number](https://cloud.google.com/resource-manager/docs/creating-managing-projects).
       This field has been deprecated and replaced by the parent field.
       
      string project_id = 1 [deprecated = true];
      Parameters:
      value - The bytes for projectId to set.
      Returns:
      This builder for chaining.
    • getZone

      @Deprecated public String getZone()
      Deprecated.
      google.container.v1.CreateClusterRequest.zone is deprecated. See google/container/v1/cluster_service.proto;l=4272
       Deprecated. The name of the Google Compute Engine
       [zone](https://cloud.google.com/compute/docs/zones#available)
       in which the cluster resides. This field has been deprecated and replaced
       by the parent field.
       
      string zone = 2 [deprecated = true];
      Specified by:
      getZone in interface CreateClusterRequestOrBuilder
      Returns:
      The zone.
    • getZoneBytes

      @Deprecated public com.google.protobuf.ByteString getZoneBytes()
      Deprecated.
      google.container.v1.CreateClusterRequest.zone is deprecated. See google/container/v1/cluster_service.proto;l=4272
       Deprecated. The name of the Google Compute Engine
       [zone](https://cloud.google.com/compute/docs/zones#available)
       in which the cluster resides. This field has been deprecated and replaced
       by the parent field.
       
      string zone = 2 [deprecated = true];
      Specified by:
      getZoneBytes in interface CreateClusterRequestOrBuilder
      Returns:
      The bytes for zone.
    • setZone

      Deprecated.
      google.container.v1.CreateClusterRequest.zone is deprecated. See google/container/v1/cluster_service.proto;l=4272
       Deprecated. The name of the Google Compute Engine
       [zone](https://cloud.google.com/compute/docs/zones#available)
       in which the cluster resides. This field has been deprecated and replaced
       by the parent field.
       
      string zone = 2 [deprecated = true];
      Parameters:
      value - The zone to set.
      Returns:
      This builder for chaining.
    • clearZone

      Deprecated.
      google.container.v1.CreateClusterRequest.zone is deprecated. See google/container/v1/cluster_service.proto;l=4272
       Deprecated. The name of the Google Compute Engine
       [zone](https://cloud.google.com/compute/docs/zones#available)
       in which the cluster resides. This field has been deprecated and replaced
       by the parent field.
       
      string zone = 2 [deprecated = true];
      Returns:
      This builder for chaining.
    • setZoneBytes

      @Deprecated public CreateClusterRequest.Builder setZoneBytes(com.google.protobuf.ByteString value)
      Deprecated.
      google.container.v1.CreateClusterRequest.zone is deprecated. See google/container/v1/cluster_service.proto;l=4272
       Deprecated. The name of the Google Compute Engine
       [zone](https://cloud.google.com/compute/docs/zones#available)
       in which the cluster resides. This field has been deprecated and replaced
       by the parent field.
       
      string zone = 2 [deprecated = true];
      Parameters:
      value - The bytes for zone to set.
      Returns:
      This builder for chaining.
    • hasCluster

      public boolean hasCluster()
       Required. A [cluster
       resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.locations.clusters)
       
      .google.container.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      hasCluster in interface CreateClusterRequestOrBuilder
      Returns:
      Whether the cluster field is set.
    • getCluster

      public Cluster getCluster()
       Required. A [cluster
       resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.locations.clusters)
       
      .google.container.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getCluster in interface CreateClusterRequestOrBuilder
      Returns:
      The cluster.
    • setCluster

      public CreateClusterRequest.Builder setCluster(Cluster value)
       Required. A [cluster
       resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.locations.clusters)
       
      .google.container.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED];
    • setCluster

      public CreateClusterRequest.Builder setCluster(Cluster.Builder builderForValue)
       Required. A [cluster
       resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.locations.clusters)
       
      .google.container.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED];
    • mergeCluster

      public CreateClusterRequest.Builder mergeCluster(Cluster value)
       Required. A [cluster
       resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.locations.clusters)
       
      .google.container.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED];
    • clearCluster

      public CreateClusterRequest.Builder clearCluster()
       Required. A [cluster
       resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.locations.clusters)
       
      .google.container.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED];
    • getClusterBuilder

      public Cluster.Builder getClusterBuilder()
       Required. A [cluster
       resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.locations.clusters)
       
      .google.container.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED];
    • getClusterOrBuilder

      public ClusterOrBuilder getClusterOrBuilder()
       Required. A [cluster
       resource](https://cloud.google.com/container-engine/reference/rest/v1/projects.locations.clusters)
       
      .google.container.v1.Cluster cluster = 3 [(.google.api.field_behavior) = REQUIRED];
      Specified by:
      getClusterOrBuilder in interface CreateClusterRequestOrBuilder
    • getParent

      public String getParent()
       The parent (project and location) where the cluster will be created.
       Specified in the format `projects/*/locations/*`.
       
      string parent = 5;
      Specified by:
      getParent in interface CreateClusterRequestOrBuilder
      Returns:
      The parent.
    • getParentBytes

      public com.google.protobuf.ByteString getParentBytes()
       The parent (project and location) where the cluster will be created.
       Specified in the format `projects/*/locations/*`.
       
      string parent = 5;
      Specified by:
      getParentBytes in interface CreateClusterRequestOrBuilder
      Returns:
      The bytes for parent.
    • setParent

      public CreateClusterRequest.Builder setParent(String value)
       The parent (project and location) where the cluster will be created.
       Specified in the format `projects/*/locations/*`.
       
      string parent = 5;
      Parameters:
      value - The parent to set.
      Returns:
      This builder for chaining.
    • clearParent

      public CreateClusterRequest.Builder clearParent()
       The parent (project and location) where the cluster will be created.
       Specified in the format `projects/*/locations/*`.
       
      string parent = 5;
      Returns:
      This builder for chaining.
    • setParentBytes

      public CreateClusterRequest.Builder setParentBytes(com.google.protobuf.ByteString value)
       The parent (project and location) where the cluster will be created.
       Specified in the format `projects/*/locations/*`.
       
      string parent = 5;
      Parameters:
      value - The bytes for parent to set.
      Returns:
      This builder for chaining.