Class CommonMetadata (2.24.3)
2.40.0 (latest)
2.37.0
2.36.0
2.34.0
2.33.3
2.32.3
2.31.4
2.30.0
2.29.1
2.28.2
2.27.1
2.26.4
2.25.2
2.24.3
2.23.0
2.22.0
2.21.3
2.20.2
2.19.2
2.18.5
2.17.6
public final class CommonMetadata extends GeneratedMessageV3 implements CommonMetadataOrBuilder
Metadata common to all Datastore Admin operations.
Protobuf type google.datastore.admin.v1.CommonMetadata
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
public static final int END_TIME_FIELD_NUMBER
Field Value
Type
Description
int
public static final int LABELS_FIELD_NUMBER
Field Value
Type
Description
int
public static final int OPERATION_TYPE_FIELD_NUMBER
Field Value
Type
Description
int
public static final int START_TIME_FIELD_NUMBER
Field Value
Type
Description
int
public static final int STATE_FIELD_NUMBER
Field Value
Type
Description
int
Static Methods
public static CommonMetadata getDefaultInstance ()
public static final Descriptors . Descriptor getDescriptor ()
public static CommonMetadata . Builder newBuilder ()
public static CommonMetadata . Builder newBuilder ( CommonMetadata prototype )
public static CommonMetadata parseDelimitedFrom ( InputStream input )
public static CommonMetadata parseDelimitedFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
public static CommonMetadata parseFrom ( byte [] data )
Parameter
Name
Description
data
byte []
public static CommonMetadata parseFrom ( byte [] data , ExtensionRegistryLite extensionRegistry )
public static CommonMetadata parseFrom ( ByteString data )
public static CommonMetadata parseFrom ( ByteString data , ExtensionRegistryLite extensionRegistry )
public static CommonMetadata parseFrom ( CodedInputStream input )
public static CommonMetadata parseFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
public static CommonMetadata parseFrom ( InputStream input )
public static CommonMetadata parseFrom ( InputStream input , ExtensionRegistryLite extensionRegistry )
public static CommonMetadata parseFrom ( ByteBuffer data )
public static CommonMetadata parseFrom ( ByteBuffer data , ExtensionRegistryLite extensionRegistry )
public static Parser<CommonMetadata> parser ()
Methods
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;
Parameter
Name
Description
key
String
public boolean equals ( Object obj )
Parameter
Name
Description
obj
Object
Overrides
public CommonMetadata getDefaultInstanceForType ()
public Timestamp getEndTime ()
The time the operation ended, either successfully or otherwise.
.google.protobuf.Timestamp end_time = 2;
Returns
Type
Description
Timestamp
The endTime.
public TimestampOrBuilder getEndTimeOrBuilder ()
The time the operation ended, either successfully or otherwise.
.google.protobuf.Timestamp end_time = 2;
public Map<String , String > getLabels ()
public int getLabelsCount ()
The client-assigned labels which were provided when the operation was
created. May also include additional labels.
map<string, string> labels = 4;
Returns
Type
Description
int
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;
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;
Returns
Type
Description
String
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;
Parameter
Name
Description
key
String
Returns
Type
Description
String
public OperationType getOperationType ()
The type of the operation. Can be used as a filter in
ListOperationsRequest.
.google.datastore.admin.v1.OperationType operation_type = 3;
public int getOperationTypeValue ()
The type of the operation. Can be used as a filter in
ListOperationsRequest.
.google.datastore.admin.v1.OperationType operation_type = 3;
Returns
Type
Description
int
The enum numeric value on the wire for operationType.
public Parser<CommonMetadata> getParserForType ()
Overrides
public int getSerializedSize ()
Returns
Type
Description
int
Overrides
public Timestamp getStartTime ()
The time that work began on the operation.
.google.protobuf.Timestamp start_time = 1;
Returns
Type
Description
Timestamp
The startTime.
public TimestampOrBuilder getStartTimeOrBuilder ()
The time that work began on the operation.
.google.protobuf.Timestamp start_time = 1;
public CommonMetadata . State getState ()
The current state of the Operation.
.google.datastore.admin.v1.CommonMetadata.State state = 5;
public int getStateValue ()
The current state of the Operation.
.google.datastore.admin.v1.CommonMetadata.State state = 5;
Returns
Type
Description
int
The enum numeric value on the wire for state.
public boolean hasEndTime ()
The time the operation ended, either successfully or otherwise.
.google.protobuf.Timestamp end_time = 2;
Returns
Type
Description
boolean
Whether the endTime field is set.
public boolean hasStartTime ()
The time that work began on the operation.
.google.protobuf.Timestamp start_time = 1;
Returns
Type
Description
boolean
Whether the startTime field is set.
Returns
Type
Description
int
Overrides
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
protected MapFieldReflectionAccessor internalGetMapFieldReflection ( int number )
Parameter
Name
Description
number
int
Returns
Type
Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
public final boolean isInitialized ()
Overrides
public CommonMetadata . Builder newBuilderForType ()
protected CommonMetadata . Builder newBuilderForType ( GeneratedMessageV3 . BuilderParent parent )
Overrides
protected Object newInstance ( GeneratedMessageV3 . UnusedPrivateParameter unused )
Returns
Type
Description
Object
Overrides
public CommonMetadata . Builder toBuilder ()
public void writeTo ( CodedOutputStream output )
Overrides
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2026-04-25 UTC.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2026-04-25 UTC."],[],[]]