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
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public WorkflowTemplatePlacement.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public WorkflowTemplatePlacement build()
Returns
buildPartial()
public WorkflowTemplatePlacement buildPartial()
Returns
clear()
public WorkflowTemplatePlacement.Builder clear()
Returns
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
clearField(Descriptors.FieldDescriptor field)
public WorkflowTemplatePlacement.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearManagedCluster()
public WorkflowTemplatePlacement.Builder clearManagedCluster()
A cluster that is managed by the workflow.
.google.cloud.dataproc.v1.ManagedCluster managed_cluster = 1;
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public WorkflowTemplatePlacement.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearPlacement()
public WorkflowTemplatePlacement.Builder clearPlacement()
Returns
clone()
public WorkflowTemplatePlacement.Builder clone()
Returns
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
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
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
getDefaultInstanceForType()
public WorkflowTemplatePlacement getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getManagedCluster()
public ManagedCluster getManagedCluster()
A cluster that is managed by the workflow.
.google.cloud.dataproc.v1.ManagedCluster managed_cluster = 1;
Returns
getManagedClusterBuilder()
public ManagedCluster.Builder getManagedClusterBuilder()
A cluster that is managed by the workflow.
.google.cloud.dataproc.v1.ManagedCluster managed_cluster = 1;
Returns
getManagedClusterOrBuilder()
public ManagedClusterOrBuilder getManagedClusterOrBuilder()
A cluster that is managed by the workflow.
.google.cloud.dataproc.v1.ManagedCluster managed_cluster = 1;
Returns
getPlacementCase()
public WorkflowTemplatePlacement.PlacementCase getPlacementCase()
Returns
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
Overrides
isInitialized()
public final boolean isInitialized()
Returns
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
Returns
mergeFrom(WorkflowTemplatePlacement other)
public WorkflowTemplatePlacement.Builder mergeFrom(WorkflowTemplatePlacement other)
Parameter
Returns
public WorkflowTemplatePlacement.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public WorkflowTemplatePlacement.Builder mergeFrom(Message other)
Parameter
Returns
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
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final WorkflowTemplatePlacement.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
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
Returns
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
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public WorkflowTemplatePlacement.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
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
Returns
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
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public WorkflowTemplatePlacement.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final WorkflowTemplatePlacement.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides