/*
 * Copyright 2020 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!
// source: google/cloud/datastream/v1/datastream_resources.proto

package com.google.cloud.datastream.v1;

public interface GcsDestinationConfigOrBuilder
    extends
    // @@protoc_insertion_point(interface_extends:google.cloud.datastream.v1.GcsDestinationConfig)
    com.google.protobuf.MessageOrBuilder {

  /**
   *
   *
   * <pre>
   * Path inside the Cloud Storage bucket to write data to.
   * </pre>
   *
   * <code>string path = 1;</code>
   *
   * @return The path.
   */
  java.lang.String getPath();
  /**
   *
   *
   * <pre>
   * Path inside the Cloud Storage bucket to write data to.
   * </pre>
   *
   * <code>string path = 1;</code>
   *
   * @return The bytes for path.
   */
  com.google.protobuf.ByteString getPathBytes();

  /**
   *
   *
   * <pre>
   * The maximum file size to be saved in the bucket.
   * </pre>
   *
   * <code>int32 file_rotation_mb = 2;</code>
   *
   * @return The fileRotationMb.
   */
  int getFileRotationMb();

  /**
   *
   *
   * <pre>
   * The maximum duration for which new events are added before a file is
   * closed and a new file is created. Values within the range of 15-60 seconds
   * are allowed.
   * </pre>
   *
   * <code>.google.protobuf.Duration file_rotation_interval = 3;</code>
   *
   * @return Whether the fileRotationInterval field is set.
   */
  boolean hasFileRotationInterval();
  /**
   *
   *
   * <pre>
   * The maximum duration for which new events are added before a file is
   * closed and a new file is created. Values within the range of 15-60 seconds
   * are allowed.
   * </pre>
   *
   * <code>.google.protobuf.Duration file_rotation_interval = 3;</code>
   *
   * @return The fileRotationInterval.
   */
  com.google.protobuf.Duration getFileRotationInterval();
  /**
   *
   *
   * <pre>
   * The maximum duration for which new events are added before a file is
   * closed and a new file is created. Values within the range of 15-60 seconds
   * are allowed.
   * </pre>
   *
   * <code>.google.protobuf.Duration file_rotation_interval = 3;</code>
   */
  com.google.protobuf.DurationOrBuilder getFileRotationIntervalOrBuilder();

  /**
   *
   *
   * <pre>
   * AVRO file format configuration.
   * </pre>
   *
   * <code>.google.cloud.datastream.v1.AvroFileFormat avro_file_format = 100;</code>
   *
   * @return Whether the avroFileFormat field is set.
   */
  boolean hasAvroFileFormat();
  /**
   *
   *
   * <pre>
   * AVRO file format configuration.
   * </pre>
   *
   * <code>.google.cloud.datastream.v1.AvroFileFormat avro_file_format = 100;</code>
   *
   * @return The avroFileFormat.
   */
  com.google.cloud.datastream.v1.AvroFileFormat getAvroFileFormat();
  /**
   *
   *
   * <pre>
   * AVRO file format configuration.
   * </pre>
   *
   * <code>.google.cloud.datastream.v1.AvroFileFormat avro_file_format = 100;</code>
   */
  com.google.cloud.datastream.v1.AvroFileFormatOrBuilder getAvroFileFormatOrBuilder();

  /**
   *
   *
   * <pre>
   * JSON file format configuration.
   * </pre>
   *
   * <code>.google.cloud.datastream.v1.JsonFileFormat json_file_format = 101;</code>
   *
   * @return Whether the jsonFileFormat field is set.
   */
  boolean hasJsonFileFormat();
  /**
   *
   *
   * <pre>
   * JSON file format configuration.
   * </pre>
   *
   * <code>.google.cloud.datastream.v1.JsonFileFormat json_file_format = 101;</code>
   *
   * @return The jsonFileFormat.
   */
  com.google.cloud.datastream.v1.JsonFileFormat getJsonFileFormat();
  /**
   *
   *
   * <pre>
   * JSON file format configuration.
   * </pre>
   *
   * <code>.google.cloud.datastream.v1.JsonFileFormat json_file_format = 101;</code>
   */
  com.google.cloud.datastream.v1.JsonFileFormatOrBuilder getJsonFileFormatOrBuilder();

  public com.google.cloud.datastream.v1.GcsDestinationConfig.FileFormatCase getFileFormatCase();
}
