Class CommonMetadata.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<CommonMetadata.Builder>
com.google.datastore.admin.v1.CommonMetadata.Builder
All Implemented Interfaces:
CommonMetadataOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
CommonMetadata

public static final class CommonMetadata.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<CommonMetadata.Builder> implements CommonMetadataOrBuilder
 Metadata common to all Datastore Admin operations.
 
Protobuf type google.datastore.admin.v1.CommonMetadata
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessageV3.Builder<CommonMetadata.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessageV3.Builder<CommonMetadata.Builder>
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<CommonMetadata.Builder>
    • clear

      public CommonMetadata.Builder clear()
      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessageV3.Builder<CommonMetadata.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<CommonMetadata.Builder>
    • getDefaultInstanceForType

      public CommonMetadata getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public CommonMetadata build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public CommonMetadata buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • clone

      public CommonMetadata.Builder clone()
      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<CommonMetadata.Builder>
    • setField

      public CommonMetadata.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<CommonMetadata.Builder>
    • clearField

      public CommonMetadata.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<CommonMetadata.Builder>
    • clearOneof

      public CommonMetadata.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<CommonMetadata.Builder>
    • setRepeatedField

      public CommonMetadata.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
      Specified by:
      setRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<CommonMetadata.Builder>
    • addRepeatedField

      public CommonMetadata.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      addRepeatedField in interface com.google.protobuf.Message.Builder
      Overrides:
      addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<CommonMetadata.Builder>
    • mergeFrom

      public CommonMetadata.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<CommonMetadata.Builder>
    • mergeFrom

      public CommonMetadata.Builder mergeFrom(CommonMetadata other)
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<CommonMetadata.Builder>
    • mergeFrom

      public CommonMetadata.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<CommonMetadata.Builder>
      Throws:
      IOException
    • hasStartTime

      public boolean hasStartTime()
       The time that work began on the operation.
       
      .google.protobuf.Timestamp start_time = 1;
      Specified by:
      hasStartTime in interface CommonMetadataOrBuilder
      Returns:
      Whether the startTime field is set.
    • getStartTime

      public com.google.protobuf.Timestamp getStartTime()
       The time that work began on the operation.
       
      .google.protobuf.Timestamp start_time = 1;
      Specified by:
      getStartTime in interface CommonMetadataOrBuilder
      Returns:
      The startTime.
    • setStartTime

      public CommonMetadata.Builder setStartTime(com.google.protobuf.Timestamp value)
       The time that work began on the operation.
       
      .google.protobuf.Timestamp start_time = 1;
    • setStartTime

      public CommonMetadata.Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue)
       The time that work began on the operation.
       
      .google.protobuf.Timestamp start_time = 1;
    • mergeStartTime

      public CommonMetadata.Builder mergeStartTime(com.google.protobuf.Timestamp value)
       The time that work began on the operation.
       
      .google.protobuf.Timestamp start_time = 1;
    • clearStartTime

      public CommonMetadata.Builder clearStartTime()
       The time that work began on the operation.
       
      .google.protobuf.Timestamp start_time = 1;
    • getStartTimeBuilder

      public com.google.protobuf.Timestamp.Builder getStartTimeBuilder()
       The time that work began on the operation.
       
      .google.protobuf.Timestamp start_time = 1;
    • getStartTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder()
       The time that work began on the operation.
       
      .google.protobuf.Timestamp start_time = 1;
      Specified by:
      getStartTimeOrBuilder in interface CommonMetadataOrBuilder
    • hasEndTime

      public boolean hasEndTime()
       The time the operation ended, either successfully or otherwise.
       
      .google.protobuf.Timestamp end_time = 2;
      Specified by:
      hasEndTime in interface CommonMetadataOrBuilder
      Returns:
      Whether the endTime field is set.
    • getEndTime

      public com.google.protobuf.Timestamp getEndTime()
       The time the operation ended, either successfully or otherwise.
       
      .google.protobuf.Timestamp end_time = 2;
      Specified by:
      getEndTime in interface CommonMetadataOrBuilder
      Returns:
      The endTime.
    • setEndTime

      public CommonMetadata.Builder setEndTime(com.google.protobuf.Timestamp value)
       The time the operation ended, either successfully or otherwise.
       
      .google.protobuf.Timestamp end_time = 2;
    • setEndTime

      public CommonMetadata.Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue)
       The time the operation ended, either successfully or otherwise.
       
      .google.protobuf.Timestamp end_time = 2;
    • mergeEndTime

      public CommonMetadata.Builder mergeEndTime(com.google.protobuf.Timestamp value)
       The time the operation ended, either successfully or otherwise.
       
      .google.protobuf.Timestamp end_time = 2;
    • clearEndTime

      public CommonMetadata.Builder clearEndTime()
       The time the operation ended, either successfully or otherwise.
       
      .google.protobuf.Timestamp end_time = 2;
    • getEndTimeBuilder

      public com.google.protobuf.Timestamp.Builder getEndTimeBuilder()
       The time the operation ended, either successfully or otherwise.
       
      .google.protobuf.Timestamp end_time = 2;
    • getEndTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder()
       The time the operation ended, either successfully or otherwise.
       
      .google.protobuf.Timestamp end_time = 2;
      Specified by:
      getEndTimeOrBuilder in interface CommonMetadataOrBuilder
    • 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;
      Specified by:
      getOperationTypeValue in interface CommonMetadataOrBuilder
      Returns:
      The enum numeric value on the wire for operationType.
    • setOperationTypeValue

      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;
      Parameters:
      value - The enum numeric value on the wire for operationType to set.
      Returns:
      This builder for chaining.
    • 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;
      Specified by:
      getOperationType in interface CommonMetadataOrBuilder
      Returns:
      The operationType.
    • setOperationType

      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;
      Parameters:
      value - The operationType to set.
      Returns:
      This builder for chaining.
    • 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:
      This builder for chaining.
    • getLabelsCount

      public int getLabelsCount()
      Description copied from interface: CommonMetadataOrBuilder
       The client-assigned labels which were provided when the operation was
       created. May also include additional labels.
       
      map<string, string> labels = 4;
      Specified by:
      getLabelsCount in interface CommonMetadataOrBuilder
    • containsLabels

      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;
      Specified by:
      containsLabels in interface CommonMetadataOrBuilder
    • getLabels

      @Deprecated public Map<String,String> getLabels()
      Deprecated.
      Use getLabelsMap() instead.
      Specified by:
      getLabels in interface CommonMetadataOrBuilder
    • 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;
      Specified by:
      getLabelsMap in interface CommonMetadataOrBuilder
    • getLabelsOrDefault

      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;
      Specified by:
      getLabelsOrDefault in interface CommonMetadataOrBuilder
    • getLabelsOrThrow

      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;
      Specified by:
      getLabelsOrThrow in interface CommonMetadataOrBuilder
    • clearLabels

      public CommonMetadata.Builder clearLabels()
    • removeLabels

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

      @Deprecated public Map<String,String> getMutableLabels()
      Deprecated.
      Use alternate mutation accessors instead.
    • putLabels

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

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

      public int getStateValue()
       The current state of the Operation.
       
      .google.datastore.admin.v1.CommonMetadata.State state = 5;
      Specified by:
      getStateValue in interface CommonMetadataOrBuilder
      Returns:
      The enum numeric value on the wire for state.
    • setStateValue

      public CommonMetadata.Builder setStateValue(int value)
       The current state of the Operation.
       
      .google.datastore.admin.v1.CommonMetadata.State state = 5;
      Parameters:
      value - The enum numeric value on the wire for state to set.
      Returns:
      This builder for chaining.
    • getState

      public CommonMetadata.State getState()
       The current state of the Operation.
       
      .google.datastore.admin.v1.CommonMetadata.State state = 5;
      Specified by:
      getState in interface CommonMetadataOrBuilder
      Returns:
      The state.
    • setState

       The current state of the Operation.
       
      .google.datastore.admin.v1.CommonMetadata.State state = 5;
      Parameters:
      value - The state to set.
      Returns:
      This builder for chaining.
    • clearState

      public CommonMetadata.Builder clearState()
       The current state of the Operation.
       
      .google.datastore.admin.v1.CommonMetadata.State state = 5;
      Returns:
      This builder for chaining.
    • setUnknownFields

      public final CommonMetadata.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      setUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<CommonMetadata.Builder>
    • mergeUnknownFields

      public final CommonMetadata.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
      Specified by:
      mergeUnknownFields in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<CommonMetadata.Builder>