Class CommonMetadata.Builder (2.14.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CommonMetadata.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
CommonMetadata.Builder
Overrides

build()

public CommonMetadata build()
Returns
TypeDescription
CommonMetadata

buildPartial()

public CommonMetadata buildPartial()
Returns
TypeDescription
CommonMetadata

clear()

public CommonMetadata.Builder clear()
Returns
TypeDescription
CommonMetadata.Builder
Overrides

clearEndTime()

public CommonMetadata.Builder clearEndTime()

The time the operation ended, either successfully or otherwise.

.google.protobuf.Timestamp end_time = 2;

Returns
TypeDescription
CommonMetadata.Builder

clearField(Descriptors.FieldDescriptor field)

public CommonMetadata.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
CommonMetadata.Builder
Overrides

clearLabels()

public CommonMetadata.Builder clearLabels()
Returns
TypeDescription
CommonMetadata.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public CommonMetadata.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
CommonMetadata.Builder

clearState()

public CommonMetadata.Builder clearState()

The current state of the Operation.

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

Returns
TypeDescription
CommonMetadata.Builder

This builder for chaining.

clone()

public CommonMetadata.Builder clone()
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
boolean

getDefaultInstanceForType()

public CommonMetadata getDefaultInstanceForType()
Returns
TypeDescription
CommonMetadata

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getEndTime()

public Timestamp getEndTime()

The time the operation ended, either successfully or otherwise.

.google.protobuf.Timestamp end_time = 2;

Returns
TypeDescription
Timestamp

The endTime.

getEndTimeBuilder()

public Timestamp.Builder getEndTimeBuilder()

The time the operation ended, either successfully or otherwise.

.google.protobuf.Timestamp end_time = 2;

Returns
TypeDescription
Builder

getEndTimeOrBuilder()

public TimestampOrBuilder getEndTimeOrBuilder()

The time the operation ended, either successfully or otherwise.

.google.protobuf.Timestamp end_time = 2;

Returns
TypeDescription
TimestampOrBuilder

getLabels()

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
keyString
defaultValueString
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
String

getMutableLabels()

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
Timestamp

The startTime.

getStartTimeBuilder()

public Timestamp.Builder getStartTimeBuilder()

The time that work began on the operation.

.google.protobuf.Timestamp start_time = 1;

Returns
TypeDescription
Builder

getStartTimeOrBuilder()

public TimestampOrBuilder getStartTimeOrBuilder()

The time that work began on the operation.

.google.protobuf.Timestamp start_time = 1;

Returns
TypeDescription
TimestampOrBuilder

getState()

public CommonMetadata.State getState()

The current state of the Operation.

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

Returns
TypeDescription
CommonMetadata.State

The state.

getStateValue()

public int getStateValue()

The current state of the Operation.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the startTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

internalGetMutableMapField(int number)

protected MapField internalGetMutableMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
CommonMetadata.Builder

mergeFrom(CommonMetadata other)

public CommonMetadata.Builder mergeFrom(CommonMetadata other)
Parameter
NameDescription
otherCommonMetadata
Returns
TypeDescription
CommonMetadata.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CommonMetadata.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CommonMetadata.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public CommonMetadata.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
CommonMetadata.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CommonMetadata.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valuesMap<String,String>
Returns
TypeDescription
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
NameDescription
keyString
valueString
Returns
TypeDescription
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
NameDescription
keyString
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
CommonMetadata.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public CommonMetadata.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueOperationType

The operationType to set.

Returns
TypeDescription
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
NameDescription
valueint

The enum numeric value on the wire for operationType to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
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
NameDescription
valueCommonMetadata.State

The state to set.

Returns
TypeDescription
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
NameDescription
valueint

The enum numeric value on the wire for state to set.

Returns
TypeDescription
CommonMetadata.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

public final CommonMetadata.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
CommonMetadata.Builder
Overrides