/*
 * 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;

@com.google.protobuf.Generated
public interface BidiReadObjectRequestOrBuilder
    extends
    // @@protoc_insertion_point(interface_extends:google.storage.v2.BidiReadObjectRequest)
    com.google.protobuf.MessageOrBuilder {

  /**
   *
   *
   * <pre>
   * Optional. The first message of each stream should set this field. If this
   * is not the first message, an error is returned. Describes the object to
   * read.
   * </pre>
   *
   * <code>
   * .google.storage.v2.BidiReadObjectSpec read_object_spec = 1 [(.google.api.field_behavior) = OPTIONAL];
   * </code>
   *
   * @return Whether the readObjectSpec field is set.
   */
  boolean hasReadObjectSpec();

  /**
   *
   *
   * <pre>
   * Optional. The first message of each stream should set this field. If this
   * is not the first message, an error is returned. Describes the object to
   * read.
   * </pre>
   *
   * <code>
   * .google.storage.v2.BidiReadObjectSpec read_object_spec = 1 [(.google.api.field_behavior) = OPTIONAL];
   * </code>
   *
   * @return The readObjectSpec.
   */
  com.google.storage.v2.BidiReadObjectSpec getReadObjectSpec();

  /**
   *
   *
   * <pre>
   * Optional. The first message of each stream should set this field. If this
   * is not the first message, an error is returned. Describes the object to
   * read.
   * </pre>
   *
   * <code>
   * .google.storage.v2.BidiReadObjectSpec read_object_spec = 1 [(.google.api.field_behavior) = OPTIONAL];
   * </code>
   */
  com.google.storage.v2.BidiReadObjectSpecOrBuilder getReadObjectSpecOrBuilder();

  /**
   *
   *
   * <pre>
   * Optional. Provides a list of 0 or more (up to 100) ranges to read. If a
   * single range is large enough to require multiple responses, they are
   * delivered in increasing offset order. There are no ordering guarantees
   * across ranges. When no ranges are provided, the response message
   * doesn't  include `ObjectRangeData`. For full object downloads, the
   * offset and size can be set to `0`.
   * </pre>
   *
   * <code>
   * repeated .google.storage.v2.ReadRange read_ranges = 8 [(.google.api.field_behavior) = OPTIONAL];
   * </code>
   */
  java.util.List<com.google.storage.v2.ReadRange> getReadRangesList();

  /**
   *
   *
   * <pre>
   * Optional. Provides a list of 0 or more (up to 100) ranges to read. If a
   * single range is large enough to require multiple responses, they are
   * delivered in increasing offset order. There are no ordering guarantees
   * across ranges. When no ranges are provided, the response message
   * doesn't  include `ObjectRangeData`. For full object downloads, the
   * offset and size can be set to `0`.
   * </pre>
   *
   * <code>
   * repeated .google.storage.v2.ReadRange read_ranges = 8 [(.google.api.field_behavior) = OPTIONAL];
   * </code>
   */
  com.google.storage.v2.ReadRange getReadRanges(int index);

  /**
   *
   *
   * <pre>
   * Optional. Provides a list of 0 or more (up to 100) ranges to read. If a
   * single range is large enough to require multiple responses, they are
   * delivered in increasing offset order. There are no ordering guarantees
   * across ranges. When no ranges are provided, the response message
   * doesn't  include `ObjectRangeData`. For full object downloads, the
   * offset and size can be set to `0`.
   * </pre>
   *
   * <code>
   * repeated .google.storage.v2.ReadRange read_ranges = 8 [(.google.api.field_behavior) = OPTIONAL];
   * </code>
   */
  int getReadRangesCount();

  /**
   *
   *
   * <pre>
   * Optional. Provides a list of 0 or more (up to 100) ranges to read. If a
   * single range is large enough to require multiple responses, they are
   * delivered in increasing offset order. There are no ordering guarantees
   * across ranges. When no ranges are provided, the response message
   * doesn't  include `ObjectRangeData`. For full object downloads, the
   * offset and size can be set to `0`.
   * </pre>
   *
   * <code>
   * repeated .google.storage.v2.ReadRange read_ranges = 8 [(.google.api.field_behavior) = OPTIONAL];
   * </code>
   */
  java.util.List<? extends com.google.storage.v2.ReadRangeOrBuilder> getReadRangesOrBuilderList();

  /**
   *
   *
   * <pre>
   * Optional. Provides a list of 0 or more (up to 100) ranges to read. If a
   * single range is large enough to require multiple responses, they are
   * delivered in increasing offset order. There are no ordering guarantees
   * across ranges. When no ranges are provided, the response message
   * doesn't  include `ObjectRangeData`. For full object downloads, the
   * offset and size can be set to `0`.
   * </pre>
   *
   * <code>
   * repeated .google.storage.v2.ReadRange read_ranges = 8 [(.google.api.field_behavior) = OPTIONAL];
   * </code>
   */
  com.google.storage.v2.ReadRangeOrBuilder getReadRangesOrBuilder(int index);
}
