public static final class CommonMetadata.Builder extends GeneratedMessageV3.Builder<CommonMetadata.Builder> implements CommonMetadataOrBuilder
Metadata common to all Datastore Admin operations.
Protobuf type google.datastore.admin.v1.CommonMetadata
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > CommonMetadata.BuilderImplements
CommonMetadataOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public CommonMetadata.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
CommonMetadata.Builder |
build()
public CommonMetadata build()
Type | Description |
CommonMetadata |
buildPartial()
public CommonMetadata buildPartial()
Type | Description |
CommonMetadata |
clear()
public CommonMetadata.Builder clear()
Type | Description |
CommonMetadata.Builder |
clearEndTime()
public CommonMetadata.Builder clearEndTime()
The time the operation ended, either successfully or otherwise.
.google.protobuf.Timestamp end_time = 2;
Type | Description |
CommonMetadata.Builder |
clearField(Descriptors.FieldDescriptor field)
public CommonMetadata.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
CommonMetadata.Builder |
clearLabels()
public CommonMetadata.Builder clearLabels()
Type | Description |
CommonMetadata.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public CommonMetadata.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
CommonMetadata.Builder |
clearOperationType()
public CommonMetadata.Builder clearOperationType()
The type of the operation. Can be used as a filter in ListOperationsRequest.
.google.datastore.admin.v1.OperationType operation_type = 3;
Type | Description |
CommonMetadata.Builder | This builder for chaining. |
clearStartTime()
public CommonMetadata.Builder clearStartTime()
The time that work began on the operation.
.google.protobuf.Timestamp start_time = 1;
Type | Description |
CommonMetadata.Builder |
clearState()
public CommonMetadata.Builder clearState()
The current state of the Operation.
.google.datastore.admin.v1.CommonMetadata.State state = 5;
Type | Description |
CommonMetadata.Builder | This builder for chaining. |
clone()
public CommonMetadata.Builder clone()
Type | Description |
CommonMetadata.Builder |
containsLabels(String key)
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;
Name | Description |
key | String |
Type | Description |
boolean |
getDefaultInstanceForType()
public CommonMetadata getDefaultInstanceForType()
Type | Description |
CommonMetadata |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getEndTime()
public Timestamp getEndTime()
The time the operation ended, either successfully or otherwise.
.google.protobuf.Timestamp end_time = 2;
Type | Description |
Timestamp | The endTime. |
getEndTimeBuilder()
public Timestamp.Builder getEndTimeBuilder()
The time the operation ended, either successfully or otherwise.
.google.protobuf.Timestamp end_time = 2;
Type | Description |
Builder |
getEndTimeOrBuilder()
public TimestampOrBuilder getEndTimeOrBuilder()
The time the operation ended, either successfully or otherwise.
.google.protobuf.Timestamp end_time = 2;
Type | Description |
TimestampOrBuilder |
getLabels()
public Map<String,String> getLabels()
Use #getLabelsMap() instead.
Type | Description |
Map<String,String> |
getLabelsCount()
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;
Type | Description |
int |
getLabelsMap()
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;
Type | Description |
Map<String,String> |
getLabelsOrDefault(String key, String defaultValue)
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;
Name | Description |
key | String |
defaultValue | String |
Type | Description |
String |
getLabelsOrThrow(String key)
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;
Name | Description |
key | String |
Type | Description |
String |
getMutableLabels()
public Map<String,String> getMutableLabels()
Use alternate mutation accessors instead.
Type | Description |
Map<String,String> |
getOperationType()
public OperationType getOperationType()
The type of the operation. Can be used as a filter in ListOperationsRequest.
.google.datastore.admin.v1.OperationType operation_type = 3;
Type | Description |
OperationType | The operationType. |
getOperationTypeValue()
public int getOperationTypeValue()
The type of the operation. Can be used as a filter in ListOperationsRequest.
.google.datastore.admin.v1.OperationType operation_type = 3;
Type | Description |
int | The enum numeric value on the wire for operationType. |
getStartTime()
public Timestamp getStartTime()
The time that work began on the operation.
.google.protobuf.Timestamp start_time = 1;
Type | Description |
Timestamp | The startTime. |
getStartTimeBuilder()
public Timestamp.Builder getStartTimeBuilder()
The time that work began on the operation.
.google.protobuf.Timestamp start_time = 1;
Type | Description |
Builder |
getStartTimeOrBuilder()
public TimestampOrBuilder getStartTimeOrBuilder()
The time that work began on the operation.
.google.protobuf.Timestamp start_time = 1;
Type | Description |
TimestampOrBuilder |
getState()
public CommonMetadata.State getState()
The current state of the Operation.
.google.datastore.admin.v1.CommonMetadata.State state = 5;
Type | Description |
CommonMetadata.State | The state. |
getStateValue()
public int getStateValue()
The current state of the Operation.
.google.datastore.admin.v1.CommonMetadata.State state = 5;
Type | Description |
int | The enum numeric value on the wire for state. |
hasEndTime()
public boolean hasEndTime()
The time the operation ended, either successfully or otherwise.
.google.protobuf.Timestamp end_time = 2;
Type | Description |
boolean | Whether the endTime field is set. |
hasStartTime()
public boolean hasStartTime()
The time that work began on the operation.
.google.protobuf.Timestamp start_time = 1;
Type | Description |
boolean | Whether the startTime field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
internalGetMapField(int number)
protected MapField internalGetMapField(int number)
Name | Description |
number | int |
Type | Description |
MapField |
internalGetMutableMapField(int number)
protected MapField internalGetMutableMapField(int number)
Name | Description |
number | int |
Type | Description |
MapField |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeEndTime(Timestamp value)
public CommonMetadata.Builder mergeEndTime(Timestamp value)
The time the operation ended, either successfully or otherwise.
.google.protobuf.Timestamp end_time = 2;
Name | Description |
value | Timestamp |
Type | Description |
CommonMetadata.Builder |
mergeFrom(CommonMetadata other)
public CommonMetadata.Builder mergeFrom(CommonMetadata other)
Name | Description |
other | CommonMetadata |
Type | Description |
CommonMetadata.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public CommonMetadata.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
CommonMetadata.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public CommonMetadata.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
CommonMetadata.Builder |
mergeStartTime(Timestamp value)
public CommonMetadata.Builder mergeStartTime(Timestamp value)
The time that work began on the operation.
.google.protobuf.Timestamp start_time = 1;
Name | Description |
value | Timestamp |
Type | Description |
CommonMetadata.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final CommonMetadata.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
CommonMetadata.Builder |
putAllLabels(Map<String,String> values)
public CommonMetadata.Builder putAllLabels(Map<String,String> values)
The client-assigned labels which were provided when the operation was created. May also include additional labels.
map<string, string> labels = 4;
Name | Description |
values | Map<String,String> |
Type | Description |
CommonMetadata.Builder |
putLabels(String key, String value)
public CommonMetadata.Builder putLabels(String key, String value)
The client-assigned labels which were provided when the operation was created. May also include additional labels.
map<string, string> labels = 4;
Name | Description |
key | String |
value | String |
Type | Description |
CommonMetadata.Builder |
removeLabels(String key)
public CommonMetadata.Builder removeLabels(String key)
The client-assigned labels which were provided when the operation was created. May also include additional labels.
map<string, string> labels = 4;
Name | Description |
key | String |
Type | Description |
CommonMetadata.Builder |
setEndTime(Timestamp value)
public CommonMetadata.Builder setEndTime(Timestamp value)
The time the operation ended, either successfully or otherwise.
.google.protobuf.Timestamp end_time = 2;
Name | Description |
value | Timestamp |
Type | Description |
CommonMetadata.Builder |
setEndTime(Timestamp.Builder builderForValue)
public CommonMetadata.Builder setEndTime(Timestamp.Builder builderForValue)
The time the operation ended, either successfully or otherwise.
.google.protobuf.Timestamp end_time = 2;
Name | Description |
builderForValue | Builder |
Type | Description |
CommonMetadata.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public CommonMetadata.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
CommonMetadata.Builder |
setOperationType(OperationType value)
public CommonMetadata.Builder setOperationType(OperationType value)
The type of the operation. Can be used as a filter in ListOperationsRequest.
.google.datastore.admin.v1.OperationType operation_type = 3;
Name | Description |
value | OperationType The operationType to set. |
Type | Description |
CommonMetadata.Builder | This builder for chaining. |
setOperationTypeValue(int value)
public CommonMetadata.Builder setOperationTypeValue(int value)
The type of the operation. Can be used as a filter in ListOperationsRequest.
.google.datastore.admin.v1.OperationType operation_type = 3;
Name | Description |
value | int The enum numeric value on the wire for operationType to set. |
Type | Description |
CommonMetadata.Builder | This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public CommonMetadata.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
CommonMetadata.Builder |
setStartTime(Timestamp value)
public CommonMetadata.Builder setStartTime(Timestamp value)
The time that work began on the operation.
.google.protobuf.Timestamp start_time = 1;
Name | Description |
value | Timestamp |
Type | Description |
CommonMetadata.Builder |
setStartTime(Timestamp.Builder builderForValue)
public CommonMetadata.Builder setStartTime(Timestamp.Builder builderForValue)
The time that work began on the operation.
.google.protobuf.Timestamp start_time = 1;
Name | Description |
builderForValue | Builder |
Type | Description |
CommonMetadata.Builder |
setState(CommonMetadata.State value)
public CommonMetadata.Builder setState(CommonMetadata.State value)
The current state of the Operation.
.google.datastore.admin.v1.CommonMetadata.State state = 5;
Name | Description |
value | CommonMetadata.State The state to set. |
Type | Description |
CommonMetadata.Builder | This builder for chaining. |
setStateValue(int value)
public CommonMetadata.Builder setStateValue(int value)
The current state of the Operation.
.google.datastore.admin.v1.CommonMetadata.State state = 5;
Name | Description |
value | int The enum numeric value on the wire for state to set. |
Type | Description |
CommonMetadata.Builder | This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final CommonMetadata.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
CommonMetadata.Builder |