Class BatchOperationMetadata.Builder (3.35.0)

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

Metadata for the batch operations such as the current state.

This is included in the metadata field of the Operation returned by the GetOperation call of the google::longrunning::Operations service.

Protobuf type google.cloud.vision.v1p3beta1.BatchOperationMetadata

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public BatchOperationMetadata build()
Returns
TypeDescription
BatchOperationMetadata

buildPartial()

public BatchOperationMetadata buildPartial()
Returns
TypeDescription
BatchOperationMetadata

clear()

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

clearEndTime()

public BatchOperationMetadata.Builder clearEndTime()

The time when the batch request is finished and google.longrunning.Operation.done is set to true.

.google.protobuf.Timestamp end_time = 3;

Returns
TypeDescription
BatchOperationMetadata.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearState()

public BatchOperationMetadata.Builder clearState()

The current state of the batch operation.

.google.cloud.vision.v1p3beta1.BatchOperationMetadata.State state = 1;

Returns
TypeDescription
BatchOperationMetadata.Builder

This builder for chaining.

clearSubmitTime()

public BatchOperationMetadata.Builder clearSubmitTime()

The time when the batch request was submitted to the server.

.google.protobuf.Timestamp submit_time = 2;

Returns
TypeDescription
BatchOperationMetadata.Builder

clone()

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

getDefaultInstanceForType()

public BatchOperationMetadata getDefaultInstanceForType()
Returns
TypeDescription
BatchOperationMetadata

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getEndTime()

public Timestamp getEndTime()

The time when the batch request is finished and google.longrunning.Operation.done is set to true.

.google.protobuf.Timestamp end_time = 3;

Returns
TypeDescription
Timestamp

The endTime.

getEndTimeBuilder()

public Timestamp.Builder getEndTimeBuilder()

The time when the batch request is finished and google.longrunning.Operation.done is set to true.

.google.protobuf.Timestamp end_time = 3;

Returns
TypeDescription
Builder

getEndTimeOrBuilder()

public TimestampOrBuilder getEndTimeOrBuilder()

The time when the batch request is finished and google.longrunning.Operation.done is set to true.

.google.protobuf.Timestamp end_time = 3;

Returns
TypeDescription
TimestampOrBuilder

getState()

public BatchOperationMetadata.State getState()

The current state of the batch operation.

.google.cloud.vision.v1p3beta1.BatchOperationMetadata.State state = 1;

Returns
TypeDescription
BatchOperationMetadata.State

The state.

getStateValue()

public int getStateValue()

The current state of the batch operation.

.google.cloud.vision.v1p3beta1.BatchOperationMetadata.State state = 1;

Returns
TypeDescription
int

The enum numeric value on the wire for state.

getSubmitTime()

public Timestamp getSubmitTime()

The time when the batch request was submitted to the server.

.google.protobuf.Timestamp submit_time = 2;

Returns
TypeDescription
Timestamp

The submitTime.

getSubmitTimeBuilder()

public Timestamp.Builder getSubmitTimeBuilder()

The time when the batch request was submitted to the server.

.google.protobuf.Timestamp submit_time = 2;

Returns
TypeDescription
Builder

getSubmitTimeOrBuilder()

public TimestampOrBuilder getSubmitTimeOrBuilder()

The time when the batch request was submitted to the server.

.google.protobuf.Timestamp submit_time = 2;

Returns
TypeDescription
TimestampOrBuilder

hasEndTime()

public boolean hasEndTime()

The time when the batch request is finished and google.longrunning.Operation.done is set to true.

.google.protobuf.Timestamp end_time = 3;

Returns
TypeDescription
boolean

Whether the endTime field is set.

hasSubmitTime()

public boolean hasSubmitTime()

The time when the batch request was submitted to the server.

.google.protobuf.Timestamp submit_time = 2;

Returns
TypeDescription
boolean

Whether the submitTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeEndTime(Timestamp value)

public BatchOperationMetadata.Builder mergeEndTime(Timestamp value)

The time when the batch request is finished and google.longrunning.Operation.done is set to true.

.google.protobuf.Timestamp end_time = 3;

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

mergeSubmitTime(Timestamp value)

public BatchOperationMetadata.Builder mergeSubmitTime(Timestamp value)

The time when the batch request was submitted to the server.

.google.protobuf.Timestamp submit_time = 2;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
BatchOperationMetadata.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setEndTime(Timestamp value)

public BatchOperationMetadata.Builder setEndTime(Timestamp value)

The time when the batch request is finished and google.longrunning.Operation.done is set to true.

.google.protobuf.Timestamp end_time = 3;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
BatchOperationMetadata.Builder

setEndTime(Timestamp.Builder builderForValue)

public BatchOperationMetadata.Builder setEndTime(Timestamp.Builder builderForValue)

The time when the batch request is finished and google.longrunning.Operation.done is set to true.

.google.protobuf.Timestamp end_time = 3;

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

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

setState(BatchOperationMetadata.State value)

public BatchOperationMetadata.Builder setState(BatchOperationMetadata.State value)

The current state of the batch operation.

.google.cloud.vision.v1p3beta1.BatchOperationMetadata.State state = 1;

Parameter
NameDescription
valueBatchOperationMetadata.State

The state to set.

Returns
TypeDescription
BatchOperationMetadata.Builder

This builder for chaining.

setStateValue(int value)

public BatchOperationMetadata.Builder setStateValue(int value)

The current state of the batch operation.

.google.cloud.vision.v1p3beta1.BatchOperationMetadata.State state = 1;

Parameter
NameDescription
valueint

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

Returns
TypeDescription
BatchOperationMetadata.Builder

This builder for chaining.

setSubmitTime(Timestamp value)

public BatchOperationMetadata.Builder setSubmitTime(Timestamp value)

The time when the batch request was submitted to the server.

.google.protobuf.Timestamp submit_time = 2;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
BatchOperationMetadata.Builder

setSubmitTime(Timestamp.Builder builderForValue)

public BatchOperationMetadata.Builder setSubmitTime(Timestamp.Builder builderForValue)

The time when the batch request was submitted to the server.

.google.protobuf.Timestamp submit_time = 2;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
BatchOperationMetadata.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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