Class BatchOperationMetadata.Builder (4.51.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
Type Description
Descriptor

Methods

addAllWarnings(Iterable<String> values)

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

Warnings encountered during operation execution.

repeated string warnings = 9;

Parameter
Name Description
values Iterable<String>

The warnings to add.

Returns
Type Description
BatchOperationMetadata.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addWarnings(String value)

public BatchOperationMetadata.Builder addWarnings(String value)

Warnings encountered during operation execution.

repeated string warnings = 9;

Parameter
Name Description
value String

The warnings to add.

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

The bytes of the warnings to add.

Returns
Type Description
BatchOperationMetadata.Builder

This builder for chaining.

build()

public BatchOperationMetadata build()
Returns
Type Description
BatchOperationMetadata

buildPartial()

public BatchOperationMetadata buildPartial()
Returns
Type Description
BatchOperationMetadata

clear()

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

clearBatch()

public BatchOperationMetadata.Builder clearBatch()

Name of the batch for the operation.

string batch = 1;

Returns
Type Description
BatchOperationMetadata.Builder

This builder for chaining.

clearBatchUuid()

public BatchOperationMetadata.Builder clearBatchUuid()

Batch UUID for the operation.

string batch_uuid = 2;

Returns
Type Description
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
Type Description
BatchOperationMetadata.Builder

clearDescription()

public BatchOperationMetadata.Builder clearDescription()

Short description of the operation.

string description = 7;

Returns
Type Description
BatchOperationMetadata.Builder

This builder for chaining.

clearDoneTime()

public BatchOperationMetadata.Builder clearDoneTime()

The time when the operation finished.

.google.protobuf.Timestamp done_time = 4;

Returns
Type Description
BatchOperationMetadata.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearLabels()

public BatchOperationMetadata.Builder clearLabels()
Returns
Type Description
BatchOperationMetadata.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearOperationType()

public BatchOperationMetadata.Builder clearOperationType()

The operation type.

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

Returns
Type Description
BatchOperationMetadata.Builder

This builder for chaining.

clearWarnings()

public BatchOperationMetadata.Builder clearWarnings()

Warnings encountered during operation execution.

repeated string warnings = 9;

Returns
Type Description
BatchOperationMetadata.Builder

This builder for chaining.

clone()

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

containsLabels(String key)

public boolean containsLabels(String key)

Labels associated with the operation.

map<string, string> labels = 8;

Parameter
Name Description
key String
Returns
Type Description
boolean

getBatch()

public String getBatch()

Name of the batch for the operation.

string batch = 1;

Returns
Type Description
String

The batch.

getBatchBytes()

public ByteString getBatchBytes()

Name of the batch for the operation.

string batch = 1;

Returns
Type Description
ByteString

The bytes for batch.

getBatchUuid()

public String getBatchUuid()

Batch UUID for the operation.

string batch_uuid = 2;

Returns
Type Description
String

The batchUuid.

getBatchUuidBytes()

public ByteString getBatchUuidBytes()

Batch UUID for the operation.

string batch_uuid = 2;

Returns
Type Description
ByteString

The bytes for batchUuid.

getCreateTime()

public Timestamp getCreateTime()

The time when the operation was created.

.google.protobuf.Timestamp create_time = 3;

Returns
Type Description
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

The time when the operation was created.

.google.protobuf.Timestamp create_time = 3;

Returns
Type Description
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

The time when the operation was created.

.google.protobuf.Timestamp create_time = 3;

Returns
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

public BatchOperationMetadata getDefaultInstanceForType()
Returns
Type Description
BatchOperationMetadata

getDescription()

public String getDescription()

Short description of the operation.

string description = 7;

Returns
Type Description
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Short description of the operation.

string description = 7;

Returns
Type Description
ByteString

The bytes for description.

getDescriptorForType()

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

getDoneTime()

public Timestamp getDoneTime()

The time when the operation finished.

.google.protobuf.Timestamp done_time = 4;

Returns
Type Description
Timestamp

The doneTime.

getDoneTimeBuilder()

public Timestamp.Builder getDoneTimeBuilder()

The time when the operation finished.

.google.protobuf.Timestamp done_time = 4;

Returns
Type Description
Builder

getDoneTimeOrBuilder()

public TimestampOrBuilder getDoneTimeOrBuilder()

The time when the operation finished.

.google.protobuf.Timestamp done_time = 4;

Returns
Type Description
TimestampOrBuilder

getLabels() (deprecated)

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
Type Description
Map<String,String>

getLabelsCount()

public int getLabelsCount()

Labels associated with the operation.

map<string, string> labels = 8;

Returns
Type Description
int

getLabelsMap()

public Map<String,String> getLabelsMap()

Labels associated with the operation.

map<string, string> labels = 8;

Returns
Type Description
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
Name Description
key String
defaultValue String
Returns
Type Description
String

getLabelsOrThrow(String key)

public String getLabelsOrThrow(String key)

Labels associated with the operation.

map<string, string> labels = 8;

Parameter
Name Description
key String
Returns
Type Description
String

getMutableLabels() (deprecated)

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
Type Description
Map<String,String>

getOperationType()

public BatchOperationMetadata.BatchOperationType getOperationType()

The operation type.

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

Returns
Type Description
BatchOperationMetadata.BatchOperationType

The operationType.

getOperationTypeValue()

public int getOperationTypeValue()

The operation type.

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

Returns
Type Description
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
Name Description
index int

The index of the element to return.

Returns
Type Description
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
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the warnings at the given index.

getWarningsCount()

public int getWarningsCount()

Warnings encountered during operation execution.

repeated string warnings = 9;

Returns
Type Description
int

The count of warnings.

getWarningsList()

public ProtocolStringList getWarningsList()

Warnings encountered during operation execution.

repeated string warnings = 9;

Returns
Type Description
ProtocolStringList

A list containing the warnings.

hasCreateTime()

public boolean hasCreateTime()

The time when the operation was created.

.google.protobuf.Timestamp create_time = 3;

Returns
Type Description
boolean

Whether the createTime field is set.

hasDoneTime()

public boolean hasDoneTime()

The time when the operation finished.

.google.protobuf.Timestamp done_time = 4;

Returns
Type Description
boolean

Whether the doneTime field is set.

internalGetFieldAccessorTable()

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

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
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
Name Description
value Timestamp
Returns
Type Description
BatchOperationMetadata.Builder

mergeDoneTime(Timestamp value)

public BatchOperationMetadata.Builder mergeDoneTime(Timestamp value)

The time when the operation finished.

.google.protobuf.Timestamp done_time = 4;

Parameter
Name Description
value Timestamp
Returns
Type Description
BatchOperationMetadata.Builder

mergeFrom(BatchOperationMetadata other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final BatchOperationMetadata.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
values Map<String,String>
Returns
Type Description
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
Name Description
key String
value String
Returns
Type Description
BatchOperationMetadata.Builder

removeLabels(String key)

public BatchOperationMetadata.Builder removeLabels(String key)

Labels associated with the operation.

map<string, string> labels = 8;

Parameter
Name Description
key String
Returns
Type Description
BatchOperationMetadata.Builder

setBatch(String value)

public BatchOperationMetadata.Builder setBatch(String value)

Name of the batch for the operation.

string batch = 1;

Parameter
Name Description
value String

The batch to set.

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

The bytes for batch to set.

Returns
Type Description
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
Name Description
value String

The batchUuid to set.

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

The bytes for batchUuid to set.

Returns
Type Description
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
Name Description
value Timestamp
Returns
Type Description
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
Name Description
builderForValue Builder
Returns
Type Description
BatchOperationMetadata.Builder

setDescription(String value)

public BatchOperationMetadata.Builder setDescription(String value)

Short description of the operation.

string description = 7;

Parameter
Name Description
value String

The description to set.

Returns
Type Description
BatchOperationMetadata.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public BatchOperationMetadata.Builder setDescriptionBytes(ByteString value)

Short description of the operation.

string description = 7;

Parameter
Name Description
value ByteString

The bytes for description to set.

Returns
Type Description
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
Name Description
value Timestamp
Returns
Type Description
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
Name Description
builderForValue Builder
Returns
Type Description
BatchOperationMetadata.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public BatchOperationMetadata.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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
Name Description
value BatchOperationMetadata.BatchOperationType

The operationType to set.

Returns
Type Description
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
Name Description
value int

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

Returns
Type Description
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
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
BatchOperationMetadata.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final BatchOperationMetadata.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
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
Name Description
index int

The index to set the value at.

value String

The warnings to set.

Returns
Type Description
BatchOperationMetadata.Builder

This builder for chaining.