Package com.google.container.v1
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 Summary
Modifier and TypeMethodDescriptionbuild()clear()Required.The parent (project and location) where the cluster will be created.Deprecated.google.container.v1.CreateClusterRequest.project_id is deprecated.Deprecated.google.container.v1.CreateClusterRequest.zone is deprecated.Required.Required.Required.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe parent (project and location) where the cluster will be created.com.google.protobuf.ByteStringThe parent (project and location) where the cluster will be created.Deprecated.google.container.v1.CreateClusterRequest.project_id is deprecated.com.google.protobuf.ByteStringDeprecated.google.container.v1.CreateClusterRequest.project_id is deprecated.getZone()Deprecated.google.container.v1.CreateClusterRequest.zone is deprecated.com.google.protobuf.ByteStringDeprecated.google.container.v1.CreateClusterRequest.zone is deprecated.booleanRequired.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeCluster(Cluster value) Required.mergeFrom(CreateClusterRequest other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) setCluster(Cluster value) Required.setCluster(Cluster.Builder builderForValue) Required.The parent (project and location) where the cluster will be created.setParentBytes(com.google.protobuf.ByteString value) The parent (project and location) where the cluster will be created.setProjectId(String value) Deprecated.google.container.v1.CreateClusterRequest.project_id is deprecated.setProjectIdBytes(com.google.protobuf.ByteString value) Deprecated.google.container.v1.CreateClusterRequest.project_id is deprecated.Deprecated.google.container.v1.CreateClusterRequest.zone is deprecated.setZoneBytes(com.google.protobuf.ByteString value) Deprecated.google.container.v1.CreateClusterRequest.zone is deprecated.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<CreateClusterRequest.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<CreateClusterRequest.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<CreateClusterRequest.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<CreateClusterRequest.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<CreateClusterRequest.Builder>- Throws:
IOException
-
getProjectId
Deprecated.google.container.v1.CreateClusterRequest.project_id is deprecated. See google/container/v1/cluster_service.proto;l=4266Deprecated. 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:
getProjectIdin interfaceCreateClusterRequestOrBuilder- Returns:
- The projectId.
-
getProjectIdBytes
Deprecated.google.container.v1.CreateClusterRequest.project_id is deprecated. See google/container/v1/cluster_service.proto;l=4266Deprecated. 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:
getProjectIdBytesin interfaceCreateClusterRequestOrBuilder- Returns:
- The bytes for projectId.
-
setProjectId
Deprecated.google.container.v1.CreateClusterRequest.project_id is deprecated. See google/container/v1/cluster_service.proto;l=4266Deprecated. 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.google.container.v1.CreateClusterRequest.project_id is deprecated. See google/container/v1/cluster_service.proto;l=4266Deprecated. 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=4266Deprecated. 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.google.container.v1.CreateClusterRequest.zone is deprecated. See google/container/v1/cluster_service.proto;l=4272Deprecated. 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:
getZonein interfaceCreateClusterRequestOrBuilder- Returns:
- The zone.
-
getZoneBytes
Deprecated.google.container.v1.CreateClusterRequest.zone is deprecated. See google/container/v1/cluster_service.proto;l=4272Deprecated. 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:
getZoneBytesin interfaceCreateClusterRequestOrBuilder- Returns:
- The bytes for zone.
-
setZone
Deprecated.google.container.v1.CreateClusterRequest.zone is deprecated. See google/container/v1/cluster_service.proto;l=4272Deprecated. 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=4272Deprecated. 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.google.container.v1.CreateClusterRequest.zone is deprecated. See google/container/v1/cluster_service.proto;l=4272Deprecated. 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:
hasClusterin interfaceCreateClusterRequestOrBuilder- Returns:
- Whether the cluster field is set.
-
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:
getClusterin interfaceCreateClusterRequestOrBuilder- Returns:
- The cluster.
-
setCluster
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
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
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
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
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
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:
getClusterOrBuilderin interfaceCreateClusterRequestOrBuilder
-
getParent
The parent (project and location) where the cluster will be created. Specified in the format `projects/*/locations/*`.
string parent = 5;- Specified by:
getParentin interfaceCreateClusterRequestOrBuilder- 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:
getParentBytesin interfaceCreateClusterRequestOrBuilder- Returns:
- The bytes for parent.
-
setParent
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
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
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.
-