Google Cloud Translation v3 API - Class AdaptiveMtTranslateRequest (3.8.0)

public sealed class AdaptiveMtTranslateRequest : IMessage<AdaptiveMtTranslateRequest>, IEquatable<AdaptiveMtTranslateRequest>, IDeepCloneable<AdaptiveMtTranslateRequest>, IBufferMessage, IMessage

Reference documentation and code samples for the Google Cloud Translation v3 API class AdaptiveMtTranslateRequest.

The request for sending an AdaptiveMt translation query.

Inheritance

object > AdaptiveMtTranslateRequest

Namespace

Google.Cloud.Translate.V3

Assembly

Google.Cloud.Translate.V3.dll

Constructors

AdaptiveMtTranslateRequest()

public AdaptiveMtTranslateRequest()

AdaptiveMtTranslateRequest(AdaptiveMtTranslateRequest)

public AdaptiveMtTranslateRequest(AdaptiveMtTranslateRequest other)
Parameter
Name Description
other AdaptiveMtTranslateRequest

Properties

Content

public RepeatedField<string> Content { get; }

Required. The content of the input in string format.

Property Value
Type Description
RepeatedFieldstring

Dataset

public string Dataset { get; set; }

Required. The resource name for the dataset to use for adaptive MT. projects/{project}/locations/{location-id}/adaptiveMtDatasets/{dataset}

Property Value
Type Description
string

DatasetAsAdaptiveMtDatasetName

public AdaptiveMtDatasetName DatasetAsAdaptiveMtDatasetName { get; set; }

AdaptiveMtDatasetName-typed view over the Dataset resource name property.

Property Value
Type Description
AdaptiveMtDatasetName

GlossaryConfig

public AdaptiveMtTranslateRequest.Types.GlossaryConfig GlossaryConfig { get; set; }

Optional. Glossary to be applied. The glossary must be within the same region (have the same location-id) as the model, otherwise an INVALID_ARGUMENT (400) error is returned.

Property Value
Type Description
AdaptiveMtTranslateRequestTypesGlossaryConfig

Parent

public string Parent { get; set; }

Required. Location to make a regional call.

Format: projects/{project-number-or-id}/locations/{location-id}.

Property Value
Type Description
string

ParentAsLocationName

public LocationName ParentAsLocationName { get; set; }

LocationName-typed view over the Parent resource name property.

Property Value
Type Description
LocationName

ReferenceSentenceConfig

public AdaptiveMtTranslateRequest.Types.ReferenceSentenceConfig ReferenceSentenceConfig { get; set; }

Configuration for caller provided reference sentences.

Property Value
Type Description
AdaptiveMtTranslateRequestTypesReferenceSentenceConfig