Cloud Translation V3 API - Class Google::Cloud::Translate::V3::ImportAdaptiveMtFileRequest (v1.4.0)

Reference documentation and code samples for the Cloud Translation V3 API class Google::Cloud::Translate::V3::ImportAdaptiveMtFileRequest.

The request for importing an AdaptiveMt file along with its sentences.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#file_input_source

def file_input_source() -> ::Google::Cloud::Translate::V3::FileInputSource
Returns
  • (::Google::Cloud::Translate::V3::FileInputSource) — Inline file source.

    Note: The following fields are mutually exclusive: file_input_source, gcs_input_source. If a field in that set is populated, all other fields in the set will automatically be cleared.

#file_input_source=

def file_input_source=(value) -> ::Google::Cloud::Translate::V3::FileInputSource
Parameter
  • value (::Google::Cloud::Translate::V3::FileInputSource) — Inline file source.

    Note: The following fields are mutually exclusive: file_input_source, gcs_input_source. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns
  • (::Google::Cloud::Translate::V3::FileInputSource) — Inline file source.

    Note: The following fields are mutually exclusive: file_input_source, gcs_input_source. If a field in that set is populated, all other fields in the set will automatically be cleared.

#gcs_input_source

def gcs_input_source() -> ::Google::Cloud::Translate::V3::GcsInputSource
Returns
  • (::Google::Cloud::Translate::V3::GcsInputSource) — Google Cloud Storage file source.

    Note: The following fields are mutually exclusive: gcs_input_source, file_input_source. If a field in that set is populated, all other fields in the set will automatically be cleared.

#gcs_input_source=

def gcs_input_source=(value) -> ::Google::Cloud::Translate::V3::GcsInputSource
Parameter
  • value (::Google::Cloud::Translate::V3::GcsInputSource) — Google Cloud Storage file source.

    Note: The following fields are mutually exclusive: gcs_input_source, file_input_source. If a field in that set is populated, all other fields in the set will automatically be cleared.

Returns
  • (::Google::Cloud::Translate::V3::GcsInputSource) — Google Cloud Storage file source.

    Note: The following fields are mutually exclusive: gcs_input_source, file_input_source. If a field in that set is populated, all other fields in the set will automatically be cleared.

#parent

def parent() -> ::String
Returns
  • (::String) — Required. The resource name of the file, in form of projects/{project-number-or-id}/locations/{location_id}/adaptiveMtDatasets/{dataset}

#parent=

def parent=(value) -> ::String
Parameter
  • value (::String) — Required. The resource name of the file, in form of projects/{project-number-or-id}/locations/{location_id}/adaptiveMtDatasets/{dataset}
Returns
  • (::String) — Required. The resource name of the file, in form of projects/{project-number-or-id}/locations/{location_id}/adaptiveMtDatasets/{dataset}