Package com.google.cloud.dataproc.v1
Class GkeNodePoolTarget.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<GkeNodePoolTarget.Builder>
-
- com.google.cloud.dataproc.v1.GkeNodePoolTarget.Builder
-
- All Implemented Interfaces:
GkeNodePoolTargetOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- GkeNodePoolTarget
public static final class GkeNodePoolTarget.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<GkeNodePoolTarget.Builder> implements GkeNodePoolTargetOrBuilder
GKE node pools that Dataproc workloads run on.
Protobuf typegoogle.cloud.dataproc.v1.GkeNodePoolTarget
-
-
Method Summary
-
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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<GkeNodePoolTarget.Builder>
-
clear
public GkeNodePoolTarget.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<GkeNodePoolTarget.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.GeneratedMessageV3.Builder<GkeNodePoolTarget.Builder>
-
getDefaultInstanceForType
public GkeNodePoolTarget getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public GkeNodePoolTarget build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public GkeNodePoolTarget buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public GkeNodePoolTarget.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<GkeNodePoolTarget.Builder>
-
setField
public GkeNodePoolTarget.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<GkeNodePoolTarget.Builder>
-
clearField
public GkeNodePoolTarget.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<GkeNodePoolTarget.Builder>
-
clearOneof
public GkeNodePoolTarget.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<GkeNodePoolTarget.Builder>
-
setRepeatedField
public GkeNodePoolTarget.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<GkeNodePoolTarget.Builder>
-
addRepeatedField
public GkeNodePoolTarget.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<GkeNodePoolTarget.Builder>
-
mergeFrom
public GkeNodePoolTarget.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<GkeNodePoolTarget.Builder>
-
mergeFrom
public GkeNodePoolTarget.Builder mergeFrom(GkeNodePoolTarget other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<GkeNodePoolTarget.Builder>
-
mergeFrom
public GkeNodePoolTarget.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<GkeNodePoolTarget.Builder>- Throws:
IOException
-
getNodePool
public String getNodePool()
Required. The target GKE node pool. Format: 'projects/{project}/locations/{location}/clusters/{cluster}/nodePools/{node_pool}'string node_pool = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getNodePoolin interfaceGkeNodePoolTargetOrBuilder- Returns:
- The nodePool.
-
getNodePoolBytes
public com.google.protobuf.ByteString getNodePoolBytes()
Required. The target GKE node pool. Format: 'projects/{project}/locations/{location}/clusters/{cluster}/nodePools/{node_pool}'string node_pool = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getNodePoolBytesin interfaceGkeNodePoolTargetOrBuilder- Returns:
- The bytes for nodePool.
-
setNodePool
public GkeNodePoolTarget.Builder setNodePool(String value)
Required. The target GKE node pool. Format: 'projects/{project}/locations/{location}/clusters/{cluster}/nodePools/{node_pool}'string node_pool = 1 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The nodePool to set.- Returns:
- This builder for chaining.
-
clearNodePool
public GkeNodePoolTarget.Builder clearNodePool()
Required. The target GKE node pool. Format: 'projects/{project}/locations/{location}/clusters/{cluster}/nodePools/{node_pool}'string node_pool = 1 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setNodePoolBytes
public GkeNodePoolTarget.Builder setNodePoolBytes(com.google.protobuf.ByteString value)
Required. The target GKE node pool. Format: 'projects/{project}/locations/{location}/clusters/{cluster}/nodePools/{node_pool}'string node_pool = 1 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The bytes for nodePool to set.- Returns:
- This builder for chaining.
-
getRolesList
public List<GkeNodePoolTarget.Role> getRolesList()
Required. The roles associated with the GKE node pool.
repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getRolesListin interfaceGkeNodePoolTargetOrBuilder- Returns:
- A list containing the roles.
-
getRolesCount
public int getRolesCount()
Required. The roles associated with the GKE node pool.
repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getRolesCountin interfaceGkeNodePoolTargetOrBuilder- Returns:
- The count of roles.
-
getRoles
public GkeNodePoolTarget.Role getRoles(int index)
Required. The roles associated with the GKE node pool.
repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getRolesin interfaceGkeNodePoolTargetOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The roles at the given index.
-
setRoles
public GkeNodePoolTarget.Builder setRoles(int index, GkeNodePoolTarget.Role value)
Required. The roles associated with the GKE node pool.
repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED];- Parameters:
index- The index to set the value at.value- The roles to set.- Returns:
- This builder for chaining.
-
addRoles
public GkeNodePoolTarget.Builder addRoles(GkeNodePoolTarget.Role value)
Required. The roles associated with the GKE node pool.
repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The roles to add.- Returns:
- This builder for chaining.
-
addAllRoles
public GkeNodePoolTarget.Builder addAllRoles(Iterable<? extends GkeNodePoolTarget.Role> values)
Required. The roles associated with the GKE node pool.
repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED];- Parameters:
values- The roles to add.- Returns:
- This builder for chaining.
-
clearRoles
public GkeNodePoolTarget.Builder clearRoles()
Required. The roles associated with the GKE node pool.
repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
getRolesValueList
public List<Integer> getRolesValueList()
Required. The roles associated with the GKE node pool.
repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getRolesValueListin interfaceGkeNodePoolTargetOrBuilder- Returns:
- A list containing the enum numeric values on the wire for roles.
-
getRolesValue
public int getRolesValue(int index)
Required. The roles associated with the GKE node pool.
repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getRolesValuein interfaceGkeNodePoolTargetOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The enum numeric value on the wire of roles at the given index.
-
setRolesValue
public GkeNodePoolTarget.Builder setRolesValue(int index, int value)
Required. The roles associated with the GKE node pool.
repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED];- Parameters:
index- The index to set the value at.value- The enum numeric value on the wire for roles to set.- Returns:
- This builder for chaining.
-
addRolesValue
public GkeNodePoolTarget.Builder addRolesValue(int value)
Required. The roles associated with the GKE node pool.
repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The enum numeric value on the wire for roles to add.- Returns:
- This builder for chaining.
-
addAllRolesValue
public GkeNodePoolTarget.Builder addAllRolesValue(Iterable<Integer> values)
Required. The roles associated with the GKE node pool.
repeated .google.cloud.dataproc.v1.GkeNodePoolTarget.Role roles = 2 [(.google.api.field_behavior) = REQUIRED];- Parameters:
values- The enum numeric values on the wire for roles to add.- Returns:
- This builder for chaining.
-
hasNodePoolConfig
public boolean hasNodePoolConfig()
Input only. The configuration for the GKE node pool. If specified, Dataproc attempts to create a node pool with the specified shape. If one with the same name already exists, it is verified against all specified fields. If a field differs, the virtual cluster creation will fail. If omitted, any node pool with the specified name is used. If a node pool with the specified name does not exist, Dataproc create a node pool with default values. This is an input only field. It will not be returned by the API.
.google.cloud.dataproc.v1.GkeNodePoolConfig node_pool_config = 3 [(.google.api.field_behavior) = INPUT_ONLY];- Specified by:
hasNodePoolConfigin interfaceGkeNodePoolTargetOrBuilder- Returns:
- Whether the nodePoolConfig field is set.
-
getNodePoolConfig
public GkeNodePoolConfig getNodePoolConfig()
Input only. The configuration for the GKE node pool. If specified, Dataproc attempts to create a node pool with the specified shape. If one with the same name already exists, it is verified against all specified fields. If a field differs, the virtual cluster creation will fail. If omitted, any node pool with the specified name is used. If a node pool with the specified name does not exist, Dataproc create a node pool with default values. This is an input only field. It will not be returned by the API.
.google.cloud.dataproc.v1.GkeNodePoolConfig node_pool_config = 3 [(.google.api.field_behavior) = INPUT_ONLY];- Specified by:
getNodePoolConfigin interfaceGkeNodePoolTargetOrBuilder- Returns:
- The nodePoolConfig.
-
setNodePoolConfig
public GkeNodePoolTarget.Builder setNodePoolConfig(GkeNodePoolConfig value)
Input only. The configuration for the GKE node pool. If specified, Dataproc attempts to create a node pool with the specified shape. If one with the same name already exists, it is verified against all specified fields. If a field differs, the virtual cluster creation will fail. If omitted, any node pool with the specified name is used. If a node pool with the specified name does not exist, Dataproc create a node pool with default values. This is an input only field. It will not be returned by the API.
.google.cloud.dataproc.v1.GkeNodePoolConfig node_pool_config = 3 [(.google.api.field_behavior) = INPUT_ONLY];
-
setNodePoolConfig
public GkeNodePoolTarget.Builder setNodePoolConfig(GkeNodePoolConfig.Builder builderForValue)
Input only. The configuration for the GKE node pool. If specified, Dataproc attempts to create a node pool with the specified shape. If one with the same name already exists, it is verified against all specified fields. If a field differs, the virtual cluster creation will fail. If omitted, any node pool with the specified name is used. If a node pool with the specified name does not exist, Dataproc create a node pool with default values. This is an input only field. It will not be returned by the API.
.google.cloud.dataproc.v1.GkeNodePoolConfig node_pool_config = 3 [(.google.api.field_behavior) = INPUT_ONLY];
-
mergeNodePoolConfig
public GkeNodePoolTarget.Builder mergeNodePoolConfig(GkeNodePoolConfig value)
Input only. The configuration for the GKE node pool. If specified, Dataproc attempts to create a node pool with the specified shape. If one with the same name already exists, it is verified against all specified fields. If a field differs, the virtual cluster creation will fail. If omitted, any node pool with the specified name is used. If a node pool with the specified name does not exist, Dataproc create a node pool with default values. This is an input only field. It will not be returned by the API.
.google.cloud.dataproc.v1.GkeNodePoolConfig node_pool_config = 3 [(.google.api.field_behavior) = INPUT_ONLY];
-
clearNodePoolConfig
public GkeNodePoolTarget.Builder clearNodePoolConfig()
Input only. The configuration for the GKE node pool. If specified, Dataproc attempts to create a node pool with the specified shape. If one with the same name already exists, it is verified against all specified fields. If a field differs, the virtual cluster creation will fail. If omitted, any node pool with the specified name is used. If a node pool with the specified name does not exist, Dataproc create a node pool with default values. This is an input only field. It will not be returned by the API.
.google.cloud.dataproc.v1.GkeNodePoolConfig node_pool_config = 3 [(.google.api.field_behavior) = INPUT_ONLY];
-
getNodePoolConfigBuilder
public GkeNodePoolConfig.Builder getNodePoolConfigBuilder()
Input only. The configuration for the GKE node pool. If specified, Dataproc attempts to create a node pool with the specified shape. If one with the same name already exists, it is verified against all specified fields. If a field differs, the virtual cluster creation will fail. If omitted, any node pool with the specified name is used. If a node pool with the specified name does not exist, Dataproc create a node pool with default values. This is an input only field. It will not be returned by the API.
.google.cloud.dataproc.v1.GkeNodePoolConfig node_pool_config = 3 [(.google.api.field_behavior) = INPUT_ONLY];
-
getNodePoolConfigOrBuilder
public GkeNodePoolConfigOrBuilder getNodePoolConfigOrBuilder()
Input only. The configuration for the GKE node pool. If specified, Dataproc attempts to create a node pool with the specified shape. If one with the same name already exists, it is verified against all specified fields. If a field differs, the virtual cluster creation will fail. If omitted, any node pool with the specified name is used. If a node pool with the specified name does not exist, Dataproc create a node pool with default values. This is an input only field. It will not be returned by the API.
.google.cloud.dataproc.v1.GkeNodePoolConfig node_pool_config = 3 [(.google.api.field_behavior) = INPUT_ONLY];- Specified by:
getNodePoolConfigOrBuilderin interfaceGkeNodePoolTargetOrBuilder
-
setUnknownFields
public final GkeNodePoolTarget.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<GkeNodePoolTarget.Builder>
-
mergeUnknownFields
public final GkeNodePoolTarget.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<GkeNodePoolTarget.Builder>
-
-