Class NamedQuery.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<NamedQuery.Builder>
com.google.firestore.bundle.NamedQuery.Builder
All Implemented Interfaces:
NamedQueryOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
NamedQuery

public static final class NamedQuery.Builder extends com.google.protobuf.GeneratedMessage.Builder<NamedQuery.Builder> implements NamedQueryOrBuilder
 A Query associated with a name, created as part of the bundle file, and can be read
 by client SDKs once the bundle containing them is loaded.
 
Protobuf type google.firestore.bundle.NamedQuery
  • Method Summary

    Modifier and Type
    Method
    Description
     
     
     
    The query saved in the bundle.
    Name of the query, such that client can use the name to load this query from bundle, and resume from when the query results are materialized into this bundle.
    The read time of the query, when it is used to build the bundle.
    The query saved in the bundle.
    The query saved in the bundle.
    The query saved in the bundle.
     
    static final com.google.protobuf.Descriptors.Descriptor
     
    com.google.protobuf.Descriptors.Descriptor
     
    Name of the query, such that client can use the name to load this query from bundle, and resume from when the query results are materialized into this bundle.
    com.google.protobuf.ByteString
    Name of the query, such that client can use the name to load this query from bundle, and resume from when the query results are materialized into this bundle.
    com.google.protobuf.Timestamp
    The read time of the query, when it is used to build the bundle.
    com.google.protobuf.Timestamp.Builder
    The read time of the query, when it is used to build the bundle.
    com.google.protobuf.TimestampOrBuilder
    The read time of the query, when it is used to build the bundle.
    boolean
    The query saved in the bundle.
    boolean
    The read time of the query, when it is used to build the bundle.
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
     
    final boolean
     
    The query saved in the bundle.
     
    mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
     
    mergeFrom(com.google.protobuf.Message other)
     
    mergeReadTime(com.google.protobuf.Timestamp value)
    The read time of the query, when it is used to build the bundle.
    The query saved in the bundle.
    The query saved in the bundle.
    setName(String value)
    Name of the query, such that client can use the name to load this query from bundle, and resume from when the query results are materialized into this bundle.
    setNameBytes(com.google.protobuf.ByteString value)
    Name of the query, such that client can use the name to load this query from bundle, and resume from when the query results are materialized into this bundle.
    setReadTime(com.google.protobuf.Timestamp value)
    The read time of the query, when it is used to build the bundle.
    setReadTime(com.google.protobuf.Timestamp.Builder builderForValue)
    The read time of the query, when it is used to build the bundle.

    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<NamedQuery.Builder>
    • clear

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

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

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

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

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

      public NamedQuery.Builder mergeFrom(NamedQuery other)
    • isInitialized

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

      public NamedQuery.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<NamedQuery.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       Name of the query, such that client can use the name to load this query
       from bundle, and resume from when the query results are materialized
       into this bundle.
       
      string name = 1;
      Specified by:
      getName in interface NamedQueryOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       Name of the query, such that client can use the name to load this query
       from bundle, and resume from when the query results are materialized
       into this bundle.
       
      string name = 1;
      Specified by:
      getNameBytes in interface NamedQueryOrBuilder
      Returns:
      The bytes for name.
    • setName

      public NamedQuery.Builder setName(String value)
       Name of the query, such that client can use the name to load this query
       from bundle, and resume from when the query results are materialized
       into this bundle.
       
      string name = 1;
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public NamedQuery.Builder clearName()
       Name of the query, such that client can use the name to load this query
       from bundle, and resume from when the query results are materialized
       into this bundle.
       
      string name = 1;
      Returns:
      This builder for chaining.
    • setNameBytes

      public NamedQuery.Builder setNameBytes(com.google.protobuf.ByteString value)
       Name of the query, such that client can use the name to load this query
       from bundle, and resume from when the query results are materialized
       into this bundle.
       
      string name = 1;
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • hasBundledQuery

      public boolean hasBundledQuery()
       The query saved in the bundle.
       
      .google.firestore.bundle.BundledQuery bundled_query = 2;
      Specified by:
      hasBundledQuery in interface NamedQueryOrBuilder
      Returns:
      Whether the bundledQuery field is set.
    • getBundledQuery

      public BundledQuery getBundledQuery()
       The query saved in the bundle.
       
      .google.firestore.bundle.BundledQuery bundled_query = 2;
      Specified by:
      getBundledQuery in interface NamedQueryOrBuilder
      Returns:
      The bundledQuery.
    • setBundledQuery

      public NamedQuery.Builder setBundledQuery(BundledQuery value)
       The query saved in the bundle.
       
      .google.firestore.bundle.BundledQuery bundled_query = 2;
    • setBundledQuery

      public NamedQuery.Builder setBundledQuery(BundledQuery.Builder builderForValue)
       The query saved in the bundle.
       
      .google.firestore.bundle.BundledQuery bundled_query = 2;
    • mergeBundledQuery

      public NamedQuery.Builder mergeBundledQuery(BundledQuery value)
       The query saved in the bundle.
       
      .google.firestore.bundle.BundledQuery bundled_query = 2;
    • clearBundledQuery

      public NamedQuery.Builder clearBundledQuery()
       The query saved in the bundle.
       
      .google.firestore.bundle.BundledQuery bundled_query = 2;
    • getBundledQueryBuilder

      public BundledQuery.Builder getBundledQueryBuilder()
       The query saved in the bundle.
       
      .google.firestore.bundle.BundledQuery bundled_query = 2;
    • getBundledQueryOrBuilder

      public BundledQueryOrBuilder getBundledQueryOrBuilder()
       The query saved in the bundle.
       
      .google.firestore.bundle.BundledQuery bundled_query = 2;
      Specified by:
      getBundledQueryOrBuilder in interface NamedQueryOrBuilder
    • hasReadTime

      public boolean hasReadTime()
       The read time of the query, when it is used to build the bundle. This is useful to
       resume the query from the bundle, once it is loaded by client SDKs.
       
      .google.protobuf.Timestamp read_time = 3;
      Specified by:
      hasReadTime in interface NamedQueryOrBuilder
      Returns:
      Whether the readTime field is set.
    • getReadTime

      public com.google.protobuf.Timestamp getReadTime()
       The read time of the query, when it is used to build the bundle. This is useful to
       resume the query from the bundle, once it is loaded by client SDKs.
       
      .google.protobuf.Timestamp read_time = 3;
      Specified by:
      getReadTime in interface NamedQueryOrBuilder
      Returns:
      The readTime.
    • setReadTime

      public NamedQuery.Builder setReadTime(com.google.protobuf.Timestamp value)
       The read time of the query, when it is used to build the bundle. This is useful to
       resume the query from the bundle, once it is loaded by client SDKs.
       
      .google.protobuf.Timestamp read_time = 3;
    • setReadTime

      public NamedQuery.Builder setReadTime(com.google.protobuf.Timestamp.Builder builderForValue)
       The read time of the query, when it is used to build the bundle. This is useful to
       resume the query from the bundle, once it is loaded by client SDKs.
       
      .google.protobuf.Timestamp read_time = 3;
    • mergeReadTime

      public NamedQuery.Builder mergeReadTime(com.google.protobuf.Timestamp value)
       The read time of the query, when it is used to build the bundle. This is useful to
       resume the query from the bundle, once it is loaded by client SDKs.
       
      .google.protobuf.Timestamp read_time = 3;
    • clearReadTime

      public NamedQuery.Builder clearReadTime()
       The read time of the query, when it is used to build the bundle. This is useful to
       resume the query from the bundle, once it is loaded by client SDKs.
       
      .google.protobuf.Timestamp read_time = 3;
    • getReadTimeBuilder

      public com.google.protobuf.Timestamp.Builder getReadTimeBuilder()
       The read time of the query, when it is used to build the bundle. This is useful to
       resume the query from the bundle, once it is loaded by client SDKs.
       
      .google.protobuf.Timestamp read_time = 3;
    • getReadTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getReadTimeOrBuilder()
       The read time of the query, when it is used to build the bundle. This is useful to
       resume the query from the bundle, once it is loaded by client SDKs.
       
      .google.protobuf.Timestamp read_time = 3;
      Specified by:
      getReadTimeOrBuilder in interface NamedQueryOrBuilder