Class BatchOperationMetadata.Builder (4.13.0)

public static final class BatchOperationMetadata.Builder extends GeneratedMessageV3.Builder<BatchOperationMetadata.Builder> implements BatchOperationMetadataOrBuilder

Metadata describing the Batch operation.

Protobuf type google.cloud.dataproc.v1.BatchOperationMetadata

Static Methods

getDescriptor()

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

Methods

addAllWarnings(Iterable<String> values)

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

Warnings encountered during operation execution.

repeated string warnings = 9;

Parameter
NameDescription
valuesIterable<String>

The warnings to add.

Returns
TypeDescription
BatchOperationMetadata.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addWarnings(String value)

public BatchOperationMetadata.Builder addWarnings(String value)

Warnings encountered during operation execution.

repeated string warnings = 9;

Parameter
NameDescription
valueString

The warnings to add.

Returns
TypeDescription
BatchOperationMetadata.Builder

This builder for chaining.

addWarningsBytes(ByteString value)

public BatchOperationMetadata.Builder addWarningsBytes(ByteString value)

Warnings encountered during operation execution.

repeated string warnings = 9;

Parameter
NameDescription
valueByteString

The bytes of the warnings to add.

Returns
TypeDescription
BatchOperationMetadata.Builder

This builder for chaining.

build()

public BatchOperationMetadata build()
Returns
TypeDescription
BatchOperationMetadata

buildPartial()

public BatchOperationMetadata buildPartial()
Returns
TypeDescription
BatchOperationMetadata

clear()

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

clearBatch()

public BatchOperationMetadata.Builder clearBatch()

Name of the batch for the operation.

string batch = 1;

Returns
TypeDescription
BatchOperationMetadata.Builder

This builder for chaining.

clearBatchUuid()

public BatchOperationMetadata.Builder clearBatchUuid()

Batch UUID for the operation.

string batch_uuid = 2;

Returns
TypeDescription
BatchOperationMetadata.Builder

This builder for chaining.

clearCreateTime()

public BatchOperationMetadata.Builder clearCreateTime()

The time when the operation was created.

.google.protobuf.Timestamp create_time = 3;

Returns
TypeDescription
BatchOperationMetadata.Builder

clearDescription()

public BatchOperationMetadata.Builder clearDescription()

Short description of the operation.

string description = 7;

Returns
TypeDescription
BatchOperationMetadata.Builder

This builder for chaining.

clearDoneTime()

public BatchOperationMetadata.Builder clearDoneTime()

The time when the operation finished.

.google.protobuf.Timestamp done_time = 4;

Returns
TypeDescription
BatchOperationMetadata.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearLabels()

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearOperationType()

public BatchOperationMetadata.Builder clearOperationType()

The operation type.

.google.cloud.dataproc.v1.BatchOperationMetadata.BatchOperationType operation_type = 6;

Returns
TypeDescription
BatchOperationMetadata.Builder

This builder for chaining.

clearWarnings()

public BatchOperationMetadata.Builder clearWarnings()

Warnings encountered during operation execution.

repeated string warnings = 9;

Returns
TypeDescription
BatchOperationMetadata.Builder

This builder for chaining.

clone()

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

containsLabels(String key)

public boolean containsLabels(String key)

Labels associated with the operation.

map<string, string> labels = 8;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

getBatch()

public String getBatch()

Name of the batch for the operation.

string batch = 1;

Returns
TypeDescription
String

The batch.

getBatchBytes()

public ByteString getBatchBytes()

Name of the batch for the operation.

string batch = 1;

Returns
TypeDescription
ByteString

The bytes for batch.

getBatchUuid()

public String getBatchUuid()

Batch UUID for the operation.

string batch_uuid = 2;

Returns
TypeDescription
String

The batchUuid.

getBatchUuidBytes()

public ByteString getBatchUuidBytes()

Batch UUID for the operation.

string batch_uuid = 2;

Returns
TypeDescription
ByteString

The bytes for batchUuid.

getCreateTime()

public Timestamp getCreateTime()

The time when the operation was created.

.google.protobuf.Timestamp create_time = 3;

Returns
TypeDescription
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

The time when the operation was created.

.google.protobuf.Timestamp create_time = 3;

Returns
TypeDescription
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

The time when the operation was created.

.google.protobuf.Timestamp create_time = 3;

Returns
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public BatchOperationMetadata getDefaultInstanceForType()
Returns
TypeDescription
BatchOperationMetadata

getDescription()

public String getDescription()

Short description of the operation.

string description = 7;

Returns
TypeDescription
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Short description of the operation.

string description = 7;

Returns
TypeDescription
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDoneTime()

public Timestamp getDoneTime()

The time when the operation finished.

.google.protobuf.Timestamp done_time = 4;

Returns
TypeDescription
Timestamp

The doneTime.

getDoneTimeBuilder()

public Timestamp.Builder getDoneTimeBuilder()

The time when the operation finished.

.google.protobuf.Timestamp done_time = 4;

Returns
TypeDescription
Builder

getDoneTimeOrBuilder()

public TimestampOrBuilder getDoneTimeOrBuilder()

The time when the operation finished.

.google.protobuf.Timestamp done_time = 4;

Returns
TypeDescription
TimestampOrBuilder

getLabels()

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
TypeDescription
Map<String,String>

getLabelsCount()

public int getLabelsCount()

Labels associated with the operation.

map<string, string> labels = 8;

Returns
TypeDescription
int

getLabelsMap()

public Map<String,String> getLabelsMap()

Labels associated with the operation.

map<string, string> labels = 8;

Returns
TypeDescription
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

public String getLabelsOrDefault(String key, String defaultValue)

Labels associated with the operation.

map<string, string> labels = 8;

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getLabelsOrThrow(String key)

public String getLabelsOrThrow(String key)

Labels associated with the operation.

map<string, string> labels = 8;

Parameter
NameDescription
keyString
Returns
TypeDescription
String

getMutableLabels()

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,String>

getOperationType()

public BatchOperationMetadata.BatchOperationType getOperationType()

The operation type.

.google.cloud.dataproc.v1.BatchOperationMetadata.BatchOperationType operation_type = 6;

Returns
TypeDescription
BatchOperationMetadata.BatchOperationType

The operationType.

getOperationTypeValue()

public int getOperationTypeValue()

The operation type.

.google.cloud.dataproc.v1.BatchOperationMetadata.BatchOperationType operation_type = 6;

Returns
TypeDescription
int

The enum numeric value on the wire for operationType.

getWarnings(int index)

public String getWarnings(int index)

Warnings encountered during operation execution.

repeated string warnings = 9;

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)

Warnings encountered during operation execution.

repeated string warnings = 9;

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()

Warnings encountered during operation execution.

repeated string warnings = 9;

Returns
TypeDescription
int

The count of warnings.

getWarningsList()

public ProtocolStringList getWarningsList()

Warnings encountered during operation execution.

repeated string warnings = 9;

Returns
TypeDescription
ProtocolStringList

A list containing the warnings.

hasCreateTime()

public boolean hasCreateTime()

The time when the operation was created.

.google.protobuf.Timestamp create_time = 3;

Returns
TypeDescription
boolean

Whether the createTime field is set.

hasDoneTime()

public boolean hasDoneTime()

The time when the operation finished.

.google.protobuf.Timestamp done_time = 4;

Returns
TypeDescription
boolean

Whether the doneTime 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

mergeCreateTime(Timestamp value)

public BatchOperationMetadata.Builder mergeCreateTime(Timestamp value)

The time when the operation was created.

.google.protobuf.Timestamp create_time = 3;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
BatchOperationMetadata.Builder

mergeDoneTime(Timestamp value)

public BatchOperationMetadata.Builder mergeDoneTime(Timestamp value)

The time when the operation finished.

.google.protobuf.Timestamp done_time = 4;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
BatchOperationMetadata.Builder

mergeFrom(BatchOperationMetadata other)

public BatchOperationMetadata.Builder mergeFrom(BatchOperationMetadata other)
Parameter
NameDescription
otherBatchOperationMetadata
Returns
TypeDescription
BatchOperationMetadata.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

putAllLabels(Map<String,String> values)

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

Labels associated with the operation.

map<string, string> labels = 8;

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

putLabels(String key, String value)

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

Labels associated with the operation.

map<string, string> labels = 8;

Parameters
NameDescription
keyString
valueString
Returns
TypeDescription
BatchOperationMetadata.Builder

removeLabels(String key)

public BatchOperationMetadata.Builder removeLabels(String key)

Labels associated with the operation.

map<string, string> labels = 8;

Parameter
NameDescription
keyString
Returns
TypeDescription
BatchOperationMetadata.Builder

setBatch(String value)

public BatchOperationMetadata.Builder setBatch(String value)

Name of the batch for the operation.

string batch = 1;

Parameter
NameDescription
valueString

The batch to set.

Returns
TypeDescription
BatchOperationMetadata.Builder

This builder for chaining.

setBatchBytes(ByteString value)

public BatchOperationMetadata.Builder setBatchBytes(ByteString value)

Name of the batch for the operation.

string batch = 1;

Parameter
NameDescription
valueByteString

The bytes for batch to set.

Returns
TypeDescription
BatchOperationMetadata.Builder

This builder for chaining.

setBatchUuid(String value)

public BatchOperationMetadata.Builder setBatchUuid(String value)

Batch UUID for the operation.

string batch_uuid = 2;

Parameter
NameDescription
valueString

The batchUuid to set.

Returns
TypeDescription
BatchOperationMetadata.Builder

This builder for chaining.

setBatchUuidBytes(ByteString value)

public BatchOperationMetadata.Builder setBatchUuidBytes(ByteString value)

Batch UUID for the operation.

string batch_uuid = 2;

Parameter
NameDescription
valueByteString

The bytes for batchUuid to set.

Returns
TypeDescription
BatchOperationMetadata.Builder

This builder for chaining.

setCreateTime(Timestamp value)

public BatchOperationMetadata.Builder setCreateTime(Timestamp value)

The time when the operation was created.

.google.protobuf.Timestamp create_time = 3;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
BatchOperationMetadata.Builder

setCreateTime(Timestamp.Builder builderForValue)

public BatchOperationMetadata.Builder setCreateTime(Timestamp.Builder builderForValue)

The time when the operation was created.

.google.protobuf.Timestamp create_time = 3;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
BatchOperationMetadata.Builder

setDescription(String value)

public BatchOperationMetadata.Builder setDescription(String value)

Short description of the operation.

string description = 7;

Parameter
NameDescription
valueString

The description to set.

Returns
TypeDescription
BatchOperationMetadata.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public BatchOperationMetadata.Builder setDescriptionBytes(ByteString value)

Short description of the operation.

string description = 7;

Parameter
NameDescription
valueByteString

The bytes for description to set.

Returns
TypeDescription
BatchOperationMetadata.Builder

This builder for chaining.

setDoneTime(Timestamp value)

public BatchOperationMetadata.Builder setDoneTime(Timestamp value)

The time when the operation finished.

.google.protobuf.Timestamp done_time = 4;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
BatchOperationMetadata.Builder

setDoneTime(Timestamp.Builder builderForValue)

public BatchOperationMetadata.Builder setDoneTime(Timestamp.Builder builderForValue)

The time when the operation finished.

.google.protobuf.Timestamp done_time = 4;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
BatchOperationMetadata.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setOperationType(BatchOperationMetadata.BatchOperationType value)

public BatchOperationMetadata.Builder setOperationType(BatchOperationMetadata.BatchOperationType value)

The operation type.

.google.cloud.dataproc.v1.BatchOperationMetadata.BatchOperationType operation_type = 6;

Parameter
NameDescription
valueBatchOperationMetadata.BatchOperationType

The operationType to set.

Returns
TypeDescription
BatchOperationMetadata.Builder

This builder for chaining.

setOperationTypeValue(int value)

public BatchOperationMetadata.Builder setOperationTypeValue(int value)

The operation type.

.google.cloud.dataproc.v1.BatchOperationMetadata.BatchOperationType operation_type = 6;

Parameter
NameDescription
valueint

The enum numeric value on the wire for operationType to set.

Returns
TypeDescription
BatchOperationMetadata.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setWarnings(int index, String value)

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

Warnings encountered during operation execution.

repeated string warnings = 9;

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The warnings to set.

Returns
TypeDescription
BatchOperationMetadata.Builder

This builder for chaining.