Class Precondition.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<Precondition.Builder>
com.google.firestore.v1.Precondition.Builder
All Implemented Interfaces:
PreconditionOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
Precondition

public static final class Precondition.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<Precondition.Builder> implements PreconditionOrBuilder
 A precondition on a document, used for conditional operations.
 
Protobuf type google.firestore.v1.Precondition
  • Method Details

    • getDescriptor

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

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

      public Precondition.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<Precondition.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<Precondition.Builder>
    • getDefaultInstanceForType

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

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

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

      public Precondition.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<Precondition.Builder>
    • setField

      public Precondition.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<Precondition.Builder>
    • clearField

      public Precondition.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<Precondition.Builder>
    • clearOneof

      public Precondition.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<Precondition.Builder>
    • setRepeatedField

      public Precondition.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<Precondition.Builder>
    • addRepeatedField

      public Precondition.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<Precondition.Builder>
    • mergeFrom

      public Precondition.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<Precondition.Builder>
    • mergeFrom

      public Precondition.Builder mergeFrom(Precondition other)
    • isInitialized

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

      public Precondition.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<Precondition.Builder>
      Throws:
      IOException
    • getConditionTypeCase

      public Precondition.ConditionTypeCase getConditionTypeCase()
      Specified by:
      getConditionTypeCase in interface PreconditionOrBuilder
    • clearConditionType

      public Precondition.Builder clearConditionType()
    • hasExists

      public boolean hasExists()
       When set to `true`, the target document must exist.
       When set to `false`, the target document must not exist.
       
      bool exists = 1;
      Specified by:
      hasExists in interface PreconditionOrBuilder
      Returns:
      Whether the exists field is set.
    • getExists

      public boolean getExists()
       When set to `true`, the target document must exist.
       When set to `false`, the target document must not exist.
       
      bool exists = 1;
      Specified by:
      getExists in interface PreconditionOrBuilder
      Returns:
      The exists.
    • setExists

      public Precondition.Builder setExists(boolean value)
       When set to `true`, the target document must exist.
       When set to `false`, the target document must not exist.
       
      bool exists = 1;
      Parameters:
      value - The exists to set.
      Returns:
      This builder for chaining.
    • clearExists

      public Precondition.Builder clearExists()
       When set to `true`, the target document must exist.
       When set to `false`, the target document must not exist.
       
      bool exists = 1;
      Returns:
      This builder for chaining.
    • hasUpdateTime

      public boolean hasUpdateTime()
       When set, the target document must exist and have been last updated at
       that time. Timestamp must be microsecond aligned.
       
      .google.protobuf.Timestamp update_time = 2;
      Specified by:
      hasUpdateTime in interface PreconditionOrBuilder
      Returns:
      Whether the updateTime field is set.
    • getUpdateTime

      public com.google.protobuf.Timestamp getUpdateTime()
       When set, the target document must exist and have been last updated at
       that time. Timestamp must be microsecond aligned.
       
      .google.protobuf.Timestamp update_time = 2;
      Specified by:
      getUpdateTime in interface PreconditionOrBuilder
      Returns:
      The updateTime.
    • setUpdateTime

      public Precondition.Builder setUpdateTime(com.google.protobuf.Timestamp value)
       When set, the target document must exist and have been last updated at
       that time. Timestamp must be microsecond aligned.
       
      .google.protobuf.Timestamp update_time = 2;
    • setUpdateTime

      public Precondition.Builder setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       When set, the target document must exist and have been last updated at
       that time. Timestamp must be microsecond aligned.
       
      .google.protobuf.Timestamp update_time = 2;
    • mergeUpdateTime

      public Precondition.Builder mergeUpdateTime(com.google.protobuf.Timestamp value)
       When set, the target document must exist and have been last updated at
       that time. Timestamp must be microsecond aligned.
       
      .google.protobuf.Timestamp update_time = 2;
    • clearUpdateTime

      public Precondition.Builder clearUpdateTime()
       When set, the target document must exist and have been last updated at
       that time. Timestamp must be microsecond aligned.
       
      .google.protobuf.Timestamp update_time = 2;
    • getUpdateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()
       When set, the target document must exist and have been last updated at
       that time. Timestamp must be microsecond aligned.
       
      .google.protobuf.Timestamp update_time = 2;
    • getUpdateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getUpdateTimeOrBuilder()
       When set, the target document must exist and have been last updated at
       that time. Timestamp must be microsecond aligned.
       
      .google.protobuf.Timestamp update_time = 2;
      Specified by:
      getUpdateTimeOrBuilder in interface PreconditionOrBuilder
    • setUnknownFields

      public final Precondition.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<Precondition.Builder>
    • mergeUnknownFields

      public final Precondition.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<Precondition.Builder>