Class BatchOperationMetadata.Builder (3.43.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.v1p4beta1.BatchOperationMetadata

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

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

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

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearState()

public BatchOperationMetadata.Builder clearState()

The current state of the batch operation.

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

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

clone()

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

getDefaultInstanceForType()

public BatchOperationMetadata getDefaultInstanceForType()
Returns
Type Description
BatchOperationMetadata

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
TimestampOrBuilder

getState()

public BatchOperationMetadata.State getState()

The current state of the batch operation.

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

Returns
Type Description
BatchOperationMetadata.State

The state.

getStateValue()

public int getStateValue()

The current state of the batch operation.

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

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

getSubmitTimeOrBuilder()

public TimestampOrBuilder getSubmitTimeOrBuilder()

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

.google.protobuf.Timestamp submit_time = 2;

Returns
Type Description
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
Type Description
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
Type Description
boolean

Whether the submitTime field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
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
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

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

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

setState(BatchOperationMetadata.State value)

public BatchOperationMetadata.Builder setState(BatchOperationMetadata.State value)

The current state of the batch operation.

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

Parameter
Name Description
value BatchOperationMetadata.State

The state to set.

Returns
Type Description
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.v1p4beta1.BatchOperationMetadata.State state = 1;

Parameter
Name Description
value int

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

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

setUnknownFields(UnknownFieldSet unknownFields)

public final BatchOperationMetadata.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
BatchOperationMetadata.Builder
Overrides