Send feedback
Class CommonMetadata (2.14.6)
Stay organized with collections
Save and categorize content based on your preferences.
Version 2.14.6 keyboard_arrow_down
public final class CommonMetadata extends GeneratedMessageV3 implements CommonMetadataOrBuilder
Metadata common to all Datastore Admin operations.
Protobuf type google.datastore.admin.v1.CommonMetadata
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;
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;
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
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 final UnknownFieldSet getUnknownFields ()
Overrides
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 MapField internalGetMapField ( int number )
Parameter Name Description number
int
Overrides
public final boolean isInitialized ()
Overrides
public CommonMetadata . Builder newBuilderForType ()
protected CommonMetadata . Builder newBuilderForType ( GeneratedMessageV3 . BuilderParent parent )
Overrides
protected Object newInstance ( GeneratedMessageV3 . UnusedPrivateParameter unused )
Overrides
public CommonMetadata . Builder toBuilder ()
public void writeTo ( CodedOutputStream output )
Overrides
Send feedback
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 2025-01-27 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-27 UTC."],[],[]]