Class BundleMetadata.Builder

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

public static final class BundleMetadata.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<BundleMetadata.Builder> implements BundleMetadataOrBuilder
 Metadata describing the bundle file/stream.
 
Protobuf type google.firestore.bundle.BundleMetadata
  • 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<BundleMetadata.Builder>
    • clear

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

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

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

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

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

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

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

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

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

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

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

      public BundleMetadata.Builder mergeFrom(BundleMetadata other)
    • isInitialized

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

      public BundleMetadata.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<BundleMetadata.Builder>
      Throws:
      IOException
    • getId

      public String getId()
       The ID of the bundle.
       
      string id = 1;
      Specified by:
      getId in interface BundleMetadataOrBuilder
      Returns:
      The id.
    • getIdBytes

      public com.google.protobuf.ByteString getIdBytes()
       The ID of the bundle.
       
      string id = 1;
      Specified by:
      getIdBytes in interface BundleMetadataOrBuilder
      Returns:
      The bytes for id.
    • setId

      public BundleMetadata.Builder setId(String value)
       The ID of the bundle.
       
      string id = 1;
      Parameters:
      value - The id to set.
      Returns:
      This builder for chaining.
    • clearId

      public BundleMetadata.Builder clearId()
       The ID of the bundle.
       
      string id = 1;
      Returns:
      This builder for chaining.
    • setIdBytes

      public BundleMetadata.Builder setIdBytes(com.google.protobuf.ByteString value)
       The ID of the bundle.
       
      string id = 1;
      Parameters:
      value - The bytes for id to set.
      Returns:
      This builder for chaining.
    • hasCreateTime

      public boolean hasCreateTime()
       Time at which the documents snapshot is taken for this bundle.
       
      .google.protobuf.Timestamp create_time = 2;
      Specified by:
      hasCreateTime in interface BundleMetadataOrBuilder
      Returns:
      Whether the createTime field is set.
    • getCreateTime

      public com.google.protobuf.Timestamp getCreateTime()
       Time at which the documents snapshot is taken for this bundle.
       
      .google.protobuf.Timestamp create_time = 2;
      Specified by:
      getCreateTime in interface BundleMetadataOrBuilder
      Returns:
      The createTime.
    • setCreateTime

      public BundleMetadata.Builder setCreateTime(com.google.protobuf.Timestamp value)
       Time at which the documents snapshot is taken for this bundle.
       
      .google.protobuf.Timestamp create_time = 2;
    • setCreateTime

      public BundleMetadata.Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Time at which the documents snapshot is taken for this bundle.
       
      .google.protobuf.Timestamp create_time = 2;
    • mergeCreateTime

      public BundleMetadata.Builder mergeCreateTime(com.google.protobuf.Timestamp value)
       Time at which the documents snapshot is taken for this bundle.
       
      .google.protobuf.Timestamp create_time = 2;
    • clearCreateTime

      public BundleMetadata.Builder clearCreateTime()
       Time at which the documents snapshot is taken for this bundle.
       
      .google.protobuf.Timestamp create_time = 2;
    • getCreateTimeBuilder

      public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
       Time at which the documents snapshot is taken for this bundle.
       
      .google.protobuf.Timestamp create_time = 2;
    • getCreateTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder()
       Time at which the documents snapshot is taken for this bundle.
       
      .google.protobuf.Timestamp create_time = 2;
      Specified by:
      getCreateTimeOrBuilder in interface BundleMetadataOrBuilder
    • getVersion

      public int getVersion()
       The schema version of the bundle.
       
      uint32 version = 3;
      Specified by:
      getVersion in interface BundleMetadataOrBuilder
      Returns:
      The version.
    • setVersion

      public BundleMetadata.Builder setVersion(int value)
       The schema version of the bundle.
       
      uint32 version = 3;
      Parameters:
      value - The version to set.
      Returns:
      This builder for chaining.
    • clearVersion

      public BundleMetadata.Builder clearVersion()
       The schema version of the bundle.
       
      uint32 version = 3;
      Returns:
      This builder for chaining.
    • getTotalDocuments

      public int getTotalDocuments()
       The number of documents in the bundle.
       
      uint32 total_documents = 4;
      Specified by:
      getTotalDocuments in interface BundleMetadataOrBuilder
      Returns:
      The totalDocuments.
    • setTotalDocuments

      public BundleMetadata.Builder setTotalDocuments(int value)
       The number of documents in the bundle.
       
      uint32 total_documents = 4;
      Parameters:
      value - The totalDocuments to set.
      Returns:
      This builder for chaining.
    • clearTotalDocuments

      public BundleMetadata.Builder clearTotalDocuments()
       The number of documents in the bundle.
       
      uint32 total_documents = 4;
      Returns:
      This builder for chaining.
    • getTotalBytes

      public long getTotalBytes()
       The size of the bundle in bytes, excluding this `BundleMetadata`.
       
      uint64 total_bytes = 5;
      Specified by:
      getTotalBytes in interface BundleMetadataOrBuilder
      Returns:
      The totalBytes.
    • setTotalBytes

      public BundleMetadata.Builder setTotalBytes(long value)
       The size of the bundle in bytes, excluding this `BundleMetadata`.
       
      uint64 total_bytes = 5;
      Parameters:
      value - The totalBytes to set.
      Returns:
      This builder for chaining.
    • clearTotalBytes

      public BundleMetadata.Builder clearTotalBytes()
       The size of the bundle in bytes, excluding this `BundleMetadata`.
       
      uint64 total_bytes = 5;
      Returns:
      This builder for chaining.
    • setUnknownFields

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

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