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;
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 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