Class ClusterOperation (4.36.0)

public final class ClusterOperation extends GeneratedMessageV3 implements ClusterOperationOrBuilder

The cluster operation triggered by a workflow.

Protobuf type google.cloud.dataproc.v1.ClusterOperation

Static Fields

DONE_FIELD_NUMBER

public static final int DONE_FIELD_NUMBER
Field Value
TypeDescription
int

ERROR_FIELD_NUMBER

public static final int ERROR_FIELD_NUMBER
Field Value
TypeDescription
int

OPERATION_ID_FIELD_NUMBER

public static final int OPERATION_ID_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static ClusterOperation getDefaultInstance()
Returns
TypeDescription
ClusterOperation

getDescriptor()

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

newBuilder()

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

newBuilder(ClusterOperation prototype)

public static ClusterOperation.Builder newBuilder(ClusterOperation prototype)
Parameter
NameDescription
prototypeClusterOperation
Returns
TypeDescription
ClusterOperation.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public ClusterOperation getDefaultInstanceForType()
Returns
TypeDescription
ClusterOperation

getDone()

public boolean getDone()

Output only. Indicates the operation is done.

bool done = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

The done.

getError()

public String getError()

Output only. Error, if operation failed.

string error = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
String

The error.

getErrorBytes()

public ByteString getErrorBytes()

Output only. Error, if operation failed.

string error = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for error.

getOperationId()

public String getOperationId()

Output only. The id of the cluster operation.

string operation_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
String

The operationId.

getOperationIdBytes()

public ByteString getOperationIdBytes()

Output only. The id of the cluster operation.

string operation_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for operationId.

getParserForType()

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

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 ClusterOperation.Builder newBuilderForType()
Returns
TypeDescription
ClusterOperation.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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