Class ClusterOperation.Builder (4.24.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public ClusterOperation.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
ClusterOperation.Builder
Overrides

build()

public ClusterOperation build()
Returns
TypeDescription
ClusterOperation

buildPartial()

public ClusterOperation buildPartial()
Returns
TypeDescription
ClusterOperation

clear()

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

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public ClusterOperation.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
ClusterOperation.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public ClusterOperation.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
ClusterOperation.Builder

This builder for chaining.

clone()

public ClusterOperation.Builder clone()
Returns
TypeDescription
ClusterOperation.Builder
Overrides

getDefaultInstanceForType()

public ClusterOperation getDefaultInstanceForType()
Returns
TypeDescription
ClusterOperation

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ClusterOperation other)

public ClusterOperation.Builder mergeFrom(ClusterOperation other)
Parameter
NameDescription
otherClusterOperation
Returns
TypeDescription
ClusterOperation.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public ClusterOperation.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
ClusterOperation.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public ClusterOperation.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
ClusterOperation.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ClusterOperation.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueboolean

The done to set.

Returns
TypeDescription
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
NameDescription
valueString

The error to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for error to set.

Returns
TypeDescription
ClusterOperation.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public ClusterOperation.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The operationId to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for operationId to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ClusterOperation.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final ClusterOperation.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ClusterOperation.Builder
Overrides