Class ClusterOperationMetadata.Builder (4.2.0)

public static final class ClusterOperationMetadata.Builder extends GeneratedMessageV3.Builder<ClusterOperationMetadata.Builder> implements ClusterOperationMetadataOrBuilder

Metadata describing the operation.

Protobuf type google.cloud.dataproc.v1.ClusterOperationMetadata

Static Methods

getDescriptor()

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

Methods

addAllStatusHistory(Iterable<? extends ClusterOperationStatus> values)

public ClusterOperationMetadata.Builder addAllStatusHistory(Iterable<? extends ClusterOperationStatus> values)

Output only. The previous operation status.

repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.dataproc.v1.ClusterOperationStatus>
Returns
TypeDescription
ClusterOperationMetadata.Builder

addAllWarnings(Iterable<String> values)

public ClusterOperationMetadata.Builder addAllWarnings(Iterable<String> values)

Output only. Errors encountered during operation execution.

repeated string warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valuesIterable<String>

The warnings to add.

Returns
TypeDescription
ClusterOperationMetadata.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addStatusHistory(ClusterOperationStatus value)

public ClusterOperationMetadata.Builder addStatusHistory(ClusterOperationStatus value)

Output only. The previous operation status.

repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueClusterOperationStatus
Returns
TypeDescription
ClusterOperationMetadata.Builder

addStatusHistory(ClusterOperationStatus.Builder builderForValue)

public ClusterOperationMetadata.Builder addStatusHistory(ClusterOperationStatus.Builder builderForValue)

Output only. The previous operation status.

repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueClusterOperationStatus.Builder
Returns
TypeDescription
ClusterOperationMetadata.Builder

addStatusHistory(int index, ClusterOperationStatus value)

public ClusterOperationMetadata.Builder addStatusHistory(int index, ClusterOperationStatus value)

Output only. The previous operation status.

repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
NameDescription
indexint
valueClusterOperationStatus
Returns
TypeDescription
ClusterOperationMetadata.Builder

addStatusHistory(int index, ClusterOperationStatus.Builder builderForValue)

public ClusterOperationMetadata.Builder addStatusHistory(int index, ClusterOperationStatus.Builder builderForValue)

Output only. The previous operation status.

repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
NameDescription
indexint
builderForValueClusterOperationStatus.Builder
Returns
TypeDescription
ClusterOperationMetadata.Builder

addStatusHistoryBuilder()

public ClusterOperationStatus.Builder addStatusHistoryBuilder()

Output only. The previous operation status.

repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ClusterOperationStatus.Builder

addStatusHistoryBuilder(int index)

public ClusterOperationStatus.Builder addStatusHistoryBuilder(int index)

Output only. The previous operation status.

repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
indexint
Returns
TypeDescription
ClusterOperationStatus.Builder

addWarnings(String value)

public ClusterOperationMetadata.Builder addWarnings(String value)

Output only. Errors encountered during operation execution.

repeated string warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueString

The warnings to add.

Returns
TypeDescription
ClusterOperationMetadata.Builder

This builder for chaining.

addWarningsBytes(ByteString value)

public ClusterOperationMetadata.Builder addWarningsBytes(ByteString value)

Output only. Errors encountered during operation execution.

repeated string warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueByteString

The bytes of the warnings to add.

Returns
TypeDescription
ClusterOperationMetadata.Builder

This builder for chaining.

build()

public ClusterOperationMetadata build()
Returns
TypeDescription
ClusterOperationMetadata

buildPartial()

public ClusterOperationMetadata buildPartial()
Returns
TypeDescription
ClusterOperationMetadata

clear()

public ClusterOperationMetadata.Builder clear()
Returns
TypeDescription
ClusterOperationMetadata.Builder
Overrides

clearClusterName()

public ClusterOperationMetadata.Builder clearClusterName()

Output only. Name of the cluster for the operation.

string cluster_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ClusterOperationMetadata.Builder

This builder for chaining.

clearClusterUuid()

public ClusterOperationMetadata.Builder clearClusterUuid()

Output only. Cluster UUID for the operation.

string cluster_uuid = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ClusterOperationMetadata.Builder

This builder for chaining.

clearDescription()

public ClusterOperationMetadata.Builder clearDescription()

Output only. Short description of operation.

string description = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ClusterOperationMetadata.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearLabels()

public ClusterOperationMetadata.Builder clearLabels()
Returns
TypeDescription
ClusterOperationMetadata.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public ClusterOperationMetadata.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
ClusterOperationMetadata.Builder
Overrides

clearOperationType()

public ClusterOperationMetadata.Builder clearOperationType()

Output only. The operation type.

string operation_type = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ClusterOperationMetadata.Builder

This builder for chaining.

clearStatus()

public ClusterOperationMetadata.Builder clearStatus()

Output only. Current operation status.

.google.cloud.dataproc.v1.ClusterOperationStatus status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ClusterOperationMetadata.Builder

clearStatusHistory()

public ClusterOperationMetadata.Builder clearStatusHistory()

Output only. The previous operation status.

repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ClusterOperationMetadata.Builder

clearWarnings()

public ClusterOperationMetadata.Builder clearWarnings()

Output only. Errors encountered during operation execution.

repeated string warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ClusterOperationMetadata.Builder

This builder for chaining.

clone()

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

containsLabels(String key)

public boolean containsLabels(String key)

Output only. Labels associated with the operation

map<string, string> labels = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

getClusterName()

public String getClusterName()

Output only. Name of the cluster for the operation.

string cluster_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
String

The clusterName.

getClusterNameBytes()

public ByteString getClusterNameBytes()

Output only. Name of the cluster for the operation.

string cluster_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for clusterName.

getClusterUuid()

public String getClusterUuid()

Output only. Cluster UUID for the operation.

string cluster_uuid = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
String

The clusterUuid.

getClusterUuidBytes()

public ByteString getClusterUuidBytes()

Output only. Cluster UUID for the operation.

string cluster_uuid = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for clusterUuid.

getDefaultInstanceForType()

public ClusterOperationMetadata getDefaultInstanceForType()
Returns
TypeDescription
ClusterOperationMetadata

getDescription()

public String getDescription()

Output only. Short description of operation.

string description = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Output only. Short description of operation.

string description = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getLabels()

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
TypeDescription
Map<String,String>

getLabelsCount()

public int getLabelsCount()

Output only. Labels associated with the operation

map<string, string> labels = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
int

getLabelsMap()

public Map<String,String> getLabelsMap()

Output only. Labels associated with the operation

map<string, string> labels = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

public String getLabelsOrDefault(String key, String defaultValue)

Output only. Labels associated with the operation

map<string, string> labels = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getLabelsOrThrow(String key)

public String getLabelsOrThrow(String key)

Output only. Labels associated with the operation

map<string, string> labels = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
keyString
Returns
TypeDescription
String

getMutableLabels()

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,String>

getOperationType()

public String getOperationType()

Output only. The operation type.

string operation_type = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
String

The operationType.

getOperationTypeBytes()

public ByteString getOperationTypeBytes()

Output only. The operation type.

string operation_type = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for operationType.

getStatus()

public ClusterOperationStatus getStatus()

Output only. Current operation status.

.google.cloud.dataproc.v1.ClusterOperationStatus status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ClusterOperationStatus

The status.

getStatusBuilder()

public ClusterOperationStatus.Builder getStatusBuilder()

Output only. Current operation status.

.google.cloud.dataproc.v1.ClusterOperationStatus status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ClusterOperationStatus.Builder

getStatusHistory(int index)

public ClusterOperationStatus getStatusHistory(int index)

Output only. The previous operation status.

repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
indexint
Returns
TypeDescription
ClusterOperationStatus

getStatusHistoryBuilder(int index)

public ClusterOperationStatus.Builder getStatusHistoryBuilder(int index)

Output only. The previous operation status.

repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
indexint
Returns
TypeDescription
ClusterOperationStatus.Builder

getStatusHistoryBuilderList()

public List<ClusterOperationStatus.Builder> getStatusHistoryBuilderList()

Output only. The previous operation status.

repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
List<Builder>

getStatusHistoryCount()

public int getStatusHistoryCount()

Output only. The previous operation status.

repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
int

getStatusHistoryList()

public List<ClusterOperationStatus> getStatusHistoryList()

Output only. The previous operation status.

repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
List<ClusterOperationStatus>

getStatusHistoryOrBuilder(int index)

public ClusterOperationStatusOrBuilder getStatusHistoryOrBuilder(int index)

Output only. The previous operation status.

repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
indexint
Returns
TypeDescription
ClusterOperationStatusOrBuilder

getStatusHistoryOrBuilderList()

public List<? extends ClusterOperationStatusOrBuilder> getStatusHistoryOrBuilderList()

Output only. The previous operation status.

repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
List<? extends com.google.cloud.dataproc.v1.ClusterOperationStatusOrBuilder>

getStatusOrBuilder()

public ClusterOperationStatusOrBuilder getStatusOrBuilder()

Output only. Current operation status.

.google.cloud.dataproc.v1.ClusterOperationStatus status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ClusterOperationStatusOrBuilder

getWarnings(int index)

public String getWarnings(int index)

Output only. Errors encountered during operation execution.

repeated string warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The warnings at the given index.

getWarningsBytes(int index)

public ByteString getWarningsBytes(int index)

Output only. Errors encountered during operation execution.

repeated string warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the warnings at the given index.

getWarningsCount()

public int getWarningsCount()

Output only. Errors encountered during operation execution.

repeated string warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
int

The count of warnings.

getWarningsList()

public ProtocolStringList getWarningsList()

Output only. Errors encountered during operation execution.

repeated string warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ProtocolStringList

A list containing the warnings.

hasStatus()

public boolean hasStatus()

Output only. Current operation status.

.google.cloud.dataproc.v1.ClusterOperationStatus status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

Whether the status field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

internalGetMutableMapField(int number)

protected MapField internalGetMutableMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(ClusterOperationMetadata other)

public ClusterOperationMetadata.Builder mergeFrom(ClusterOperationMetadata other)
Parameter
NameDescription
otherClusterOperationMetadata
Returns
TypeDescription
ClusterOperationMetadata.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeStatus(ClusterOperationStatus value)

public ClusterOperationMetadata.Builder mergeStatus(ClusterOperationStatus value)

Output only. Current operation status.

.google.cloud.dataproc.v1.ClusterOperationStatus status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueClusterOperationStatus
Returns
TypeDescription
ClusterOperationMetadata.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final ClusterOperationMetadata.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
ClusterOperationMetadata.Builder
Overrides

putAllLabels(Map<String,String> values)

public ClusterOperationMetadata.Builder putAllLabels(Map<String,String> values)

Output only. Labels associated with the operation

map<string, string> labels = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valuesMap<String,String>
Returns
TypeDescription
ClusterOperationMetadata.Builder

putLabels(String key, String value)

public ClusterOperationMetadata.Builder putLabels(String key, String value)

Output only. Labels associated with the operation

map<string, string> labels = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
NameDescription
keyString
valueString
Returns
TypeDescription
ClusterOperationMetadata.Builder

removeLabels(String key)

public ClusterOperationMetadata.Builder removeLabels(String key)

Output only. Labels associated with the operation

map<string, string> labels = 13 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
keyString
Returns
TypeDescription
ClusterOperationMetadata.Builder

removeStatusHistory(int index)

public ClusterOperationMetadata.Builder removeStatusHistory(int index)

Output only. The previous operation status.

repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
indexint
Returns
TypeDescription
ClusterOperationMetadata.Builder

setClusterName(String value)

public ClusterOperationMetadata.Builder setClusterName(String value)

Output only. Name of the cluster for the operation.

string cluster_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueString

The clusterName to set.

Returns
TypeDescription
ClusterOperationMetadata.Builder

This builder for chaining.

setClusterNameBytes(ByteString value)

public ClusterOperationMetadata.Builder setClusterNameBytes(ByteString value)

Output only. Name of the cluster for the operation.

string cluster_name = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueByteString

The bytes for clusterName to set.

Returns
TypeDescription
ClusterOperationMetadata.Builder

This builder for chaining.

setClusterUuid(String value)

public ClusterOperationMetadata.Builder setClusterUuid(String value)

Output only. Cluster UUID for the operation.

string cluster_uuid = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueString

The clusterUuid to set.

Returns
TypeDescription
ClusterOperationMetadata.Builder

This builder for chaining.

setClusterUuidBytes(ByteString value)

public ClusterOperationMetadata.Builder setClusterUuidBytes(ByteString value)

Output only. Cluster UUID for the operation.

string cluster_uuid = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueByteString

The bytes for clusterUuid to set.

Returns
TypeDescription
ClusterOperationMetadata.Builder

This builder for chaining.

setDescription(String value)

public ClusterOperationMetadata.Builder setDescription(String value)

Output only. Short description of operation.

string description = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueString

The description to set.

Returns
TypeDescription
ClusterOperationMetadata.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public ClusterOperationMetadata.Builder setDescriptionBytes(ByteString value)

Output only. Short description of operation.

string description = 12 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueByteString

The bytes for description to set.

Returns
TypeDescription
ClusterOperationMetadata.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setOperationType(String value)

public ClusterOperationMetadata.Builder setOperationType(String value)

Output only. The operation type.

string operation_type = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueString

The operationType to set.

Returns
TypeDescription
ClusterOperationMetadata.Builder

This builder for chaining.

setOperationTypeBytes(ByteString value)

public ClusterOperationMetadata.Builder setOperationTypeBytes(ByteString value)

Output only. The operation type.

string operation_type = 11 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueByteString

The bytes for operationType to set.

Returns
TypeDescription
ClusterOperationMetadata.Builder

This builder for chaining.

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

public ClusterOperationMetadata.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
ClusterOperationMetadata.Builder
Overrides

setStatus(ClusterOperationStatus value)

public ClusterOperationMetadata.Builder setStatus(ClusterOperationStatus value)

Output only. Current operation status.

.google.cloud.dataproc.v1.ClusterOperationStatus status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueClusterOperationStatus
Returns
TypeDescription
ClusterOperationMetadata.Builder

setStatus(ClusterOperationStatus.Builder builderForValue)

public ClusterOperationMetadata.Builder setStatus(ClusterOperationStatus.Builder builderForValue)

Output only. Current operation status.

.google.cloud.dataproc.v1.ClusterOperationStatus status = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueClusterOperationStatus.Builder
Returns
TypeDescription
ClusterOperationMetadata.Builder

setStatusHistory(int index, ClusterOperationStatus value)

public ClusterOperationMetadata.Builder setStatusHistory(int index, ClusterOperationStatus value)

Output only. The previous operation status.

repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
NameDescription
indexint
valueClusterOperationStatus
Returns
TypeDescription
ClusterOperationMetadata.Builder

setStatusHistory(int index, ClusterOperationStatus.Builder builderForValue)

public ClusterOperationMetadata.Builder setStatusHistory(int index, ClusterOperationStatus.Builder builderForValue)

Output only. The previous operation status.

repeated .google.cloud.dataproc.v1.ClusterOperationStatus status_history = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
NameDescription
indexint
builderForValueClusterOperationStatus.Builder
Returns
TypeDescription
ClusterOperationMetadata.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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

setWarnings(int index, String value)

public ClusterOperationMetadata.Builder setWarnings(int index, String value)

Output only. Errors encountered during operation execution.

repeated string warnings = 14 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The warnings to set.

Returns
TypeDescription
ClusterOperationMetadata.Builder

This builder for chaining.