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)
Overridespublic BatchOperationMetadata build()
public BatchOperationMetadata buildPartial()
public BatchOperationMetadata.Builder clear()
Overridespublic 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)
Overridespublic BatchOperationMetadata.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overridespublic 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()
Overridespublic BatchOperationMetadata getDefaultInstanceForType()
public Descriptors.Descriptor getDescriptorForType()
Overridespublic 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()
Overridespublic final boolean isInitialized()
Overridespublic 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)
Overridespublic BatchOperationMetadata.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overridespublic 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)
Overridespublic 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)
Overridespublic BatchOperationMetadata.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overridespublic 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