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.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
CommonMetadata
build()
CommonMetadata
buildPartial()
CommonMetadata.Builder
clear()
CommonMetadata.Builder
clearEndTime()
The time the operation ended, either successfully or otherwise.CommonMetadata.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
CommonMetadata.Builder
clearLabels()
CommonMetadata.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
CommonMetadata.Builder
clearOperationType()
The type of the operation.CommonMetadata.Builder
clearStartTime()
The time that work began on the operation.CommonMetadata.Builder
clearState()
The current state of the Operation.CommonMetadata.Builder
clone()
boolean
containsLabels(String key)
The client-assigned labels which were provided when the operation was created.CommonMetadata
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
com.google.protobuf.Timestamp
getEndTime()
The time the operation ended, either successfully or otherwise.com.google.protobuf.Timestamp.Builder
getEndTimeBuilder()
The time the operation ended, either successfully or otherwise.com.google.protobuf.TimestampOrBuilder
getEndTimeOrBuilder()
The time the operation ended, either successfully or otherwise.Map<String,String>
getLabels()
Deprecated.int
getLabelsCount()
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.String
getLabelsOrDefault(String key, String defaultValue)
The client-assigned labels which were provided when the operation was created.String
getLabelsOrThrow(String key)
The client-assigned labels which were provided when the operation was created.Map<String,String>
getMutableLabels()
Deprecated.OperationType
getOperationType()
The type of the operation.int
getOperationTypeValue()
The type of the operation.com.google.protobuf.Timestamp
getStartTime()
The time that work began on the operation.com.google.protobuf.Timestamp.Builder
getStartTimeBuilder()
The time that work began on the operation.com.google.protobuf.TimestampOrBuilder
getStartTimeOrBuilder()
The time that work began on the operation.CommonMetadata.State
getState()
The current state of the Operation.int
getStateValue()
The current state of the Operation.boolean
hasEndTime()
The time the operation ended, either successfully or otherwise.boolean
hasStartTime()
The time that work began on the operation.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
protected com.google.protobuf.MapField
internalGetMapField(int number)
protected com.google.protobuf.MapField
internalGetMutableMapField(int number)
boolean
isInitialized()
CommonMetadata.Builder
mergeEndTime(com.google.protobuf.Timestamp value)
The time the operation ended, either successfully or otherwise.CommonMetadata.Builder
mergeFrom(CommonMetadata other)
CommonMetadata.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
CommonMetadata.Builder
mergeFrom(com.google.protobuf.Message other)
CommonMetadata.Builder
mergeStartTime(com.google.protobuf.Timestamp value)
The time that work began on the operation.CommonMetadata.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
CommonMetadata.Builder
putAllLabels(Map<String,String> values)
The client-assigned labels which were provided when the operation was created.CommonMetadata.Builder
putLabels(String key, String value)
The client-assigned labels which were provided when the operation was created.CommonMetadata.Builder
removeLabels(String key)
The client-assigned labels which were provided when the operation was created.CommonMetadata.Builder
setEndTime(com.google.protobuf.Timestamp value)
The time the operation ended, either successfully or otherwise.CommonMetadata.Builder
setEndTime(com.google.protobuf.Timestamp.Builder builderForValue)
The time the operation ended, either successfully or otherwise.CommonMetadata.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
CommonMetadata.Builder
setOperationType(OperationType value)
The type of the operation.CommonMetadata.Builder
setOperationTypeValue(int value)
The type of the operation.CommonMetadata.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
CommonMetadata.Builder
setStartTime(com.google.protobuf.Timestamp value)
The time that work began on the operation.CommonMetadata.Builder
setStartTime(com.google.protobuf.Timestamp.Builder builderForValue)
The time that work began on the operation.CommonMetadata.Builder
setState(CommonMetadata.State value)
The current state of the Operation.CommonMetadata.Builder
setStateValue(int value)
The current state of the Operation.CommonMetadata.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, 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:
internalGetMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<CommonMetadata.Builder>
-
internalGetMutableMapField
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
- Overrides:
internalGetMutableMapField
in classcom.google.protobuf.GeneratedMessageV3.Builder<CommonMetadata.Builder>
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<CommonMetadata.Builder>
-
clear
public CommonMetadata.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<CommonMetadata.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<CommonMetadata.Builder>
-
getDefaultInstanceForType
public CommonMetadata getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public CommonMetadata build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public CommonMetadata buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public CommonMetadata.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<CommonMetadata.Builder>
-
setField
public CommonMetadata.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<CommonMetadata.Builder>
-
clearField
public CommonMetadata.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<CommonMetadata.Builder>
-
clearOneof
public CommonMetadata.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<CommonMetadata.Builder>
-
setRepeatedField
public CommonMetadata.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<CommonMetadata.Builder>
-
addRepeatedField
public CommonMetadata.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<CommonMetadata.Builder>
-
mergeFrom
public CommonMetadata.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<CommonMetadata.Builder>
-
mergeFrom
public CommonMetadata.Builder mergeFrom(CommonMetadata other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
hasStartTime
in 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:
getStartTime
in 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:
getStartTimeOrBuilder
in interfaceCommonMetadataOrBuilder
-
hasEndTime
public boolean hasEndTime()
The time the operation ended, either successfully or otherwise.
.google.protobuf.Timestamp end_time = 2;
- Specified by:
hasEndTime
in 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:
getEndTime
in 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:
getEndTimeOrBuilder
in 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:
getOperationTypeValue
in 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:
getOperationType
in 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:CommonMetadataOrBuilder
The client-assigned labels which were provided when the operation was created. May also include additional labels.
map<string, string> labels = 4;
- Specified by:
getLabelsCount
in 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:
containsLabels
in interfaceCommonMetadataOrBuilder
-
getLabels
@Deprecated public Map<String,String> getLabels()
Deprecated.UsegetLabelsMap()
instead.- Specified by:
getLabels
in 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:
getLabelsMap
in 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:
getLabelsOrDefault
in 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:
getLabelsOrThrow
in 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:
getStateValue
in 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:
getState
in 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:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<CommonMetadata.Builder>
-
mergeUnknownFields
public final CommonMetadata.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<CommonMetadata.Builder>
-
-