Send feedback
Class WorkflowTemplatePlacement.Builder (4.12.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 4.12.0 keyboard_arrow_down
public static final class WorkflowTemplatePlacement . Builder extends GeneratedMessageV3 . Builder<WorkflowTemplatePlacement . Builder > implements WorkflowTemplatePlacementOrBuilder
Specifies workflow execution target.
Either managed_cluster
or cluster_selector
is required.
Protobuf type google.cloud.dataproc.v1.WorkflowTemplatePlacement
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors . Descriptor getDescriptor ()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public WorkflowTemplatePlacement . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Overrides
build()
public WorkflowTemplatePlacement build ()
buildPartial()
public WorkflowTemplatePlacement buildPartial ()
clear()
public WorkflowTemplatePlacement . Builder clear ()
Overrides
clearClusterSelector()
public WorkflowTemplatePlacement . Builder clearClusterSelector ()
Optional. A selector that chooses target cluster for jobs based
on metadata.
The selector is evaluated at the time each job is submitted.
.google.cloud.dataproc.v1.ClusterSelector cluster_selector = 2;
clearField(Descriptors.FieldDescriptor field)
public WorkflowTemplatePlacement . Builder clearField ( Descriptors . FieldDescriptor field )
Overrides
clearManagedCluster()
public WorkflowTemplatePlacement . Builder clearManagedCluster ()
A cluster that is managed by the workflow.
.google.cloud.dataproc.v1.ManagedCluster managed_cluster = 1;
clearOneof(Descriptors.OneofDescriptor oneof)
public WorkflowTemplatePlacement . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Overrides
clearPlacement()
public WorkflowTemplatePlacement . Builder clearPlacement ()
clone()
public WorkflowTemplatePlacement . Builder clone ()
Overrides
getClusterSelector()
public ClusterSelector getClusterSelector ()
Optional. A selector that chooses target cluster for jobs based
on metadata.
The selector is evaluated at the time each job is submitted.
.google.cloud.dataproc.v1.ClusterSelector cluster_selector = 2;
getClusterSelectorBuilder()
public ClusterSelector . Builder getClusterSelectorBuilder ()
Optional. A selector that chooses target cluster for jobs based
on metadata.
The selector is evaluated at the time each job is submitted.
.google.cloud.dataproc.v1.ClusterSelector cluster_selector = 2;
getClusterSelectorOrBuilder()
public ClusterSelectorOrBuilder getClusterSelectorOrBuilder ()
Optional. A selector that chooses target cluster for jobs based
on metadata.
The selector is evaluated at the time each job is submitted.
.google.cloud.dataproc.v1.ClusterSelector cluster_selector = 2;
getDefaultInstanceForType()
public WorkflowTemplatePlacement getDefaultInstanceForType ()
getDescriptorForType()
public Descriptors . Descriptor getDescriptorForType ()
Overrides
getManagedCluster()
public ManagedCluster getManagedCluster ()
A cluster that is managed by the workflow.
.google.cloud.dataproc.v1.ManagedCluster managed_cluster = 1;
getManagedClusterBuilder()
public ManagedCluster . Builder getManagedClusterBuilder ()
A cluster that is managed by the workflow.
.google.cloud.dataproc.v1.ManagedCluster managed_cluster = 1;
getManagedClusterOrBuilder()
public ManagedClusterOrBuilder getManagedClusterOrBuilder ()
A cluster that is managed by the workflow.
.google.cloud.dataproc.v1.ManagedCluster managed_cluster = 1;
getPlacementCase()
public WorkflowTemplatePlacement . PlacementCase getPlacementCase ()
hasClusterSelector()
public boolean hasClusterSelector ()
Optional. A selector that chooses target cluster for jobs based
on metadata.
The selector is evaluated at the time each job is submitted.
.google.cloud.dataproc.v1.ClusterSelector cluster_selector = 2;
Returns Type Description boolean
Whether the clusterSelector field is set.
hasManagedCluster()
public boolean hasManagedCluster ()
A cluster that is managed by the workflow.
.google.cloud.dataproc.v1.ManagedCluster managed_cluster = 1;
Returns Type Description boolean
Whether the managedCluster field is set.
internalGetFieldAccessorTable()
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
isInitialized()
public final boolean isInitialized ()
Overrides
mergeClusterSelector(ClusterSelector value)
public WorkflowTemplatePlacement . Builder mergeClusterSelector ( ClusterSelector value )
Optional. A selector that chooses target cluster for jobs based
on metadata.
The selector is evaluated at the time each job is submitted.
.google.cloud.dataproc.v1.ClusterSelector cluster_selector = 2;
mergeFrom(WorkflowTemplatePlacement other)
public WorkflowTemplatePlacement . Builder mergeFrom ( WorkflowTemplatePlacement other )
public WorkflowTemplatePlacement . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Overrides
mergeFrom(Message other)
public WorkflowTemplatePlacement . Builder mergeFrom ( Message other )
Parameter Name Description other
Message
Overrides
mergeManagedCluster(ManagedCluster value)
public WorkflowTemplatePlacement . Builder mergeManagedCluster ( ManagedCluster value )
A cluster that is managed by the workflow.
.google.cloud.dataproc.v1.ManagedCluster managed_cluster = 1;
mergeUnknownFields(UnknownFieldSet unknownFields)
public final WorkflowTemplatePlacement . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Overrides
setClusterSelector(ClusterSelector value)
public WorkflowTemplatePlacement . Builder setClusterSelector ( ClusterSelector value )
Optional. A selector that chooses target cluster for jobs based
on metadata.
The selector is evaluated at the time each job is submitted.
.google.cloud.dataproc.v1.ClusterSelector cluster_selector = 2;
setClusterSelector(ClusterSelector.Builder builderForValue)
public WorkflowTemplatePlacement . Builder setClusterSelector ( ClusterSelector . Builder builderForValue )
Optional. A selector that chooses target cluster for jobs based
on metadata.
The selector is evaluated at the time each job is submitted.
.google.cloud.dataproc.v1.ClusterSelector cluster_selector = 2;
setField(Descriptors.FieldDescriptor field, Object value)
public WorkflowTemplatePlacement . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Overrides
setManagedCluster(ManagedCluster value)
public WorkflowTemplatePlacement . Builder setManagedCluster ( ManagedCluster value )
A cluster that is managed by the workflow.
.google.cloud.dataproc.v1.ManagedCluster managed_cluster = 1;
setManagedCluster(ManagedCluster.Builder builderForValue)
public WorkflowTemplatePlacement . Builder setManagedCluster ( ManagedCluster . Builder builderForValue )
A cluster that is managed by the workflow.
.google.cloud.dataproc.v1.ManagedCluster managed_cluster = 1;
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public WorkflowTemplatePlacement . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final WorkflowTemplatePlacement . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-27 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-27 UTC."],[],[]]