public final class CommonMetadata extends com.google.protobuf.GeneratedMessageV3 implements CommonMetadataOrBuilder
Metadata common to all Datastore Admin operations.Protobuf type
google.datastore.admin.v1.CommonMetadata
Modifier and Type | Class and Description |
---|---|
static class |
CommonMetadata.Builder
Metadata common to all Datastore Admin operations.
|
static class |
CommonMetadata.State
The various possible states for an ongoing Operation.
|
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
Modifier and Type | Field and Description |
---|---|
static int |
END_TIME_FIELD_NUMBER |
static int |
LABELS_FIELD_NUMBER |
static int |
OPERATION_TYPE_FIELD_NUMBER |
static int |
START_TIME_FIELD_NUMBER |
static int |
STATE_FIELD_NUMBER |
Modifier and Type | Method and Description |
---|---|
boolean |
containsLabels(String key)
The client-assigned labels which were provided when the operation was
created.
|
boolean |
equals(Object obj) |
static CommonMetadata |
getDefaultInstance() |
CommonMetadata |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Timestamp |
getEndTime()
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.
|
OperationType |
getOperationType()
The type of the operation.
|
int |
getOperationTypeValue()
The type of the operation.
|
com.google.protobuf.Parser<CommonMetadata> |
getParserForType() |
int |
getSerializedSize() |
com.google.protobuf.Timestamp |
getStartTime()
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.
|
int |
hashCode() |
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) |
boolean |
isInitialized() |
static CommonMetadata.Builder |
newBuilder() |
static CommonMetadata.Builder |
newBuilder(CommonMetadata prototype) |
CommonMetadata.Builder |
newBuilderForType() |
protected CommonMetadata.Builder |
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) |
protected Object |
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused) |
static CommonMetadata |
parseDelimitedFrom(InputStream input) |
static CommonMetadata |
parseDelimitedFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static CommonMetadata |
parseFrom(byte[] data) |
static CommonMetadata |
parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static CommonMetadata |
parseFrom(ByteBuffer data) |
static CommonMetadata |
parseFrom(ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static CommonMetadata |
parseFrom(com.google.protobuf.ByteString data) |
static CommonMetadata |
parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static CommonMetadata |
parseFrom(com.google.protobuf.CodedInputStream input) |
static CommonMetadata |
parseFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static CommonMetadata |
parseFrom(InputStream input) |
static CommonMetadata |
parseFrom(InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
static com.google.protobuf.Parser<CommonMetadata> |
parser() |
CommonMetadata.Builder |
toBuilder() |
void |
writeTo(com.google.protobuf.CodedOutputStream output) |
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
public static final int START_TIME_FIELD_NUMBER
public static final int END_TIME_FIELD_NUMBER
public static final int OPERATION_TYPE_FIELD_NUMBER
public static final int LABELS_FIELD_NUMBER
public static final int STATE_FIELD_NUMBER
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
newInstance
in class com.google.protobuf.GeneratedMessageV3
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.MapField internalGetMapField(int number)
internalGetMapField
in class com.google.protobuf.GeneratedMessageV3
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable
in class com.google.protobuf.GeneratedMessageV3
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 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 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 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 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 int getStateValue()
The current state of the Operation.
.google.datastore.admin.v1.CommonMetadata.State state = 5;
getStateValue
in interface CommonMetadataOrBuilder
public CommonMetadata.State getState()
The current state of the Operation.
.google.datastore.admin.v1.CommonMetadata.State state = 5;
getState
in interface CommonMetadataOrBuilder
public final boolean isInitialized()
isInitialized
in interface com.google.protobuf.MessageLiteOrBuilder
isInitialized
in class com.google.protobuf.GeneratedMessageV3
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
writeTo
in interface com.google.protobuf.MessageLite
writeTo
in class com.google.protobuf.GeneratedMessageV3
IOException
public int getSerializedSize()
getSerializedSize
in interface com.google.protobuf.MessageLite
getSerializedSize
in class com.google.protobuf.GeneratedMessageV3
public boolean equals(Object obj)
equals
in interface com.google.protobuf.Message
equals
in class com.google.protobuf.AbstractMessage
public int hashCode()
hashCode
in interface com.google.protobuf.Message
hashCode
in class com.google.protobuf.AbstractMessage
public static CommonMetadata parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static CommonMetadata parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static CommonMetadata parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static CommonMetadata parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static CommonMetadata parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static CommonMetadata parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
com.google.protobuf.InvalidProtocolBufferException
public static CommonMetadata parseFrom(InputStream input) throws IOException
IOException
public static CommonMetadata parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static CommonMetadata parseDelimitedFrom(InputStream input) throws IOException
IOException
public static CommonMetadata parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public static CommonMetadata parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
IOException
public static CommonMetadata parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
IOException
public CommonMetadata.Builder newBuilderForType()
newBuilderForType
in interface com.google.protobuf.Message
newBuilderForType
in interface com.google.protobuf.MessageLite
public static CommonMetadata.Builder newBuilder()
public static CommonMetadata.Builder newBuilder(CommonMetadata prototype)
public CommonMetadata.Builder toBuilder()
toBuilder
in interface com.google.protobuf.Message
toBuilder
in interface com.google.protobuf.MessageLite
protected CommonMetadata.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
newBuilderForType
in class com.google.protobuf.GeneratedMessageV3
public static CommonMetadata getDefaultInstance()
public static com.google.protobuf.Parser<CommonMetadata> parser()
public com.google.protobuf.Parser<CommonMetadata> getParserForType()
getParserForType
in interface com.google.protobuf.Message
getParserForType
in interface com.google.protobuf.MessageLite
getParserForType
in class com.google.protobuf.GeneratedMessageV3
public CommonMetadata getDefaultInstanceForType()
getDefaultInstanceForType
in interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType
in interface com.google.protobuf.MessageOrBuilder
Copyright © 2023 Google LLC. All rights reserved.