public final class WorkflowTemplatePlacement extends GeneratedMessageV3 implements WorkflowTemplatePlacementOrBuilder
Specifies workflow execution target.
Either managed_cluster
or cluster_selector
is required.
Protobuf type google.cloud.dataproc.v1.WorkflowTemplatePlacement
Static Fields
CLUSTER_SELECTOR_FIELD_NUMBER
public static final int CLUSTER_SELECTOR_FIELD_NUMBER
Field Value
MANAGED_CLUSTER_FIELD_NUMBER
public static final int MANAGED_CLUSTER_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static WorkflowTemplatePlacement getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static WorkflowTemplatePlacement.Builder newBuilder()
Returns
newBuilder(WorkflowTemplatePlacement prototype)
public static WorkflowTemplatePlacement.Builder newBuilder(WorkflowTemplatePlacement prototype)
Parameter
Returns
public static WorkflowTemplatePlacement parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static WorkflowTemplatePlacement parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static WorkflowTemplatePlacement parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static WorkflowTemplatePlacement parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static WorkflowTemplatePlacement parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static WorkflowTemplatePlacement parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static WorkflowTemplatePlacement parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static WorkflowTemplatePlacement parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static WorkflowTemplatePlacement parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static WorkflowTemplatePlacement parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static WorkflowTemplatePlacement parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static WorkflowTemplatePlacement parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<WorkflowTemplatePlacement> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
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
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
getManagedCluster()
public ManagedCluster getManagedCluster()
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
getParserForType()
public Parser<WorkflowTemplatePlacement> getParserForType()
Returns
Overrides
getPlacementCase()
public WorkflowTemplatePlacement.PlacementCase getPlacementCase()
Returns
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
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.
|
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public WorkflowTemplatePlacement.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected WorkflowTemplatePlacement.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public WorkflowTemplatePlacement.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions