Class WorkflowTemplatePlacement.Builder (4.6.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public WorkflowTemplatePlacement.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
WorkflowTemplatePlacement.Builder
Overrides

build()

public WorkflowTemplatePlacement build()
Returns
TypeDescription
WorkflowTemplatePlacement

buildPartial()

public WorkflowTemplatePlacement buildPartial()
Returns
TypeDescription
WorkflowTemplatePlacement

clear()

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

clearField(Descriptors.FieldDescriptor field)

public WorkflowTemplatePlacement.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
WorkflowTemplatePlacement.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public WorkflowTemplatePlacement.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
WorkflowTemplatePlacement.Builder
Overrides

clearPlacement()

public WorkflowTemplatePlacement.Builder clearPlacement()
Returns
TypeDescription
WorkflowTemplatePlacement.Builder

clone()

public WorkflowTemplatePlacement.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
ClusterSelectorOrBuilder

getDefaultInstanceForType()

public WorkflowTemplatePlacement getDefaultInstanceForType()
Returns
TypeDescription
WorkflowTemplatePlacement

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getManagedCluster()

public ManagedCluster getManagedCluster()

A cluster that is managed by the workflow.

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

Returns
TypeDescription
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
TypeDescription
ManagedCluster.Builder

getManagedClusterOrBuilder()

public ManagedClusterOrBuilder getManagedClusterOrBuilder()

A cluster that is managed by the workflow.

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

Returns
TypeDescription
ManagedClusterOrBuilder

getPlacementCase()

public WorkflowTemplatePlacement.PlacementCase getPlacementCase()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the managedCluster field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueClusterSelector
Returns
TypeDescription
WorkflowTemplatePlacement.Builder

mergeFrom(WorkflowTemplatePlacement other)

public WorkflowTemplatePlacement.Builder mergeFrom(WorkflowTemplatePlacement other)
Parameter
NameDescription
otherWorkflowTemplatePlacement
Returns
TypeDescription
WorkflowTemplatePlacement.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public WorkflowTemplatePlacement.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
WorkflowTemplatePlacement.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public WorkflowTemplatePlacement.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueManagedCluster
Returns
TypeDescription
WorkflowTemplatePlacement.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final WorkflowTemplatePlacement.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueClusterSelector
Returns
TypeDescription
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
NameDescription
builderForValueClusterSelector.Builder
Returns
TypeDescription
WorkflowTemplatePlacement.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public WorkflowTemplatePlacement.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueManagedCluster
Returns
TypeDescription
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
NameDescription
builderForValueManagedCluster.Builder
Returns
TypeDescription
WorkflowTemplatePlacement.Builder

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

public WorkflowTemplatePlacement.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
WorkflowTemplatePlacement.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final WorkflowTemplatePlacement.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
WorkflowTemplatePlacement.Builder
Overrides