Class ClusterOperation.Builder (4.39.0)

public static final class ClusterOperation.Builder extends GeneratedMessageV3.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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ClusterOperation.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ClusterOperation.Builder
Overrides

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.

clearField(Descriptors.FieldDescriptor field)

public ClusterOperation.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
ClusterOperation.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public ClusterOperation.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
ClusterOperation.Builder
Overrides

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.

clone()

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

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 GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ClusterOperation.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
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.

setField(Descriptors.FieldDescriptor field, Object value)

public ClusterOperation.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
ClusterOperation.Builder
Overrides

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.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public ClusterOperation.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
ClusterOperation.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ClusterOperation.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
ClusterOperation.Builder
Overrides