// Copyright 2023 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
//
//     http://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.

syntax = "proto3";

package google.cloud.translation.v3;

import "google/api/field_behavior.proto";

option cc_enable_arenas = true;
option csharp_namespace = "Google.Cloud.Translate.V3";
option go_package = "cloud.google.com/go/translate/apiv3/translatepb;translatepb";
option java_multiple_files = true;
option java_outer_classname = "CommonProto";
option java_package = "com.google.cloud.translate.v3";
option php_namespace = "Google\\Cloud\\Translate\\V3";
option ruby_package = "Google::Cloud::Translate::V3";

// The Google Cloud Storage location for the input content.
message GcsInputSource {
  // Required. Source data URI. For example, `gs://my_bucket/my_object`.
  string input_uri = 1 [(google.api.field_behavior) = REQUIRED];
}

// An inlined file.
message FileInputSource {
  // Required. The file's mime type.
  string mime_type = 1 [(google.api.field_behavior) = REQUIRED];

  // Required. The file's byte contents.
  bytes content = 2 [(google.api.field_behavior) = REQUIRED];

  // Required. The file's display name.
  string display_name = 3 [(google.api.field_behavior) = REQUIRED];
}

// The Google Cloud Storage location for the output content.
message GcsOutputDestination {
  // Required. Google Cloud Storage URI to output directory. For example,
  // `gs://bucket/directory`. The requesting user must have write permission to
  // the bucket. The directory will be created if it doesn't exist.
  string output_uri_prefix = 1 [(google.api.field_behavior) = REQUIRED];
}
