/*
 * 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/storage/control/v2/storage_control.proto
// Protobuf Java Version: 4.33.2

package com.google.storage.control.v2;

/**
 *
 *
 * <pre>
 * Message returned in the metadata field of the Operation resource for
 * DeleteFolderRecursive operations.
 * </pre>
 *
 * Protobuf type {@code google.storage.control.v2.DeleteFolderRecursiveMetadata}
 */
@com.google.protobuf.Generated
public final class DeleteFolderRecursiveMetadata extends com.google.protobuf.GeneratedMessage
    implements
    // @@protoc_insertion_point(message_implements:google.storage.control.v2.DeleteFolderRecursiveMetadata)
    DeleteFolderRecursiveMetadataOrBuilder {
  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= */ "",
        "DeleteFolderRecursiveMetadata");
  }

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

  private DeleteFolderRecursiveMetadata() {
    folderId_ = "";
  }

  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    return com.google.storage.control.v2.StorageControlProto
        .internal_static_google_storage_control_v2_DeleteFolderRecursiveMetadata_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.google.storage.control.v2.StorageControlProto
        .internal_static_google_storage_control_v2_DeleteFolderRecursiveMetadata_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.google.storage.control.v2.DeleteFolderRecursiveMetadata.class,
            com.google.storage.control.v2.DeleteFolderRecursiveMetadata.Builder.class);
  }

  private int bitField0_;
  public static final int COMMON_METADATA_FIELD_NUMBER = 1;
  private com.google.storage.control.v2.CommonLongRunningOperationMetadata commonMetadata_;

  /**
   *
   *
   * <pre>
   * Generic metadata for the long running operation.
   * </pre>
   *
   * <code>.google.storage.control.v2.CommonLongRunningOperationMetadata common_metadata = 1;</code>
   *
   * @return Whether the commonMetadata field is set.
   */
  @java.lang.Override
  public boolean hasCommonMetadata() {
    return ((bitField0_ & 0x00000001) != 0);
  }

  /**
   *
   *
   * <pre>
   * Generic metadata for the long running operation.
   * </pre>
   *
   * <code>.google.storage.control.v2.CommonLongRunningOperationMetadata common_metadata = 1;</code>
   *
   * @return The commonMetadata.
   */
  @java.lang.Override
  public com.google.storage.control.v2.CommonLongRunningOperationMetadata getCommonMetadata() {
    return commonMetadata_ == null
        ? com.google.storage.control.v2.CommonLongRunningOperationMetadata.getDefaultInstance()
        : commonMetadata_;
  }

  /**
   *
   *
   * <pre>
   * Generic metadata for the long running operation.
   * </pre>
   *
   * <code>.google.storage.control.v2.CommonLongRunningOperationMetadata common_metadata = 1;</code>
   */
  @java.lang.Override
  public com.google.storage.control.v2.CommonLongRunningOperationMetadataOrBuilder
      getCommonMetadataOrBuilder() {
    return commonMetadata_ == null
        ? com.google.storage.control.v2.CommonLongRunningOperationMetadata.getDefaultInstance()
        : commonMetadata_;
  }

  public static final int FOLDER_ID_FIELD_NUMBER = 2;

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

  /**
   *
   *
   * <pre>
   * The path of the folder recursively deleted.
   * </pre>
   *
   * <code>string folder_id = 2;</code>
   *
   * @return The folderId.
   */
  @java.lang.Override
  public java.lang.String getFolderId() {
    java.lang.Object ref = folderId_;
    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();
      folderId_ = s;
      return s;
    }
  }

  /**
   *
   *
   * <pre>
   * The path of the folder recursively deleted.
   * </pre>
   *
   * <code>string folder_id = 2;</code>
   *
   * @return The bytes for folderId.
   */
  @java.lang.Override
  public com.google.protobuf.ByteString getFolderIdBytes() {
    java.lang.Object ref = folderId_;
    if (ref instanceof java.lang.String) {
      com.google.protobuf.ByteString b =
          com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
      folderId_ = b;
      return b;
    } else {
      return (com.google.protobuf.ByteString) ref;
    }
  }

  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, getCommonMetadata());
    }
    if (!com.google.protobuf.GeneratedMessage.isStringEmpty(folderId_)) {
      com.google.protobuf.GeneratedMessage.writeString(output, 2, folderId_);
    }
    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, getCommonMetadata());
    }
    if (!com.google.protobuf.GeneratedMessage.isStringEmpty(folderId_)) {
      size += com.google.protobuf.GeneratedMessage.computeStringSize(2, folderId_);
    }
    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.storage.control.v2.DeleteFolderRecursiveMetadata)) {
      return super.equals(obj);
    }
    com.google.storage.control.v2.DeleteFolderRecursiveMetadata other =
        (com.google.storage.control.v2.DeleteFolderRecursiveMetadata) obj;

    if (hasCommonMetadata() != other.hasCommonMetadata()) return false;
    if (hasCommonMetadata()) {
      if (!getCommonMetadata().equals(other.getCommonMetadata())) return false;
    }
    if (!getFolderId().equals(other.getFolderId())) 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 (hasCommonMetadata()) {
      hash = (37 * hash) + COMMON_METADATA_FIELD_NUMBER;
      hash = (53 * hash) + getCommonMetadata().hashCode();
    }
    hash = (37 * hash) + FOLDER_ID_FIELD_NUMBER;
    hash = (53 * hash) + getFolderId().hashCode();
    hash = (29 * hash) + getUnknownFields().hashCode();
    memoizedHashCode = hash;
    return hash;
  }

  public static com.google.storage.control.v2.DeleteFolderRecursiveMetadata parseFrom(
      java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }

  public static com.google.storage.control.v2.DeleteFolderRecursiveMetadata parseFrom(
      java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }

  public static com.google.storage.control.v2.DeleteFolderRecursiveMetadata parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }

  public static com.google.storage.control.v2.DeleteFolderRecursiveMetadata 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.storage.control.v2.DeleteFolderRecursiveMetadata parseFrom(byte[] data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }

  public static com.google.storage.control.v2.DeleteFolderRecursiveMetadata parseFrom(
      byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data, extensionRegistry);
  }

  public static com.google.storage.control.v2.DeleteFolderRecursiveMetadata parseFrom(
      java.io.InputStream input) throws java.io.IOException {
    return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
  }

  public static com.google.storage.control.v2.DeleteFolderRecursiveMetadata 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.storage.control.v2.DeleteFolderRecursiveMetadata parseDelimitedFrom(
      java.io.InputStream input) throws java.io.IOException {
    return com.google.protobuf.GeneratedMessage.parseDelimitedWithIOException(PARSER, input);
  }

  public static com.google.storage.control.v2.DeleteFolderRecursiveMetadata 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.storage.control.v2.DeleteFolderRecursiveMetadata parseFrom(
      com.google.protobuf.CodedInputStream input) throws java.io.IOException {
    return com.google.protobuf.GeneratedMessage.parseWithIOException(PARSER, input);
  }

  public static com.google.storage.control.v2.DeleteFolderRecursiveMetadata 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.storage.control.v2.DeleteFolderRecursiveMetadata 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>
   * Message returned in the metadata field of the Operation resource for
   * DeleteFolderRecursive operations.
   * </pre>
   *
   * Protobuf type {@code google.storage.control.v2.DeleteFolderRecursiveMetadata}
   */
  public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder>
      implements
      // @@protoc_insertion_point(builder_implements:google.storage.control.v2.DeleteFolderRecursiveMetadata)
      com.google.storage.control.v2.DeleteFolderRecursiveMetadataOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      return com.google.storage.control.v2.StorageControlProto
          .internal_static_google_storage_control_v2_DeleteFolderRecursiveMetadata_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.google.storage.control.v2.StorageControlProto
          .internal_static_google_storage_control_v2_DeleteFolderRecursiveMetadata_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.google.storage.control.v2.DeleteFolderRecursiveMetadata.class,
              com.google.storage.control.v2.DeleteFolderRecursiveMetadata.Builder.class);
    }

    // Construct using com.google.storage.control.v2.DeleteFolderRecursiveMetadata.newBuilder()
    private Builder() {
      maybeForceBuilderInitialization();
    }

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

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

    @java.lang.Override
    public Builder clear() {
      super.clear();
      bitField0_ = 0;
      commonMetadata_ = null;
      if (commonMetadataBuilder_ != null) {
        commonMetadataBuilder_.dispose();
        commonMetadataBuilder_ = null;
      }
      folderId_ = "";
      return this;
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
      return com.google.storage.control.v2.StorageControlProto
          .internal_static_google_storage_control_v2_DeleteFolderRecursiveMetadata_descriptor;
    }

    @java.lang.Override
    public com.google.storage.control.v2.DeleteFolderRecursiveMetadata getDefaultInstanceForType() {
      return com.google.storage.control.v2.DeleteFolderRecursiveMetadata.getDefaultInstance();
    }

    @java.lang.Override
    public com.google.storage.control.v2.DeleteFolderRecursiveMetadata build() {
      com.google.storage.control.v2.DeleteFolderRecursiveMetadata result = buildPartial();
      if (!result.isInitialized()) {
        throw newUninitializedMessageException(result);
      }
      return result;
    }

    @java.lang.Override
    public com.google.storage.control.v2.DeleteFolderRecursiveMetadata buildPartial() {
      com.google.storage.control.v2.DeleteFolderRecursiveMetadata result =
          new com.google.storage.control.v2.DeleteFolderRecursiveMetadata(this);
      if (bitField0_ != 0) {
        buildPartial0(result);
      }
      onBuilt();
      return result;
    }

    private void buildPartial0(com.google.storage.control.v2.DeleteFolderRecursiveMetadata result) {
      int from_bitField0_ = bitField0_;
      int to_bitField0_ = 0;
      if (((from_bitField0_ & 0x00000001) != 0)) {
        result.commonMetadata_ =
            commonMetadataBuilder_ == null ? commonMetadata_ : commonMetadataBuilder_.build();
        to_bitField0_ |= 0x00000001;
      }
      if (((from_bitField0_ & 0x00000002) != 0)) {
        result.folderId_ = folderId_;
      }
      result.bitField0_ |= to_bitField0_;
    }

    @java.lang.Override
    public Builder mergeFrom(com.google.protobuf.Message other) {
      if (other instanceof com.google.storage.control.v2.DeleteFolderRecursiveMetadata) {
        return mergeFrom((com.google.storage.control.v2.DeleteFolderRecursiveMetadata) other);
      } else {
        super.mergeFrom(other);
        return this;
      }
    }

    public Builder mergeFrom(com.google.storage.control.v2.DeleteFolderRecursiveMetadata other) {
      if (other == com.google.storage.control.v2.DeleteFolderRecursiveMetadata.getDefaultInstance())
        return this;
      if (other.hasCommonMetadata()) {
        mergeCommonMetadata(other.getCommonMetadata());
      }
      if (!other.getFolderId().isEmpty()) {
        folderId_ = other.folderId_;
        bitField0_ |= 0x00000002;
        onChanged();
      }
      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(
                    internalGetCommonMetadataFieldBuilder().getBuilder(), extensionRegistry);
                bitField0_ |= 0x00000001;
                break;
              } // case 10
            case 18:
              {
                folderId_ = input.readStringRequireUtf8();
                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 com.google.storage.control.v2.CommonLongRunningOperationMetadata commonMetadata_;
    private com.google.protobuf.SingleFieldBuilder<
            com.google.storage.control.v2.CommonLongRunningOperationMetadata,
            com.google.storage.control.v2.CommonLongRunningOperationMetadata.Builder,
            com.google.storage.control.v2.CommonLongRunningOperationMetadataOrBuilder>
        commonMetadataBuilder_;

    /**
     *
     *
     * <pre>
     * Generic metadata for the long running operation.
     * </pre>
     *
     * <code>.google.storage.control.v2.CommonLongRunningOperationMetadata common_metadata = 1;
     * </code>
     *
     * @return Whether the commonMetadata field is set.
     */
    public boolean hasCommonMetadata() {
      return ((bitField0_ & 0x00000001) != 0);
    }

    /**
     *
     *
     * <pre>
     * Generic metadata for the long running operation.
     * </pre>
     *
     * <code>.google.storage.control.v2.CommonLongRunningOperationMetadata common_metadata = 1;
     * </code>
     *
     * @return The commonMetadata.
     */
    public com.google.storage.control.v2.CommonLongRunningOperationMetadata getCommonMetadata() {
      if (commonMetadataBuilder_ == null) {
        return commonMetadata_ == null
            ? com.google.storage.control.v2.CommonLongRunningOperationMetadata.getDefaultInstance()
            : commonMetadata_;
      } else {
        return commonMetadataBuilder_.getMessage();
      }
    }

    /**
     *
     *
     * <pre>
     * Generic metadata for the long running operation.
     * </pre>
     *
     * <code>.google.storage.control.v2.CommonLongRunningOperationMetadata common_metadata = 1;
     * </code>
     */
    public Builder setCommonMetadata(
        com.google.storage.control.v2.CommonLongRunningOperationMetadata value) {
      if (commonMetadataBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        commonMetadata_ = value;
      } else {
        commonMetadataBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }

    /**
     *
     *
     * <pre>
     * Generic metadata for the long running operation.
     * </pre>
     *
     * <code>.google.storage.control.v2.CommonLongRunningOperationMetadata common_metadata = 1;
     * </code>
     */
    public Builder setCommonMetadata(
        com.google.storage.control.v2.CommonLongRunningOperationMetadata.Builder builderForValue) {
      if (commonMetadataBuilder_ == null) {
        commonMetadata_ = builderForValue.build();
      } else {
        commonMetadataBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }

    /**
     *
     *
     * <pre>
     * Generic metadata for the long running operation.
     * </pre>
     *
     * <code>.google.storage.control.v2.CommonLongRunningOperationMetadata common_metadata = 1;
     * </code>
     */
    public Builder mergeCommonMetadata(
        com.google.storage.control.v2.CommonLongRunningOperationMetadata value) {
      if (commonMetadataBuilder_ == null) {
        if (((bitField0_ & 0x00000001) != 0)
            && commonMetadata_ != null
            && commonMetadata_
                != com.google.storage.control.v2.CommonLongRunningOperationMetadata
                    .getDefaultInstance()) {
          getCommonMetadataBuilder().mergeFrom(value);
        } else {
          commonMetadata_ = value;
        }
      } else {
        commonMetadataBuilder_.mergeFrom(value);
      }
      if (commonMetadata_ != null) {
        bitField0_ |= 0x00000001;
        onChanged();
      }
      return this;
    }

    /**
     *
     *
     * <pre>
     * Generic metadata for the long running operation.
     * </pre>
     *
     * <code>.google.storage.control.v2.CommonLongRunningOperationMetadata common_metadata = 1;
     * </code>
     */
    public Builder clearCommonMetadata() {
      bitField0_ = (bitField0_ & ~0x00000001);
      commonMetadata_ = null;
      if (commonMetadataBuilder_ != null) {
        commonMetadataBuilder_.dispose();
        commonMetadataBuilder_ = null;
      }
      onChanged();
      return this;
    }

    /**
     *
     *
     * <pre>
     * Generic metadata for the long running operation.
     * </pre>
     *
     * <code>.google.storage.control.v2.CommonLongRunningOperationMetadata common_metadata = 1;
     * </code>
     */
    public com.google.storage.control.v2.CommonLongRunningOperationMetadata.Builder
        getCommonMetadataBuilder() {
      bitField0_ |= 0x00000001;
      onChanged();
      return internalGetCommonMetadataFieldBuilder().getBuilder();
    }

    /**
     *
     *
     * <pre>
     * Generic metadata for the long running operation.
     * </pre>
     *
     * <code>.google.storage.control.v2.CommonLongRunningOperationMetadata common_metadata = 1;
     * </code>
     */
    public com.google.storage.control.v2.CommonLongRunningOperationMetadataOrBuilder
        getCommonMetadataOrBuilder() {
      if (commonMetadataBuilder_ != null) {
        return commonMetadataBuilder_.getMessageOrBuilder();
      } else {
        return commonMetadata_ == null
            ? com.google.storage.control.v2.CommonLongRunningOperationMetadata.getDefaultInstance()
            : commonMetadata_;
      }
    }

    /**
     *
     *
     * <pre>
     * Generic metadata for the long running operation.
     * </pre>
     *
     * <code>.google.storage.control.v2.CommonLongRunningOperationMetadata common_metadata = 1;
     * </code>
     */
    private com.google.protobuf.SingleFieldBuilder<
            com.google.storage.control.v2.CommonLongRunningOperationMetadata,
            com.google.storage.control.v2.CommonLongRunningOperationMetadata.Builder,
            com.google.storage.control.v2.CommonLongRunningOperationMetadataOrBuilder>
        internalGetCommonMetadataFieldBuilder() {
      if (commonMetadataBuilder_ == null) {
        commonMetadataBuilder_ =
            new com.google.protobuf.SingleFieldBuilder<
                com.google.storage.control.v2.CommonLongRunningOperationMetadata,
                com.google.storage.control.v2.CommonLongRunningOperationMetadata.Builder,
                com.google.storage.control.v2.CommonLongRunningOperationMetadataOrBuilder>(
                getCommonMetadata(), getParentForChildren(), isClean());
        commonMetadata_ = null;
      }
      return commonMetadataBuilder_;
    }

    private java.lang.Object folderId_ = "";

    /**
     *
     *
     * <pre>
     * The path of the folder recursively deleted.
     * </pre>
     *
     * <code>string folder_id = 2;</code>
     *
     * @return The folderId.
     */
    public java.lang.String getFolderId() {
      java.lang.Object ref = folderId_;
      if (!(ref instanceof java.lang.String)) {
        com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref;
        java.lang.String s = bs.toStringUtf8();
        folderId_ = s;
        return s;
      } else {
        return (java.lang.String) ref;
      }
    }

    /**
     *
     *
     * <pre>
     * The path of the folder recursively deleted.
     * </pre>
     *
     * <code>string folder_id = 2;</code>
     *
     * @return The bytes for folderId.
     */
    public com.google.protobuf.ByteString getFolderIdBytes() {
      java.lang.Object ref = folderId_;
      if (ref instanceof String) {
        com.google.protobuf.ByteString b =
            com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref);
        folderId_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    /**
     *
     *
     * <pre>
     * The path of the folder recursively deleted.
     * </pre>
     *
     * <code>string folder_id = 2;</code>
     *
     * @param value The folderId to set.
     * @return This builder for chaining.
     */
    public Builder setFolderId(java.lang.String value) {
      if (value == null) {
        throw new NullPointerException();
      }
      folderId_ = value;
      bitField0_ |= 0x00000002;
      onChanged();
      return this;
    }

    /**
     *
     *
     * <pre>
     * The path of the folder recursively deleted.
     * </pre>
     *
     * <code>string folder_id = 2;</code>
     *
     * @return This builder for chaining.
     */
    public Builder clearFolderId() {
      folderId_ = getDefaultInstance().getFolderId();
      bitField0_ = (bitField0_ & ~0x00000002);
      onChanged();
      return this;
    }

    /**
     *
     *
     * <pre>
     * The path of the folder recursively deleted.
     * </pre>
     *
     * <code>string folder_id = 2;</code>
     *
     * @param value The bytes for folderId to set.
     * @return This builder for chaining.
     */
    public Builder setFolderIdBytes(com.google.protobuf.ByteString value) {
      if (value == null) {
        throw new NullPointerException();
      }
      checkByteStringIsUtf8(value);
      folderId_ = value;
      bitField0_ |= 0x00000002;
      onChanged();
      return this;
    }

    // @@protoc_insertion_point(builder_scope:google.storage.control.v2.DeleteFolderRecursiveMetadata)
  }

  // @@protoc_insertion_point(class_scope:google.storage.control.v2.DeleteFolderRecursiveMetadata)
  private static final com.google.storage.control.v2.DeleteFolderRecursiveMetadata DEFAULT_INSTANCE;

  static {
    DEFAULT_INSTANCE = new com.google.storage.control.v2.DeleteFolderRecursiveMetadata();
  }

  public static com.google.storage.control.v2.DeleteFolderRecursiveMetadata getDefaultInstance() {
    return DEFAULT_INSTANCE;
  }

  private static final com.google.protobuf.Parser<DeleteFolderRecursiveMetadata> PARSER =
      new com.google.protobuf.AbstractParser<DeleteFolderRecursiveMetadata>() {
        @java.lang.Override
        public DeleteFolderRecursiveMetadata 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<DeleteFolderRecursiveMetadata> parser() {
    return PARSER;
  }

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

  @java.lang.Override
  public com.google.storage.control.v2.DeleteFolderRecursiveMetadata getDefaultInstanceForType() {
    return DEFAULT_INSTANCE;
  }
}
