Package com.google.container.v1
Class CreateNodePoolRequest.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<CreateNodePoolRequest.Builder>
-
- com.google.container.v1.CreateNodePoolRequest.Builder
-
- All Implemented Interfaces:
CreateNodePoolRequestOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- CreateNodePoolRequest
public static final class CreateNodePoolRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<CreateNodePoolRequest.Builder> implements CreateNodePoolRequestOrBuilder
CreateNodePoolRequest creates a node pool for a cluster.
Protobuf typegoogle.container.v1.CreateNodePoolRequest
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description CreateNodePoolRequest.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
CreateNodePoolRequest
build()
CreateNodePoolRequest
buildPartial()
CreateNodePoolRequest.Builder
clear()
CreateNodePoolRequest.Builder
clearClusterId()
Deprecated.google.container.v1.CreateNodePoolRequest.cluster_id is deprecated.CreateNodePoolRequest.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
CreateNodePoolRequest.Builder
clearNodePool()
Required.CreateNodePoolRequest.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
CreateNodePoolRequest.Builder
clearParent()
The parent (project, location, cluster name) where the node pool will be created.CreateNodePoolRequest.Builder
clearProjectId()
Deprecated.google.container.v1.CreateNodePoolRequest.project_id is deprecated.CreateNodePoolRequest.Builder
clearZone()
Deprecated.google.container.v1.CreateNodePoolRequest.zone is deprecated.CreateNodePoolRequest.Builder
clone()
String
getClusterId()
Deprecated.google.container.v1.CreateNodePoolRequest.cluster_id is deprecated.com.google.protobuf.ByteString
getClusterIdBytes()
Deprecated.google.container.v1.CreateNodePoolRequest.cluster_id is deprecated.CreateNodePoolRequest
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
NodePool
getNodePool()
Required.NodePool.Builder
getNodePoolBuilder()
Required.NodePoolOrBuilder
getNodePoolOrBuilder()
Required.String
getParent()
The parent (project, location, cluster name) where the node pool will be created.com.google.protobuf.ByteString
getParentBytes()
The parent (project, location, cluster name) where the node pool will be created.String
getProjectId()
Deprecated.google.container.v1.CreateNodePoolRequest.project_id is deprecated.com.google.protobuf.ByteString
getProjectIdBytes()
Deprecated.google.container.v1.CreateNodePoolRequest.project_id is deprecated.String
getZone()
Deprecated.google.container.v1.CreateNodePoolRequest.zone is deprecated.com.google.protobuf.ByteString
getZoneBytes()
Deprecated.google.container.v1.CreateNodePoolRequest.zone is deprecated.boolean
hasNodePool()
Required.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
CreateNodePoolRequest.Builder
mergeFrom(CreateNodePoolRequest other)
CreateNodePoolRequest.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
CreateNodePoolRequest.Builder
mergeFrom(com.google.protobuf.Message other)
CreateNodePoolRequest.Builder
mergeNodePool(NodePool value)
Required.CreateNodePoolRequest.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
CreateNodePoolRequest.Builder
setClusterId(String value)
Deprecated.google.container.v1.CreateNodePoolRequest.cluster_id is deprecated.CreateNodePoolRequest.Builder
setClusterIdBytes(com.google.protobuf.ByteString value)
Deprecated.google.container.v1.CreateNodePoolRequest.cluster_id is deprecated.CreateNodePoolRequest.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
CreateNodePoolRequest.Builder
setNodePool(NodePool value)
Required.CreateNodePoolRequest.Builder
setNodePool(NodePool.Builder builderForValue)
Required.CreateNodePoolRequest.Builder
setParent(String value)
The parent (project, location, cluster name) where the node pool will be created.CreateNodePoolRequest.Builder
setParentBytes(com.google.protobuf.ByteString value)
The parent (project, location, cluster name) where the node pool will be created.CreateNodePoolRequest.Builder
setProjectId(String value)
Deprecated.google.container.v1.CreateNodePoolRequest.project_id is deprecated.CreateNodePoolRequest.Builder
setProjectIdBytes(com.google.protobuf.ByteString value)
Deprecated.google.container.v1.CreateNodePoolRequest.project_id is deprecated.CreateNodePoolRequest.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
CreateNodePoolRequest.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
CreateNodePoolRequest.Builder
setZone(String value)
Deprecated.google.container.v1.CreateNodePoolRequest.zone is deprecated.CreateNodePoolRequest.Builder
setZoneBytes(com.google.protobuf.ByteString value)
Deprecated.google.container.v1.CreateNodePoolRequest.zone is deprecated.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<CreateNodePoolRequest.Builder>
-
clear
public CreateNodePoolRequest.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<CreateNodePoolRequest.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<CreateNodePoolRequest.Builder>
-
getDefaultInstanceForType
public CreateNodePoolRequest getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public CreateNodePoolRequest build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public CreateNodePoolRequest buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public CreateNodePoolRequest.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<CreateNodePoolRequest.Builder>
-
setField
public CreateNodePoolRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<CreateNodePoolRequest.Builder>
-
clearField
public CreateNodePoolRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<CreateNodePoolRequest.Builder>
-
clearOneof
public CreateNodePoolRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<CreateNodePoolRequest.Builder>
-
setRepeatedField
public CreateNodePoolRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<CreateNodePoolRequest.Builder>
-
addRepeatedField
public CreateNodePoolRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<CreateNodePoolRequest.Builder>
-
mergeFrom
public CreateNodePoolRequest.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<CreateNodePoolRequest.Builder>
-
mergeFrom
public CreateNodePoolRequest.Builder mergeFrom(CreateNodePoolRequest other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<CreateNodePoolRequest.Builder>
-
mergeFrom
public CreateNodePoolRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<CreateNodePoolRequest.Builder>
- Throws:
IOException
-
getProjectId
@Deprecated public String getProjectId()
Deprecated.google.container.v1.CreateNodePoolRequest.project_id is deprecated. See google/container/v1/cluster_service.proto;l=3147Deprecated. 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 interfaceCreateNodePoolRequestOrBuilder
- Returns:
- The projectId.
-
getProjectIdBytes
@Deprecated public com.google.protobuf.ByteString getProjectIdBytes()
Deprecated.google.container.v1.CreateNodePoolRequest.project_id is deprecated. See google/container/v1/cluster_service.proto;l=3147Deprecated. 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 interfaceCreateNodePoolRequestOrBuilder
- Returns:
- The bytes for projectId.
-
setProjectId
@Deprecated public CreateNodePoolRequest.Builder setProjectId(String value)
Deprecated.google.container.v1.CreateNodePoolRequest.project_id is deprecated. See google/container/v1/cluster_service.proto;l=3147Deprecated. 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 CreateNodePoolRequest.Builder clearProjectId()
Deprecated.google.container.v1.CreateNodePoolRequest.project_id is deprecated. See google/container/v1/cluster_service.proto;l=3147Deprecated. 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 CreateNodePoolRequest.Builder setProjectIdBytes(com.google.protobuf.ByteString value)
Deprecated.google.container.v1.CreateNodePoolRequest.project_id is deprecated. See google/container/v1/cluster_service.proto;l=3147Deprecated. 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.CreateNodePoolRequest.zone is deprecated. See google/container/v1/cluster_service.proto;l=3153Deprecated. 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 interfaceCreateNodePoolRequestOrBuilder
- Returns:
- The zone.
-
getZoneBytes
@Deprecated public com.google.protobuf.ByteString getZoneBytes()
Deprecated.google.container.v1.CreateNodePoolRequest.zone is deprecated. See google/container/v1/cluster_service.proto;l=3153Deprecated. 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 interfaceCreateNodePoolRequestOrBuilder
- Returns:
- The bytes for zone.
-
setZone
@Deprecated public CreateNodePoolRequest.Builder setZone(String value)
Deprecated.google.container.v1.CreateNodePoolRequest.zone is deprecated. See google/container/v1/cluster_service.proto;l=3153Deprecated. 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 public CreateNodePoolRequest.Builder clearZone()
Deprecated.google.container.v1.CreateNodePoolRequest.zone is deprecated. See google/container/v1/cluster_service.proto;l=3153Deprecated. 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 CreateNodePoolRequest.Builder setZoneBytes(com.google.protobuf.ByteString value)
Deprecated.google.container.v1.CreateNodePoolRequest.zone is deprecated. See google/container/v1/cluster_service.proto;l=3153Deprecated. 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.
-
getClusterId
@Deprecated public String getClusterId()
Deprecated.google.container.v1.CreateNodePoolRequest.cluster_id is deprecated. See google/container/v1/cluster_service.proto;l=3157Deprecated. The name of the cluster. This field has been deprecated and replaced by the parent field.
string cluster_id = 3 [deprecated = true];
- Specified by:
getClusterId
in interfaceCreateNodePoolRequestOrBuilder
- Returns:
- The clusterId.
-
getClusterIdBytes
@Deprecated public com.google.protobuf.ByteString getClusterIdBytes()
Deprecated.google.container.v1.CreateNodePoolRequest.cluster_id is deprecated. See google/container/v1/cluster_service.proto;l=3157Deprecated. The name of the cluster. This field has been deprecated and replaced by the parent field.
string cluster_id = 3 [deprecated = true];
- Specified by:
getClusterIdBytes
in interfaceCreateNodePoolRequestOrBuilder
- Returns:
- The bytes for clusterId.
-
setClusterId
@Deprecated public CreateNodePoolRequest.Builder setClusterId(String value)
Deprecated.google.container.v1.CreateNodePoolRequest.cluster_id is deprecated. See google/container/v1/cluster_service.proto;l=3157Deprecated. The name of the cluster. This field has been deprecated and replaced by the parent field.
string cluster_id = 3 [deprecated = true];
- Parameters:
value
- The clusterId to set.- Returns:
- This builder for chaining.
-
clearClusterId
@Deprecated public CreateNodePoolRequest.Builder clearClusterId()
Deprecated.google.container.v1.CreateNodePoolRequest.cluster_id is deprecated. See google/container/v1/cluster_service.proto;l=3157Deprecated. The name of the cluster. This field has been deprecated and replaced by the parent field.
string cluster_id = 3 [deprecated = true];
- Returns:
- This builder for chaining.
-
setClusterIdBytes
@Deprecated public CreateNodePoolRequest.Builder setClusterIdBytes(com.google.protobuf.ByteString value)
Deprecated.google.container.v1.CreateNodePoolRequest.cluster_id is deprecated. See google/container/v1/cluster_service.proto;l=3157Deprecated. The name of the cluster. This field has been deprecated and replaced by the parent field.
string cluster_id = 3 [deprecated = true];
- Parameters:
value
- The bytes for clusterId to set.- Returns:
- This builder for chaining.
-
hasNodePool
public boolean hasNodePool()
Required. The node pool to create.
.google.container.v1.NodePool node_pool = 4 [(.google.api.field_behavior) = REQUIRED];
- Specified by:
hasNodePool
in interfaceCreateNodePoolRequestOrBuilder
- Returns:
- Whether the nodePool field is set.
-
getNodePool
public NodePool getNodePool()
Required. The node pool to create.
.google.container.v1.NodePool node_pool = 4 [(.google.api.field_behavior) = REQUIRED];
- Specified by:
getNodePool
in interfaceCreateNodePoolRequestOrBuilder
- Returns:
- The nodePool.
-
setNodePool
public CreateNodePoolRequest.Builder setNodePool(NodePool value)
Required. The node pool to create.
.google.container.v1.NodePool node_pool = 4 [(.google.api.field_behavior) = REQUIRED];
-
setNodePool
public CreateNodePoolRequest.Builder setNodePool(NodePool.Builder builderForValue)
Required. The node pool to create.
.google.container.v1.NodePool node_pool = 4 [(.google.api.field_behavior) = REQUIRED];
-
mergeNodePool
public CreateNodePoolRequest.Builder mergeNodePool(NodePool value)
Required. The node pool to create.
.google.container.v1.NodePool node_pool = 4 [(.google.api.field_behavior) = REQUIRED];
-
clearNodePool
public CreateNodePoolRequest.Builder clearNodePool()
Required. The node pool to create.
.google.container.v1.NodePool node_pool = 4 [(.google.api.field_behavior) = REQUIRED];
-
getNodePoolBuilder
public NodePool.Builder getNodePoolBuilder()
Required. The node pool to create.
.google.container.v1.NodePool node_pool = 4 [(.google.api.field_behavior) = REQUIRED];
-
getNodePoolOrBuilder
public NodePoolOrBuilder getNodePoolOrBuilder()
Required. The node pool to create.
.google.container.v1.NodePool node_pool = 4 [(.google.api.field_behavior) = REQUIRED];
- Specified by:
getNodePoolOrBuilder
in interfaceCreateNodePoolRequestOrBuilder
-
getParent
public String getParent()
The parent (project, location, cluster name) where the node pool will be created. Specified in the format `projects/*/locations/*/clusters/*`.
string parent = 6;
- Specified by:
getParent
in interfaceCreateNodePoolRequestOrBuilder
- Returns:
- The parent.
-
getParentBytes
public com.google.protobuf.ByteString getParentBytes()
The parent (project, location, cluster name) where the node pool will be created. Specified in the format `projects/*/locations/*/clusters/*`.
string parent = 6;
- Specified by:
getParentBytes
in interfaceCreateNodePoolRequestOrBuilder
- Returns:
- The bytes for parent.
-
setParent
public CreateNodePoolRequest.Builder setParent(String value)
The parent (project, location, cluster name) where the node pool will be created. Specified in the format `projects/*/locations/*/clusters/*`.
string parent = 6;
- Parameters:
value
- The parent to set.- Returns:
- This builder for chaining.
-
clearParent
public CreateNodePoolRequest.Builder clearParent()
The parent (project, location, cluster name) where the node pool will be created. Specified in the format `projects/*/locations/*/clusters/*`.
string parent = 6;
- Returns:
- This builder for chaining.
-
setParentBytes
public CreateNodePoolRequest.Builder setParentBytes(com.google.protobuf.ByteString value)
The parent (project, location, cluster name) where the node pool will be created. Specified in the format `projects/*/locations/*/clusters/*`.
string parent = 6;
- Parameters:
value
- The bytes for parent to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final CreateNodePoolRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<CreateNodePoolRequest.Builder>
-
mergeUnknownFields
public final CreateNodePoolRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<CreateNodePoolRequest.Builder>
-
-