Class WorkflowTemplatePlacement (4.5.0)

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
TypeDescription
int

MANAGED_CLUSTER_FIELD_NUMBER

public static final int MANAGED_CLUSTER_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static WorkflowTemplatePlacement getDefaultInstance()
Returns
TypeDescription
WorkflowTemplatePlacement

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static WorkflowTemplatePlacement.Builder newBuilder()
Returns
TypeDescription
WorkflowTemplatePlacement.Builder

newBuilder(WorkflowTemplatePlacement prototype)

public static WorkflowTemplatePlacement.Builder newBuilder(WorkflowTemplatePlacement prototype)
Parameter
NameDescription
prototypeWorkflowTemplatePlacement
Returns
TypeDescription
WorkflowTemplatePlacement.Builder

parseDelimitedFrom(InputStream input)

public static WorkflowTemplatePlacement parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
WorkflowTemplatePlacement
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static WorkflowTemplatePlacement parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
WorkflowTemplatePlacement
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static WorkflowTemplatePlacement parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
WorkflowTemplatePlacement
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static WorkflowTemplatePlacement parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
WorkflowTemplatePlacement
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static WorkflowTemplatePlacement parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
WorkflowTemplatePlacement
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static WorkflowTemplatePlacement parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
WorkflowTemplatePlacement
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static WorkflowTemplatePlacement parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
WorkflowTemplatePlacement
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static WorkflowTemplatePlacement parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
WorkflowTemplatePlacement
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static WorkflowTemplatePlacement parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
WorkflowTemplatePlacement
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static WorkflowTemplatePlacement parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
WorkflowTemplatePlacement
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static WorkflowTemplatePlacement parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
WorkflowTemplatePlacement
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static WorkflowTemplatePlacement parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
WorkflowTemplatePlacement
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<WorkflowTemplatePlacement> parser()
Returns
TypeDescription
Parser<WorkflowTemplatePlacement>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
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.

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

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.

getManagedClusterOrBuilder()

public ManagedClusterOrBuilder getManagedClusterOrBuilder()

A cluster that is managed by the workflow.

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

Returns
TypeDescription
ManagedClusterOrBuilder

getParserForType()

public Parser<WorkflowTemplatePlacement> getParserForType()
Returns
TypeDescription
Parser<WorkflowTemplatePlacement>
Overrides

getPlacementCase()

public WorkflowTemplatePlacement.PlacementCase getPlacementCase()
Returns
TypeDescription
WorkflowTemplatePlacement.PlacementCase

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
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
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.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected WorkflowTemplatePlacement.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
WorkflowTemplatePlacement.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

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

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides Exceptions
TypeDescription
IOException