Package com.google.datastore.admin.v1
Class CommonMetadata.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<CommonMetadata.Builder>
com.google.datastore.admin.v1.CommonMetadata.Builder
- All Implemented Interfaces:
CommonMetadataOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- CommonMetadata
public static final class CommonMetadata.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<CommonMetadata.Builder>
implements CommonMetadataOrBuilder
Metadata common to all Datastore Admin operations.Protobuf type
google.datastore.admin.v1.CommonMetadata-
Method Summary
Modifier and TypeMethodDescriptionaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()The time the operation ended, either successfully or otherwise.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) The type of the operation.The time that work began on the operation.The current state of the Operation.clone()booleancontainsLabels(String key) The client-assigned labels which were provided when the operation was created.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorcom.google.protobuf.TimestampThe time the operation ended, either successfully or otherwise.com.google.protobuf.Timestamp.BuilderThe time the operation ended, either successfully or otherwise.com.google.protobuf.TimestampOrBuilderThe time the operation ended, either successfully or otherwise.Deprecated.intThe client-assigned labels which were provided when the operation was created.The client-assigned labels which were provided when the operation was created.getLabelsOrDefault(String key, String defaultValue) The client-assigned labels which were provided when the operation was created.getLabelsOrThrow(String key) The client-assigned labels which were provided when the operation was created.Deprecated.The type of the operation.intThe type of the operation.com.google.protobuf.TimestampThe time that work began on the operation.com.google.protobuf.Timestamp.BuilderThe time that work began on the operation.com.google.protobuf.TimestampOrBuilderThe time that work began on the operation.getState()The current state of the Operation.intThe current state of the Operation.booleanThe time the operation ended, either successfully or otherwise.booleanThe time that work began on the operation.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableprotected com.google.protobuf.MapFieldReflectionAccessorinternalGetMapFieldReflection(int number) protected com.google.protobuf.MapFieldReflectionAccessorinternalGetMutableMapFieldReflection(int number) final booleanmergeEndTime(com.google.protobuf.Timestamp value) The time the operation ended, either successfully or otherwise.mergeFrom(CommonMetadata other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeStartTime(com.google.protobuf.Timestamp value) The time that work began on the operation.final CommonMetadata.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) putAllLabels(Map<String, String> values) The client-assigned labels which were provided when the operation was created.The client-assigned labels which were provided when the operation was created.removeLabels(String key) The client-assigned labels which were provided when the operation was created.setEndTime(com.google.protobuf.Timestamp value) The time the operation ended, either successfully or otherwise.setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) The time the operation ended, either successfully or otherwise.setOperationType(OperationType value) The type of the operation.setOperationTypeValue(int value) The type of the operation.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setStartTime(com.google.protobuf.Timestamp value) The time that work began on the operation.setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) The time that work began on the operation.setState(CommonMetadata.State value) The current state of the Operation.setStateValue(int value) The current state of the Operation.final CommonMetadata.BuildersetUnknownFields(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, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number) - Overrides:
internalGetMapFieldReflectionin classcom.google.protobuf.GeneratedMessageV3.Builder<CommonMetadata.Builder>
-
internalGetMutableMapFieldReflection
protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number) - Overrides:
internalGetMutableMapFieldReflectionin classcom.google.protobuf.GeneratedMessageV3.Builder<CommonMetadata.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<CommonMetadata.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<CommonMetadata.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<CommonMetadata.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<CommonMetadata.Builder>
-
setField
public CommonMetadata.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CommonMetadata.Builder>
-
clearField
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CommonMetadata.Builder>
-
clearOneof
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<CommonMetadata.Builder>
-
setRepeatedField
public CommonMetadata.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CommonMetadata.Builder>
-
addRepeatedField
public CommonMetadata.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CommonMetadata.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<CommonMetadata.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<CommonMetadata.Builder>
-
mergeFrom
public CommonMetadata.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<CommonMetadata.Builder>- Throws:
IOException
-
hasStartTime
public boolean hasStartTime()The time that work began on the operation.
.google.protobuf.Timestamp start_time = 1;- Specified by:
hasStartTimein interfaceCommonMetadataOrBuilder- Returns:
- Whether the startTime field is set.
-
getStartTime
public com.google.protobuf.Timestamp getStartTime()The time that work began on the operation.
.google.protobuf.Timestamp start_time = 1;- Specified by:
getStartTimein interfaceCommonMetadataOrBuilder- Returns:
- The startTime.
-
setStartTime
The time that work began on the operation.
.google.protobuf.Timestamp start_time = 1; -
setStartTime
The time that work began on the operation.
.google.protobuf.Timestamp start_time = 1; -
mergeStartTime
The time that work began on the operation.
.google.protobuf.Timestamp start_time = 1; -
clearStartTime
The time that work began on the operation.
.google.protobuf.Timestamp start_time = 1; -
getStartTimeBuilder
public com.google.protobuf.Timestamp.Builder getStartTimeBuilder()The time that work began on the operation.
.google.protobuf.Timestamp start_time = 1; -
getStartTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder()The time that work began on the operation.
.google.protobuf.Timestamp start_time = 1;- Specified by:
getStartTimeOrBuilderin interfaceCommonMetadataOrBuilder
-
hasEndTime
public boolean hasEndTime()The time the operation ended, either successfully or otherwise.
.google.protobuf.Timestamp end_time = 2;- Specified by:
hasEndTimein interfaceCommonMetadataOrBuilder- Returns:
- Whether the endTime field is set.
-
getEndTime
public com.google.protobuf.Timestamp getEndTime()The time the operation ended, either successfully or otherwise.
.google.protobuf.Timestamp end_time = 2;- Specified by:
getEndTimein interfaceCommonMetadataOrBuilder- Returns:
- The endTime.
-
setEndTime
The time the operation ended, either successfully or otherwise.
.google.protobuf.Timestamp end_time = 2; -
setEndTime
The time the operation ended, either successfully or otherwise.
.google.protobuf.Timestamp end_time = 2; -
mergeEndTime
The time the operation ended, either successfully or otherwise.
.google.protobuf.Timestamp end_time = 2; -
clearEndTime
The time the operation ended, either successfully or otherwise.
.google.protobuf.Timestamp end_time = 2; -
getEndTimeBuilder
public com.google.protobuf.Timestamp.Builder getEndTimeBuilder()The time the operation ended, either successfully or otherwise.
.google.protobuf.Timestamp end_time = 2; -
getEndTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder()The time the operation ended, either successfully or otherwise.
.google.protobuf.Timestamp end_time = 2;- Specified by:
getEndTimeOrBuilderin interfaceCommonMetadataOrBuilder
-
getOperationTypeValue
public int getOperationTypeValue()The type of the operation. Can be used as a filter in ListOperationsRequest.
.google.datastore.admin.v1.OperationType operation_type = 3;- Specified by:
getOperationTypeValuein interfaceCommonMetadataOrBuilder- Returns:
- The enum numeric value on the wire for operationType.
-
setOperationTypeValue
The type of the operation. Can be used as a filter in ListOperationsRequest.
.google.datastore.admin.v1.OperationType operation_type = 3;- Parameters:
value- The enum numeric value on the wire for operationType to set.- Returns:
- This builder for chaining.
-
getOperationType
The type of the operation. Can be used as a filter in ListOperationsRequest.
.google.datastore.admin.v1.OperationType operation_type = 3;- Specified by:
getOperationTypein interfaceCommonMetadataOrBuilder- Returns:
- The operationType.
-
setOperationType
The type of the operation. Can be used as a filter in ListOperationsRequest.
.google.datastore.admin.v1.OperationType operation_type = 3;- Parameters:
value- The operationType to set.- Returns:
- This builder for chaining.
-
clearOperationType
The type of the operation. Can be used as a filter in ListOperationsRequest.
.google.datastore.admin.v1.OperationType operation_type = 3;- Returns:
- This builder for chaining.
-
getLabelsCount
public int getLabelsCount()Description copied from interface:CommonMetadataOrBuilderThe client-assigned labels which were provided when the operation was created. May also include additional labels.
map<string, string> labels = 4;- Specified by:
getLabelsCountin interfaceCommonMetadataOrBuilder
-
containsLabels
The client-assigned labels which were provided when the operation was created. May also include additional labels.
map<string, string> labels = 4;- Specified by:
containsLabelsin interfaceCommonMetadataOrBuilder
-
getLabels
Deprecated.UsegetLabelsMap()instead.- Specified by:
getLabelsin interfaceCommonMetadataOrBuilder
-
getLabelsMap
The client-assigned labels which were provided when the operation was created. May also include additional labels.
map<string, string> labels = 4;- Specified by:
getLabelsMapin interfaceCommonMetadataOrBuilder
-
getLabelsOrDefault
The client-assigned labels which were provided when the operation was created. May also include additional labels.
map<string, string> labels = 4;- Specified by:
getLabelsOrDefaultin interfaceCommonMetadataOrBuilder
-
getLabelsOrThrow
The client-assigned labels which were provided when the operation was created. May also include additional labels.
map<string, string> labels = 4;- Specified by:
getLabelsOrThrowin interfaceCommonMetadataOrBuilder
-
clearLabels
-
removeLabels
The client-assigned labels which were provided when the operation was created. May also include additional labels.
map<string, string> labels = 4; -
getMutableLabels
Deprecated.Use alternate mutation accessors instead. -
putLabels
The client-assigned labels which were provided when the operation was created. May also include additional labels.
map<string, string> labels = 4; -
putAllLabels
The client-assigned labels which were provided when the operation was created. May also include additional labels.
map<string, string> labels = 4; -
getStateValue
public int getStateValue()The current state of the Operation.
.google.datastore.admin.v1.CommonMetadata.State state = 5;- Specified by:
getStateValuein interfaceCommonMetadataOrBuilder- Returns:
- The enum numeric value on the wire for state.
-
setStateValue
The current state of the Operation.
.google.datastore.admin.v1.CommonMetadata.State state = 5;- Parameters:
value- The enum numeric value on the wire for state to set.- Returns:
- This builder for chaining.
-
getState
The current state of the Operation.
.google.datastore.admin.v1.CommonMetadata.State state = 5;- Specified by:
getStatein interfaceCommonMetadataOrBuilder- Returns:
- The state.
-
setState
The current state of the Operation.
.google.datastore.admin.v1.CommonMetadata.State state = 5;- Parameters:
value- The state to set.- Returns:
- This builder for chaining.
-
clearState
The current state of the Operation.
.google.datastore.admin.v1.CommonMetadata.State state = 5;- Returns:
- This builder for chaining.
-
setUnknownFields
public final CommonMetadata.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<CommonMetadata.Builder>
-
mergeUnknownFields
public final CommonMetadata.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<CommonMetadata.Builder>
-