Class CommonMetadata.Builder (2.25.1)

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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CommonMetadata.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CommonMetadata.Builder
Overrides

build()

public CommonMetadata build()
Returns
Type Description
CommonMetadata

buildPartial()

public CommonMetadata buildPartial()
Returns
Type Description
CommonMetadata

clear()

public CommonMetadata.Builder clear()
Returns
Type Description
CommonMetadata.Builder
Overrides

clearEndTime()

public CommonMetadata.Builder clearEndTime()

The time the operation ended, either successfully or otherwise.

.google.protobuf.Timestamp end_time = 2;

Returns
Type Description
CommonMetadata.Builder

clearField(Descriptors.FieldDescriptor field)

public CommonMetadata.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
CommonMetadata.Builder
Overrides

clearLabels()

public CommonMetadata.Builder clearLabels()
Returns
Type Description
CommonMetadata.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public CommonMetadata.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
CommonMetadata.Builder
Overrides

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;

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

Returns
Type Description
CommonMetadata.Builder

clearState()

public CommonMetadata.Builder clearState()

The current state of the Operation.

.google.datastore.admin.v1.CommonMetadata.State state = 5;

Returns
Type Description
CommonMetadata.Builder

This builder for chaining.

clone()

public CommonMetadata.Builder clone()
Returns
Type Description
CommonMetadata.Builder
Overrides

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;

Parameter
Name Description
key String
Returns
Type Description
boolean

getDefaultInstanceForType()

public CommonMetadata getDefaultInstanceForType()
Returns
Type Description
CommonMetadata

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getEndTime()

public Timestamp getEndTime()

The time the operation ended, either successfully or otherwise.

.google.protobuf.Timestamp end_time = 2;

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

Returns
Type Description
Builder

getEndTimeOrBuilder()

public TimestampOrBuilder getEndTimeOrBuilder()

The time the operation ended, either successfully or otherwise.

.google.protobuf.Timestamp end_time = 2;

Returns
Type Description
TimestampOrBuilder

getLabels() (deprecated)

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

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

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

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

Parameters
Name Description
key String
defaultValue String
Returns
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;

Parameter
Name Description
key String
Returns
Type Description
String

getMutableLabels() (deprecated)

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

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

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

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

Returns
Type Description
Timestamp

The startTime.

getStartTimeBuilder()

public Timestamp.Builder getStartTimeBuilder()

The time that work began on the operation.

.google.protobuf.Timestamp start_time = 1;

Returns
Type Description
Builder

getStartTimeOrBuilder()

public TimestampOrBuilder getStartTimeOrBuilder()

The time that work began on the operation.

.google.protobuf.Timestamp start_time = 1;

Returns
Type Description
TimestampOrBuilder

getState()

public CommonMetadata.State getState()

The current state of the Operation.

.google.datastore.admin.v1.CommonMetadata.State state = 5;

Returns
Type Description
CommonMetadata.State

The state.

getStateValue()

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.

hasEndTime()

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.

hasStartTime()

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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)

internalGetMutableMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeEndTime(Timestamp value)

public CommonMetadata.Builder mergeEndTime(Timestamp value)

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)

public CommonMetadata.Builder mergeFrom(CommonMetadata other)
Parameter
Name Description
other CommonMetadata
Returns
Type Description
CommonMetadata.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CommonMetadata.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CommonMetadata.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public CommonMetadata.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
CommonMetadata.Builder
Overrides

mergeStartTime(Timestamp value)

public CommonMetadata.Builder mergeStartTime(Timestamp value)

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)

public final CommonMetadata.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CommonMetadata.Builder
Overrides

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;

Parameter
Name Description
values Map<String,String>
Returns
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;

Parameters
Name Description
key String
value String
Returns
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;

Parameter
Name Description
key String
Returns
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;

Parameter
Name Description
value Timestamp
Returns
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;

Parameter
Name Description
builderForValue Builder
Returns
Type Description
CommonMetadata.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public CommonMetadata.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CommonMetadata.Builder
Overrides

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;

Parameter
Name Description
value OperationType

The operationType to set.

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

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)

public CommonMetadata.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
CommonMetadata.Builder
Overrides

setStartTime(Timestamp value)

public CommonMetadata.Builder setStartTime(Timestamp value)

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)

public CommonMetadata.Builder setStartTime(Timestamp.Builder builderForValue)

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)

public CommonMetadata.Builder setState(CommonMetadata.State value)

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)

public CommonMetadata.Builder setStateValue(int value)

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)

public final CommonMetadata.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CommonMetadata.Builder
Overrides