Class CommonMetadata.Builder (2.32.3)
Stay organized with collections
Save and categorize content based on your preferences.
publicstaticfinalclass CommonMetadata.BuilderextendsGeneratedMessageV3.Builder<CommonMetadata.Builder>implementsCommonMetadataOrBuilderMetadata 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
CommonMetadataOrBuilderInherited Members
Static Methods
getDescriptor()
publicstaticfinalDescriptors.DescriptorgetDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
publicCommonMetadata.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
CommonMetadata.Builder |
|
build()
publicCommonMetadatabuild()| Returns | |
|---|---|
| Type | Description |
CommonMetadata |
|
buildPartial()
publicCommonMetadatabuildPartial()| Returns | |
|---|---|
| Type | Description |
CommonMetadata |
|
clear()
publicCommonMetadata.Builderclear()| Returns | |
|---|---|
| Type | Description |
CommonMetadata.Builder |
|
clearEndTime()
publicCommonMetadata.BuilderclearEndTime()The time the operation ended, either successfully or otherwise.
.google.protobuf.Timestamp end_time = 2;
| Returns | |
|---|---|
| Type | Description |
CommonMetadata.Builder |
|
clearField(Descriptors.FieldDescriptor field)
publicCommonMetadata.BuilderclearField(Descriptors.FieldDescriptorfield)| Parameter | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
| Returns | |
|---|---|
| Type | Description |
CommonMetadata.Builder |
|
clearLabels()
publicCommonMetadata.BuilderclearLabels()| Returns | |
|---|---|
| Type | Description |
CommonMetadata.Builder |
|
clearOneof(Descriptors.OneofDescriptor oneof)
publicCommonMetadata.BuilderclearOneof(Descriptors.OneofDescriptoroneof)| Parameter | |
|---|---|
| Name | Description |
oneof |
OneofDescriptor |
| Returns | |
|---|---|
| Type | Description |
CommonMetadata.Builder |
|
clearOperationType()
publicCommonMetadata.BuilderclearOperationType()The type of the operation. Can be used as a filter in ListOperationsRequest.
.google.datastore.admin.v1.OperationType operation_type = 3;
| Returns | |
|---|---|
| Type | Description |
CommonMetadata.Builder |
This builder for chaining. |
clearStartTime()
publicCommonMetadata.BuilderclearStartTime()The time that work began on the operation.
.google.protobuf.Timestamp start_time = 1;
| Returns | |
|---|---|
| Type | Description |
CommonMetadata.Builder |
|
clearState()
publicCommonMetadata.BuilderclearState()The current state of the Operation.
.google.datastore.admin.v1.CommonMetadata.State state = 5;
| Returns | |
|---|---|
| Type | Description |
CommonMetadata.Builder |
This builder for chaining. |
clone()
publicCommonMetadata.Builderclone()| Returns | |
|---|---|
| Type | Description |
CommonMetadata.Builder |
|
containsLabels(String key)
publicbooleancontainsLabels(Stringkey)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 |
boolean |
|
getDefaultInstanceForType()
publicCommonMetadatagetDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
CommonMetadata |
|
getDescriptorForType()
publicDescriptors.DescriptorgetDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getEndTime()
publicTimestampgetEndTime()The time the operation ended, either successfully or otherwise.
.google.protobuf.Timestamp end_time = 2;
| Returns | |
|---|---|
| Type | Description |
Timestamp |
The endTime. |
getEndTimeBuilder()
publicTimestamp.BuildergetEndTimeBuilder()The time the operation ended, either successfully or otherwise.
.google.protobuf.Timestamp end_time = 2;
| Returns | |
|---|---|
| Type | Description |
Builder |
|
getEndTimeOrBuilder()
publicTimestampOrBuildergetEndTimeOrBuilder()The time the operation ended, either successfully or otherwise.
.google.protobuf.Timestamp end_time = 2;
| Returns | |
|---|---|
| Type | Description |
TimestampOrBuilder |
|
getLabels() (deprecated)
publicMap<String,String>getLabels()Use #getLabelsMap() instead.
| Returns | |
|---|---|
| Type | Description |
Map<String,String> |
|
getLabelsCount()
publicintgetLabelsCount()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 |
|
getLabelsMap()
publicMap<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 | |
|---|---|
| Type | Description |
Map<String,String> |
|
getLabelsOrDefault(String key, String defaultValue)
publicStringgetLabelsOrDefault(Stringkey,StringdefaultValue)The client-assigned labels which were provided when the operation was created. May also include additional labels.
map<string, string> labels = 4;
| Parameters | |
|---|---|
| Name | Description |
key |
String |
defaultValue |
String |
| Returns | |
|---|---|
| Type | Description |
String |
|
getLabelsOrThrow(String key)
publicStringgetLabelsOrThrow(Stringkey)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 |
|
getMutableLabels() (deprecated)
publicMap<String,String>getMutableLabels()Use alternate mutation accessors instead.
| Returns | |
|---|---|
| Type | Description |
Map<String,String> |
|
getOperationType()
publicOperationTypegetOperationType()The type of the operation. Can be used as a filter in ListOperationsRequest.
.google.datastore.admin.v1.OperationType operation_type = 3;
| Returns | |
|---|---|
| Type | Description |
OperationType |
The operationType. |
getOperationTypeValue()
publicintgetOperationTypeValue()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. |
getStartTime()
publicTimestampgetStartTime()The time that work began on the operation.
.google.protobuf.Timestamp start_time = 1;
| Returns | |
|---|---|
| Type | Description |
Timestamp |
The startTime. |
getStartTimeBuilder()
publicTimestamp.BuildergetStartTimeBuilder()The time that work began on the operation.
.google.protobuf.Timestamp start_time = 1;
| Returns | |
|---|---|
| Type | Description |
Builder |
|
getStartTimeOrBuilder()
publicTimestampOrBuildergetStartTimeOrBuilder()The time that work began on the operation.
.google.protobuf.Timestamp start_time = 1;
| Returns | |
|---|---|
| Type | Description |
TimestampOrBuilder |
|
getState()
publicCommonMetadata.StategetState()The current state of the Operation.
.google.datastore.admin.v1.CommonMetadata.State state = 5;
| Returns | |
|---|---|
| Type | Description |
CommonMetadata.State |
The state. |
getStateValue()
publicintgetStateValue()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. |
hasEndTime()
publicbooleanhasEndTime()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. |
hasStartTime()
publicbooleanhasStartTime()The time that work began on the operation.
.google.protobuf.Timestamp start_time = 1;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the startTime field is set. |
internalGetFieldAccessorTable()
protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
internalGetMapFieldReflection(int number)
protectedMapFieldReflectionAccessorinternalGetMapFieldReflection(intnumber)| Parameter | |
|---|---|
| Name | Description |
number |
int |
| Returns | |
|---|---|
| Type | Description |
com.google.protobuf.MapFieldReflectionAccessor |
|
internalGetMutableMapFieldReflection(int number)
protectedMapFieldReflectionAccessorinternalGetMutableMapFieldReflection(intnumber)| Parameter | |
|---|---|
| Name | Description |
number |
int |
| Returns | |
|---|---|
| Type | Description |
com.google.protobuf.MapFieldReflectionAccessor |
|
isInitialized()
publicfinalbooleanisInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeEndTime(Timestamp value)
publicCommonMetadata.BuildermergeEndTime(Timestampvalue)The time the operation ended, either successfully or otherwise.
.google.protobuf.Timestamp end_time = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
CommonMetadata.Builder |
|
mergeFrom(CommonMetadata other)
publicCommonMetadata.BuildermergeFrom(CommonMetadataother)| Parameter | |
|---|---|
| Name | Description |
other |
CommonMetadata |
| Returns | |
|---|---|
| Type | Description |
CommonMetadata.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
publicCommonMetadata.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
CommonMetadata.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
publicCommonMetadata.BuildermergeFrom(Messageother)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
CommonMetadata.Builder |
|
mergeStartTime(Timestamp value)
publicCommonMetadata.BuildermergeStartTime(Timestampvalue)The time that work began on the operation.
.google.protobuf.Timestamp start_time = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
CommonMetadata.Builder |
|
mergeUnknownFields(UnknownFieldSet unknownFields)
publicfinalCommonMetadata.BuildermergeUnknownFields(UnknownFieldSetunknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
CommonMetadata.Builder |
|
putAllLabels(Map<String,String> values)
publicCommonMetadata.BuilderputAllLabels(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;
| Parameter | |
|---|---|
| Name | Description |
values |
Map<String,String> |
| Returns | |
|---|---|
| Type | Description |
CommonMetadata.Builder |
|
putLabels(String key, String value)
publicCommonMetadata.BuilderputLabels(Stringkey,Stringvalue)The client-assigned labels which were provided when the operation was created. May also include additional labels.
map<string, string> labels = 4;
| Parameters | |
|---|---|
| Name | Description |
key |
String |
value |
String |
| Returns | |
|---|---|
| Type | Description |
CommonMetadata.Builder |
|
removeLabels(String key)
publicCommonMetadata.BuilderremoveLabels(Stringkey)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 |
CommonMetadata.Builder |
|
setEndTime(Timestamp value)
publicCommonMetadata.BuildersetEndTime(Timestampvalue)The time the operation ended, either successfully or otherwise.
.google.protobuf.Timestamp end_time = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
CommonMetadata.Builder |
|
setEndTime(Timestamp.Builder builderForValue)
publicCommonMetadata.BuildersetEndTime(Timestamp.BuilderbuilderForValue)The time the operation ended, either successfully or otherwise.
.google.protobuf.Timestamp end_time = 2;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
CommonMetadata.Builder |
|
setField(Descriptors.FieldDescriptor field, Object value)
publicCommonMetadata.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
CommonMetadata.Builder |
|
setOperationType(OperationType value)
publicCommonMetadata.BuildersetOperationType(OperationTypevalue)The type of the operation. Can be used as a filter in ListOperationsRequest.
.google.datastore.admin.v1.OperationType operation_type = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
OperationType The operationType to set. |
| Returns | |
|---|---|
| Type | Description |
CommonMetadata.Builder |
This builder for chaining. |
setOperationTypeValue(int value)
publicCommonMetadata.BuildersetOperationTypeValue(intvalue)The type of the operation. Can be used as a filter in ListOperationsRequest.
.google.datastore.admin.v1.OperationType operation_type = 3;
| Parameter | |
|---|---|
| Name | Description |
value |
int The enum numeric value on the wire for operationType to set. |
| Returns | |
|---|---|
| Type | Description |
CommonMetadata.Builder |
This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
publicCommonMetadata.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
CommonMetadata.Builder |
|
setStartTime(Timestamp value)
publicCommonMetadata.BuildersetStartTime(Timestampvalue)The time that work began on the operation.
.google.protobuf.Timestamp start_time = 1;
| Parameter | |
|---|---|
| Name | Description |
value |
Timestamp |
| Returns | |
|---|---|
| Type | Description |
CommonMetadata.Builder |
|
setStartTime(Timestamp.Builder builderForValue)
publicCommonMetadata.BuildersetStartTime(Timestamp.BuilderbuilderForValue)The time that work began on the operation.
.google.protobuf.Timestamp start_time = 1;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Builder |
| Returns | |
|---|---|
| Type | Description |
CommonMetadata.Builder |
|
setState(CommonMetadata.State value)
publicCommonMetadata.BuildersetState(CommonMetadata.Statevalue)The current state of the Operation.
.google.datastore.admin.v1.CommonMetadata.State state = 5;
| Parameter | |
|---|---|
| Name | Description |
value |
CommonMetadata.State The state to set. |
| Returns | |
|---|---|
| Type | Description |
CommonMetadata.Builder |
This builder for chaining. |
setStateValue(int value)
publicCommonMetadata.BuildersetStateValue(intvalue)The current state of the Operation.
.google.datastore.admin.v1.CommonMetadata.State state = 5;
| Parameter | |
|---|---|
| Name | Description |
value |
int The enum numeric value on the wire for state to set. |
| Returns | |
|---|---|
| Type | Description |
CommonMetadata.Builder |
This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
publicfinalCommonMetadata.BuildersetUnknownFields(UnknownFieldSetunknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
CommonMetadata.Builder |
|