Class ClusterOperation.Builder (4.80.0)

public static final class ClusterOperation.Builder extends GeneratedMessage.Builder<ClusterOperation.Builder> implements ClusterOperationOrBuilder

The cluster operation triggered by a workflow.

Protobuf type google.cloud.dataproc.v1.ClusterOperation

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public ClusterOperation build()
Returns
Type Description
ClusterOperation

buildPartial()

public ClusterOperation buildPartial()
Returns
Type Description
ClusterOperation

clear()

public ClusterOperation.Builder clear()
Returns
Type Description
ClusterOperation.Builder
Overrides

clearDone()

public ClusterOperation.Builder clearDone()

Output only. Indicates the operation is done.

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

Returns
Type Description
ClusterOperation.Builder

This builder for chaining.

clearError()

public ClusterOperation.Builder clearError()

Output only. Error, if operation failed.

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

Returns
Type Description
ClusterOperation.Builder

This builder for chaining.

clearOperationId()

public ClusterOperation.Builder clearOperationId()

Output only. The id of the cluster operation.

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

Returns
Type Description
ClusterOperation.Builder

This builder for chaining.

getDefaultInstanceForType()

public ClusterOperation getDefaultInstanceForType()
Returns
Type Description
ClusterOperation

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getDone()

public boolean getDone()

Output only. Indicates the operation is done.

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

Returns
Type Description
boolean

The done.

getError()

public String getError()

Output only. Error, if operation failed.

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

Returns
Type Description
String

The error.

getErrorBytes()

public ByteString getErrorBytes()

Output only. Error, if operation failed.

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

Returns
Type Description
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
Type Description
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
Type Description
ByteString

The bytes for operationId.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(ClusterOperation other)

public ClusterOperation.Builder mergeFrom(ClusterOperation other)
Parameter
Name Description
other ClusterOperation
Returns
Type Description
ClusterOperation.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ClusterOperation.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
ClusterOperation.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public ClusterOperation.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
ClusterOperation.Builder
Overrides

setDone(boolean value)

public ClusterOperation.Builder setDone(boolean value)

Output only. Indicates the operation is done.

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

Parameter
Name Description
value boolean

The done to set.

Returns
Type Description
ClusterOperation.Builder

This builder for chaining.

setError(String value)

public ClusterOperation.Builder setError(String value)

Output only. Error, if operation failed.

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

Parameter
Name Description
value String

The error to set.

Returns
Type Description
ClusterOperation.Builder

This builder for chaining.

setErrorBytes(ByteString value)

public ClusterOperation.Builder setErrorBytes(ByteString value)

Output only. Error, if operation failed.

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

Parameter
Name Description
value ByteString

The bytes for error to set.

Returns
Type Description
ClusterOperation.Builder

This builder for chaining.

setOperationId(String value)

public ClusterOperation.Builder setOperationId(String value)

Output only. The id of the cluster operation.

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

Parameter
Name Description
value String

The operationId to set.

Returns
Type Description
ClusterOperation.Builder

This builder for chaining.

setOperationIdBytes(ByteString value)

public ClusterOperation.Builder setOperationIdBytes(ByteString value)

Output only. The id of the cluster operation.

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

Parameter
Name Description
value ByteString

The bytes for operationId to set.

Returns
Type Description
ClusterOperation.Builder

This builder for chaining.