Class BatchOperationMetadata.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<BatchOperationMetadata.Builder>
-
- com.google.cloud.vision.v1p3beta1.BatchOperationMetadata.Builder
-
- All Implemented Interfaces:
BatchOperationMetadataOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- BatchOperationMetadata
public static final class BatchOperationMetadata.Builder extends com.google.protobuf.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 typegoogle.cloud.vision.v1p3beta1.BatchOperationMetadata
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description BatchOperationMetadata.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
BatchOperationMetadata
build()
BatchOperationMetadata
buildPartial()
BatchOperationMetadata.Builder
clear()
BatchOperationMetadata.Builder
clearEndTime()
The time when the batch request is finished and [google.longrunning.Operation.done][google.longrunning.Operation.done] is set to true.BatchOperationMetadata.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
BatchOperationMetadata.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
BatchOperationMetadata.Builder
clearState()
The current state of the batch operation.BatchOperationMetadata.Builder
clearSubmitTime()
The time when the batch request was submitted to the server.BatchOperationMetadata.Builder
clone()
BatchOperationMetadata
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
com.google.protobuf.Timestamp
getEndTime()
The time when the batch request is finished and [google.longrunning.Operation.done][google.longrunning.Operation.done] is set to true.com.google.protobuf.Timestamp.Builder
getEndTimeBuilder()
The time when the batch request is finished and [google.longrunning.Operation.done][google.longrunning.Operation.done] is set to true.com.google.protobuf.TimestampOrBuilder
getEndTimeOrBuilder()
The time when the batch request is finished and [google.longrunning.Operation.done][google.longrunning.Operation.done] is set to true.BatchOperationMetadata.State
getState()
The current state of the batch operation.int
getStateValue()
The current state of the batch operation.com.google.protobuf.Timestamp
getSubmitTime()
The time when the batch request was submitted to the server.com.google.protobuf.Timestamp.Builder
getSubmitTimeBuilder()
The time when the batch request was submitted to the server.com.google.protobuf.TimestampOrBuilder
getSubmitTimeOrBuilder()
The time when the batch request was submitted to the server.boolean
hasEndTime()
The time when the batch request is finished and [google.longrunning.Operation.done][google.longrunning.Operation.done] is set to true.boolean
hasSubmitTime()
The time when the batch request was submitted to the server.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
BatchOperationMetadata.Builder
mergeEndTime(com.google.protobuf.Timestamp value)
The time when the batch request is finished and [google.longrunning.Operation.done][google.longrunning.Operation.done] is set to true.BatchOperationMetadata.Builder
mergeFrom(BatchOperationMetadata other)
BatchOperationMetadata.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
BatchOperationMetadata.Builder
mergeFrom(com.google.protobuf.Message other)
BatchOperationMetadata.Builder
mergeSubmitTime(com.google.protobuf.Timestamp value)
The time when the batch request was submitted to the server.BatchOperationMetadata.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
BatchOperationMetadata.Builder
setEndTime(com.google.protobuf.Timestamp value)
The time when the batch request is finished and [google.longrunning.Operation.done][google.longrunning.Operation.done] is set to true.BatchOperationMetadata.Builder
setEndTime(com.google.protobuf.Timestamp.Builder builderForValue)
The time when the batch request is finished and [google.longrunning.Operation.done][google.longrunning.Operation.done] is set to true.BatchOperationMetadata.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
BatchOperationMetadata.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
BatchOperationMetadata.Builder
setState(BatchOperationMetadata.State value)
The current state of the batch operation.BatchOperationMetadata.Builder
setStateValue(int value)
The current state of the batch operation.BatchOperationMetadata.Builder
setSubmitTime(com.google.protobuf.Timestamp value)
The time when the batch request was submitted to the server.BatchOperationMetadata.Builder
setSubmitTime(com.google.protobuf.Timestamp.Builder builderForValue)
The time when the batch request was submitted to the server.BatchOperationMetadata.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<BatchOperationMetadata.Builder>
-
clear
public BatchOperationMetadata.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<BatchOperationMetadata.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<BatchOperationMetadata.Builder>
-
getDefaultInstanceForType
public BatchOperationMetadata getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public BatchOperationMetadata build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public BatchOperationMetadata buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public BatchOperationMetadata.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<BatchOperationMetadata.Builder>
-
setField
public BatchOperationMetadata.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<BatchOperationMetadata.Builder>
-
clearField
public BatchOperationMetadata.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<BatchOperationMetadata.Builder>
-
clearOneof
public BatchOperationMetadata.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<BatchOperationMetadata.Builder>
-
setRepeatedField
public BatchOperationMetadata.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<BatchOperationMetadata.Builder>
-
addRepeatedField
public BatchOperationMetadata.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<BatchOperationMetadata.Builder>
-
mergeFrom
public BatchOperationMetadata.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<BatchOperationMetadata.Builder>
-
mergeFrom
public BatchOperationMetadata.Builder mergeFrom(BatchOperationMetadata other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<BatchOperationMetadata.Builder>
-
mergeFrom
public BatchOperationMetadata.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<BatchOperationMetadata.Builder>
- Throws:
IOException
-
getStateValue
public int getStateValue()
The current state of the batch operation.
.google.cloud.vision.v1p3beta1.BatchOperationMetadata.State state = 1;
- Specified by:
getStateValue
in interfaceBatchOperationMetadataOrBuilder
- Returns:
- The enum numeric value on the wire for state.
-
setStateValue
public BatchOperationMetadata.Builder setStateValue(int value)
The current state of the batch operation.
.google.cloud.vision.v1p3beta1.BatchOperationMetadata.State state = 1;
- Parameters:
value
- The enum numeric value on the wire for state to set.- Returns:
- This builder for chaining.
-
getState
public BatchOperationMetadata.State getState()
The current state of the batch operation.
.google.cloud.vision.v1p3beta1.BatchOperationMetadata.State state = 1;
- Specified by:
getState
in interfaceBatchOperationMetadataOrBuilder
- Returns:
- The state.
-
setState
public BatchOperationMetadata.Builder setState(BatchOperationMetadata.State value)
The current state of the batch operation.
.google.cloud.vision.v1p3beta1.BatchOperationMetadata.State state = 1;
- Parameters:
value
- The state to set.- Returns:
- This builder for chaining.
-
clearState
public BatchOperationMetadata.Builder clearState()
The current state of the batch operation.
.google.cloud.vision.v1p3beta1.BatchOperationMetadata.State state = 1;
- Returns:
- This builder for chaining.
-
hasSubmitTime
public boolean hasSubmitTime()
The time when the batch request was submitted to the server.
.google.protobuf.Timestamp submit_time = 2;
- Specified by:
hasSubmitTime
in interfaceBatchOperationMetadataOrBuilder
- Returns:
- Whether the submitTime field is set.
-
getSubmitTime
public com.google.protobuf.Timestamp getSubmitTime()
The time when the batch request was submitted to the server.
.google.protobuf.Timestamp submit_time = 2;
- Specified by:
getSubmitTime
in interfaceBatchOperationMetadataOrBuilder
- Returns:
- The submitTime.
-
setSubmitTime
public BatchOperationMetadata.Builder setSubmitTime(com.google.protobuf.Timestamp value)
The time when the batch request was submitted to the server.
.google.protobuf.Timestamp submit_time = 2;
-
setSubmitTime
public BatchOperationMetadata.Builder setSubmitTime(com.google.protobuf.Timestamp.Builder builderForValue)
The time when the batch request was submitted to the server.
.google.protobuf.Timestamp submit_time = 2;
-
mergeSubmitTime
public BatchOperationMetadata.Builder mergeSubmitTime(com.google.protobuf.Timestamp value)
The time when the batch request was submitted to the server.
.google.protobuf.Timestamp submit_time = 2;
-
clearSubmitTime
public BatchOperationMetadata.Builder clearSubmitTime()
The time when the batch request was submitted to the server.
.google.protobuf.Timestamp submit_time = 2;
-
getSubmitTimeBuilder
public com.google.protobuf.Timestamp.Builder getSubmitTimeBuilder()
The time when the batch request was submitted to the server.
.google.protobuf.Timestamp submit_time = 2;
-
getSubmitTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getSubmitTimeOrBuilder()
The time when the batch request was submitted to the server.
.google.protobuf.Timestamp submit_time = 2;
- Specified by:
getSubmitTimeOrBuilder
in interfaceBatchOperationMetadataOrBuilder
-
hasEndTime
public boolean hasEndTime()
The time when the batch request is finished and [google.longrunning.Operation.done][google.longrunning.Operation.done] is set to true.
.google.protobuf.Timestamp end_time = 3;
- Specified by:
hasEndTime
in interfaceBatchOperationMetadataOrBuilder
- Returns:
- Whether the endTime field is set.
-
getEndTime
public com.google.protobuf.Timestamp getEndTime()
The time when the batch request is finished and [google.longrunning.Operation.done][google.longrunning.Operation.done] is set to true.
.google.protobuf.Timestamp end_time = 3;
- Specified by:
getEndTime
in interfaceBatchOperationMetadataOrBuilder
- Returns:
- The endTime.
-
setEndTime
public BatchOperationMetadata.Builder setEndTime(com.google.protobuf.Timestamp value)
The time when the batch request is finished and [google.longrunning.Operation.done][google.longrunning.Operation.done] is set to true.
.google.protobuf.Timestamp end_time = 3;
-
setEndTime
public BatchOperationMetadata.Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue)
The time when the batch request is finished and [google.longrunning.Operation.done][google.longrunning.Operation.done] is set to true.
.google.protobuf.Timestamp end_time = 3;
-
mergeEndTime
public BatchOperationMetadata.Builder mergeEndTime(com.google.protobuf.Timestamp value)
The time when the batch request is finished and [google.longrunning.Operation.done][google.longrunning.Operation.done] is set to true.
.google.protobuf.Timestamp end_time = 3;
-
clearEndTime
public BatchOperationMetadata.Builder clearEndTime()
The time when the batch request is finished and [google.longrunning.Operation.done][google.longrunning.Operation.done] is set to true.
.google.protobuf.Timestamp end_time = 3;
-
getEndTimeBuilder
public com.google.protobuf.Timestamp.Builder getEndTimeBuilder()
The time when the batch request is finished and [google.longrunning.Operation.done][google.longrunning.Operation.done] is set to true.
.google.protobuf.Timestamp end_time = 3;
-
getEndTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder()
The time when the batch request is finished and [google.longrunning.Operation.done][google.longrunning.Operation.done] is set to true.
.google.protobuf.Timestamp end_time = 3;
- Specified by:
getEndTimeOrBuilder
in interfaceBatchOperationMetadataOrBuilder
-
setUnknownFields
public final BatchOperationMetadata.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<BatchOperationMetadata.Builder>
-
mergeUnknownFields
public final BatchOperationMetadata.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<BatchOperationMetadata.Builder>
-
-