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.
Implements
IMessageAdaptiveMtTranslateRequest, IEquatableAdaptiveMtTranslateRequest, IDeepCloneableAdaptiveMtTranslateRequest, IBufferMessage, IMessageNamespace
Google.Cloud.Translate.V3Assembly
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. For now only one sentence per request is supported.
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 |
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 |