Class StructuredQuery.Projection.Builder

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

public static final class StructuredQuery.Projection.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<StructuredQuery.Projection.Builder> implements StructuredQuery.ProjectionOrBuilder
 The projection of document's fields to return.
 
Protobuf type google.firestore.v1.StructuredQuery.Projection
  • 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<StructuredQuery.Projection.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<StructuredQuery.Projection.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<StructuredQuery.Projection.Builder>
    • getDefaultInstanceForType

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public StructuredQuery.Projection buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.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<StructuredQuery.Projection.Builder>
    • setField

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

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

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

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

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

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

    • isInitialized

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

      public StructuredQuery.Projection.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<StructuredQuery.Projection.Builder>
      Throws:
      IOException
    • getFieldsList

      public List<StructuredQuery.FieldReference> getFieldsList()
       The fields to return.
      
       If empty, all fields are returned. To only return the name
       of the document, use `['__name__']`.
       
      repeated .google.firestore.v1.StructuredQuery.FieldReference fields = 2;
      Specified by:
      getFieldsList in interface StructuredQuery.ProjectionOrBuilder
    • getFieldsCount

      public int getFieldsCount()
       The fields to return.
      
       If empty, all fields are returned. To only return the name
       of the document, use `['__name__']`.
       
      repeated .google.firestore.v1.StructuredQuery.FieldReference fields = 2;
      Specified by:
      getFieldsCount in interface StructuredQuery.ProjectionOrBuilder
    • getFields

      public StructuredQuery.FieldReference getFields(int index)
       The fields to return.
      
       If empty, all fields are returned. To only return the name
       of the document, use `['__name__']`.
       
      repeated .google.firestore.v1.StructuredQuery.FieldReference fields = 2;
      Specified by:
      getFields in interface StructuredQuery.ProjectionOrBuilder
    • setFields

       The fields to return.
      
       If empty, all fields are returned. To only return the name
       of the document, use `['__name__']`.
       
      repeated .google.firestore.v1.StructuredQuery.FieldReference fields = 2;
    • setFields

      public StructuredQuery.Projection.Builder setFields(int index, StructuredQuery.FieldReference.Builder builderForValue)
       The fields to return.
      
       If empty, all fields are returned. To only return the name
       of the document, use `['__name__']`.
       
      repeated .google.firestore.v1.StructuredQuery.FieldReference fields = 2;
    • addFields

       The fields to return.
      
       If empty, all fields are returned. To only return the name
       of the document, use `['__name__']`.
       
      repeated .google.firestore.v1.StructuredQuery.FieldReference fields = 2;
    • addFields

       The fields to return.
      
       If empty, all fields are returned. To only return the name
       of the document, use `['__name__']`.
       
      repeated .google.firestore.v1.StructuredQuery.FieldReference fields = 2;
    • addFields

       The fields to return.
      
       If empty, all fields are returned. To only return the name
       of the document, use `['__name__']`.
       
      repeated .google.firestore.v1.StructuredQuery.FieldReference fields = 2;
    • addFields

      public StructuredQuery.Projection.Builder addFields(int index, StructuredQuery.FieldReference.Builder builderForValue)
       The fields to return.
      
       If empty, all fields are returned. To only return the name
       of the document, use `['__name__']`.
       
      repeated .google.firestore.v1.StructuredQuery.FieldReference fields = 2;
    • addAllFields

       The fields to return.
      
       If empty, all fields are returned. To only return the name
       of the document, use `['__name__']`.
       
      repeated .google.firestore.v1.StructuredQuery.FieldReference fields = 2;
    • clearFields

      public StructuredQuery.Projection.Builder clearFields()
       The fields to return.
      
       If empty, all fields are returned. To only return the name
       of the document, use `['__name__']`.
       
      repeated .google.firestore.v1.StructuredQuery.FieldReference fields = 2;
    • removeFields

      public StructuredQuery.Projection.Builder removeFields(int index)
       The fields to return.
      
       If empty, all fields are returned. To only return the name
       of the document, use `['__name__']`.
       
      repeated .google.firestore.v1.StructuredQuery.FieldReference fields = 2;
    • getFieldsBuilder

      public StructuredQuery.FieldReference.Builder getFieldsBuilder(int index)
       The fields to return.
      
       If empty, all fields are returned. To only return the name
       of the document, use `['__name__']`.
       
      repeated .google.firestore.v1.StructuredQuery.FieldReference fields = 2;
    • getFieldsOrBuilder

      public StructuredQuery.FieldReferenceOrBuilder getFieldsOrBuilder(int index)
       The fields to return.
      
       If empty, all fields are returned. To only return the name
       of the document, use `['__name__']`.
       
      repeated .google.firestore.v1.StructuredQuery.FieldReference fields = 2;
      Specified by:
      getFieldsOrBuilder in interface StructuredQuery.ProjectionOrBuilder
    • getFieldsOrBuilderList

      public List<? extends StructuredQuery.FieldReferenceOrBuilder> getFieldsOrBuilderList()
       The fields to return.
      
       If empty, all fields are returned. To only return the name
       of the document, use `['__name__']`.
       
      repeated .google.firestore.v1.StructuredQuery.FieldReference fields = 2;
      Specified by:
      getFieldsOrBuilderList in interface StructuredQuery.ProjectionOrBuilder
    • addFieldsBuilder

      public StructuredQuery.FieldReference.Builder addFieldsBuilder()
       The fields to return.
      
       If empty, all fields are returned. To only return the name
       of the document, use `['__name__']`.
       
      repeated .google.firestore.v1.StructuredQuery.FieldReference fields = 2;
    • addFieldsBuilder

      public StructuredQuery.FieldReference.Builder addFieldsBuilder(int index)
       The fields to return.
      
       If empty, all fields are returned. To only return the name
       of the document, use `['__name__']`.
       
      repeated .google.firestore.v1.StructuredQuery.FieldReference fields = 2;
    • getFieldsBuilderList

      public List<StructuredQuery.FieldReference.Builder> getFieldsBuilderList()
       The fields to return.
      
       If empty, all fields are returned. To only return the name
       of the document, use `['__name__']`.
       
      repeated .google.firestore.v1.StructuredQuery.FieldReference fields = 2;
    • setUnknownFields

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

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