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
Modifier and Type | Method and 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(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
CommonMetadata.Builder |
mergeFrom(CommonMetadata other) |
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.Builder builderForValue)
The time the operation ended, either successfully or otherwise.
|
CommonMetadata.Builder |
setEndTime(com.google.protobuf.Timestamp value)
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.Builder builderForValue)
The time that work began on the operation.
|
CommonMetadata.Builder |
setStartTime(com.google.protobuf.Timestamp value)
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) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
internalGetMapField
in class com.google.protobuf.GeneratedMessageV3.Builder<CommonMetadata.Builder>
protected com.google.protobuf.MapField internalGetMutableMapField(int number)
internalGetMutableMapField
in class com.google.protobuf.GeneratedMessageV3.Builder<CommonMetadata.Builder>
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessageV3.Builder<CommonMetadata.Builder>
public CommonMetadata.Builder clear()
clear
in interface com.google.protobuf.Message.Builder
clear
in interface com.google.protobuf.MessageLite.Builder
clear
in class com.google.protobuf.GeneratedMessageV3.Builder<CommonMetadata.Builder>
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.Message.Builder
getDescriptorForType
in interface com.google.protobuf.MessageOrBuilder
getDescriptorForType
in class com.google.protobuf.GeneratedMessageV3.Builder<CommonMetadata.Builder>
public CommonMetadata getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
public CommonMetadata build()
build
in interface com.google.protobuf.Message.Builder
build
in interface com.google.protobuf.MessageLite.Builder
public CommonMetadata buildPartial()
buildPartial
in interface com.google.protobuf.Message.Builder
buildPartial
in interface com.google.protobuf.MessageLite.Builder
public CommonMetadata.Builder clone()
clone
in interface com.google.protobuf.Message.Builder
clone
in interface com.google.protobuf.MessageLite.Builder
clone
in class com.google.protobuf.GeneratedMessageV3.Builder<CommonMetadata.Builder>
public CommonMetadata.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField
in interface com.google.protobuf.Message.Builder
setField
in class com.google.protobuf.GeneratedMessageV3.Builder<CommonMetadata.Builder>
public CommonMetadata.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField
in interface com.google.protobuf.Message.Builder
clearField
in class com.google.protobuf.GeneratedMessageV3.Builder<CommonMetadata.Builder>
public CommonMetadata.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof
in interface com.google.protobuf.Message.Builder
clearOneof
in class com.google.protobuf.GeneratedMessageV3.Builder<CommonMetadata.Builder>
public CommonMetadata.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField
in interface com.google.protobuf.Message.Builder
setRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<CommonMetadata.Builder>
public CommonMetadata.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField
in interface com.google.protobuf.Message.Builder
addRepeatedField
in class com.google.protobuf.GeneratedMessageV3.Builder<CommonMetadata.Builder>
public CommonMetadata.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<CommonMetadata.Builder>
public CommonMetadata.Builder mergeFrom(CommonMetadata other)
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3.Builder<CommonMetadata.Builder>
public CommonMetadata.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom
in interface com.google.protobuf.Message.Builder
mergeFrom
in interface com.google.protobuf.MessageLite.Builder
mergeFrom
in class com.google.protobuf.AbstractMessage.Builder<CommonMetadata.Builder>
IOException
public boolean hasStartTime()
The time that work began on the operation.
.google.protobuf.Timestamp start_time = 1;
hasStartTime
in interface CommonMetadataOrBuilder
public com.google.protobuf.Timestamp getStartTime()
The time that work began on the operation.
.google.protobuf.Timestamp start_time = 1;
getStartTime
in interface CommonMetadataOrBuilder
public CommonMetadata.Builder setStartTime(com.google.protobuf.Timestamp value)
The time that work began on the operation.
.google.protobuf.Timestamp start_time = 1;
public CommonMetadata.Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue)
The time that work began on the operation.
.google.protobuf.Timestamp start_time = 1;
public CommonMetadata.Builder mergeStartTime(com.google.protobuf.Timestamp value)
The time that work began on the operation.
.google.protobuf.Timestamp start_time = 1;
public CommonMetadata.Builder clearStartTime()
The time that work began on the operation.
.google.protobuf.Timestamp start_time = 1;
public com.google.protobuf.Timestamp.Builder getStartTimeBuilder()
The time that work began on the operation.
.google.protobuf.Timestamp start_time = 1;
public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder()
The time that work began on the operation.
.google.protobuf.Timestamp start_time = 1;
getStartTimeOrBuilder
in interface CommonMetadataOrBuilder
public boolean hasEndTime()
The time the operation ended, either successfully or otherwise.
.google.protobuf.Timestamp end_time = 2;
hasEndTime
in interface CommonMetadataOrBuilder
public com.google.protobuf.Timestamp getEndTime()
The time the operation ended, either successfully or otherwise.
.google.protobuf.Timestamp end_time = 2;
getEndTime
in interface CommonMetadataOrBuilder
public CommonMetadata.Builder setEndTime(com.google.protobuf.Timestamp value)
The time the operation ended, either successfully or otherwise.
.google.protobuf.Timestamp end_time = 2;
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;
public CommonMetadata.Builder mergeEndTime(com.google.protobuf.Timestamp value)
The time the operation ended, either successfully or otherwise.
.google.protobuf.Timestamp end_time = 2;
public CommonMetadata.Builder clearEndTime()
The time the operation ended, either successfully or otherwise.
.google.protobuf.Timestamp end_time = 2;
public com.google.protobuf.Timestamp.Builder getEndTimeBuilder()
The time the operation ended, either successfully or otherwise.
.google.protobuf.Timestamp end_time = 2;
public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder()
The time the operation ended, either successfully or otherwise.
.google.protobuf.Timestamp end_time = 2;
getEndTimeOrBuilder
in interface CommonMetadataOrBuilder
public int getOperationTypeValue()
The type of the operation. Can be used as a filter in ListOperationsRequest.
.google.datastore.admin.v1.OperationType operation_type = 3;
getOperationTypeValue
in interface CommonMetadataOrBuilder
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;
value
- The enum numeric value on the wire for operationType to set.public OperationType getOperationType()
The type of the operation. Can be used as a filter in ListOperationsRequest.
.google.datastore.admin.v1.OperationType operation_type = 3;
getOperationType
in interface CommonMetadataOrBuilder
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;
value
- The operationType to set.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;
public int getLabelsCount()
CommonMetadataOrBuilder
The client-assigned labels which were provided when the operation was created. May also include additional labels.
map<string, string> labels = 4;
getLabelsCount
in interface CommonMetadataOrBuilder
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;
containsLabels
in interface CommonMetadataOrBuilder
@Deprecated public Map<String,String> getLabels()
getLabelsMap()
instead.getLabels
in interface CommonMetadataOrBuilder
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;
getLabelsMap
in interface CommonMetadataOrBuilder
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;
getLabelsOrDefault
in interface CommonMetadataOrBuilder
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;
getLabelsOrThrow
in interface CommonMetadataOrBuilder
public CommonMetadata.Builder clearLabels()
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;
@Deprecated public Map<String,String> getMutableLabels()
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;
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;
public int getStateValue()
The current state of the Operation.
.google.datastore.admin.v1.CommonMetadata.State state = 5;
getStateValue
in interface CommonMetadataOrBuilder
public CommonMetadata.Builder setStateValue(int value)
The current state of the Operation.
.google.datastore.admin.v1.CommonMetadata.State state = 5;
value
- The enum numeric value on the wire for state to set.public CommonMetadata.State getState()
The current state of the Operation.
.google.datastore.admin.v1.CommonMetadata.State state = 5;
getState
in interface CommonMetadataOrBuilder
public CommonMetadata.Builder setState(CommonMetadata.State value)
The current state of the Operation.
.google.datastore.admin.v1.CommonMetadata.State state = 5;
value
- The state to set.public CommonMetadata.Builder clearState()
The current state of the Operation.
.google.datastore.admin.v1.CommonMetadata.State state = 5;
public final CommonMetadata.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields
in interface com.google.protobuf.Message.Builder
setUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<CommonMetadata.Builder>
public final CommonMetadata.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields
in interface com.google.protobuf.Message.Builder
mergeUnknownFields
in class com.google.protobuf.GeneratedMessageV3.Builder<CommonMetadata.Builder>
Copyright © 2023 Google LLC. All rights reserved.