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 typegoogle.datastore.admin.v1.CommonMetadata
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description CommonMetadata.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)CommonMetadatabuild()CommonMetadatabuildPartial()CommonMetadata.Builderclear()CommonMetadata.BuilderclearEndTime()The time the operation ended, either successfully or otherwise.CommonMetadata.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)CommonMetadata.BuilderclearLabels()CommonMetadata.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)CommonMetadata.BuilderclearOperationType()The type of the operation.CommonMetadata.BuilderclearStartTime()The time that work began on the operation.CommonMetadata.BuilderclearState()The current state of the Operation.CommonMetadata.Builderclone()booleancontainsLabels(String key)The client-assigned labels which were provided when the operation was created.CommonMetadatagetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()com.google.protobuf.TimestampgetEndTime()The time the operation ended, either successfully or otherwise.com.google.protobuf.Timestamp.BuildergetEndTimeBuilder()The time the operation ended, either successfully or otherwise.com.google.protobuf.TimestampOrBuildergetEndTimeOrBuilder()The time the operation ended, either successfully or otherwise.Map<String,String>getLabels()Deprecated.intgetLabelsCount()The client-assigned labels which were provided when the operation was created.Map<String,String>getLabelsMap()The client-assigned labels which were provided when the operation was created.StringgetLabelsOrDefault(String key, String defaultValue)The client-assigned labels which were provided when the operation was created.StringgetLabelsOrThrow(String key)The client-assigned labels which were provided when the operation was created.Map<String,String>getMutableLabels()Deprecated.OperationTypegetOperationType()The type of the operation.intgetOperationTypeValue()The type of the operation.com.google.protobuf.TimestampgetStartTime()The time that work began on the operation.com.google.protobuf.Timestamp.BuildergetStartTimeBuilder()The time that work began on the operation.com.google.protobuf.TimestampOrBuildergetStartTimeOrBuilder()The time that work began on the operation.CommonMetadata.StategetState()The current state of the Operation.intgetStateValue()The current state of the Operation.booleanhasEndTime()The time the operation ended, either successfully or otherwise.booleanhasStartTime()The time that work began on the operation.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()protected com.google.protobuf.MapFieldinternalGetMapField(int number)protected com.google.protobuf.MapFieldinternalGetMutableMapField(int number)booleanisInitialized()CommonMetadata.BuildermergeEndTime(com.google.protobuf.Timestamp value)The time the operation ended, either successfully or otherwise.CommonMetadata.BuildermergeFrom(CommonMetadata other)CommonMetadata.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)CommonMetadata.BuildermergeFrom(com.google.protobuf.Message other)CommonMetadata.BuildermergeStartTime(com.google.protobuf.Timestamp value)The time that work began on the operation.CommonMetadata.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)CommonMetadata.BuilderputAllLabels(Map<String,String> values)The client-assigned labels which were provided when the operation was created.CommonMetadata.BuilderputLabels(String key, String value)The client-assigned labels which were provided when the operation was created.CommonMetadata.BuilderremoveLabels(String key)The client-assigned labels which were provided when the operation was created.CommonMetadata.BuildersetEndTime(com.google.protobuf.Timestamp value)The time the operation ended, either successfully or otherwise.CommonMetadata.BuildersetEndTime(com.google.protobuf.Timestamp.Builder builderForValue)The time the operation ended, either successfully or otherwise.CommonMetadata.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)CommonMetadata.BuildersetOperationType(OperationType value)The type of the operation.CommonMetadata.BuildersetOperationTypeValue(int value)The type of the operation.CommonMetadata.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)CommonMetadata.BuildersetStartTime(com.google.protobuf.Timestamp value)The time that work began on the operation.CommonMetadata.BuildersetStartTime(com.google.protobuf.Timestamp.Builder builderForValue)The time that work began on the operation.CommonMetadata.BuildersetState(CommonMetadata.State value)The current state of the Operation.CommonMetadata.BuildersetStateValue(int value)The current state of the Operation.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, 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()
-
internalGetMapField
protected com.google.protobuf.MapField internalGetMapField(int number)
- Overrides:
internalGetMapFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CommonMetadata.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapFieldin 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
public 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
public CommonMetadata getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public CommonMetadata build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public CommonMetadata buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public CommonMetadata.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
public CommonMetadata.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<CommonMetadata.Builder>
-
clearOneof
public CommonMetadata.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- 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
public CommonMetadata.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<CommonMetadata.Builder>
-
mergeFrom
public CommonMetadata.Builder mergeFrom(CommonMetadata other)
-
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
public CommonMetadata.Builder setStartTime(com.google.protobuf.Timestamp value)
The time that work began on the operation.
.google.protobuf.Timestamp start_time = 1;
-
setStartTime
public CommonMetadata.Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue)
The time that work began on the operation.
.google.protobuf.Timestamp start_time = 1;
-
mergeStartTime
public CommonMetadata.Builder mergeStartTime(com.google.protobuf.Timestamp value)
The time that work began on the operation.
.google.protobuf.Timestamp start_time = 1;
-
clearStartTime
public CommonMetadata.Builder 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
public CommonMetadata.Builder setEndTime(com.google.protobuf.Timestamp value)
The time the operation ended, either successfully or otherwise.
.google.protobuf.Timestamp end_time = 2;
-
setEndTime
public CommonMetadata.Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue)
The time the operation ended, either successfully or otherwise.
.google.protobuf.Timestamp end_time = 2;
-
mergeEndTime
public CommonMetadata.Builder mergeEndTime(com.google.protobuf.Timestamp value)
The time the operation ended, either successfully or otherwise.
.google.protobuf.Timestamp end_time = 2;
-
clearEndTime
public CommonMetadata.Builder 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
public CommonMetadata.Builder setOperationTypeValue(int value)
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
public OperationType 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
public CommonMetadata.Builder setOperationType(OperationType value)
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
public CommonMetadata.Builder 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
public boolean containsLabels(String key)
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 public Map<String,String> getLabels()
Deprecated.UsegetLabelsMap()instead.- Specified by:
getLabelsin interfaceCommonMetadataOrBuilder
-
getLabelsMap
public Map<String,String> 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
public String getLabelsOrDefault(String key, String defaultValue)
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
public String getLabelsOrThrow(String key)
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
public CommonMetadata.Builder clearLabels()
-
removeLabels
public CommonMetadata.Builder removeLabels(String key)
The client-assigned labels which were provided when the operation was created. May also include additional labels.
map<string, string> labels = 4;
-
getMutableLabels
@Deprecated public Map<String,String> getMutableLabels()
Deprecated.Use alternate mutation accessors instead.
-
putLabels
public CommonMetadata.Builder putLabels(String key, String value)
The client-assigned labels which were provided when the operation was created. May also include additional labels.
map<string, string> labels = 4;
-
putAllLabels
public CommonMetadata.Builder putAllLabels(Map<String,String> values)
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
public CommonMetadata.Builder setStateValue(int value)
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
public CommonMetadata.State getState()
The current state of the Operation.
.google.datastore.admin.v1.CommonMetadata.State state = 5;- Specified by:
getStatein interfaceCommonMetadataOrBuilder- Returns:
- The state.
-
setState
public CommonMetadata.Builder setState(CommonMetadata.State value)
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
public CommonMetadata.Builder 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>
-
-