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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<GkeNodePoolTarget.Builder>
-
clear
public GkeNodePoolTarget.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<GkeNodePoolTarget.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<GkeNodePoolTarget.Builder>
-
getDefaultInstanceForType
public GkeNodePoolTarget getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public GkeNodePoolTarget build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public GkeNodePoolTarget buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public GkeNodePoolTarget.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<GkeNodePoolTarget.Builder>
-
setField
public GkeNodePoolTarget.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<GkeNodePoolTarget.Builder>
-
clearField
public GkeNodePoolTarget.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<GkeNodePoolTarget.Builder>
-
clearOneof
public GkeNodePoolTarget.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<GkeNodePoolTarget.Builder>
-
setRepeatedField
public GkeNodePoolTarget.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<GkeNodePoolTarget.Builder>
-
addRepeatedField
public GkeNodePoolTarget.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<GkeNodePoolTarget.Builder>
-
mergeFrom
public GkeNodePoolTarget.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<GkeNodePoolTarget.Builder>
-
mergeFrom
public GkeNodePoolTarget.Builder mergeFrom(GkeNodePoolTarget other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
getNodePool
in 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:
getNodePoolBytes
in 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:
getRolesList
in 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:
getRolesCount
in 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:
getRoles
in 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:
getRolesValueList
in 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:
getRolesValue
in 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:
hasNodePoolConfig
in 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:
getNodePoolConfig
in 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:
getNodePoolConfigOrBuilder
in interfaceGkeNodePoolTargetOrBuilder
-
setUnknownFields
public final GkeNodePoolTarget.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<GkeNodePoolTarget.Builder>
-
mergeUnknownFields
public final GkeNodePoolTarget.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<GkeNodePoolTarget.Builder>
-
-