/*
 * Copyright 2026 Google LLC
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     https://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// NO CHECKED-IN PROTOBUF GENCODE
// source: google/firestore/admin/v1/operation.proto
// Protobuf Java Version: 4.33.2

package com.google.firestore.admin.v1;

/**
 *
 *
 * <pre>
 * Metadata for [google.longrunning.Operation][google.longrunning.Operation]
 * results from
 * [FirestoreAdmin.UpdateField][google.firestore.admin.v1.FirestoreAdmin.UpdateField].
 * </pre>
 *
 * Protobuf type {@code google.firestore.admin.v1.FieldOperationMetadata}
 */
@com.google.protobuf.Generated
public final class FieldOperationMetadata extends com.google.protobuf.GeneratedMessage
    implements
    // @@protoc_insertion_point(message_implements:google.firestore.admin.v1.FieldOperationMetadata)
    FieldOperationMetadataOrBuilder {
  private static final long serialVersionUID = 0L;

  static {
    com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
        com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
        /* major= */ 4,
        /* minor= */ 33,
        /* patch= */ 2,
        /* suffix= */ "",
        "FieldOperationMetadata");
  }

  // Use FieldOperationMetadata.newBuilder() to construct.
  private FieldOperationMetadata(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
    super(builder);
  }

  private FieldOperationMetadata() {
    field_ = "";
    indexConfigDeltas_ = java.util.Collections.emptyList();
    state_ = 0;
  }

  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    return com.google.firestore.admin.v1.OperationProto
        .internal_static_google_firestore_admin_v1_FieldOperationMetadata_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.google.firestore.admin.v1.OperationProto
        .internal_static_google_firestore_admin_v1_FieldOperationMetadata_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.google.firestore.admin.v1.FieldOperationMetadata.class,
            com.google.firestore.admin.v1.FieldOperationMetadata.Builder.class);
  }

  public interface IndexConfigDeltaOrBuilder
      extends
      // @@protoc_insertion_point(interface_extends:google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta)
      com.google.protobuf.MessageOrBuilder {

    /**
     *
     *
     * <pre>
     * Specifies how the index is changing.
     * </pre>
     *
     * <code>
     * .google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta.ChangeType change_type = 1;
     * </code>
     *
     * @return The enum numeric value on the wire for changeType.
     */
    int getChangeTypeValue();

    /**
     *
     *
     * <pre>
     * Specifies how the index is changing.
     * </pre>
     *
     * <code>
     * .google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta.ChangeType change_type = 1;
     * </code>
     *
     * @return The changeType.
     */
    com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta.ChangeType
        getChangeType();

    /**
     *
     *
     * <pre>
     * The index being changed.
     * </pre>
     *
     * <code>.google.firestore.admin.v1.Index index = 2;</code>
     *
     * @return Whether the index field is set.
     */
    boolean hasIndex();

    /**
     *
     *
     * <pre>
     * The index being changed.
     * </pre>
     *
     * <code>.google.firestore.admin.v1.Index index = 2;</code>
     *
     * @return The index.
     */
    com.google.firestore.admin.v1.Index getIndex();

    /**
     *
     *
     * <pre>
     * The index being changed.
     * </pre>
     *
     * <code>.google.firestore.admin.v1.Index index = 2;</code>
     */
    com.google.firestore.admin.v1.IndexOrBuilder getIndexOrBuilder();
  }

  /**
   *
   *
   * <pre>
   * Information about an index configuration change.
   * </pre>
   *
   * Protobuf type {@code google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta}
   */
  public static final class IndexConfigDelta extends com.google.protobuf.GeneratedMessage
      implements
      // @@protoc_insertion_point(message_implements:google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta)
      IndexConfigDeltaOrBuilder {
    private static final long serialVersionUID = 0L;

    static {
      com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
          com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
          /* major= */ 4,
          /* minor= */ 33,
          /* patch= */ 2,
          /* suffix= */ "",
          "IndexConfigDelta");
    }

    // Use IndexConfigDelta.newBuilder() to construct.
    private IndexConfigDelta(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
      super(builder);
    }

    private IndexConfigDelta() {
      changeType_ = 0;
    }

    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      return com.google.firestore.admin.v1.OperationProto
          .internal_static_google_firestore_admin_v1_FieldOperationMetadata_IndexConfigDelta_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.google.firestore.admin.v1.OperationProto
          .internal_static_google_firestore_admin_v1_FieldOperationMetadata_IndexConfigDelta_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta.class,
              com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta.Builder.class);
    }

    /**
     *
     *
     * <pre>
     * Specifies how the index is changing.
     * </pre>
     *
     * Protobuf enum {@code
     * google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta.ChangeType}
     */
    public enum ChangeType implements com.google.protobuf.ProtocolMessageEnum {
      /**
       *
       *
       * <pre>
       * The type of change is not specified or known.
       * </pre>
       *
       * <code>CHANGE_TYPE_UNSPECIFIED = 0;</code>
       */
      CHANGE_TYPE_UNSPECIFIED(0),
      /**
       *
       *
       * <pre>
       * The single field index is being added.
       * </pre>
       *
       * <code>ADD = 1;</code>
       */
      ADD(1),
      /**
       *
       *
       * <pre>
       * The single field index is being removed.
       * </pre>
       *
       * <code>REMOVE = 2;</code>
       */
      REMOVE(2),
      UNRECOGNIZED(-1),
      ;

      static {
        com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
            com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
            /* major= */ 4,
            /* minor= */ 33,
            /* patch= */ 2,
            /* suffix= */ "",
            "ChangeType");
      }

      /**
       *
       *
       * <pre>
       * The type of change is not specified or known.
       * </pre>
       *
       * <code>CHANGE_TYPE_UNSPECIFIED = 0;</code>
       */
      public static final int CHANGE_TYPE_UNSPECIFIED_VALUE = 0;

      /**
       *
       *
       * <pre>
       * The single field index is being added.
       * </pre>
       *
       * <code>ADD = 1;</code>
       */
      public static final int ADD_VALUE = 1;

      /**
       *
       *
       * <pre>
       * The single field index is being removed.
       * </pre>
       *
       * <code>REMOVE = 2;</code>
       */
      public static final int REMOVE_VALUE = 2;

      public final int getNumber() {
        if (this == UNRECOGNIZED) {
          throw new java.lang.IllegalArgumentException(
              "Can't get the number of an unknown enum value.");
        }
        return value;
      }

      /**
       * @param value The numeric wire value of the corresponding enum entry.
       * @return The enum associated with the given numeric wire value.
       * @deprecated Use {@link #forNumber(int)} instead.
       */
      @java.lang.Deprecated
      public static ChangeType valueOf(int value) {
        return forNumber(value);
      }

      /**
       * @param value The numeric wire value of the corresponding enum entry.
       * @return The enum associated with the given numeric wire value.
       */
      public static ChangeType forNumber(int value) {
        switch (value) {
          case 0:
            return CHANGE_TYPE_UNSPECIFIED;
          case 1:
            return ADD;
          case 2:
            return REMOVE;
          default:
            return null;
        }
      }

      public static com.google.protobuf.Internal.EnumLiteMap<ChangeType> internalGetValueMap() {
        return internalValueMap;
      }

      private static final com.google.protobuf.Internal.EnumLiteMap<ChangeType> internalValueMap =
          new com.google.protobuf.Internal.EnumLiteMap<ChangeType>() {
            public ChangeType findValueByNumber(int number) {
              return ChangeType.forNumber(number);
            }
          };

      public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
        if (this == UNRECOGNIZED) {
          throw new java.lang.IllegalStateException(
              "Can't get the descriptor of an unrecognized enum value.");
        }
        return getDescriptor().getValues().get(ordinal());
      }

      public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
        return getDescriptor();
      }

      public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
        return com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta.getDescriptor()
            .getEnumTypes()
            .get(0);
      }

      private static final ChangeType[] VALUES = values();

      public static ChangeType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
        if (desc.getType() != getDescriptor()) {
          throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
        }
        if (desc.getIndex() == -1) {
          return UNRECOGNIZED;
        }
        return VALUES[desc.getIndex()];
      }

      private final int value;

      private ChangeType(int value) {
        this.value = value;
      }

      // @@protoc_insertion_point(enum_scope:google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta.ChangeType)
    }

    private int bitField0_;
    public static final int CHANGE_TYPE_FIELD_NUMBER = 1;
    private int changeType_ = 0;

    /**
     *
     *
     * <pre>
     * Specifies how the index is changing.
     * </pre>
     *
     * <code>
     * .google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta.ChangeType change_type = 1;
     * </code>
     *
     * @return The enum numeric value on the wire for changeType.
     */
    @java.lang.Override
    public int getChangeTypeValue() {
      return changeType_;
    }

    /**
     *
     *
     * <pre>
     * Specifies how the index is changing.
     * </pre>
     *
     * <code>
     * .google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta.ChangeType change_type = 1;
     * </code>
     *
     * @return The changeType.
     */
    @java.lang.Override
    public com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta.ChangeType
        getChangeType() {
      com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta.ChangeType result =
          com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta.ChangeType
              .forNumber(changeType_);
      return result == null
          ? com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta.ChangeType
              .UNRECOGNIZED
          : result;
    }

    public static final int INDEX_FIELD_NUMBER = 2;
    private com.google.firestore.admin.v1.Index index_;

    /**
     *
     *
     * <pre>
     * The index being changed.
     * </pre>
     *
     * <code>.google.firestore.admin.v1.Index index = 2;</code>
     *
     * @return Whether the index field is set.
     */
    @java.lang.Override
    public boolean hasIndex() {
      return ((bitField0_ & 0x00000001) != 0);
    }

    /**
     *
     *
     * <pre>
     * The index being changed.
     * </pre>
     *
     * <code>.google.firestore.admin.v1.Index index = 2;</code>
     *
     * @return The index.
     */
    @java.lang.Override
    public com.google.firestore.admin.v1.Index getIndex() {
      return index_ == null ? com.google.firestore.admin.v1.Index.getDefaultInstance() : index_;
    }

    /**
     *
     *
     * <pre>
     * The index being changed.
     * </pre>
     *
     * <code>.google.firestore.admin.v1.Index index = 2;</code>
     */
    @java.lang.Override
    public com.google.firestore.admin.v1.IndexOrBuilder getIndexOrBuilder() {
      return index_ == null ? com.google.firestore.admin.v1.Index.getDefaultInstance() : index_;
    }

    private byte memoizedIsInitialized = -1;

    @java.lang.Override
    public final boolean isInitialized() {
      byte isInitialized = memoizedIsInitialized;
      if (isInitialized == 1) return true;
      if (isInitialized == 0) return false;

      memoizedIsInitialized = 1;
      return true;
    }

    @java.lang.Override
    public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
      if (changeType_
          != com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta.ChangeType
              .CHANGE_TYPE_UNSPECIFIED
              .getNumber()) {
        output.writeEnum(1, changeType_);
      }
      if (((bitField0_ & 0x00000001) != 0)) {
        output.writeMessage(2, getIndex());
      }
      getUnknownFields().writeTo(output);
    }

    @java.lang.Override
    public int getSerializedSize() {
      int size = memoizedSize;
      if (size != -1) return size;

      size = 0;
      if (changeType_
          != com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta.ChangeType
              .CHANGE_TYPE_UNSPECIFIED
              .getNumber()) {
        size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, changeType_);
      }
      if (((bitField0_ & 0x00000001) != 0)) {
        size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getIndex());
      }
      size += getUnknownFields().getSerializedSize();
      memoizedSize = size;
      return size;
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
        return true;
      }
      if (!(obj instanceof com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta)) {
        return super.equals(obj);
      }
      com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta other =
          (com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta) obj;

      if (changeType_ != other.changeType_) return false;
      if (hasIndex() != other.hasIndex()) return false;
      if (hasIndex()) {
        if (!getIndex().equals(other.getIndex())) return false;
      }
      if (!getUnknownFields().equals(other.getUnknownFields())) return false;
      return true;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      hash = (37 * hash) + CHANGE_TYPE_FIELD_NUMBER;
      hash = (53 * hash) + changeType_;
      if (hasIndex()) {
        hash = (37 * hash) + INDEX_FIELD_NUMBER;
        hash = (53 * hash) + getIndex().hashCode();
      }
      hash = (29 * hash) + getUnknownFields().hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta parseFrom(
        java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }

    public static com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta parseFrom(
        java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }

    public static com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }

    public static com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }

    public static com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta parseFrom(
        byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }

    public static com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta parseFrom(
        byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }

    public static com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta parseFrom(
        java.io.InputStream input) throws java.io.IOException {
      return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
    }

    public static com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta parseFrom(
        java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessage.parseWithIOException(
          PARSER, input, extensionRegistry);
    }

    public static com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta
        parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
      return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input);
    }

    public static com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta
        parseDelimitedFrom(
            java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            throws java.io.IOException {
      return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(
          PARSER, input, extensionRegistry);
    }

    public static com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta parseFrom(
        com.google.protobuf.CodedInputStream input) throws java.io.IOException {
      return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
    }

    public static com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessage.parseWithIOException(
          PARSER, input, extensionRegistry);
    }

    @java.lang.Override
    public Builder newBuilderForType() {
      return newBuilder();
    }

    public static Builder newBuilder() {
      return DEFAULT_INSTANCE.toBuilder();
    }

    public static Builder newBuilder(
        com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta prototype) {
      return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
    }

    @java.lang.Override
    public Builder toBuilder() {
      return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
    }

    @java.lang.Override
    protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) {
      Builder builder = new Builder(parent);
      return builder;
    }

    /**
     *
     *
     * <pre>
     * Information about an index configuration change.
     * </pre>
     *
     * Protobuf type {@code google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta}
     */
    public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder>
        implements
        // @@protoc_insertion_point(builder_implements:google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta)
        com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDeltaOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        return com.google.firestore.admin.v1.OperationProto
            .internal_static_google_firestore_admin_v1_FieldOperationMetadata_IndexConfigDelta_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.google.firestore.admin.v1.OperationProto
            .internal_static_google_firestore_admin_v1_FieldOperationMetadata_IndexConfigDelta_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta.class,
                com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta.Builder
                    .class);
      }

      // Construct using
      // com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta.newBuilder()
      private Builder() {
        maybeForceBuilderInitialization();
      }

      private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) {
        super(parent);
        maybeForceBuilderInitialization();
      }

      private void maybeForceBuilderInitialization() {
        if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
          internalGetIndexFieldBuilder();
        }
      }

      @java.lang.Override
      public Builder clear() {
        super.clear();
        bitField0_ = 0;
        changeType_ = 0;
        index_ = null;
        if (indexBuilder_ != null) {
          indexBuilder_.dispose();
          indexBuilder_ = null;
        }
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
        return com.google.firestore.admin.v1.OperationProto
            .internal_static_google_firestore_admin_v1_FieldOperationMetadata_IndexConfigDelta_descriptor;
      }

      @java.lang.Override
      public com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta
          getDefaultInstanceForType() {
        return com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta
            .getDefaultInstance();
      }

      @java.lang.Override
      public com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta build() {
        com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta result =
            buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta buildPartial() {
        com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta result =
            new com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta(this);
        if (bitField0_ != 0) {
          buildPartial0(result);
        }
        onBuilt();
        return result;
      }

      private void buildPartial0(
          com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta result) {
        int from_bitField0_ = bitField0_;
        if (((from_bitField0_ & 0x00000001) != 0)) {
          result.changeType_ = changeType_;
        }
        int to_bitField0_ = 0;
        if (((from_bitField0_ & 0x00000002) != 0)) {
          result.index_ = indexBuilder_ == null ? index_ : indexBuilder_.build();
          to_bitField0_ |= 0x00000001;
        }
        result.bitField0_ |= to_bitField0_;
      }

      @java.lang.Override
      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other
            instanceof com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta) {
          return mergeFrom(
              (com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta) other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(
          com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta other) {
        if (other
            == com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta
                .getDefaultInstance()) return this;
        if (other.changeType_ != 0) {
          setChangeTypeValue(other.getChangeTypeValue());
        }
        if (other.hasIndex()) {
          mergeIndex(other.getIndex());
        }
        this.mergeUnknownFields(other.getUnknownFields());
        onChanged();
        return this;
      }

      @java.lang.Override
      public final boolean isInitialized() {
        return true;
      }

      @java.lang.Override
      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        if (extensionRegistry == null) {
          throw new java.lang.NullPointerException();
        }
        try {
          boolean done = false;
          while (!done) {
            int tag = input.readTag();
            switch (tag) {
              case 0:
                done = true;
                break;
              case 8:
                {
                  changeType_ = input.readEnum();
                  bitField0_ |= 0x00000001;
                  break;
                } // case 8
              case 18:
                {
                  input.readMessage(internalGetIndexFieldBuilder().getBuilder(), extensionRegistry);
                  bitField0_ |= 0x00000002;
                  break;
                } // case 18
              default:
                {
                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                    done = true; // was an endgroup tag
                  }
                  break;
                } // default:
            } // switch (tag)
          } // while (!done)
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          throw e.unwrapIOException();
        } finally {
          onChanged();
        } // finally
        return this;
      }

      private int bitField0_;

      private int changeType_ = 0;

      /**
       *
       *
       * <pre>
       * Specifies how the index is changing.
       * </pre>
       *
       * <code>
       * .google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta.ChangeType change_type = 1;
       * </code>
       *
       * @return The enum numeric value on the wire for changeType.
       */
      @java.lang.Override
      public int getChangeTypeValue() {
        return changeType_;
      }

      /**
       *
       *
       * <pre>
       * Specifies how the index is changing.
       * </pre>
       *
       * <code>
       * .google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta.ChangeType change_type = 1;
       * </code>
       *
       * @param value The enum numeric value on the wire for changeType to set.
       * @return This builder for chaining.
       */
      public Builder setChangeTypeValue(int value) {
        changeType_ = value;
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }

      /**
       *
       *
       * <pre>
       * Specifies how the index is changing.
       * </pre>
       *
       * <code>
       * .google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta.ChangeType change_type = 1;
       * </code>
       *
       * @return The changeType.
       */
      @java.lang.Override
      public com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta.ChangeType
          getChangeType() {
        com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta.ChangeType result =
            com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta.ChangeType
                .forNumber(changeType_);
        return result == null
            ? com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta.ChangeType
                .UNRECOGNIZED
            : result;
      }

      /**
       *
       *
       * <pre>
       * Specifies how the index is changing.
       * </pre>
       *
       * <code>
       * .google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta.ChangeType change_type = 1;
       * </code>
       *
       * @param value The changeType to set.
       * @return This builder for chaining.
       */
      public Builder setChangeType(
          com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta.ChangeType value) {
        if (value == null) {
          throw new NullPointerException();
        }
        bitField0_ |= 0x00000001;
        changeType_ = value.getNumber();
        onChanged();
        return this;
      }

      /**
       *
       *
       * <pre>
       * Specifies how the index is changing.
       * </pre>
       *
       * <code>
       * .google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta.ChangeType change_type = 1;
       * </code>
       *
       * @return This builder for chaining.
       */
      public Builder clearChangeType() {
        bitField0_ = (bitField0_ & ~0x00000001);
        changeType_ = 0;
        onChanged();
        return this;
      }

      private com.google.firestore.admin.v1.Index index_;
      private com.google.protobuf.SingleFieldBuilder<
              com.google.firestore.admin.v1.Index,
              com.google.firestore.admin.v1.Index.Builder,
              com.google.firestore.admin.v1.IndexOrBuilder>
          indexBuilder_;

      /**
       *
       *
       * <pre>
       * The index being changed.
       * </pre>
       *
       * <code>.google.firestore.admin.v1.Index index = 2;</code>
       *
       * @return Whether the index field is set.
       */
      public boolean hasIndex() {
        return ((bitField0_ & 0x00000002) != 0);
      }

      /**
       *
       *
       * <pre>
       * The index being changed.
       * </pre>
       *
       * <code>.google.firestore.admin.v1.Index index = 2;</code>
       *
       * @return The index.
       */
      public com.google.firestore.admin.v1.Index getIndex() {
        if (indexBuilder_ == null) {
          return index_ == null ? com.google.firestore.admin.v1.Index.getDefaultInstance() : index_;
        } else {
          return indexBuilder_.getMessage();
        }
      }

      /**
       *
       *
       * <pre>
       * The index being changed.
       * </pre>
       *
       * <code>.google.firestore.admin.v1.Index index = 2;</code>
       */
      public Builder setIndex(com.google.firestore.admin.v1.Index value) {
        if (indexBuilder_ == null) {
          if (value == null) {
            throw new NullPointerException();
          }
          index_ = value;
        } else {
          indexBuilder_.setMessage(value);
        }
        bitField0_ |= 0x00000002;
        onChanged();
        return this;
      }

      /**
       *
       *
       * <pre>
       * The index being changed.
       * </pre>
       *
       * <code>.google.firestore.admin.v1.Index index = 2;</code>
       */
      public Builder setIndex(com.google.firestore.admin.v1.Index.Builder builderForValue) {
        if (indexBuilder_ == null) {
          index_ = builderForValue.build();
        } else {
          indexBuilder_.setMessage(builderForValue.build());
        }
        bitField0_ |= 0x00000002;
        onChanged();
        return this;
      }

      /**
       *
       *
       * <pre>
       * The index being changed.
       * </pre>
       *
       * <code>.google.firestore.admin.v1.Index index = 2;</code>
       */
      public Builder mergeIndex(com.google.firestore.admin.v1.Index value) {
        if (indexBuilder_ == null) {
          if (((bitField0_ & 0x00000002) != 0)
              && index_ != null
              && index_ != com.google.firestore.admin.v1.Index.getDefaultInstance()) {
            getIndexBuilder().mergeFrom(value);
          } else {
            index_ = value;
          }
        } else {
          indexBuilder_.mergeFrom(value);
        }
        if (index_ != null) {
          bitField0_ |= 0x00000002;
          onChanged();
        }
        return this;
      }

      /**
       *
       *
       * <pre>
       * The index being changed.
       * </pre>
       *
       * <code>.google.firestore.admin.v1.Index index = 2;</code>
       */
      public Builder clearIndex() {
        bitField0_ = (bitField0_ & ~0x00000002);
        index_ = null;
        if (indexBuilder_ != null) {
          indexBuilder_.dispose();
          indexBuilder_ = null;
        }
        onChanged();
        return this;
      }

      /**
       *
       *
       * <pre>
       * The index being changed.
       * </pre>
       *
       * <code>.google.firestore.admin.v1.Index index = 2;</code>
       */
      public com.google.firestore.admin.v1.Index.Builder getIndexBuilder() {
        bitField0_ |= 0x00000002;
        onChanged();
        return internalGetIndexFieldBuilder().getBuilder();
      }

      /**
       *
       *
       * <pre>
       * The index being changed.
       * </pre>
       *
       * <code>.google.firestore.admin.v1.Index index = 2;</code>
       */
      public com.google.firestore.admin.v1.IndexOrBuilder getIndexOrBuilder() {
        if (indexBuilder_ != null) {
          return indexBuilder_.getMessageOrBuilder();
        } else {
          return index_ == null ? com.google.firestore.admin.v1.Index.getDefaultInstance() : index_;
        }
      }

      /**
       *
       *
       * <pre>
       * The index being changed.
       * </pre>
       *
       * <code>.google.firestore.admin.v1.Index index = 2;</code>
       */
      private com.google.protobuf.SingleFieldBuilder<
              com.google.firestore.admin.v1.Index,
              com.google.firestore.admin.v1.Index.Builder,
              com.google.firestore.admin.v1.IndexOrBuilder>
          internalGetIndexFieldBuilder() {
        if (indexBuilder_ == null) {
          indexBuilder_ =
              new com.google.protobuf.SingleFieldBuilder<
                  com.google.firestore.admin.v1.Index,
                  com.google.firestore.admin.v1.Index.Builder,
                  com.google.firestore.admin.v1.IndexOrBuilder>(
                  getIndex(), getParentForChildren(), isClean());
          index_ = null;
        }
        return indexBuilder_;
      }

      // @@protoc_insertion_point(builder_scope:google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta)
    }

    // @@protoc_insertion_point(class_scope:google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta)
    private static final com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta
        DEFAULT_INSTANCE;

    static {
      DEFAULT_INSTANCE =
          new com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta();
    }

    public static com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta
        getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static final com.google.protobuf.Parser<IndexConfigDelta> PARSER =
        new com.google.protobuf.AbstractParser<IndexConfigDelta>() {
          @java.lang.Override
          public IndexConfigDelta parsePartialFrom(
              com.google.protobuf.CodedInputStream input,
              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
              throws com.google.protobuf.InvalidProtocolBufferException {
            Builder builder = newBuilder();
            try {
              builder.mergeFrom(input, extensionRegistry);
            } catch (com.google.protobuf.InvalidProtocolBufferException e) {
              throw e.setUnfinishedMessage(builder.buildPartial());
            } catch (com.google.protobuf.UninitializedMessageException e) {
              throw e.asInvalidProtocolBufferException()
                  .setUnfinishedMessage(builder.buildPartial());
            } catch (java.io.IOException e) {
              throw new com.google.protobuf.InvalidProtocolBufferException(e)
                  .setUnfinishedMessage(builder.buildPartial());
            }
            return builder.buildPartial();
          }
        };

    public static com.google.protobuf.Parser<IndexConfigDelta> parser() {
      return PARSER;
    }

    @java.lang.Override
    public com.google.protobuf.Parser<IndexConfigDelta> getParserForType() {
      return PARSER;
    }

    @java.lang.Override
    public com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta
        getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }
  }

  public interface TtlConfigDeltaOrBuilder
      extends
      // @@protoc_insertion_point(interface_extends:google.firestore.admin.v1.FieldOperationMetadata.TtlConfigDelta)
      com.google.protobuf.MessageOrBuilder {

    /**
     *
     *
     * <pre>
     * Specifies how the TTL configuration is changing.
     * </pre>
     *
     * <code>
     * .google.firestore.admin.v1.FieldOperationMetadata.TtlConfigDelta.ChangeType change_type = 1;
     * </code>
     *
     * @return The enum numeric value on the wire for changeType.
     */
    int getChangeTypeValue();

    /**
     *
     *
     * <pre>
     * Specifies how the TTL configuration is changing.
     * </pre>
     *
     * <code>
     * .google.firestore.admin.v1.FieldOperationMetadata.TtlConfigDelta.ChangeType change_type = 1;
     * </code>
     *
     * @return The changeType.
     */
    com.google.firestore.admin.v1.FieldOperationMetadata.TtlConfigDelta.ChangeType getChangeType();
  }

  /**
   *
   *
   * <pre>
   * Information about a TTL configuration change.
   * </pre>
   *
   * Protobuf type {@code google.firestore.admin.v1.FieldOperationMetadata.TtlConfigDelta}
   */
  public static final class TtlConfigDelta extends com.google.protobuf.GeneratedMessage
      implements
      // @@protoc_insertion_point(message_implements:google.firestore.admin.v1.FieldOperationMetadata.TtlConfigDelta)
      TtlConfigDeltaOrBuilder {
    private static final long serialVersionUID = 0L;

    static {
      com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
          com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
          /* major= */ 4,
          /* minor= */ 33,
          /* patch= */ 2,
          /* suffix= */ "",
          "TtlConfigDelta");
    }

    // Use TtlConfigDelta.newBuilder() to construct.
    private TtlConfigDelta(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
      super(builder);
    }

    private TtlConfigDelta() {
      changeType_ = 0;
    }

    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      return com.google.firestore.admin.v1.OperationProto
          .internal_static_google_firestore_admin_v1_FieldOperationMetadata_TtlConfigDelta_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.google.firestore.admin.v1.OperationProto
          .internal_static_google_firestore_admin_v1_FieldOperationMetadata_TtlConfigDelta_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.google.firestore.admin.v1.FieldOperationMetadata.TtlConfigDelta.class,
              com.google.firestore.admin.v1.FieldOperationMetadata.TtlConfigDelta.Builder.class);
    }

    /**
     *
     *
     * <pre>
     * Specifies how the TTL config is changing.
     * </pre>
     *
     * Protobuf enum {@code
     * google.firestore.admin.v1.FieldOperationMetadata.TtlConfigDelta.ChangeType}
     */
    public enum ChangeType implements com.google.protobuf.ProtocolMessageEnum {
      /**
       *
       *
       * <pre>
       * The type of change is not specified or known.
       * </pre>
       *
       * <code>CHANGE_TYPE_UNSPECIFIED = 0;</code>
       */
      CHANGE_TYPE_UNSPECIFIED(0),
      /**
       *
       *
       * <pre>
       * The TTL config is being added.
       * </pre>
       *
       * <code>ADD = 1;</code>
       */
      ADD(1),
      /**
       *
       *
       * <pre>
       * The TTL config is being removed.
       * </pre>
       *
       * <code>REMOVE = 2;</code>
       */
      REMOVE(2),
      UNRECOGNIZED(-1),
      ;

      static {
        com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
            com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
            /* major= */ 4,
            /* minor= */ 33,
            /* patch= */ 2,
            /* suffix= */ "",
            "ChangeType");
      }

      /**
       *
       *
       * <pre>
       * The type of change is not specified or known.
       * </pre>
       *
       * <code>CHANGE_TYPE_UNSPECIFIED = 0;</code>
       */
      public static final int CHANGE_TYPE_UNSPECIFIED_VALUE = 0;

      /**
       *
       *
       * <pre>
       * The TTL config is being added.
       * </pre>
       *
       * <code>ADD = 1;</code>
       */
      public static final int ADD_VALUE = 1;

      /**
       *
       *
       * <pre>
       * The TTL config is being removed.
       * </pre>
       *
       * <code>REMOVE = 2;</code>
       */
      public static final int REMOVE_VALUE = 2;

      public final int getNumber() {
        if (this == UNRECOGNIZED) {
          throw new java.lang.IllegalArgumentException(
              "Can't get the number of an unknown enum value.");
        }
        return value;
      }

      /**
       * @param value The numeric wire value of the corresponding enum entry.
       * @return The enum associated with the given numeric wire value.
       * @deprecated Use {@link #forNumber(int)} instead.
       */
      @java.lang.Deprecated
      public static ChangeType valueOf(int value) {
        return forNumber(value);
      }

      /**
       * @param value The numeric wire value of the corresponding enum entry.
       * @return The enum associated with the given numeric wire value.
       */
      public static ChangeType forNumber(int value) {
        switch (value) {
          case 0:
            return CHANGE_TYPE_UNSPECIFIED;
          case 1:
            return ADD;
          case 2:
            return REMOVE;
          default:
            return null;
        }
      }

      public static com.google.protobuf.Internal.EnumLiteMap<ChangeType> internalGetValueMap() {
        return internalValueMap;
      }

      private static final com.google.protobuf.Internal.EnumLiteMap<ChangeType> internalValueMap =
          new com.google.protobuf.Internal.EnumLiteMap<ChangeType>() {
            public ChangeType findValueByNumber(int number) {
              return ChangeType.forNumber(number);
            }
          };

      public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
        if (this == UNRECOGNIZED) {
          throw new java.lang.IllegalStateException(
              "Can't get the descriptor of an unrecognized enum value.");
        }
        return getDescriptor().getValues().get(ordinal());
      }

      public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
        return getDescriptor();
      }

      public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
        return com.google.firestore.admin.v1.FieldOperationMetadata.TtlConfigDelta.getDescriptor()
            .getEnumTypes()
            .get(0);
      }

      private static final ChangeType[] VALUES = values();

      public static ChangeType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
        if (desc.getType() != getDescriptor()) {
          throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
        }
        if (desc.getIndex() == -1) {
          return UNRECOGNIZED;
        }
        return VALUES[desc.getIndex()];
      }

      private final int value;

      private ChangeType(int value) {
        this.value = value;
      }

      // @@protoc_insertion_point(enum_scope:google.firestore.admin.v1.FieldOperationMetadata.TtlConfigDelta.ChangeType)
    }

    public static final int CHANGE_TYPE_FIELD_NUMBER = 1;
    private int changeType_ = 0;

    /**
     *
     *
     * <pre>
     * Specifies how the TTL configuration is changing.
     * </pre>
     *
     * <code>
     * .google.firestore.admin.v1.FieldOperationMetadata.TtlConfigDelta.ChangeType change_type = 1;
     * </code>
     *
     * @return The enum numeric value on the wire for changeType.
     */
    @java.lang.Override
    public int getChangeTypeValue() {
      return changeType_;
    }

    /**
     *
     *
     * <pre>
     * Specifies how the TTL configuration is changing.
     * </pre>
     *
     * <code>
     * .google.firestore.admin.v1.FieldOperationMetadata.TtlConfigDelta.ChangeType change_type = 1;
     * </code>
     *
     * @return The changeType.
     */
    @java.lang.Override
    public com.google.firestore.admin.v1.FieldOperationMetadata.TtlConfigDelta.ChangeType
        getChangeType() {
      com.google.firestore.admin.v1.FieldOperationMetadata.TtlConfigDelta.ChangeType result =
          com.google.firestore.admin.v1.FieldOperationMetadata.TtlConfigDelta.ChangeType.forNumber(
              changeType_);
      return result == null
          ? com.google.firestore.admin.v1.FieldOperationMetadata.TtlConfigDelta.ChangeType
              .UNRECOGNIZED
          : result;
    }

    private byte memoizedIsInitialized = -1;

    @java.lang.Override
    public final boolean isInitialized() {
      byte isInitialized = memoizedIsInitialized;
      if (isInitialized == 1) return true;
      if (isInitialized == 0) return false;

      memoizedIsInitialized = 1;
      return true;
    }

    @java.lang.Override
    public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
      if (changeType_
          != com.google.firestore.admin.v1.FieldOperationMetadata.TtlConfigDelta.ChangeType
              .CHANGE_TYPE_UNSPECIFIED
              .getNumber()) {
        output.writeEnum(1, changeType_);
      }
      getUnknownFields().writeTo(output);
    }

    @java.lang.Override
    public int getSerializedSize() {
      int size = memoizedSize;
      if (size != -1) return size;

      size = 0;
      if (changeType_
          != com.google.firestore.admin.v1.FieldOperationMetadata.TtlConfigDelta.ChangeType
              .CHANGE_TYPE_UNSPECIFIED
              .getNumber()) {
        size += com.google.protobuf.CodedOutputStream.computeEnumSize(1, changeType_);
      }
      size += getUnknownFields().getSerializedSize();
      memoizedSize = size;
      return size;
    }

    @java.lang.Override
    public boolean equals(final java.lang.Object obj) {
      if (obj == this) {
        return true;
      }
      if (!(obj instanceof com.google.firestore.admin.v1.FieldOperationMetadata.TtlConfigDelta)) {
        return super.equals(obj);
      }
      com.google.firestore.admin.v1.FieldOperationMetadata.TtlConfigDelta other =
          (com.google.firestore.admin.v1.FieldOperationMetadata.TtlConfigDelta) obj;

      if (changeType_ != other.changeType_) return false;
      if (!getUnknownFields().equals(other.getUnknownFields())) return false;
      return true;
    }

    @java.lang.Override
    public int hashCode() {
      if (memoizedHashCode != 0) {
        return memoizedHashCode;
      }
      int hash = 41;
      hash = (19 * hash) + getDescriptor().hashCode();
      hash = (37 * hash) + CHANGE_TYPE_FIELD_NUMBER;
      hash = (53 * hash) + changeType_;
      hash = (29 * hash) + getUnknownFields().hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static com.google.firestore.admin.v1.FieldOperationMetadata.TtlConfigDelta parseFrom(
        java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }

    public static com.google.firestore.admin.v1.FieldOperationMetadata.TtlConfigDelta parseFrom(
        java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }

    public static com.google.firestore.admin.v1.FieldOperationMetadata.TtlConfigDelta parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }

    public static com.google.firestore.admin.v1.FieldOperationMetadata.TtlConfigDelta parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }

    public static com.google.firestore.admin.v1.FieldOperationMetadata.TtlConfigDelta parseFrom(
        byte[] data) throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }

    public static com.google.firestore.admin.v1.FieldOperationMetadata.TtlConfigDelta parseFrom(
        byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }

    public static com.google.firestore.admin.v1.FieldOperationMetadata.TtlConfigDelta parseFrom(
        java.io.InputStream input) throws java.io.IOException {
      return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
    }

    public static com.google.firestore.admin.v1.FieldOperationMetadata.TtlConfigDelta parseFrom(
        java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessage.parseWithIOException(
          PARSER, input, extensionRegistry);
    }

    public static com.google.firestore.admin.v1.FieldOperationMetadata.TtlConfigDelta
        parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException {
      return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input);
    }

    public static com.google.firestore.admin.v1.FieldOperationMetadata.TtlConfigDelta
        parseDelimitedFrom(
            java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            throws java.io.IOException {
      return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(
          PARSER, input, extensionRegistry);
    }

    public static com.google.firestore.admin.v1.FieldOperationMetadata.TtlConfigDelta parseFrom(
        com.google.protobuf.CodedInputStream input) throws java.io.IOException {
      return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
    }

    public static com.google.firestore.admin.v1.FieldOperationMetadata.TtlConfigDelta parseFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessage.parseWithIOException(
          PARSER, input, extensionRegistry);
    }

    @java.lang.Override
    public Builder newBuilderForType() {
      return newBuilder();
    }

    public static Builder newBuilder() {
      return DEFAULT_INSTANCE.toBuilder();
    }

    public static Builder newBuilder(
        com.google.firestore.admin.v1.FieldOperationMetadata.TtlConfigDelta prototype) {
      return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
    }

    @java.lang.Override
    public Builder toBuilder() {
      return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
    }

    @java.lang.Override
    protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) {
      Builder builder = new Builder(parent);
      return builder;
    }

    /**
     *
     *
     * <pre>
     * Information about a TTL configuration change.
     * </pre>
     *
     * Protobuf type {@code google.firestore.admin.v1.FieldOperationMetadata.TtlConfigDelta}
     */
    public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder>
        implements
        // @@protoc_insertion_point(builder_implements:google.firestore.admin.v1.FieldOperationMetadata.TtlConfigDelta)
        com.google.firestore.admin.v1.FieldOperationMetadata.TtlConfigDeltaOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        return com.google.firestore.admin.v1.OperationProto
            .internal_static_google_firestore_admin_v1_FieldOperationMetadata_TtlConfigDelta_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return com.google.firestore.admin.v1.OperationProto
            .internal_static_google_firestore_admin_v1_FieldOperationMetadata_TtlConfigDelta_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                com.google.firestore.admin.v1.FieldOperationMetadata.TtlConfigDelta.class,
                com.google.firestore.admin.v1.FieldOperationMetadata.TtlConfigDelta.Builder.class);
      }

      // Construct using
      // com.google.firestore.admin.v1.FieldOperationMetadata.TtlConfigDelta.newBuilder()
      private Builder() {}

      private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) {
        super(parent);
      }

      @java.lang.Override
      public Builder clear() {
        super.clear();
        bitField0_ = 0;
        changeType_ = 0;
        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
        return com.google.firestore.admin.v1.OperationProto
            .internal_static_google_firestore_admin_v1_FieldOperationMetadata_TtlConfigDelta_descriptor;
      }

      @java.lang.Override
      public com.google.firestore.admin.v1.FieldOperationMetadata.TtlConfigDelta
          getDefaultInstanceForType() {
        return com.google.firestore.admin.v1.FieldOperationMetadata.TtlConfigDelta
            .getDefaultInstance();
      }

      @java.lang.Override
      public com.google.firestore.admin.v1.FieldOperationMetadata.TtlConfigDelta build() {
        com.google.firestore.admin.v1.FieldOperationMetadata.TtlConfigDelta result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public com.google.firestore.admin.v1.FieldOperationMetadata.TtlConfigDelta buildPartial() {
        com.google.firestore.admin.v1.FieldOperationMetadata.TtlConfigDelta result =
            new com.google.firestore.admin.v1.FieldOperationMetadata.TtlConfigDelta(this);
        if (bitField0_ != 0) {
          buildPartial0(result);
        }
        onBuilt();
        return result;
      }

      private void buildPartial0(
          com.google.firestore.admin.v1.FieldOperationMetadata.TtlConfigDelta result) {
        int from_bitField0_ = bitField0_;
        if (((from_bitField0_ & 0x00000001) != 0)) {
          result.changeType_ = changeType_;
        }
      }

      @java.lang.Override
      public Builder mergeFrom(com.google.protobuf.Message other) {
        if (other instanceof com.google.firestore.admin.v1.FieldOperationMetadata.TtlConfigDelta) {
          return mergeFrom(
              (com.google.firestore.admin.v1.FieldOperationMetadata.TtlConfigDelta) other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(
          com.google.firestore.admin.v1.FieldOperationMetadata.TtlConfigDelta other) {
        if (other
            == com.google.firestore.admin.v1.FieldOperationMetadata.TtlConfigDelta
                .getDefaultInstance()) return this;
        if (other.changeType_ != 0) {
          setChangeTypeValue(other.getChangeTypeValue());
        }
        this.mergeUnknownFields(other.getUnknownFields());
        onChanged();
        return this;
      }

      @java.lang.Override
      public final boolean isInitialized() {
        return true;
      }

      @java.lang.Override
      public Builder mergeFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws java.io.IOException {
        if (extensionRegistry == null) {
          throw new java.lang.NullPointerException();
        }
        try {
          boolean done = false;
          while (!done) {
            int tag = input.readTag();
            switch (tag) {
              case 0:
                done = true;
                break;
              case 8:
                {
                  changeType_ = input.readEnum();
                  bitField0_ |= 0x00000001;
                  break;
                } // case 8
              default:
                {
                  if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                    done = true; // was an endgroup tag
                  }
                  break;
                } // default:
            } // switch (tag)
          } // while (!done)
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          throw e.unwrapIOException();
        } finally {
          onChanged();
        } // finally
        return this;
      }

      private int bitField0_;

      private int changeType_ = 0;

      /**
       *
       *
       * <pre>
       * Specifies how the TTL configuration is changing.
       * </pre>
       *
       * <code>
       * .google.firestore.admin.v1.FieldOperationMetadata.TtlConfigDelta.ChangeType change_type = 1;
       * </code>
       *
       * @return The enum numeric value on the wire for changeType.
       */
      @java.lang.Override
      public int getChangeTypeValue() {
        return changeType_;
      }

      /**
       *
       *
       * <pre>
       * Specifies how the TTL configuration is changing.
       * </pre>
       *
       * <code>
       * .google.firestore.admin.v1.FieldOperationMetadata.TtlConfigDelta.ChangeType change_type = 1;
       * </code>
       *
       * @param value The enum numeric value on the wire for changeType to set.
       * @return This builder for chaining.
       */
      public Builder setChangeTypeValue(int value) {
        changeType_ = value;
        bitField0_ |= 0x00000001;
        onChanged();
        return this;
      }

      /**
       *
       *
       * <pre>
       * Specifies how the TTL configuration is changing.
       * </pre>
       *
       * <code>
       * .google.firestore.admin.v1.FieldOperationMetadata.TtlConfigDelta.ChangeType change_type = 1;
       * </code>
       *
       * @return The changeType.
       */
      @java.lang.Override
      public com.google.firestore.admin.v1.FieldOperationMetadata.TtlConfigDelta.ChangeType
          getChangeType() {
        com.google.firestore.admin.v1.FieldOperationMetadata.TtlConfigDelta.ChangeType result =
            com.google.firestore.admin.v1.FieldOperationMetadata.TtlConfigDelta.ChangeType
                .forNumber(changeType_);
        return result == null
            ? com.google.firestore.admin.v1.FieldOperationMetadata.TtlConfigDelta.ChangeType
                .UNRECOGNIZED
            : result;
      }

      /**
       *
       *
       * <pre>
       * Specifies how the TTL configuration is changing.
       * </pre>
       *
       * <code>
       * .google.firestore.admin.v1.FieldOperationMetadata.TtlConfigDelta.ChangeType change_type = 1;
       * </code>
       *
       * @param value The changeType to set.
       * @return This builder for chaining.
       */
      public Builder setChangeType(
          com.google.firestore.admin.v1.FieldOperationMetadata.TtlConfigDelta.ChangeType value) {
        if (value == null) {
          throw new NullPointerException();
        }
        bitField0_ |= 0x00000001;
        changeType_ = value.getNumber();
        onChanged();
        return this;
      }

      /**
       *
       *
       * <pre>
       * Specifies how the TTL configuration is changing.
       * </pre>
       *
       * <code>
       * .google.firestore.admin.v1.FieldOperationMetadata.TtlConfigDelta.ChangeType change_type = 1;
       * </code>
       *
       * @return This builder for chaining.
       */
      public Builder clearChangeType() {
        bitField0_ = (bitField0_ & ~0x00000001);
        changeType_ = 0;
        onChanged();
        return this;
      }

      // @@protoc_insertion_point(builder_scope:google.firestore.admin.v1.FieldOperationMetadata.TtlConfigDelta)
    }

    // @@protoc_insertion_point(class_scope:google.firestore.admin.v1.FieldOperationMetadata.TtlConfigDelta)
    private static final com.google.firestore.admin.v1.FieldOperationMetadata.TtlConfigDelta
        DEFAULT_INSTANCE;

    static {
      DEFAULT_INSTANCE = new com.google.firestore.admin.v1.FieldOperationMetadata.TtlConfigDelta();
    }

    public static com.google.firestore.admin.v1.FieldOperationMetadata.TtlConfigDelta
        getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static final com.google.protobuf.Parser<TtlConfigDelta> PARSER =
        new com.google.protobuf.AbstractParser<TtlConfigDelta>() {
          @java.lang.Override
          public TtlConfigDelta parsePartialFrom(
              com.google.protobuf.CodedInputStream input,
              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
              throws com.google.protobuf.InvalidProtocolBufferException {
            Builder builder = newBuilder();
            try {
              builder.mergeFrom(input, extensionRegistry);
            } catch (com.google.protobuf.InvalidProtocolBufferException e) {
              throw e.setUnfinishedMessage(builder.buildPartial());
            } catch (com.google.protobuf.UninitializedMessageException e) {
              throw e.asInvalidProtocolBufferException()
                  .setUnfinishedMessage(builder.buildPartial());
            } catch (java.io.IOException e) {
              throw new com.google.protobuf.InvalidProtocolBufferException(e)
                  .setUnfinishedMessage(builder.buildPartial());
            }
            return builder.buildPartial();
          }
        };

    public static com.google.protobuf.Parser<TtlConfigDelta> parser() {
      return PARSER;
    }

    @java.lang.Override
    public com.google.protobuf.Parser<TtlConfigDelta> getParserForType() {
      return PARSER;
    }

    @java.lang.Override
    public com.google.firestore.admin.v1.FieldOperationMetadata.TtlConfigDelta
        getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }
  }

  private int bitField0_;
  public static final int START_TIME_FIELD_NUMBER = 1;
  private com.google.protobuf.Timestamp startTime_;

  /**
   *
   *
   * <pre>
   * The time this operation started.
   * </pre>
   *
   * <code>.google.protobuf.Timestamp start_time = 1;</code>
   *
   * @return Whether the startTime field is set.
   */
  @java.lang.Override
  public boolean hasStartTime() {
    return ((bitField0_ & 0x00000001) != 0);
  }

  /**
   *
   *
   * <pre>
   * The time this operation started.
   * </pre>
   *
   * <code>.google.protobuf.Timestamp start_time = 1;</code>
   *
   * @return The startTime.
   */
  @java.lang.Override
  public com.google.protobuf.Timestamp getStartTime() {
    return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_;
  }

  /**
   *
   *
   * <pre>
   * The time this operation started.
   * </pre>
   *
   * <code>.google.protobuf.Timestamp start_time = 1;</code>
   */
  @java.lang.Override
  public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
    return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_;
  }

  public static final int END_TIME_FIELD_NUMBER = 2;
  private com.google.protobuf.Timestamp endTime_;

  /**
   *
   *
   * <pre>
   * The time this operation completed. Will be unset if operation still in
   * progress.
   * </pre>
   *
   * <code>.google.protobuf.Timestamp end_time = 2;</code>
   *
   * @return Whether the endTime field is set.
   */
  @java.lang.Override
  public boolean hasEndTime() {
    return ((bitField0_ & 0x00000002) != 0);
  }

  /**
   *
   *
   * <pre>
   * The time this operation completed. Will be unset if operation still in
   * progress.
   * </pre>
   *
   * <code>.google.protobuf.Timestamp end_time = 2;</code>
   *
   * @return The endTime.
   */
  @java.lang.Override
  public com.google.protobuf.Timestamp getEndTime() {
    return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
  }

  /**
   *
   *
   * <pre>
   * The time this operation completed. Will be unset if operation still in
   * progress.
   * </pre>
   *
   * <code>.google.protobuf.Timestamp end_time = 2;</code>
   */
  @java.lang.Override
  public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
    return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
  }

  public static final int FIELD_FIELD_NUMBER = 3;

  @SuppressWarnings("serial")
  private volatile java.lang.Object field_ = "";

  /**
   *
   *
   * <pre>
   * The field resource that this operation is acting on. For example:
   * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/fields/{field_path}`
   * </pre>
   *
   * <code>string field = 3;</code>
   *
   * @return The field.
   */
  @java.lang.Override
  public java.lang.String getField() {
    java.lang.Object ref = field_;
    if (ref instanceof java.lang.String) {
      return (java.lang.String) ref;
    } else {
      com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
      java.lang.String s = bs.toStringUtf8();
      field_ = s;
      return s;
    }
  }

  /**
   *
   *
   * <pre>
   * The field resource that this operation is acting on. For example:
   * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/fields/{field_path}`
   * </pre>
   *
   * <code>string field = 3;</code>
   *
   * @return The bytes for field.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString getFieldBytes() {
    java.lang.Object ref = field_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      field_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  public static final int INDEX_CONFIG_DELTAS_FIELD_NUMBER = 4;

  @SuppressWarnings("serial")
  private java.util.List<com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta>
      indexConfigDeltas_;

  /**
   *
   *
   * <pre>
   * A list of
   * [IndexConfigDelta][google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta],
   * which describe the intent of this operation.
   * </pre>
   *
   * <code>
   * repeated .google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta index_config_deltas = 4;
   * </code>
   */
  @java.lang.Override
  public java.util.List<com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta>
      getIndexConfigDeltasList() {
    return indexConfigDeltas_;
  }

  /**
   *
   *
   * <pre>
   * A list of
   * [IndexConfigDelta][google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta],
   * which describe the intent of this operation.
   * </pre>
   *
   * <code>
   * repeated .google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta index_config_deltas = 4;
   * </code>
   */
  @java.lang.Override
  public java.util.List<
          ? extends com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDeltaOrBuilder>
      getIndexConfigDeltasOrBuilderList() {
    return indexConfigDeltas_;
  }

  /**
   *
   *
   * <pre>
   * A list of
   * [IndexConfigDelta][google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta],
   * which describe the intent of this operation.
   * </pre>
   *
   * <code>
   * repeated .google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta index_config_deltas = 4;
   * </code>
   */
  @java.lang.Override
  public int getIndexConfigDeltasCount() {
    return indexConfigDeltas_.size();
  }

  /**
   *
   *
   * <pre>
   * A list of
   * [IndexConfigDelta][google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta],
   * which describe the intent of this operation.
   * </pre>
   *
   * <code>
   * repeated .google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta index_config_deltas = 4;
   * </code>
   */
  @java.lang.Override
  public com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta getIndexConfigDeltas(
      int index) {
    return indexConfigDeltas_.get(index);
  }

  /**
   *
   *
   * <pre>
   * A list of
   * [IndexConfigDelta][google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta],
   * which describe the intent of this operation.
   * </pre>
   *
   * <code>
   * repeated .google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta index_config_deltas = 4;
   * </code>
   */
  @java.lang.Override
  public com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDeltaOrBuilder
      getIndexConfigDeltasOrBuilder(int index) {
    return indexConfigDeltas_.get(index);
  }

  public static final int STATE_FIELD_NUMBER = 5;
  private int state_ = 0;

  /**
   *
   *
   * <pre>
   * The state of the operation.
   * </pre>
   *
   * <code>.google.firestore.admin.v1.OperationState state = 5;</code>
   *
   * @return The enum numeric value on the wire for state.
   */
  @java.lang.Override
  public int getStateValue() {
    return state_;
  }

  /**
   *
   *
   * <pre>
   * The state of the operation.
   * </pre>
   *
   * <code>.google.firestore.admin.v1.OperationState state = 5;</code>
   *
   * @return The state.
   */
  @java.lang.Override
  public com.google.firestore.admin.v1.OperationState getState() {
    com.google.firestore.admin.v1.OperationState result =
        com.google.firestore.admin.v1.OperationState.forNumber(state_);
    return result == null ? com.google.firestore.admin.v1.OperationState.UNRECOGNIZED : result;
  }

  public static final int PROGRESS_DOCUMENTS_FIELD_NUMBER = 6;
  private com.google.firestore.admin.v1.Progress progressDocuments_;

  /**
   *
   *
   * <pre>
   * The progress, in documents, of this operation.
   * </pre>
   *
   * <code>.google.firestore.admin.v1.Progress progress_documents = 6;</code>
   *
   * @return Whether the progressDocuments field is set.
   */
  @java.lang.Override
  public boolean hasProgressDocuments() {
    return ((bitField0_ & 0x00000004) != 0);
  }

  /**
   *
   *
   * <pre>
   * The progress, in documents, of this operation.
   * </pre>
   *
   * <code>.google.firestore.admin.v1.Progress progress_documents = 6;</code>
   *
   * @return The progressDocuments.
   */
  @java.lang.Override
  public com.google.firestore.admin.v1.Progress getProgressDocuments() {
    return progressDocuments_ == null
        ? com.google.firestore.admin.v1.Progress.getDefaultInstance()
        : progressDocuments_;
  }

  /**
   *
   *
   * <pre>
   * The progress, in documents, of this operation.
   * </pre>
   *
   * <code>.google.firestore.admin.v1.Progress progress_documents = 6;</code>
   */
  @java.lang.Override
  public com.google.firestore.admin.v1.ProgressOrBuilder getProgressDocumentsOrBuilder() {
    return progressDocuments_ == null
        ? com.google.firestore.admin.v1.Progress.getDefaultInstance()
        : progressDocuments_;
  }

  public static final int PROGRESS_BYTES_FIELD_NUMBER = 7;
  private com.google.firestore.admin.v1.Progress progressBytes_;

  /**
   *
   *
   * <pre>
   * The progress, in bytes, of this operation.
   * </pre>
   *
   * <code>.google.firestore.admin.v1.Progress progress_bytes = 7;</code>
   *
   * @return Whether the progressBytes field is set.
   */
  @java.lang.Override
  public boolean hasProgressBytes() {
    return ((bitField0_ & 0x00000008) != 0);
  }

  /**
   *
   *
   * <pre>
   * The progress, in bytes, of this operation.
   * </pre>
   *
   * <code>.google.firestore.admin.v1.Progress progress_bytes = 7;</code>
   *
   * @return The progressBytes.
   */
  @java.lang.Override
  public com.google.firestore.admin.v1.Progress getProgressBytes() {
    return progressBytes_ == null
        ? com.google.firestore.admin.v1.Progress.getDefaultInstance()
        : progressBytes_;
  }

  /**
   *
   *
   * <pre>
   * The progress, in bytes, of this operation.
   * </pre>
   *
   * <code>.google.firestore.admin.v1.Progress progress_bytes = 7;</code>
   */
  @java.lang.Override
  public com.google.firestore.admin.v1.ProgressOrBuilder getProgressBytesOrBuilder() {
    return progressBytes_ == null
        ? com.google.firestore.admin.v1.Progress.getDefaultInstance()
        : progressBytes_;
  }

  public static final int TTL_CONFIG_DELTA_FIELD_NUMBER = 8;
  private com.google.firestore.admin.v1.FieldOperationMetadata.TtlConfigDelta ttlConfigDelta_;

  /**
   *
   *
   * <pre>
   * Describes the deltas of TTL configuration.
   * </pre>
   *
   * <code>.google.firestore.admin.v1.FieldOperationMetadata.TtlConfigDelta ttl_config_delta = 8;
   * </code>
   *
   * @return Whether the ttlConfigDelta field is set.
   */
  @java.lang.Override
  public boolean hasTtlConfigDelta() {
    return ((bitField0_ & 0x00000010) != 0);
  }

  /**
   *
   *
   * <pre>
   * Describes the deltas of TTL configuration.
   * </pre>
   *
   * <code>.google.firestore.admin.v1.FieldOperationMetadata.TtlConfigDelta ttl_config_delta = 8;
   * </code>
   *
   * @return The ttlConfigDelta.
   */
  @java.lang.Override
  public com.google.firestore.admin.v1.FieldOperationMetadata.TtlConfigDelta getTtlConfigDelta() {
    return ttlConfigDelta_ == null
        ? com.google.firestore.admin.v1.FieldOperationMetadata.TtlConfigDelta.getDefaultInstance()
        : ttlConfigDelta_;
  }

  /**
   *
   *
   * <pre>
   * Describes the deltas of TTL configuration.
   * </pre>
   *
   * <code>.google.firestore.admin.v1.FieldOperationMetadata.TtlConfigDelta ttl_config_delta = 8;
   * </code>
   */
  @java.lang.Override
  public com.google.firestore.admin.v1.FieldOperationMetadata.TtlConfigDeltaOrBuilder
      getTtlConfigDeltaOrBuilder() {
    return ttlConfigDelta_ == null
        ? com.google.firestore.admin.v1.FieldOperationMetadata.TtlConfigDelta.getDefaultInstance()
        : ttlConfigDelta_;
  }

  private byte memoizedIsInitialized = -1;

  @java.lang.Override
  public final boolean isInitialized() {
    byte isInitialized = memoizedIsInitialized;
    if (isInitialized == 1) return true;
    if (isInitialized == 0) return false;

    memoizedIsInitialized = 1;
    return true;
  }

  @java.lang.Override
  public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
    if (((bitField0_ & 0x00000001) != 0)) {
      output.writeMessage(1, getStartTime());
    }
    if (((bitField0_ & 0x00000002) != 0)) {
      output.writeMessage(2, getEndTime());
    }
    if (!com.google.protobuf.GeneratedMessage.isStringEmpty(field_)) {
      com.google.protobuf.GeneratedMessage.writeString(output, 3, field_);
    }
    for (int i = 0; i < indexConfigDeltas_.size(); i++) {
      output.writeMessage(4, indexConfigDeltas_.get(i));
    }
    if (state_
        != com.google.firestore.admin.v1.OperationState.OPERATION_STATE_UNSPECIFIED.getNumber()) {
      output.writeEnum(5, state_);
    }
    if (((bitField0_ & 0x00000004) != 0)) {
      output.writeMessage(6, getProgressDocuments());
    }
    if (((bitField0_ & 0x00000008) != 0)) {
      output.writeMessage(7, getProgressBytes());
    }
    if (((bitField0_ & 0x00000010) != 0)) {
      output.writeMessage(8, getTtlConfigDelta());
    }
    getUnknownFields().writeTo(output);
  }

  @java.lang.Override
  public int getSerializedSize() {
    int size = memoizedSize;
    if (size != -1) return size;

    size = 0;
    if (((bitField0_ & 0x00000001) != 0)) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(1, getStartTime());
    }
    if (((bitField0_ & 0x00000002) != 0)) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getEndTime());
    }
    if (!com.google.protobuf.GeneratedMessage.isStringEmpty(field_)) {
      size += com.google.protobuf.GeneratedMessage.computeStringSize(3, field_);
    }
    for (int i = 0; i < indexConfigDeltas_.size(); i++) {
      size +=
          com.google.protobuf.CodedOutputStream.computeMessageSize(4, indexConfigDeltas_.get(i));
    }
    if (state_
        != com.google.firestore.admin.v1.OperationState.OPERATION_STATE_UNSPECIFIED.getNumber()) {
      size += com.google.protobuf.CodedOutputStream.computeEnumSize(5, state_);
    }
    if (((bitField0_ & 0x00000004) != 0)) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(6, getProgressDocuments());
    }
    if (((bitField0_ & 0x00000008) != 0)) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(7, getProgressBytes());
    }
    if (((bitField0_ & 0x00000010) != 0)) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(8, getTtlConfigDelta());
    }
    size += getUnknownFields().getSerializedSize();
    memoizedSize = size;
    return size;
  }

  @java.lang.Override
  public boolean equals(final java.lang.Object obj) {
    if (obj == this) {
      return true;
    }
    if (!(obj instanceof com.google.firestore.admin.v1.FieldOperationMetadata)) {
      return super.equals(obj);
    }
    com.google.firestore.admin.v1.FieldOperationMetadata other =
        (com.google.firestore.admin.v1.FieldOperationMetadata) obj;

    if (hasStartTime() != other.hasStartTime()) return false;
    if (hasStartTime()) {
      if (!getStartTime().equals(other.getStartTime())) return false;
    }
    if (hasEndTime() != other.hasEndTime()) return false;
    if (hasEndTime()) {
      if (!getEndTime().equals(other.getEndTime())) return false;
    }
    if (!getField().equals(other.getField())) return false;
    if (!getIndexConfigDeltasList().equals(other.getIndexConfigDeltasList())) return false;
    if (state_ != other.state_) return false;
    if (hasProgressDocuments() != other.hasProgressDocuments()) return false;
    if (hasProgressDocuments()) {
      if (!getProgressDocuments().equals(other.getProgressDocuments())) return false;
    }
    if (hasProgressBytes() != other.hasProgressBytes()) return false;
    if (hasProgressBytes()) {
      if (!getProgressBytes().equals(other.getProgressBytes())) return false;
    }
    if (hasTtlConfigDelta() != other.hasTtlConfigDelta()) return false;
    if (hasTtlConfigDelta()) {
      if (!getTtlConfigDelta().equals(other.getTtlConfigDelta())) return false;
    }
    if (!getUnknownFields().equals(other.getUnknownFields())) return false;
    return true;
  }

  @java.lang.Override
  public int hashCode() {
    if (memoizedHashCode != 0) {
      return memoizedHashCode;
    }
    int hash = 41;
    hash = (19 * hash) + getDescriptor().hashCode();
    if (hasStartTime()) {
      hash = (37 * hash) + START_TIME_FIELD_NUMBER;
      hash = (53 * hash) + getStartTime().hashCode();
    }
    if (hasEndTime()) {
      hash = (37 * hash) + END_TIME_FIELD_NUMBER;
      hash = (53 * hash) + getEndTime().hashCode();
    }
    hash = (37 * hash) + FIELD_FIELD_NUMBER;
    hash = (53 * hash) + getField().hashCode();
    if (getIndexConfigDeltasCount() > 0) {
      hash = (37 * hash) + INDEX_CONFIG_DELTAS_FIELD_NUMBER;
      hash = (53 * hash) + getIndexConfigDeltasList().hashCode();
    }
    hash = (37 * hash) + STATE_FIELD_NUMBER;
    hash = (53 * hash) + state_;
    if (hasProgressDocuments()) {
      hash = (37 * hash) + PROGRESS_DOCUMENTS_FIELD_NUMBER;
      hash = (53 * hash) + getProgressDocuments().hashCode();
    }
    if (hasProgressBytes()) {
      hash = (37 * hash) + PROGRESS_BYTES_FIELD_NUMBER;
      hash = (53 * hash) + getProgressBytes().hashCode();
    }
    if (hasTtlConfigDelta()) {
      hash = (37 * hash) + TTL_CONFIG_DELTA_FIELD_NUMBER;
      hash = (53 * hash) + getTtlConfigDelta().hashCode();
    }
    hash = (29 * hash) + getUnknownFields().hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static com.google.firestore.admin.v1.FieldOperationMetadata parseFrom(
      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }

  public static com.google.firestore.admin.v1.FieldOperationMetadata parseFrom(
      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }

  public static com.google.firestore.admin.v1.FieldOperationMetadata parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }

  public static com.google.firestore.admin.v1.FieldOperationMetadata parseFrom(
      com.google.protobuf.ByteString data,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }

  public static com.google.firestore.admin.v1.FieldOperationMetadata parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }

  public static com.google.firestore.admin.v1.FieldOperationMetadata parseFrom(
      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }

  public static com.google.firestore.admin.v1.FieldOperationMetadata parseFrom(
      java.io.InputStream input) throws java.io.IOException {
    return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
  }

  public static com.google.firestore.admin.v1.FieldOperationMetadata parseFrom(
      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessage.parseWithIOException(
        PARSER, input, extensionRegistry);
  }

  public static com.google.firestore.admin.v1.FieldOperationMetadata parseDelimitedFrom(
      java.io.InputStream input) throws java.io.IOException {
    return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input);
  }

  public static com.google.firestore.admin.v1.FieldOperationMetadata parseDelimitedFrom(
      java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(
        PARSER, input, extensionRegistry);
  }

  public static com.google.firestore.admin.v1.FieldOperationMetadata parseFrom(
      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
    return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
  }

  public static com.google.firestore.admin.v1.FieldOperationMetadata parseFrom(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws java.io.IOException {
    return com.google.protobuf.GeneratedMessage.parseWithIOException(
        PARSER, input, extensionRegistry);
  }

  @java.lang.Override
  public Builder newBuilderForType() {
    return newBuilder();
  }

  public static Builder newBuilder() {
    return DEFAULT_INSTANCE.toBuilder();
  }

  public static Builder newBuilder(com.google.firestore.admin.v1.FieldOperationMetadata prototype) {
    return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
  }

  @java.lang.Override
  public Builder toBuilder() {
    return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this);
  }

  @java.lang.Override
  protected Builder newBuilderForType(com.google.protobuf.GeneratedMessage.BuilderParent parent) {
    Builder builder = new Builder(parent);
    return builder;
  }

  /**
   *
   *
   * <pre>
   * Metadata for [google.longrunning.Operation][google.longrunning.Operation]
   * results from
   * [FirestoreAdmin.UpdateField][google.firestore.admin.v1.FirestoreAdmin.UpdateField].
   * </pre>
   *
   * Protobuf type {@code google.firestore.admin.v1.FieldOperationMetadata}
   */
  public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder>
      implements
      // @@protoc_insertion_point(builder_implements:google.firestore.admin.v1.FieldOperationMetadata)
      com.google.firestore.admin.v1.FieldOperationMetadataOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      return com.google.firestore.admin.v1.OperationProto
          .internal_static_google_firestore_admin_v1_FieldOperationMetadata_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.google.firestore.admin.v1.OperationProto
          .internal_static_google_firestore_admin_v1_FieldOperationMetadata_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.google.firestore.admin.v1.FieldOperationMetadata.class,
              com.google.firestore.admin.v1.FieldOperationMetadata.Builder.class);
    }

    // Construct using com.google.firestore.admin.v1.FieldOperationMetadata.newBuilder()
    private Builder() {
      maybeForceBuilderInitialization();
    }

    private Builder(com.google.protobuf.GeneratedMessage.BuilderParent parent) {
      super(parent);
      maybeForceBuilderInitialization();
    }

    private void maybeForceBuilderInitialization() {
      if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
        internalGetStartTimeFieldBuilder();
        internalGetEndTimeFieldBuilder();
        internalGetIndexConfigDeltasFieldBuilder();
        internalGetProgressDocumentsFieldBuilder();
        internalGetProgressBytesFieldBuilder();
        internalGetTtlConfigDeltaFieldBuilder();
      }
    }

    @java.lang.Override
    public Builder clear() {
      super.clear();
      bitField0_ = 0;
      startTime_ = null;
      if (startTimeBuilder_ != null) {
        startTimeBuilder_.dispose();
        startTimeBuilder_ = null;
      }
      endTime_ = null;
      if (endTimeBuilder_ != null) {
        endTimeBuilder_.dispose();
        endTimeBuilder_ = null;
      }
      field_ = "";
      if (indexConfigDeltasBuilder_ == null) {
        indexConfigDeltas_ = java.util.Collections.emptyList();
      } else {
        indexConfigDeltas_ = null;
        indexConfigDeltasBuilder_.clear();
      }
      bitField0_ = (bitField0_ & ~0x00000008);
      state_ = 0;
      progressDocuments_ = null;
      if (progressDocumentsBuilder_ != null) {
        progressDocumentsBuilder_.dispose();
        progressDocumentsBuilder_ = null;
      }
      progressBytes_ = null;
      if (progressBytesBuilder_ != null) {
        progressBytesBuilder_.dispose();
        progressBytesBuilder_ = null;
      }
      ttlConfigDelta_ = null;
      if (ttlConfigDeltaBuilder_ != null) {
        ttlConfigDeltaBuilder_.dispose();
        ttlConfigDeltaBuilder_ = null;
      }
      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
      return com.google.firestore.admin.v1.OperationProto
          .internal_static_google_firestore_admin_v1_FieldOperationMetadata_descriptor;
    }

    @java.lang.Override
    public com.google.firestore.admin.v1.FieldOperationMetadata getDefaultInstanceForType() {
      return com.google.firestore.admin.v1.FieldOperationMetadata.getDefaultInstance();
    }

    @java.lang.Override
    public com.google.firestore.admin.v1.FieldOperationMetadata build() {
      com.google.firestore.admin.v1.FieldOperationMetadata result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    @java.lang.Override
    public com.google.firestore.admin.v1.FieldOperationMetadata buildPartial() {
      com.google.firestore.admin.v1.FieldOperationMetadata result =
          new com.google.firestore.admin.v1.FieldOperationMetadata(this);
      buildPartialRepeatedFields(result);
      if (bitField0_ != 0) {
        buildPartial0(result);
      }
      onBuilt();
      return result;
    }

    private void buildPartialRepeatedFields(
        com.google.firestore.admin.v1.FieldOperationMetadata result) {
      if (indexConfigDeltasBuilder_ == null) {
        if (((bitField0_ & 0x00000008) != 0)) {
          indexConfigDeltas_ = java.util.Collections.unmodifiableList(indexConfigDeltas_);
          bitField0_ = (bitField0_ & ~0x00000008);
        }
        result.indexConfigDeltas_ = indexConfigDeltas_;
      } else {
        result.indexConfigDeltas_ = indexConfigDeltasBuilder_.build();
      }
    }

    private void buildPartial0(com.google.firestore.admin.v1.FieldOperationMetadata result) {
      int from_bitField0_ = bitField0_;
      int to_bitField0_ = 0;
      if (((from_bitField0_ & 0x00000001) != 0)) {
        result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build();
        to_bitField0_ |= 0x00000001;
      }
      if (((from_bitField0_ & 0x00000002) != 0)) {
        result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build();
        to_bitField0_ |= 0x00000002;
      }
      if (((from_bitField0_ & 0x00000004) != 0)) {
        result.field_ = field_;
      }
      if (((from_bitField0_ & 0x00000010) != 0)) {
        result.state_ = state_;
      }
      if (((from_bitField0_ & 0x00000020) != 0)) {
        result.progressDocuments_ =
            progressDocumentsBuilder_ == null
                ? progressDocuments_
                : progressDocumentsBuilder_.build();
        to_bitField0_ |= 0x00000004;
      }
      if (((from_bitField0_ & 0x00000040) != 0)) {
        result.progressBytes_ =
            progressBytesBuilder_ == null ? progressBytes_ : progressBytesBuilder_.build();
        to_bitField0_ |= 0x00000008;
      }
      if (((from_bitField0_ & 0x00000080) != 0)) {
        result.ttlConfigDelta_ =
            ttlConfigDeltaBuilder_ == null ? ttlConfigDelta_ : ttlConfigDeltaBuilder_.build();
        to_bitField0_ |= 0x00000010;
      }
      result.bitField0_ |= to_bitField0_;
    }

    @java.lang.Override
    public Builder mergeFrom(com.google.protobuf.Message other) {
      if (other instanceof com.google.firestore.admin.v1.FieldOperationMetadata) {
        return mergeFrom((com.google.firestore.admin.v1.FieldOperationMetadata) other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.google.firestore.admin.v1.FieldOperationMetadata other) {
      if (other == com.google.firestore.admin.v1.FieldOperationMetadata.getDefaultInstance())
        return this;
      if (other.hasStartTime()) {
        mergeStartTime(other.getStartTime());
      }
      if (other.hasEndTime()) {
        mergeEndTime(other.getEndTime());
      }
      if (!other.getField().isEmpty()) {
        field_ = other.field_;
        bitField0_ |= 0x00000004;
        onChanged();
      }
      if (indexConfigDeltasBuilder_ == null) {
        if (!other.indexConfigDeltas_.isEmpty()) {
          if (indexConfigDeltas_.isEmpty()) {
            indexConfigDeltas_ = other.indexConfigDeltas_;
            bitField0_ = (bitField0_ & ~0x00000008);
          } else {
            ensureIndexConfigDeltasIsMutable();
            indexConfigDeltas_.addAll(other.indexConfigDeltas_);
          }
          onChanged();
        }
      } else {
        if (!other.indexConfigDeltas_.isEmpty()) {
          if (indexConfigDeltasBuilder_.isEmpty()) {
            indexConfigDeltasBuilder_.dispose();
            indexConfigDeltasBuilder_ = null;
            indexConfigDeltas_ = other.indexConfigDeltas_;
            bitField0_ = (bitField0_ & ~0x00000008);
            indexConfigDeltasBuilder_ =
                com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders
                    ? internalGetIndexConfigDeltasFieldBuilder()
                    : null;
          } else {
            indexConfigDeltasBuilder_.addAllMessages(other.indexConfigDeltas_);
          }
        }
      }
      if (other.state_ != 0) {
        setStateValue(other.getStateValue());
      }
      if (other.hasProgressDocuments()) {
        mergeProgressDocuments(other.getProgressDocuments());
      }
      if (other.hasProgressBytes()) {
        mergeProgressBytes(other.getProgressBytes());
      }
      if (other.hasTtlConfigDelta()) {
        mergeTtlConfigDelta(other.getTtlConfigDelta());
      }
      this.mergeUnknownFields(other.getUnknownFields());
      onChanged();
      return this;
    }

    @java.lang.Override
    public final boolean isInitialized() {
      return true;
    }

    @java.lang.Override
    public Builder mergeFrom(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws java.io.IOException {
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      try {
        boolean done = false;
        while (!done) {
          int tag = input.readTag();
          switch (tag) {
            case 0:
              done = true;
              break;
            case 10:
              {
                input.readMessage(
                    internalGetStartTimeFieldBuilder().getBuilder(), extensionRegistry);
                bitField0_ |= 0x00000001;
                break;
              } // case 10
            case 18:
              {
                input.readMessage(internalGetEndTimeFieldBuilder().getBuilder(), extensionRegistry);
                bitField0_ |= 0x00000002;
                break;
              } // case 18
            case 26:
              {
                field_ = input.readStringRequireUtf8();
                bitField0_ |= 0x00000004;
                break;
              } // case 26
            case 34:
              {
                com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta m =
                    input.readMessage(
                        com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta
                            .parser(),
                        extensionRegistry);
                if (indexConfigDeltasBuilder_ == null) {
                  ensureIndexConfigDeltasIsMutable();
                  indexConfigDeltas_.add(m);
                } else {
                  indexConfigDeltasBuilder_.addMessage(m);
                }
                break;
              } // case 34
            case 40:
              {
                state_ = input.readEnum();
                bitField0_ |= 0x00000010;
                break;
              } // case 40
            case 50:
              {
                input.readMessage(
                    internalGetProgressDocumentsFieldBuilder().getBuilder(), extensionRegistry);
                bitField0_ |= 0x00000020;
                break;
              } // case 50
            case 58:
              {
                input.readMessage(
                    internalGetProgressBytesFieldBuilder().getBuilder(), extensionRegistry);
                bitField0_ |= 0x00000040;
                break;
              } // case 58
            case 66:
              {
                input.readMessage(
                    internalGetTtlConfigDeltaFieldBuilder().getBuilder(), extensionRegistry);
                bitField0_ |= 0x00000080;
                break;
              } // case 66
            default:
              {
                if (!super.parseUnknownField(input, extensionRegistry, tag)) {
                  done = true; // was an endgroup tag
                }
                break;
              } // default:
          } // switch (tag)
        } // while (!done)
      } catch (com.google.protobuf.InvalidProtocolBufferException e) {
        throw e.unwrapIOException();
      } finally {
        onChanged();
      } // finally
      return this;
    }

    private int bitField0_;

    private com.google.protobuf.Timestamp startTime_;
    private com.google.protobuf.SingleFieldBuilder<
            com.google.protobuf.Timestamp,
            com.google.protobuf.Timestamp.Builder,
            com.google.protobuf.TimestampOrBuilder>
        startTimeBuilder_;

    /**
     *
     *
     * <pre>
     * The time this operation started.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp start_time = 1;</code>
     *
     * @return Whether the startTime field is set.
     */
    public boolean hasStartTime() {
      return ((bitField0_ & 0x00000001) != 0);
    }

    /**
     *
     *
     * <pre>
     * The time this operation started.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp start_time = 1;</code>
     *
     * @return The startTime.
     */
    public com.google.protobuf.Timestamp getStartTime() {
      if (startTimeBuilder_ == null) {
        return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_;
      } else {
        return startTimeBuilder_.getMessage();
      }
    }

    /**
     *
     *
     * <pre>
     * The time this operation started.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp start_time = 1;</code>
     */
    public Builder setStartTime(com.google.protobuf.Timestamp value) {
      if (startTimeBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        startTime_ = value;
      } else {
        startTimeBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }

    /**
     *
     *
     * <pre>
     * The time this operation started.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp start_time = 1;</code>
     */
    public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) {
      if (startTimeBuilder_ == null) {
        startTime_ = builderForValue.build();
      } else {
        startTimeBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }

    /**
     *
     *
     * <pre>
     * The time this operation started.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp start_time = 1;</code>
     */
    public Builder mergeStartTime(com.google.protobuf.Timestamp value) {
      if (startTimeBuilder_ == null) {
        if (((bitField0_ & 0x00000001) != 0)
            && startTime_ != null
            && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
          getStartTimeBuilder().mergeFrom(value);
        } else {
          startTime_ = value;
        }
      } else {
        startTimeBuilder_.mergeFrom(value);
      }
      if (startTime_ != null) {
        bitField0_ |= 0x00000001;
        onChanged();
      }
      return this;
    }

    /**
     *
     *
     * <pre>
     * The time this operation started.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp start_time = 1;</code>
     */
    public Builder clearStartTime() {
      bitField0_ = (bitField0_ & ~0x00000001);
      startTime_ = null;
      if (startTimeBuilder_ != null) {
        startTimeBuilder_.dispose();
        startTimeBuilder_ = null;
      }
      onChanged();
      return this;
    }

    /**
     *
     *
     * <pre>
     * The time this operation started.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp start_time = 1;</code>
     */
    public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() {
      bitField0_ |= 0x00000001;
      onChanged();
      return internalGetStartTimeFieldBuilder().getBuilder();
    }

    /**
     *
     *
     * <pre>
     * The time this operation started.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp start_time = 1;</code>
     */
    public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() {
      if (startTimeBuilder_ != null) {
        return startTimeBuilder_.getMessageOrBuilder();
      } else {
        return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_;
      }
    }

    /**
     *
     *
     * <pre>
     * The time this operation started.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp start_time = 1;</code>
     */
    private com.google.protobuf.SingleFieldBuilder<
            com.google.protobuf.Timestamp,
            com.google.protobuf.Timestamp.Builder,
            com.google.protobuf.TimestampOrBuilder>
        internalGetStartTimeFieldBuilder() {
      if (startTimeBuilder_ == null) {
        startTimeBuilder_ =
            new com.google.protobuf.SingleFieldBuilder<
                com.google.protobuf.Timestamp,
                com.google.protobuf.Timestamp.Builder,
                com.google.protobuf.TimestampOrBuilder>(
                getStartTime(), getParentForChildren(), isClean());
        startTime_ = null;
      }
      return startTimeBuilder_;
    }

    private com.google.protobuf.Timestamp endTime_;
    private com.google.protobuf.SingleFieldBuilder<
            com.google.protobuf.Timestamp,
            com.google.protobuf.Timestamp.Builder,
            com.google.protobuf.TimestampOrBuilder>
        endTimeBuilder_;

    /**
     *
     *
     * <pre>
     * The time this operation completed. Will be unset if operation still in
     * progress.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp end_time = 2;</code>
     *
     * @return Whether the endTime field is set.
     */
    public boolean hasEndTime() {
      return ((bitField0_ & 0x00000002) != 0);
    }

    /**
     *
     *
     * <pre>
     * The time this operation completed. Will be unset if operation still in
     * progress.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp end_time = 2;</code>
     *
     * @return The endTime.
     */
    public com.google.protobuf.Timestamp getEndTime() {
      if (endTimeBuilder_ == null) {
        return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
      } else {
        return endTimeBuilder_.getMessage();
      }
    }

    /**
     *
     *
     * <pre>
     * The time this operation completed. Will be unset if operation still in
     * progress.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp end_time = 2;</code>
     */
    public Builder setEndTime(com.google.protobuf.Timestamp value) {
      if (endTimeBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        endTime_ = value;
      } else {
        endTimeBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000002;
      onChanged();
      return this;
    }

    /**
     *
     *
     * <pre>
     * The time this operation completed. Will be unset if operation still in
     * progress.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp end_time = 2;</code>
     */
    public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) {
      if (endTimeBuilder_ == null) {
        endTime_ = builderForValue.build();
      } else {
        endTimeBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000002;
      onChanged();
      return this;
    }

    /**
     *
     *
     * <pre>
     * The time this operation completed. Will be unset if operation still in
     * progress.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp end_time = 2;</code>
     */
    public Builder mergeEndTime(com.google.protobuf.Timestamp value) {
      if (endTimeBuilder_ == null) {
        if (((bitField0_ & 0x00000002) != 0)
            && endTime_ != null
            && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
          getEndTimeBuilder().mergeFrom(value);
        } else {
          endTime_ = value;
        }
      } else {
        endTimeBuilder_.mergeFrom(value);
      }
      if (endTime_ != null) {
        bitField0_ |= 0x00000002;
        onChanged();
      }
      return this;
    }

    /**
     *
     *
     * <pre>
     * The time this operation completed. Will be unset if operation still in
     * progress.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp end_time = 2;</code>
     */
    public Builder clearEndTime() {
      bitField0_ = (bitField0_ & ~0x00000002);
      endTime_ = null;
      if (endTimeBuilder_ != null) {
        endTimeBuilder_.dispose();
        endTimeBuilder_ = null;
      }
      onChanged();
      return this;
    }

    /**
     *
     *
     * <pre>
     * The time this operation completed. Will be unset if operation still in
     * progress.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp end_time = 2;</code>
     */
    public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() {
      bitField0_ |= 0x00000002;
      onChanged();
      return internalGetEndTimeFieldBuilder().getBuilder();
    }

    /**
     *
     *
     * <pre>
     * The time this operation completed. Will be unset if operation still in
     * progress.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp end_time = 2;</code>
     */
    public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() {
      if (endTimeBuilder_ != null) {
        return endTimeBuilder_.getMessageOrBuilder();
      } else {
        return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_;
      }
    }

    /**
     *
     *
     * <pre>
     * The time this operation completed. Will be unset if operation still in
     * progress.
     * </pre>
     *
     * <code>.google.protobuf.Timestamp end_time = 2;</code>
     */
    private com.google.protobuf.SingleFieldBuilder<
            com.google.protobuf.Timestamp,
            com.google.protobuf.Timestamp.Builder,
            com.google.protobuf.TimestampOrBuilder>
        internalGetEndTimeFieldBuilder() {
      if (endTimeBuilder_ == null) {
        endTimeBuilder_ =
            new com.google.protobuf.SingleFieldBuilder<
                com.google.protobuf.Timestamp,
                com.google.protobuf.Timestamp.Builder,
                com.google.protobuf.TimestampOrBuilder>(
                getEndTime(), getParentForChildren(), isClean());
        endTime_ = null;
      }
      return endTimeBuilder_;
    }

    private java.lang.Object field_ = "";

    /**
     *
     *
     * <pre>
     * The field resource that this operation is acting on. For example:
     * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/fields/{field_path}`
     * </pre>
     *
     * <code>string field = 3;</code>
     *
     * @return The field.
     */
    public java.lang.String getField() {
      java.lang.Object ref = field_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        field_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }

    /**
     *
     *
     * <pre>
     * The field resource that this operation is acting on. For example:
     * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/fields/{field_path}`
     * </pre>
     *
     * <code>string field = 3;</code>
     *
     * @return The bytes for field.
     */
    public com.google.protobuf.ByteString getFieldBytes() {
      java.lang.Object ref = field_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        field_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    /**
     *
     *
     * <pre>
     * The field resource that this operation is acting on. For example:
     * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/fields/{field_path}`
     * </pre>
     *
     * <code>string field = 3;</code>
     *
     * @param value The field to set.
     * @return This builder for chaining.
     */
    public Builder setField(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      field_ = value;
      bitField0_ |= 0x00000004;
      onChanged();
      return this;
    }

    /**
     *
     *
     * <pre>
     * The field resource that this operation is acting on. For example:
     * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/fields/{field_path}`
     * </pre>
     *
     * <code>string field = 3;</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearField() {
      field_ = getDefaultInstance().getField();
      bitField0_ = (bitField0_ & ~0x00000004);
      onChanged();
      return this;
    }

    /**
     *
     *
     * <pre>
     * The field resource that this operation is acting on. For example:
     * `projects/{project_id}/databases/{database_id}/collectionGroups/{collection_id}/fields/{field_path}`
     * </pre>
     *
     * <code>string field = 3;</code>
     *
     * @param value The bytes for field to set.
     * @return This builder for chaining.
     */
    public Builder setFieldBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);
      field_ = value;
      bitField0_ |= 0x00000004;
      onChanged();
      return this;
    }

    private java.util.List<com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta>
        indexConfigDeltas_ = java.util.Collections.emptyList();

    private void ensureIndexConfigDeltasIsMutable() {
      if (!((bitField0_ & 0x00000008) != 0)) {
        indexConfigDeltas_ =
            new java.util.ArrayList<
                com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta>(
                indexConfigDeltas_);
        bitField0_ |= 0x00000008;
      }
    }

    private com.google.protobuf.RepeatedFieldBuilder<
            com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta,
            com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta.Builder,
            com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDeltaOrBuilder>
        indexConfigDeltasBuilder_;

    /**
     *
     *
     * <pre>
     * A list of
     * [IndexConfigDelta][google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta],
     * which describe the intent of this operation.
     * </pre>
     *
     * <code>
     * repeated .google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta index_config_deltas = 4;
     * </code>
     */
    public java.util.List<com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta>
        getIndexConfigDeltasList() {
      if (indexConfigDeltasBuilder_ == null) {
        return java.util.Collections.unmodifiableList(indexConfigDeltas_);
      } else {
        return indexConfigDeltasBuilder_.getMessageList();
      }
    }

    /**
     *
     *
     * <pre>
     * A list of
     * [IndexConfigDelta][google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta],
     * which describe the intent of this operation.
     * </pre>
     *
     * <code>
     * repeated .google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta index_config_deltas = 4;
     * </code>
     */
    public int getIndexConfigDeltasCount() {
      if (indexConfigDeltasBuilder_ == null) {
        return indexConfigDeltas_.size();
      } else {
        return indexConfigDeltasBuilder_.getCount();
      }
    }

    /**
     *
     *
     * <pre>
     * A list of
     * [IndexConfigDelta][google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta],
     * which describe the intent of this operation.
     * </pre>
     *
     * <code>
     * repeated .google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta index_config_deltas = 4;
     * </code>
     */
    public com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta
        getIndexConfigDeltas(int index) {
      if (indexConfigDeltasBuilder_ == null) {
        return indexConfigDeltas_.get(index);
      } else {
        return indexConfigDeltasBuilder_.getMessage(index);
      }
    }

    /**
     *
     *
     * <pre>
     * A list of
     * [IndexConfigDelta][google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta],
     * which describe the intent of this operation.
     * </pre>
     *
     * <code>
     * repeated .google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta index_config_deltas = 4;
     * </code>
     */
    public Builder setIndexConfigDeltas(
        int index, com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta value) {
      if (indexConfigDeltasBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureIndexConfigDeltasIsMutable();
        indexConfigDeltas_.set(index, value);
        onChanged();
      } else {
        indexConfigDeltasBuilder_.setMessage(index, value);
      }
      return this;
    }

    /**
     *
     *
     * <pre>
     * A list of
     * [IndexConfigDelta][google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta],
     * which describe the intent of this operation.
     * </pre>
     *
     * <code>
     * repeated .google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta index_config_deltas = 4;
     * </code>
     */
    public Builder setIndexConfigDeltas(
        int index,
        com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta.Builder
            builderForValue) {
      if (indexConfigDeltasBuilder_ == null) {
        ensureIndexConfigDeltasIsMutable();
        indexConfigDeltas_.set(index, builderForValue.build());
        onChanged();
      } else {
        indexConfigDeltasBuilder_.setMessage(index, builderForValue.build());
      }
      return this;
    }

    /**
     *
     *
     * <pre>
     * A list of
     * [IndexConfigDelta][google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta],
     * which describe the intent of this operation.
     * </pre>
     *
     * <code>
     * repeated .google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta index_config_deltas = 4;
     * </code>
     */
    public Builder addIndexConfigDeltas(
        com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta value) {
      if (indexConfigDeltasBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureIndexConfigDeltasIsMutable();
        indexConfigDeltas_.add(value);
        onChanged();
      } else {
        indexConfigDeltasBuilder_.addMessage(value);
      }
      return this;
    }

    /**
     *
     *
     * <pre>
     * A list of
     * [IndexConfigDelta][google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta],
     * which describe the intent of this operation.
     * </pre>
     *
     * <code>
     * repeated .google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta index_config_deltas = 4;
     * </code>
     */
    public Builder addIndexConfigDeltas(
        int index, com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta value) {
      if (indexConfigDeltasBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ensureIndexConfigDeltasIsMutable();
        indexConfigDeltas_.add(index, value);
        onChanged();
      } else {
        indexConfigDeltasBuilder_.addMessage(index, value);
      }
      return this;
    }

    /**
     *
     *
     * <pre>
     * A list of
     * [IndexConfigDelta][google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta],
     * which describe the intent of this operation.
     * </pre>
     *
     * <code>
     * repeated .google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta index_config_deltas = 4;
     * </code>
     */
    public Builder addIndexConfigDeltas(
        com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta.Builder
            builderForValue) {
      if (indexConfigDeltasBuilder_ == null) {
        ensureIndexConfigDeltasIsMutable();
        indexConfigDeltas_.add(builderForValue.build());
        onChanged();
      } else {
        indexConfigDeltasBuilder_.addMessage(builderForValue.build());
      }
      return this;
    }

    /**
     *
     *
     * <pre>
     * A list of
     * [IndexConfigDelta][google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta],
     * which describe the intent of this operation.
     * </pre>
     *
     * <code>
     * repeated .google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta index_config_deltas = 4;
     * </code>
     */
    public Builder addIndexConfigDeltas(
        int index,
        com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta.Builder
            builderForValue) {
      if (indexConfigDeltasBuilder_ == null) {
        ensureIndexConfigDeltasIsMutable();
        indexConfigDeltas_.add(index, builderForValue.build());
        onChanged();
      } else {
        indexConfigDeltasBuilder_.addMessage(index, builderForValue.build());
      }
      return this;
    }

    /**
     *
     *
     * <pre>
     * A list of
     * [IndexConfigDelta][google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta],
     * which describe the intent of this operation.
     * </pre>
     *
     * <code>
     * repeated .google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta index_config_deltas = 4;
     * </code>
     */
    public Builder addAllIndexConfigDeltas(
        java.lang.Iterable<
                ? extends com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta>
            values) {
      if (indexConfigDeltasBuilder_ == null) {
        ensureIndexConfigDeltasIsMutable();
        com.google.protobuf.AbstractMessageLite.Builder.addAll(values, indexConfigDeltas_);
        onChanged();
      } else {
        indexConfigDeltasBuilder_.addAllMessages(values);
      }
      return this;
    }

    /**
     *
     *
     * <pre>
     * A list of
     * [IndexConfigDelta][google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta],
     * which describe the intent of this operation.
     * </pre>
     *
     * <code>
     * repeated .google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta index_config_deltas = 4;
     * </code>
     */
    public Builder clearIndexConfigDeltas() {
      if (indexConfigDeltasBuilder_ == null) {
        indexConfigDeltas_ = java.util.Collections.emptyList();
        bitField0_ = (bitField0_ & ~0x00000008);
        onChanged();
      } else {
        indexConfigDeltasBuilder_.clear();
      }
      return this;
    }

    /**
     *
     *
     * <pre>
     * A list of
     * [IndexConfigDelta][google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta],
     * which describe the intent of this operation.
     * </pre>
     *
     * <code>
     * repeated .google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta index_config_deltas = 4;
     * </code>
     */
    public Builder removeIndexConfigDeltas(int index) {
      if (indexConfigDeltasBuilder_ == null) {
        ensureIndexConfigDeltasIsMutable();
        indexConfigDeltas_.remove(index);
        onChanged();
      } else {
        indexConfigDeltasBuilder_.remove(index);
      }
      return this;
    }

    /**
     *
     *
     * <pre>
     * A list of
     * [IndexConfigDelta][google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta],
     * which describe the intent of this operation.
     * </pre>
     *
     * <code>
     * repeated .google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta index_config_deltas = 4;
     * </code>
     */
    public com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta.Builder
        getIndexConfigDeltasBuilder(int index) {
      return internalGetIndexConfigDeltasFieldBuilder().getBuilder(index);
    }

    /**
     *
     *
     * <pre>
     * A list of
     * [IndexConfigDelta][google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta],
     * which describe the intent of this operation.
     * </pre>
     *
     * <code>
     * repeated .google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta index_config_deltas = 4;
     * </code>
     */
    public com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDeltaOrBuilder
        getIndexConfigDeltasOrBuilder(int index) {
      if (indexConfigDeltasBuilder_ == null) {
        return indexConfigDeltas_.get(index);
      } else {
        return indexConfigDeltasBuilder_.getMessageOrBuilder(index);
      }
    }

    /**
     *
     *
     * <pre>
     * A list of
     * [IndexConfigDelta][google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta],
     * which describe the intent of this operation.
     * </pre>
     *
     * <code>
     * repeated .google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta index_config_deltas = 4;
     * </code>
     */
    public java.util.List<
            ? extends
                com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDeltaOrBuilder>
        getIndexConfigDeltasOrBuilderList() {
      if (indexConfigDeltasBuilder_ != null) {
        return indexConfigDeltasBuilder_.getMessageOrBuilderList();
      } else {
        return java.util.Collections.unmodifiableList(indexConfigDeltas_);
      }
    }

    /**
     *
     *
     * <pre>
     * A list of
     * [IndexConfigDelta][google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta],
     * which describe the intent of this operation.
     * </pre>
     *
     * <code>
     * repeated .google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta index_config_deltas = 4;
     * </code>
     */
    public com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta.Builder
        addIndexConfigDeltasBuilder() {
      return internalGetIndexConfigDeltasFieldBuilder()
          .addBuilder(
              com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta
                  .getDefaultInstance());
    }

    /**
     *
     *
     * <pre>
     * A list of
     * [IndexConfigDelta][google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta],
     * which describe the intent of this operation.
     * </pre>
     *
     * <code>
     * repeated .google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta index_config_deltas = 4;
     * </code>
     */
    public com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta.Builder
        addIndexConfigDeltasBuilder(int index) {
      return internalGetIndexConfigDeltasFieldBuilder()
          .addBuilder(
              index,
              com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta
                  .getDefaultInstance());
    }

    /**
     *
     *
     * <pre>
     * A list of
     * [IndexConfigDelta][google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta],
     * which describe the intent of this operation.
     * </pre>
     *
     * <code>
     * repeated .google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta index_config_deltas = 4;
     * </code>
     */
    public java.util.List<
            com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta.Builder>
        getIndexConfigDeltasBuilderList() {
      return internalGetIndexConfigDeltasFieldBuilder().getBuilderList();
    }

    private com.google.protobuf.RepeatedFieldBuilder<
            com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta,
            com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta.Builder,
            com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDeltaOrBuilder>
        internalGetIndexConfigDeltasFieldBuilder() {
      if (indexConfigDeltasBuilder_ == null) {
        indexConfigDeltasBuilder_ =
            new com.google.protobuf.RepeatedFieldBuilder<
                com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta,
                com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDelta.Builder,
                com.google.firestore.admin.v1.FieldOperationMetadata.IndexConfigDeltaOrBuilder>(
                indexConfigDeltas_,
                ((bitField0_ & 0x00000008) != 0),
                getParentForChildren(),
                isClean());
        indexConfigDeltas_ = null;
      }
      return indexConfigDeltasBuilder_;
    }

    private int state_ = 0;

    /**
     *
     *
     * <pre>
     * The state of the operation.
     * </pre>
     *
     * <code>.google.firestore.admin.v1.OperationState state = 5;</code>
     *
     * @return The enum numeric value on the wire for state.
     */
    @java.lang.Override
    public int getStateValue() {
      return state_;
    }

    /**
     *
     *
     * <pre>
     * The state of the operation.
     * </pre>
     *
     * <code>.google.firestore.admin.v1.OperationState state = 5;</code>
     *
     * @param value The enum numeric value on the wire for state to set.
     * @return This builder for chaining.
     */
    public Builder setStateValue(int value) {
      state_ = value;
      bitField0_ |= 0x00000010;
      onChanged();
      return this;
    }

    /**
     *
     *
     * <pre>
     * The state of the operation.
     * </pre>
     *
     * <code>.google.firestore.admin.v1.OperationState state = 5;</code>
     *
     * @return The state.
     */
    @java.lang.Override
    public com.google.firestore.admin.v1.OperationState getState() {
      com.google.firestore.admin.v1.OperationState result =
          com.google.firestore.admin.v1.OperationState.forNumber(state_);
      return result == null ? com.google.firestore.admin.v1.OperationState.UNRECOGNIZED : result;
    }

    /**
     *
     *
     * <pre>
     * The state of the operation.
     * </pre>
     *
     * <code>.google.firestore.admin.v1.OperationState state = 5;</code>
     *
     * @param value The state to set.
     * @return This builder for chaining.
     */
    public Builder setState(com.google.firestore.admin.v1.OperationState value) {
      if (value == null) {
        throw new NullPointerException();
      }
      bitField0_ |= 0x00000010;
      state_ = value.getNumber();
      onChanged();
      return this;
    }

    /**
     *
     *
     * <pre>
     * The state of the operation.
     * </pre>
     *
     * <code>.google.firestore.admin.v1.OperationState state = 5;</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearState() {
      bitField0_ = (bitField0_ & ~0x00000010);
      state_ = 0;
      onChanged();
      return this;
    }

    private com.google.firestore.admin.v1.Progress progressDocuments_;
    private com.google.protobuf.SingleFieldBuilder<
            com.google.firestore.admin.v1.Progress,
            com.google.firestore.admin.v1.Progress.Builder,
            com.google.firestore.admin.v1.ProgressOrBuilder>
        progressDocumentsBuilder_;

    /**
     *
     *
     * <pre>
     * The progress, in documents, of this operation.
     * </pre>
     *
     * <code>.google.firestore.admin.v1.Progress progress_documents = 6;</code>
     *
     * @return Whether the progressDocuments field is set.
     */
    public boolean hasProgressDocuments() {
      return ((bitField0_ & 0x00000020) != 0);
    }

    /**
     *
     *
     * <pre>
     * The progress, in documents, of this operation.
     * </pre>
     *
     * <code>.google.firestore.admin.v1.Progress progress_documents = 6;</code>
     *
     * @return The progressDocuments.
     */
    public com.google.firestore.admin.v1.Progress getProgressDocuments() {
      if (progressDocumentsBuilder_ == null) {
        return progressDocuments_ == null
            ? com.google.firestore.admin.v1.Progress.getDefaultInstance()
            : progressDocuments_;
      } else {
        return progressDocumentsBuilder_.getMessage();
      }
    }

    /**
     *
     *
     * <pre>
     * The progress, in documents, of this operation.
     * </pre>
     *
     * <code>.google.firestore.admin.v1.Progress progress_documents = 6;</code>
     */
    public Builder setProgressDocuments(com.google.firestore.admin.v1.Progress value) {
      if (progressDocumentsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        progressDocuments_ = value;
      } else {
        progressDocumentsBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000020;
      onChanged();
      return this;
    }

    /**
     *
     *
     * <pre>
     * The progress, in documents, of this operation.
     * </pre>
     *
     * <code>.google.firestore.admin.v1.Progress progress_documents = 6;</code>
     */
    public Builder setProgressDocuments(
        com.google.firestore.admin.v1.Progress.Builder builderForValue) {
      if (progressDocumentsBuilder_ == null) {
        progressDocuments_ = builderForValue.build();
      } else {
        progressDocumentsBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000020;
      onChanged();
      return this;
    }

    /**
     *
     *
     * <pre>
     * The progress, in documents, of this operation.
     * </pre>
     *
     * <code>.google.firestore.admin.v1.Progress progress_documents = 6;</code>
     */
    public Builder mergeProgressDocuments(com.google.firestore.admin.v1.Progress value) {
      if (progressDocumentsBuilder_ == null) {
        if (((bitField0_ & 0x00000020) != 0)
            && progressDocuments_ != null
            && progressDocuments_ != com.google.firestore.admin.v1.Progress.getDefaultInstance()) {
          getProgressDocumentsBuilder().mergeFrom(value);
        } else {
          progressDocuments_ = value;
        }
      } else {
        progressDocumentsBuilder_.mergeFrom(value);
      }
      if (progressDocuments_ != null) {
        bitField0_ |= 0x00000020;
        onChanged();
      }
      return this;
    }

    /**
     *
     *
     * <pre>
     * The progress, in documents, of this operation.
     * </pre>
     *
     * <code>.google.firestore.admin.v1.Progress progress_documents = 6;</code>
     */
    public Builder clearProgressDocuments() {
      bitField0_ = (bitField0_ & ~0x00000020);
      progressDocuments_ = null;
      if (progressDocumentsBuilder_ != null) {
        progressDocumentsBuilder_.dispose();
        progressDocumentsBuilder_ = null;
      }
      onChanged();
      return this;
    }

    /**
     *
     *
     * <pre>
     * The progress, in documents, of this operation.
     * </pre>
     *
     * <code>.google.firestore.admin.v1.Progress progress_documents = 6;</code>
     */
    public com.google.firestore.admin.v1.Progress.Builder getProgressDocumentsBuilder() {
      bitField0_ |= 0x00000020;
      onChanged();
      return internalGetProgressDocumentsFieldBuilder().getBuilder();
    }

    /**
     *
     *
     * <pre>
     * The progress, in documents, of this operation.
     * </pre>
     *
     * <code>.google.firestore.admin.v1.Progress progress_documents = 6;</code>
     */
    public com.google.firestore.admin.v1.ProgressOrBuilder getProgressDocumentsOrBuilder() {
      if (progressDocumentsBuilder_ != null) {
        return progressDocumentsBuilder_.getMessageOrBuilder();
      } else {
        return progressDocuments_ == null
            ? com.google.firestore.admin.v1.Progress.getDefaultInstance()
            : progressDocuments_;
      }
    }

    /**
     *
     *
     * <pre>
     * The progress, in documents, of this operation.
     * </pre>
     *
     * <code>.google.firestore.admin.v1.Progress progress_documents = 6;</code>
     */
    private com.google.protobuf.SingleFieldBuilder<
            com.google.firestore.admin.v1.Progress,
            com.google.firestore.admin.v1.Progress.Builder,
            com.google.firestore.admin.v1.ProgressOrBuilder>
        internalGetProgressDocumentsFieldBuilder() {
      if (progressDocumentsBuilder_ == null) {
        progressDocumentsBuilder_ =
            new com.google.protobuf.SingleFieldBuilder<
                com.google.firestore.admin.v1.Progress,
                com.google.firestore.admin.v1.Progress.Builder,
                com.google.firestore.admin.v1.ProgressOrBuilder>(
                getProgressDocuments(), getParentForChildren(), isClean());
        progressDocuments_ = null;
      }
      return progressDocumentsBuilder_;
    }

    private com.google.firestore.admin.v1.Progress progressBytes_;
    private com.google.protobuf.SingleFieldBuilder<
            com.google.firestore.admin.v1.Progress,
            com.google.firestore.admin.v1.Progress.Builder,
            com.google.firestore.admin.v1.ProgressOrBuilder>
        progressBytesBuilder_;

    /**
     *
     *
     * <pre>
     * The progress, in bytes, of this operation.
     * </pre>
     *
     * <code>.google.firestore.admin.v1.Progress progress_bytes = 7;</code>
     *
     * @return Whether the progressBytes field is set.
     */
    public boolean hasProgressBytes() {
      return ((bitField0_ & 0x00000040) != 0);
    }

    /**
     *
     *
     * <pre>
     * The progress, in bytes, of this operation.
     * </pre>
     *
     * <code>.google.firestore.admin.v1.Progress progress_bytes = 7;</code>
     *
     * @return The progressBytes.
     */
    public com.google.firestore.admin.v1.Progress getProgressBytes() {
      if (progressBytesBuilder_ == null) {
        return progressBytes_ == null
            ? com.google.firestore.admin.v1.Progress.getDefaultInstance()
            : progressBytes_;
      } else {
        return progressBytesBuilder_.getMessage();
      }
    }

    /**
     *
     *
     * <pre>
     * The progress, in bytes, of this operation.
     * </pre>
     *
     * <code>.google.firestore.admin.v1.Progress progress_bytes = 7;</code>
     */
    public Builder setProgressBytes(com.google.firestore.admin.v1.Progress value) {
      if (progressBytesBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        progressBytes_ = value;
      } else {
        progressBytesBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000040;
      onChanged();
      return this;
    }

    /**
     *
     *
     * <pre>
     * The progress, in bytes, of this operation.
     * </pre>
     *
     * <code>.google.firestore.admin.v1.Progress progress_bytes = 7;</code>
     */
    public Builder setProgressBytes(
        com.google.firestore.admin.v1.Progress.Builder builderForValue) {
      if (progressBytesBuilder_ == null) {
        progressBytes_ = builderForValue.build();
      } else {
        progressBytesBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000040;
      onChanged();
      return this;
    }

    /**
     *
     *
     * <pre>
     * The progress, in bytes, of this operation.
     * </pre>
     *
     * <code>.google.firestore.admin.v1.Progress progress_bytes = 7;</code>
     */
    public Builder mergeProgressBytes(com.google.firestore.admin.v1.Progress value) {
      if (progressBytesBuilder_ == null) {
        if (((bitField0_ & 0x00000040) != 0)
            && progressBytes_ != null
            && progressBytes_ != com.google.firestore.admin.v1.Progress.getDefaultInstance()) {
          getProgressBytesBuilder().mergeFrom(value);
        } else {
          progressBytes_ = value;
        }
      } else {
        progressBytesBuilder_.mergeFrom(value);
      }
      if (progressBytes_ != null) {
        bitField0_ |= 0x00000040;
        onChanged();
      }
      return this;
    }

    /**
     *
     *
     * <pre>
     * The progress, in bytes, of this operation.
     * </pre>
     *
     * <code>.google.firestore.admin.v1.Progress progress_bytes = 7;</code>
     */
    public Builder clearProgressBytes() {
      bitField0_ = (bitField0_ & ~0x00000040);
      progressBytes_ = null;
      if (progressBytesBuilder_ != null) {
        progressBytesBuilder_.dispose();
        progressBytesBuilder_ = null;
      }
      onChanged();
      return this;
    }

    /**
     *
     *
     * <pre>
     * The progress, in bytes, of this operation.
     * </pre>
     *
     * <code>.google.firestore.admin.v1.Progress progress_bytes = 7;</code>
     */
    public com.google.firestore.admin.v1.Progress.Builder getProgressBytesBuilder() {
      bitField0_ |= 0x00000040;
      onChanged();
      return internalGetProgressBytesFieldBuilder().getBuilder();
    }

    /**
     *
     *
     * <pre>
     * The progress, in bytes, of this operation.
     * </pre>
     *
     * <code>.google.firestore.admin.v1.Progress progress_bytes = 7;</code>
     */
    public com.google.firestore.admin.v1.ProgressOrBuilder getProgressBytesOrBuilder() {
      if (progressBytesBuilder_ != null) {
        return progressBytesBuilder_.getMessageOrBuilder();
      } else {
        return progressBytes_ == null
            ? com.google.firestore.admin.v1.Progress.getDefaultInstance()
            : progressBytes_;
      }
    }

    /**
     *
     *
     * <pre>
     * The progress, in bytes, of this operation.
     * </pre>
     *
     * <code>.google.firestore.admin.v1.Progress progress_bytes = 7;</code>
     */
    private com.google.protobuf.SingleFieldBuilder<
            com.google.firestore.admin.v1.Progress,
            com.google.firestore.admin.v1.Progress.Builder,
            com.google.firestore.admin.v1.ProgressOrBuilder>
        internalGetProgressBytesFieldBuilder() {
      if (progressBytesBuilder_ == null) {
        progressBytesBuilder_ =
            new com.google.protobuf.SingleFieldBuilder<
                com.google.firestore.admin.v1.Progress,
                com.google.firestore.admin.v1.Progress.Builder,
                com.google.firestore.admin.v1.ProgressOrBuilder>(
                getProgressBytes(), getParentForChildren(), isClean());
        progressBytes_ = null;
      }
      return progressBytesBuilder_;
    }

    private com.google.firestore.admin.v1.FieldOperationMetadata.TtlConfigDelta ttlConfigDelta_;
    private com.google.protobuf.SingleFieldBuilder<
            com.google.firestore.admin.v1.FieldOperationMetadata.TtlConfigDelta,
            com.google.firestore.admin.v1.FieldOperationMetadata.TtlConfigDelta.Builder,
            com.google.firestore.admin.v1.FieldOperationMetadata.TtlConfigDeltaOrBuilder>
        ttlConfigDeltaBuilder_;

    /**
     *
     *
     * <pre>
     * Describes the deltas of TTL configuration.
     * </pre>
     *
     * <code>.google.firestore.admin.v1.FieldOperationMetadata.TtlConfigDelta ttl_config_delta = 8;
     * </code>
     *
     * @return Whether the ttlConfigDelta field is set.
     */
    public boolean hasTtlConfigDelta() {
      return ((bitField0_ & 0x00000080) != 0);
    }

    /**
     *
     *
     * <pre>
     * Describes the deltas of TTL configuration.
     * </pre>
     *
     * <code>.google.firestore.admin.v1.FieldOperationMetadata.TtlConfigDelta ttl_config_delta = 8;
     * </code>
     *
     * @return The ttlConfigDelta.
     */
    public com.google.firestore.admin.v1.FieldOperationMetadata.TtlConfigDelta getTtlConfigDelta() {
      if (ttlConfigDeltaBuilder_ == null) {
        return ttlConfigDelta_ == null
            ? com.google.firestore.admin.v1.FieldOperationMetadata.TtlConfigDelta
                .getDefaultInstance()
            : ttlConfigDelta_;
      } else {
        return ttlConfigDeltaBuilder_.getMessage();
      }
    }

    /**
     *
     *
     * <pre>
     * Describes the deltas of TTL configuration.
     * </pre>
     *
     * <code>.google.firestore.admin.v1.FieldOperationMetadata.TtlConfigDelta ttl_config_delta = 8;
     * </code>
     */
    public Builder setTtlConfigDelta(
        com.google.firestore.admin.v1.FieldOperationMetadata.TtlConfigDelta value) {
      if (ttlConfigDeltaBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        ttlConfigDelta_ = value;
      } else {
        ttlConfigDeltaBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000080;
      onChanged();
      return this;
    }

    /**
     *
     *
     * <pre>
     * Describes the deltas of TTL configuration.
     * </pre>
     *
     * <code>.google.firestore.admin.v1.FieldOperationMetadata.TtlConfigDelta ttl_config_delta = 8;
     * </code>
     */
    public Builder setTtlConfigDelta(
        com.google.firestore.admin.v1.FieldOperationMetadata.TtlConfigDelta.Builder
            builderForValue) {
      if (ttlConfigDeltaBuilder_ == null) {
        ttlConfigDelta_ = builderForValue.build();
      } else {
        ttlConfigDeltaBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000080;
      onChanged();
      return this;
    }

    /**
     *
     *
     * <pre>
     * Describes the deltas of TTL configuration.
     * </pre>
     *
     * <code>.google.firestore.admin.v1.FieldOperationMetadata.TtlConfigDelta ttl_config_delta = 8;
     * </code>
     */
    public Builder mergeTtlConfigDelta(
        com.google.firestore.admin.v1.FieldOperationMetadata.TtlConfigDelta value) {
      if (ttlConfigDeltaBuilder_ == null) {
        if (((bitField0_ & 0x00000080) != 0)
            && ttlConfigDelta_ != null
            && ttlConfigDelta_
                != com.google.firestore.admin.v1.FieldOperationMetadata.TtlConfigDelta
                    .getDefaultInstance()) {
          getTtlConfigDeltaBuilder().mergeFrom(value);
        } else {
          ttlConfigDelta_ = value;
        }
      } else {
        ttlConfigDeltaBuilder_.mergeFrom(value);
      }
      if (ttlConfigDelta_ != null) {
        bitField0_ |= 0x00000080;
        onChanged();
      }
      return this;
    }

    /**
     *
     *
     * <pre>
     * Describes the deltas of TTL configuration.
     * </pre>
     *
     * <code>.google.firestore.admin.v1.FieldOperationMetadata.TtlConfigDelta ttl_config_delta = 8;
     * </code>
     */
    public Builder clearTtlConfigDelta() {
      bitField0_ = (bitField0_ & ~0x00000080);
      ttlConfigDelta_ = null;
      if (ttlConfigDeltaBuilder_ != null) {
        ttlConfigDeltaBuilder_.dispose();
        ttlConfigDeltaBuilder_ = null;
      }
      onChanged();
      return this;
    }

    /**
     *
     *
     * <pre>
     * Describes the deltas of TTL configuration.
     * </pre>
     *
     * <code>.google.firestore.admin.v1.FieldOperationMetadata.TtlConfigDelta ttl_config_delta = 8;
     * </code>
     */
    public com.google.firestore.admin.v1.FieldOperationMetadata.TtlConfigDelta.Builder
        getTtlConfigDeltaBuilder() {
      bitField0_ |= 0x00000080;
      onChanged();
      return internalGetTtlConfigDeltaFieldBuilder().getBuilder();
    }

    /**
     *
     *
     * <pre>
     * Describes the deltas of TTL configuration.
     * </pre>
     *
     * <code>.google.firestore.admin.v1.FieldOperationMetadata.TtlConfigDelta ttl_config_delta = 8;
     * </code>
     */
    public com.google.firestore.admin.v1.FieldOperationMetadata.TtlConfigDeltaOrBuilder
        getTtlConfigDeltaOrBuilder() {
      if (ttlConfigDeltaBuilder_ != null) {
        return ttlConfigDeltaBuilder_.getMessageOrBuilder();
      } else {
        return ttlConfigDelta_ == null
            ? com.google.firestore.admin.v1.FieldOperationMetadata.TtlConfigDelta
                .getDefaultInstance()
            : ttlConfigDelta_;
      }
    }

    /**
     *
     *
     * <pre>
     * Describes the deltas of TTL configuration.
     * </pre>
     *
     * <code>.google.firestore.admin.v1.FieldOperationMetadata.TtlConfigDelta ttl_config_delta = 8;
     * </code>
     */
    private com.google.protobuf.SingleFieldBuilder<
            com.google.firestore.admin.v1.FieldOperationMetadata.TtlConfigDelta,
            com.google.firestore.admin.v1.FieldOperationMetadata.TtlConfigDelta.Builder,
            com.google.firestore.admin.v1.FieldOperationMetadata.TtlConfigDeltaOrBuilder>
        internalGetTtlConfigDeltaFieldBuilder() {
      if (ttlConfigDeltaBuilder_ == null) {
        ttlConfigDeltaBuilder_ =
            new com.google.protobuf.SingleFieldBuilder<
                com.google.firestore.admin.v1.FieldOperationMetadata.TtlConfigDelta,
                com.google.firestore.admin.v1.FieldOperationMetadata.TtlConfigDelta.Builder,
                com.google.firestore.admin.v1.FieldOperationMetadata.TtlConfigDeltaOrBuilder>(
                getTtlConfigDelta(), getParentForChildren(), isClean());
        ttlConfigDelta_ = null;
      }
      return ttlConfigDeltaBuilder_;
    }

    // @@protoc_insertion_point(builder_scope:google.firestore.admin.v1.FieldOperationMetadata)
  }

  // @@protoc_insertion_point(class_scope:google.firestore.admin.v1.FieldOperationMetadata)
  private static final com.google.firestore.admin.v1.FieldOperationMetadata DEFAULT_INSTANCE;

  static {
    DEFAULT_INSTANCE = new com.google.firestore.admin.v1.FieldOperationMetadata();
  }

  public static com.google.firestore.admin.v1.FieldOperationMetadata getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

  private static final com.google.protobuf.Parser<FieldOperationMetadata> PARSER =
      new com.google.protobuf.AbstractParser<FieldOperationMetadata>() {
        @java.lang.Override
        public FieldOperationMetadata parsePartialFrom(
            com.google.protobuf.CodedInputStream input,
            com.google.protobuf.ExtensionRegistryLite extensionRegistry)
            throws com.google.protobuf.InvalidProtocolBufferException {
          Builder builder = newBuilder();
          try {
            builder.mergeFrom(input, extensionRegistry);
          } catch (com.google.protobuf.InvalidProtocolBufferException e) {
            throw e.setUnfinishedMessage(builder.buildPartial());
          } catch (com.google.protobuf.UninitializedMessageException e) {
            throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial());
          } catch (java.io.IOException e) {
            throw new com.google.protobuf.InvalidProtocolBufferException(e)
                .setUnfinishedMessage(builder.buildPartial());
          }
          return builder.buildPartial();
        }
      };

  public static com.google.protobuf.Parser<FieldOperationMetadata> parser() {
    return PARSER;
  }

  @java.lang.Override
  public com.google.protobuf.Parser<FieldOperationMetadata> getParserForType() {
    return PARSER;
  }

  @java.lang.Override
  public com.google.firestore.admin.v1.FieldOperationMetadata getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }
}
