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
public static final int LABELS_FIELD_NUMBER
Field Value
public static final int OPERATION_TYPE_FIELD_NUMBER
Field Value
public static final int START_TIME_FIELD_NUMBER
Field Value
public static final int STATE_FIELD_NUMBER
Field Value
Static Methods
public static CommonMetadata getDefaultInstance()
Returns
public static final Descriptors.Descriptor getDescriptor()
Returns
public static CommonMetadata.Builder newBuilder()
Returns
public static CommonMetadata.Builder newBuilder(CommonMetadata prototype)
Parameter
Returns
public static CommonMetadata parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static CommonMetadata parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static CommonMetadata parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
public static CommonMetadata parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static CommonMetadata parseFrom(ByteString data)
Parameter
Returns
Exceptions
public static CommonMetadata parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static CommonMetadata parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static CommonMetadata parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static CommonMetadata parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static CommonMetadata parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static CommonMetadata parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
public static CommonMetadata parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static Parser<CommonMetadata> parser()
Returns
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
Returns
public boolean equals(Object obj)
Parameter
Returns
Overrides
public CommonMetadata getDefaultInstanceForType()
Returns
public Timestamp getEndTime()
The time the operation ended, either successfully or otherwise.
.google.protobuf.Timestamp end_time = 2;
Returns
public TimestampOrBuilder getEndTimeOrBuilder()
The time the operation ended, either successfully or otherwise.
.google.protobuf.Timestamp end_time = 2;
Returns
public Map<String,String> getLabels()
Returns
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
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;
Returns
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;
Parameters
Returns
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
Returns
public OperationType getOperationType()
The type of the operation. Can be used as a filter in
ListOperationsRequest.
.google.datastore.admin.v1.OperationType operation_type = 3;
Returns
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()
Returns
Overrides
public int getSerializedSize()
Returns
Overrides
public Timestamp getStartTime()
The time that work began on the operation.
.google.protobuf.Timestamp start_time = 1;
Returns
public TimestampOrBuilder getStartTimeOrBuilder()
The time that work began on the operation.
.google.protobuf.Timestamp start_time = 1;
Returns
public CommonMetadata.State getState()
The current state of the Operation.
.google.datastore.admin.v1.CommonMetadata.State state = 5;
Returns
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()
Returns
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
Overrides
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
protected MapField internalGetMapField(int number)
Parameter
Returns
Overrides
public final boolean isInitialized()
Returns
Overrides
public CommonMetadata.Builder newBuilderForType()
Returns
protected CommonMetadata.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
public CommonMetadata.Builder toBuilder()
Returns
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions