Class WorkflowTemplatePlacement.Builder (4.43.0)

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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public WorkflowTemplatePlacement.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
WorkflowTemplatePlacement.Builder
Overrides

build()

public WorkflowTemplatePlacement build()
Returns
Type Description
WorkflowTemplatePlacement

buildPartial()

public WorkflowTemplatePlacement buildPartial()
Returns
Type Description
WorkflowTemplatePlacement

clear()

public WorkflowTemplatePlacement.Builder clear()
Returns
Type Description
WorkflowTemplatePlacement.Builder
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;

Returns
Type Description
WorkflowTemplatePlacement.Builder

clearField(Descriptors.FieldDescriptor field)

public WorkflowTemplatePlacement.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
WorkflowTemplatePlacement.Builder
Overrides

clearManagedCluster()

public WorkflowTemplatePlacement.Builder clearManagedCluster()

A cluster that is managed by the workflow.

.google.cloud.dataproc.v1.ManagedCluster managed_cluster = 1;

Returns
Type Description
WorkflowTemplatePlacement.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public WorkflowTemplatePlacement.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
WorkflowTemplatePlacement.Builder
Overrides

clearPlacement()

public WorkflowTemplatePlacement.Builder clearPlacement()
Returns
Type Description
WorkflowTemplatePlacement.Builder

clone()

public WorkflowTemplatePlacement.Builder clone()
Returns
Type Description
WorkflowTemplatePlacement.Builder
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;

Returns
Type Description
ClusterSelector

The clusterSelector.

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;

Returns
Type Description
ClusterSelector.Builder

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;

Returns
Type Description
ClusterSelectorOrBuilder

getDefaultInstanceForType()

public WorkflowTemplatePlacement getDefaultInstanceForType()
Returns
Type Description
WorkflowTemplatePlacement

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getManagedCluster()

public ManagedCluster getManagedCluster()

A cluster that is managed by the workflow.

.google.cloud.dataproc.v1.ManagedCluster managed_cluster = 1;

Returns
Type Description
ManagedCluster

The managedCluster.

getManagedClusterBuilder()

public ManagedCluster.Builder getManagedClusterBuilder()

A cluster that is managed by the workflow.

.google.cloud.dataproc.v1.ManagedCluster managed_cluster = 1;

Returns
Type Description
ManagedCluster.Builder

getManagedClusterOrBuilder()

public ManagedClusterOrBuilder getManagedClusterOrBuilder()

A cluster that is managed by the workflow.

.google.cloud.dataproc.v1.ManagedCluster managed_cluster = 1;

Returns
Type Description
ManagedClusterOrBuilder

getPlacementCase()

public WorkflowTemplatePlacement.PlacementCase getPlacementCase()
Returns
Type Description
WorkflowTemplatePlacement.PlacementCase

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()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
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;

Parameter
Name Description
value ClusterSelector
Returns
Type Description
WorkflowTemplatePlacement.Builder

mergeFrom(WorkflowTemplatePlacement other)

public WorkflowTemplatePlacement.Builder mergeFrom(WorkflowTemplatePlacement other)
Parameter
Name Description
other WorkflowTemplatePlacement
Returns
Type Description
WorkflowTemplatePlacement.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public WorkflowTemplatePlacement.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
WorkflowTemplatePlacement.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public WorkflowTemplatePlacement.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
WorkflowTemplatePlacement.Builder
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;

Parameter
Name Description
value ManagedCluster
Returns
Type Description
WorkflowTemplatePlacement.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final WorkflowTemplatePlacement.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
WorkflowTemplatePlacement.Builder
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;

Parameter
Name Description
value ClusterSelector
Returns
Type Description
WorkflowTemplatePlacement.Builder

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;

Parameter
Name Description
builderForValue ClusterSelector.Builder
Returns
Type Description
WorkflowTemplatePlacement.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public WorkflowTemplatePlacement.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
WorkflowTemplatePlacement.Builder
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;

Parameter
Name Description
value ManagedCluster
Returns
Type Description
WorkflowTemplatePlacement.Builder

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;

Parameter
Name Description
builderForValue ManagedCluster.Builder
Returns
Type Description
WorkflowTemplatePlacement.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public WorkflowTemplatePlacement.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
WorkflowTemplatePlacement.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final WorkflowTemplatePlacement.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
WorkflowTemplatePlacement.Builder
Overrides