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

package com.google.storage.v2;

/**
 *
 *
 * <pre>
 * Response message for [ReadObject][google.storage.v2.Storage.ReadObject].
 * </pre>
 *
 * Protobuf type {@code google.storage.v2.ReadObjectResponse}
 */
@com.google.protobuf.Generated
public final class ReadObjectResponse extends com.google.protobuf.GeneratedMessage
    implements
    // @@protoc_insertion_point(message_implements:google.storage.v2.ReadObjectResponse)
    ReadObjectResponseOrBuilder {
  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= */ "",
        "ReadObjectResponse");
  }

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

  private ReadObjectResponse() {}

  public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    return com.google.storage.v2.StorageProto
        .internal_static_google_storage_v2_ReadObjectResponse_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return com.google.storage.v2.StorageProto
        .internal_static_google_storage_v2_ReadObjectResponse_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            com.google.storage.v2.ReadObjectResponse.class,
            com.google.storage.v2.ReadObjectResponse.Builder.class);
  }

  private int bitField0_;
  public static final int CHECKSUMMED_DATA_FIELD_NUMBER = 1;
  private com.google.storage.v2.ChecksummedData checksummedData_;

  /**
   *
   *
   * <pre>
   * A portion of the data for the object. The service might leave `data`
   * empty for any given `ReadResponse`. This enables the service to inform the
   * client that the request is still live while it is running an operation to
   * generate more data.
   * </pre>
   *
   * <code>.google.storage.v2.ChecksummedData checksummed_data = 1;</code>
   *
   * @return Whether the checksummedData field is set.
   */
  @java.lang.Override
  public boolean hasChecksummedData() {
    return ((bitField0_ & 0x00000001) != 0);
  }

  /**
   *
   *
   * <pre>
   * A portion of the data for the object. The service might leave `data`
   * empty for any given `ReadResponse`. This enables the service to inform the
   * client that the request is still live while it is running an operation to
   * generate more data.
   * </pre>
   *
   * <code>.google.storage.v2.ChecksummedData checksummed_data = 1;</code>
   *
   * @return The checksummedData.
   */
  @java.lang.Override
  public com.google.storage.v2.ChecksummedData getChecksummedData() {
    return checksummedData_ == null
        ? com.google.storage.v2.ChecksummedData.getDefaultInstance()
        : checksummedData_;
  }

  /**
   *
   *
   * <pre>
   * A portion of the data for the object. The service might leave `data`
   * empty for any given `ReadResponse`. This enables the service to inform the
   * client that the request is still live while it is running an operation to
   * generate more data.
   * </pre>
   *
   * <code>.google.storage.v2.ChecksummedData checksummed_data = 1;</code>
   */
  @java.lang.Override
  public com.google.storage.v2.ChecksummedDataOrBuilder getChecksummedDataOrBuilder() {
    return checksummedData_ == null
        ? com.google.storage.v2.ChecksummedData.getDefaultInstance()
        : checksummedData_;
  }

  public static final int OBJECT_CHECKSUMS_FIELD_NUMBER = 2;
  private com.google.storage.v2.ObjectChecksums objectChecksums_;

  /**
   *
   *
   * <pre>
   * The checksums of the complete object. If the object is downloaded in full,
   * the client should compute one of these checksums over the downloaded object
   * and compare it against the value provided here.
   * </pre>
   *
   * <code>.google.storage.v2.ObjectChecksums object_checksums = 2;</code>
   *
   * @return Whether the objectChecksums field is set.
   */
  @java.lang.Override
  public boolean hasObjectChecksums() {
    return ((bitField0_ & 0x00000002) != 0);
  }

  /**
   *
   *
   * <pre>
   * The checksums of the complete object. If the object is downloaded in full,
   * the client should compute one of these checksums over the downloaded object
   * and compare it against the value provided here.
   * </pre>
   *
   * <code>.google.storage.v2.ObjectChecksums object_checksums = 2;</code>
   *
   * @return The objectChecksums.
   */
  @java.lang.Override
  public com.google.storage.v2.ObjectChecksums getObjectChecksums() {
    return objectChecksums_ == null
        ? com.google.storage.v2.ObjectChecksums.getDefaultInstance()
        : objectChecksums_;
  }

  /**
   *
   *
   * <pre>
   * The checksums of the complete object. If the object is downloaded in full,
   * the client should compute one of these checksums over the downloaded object
   * and compare it against the value provided here.
   * </pre>
   *
   * <code>.google.storage.v2.ObjectChecksums object_checksums = 2;</code>
   */
  @java.lang.Override
  public com.google.storage.v2.ObjectChecksumsOrBuilder getObjectChecksumsOrBuilder() {
    return objectChecksums_ == null
        ? com.google.storage.v2.ObjectChecksums.getDefaultInstance()
        : objectChecksums_;
  }

  public static final int CONTENT_RANGE_FIELD_NUMBER = 3;
  private com.google.storage.v2.ContentRange contentRange_;

  /**
   *
   *
   * <pre>
   * If `read_offset` and or `read_limit` is specified on the
   * `ReadObjectRequest`, `ContentRange` is populated on the first
   * `ReadObjectResponse` message of the read stream.
   * </pre>
   *
   * <code>.google.storage.v2.ContentRange content_range = 3;</code>
   *
   * @return Whether the contentRange field is set.
   */
  @java.lang.Override
  public boolean hasContentRange() {
    return ((bitField0_ & 0x00000004) != 0);
  }

  /**
   *
   *
   * <pre>
   * If `read_offset` and or `read_limit` is specified on the
   * `ReadObjectRequest`, `ContentRange` is populated on the first
   * `ReadObjectResponse` message of the read stream.
   * </pre>
   *
   * <code>.google.storage.v2.ContentRange content_range = 3;</code>
   *
   * @return The contentRange.
   */
  @java.lang.Override
  public com.google.storage.v2.ContentRange getContentRange() {
    return contentRange_ == null
        ? com.google.storage.v2.ContentRange.getDefaultInstance()
        : contentRange_;
  }

  /**
   *
   *
   * <pre>
   * If `read_offset` and or `read_limit` is specified on the
   * `ReadObjectRequest`, `ContentRange` is populated on the first
   * `ReadObjectResponse` message of the read stream.
   * </pre>
   *
   * <code>.google.storage.v2.ContentRange content_range = 3;</code>
   */
  @java.lang.Override
  public com.google.storage.v2.ContentRangeOrBuilder getContentRangeOrBuilder() {
    return contentRange_ == null
        ? com.google.storage.v2.ContentRange.getDefaultInstance()
        : contentRange_;
  }

  public static final int METADATA_FIELD_NUMBER = 4;
  private com.google.storage.v2.Object metadata_;

  /**
   *
   *
   * <pre>
   * Metadata of the object whose media is being returned.
   * Only populated in the first response in the stream.
   * </pre>
   *
   * <code>.google.storage.v2.Object metadata = 4;</code>
   *
   * @return Whether the metadata field is set.
   */
  @java.lang.Override
  public boolean hasMetadata() {
    return ((bitField0_ & 0x00000008) != 0);
  }

  /**
   *
   *
   * <pre>
   * Metadata of the object whose media is being returned.
   * Only populated in the first response in the stream.
   * </pre>
   *
   * <code>.google.storage.v2.Object metadata = 4;</code>
   *
   * @return The metadata.
   */
  @java.lang.Override
  public com.google.storage.v2.Object getMetadata() {
    return metadata_ == null ? com.google.storage.v2.Object.getDefaultInstance() : metadata_;
  }

  /**
   *
   *
   * <pre>
   * Metadata of the object whose media is being returned.
   * Only populated in the first response in the stream.
   * </pre>
   *
   * <code>.google.storage.v2.Object metadata = 4;</code>
   */
  @java.lang.Override
  public com.google.storage.v2.ObjectOrBuilder getMetadataOrBuilder() {
    return metadata_ == null ? com.google.storage.v2.Object.getDefaultInstance() : metadata_;
  }

  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, getChecksummedData());
    }
    if (((bitField0_ & 0x00000002) != 0)) {
      output.writeMessage(2, getObjectChecksums());
    }
    if (((bitField0_ & 0x00000004) != 0)) {
      output.writeMessage(3, getContentRange());
    }
    if (((bitField0_ & 0x00000008) != 0)) {
      output.writeMessage(4, getMetadata());
    }
    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, getChecksummedData());
    }
    if (((bitField0_ & 0x00000002) != 0)) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getObjectChecksums());
    }
    if (((bitField0_ & 0x00000004) != 0)) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getContentRange());
    }
    if (((bitField0_ & 0x00000008) != 0)) {
      size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getMetadata());
    }
    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.v2.ReadObjectResponse)) {
      return super.equals(obj);
    }
    com.google.storage.v2.ReadObjectResponse other = (com.google.storage.v2.ReadObjectResponse) obj;

    if (hasChecksummedData() != other.hasChecksummedData()) return false;
    if (hasChecksummedData()) {
      if (!getChecksummedData().equals(other.getChecksummedData())) return false;
    }
    if (hasObjectChecksums() != other.hasObjectChecksums()) return false;
    if (hasObjectChecksums()) {
      if (!getObjectChecksums().equals(other.getObjectChecksums())) return false;
    }
    if (hasContentRange() != other.hasContentRange()) return false;
    if (hasContentRange()) {
      if (!getContentRange().equals(other.getContentRange())) return false;
    }
    if (hasMetadata() != other.hasMetadata()) return false;
    if (hasMetadata()) {
      if (!getMetadata().equals(other.getMetadata())) 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 (hasChecksummedData()) {
      hash = (37 * hash) + CHECKSUMMED_DATA_FIELD_NUMBER;
      hash = (53 * hash) + getChecksummedData().hashCode();
    }
    if (hasObjectChecksums()) {
      hash = (37 * hash) + OBJECT_CHECKSUMS_FIELD_NUMBER;
      hash = (53 * hash) + getObjectChecksums().hashCode();
    }
    if (hasContentRange()) {
      hash = (37 * hash) + CONTENT_RANGE_FIELD_NUMBER;
      hash = (53 * hash) + getContentRange().hashCode();
    }
    if (hasMetadata()) {
      hash = (37 * hash) + METADATA_FIELD_NUMBER;
      hash = (53 * hash) + getMetadata().hashCode();
    }
    hash = (29 * hash) + getUnknownFields().hashCode();
    memoizedHashCode = hash;
    return hash;
  }

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

  public static com.google.storage.v2.ReadObjectResponse 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.v2.ReadObjectResponse parseFrom(
      com.google.protobuf.ByteString data)
      throws com.google.protobuf.InvalidProtocolBufferException {
    return PARSER.parseFrom(data);
  }

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

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

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

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

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

  public static com.google.storage.v2.ReadObjectResponse 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.v2.ReadObjectResponse 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>
   * Response message for [ReadObject][google.storage.v2.Storage.ReadObject].
   * </pre>
   *
   * Protobuf type {@code google.storage.v2.ReadObjectResponse}
   */
  public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder>
      implements
      // @@protoc_insertion_point(builder_implements:google.storage.v2.ReadObjectResponse)
      com.google.storage.v2.ReadObjectResponseOrBuilder {
    public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
      return com.google.storage.v2.StorageProto
          .internal_static_google_storage_v2_ReadObjectResponse_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return com.google.storage.v2.StorageProto
          .internal_static_google_storage_v2_ReadObjectResponse_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              com.google.storage.v2.ReadObjectResponse.class,
              com.google.storage.v2.ReadObjectResponse.Builder.class);
    }

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

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

    private void maybeForceBuilderInitialization() {
      if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
        internalGetChecksummedDataFieldBuilder();
        internalGetObjectChecksumsFieldBuilder();
        internalGetContentRangeFieldBuilder();
        internalGetMetadataFieldBuilder();
      }
    }

    @java.lang.Override
    public Builder clear() {
      super.clear();
      bitField0_ = 0;
      checksummedData_ = null;
      if (checksummedDataBuilder_ != null) {
        checksummedDataBuilder_.dispose();
        checksummedDataBuilder_ = null;
      }
      objectChecksums_ = null;
      if (objectChecksumsBuilder_ != null) {
        objectChecksumsBuilder_.dispose();
        objectChecksumsBuilder_ = null;
      }
      contentRange_ = null;
      if (contentRangeBuilder_ != null) {
        contentRangeBuilder_.dispose();
        contentRangeBuilder_ = null;
      }
      metadata_ = null;
      if (metadataBuilder_ != null) {
        metadataBuilder_.dispose();
        metadataBuilder_ = null;
      }
      return this;
    }

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

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

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

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

    private void buildPartial0(com.google.storage.v2.ReadObjectResponse result) {
      int from_bitField0_ = bitField0_;
      int to_bitField0_ = 0;
      if (((from_bitField0_ & 0x00000001) != 0)) {
        result.checksummedData_ =
            checksummedDataBuilder_ == null ? checksummedData_ : checksummedDataBuilder_.build();
        to_bitField0_ |= 0x00000001;
      }
      if (((from_bitField0_ & 0x00000002) != 0)) {
        result.objectChecksums_ =
            objectChecksumsBuilder_ == null ? objectChecksums_ : objectChecksumsBuilder_.build();
        to_bitField0_ |= 0x00000002;
      }
      if (((from_bitField0_ & 0x00000004) != 0)) {
        result.contentRange_ =
            contentRangeBuilder_ == null ? contentRange_ : contentRangeBuilder_.build();
        to_bitField0_ |= 0x00000004;
      }
      if (((from_bitField0_ & 0x00000008) != 0)) {
        result.metadata_ = metadataBuilder_ == null ? metadata_ : metadataBuilder_.build();
        to_bitField0_ |= 0x00000008;
      }
      result.bitField0_ |= to_bitField0_;
    }

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

    public Builder mergeFrom(com.google.storage.v2.ReadObjectResponse other) {
      if (other == com.google.storage.v2.ReadObjectResponse.getDefaultInstance()) return this;
      if (other.hasChecksummedData()) {
        mergeChecksummedData(other.getChecksummedData());
      }
      if (other.hasObjectChecksums()) {
        mergeObjectChecksums(other.getObjectChecksums());
      }
      if (other.hasContentRange()) {
        mergeContentRange(other.getContentRange());
      }
      if (other.hasMetadata()) {
        mergeMetadata(other.getMetadata());
      }
      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(
                    internalGetChecksummedDataFieldBuilder().getBuilder(), extensionRegistry);
                bitField0_ |= 0x00000001;
                break;
              } // case 10
            case 18:
              {
                input.readMessage(
                    internalGetObjectChecksumsFieldBuilder().getBuilder(), extensionRegistry);
                bitField0_ |= 0x00000002;
                break;
              } // case 18
            case 26:
              {
                input.readMessage(
                    internalGetContentRangeFieldBuilder().getBuilder(), extensionRegistry);
                bitField0_ |= 0x00000004;
                break;
              } // case 26
            case 34:
              {
                input.readMessage(
                    internalGetMetadataFieldBuilder().getBuilder(), extensionRegistry);
                bitField0_ |= 0x00000008;
                break;
              } // case 34
            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.v2.ChecksummedData checksummedData_;
    private com.google.protobuf.SingleFieldBuilder<
            com.google.storage.v2.ChecksummedData,
            com.google.storage.v2.ChecksummedData.Builder,
            com.google.storage.v2.ChecksummedDataOrBuilder>
        checksummedDataBuilder_;

    /**
     *
     *
     * <pre>
     * A portion of the data for the object. The service might leave `data`
     * empty for any given `ReadResponse`. This enables the service to inform the
     * client that the request is still live while it is running an operation to
     * generate more data.
     * </pre>
     *
     * <code>.google.storage.v2.ChecksummedData checksummed_data = 1;</code>
     *
     * @return Whether the checksummedData field is set.
     */
    public boolean hasChecksummedData() {
      return ((bitField0_ & 0x00000001) != 0);
    }

    /**
     *
     *
     * <pre>
     * A portion of the data for the object. The service might leave `data`
     * empty for any given `ReadResponse`. This enables the service to inform the
     * client that the request is still live while it is running an operation to
     * generate more data.
     * </pre>
     *
     * <code>.google.storage.v2.ChecksummedData checksummed_data = 1;</code>
     *
     * @return The checksummedData.
     */
    public com.google.storage.v2.ChecksummedData getChecksummedData() {
      if (checksummedDataBuilder_ == null) {
        return checksummedData_ == null
            ? com.google.storage.v2.ChecksummedData.getDefaultInstance()
            : checksummedData_;
      } else {
        return checksummedDataBuilder_.getMessage();
      }
    }

    /**
     *
     *
     * <pre>
     * A portion of the data for the object. The service might leave `data`
     * empty for any given `ReadResponse`. This enables the service to inform the
     * client that the request is still live while it is running an operation to
     * generate more data.
     * </pre>
     *
     * <code>.google.storage.v2.ChecksummedData checksummed_data = 1;</code>
     */
    public Builder setChecksummedData(com.google.storage.v2.ChecksummedData value) {
      if (checksummedDataBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        checksummedData_ = value;
      } else {
        checksummedDataBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }

    /**
     *
     *
     * <pre>
     * A portion of the data for the object. The service might leave `data`
     * empty for any given `ReadResponse`. This enables the service to inform the
     * client that the request is still live while it is running an operation to
     * generate more data.
     * </pre>
     *
     * <code>.google.storage.v2.ChecksummedData checksummed_data = 1;</code>
     */
    public Builder setChecksummedData(
        com.google.storage.v2.ChecksummedData.Builder builderForValue) {
      if (checksummedDataBuilder_ == null) {
        checksummedData_ = builderForValue.build();
      } else {
        checksummedDataBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000001;
      onChanged();
      return this;
    }

    /**
     *
     *
     * <pre>
     * A portion of the data for the object. The service might leave `data`
     * empty for any given `ReadResponse`. This enables the service to inform the
     * client that the request is still live while it is running an operation to
     * generate more data.
     * </pre>
     *
     * <code>.google.storage.v2.ChecksummedData checksummed_data = 1;</code>
     */
    public Builder mergeChecksummedData(com.google.storage.v2.ChecksummedData value) {
      if (checksummedDataBuilder_ == null) {
        if (((bitField0_ & 0x00000001) != 0)
            && checksummedData_ != null
            && checksummedData_ != com.google.storage.v2.ChecksummedData.getDefaultInstance()) {
          getChecksummedDataBuilder().mergeFrom(value);
        } else {
          checksummedData_ = value;
        }
      } else {
        checksummedDataBuilder_.mergeFrom(value);
      }
      if (checksummedData_ != null) {
        bitField0_ |= 0x00000001;
        onChanged();
      }
      return this;
    }

    /**
     *
     *
     * <pre>
     * A portion of the data for the object. The service might leave `data`
     * empty for any given `ReadResponse`. This enables the service to inform the
     * client that the request is still live while it is running an operation to
     * generate more data.
     * </pre>
     *
     * <code>.google.storage.v2.ChecksummedData checksummed_data = 1;</code>
     */
    public Builder clearChecksummedData() {
      bitField0_ = (bitField0_ & ~0x00000001);
      checksummedData_ = null;
      if (checksummedDataBuilder_ != null) {
        checksummedDataBuilder_.dispose();
        checksummedDataBuilder_ = null;
      }
      onChanged();
      return this;
    }

    /**
     *
     *
     * <pre>
     * A portion of the data for the object. The service might leave `data`
     * empty for any given `ReadResponse`. This enables the service to inform the
     * client that the request is still live while it is running an operation to
     * generate more data.
     * </pre>
     *
     * <code>.google.storage.v2.ChecksummedData checksummed_data = 1;</code>
     */
    public com.google.storage.v2.ChecksummedData.Builder getChecksummedDataBuilder() {
      bitField0_ |= 0x00000001;
      onChanged();
      return internalGetChecksummedDataFieldBuilder().getBuilder();
    }

    /**
     *
     *
     * <pre>
     * A portion of the data for the object. The service might leave `data`
     * empty for any given `ReadResponse`. This enables the service to inform the
     * client that the request is still live while it is running an operation to
     * generate more data.
     * </pre>
     *
     * <code>.google.storage.v2.ChecksummedData checksummed_data = 1;</code>
     */
    public com.google.storage.v2.ChecksummedDataOrBuilder getChecksummedDataOrBuilder() {
      if (checksummedDataBuilder_ != null) {
        return checksummedDataBuilder_.getMessageOrBuilder();
      } else {
        return checksummedData_ == null
            ? com.google.storage.v2.ChecksummedData.getDefaultInstance()
            : checksummedData_;
      }
    }

    /**
     *
     *
     * <pre>
     * A portion of the data for the object. The service might leave `data`
     * empty for any given `ReadResponse`. This enables the service to inform the
     * client that the request is still live while it is running an operation to
     * generate more data.
     * </pre>
     *
     * <code>.google.storage.v2.ChecksummedData checksummed_data = 1;</code>
     */
    private com.google.protobuf.SingleFieldBuilder<
            com.google.storage.v2.ChecksummedData,
            com.google.storage.v2.ChecksummedData.Builder,
            com.google.storage.v2.ChecksummedDataOrBuilder>
        internalGetChecksummedDataFieldBuilder() {
      if (checksummedDataBuilder_ == null) {
        checksummedDataBuilder_ =
            new com.google.protobuf.SingleFieldBuilder<
                com.google.storage.v2.ChecksummedData,
                com.google.storage.v2.ChecksummedData.Builder,
                com.google.storage.v2.ChecksummedDataOrBuilder>(
                getChecksummedData(), getParentForChildren(), isClean());
        checksummedData_ = null;
      }
      return checksummedDataBuilder_;
    }

    private com.google.storage.v2.ObjectChecksums objectChecksums_;
    private com.google.protobuf.SingleFieldBuilder<
            com.google.storage.v2.ObjectChecksums,
            com.google.storage.v2.ObjectChecksums.Builder,
            com.google.storage.v2.ObjectChecksumsOrBuilder>
        objectChecksumsBuilder_;

    /**
     *
     *
     * <pre>
     * The checksums of the complete object. If the object is downloaded in full,
     * the client should compute one of these checksums over the downloaded object
     * and compare it against the value provided here.
     * </pre>
     *
     * <code>.google.storage.v2.ObjectChecksums object_checksums = 2;</code>
     *
     * @return Whether the objectChecksums field is set.
     */
    public boolean hasObjectChecksums() {
      return ((bitField0_ & 0x00000002) != 0);
    }

    /**
     *
     *
     * <pre>
     * The checksums of the complete object. If the object is downloaded in full,
     * the client should compute one of these checksums over the downloaded object
     * and compare it against the value provided here.
     * </pre>
     *
     * <code>.google.storage.v2.ObjectChecksums object_checksums = 2;</code>
     *
     * @return The objectChecksums.
     */
    public com.google.storage.v2.ObjectChecksums getObjectChecksums() {
      if (objectChecksumsBuilder_ == null) {
        return objectChecksums_ == null
            ? com.google.storage.v2.ObjectChecksums.getDefaultInstance()
            : objectChecksums_;
      } else {
        return objectChecksumsBuilder_.getMessage();
      }
    }

    /**
     *
     *
     * <pre>
     * The checksums of the complete object. If the object is downloaded in full,
     * the client should compute one of these checksums over the downloaded object
     * and compare it against the value provided here.
     * </pre>
     *
     * <code>.google.storage.v2.ObjectChecksums object_checksums = 2;</code>
     */
    public Builder setObjectChecksums(com.google.storage.v2.ObjectChecksums value) {
      if (objectChecksumsBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        objectChecksums_ = value;
      } else {
        objectChecksumsBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000002;
      onChanged();
      return this;
    }

    /**
     *
     *
     * <pre>
     * The checksums of the complete object. If the object is downloaded in full,
     * the client should compute one of these checksums over the downloaded object
     * and compare it against the value provided here.
     * </pre>
     *
     * <code>.google.storage.v2.ObjectChecksums object_checksums = 2;</code>
     */
    public Builder setObjectChecksums(
        com.google.storage.v2.ObjectChecksums.Builder builderForValue) {
      if (objectChecksumsBuilder_ == null) {
        objectChecksums_ = builderForValue.build();
      } else {
        objectChecksumsBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000002;
      onChanged();
      return this;
    }

    /**
     *
     *
     * <pre>
     * The checksums of the complete object. If the object is downloaded in full,
     * the client should compute one of these checksums over the downloaded object
     * and compare it against the value provided here.
     * </pre>
     *
     * <code>.google.storage.v2.ObjectChecksums object_checksums = 2;</code>
     */
    public Builder mergeObjectChecksums(com.google.storage.v2.ObjectChecksums value) {
      if (objectChecksumsBuilder_ == null) {
        if (((bitField0_ & 0x00000002) != 0)
            && objectChecksums_ != null
            && objectChecksums_ != com.google.storage.v2.ObjectChecksums.getDefaultInstance()) {
          getObjectChecksumsBuilder().mergeFrom(value);
        } else {
          objectChecksums_ = value;
        }
      } else {
        objectChecksumsBuilder_.mergeFrom(value);
      }
      if (objectChecksums_ != null) {
        bitField0_ |= 0x00000002;
        onChanged();
      }
      return this;
    }

    /**
     *
     *
     * <pre>
     * The checksums of the complete object. If the object is downloaded in full,
     * the client should compute one of these checksums over the downloaded object
     * and compare it against the value provided here.
     * </pre>
     *
     * <code>.google.storage.v2.ObjectChecksums object_checksums = 2;</code>
     */
    public Builder clearObjectChecksums() {
      bitField0_ = (bitField0_ & ~0x00000002);
      objectChecksums_ = null;
      if (objectChecksumsBuilder_ != null) {
        objectChecksumsBuilder_.dispose();
        objectChecksumsBuilder_ = null;
      }
      onChanged();
      return this;
    }

    /**
     *
     *
     * <pre>
     * The checksums of the complete object. If the object is downloaded in full,
     * the client should compute one of these checksums over the downloaded object
     * and compare it against the value provided here.
     * </pre>
     *
     * <code>.google.storage.v2.ObjectChecksums object_checksums = 2;</code>
     */
    public com.google.storage.v2.ObjectChecksums.Builder getObjectChecksumsBuilder() {
      bitField0_ |= 0x00000002;
      onChanged();
      return internalGetObjectChecksumsFieldBuilder().getBuilder();
    }

    /**
     *
     *
     * <pre>
     * The checksums of the complete object. If the object is downloaded in full,
     * the client should compute one of these checksums over the downloaded object
     * and compare it against the value provided here.
     * </pre>
     *
     * <code>.google.storage.v2.ObjectChecksums object_checksums = 2;</code>
     */
    public com.google.storage.v2.ObjectChecksumsOrBuilder getObjectChecksumsOrBuilder() {
      if (objectChecksumsBuilder_ != null) {
        return objectChecksumsBuilder_.getMessageOrBuilder();
      } else {
        return objectChecksums_ == null
            ? com.google.storage.v2.ObjectChecksums.getDefaultInstance()
            : objectChecksums_;
      }
    }

    /**
     *
     *
     * <pre>
     * The checksums of the complete object. If the object is downloaded in full,
     * the client should compute one of these checksums over the downloaded object
     * and compare it against the value provided here.
     * </pre>
     *
     * <code>.google.storage.v2.ObjectChecksums object_checksums = 2;</code>
     */
    private com.google.protobuf.SingleFieldBuilder<
            com.google.storage.v2.ObjectChecksums,
            com.google.storage.v2.ObjectChecksums.Builder,
            com.google.storage.v2.ObjectChecksumsOrBuilder>
        internalGetObjectChecksumsFieldBuilder() {
      if (objectChecksumsBuilder_ == null) {
        objectChecksumsBuilder_ =
            new com.google.protobuf.SingleFieldBuilder<
                com.google.storage.v2.ObjectChecksums,
                com.google.storage.v2.ObjectChecksums.Builder,
                com.google.storage.v2.ObjectChecksumsOrBuilder>(
                getObjectChecksums(), getParentForChildren(), isClean());
        objectChecksums_ = null;
      }
      return objectChecksumsBuilder_;
    }

    private com.google.storage.v2.ContentRange contentRange_;
    private com.google.protobuf.SingleFieldBuilder<
            com.google.storage.v2.ContentRange,
            com.google.storage.v2.ContentRange.Builder,
            com.google.storage.v2.ContentRangeOrBuilder>
        contentRangeBuilder_;

    /**
     *
     *
     * <pre>
     * If `read_offset` and or `read_limit` is specified on the
     * `ReadObjectRequest`, `ContentRange` is populated on the first
     * `ReadObjectResponse` message of the read stream.
     * </pre>
     *
     * <code>.google.storage.v2.ContentRange content_range = 3;</code>
     *
     * @return Whether the contentRange field is set.
     */
    public boolean hasContentRange() {
      return ((bitField0_ & 0x00000004) != 0);
    }

    /**
     *
     *
     * <pre>
     * If `read_offset` and or `read_limit` is specified on the
     * `ReadObjectRequest`, `ContentRange` is populated on the first
     * `ReadObjectResponse` message of the read stream.
     * </pre>
     *
     * <code>.google.storage.v2.ContentRange content_range = 3;</code>
     *
     * @return The contentRange.
     */
    public com.google.storage.v2.ContentRange getContentRange() {
      if (contentRangeBuilder_ == null) {
        return contentRange_ == null
            ? com.google.storage.v2.ContentRange.getDefaultInstance()
            : contentRange_;
      } else {
        return contentRangeBuilder_.getMessage();
      }
    }

    /**
     *
     *
     * <pre>
     * If `read_offset` and or `read_limit` is specified on the
     * `ReadObjectRequest`, `ContentRange` is populated on the first
     * `ReadObjectResponse` message of the read stream.
     * </pre>
     *
     * <code>.google.storage.v2.ContentRange content_range = 3;</code>
     */
    public Builder setContentRange(com.google.storage.v2.ContentRange value) {
      if (contentRangeBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        contentRange_ = value;
      } else {
        contentRangeBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000004;
      onChanged();
      return this;
    }

    /**
     *
     *
     * <pre>
     * If `read_offset` and or `read_limit` is specified on the
     * `ReadObjectRequest`, `ContentRange` is populated on the first
     * `ReadObjectResponse` message of the read stream.
     * </pre>
     *
     * <code>.google.storage.v2.ContentRange content_range = 3;</code>
     */
    public Builder setContentRange(com.google.storage.v2.ContentRange.Builder builderForValue) {
      if (contentRangeBuilder_ == null) {
        contentRange_ = builderForValue.build();
      } else {
        contentRangeBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000004;
      onChanged();
      return this;
    }

    /**
     *
     *
     * <pre>
     * If `read_offset` and or `read_limit` is specified on the
     * `ReadObjectRequest`, `ContentRange` is populated on the first
     * `ReadObjectResponse` message of the read stream.
     * </pre>
     *
     * <code>.google.storage.v2.ContentRange content_range = 3;</code>
     */
    public Builder mergeContentRange(com.google.storage.v2.ContentRange value) {
      if (contentRangeBuilder_ == null) {
        if (((bitField0_ & 0x00000004) != 0)
            && contentRange_ != null
            && contentRange_ != com.google.storage.v2.ContentRange.getDefaultInstance()) {
          getContentRangeBuilder().mergeFrom(value);
        } else {
          contentRange_ = value;
        }
      } else {
        contentRangeBuilder_.mergeFrom(value);
      }
      if (contentRange_ != null) {
        bitField0_ |= 0x00000004;
        onChanged();
      }
      return this;
    }

    /**
     *
     *
     * <pre>
     * If `read_offset` and or `read_limit` is specified on the
     * `ReadObjectRequest`, `ContentRange` is populated on the first
     * `ReadObjectResponse` message of the read stream.
     * </pre>
     *
     * <code>.google.storage.v2.ContentRange content_range = 3;</code>
     */
    public Builder clearContentRange() {
      bitField0_ = (bitField0_ & ~0x00000004);
      contentRange_ = null;
      if (contentRangeBuilder_ != null) {
        contentRangeBuilder_.dispose();
        contentRangeBuilder_ = null;
      }
      onChanged();
      return this;
    }

    /**
     *
     *
     * <pre>
     * If `read_offset` and or `read_limit` is specified on the
     * `ReadObjectRequest`, `ContentRange` is populated on the first
     * `ReadObjectResponse` message of the read stream.
     * </pre>
     *
     * <code>.google.storage.v2.ContentRange content_range = 3;</code>
     */
    public com.google.storage.v2.ContentRange.Builder getContentRangeBuilder() {
      bitField0_ |= 0x00000004;
      onChanged();
      return internalGetContentRangeFieldBuilder().getBuilder();
    }

    /**
     *
     *
     * <pre>
     * If `read_offset` and or `read_limit` is specified on the
     * `ReadObjectRequest`, `ContentRange` is populated on the first
     * `ReadObjectResponse` message of the read stream.
     * </pre>
     *
     * <code>.google.storage.v2.ContentRange content_range = 3;</code>
     */
    public com.google.storage.v2.ContentRangeOrBuilder getContentRangeOrBuilder() {
      if (contentRangeBuilder_ != null) {
        return contentRangeBuilder_.getMessageOrBuilder();
      } else {
        return contentRange_ == null
            ? com.google.storage.v2.ContentRange.getDefaultInstance()
            : contentRange_;
      }
    }

    /**
     *
     *
     * <pre>
     * If `read_offset` and or `read_limit` is specified on the
     * `ReadObjectRequest`, `ContentRange` is populated on the first
     * `ReadObjectResponse` message of the read stream.
     * </pre>
     *
     * <code>.google.storage.v2.ContentRange content_range = 3;</code>
     */
    private com.google.protobuf.SingleFieldBuilder<
            com.google.storage.v2.ContentRange,
            com.google.storage.v2.ContentRange.Builder,
            com.google.storage.v2.ContentRangeOrBuilder>
        internalGetContentRangeFieldBuilder() {
      if (contentRangeBuilder_ == null) {
        contentRangeBuilder_ =
            new com.google.protobuf.SingleFieldBuilder<
                com.google.storage.v2.ContentRange,
                com.google.storage.v2.ContentRange.Builder,
                com.google.storage.v2.ContentRangeOrBuilder>(
                getContentRange(), getParentForChildren(), isClean());
        contentRange_ = null;
      }
      return contentRangeBuilder_;
    }

    private com.google.storage.v2.Object metadata_;
    private com.google.protobuf.SingleFieldBuilder<
            com.google.storage.v2.Object,
            com.google.storage.v2.Object.Builder,
            com.google.storage.v2.ObjectOrBuilder>
        metadataBuilder_;

    /**
     *
     *
     * <pre>
     * Metadata of the object whose media is being returned.
     * Only populated in the first response in the stream.
     * </pre>
     *
     * <code>.google.storage.v2.Object metadata = 4;</code>
     *
     * @return Whether the metadata field is set.
     */
    public boolean hasMetadata() {
      return ((bitField0_ & 0x00000008) != 0);
    }

    /**
     *
     *
     * <pre>
     * Metadata of the object whose media is being returned.
     * Only populated in the first response in the stream.
     * </pre>
     *
     * <code>.google.storage.v2.Object metadata = 4;</code>
     *
     * @return The metadata.
     */
    public com.google.storage.v2.Object getMetadata() {
      if (metadataBuilder_ == null) {
        return metadata_ == null ? com.google.storage.v2.Object.getDefaultInstance() : metadata_;
      } else {
        return metadataBuilder_.getMessage();
      }
    }

    /**
     *
     *
     * <pre>
     * Metadata of the object whose media is being returned.
     * Only populated in the first response in the stream.
     * </pre>
     *
     * <code>.google.storage.v2.Object metadata = 4;</code>
     */
    public Builder setMetadata(com.google.storage.v2.Object value) {
      if (metadataBuilder_ == null) {
        if (value == null) {
          throw new NullPointerException();
        }
        metadata_ = value;
      } else {
        metadataBuilder_.setMessage(value);
      }
      bitField0_ |= 0x00000008;
      onChanged();
      return this;
    }

    /**
     *
     *
     * <pre>
     * Metadata of the object whose media is being returned.
     * Only populated in the first response in the stream.
     * </pre>
     *
     * <code>.google.storage.v2.Object metadata = 4;</code>
     */
    public Builder setMetadata(com.google.storage.v2.Object.Builder builderForValue) {
      if (metadataBuilder_ == null) {
        metadata_ = builderForValue.build();
      } else {
        metadataBuilder_.setMessage(builderForValue.build());
      }
      bitField0_ |= 0x00000008;
      onChanged();
      return this;
    }

    /**
     *
     *
     * <pre>
     * Metadata of the object whose media is being returned.
     * Only populated in the first response in the stream.
     * </pre>
     *
     * <code>.google.storage.v2.Object metadata = 4;</code>
     */
    public Builder mergeMetadata(com.google.storage.v2.Object value) {
      if (metadataBuilder_ == null) {
        if (((bitField0_ & 0x00000008) != 0)
            && metadata_ != null
            && metadata_ != com.google.storage.v2.Object.getDefaultInstance()) {
          getMetadataBuilder().mergeFrom(value);
        } else {
          metadata_ = value;
        }
      } else {
        metadataBuilder_.mergeFrom(value);
      }
      if (metadata_ != null) {
        bitField0_ |= 0x00000008;
        onChanged();
      }
      return this;
    }

    /**
     *
     *
     * <pre>
     * Metadata of the object whose media is being returned.
     * Only populated in the first response in the stream.
     * </pre>
     *
     * <code>.google.storage.v2.Object metadata = 4;</code>
     */
    public Builder clearMetadata() {
      bitField0_ = (bitField0_ & ~0x00000008);
      metadata_ = null;
      if (metadataBuilder_ != null) {
        metadataBuilder_.dispose();
        metadataBuilder_ = null;
      }
      onChanged();
      return this;
    }

    /**
     *
     *
     * <pre>
     * Metadata of the object whose media is being returned.
     * Only populated in the first response in the stream.
     * </pre>
     *
     * <code>.google.storage.v2.Object metadata = 4;</code>
     */
    public com.google.storage.v2.Object.Builder getMetadataBuilder() {
      bitField0_ |= 0x00000008;
      onChanged();
      return internalGetMetadataFieldBuilder().getBuilder();
    }

    /**
     *
     *
     * <pre>
     * Metadata of the object whose media is being returned.
     * Only populated in the first response in the stream.
     * </pre>
     *
     * <code>.google.storage.v2.Object metadata = 4;</code>
     */
    public com.google.storage.v2.ObjectOrBuilder getMetadataOrBuilder() {
      if (metadataBuilder_ != null) {
        return metadataBuilder_.getMessageOrBuilder();
      } else {
        return metadata_ == null ? com.google.storage.v2.Object.getDefaultInstance() : metadata_;
      }
    }

    /**
     *
     *
     * <pre>
     * Metadata of the object whose media is being returned.
     * Only populated in the first response in the stream.
     * </pre>
     *
     * <code>.google.storage.v2.Object metadata = 4;</code>
     */
    private com.google.protobuf.SingleFieldBuilder<
            com.google.storage.v2.Object,
            com.google.storage.v2.Object.Builder,
            com.google.storage.v2.ObjectOrBuilder>
        internalGetMetadataFieldBuilder() {
      if (metadataBuilder_ == null) {
        metadataBuilder_ =
            new com.google.protobuf.SingleFieldBuilder<
                com.google.storage.v2.Object,
                com.google.storage.v2.Object.Builder,
                com.google.storage.v2.ObjectOrBuilder>(
                getMetadata(), getParentForChildren(), isClean());
        metadata_ = null;
      }
      return metadataBuilder_;
    }

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

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

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

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

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

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

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