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.v1.BatchOperationMetadata
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
public static final Descriptors.Descriptor getDescriptor()
Methods
public BatchOperationMetadata.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
public BatchOperationMetadata build()
public BatchOperationMetadata buildPartial()
public BatchOperationMetadata.Builder clear()
Overrides
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;
public BatchOperationMetadata.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
public BatchOperationMetadata.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
public BatchOperationMetadata.Builder clearState()
The current state of the batch operation.
.google.cloud.vision.v1.BatchOperationMetadata.State state = 1;
public BatchOperationMetadata.Builder clearSubmitTime()
The time when the batch request was submitted to the server.
.google.protobuf.Timestamp submit_time = 2;
public BatchOperationMetadata.Builder clone()
Overrides
public BatchOperationMetadata getDefaultInstanceForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
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;
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;
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;
public BatchOperationMetadata.State getState()
The current state of the batch operation.
.google.cloud.vision.v1.BatchOperationMetadata.State state = 1;
public int getStateValue()
The current state of the batch operation.
.google.cloud.vision.v1.BatchOperationMetadata.State state = 1;
Returns |
---|
Type | Description |
int | The enum numeric value on the wire for state.
|
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.
|
public Timestamp.Builder getSubmitTimeBuilder()
The time when the batch request was submitted to the server.
.google.protobuf.Timestamp submit_time = 2;
public TimestampOrBuilder getSubmitTimeOrBuilder()
The time when the batch request was submitted to the server.
.google.protobuf.Timestamp submit_time = 2;
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.
|
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.
|
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
public final boolean isInitialized()
Overrides
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;
public BatchOperationMetadata.Builder mergeFrom(BatchOperationMetadata other)
public BatchOperationMetadata.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
public BatchOperationMetadata.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
public BatchOperationMetadata.Builder mergeSubmitTime(Timestamp value)
The time when the batch request was submitted to the server.
.google.protobuf.Timestamp submit_time = 2;
public final BatchOperationMetadata.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
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;
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
|
public BatchOperationMetadata.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
public BatchOperationMetadata.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
public BatchOperationMetadata.Builder setState(BatchOperationMetadata.State value)
The current state of the batch operation.
.google.cloud.vision.v1.BatchOperationMetadata.State state = 1;
public BatchOperationMetadata.Builder setStateValue(int value)
The current state of the batch operation.
.google.cloud.vision.v1.BatchOperationMetadata.State state = 1;
Parameter |
---|
Name | Description |
value | int
The enum numeric value on the wire for state to set.
|
public BatchOperationMetadata.Builder setSubmitTime(Timestamp value)
The time when the batch request was submitted to the server.
.google.protobuf.Timestamp submit_time = 2;
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
|
public final BatchOperationMetadata.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides