Class Precondition.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.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.GeneratedMessage.Builder<Precondition.Builder> implements PreconditionOrBuilder
 A precondition on a document, used for conditional operations.
 
Protobuf type google.firestore.v1.Precondition
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
     
     
    When set to `true`, the target document must exist.
    When set, the target document must exist and have been last updated at that time.
     
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    boolean
    When set to `true`, the target document must exist.
    com.google.protobuf.Timestamp
    When set, the target document must exist and have been last updated at that time.
    com.google.protobuf.Timestamp.Builder
    When set, the target document must exist and have been last updated at that time.
    com.google.protobuf.TimestampOrBuilder
    When set, the target document must exist and have been last updated at that time.
    boolean
    When set to `true`, the target document must exist.
    boolean
    When set, the target document must exist and have been last updated at that time.
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
     
    mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    mergeFrom(com.google.protobuf.Message other)
     
    mergeUpdateTime(com.google.protobuf.Timestamp value)
    When set, the target document must exist and have been last updated at that time.
    setExists(boolean value)
    When set to `true`, the target document must exist.
    setUpdateTime(com.google.protobuf.Timestamp value)
    When set, the target document must exist and have been last updated at that time.
    setUpdateTime(com.google.protobuf.Timestamp.Builder builderForValue)
    When set, the target document must exist and have been last updated at that time.

    Methods inherited from class com.google.protobuf.GeneratedMessage.Builder

    addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3

    Methods inherited from class com.google.protobuf.AbstractMessage.Builder

    findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString

    Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

    addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait

    Methods inherited from interface com.google.protobuf.Message.Builder

    mergeDelimitedFrom, mergeDelimitedFrom

    Methods inherited from interface com.google.protobuf.MessageLite.Builder

    mergeFrom

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.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.GeneratedMessage.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.GeneratedMessage.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
    • 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.GeneratedMessage.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