public final class AdaptiveMtTranslateRequest extends GeneratedMessageV3 implements AdaptiveMtTranslateRequestOrBuilder
The request for sending an AdaptiveMt translation query.
Protobuf type google.cloud.translation.v3.AdaptiveMtTranslateRequest
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
CONTENT_FIELD_NUMBER
public static final int CONTENT_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
DATASET_FIELD_NUMBER
public static final int DATASET_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
PARENT_FIELD_NUMBER
public static final int PARENT_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static AdaptiveMtTranslateRequest getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static AdaptiveMtTranslateRequest.Builder newBuilder()
newBuilder(AdaptiveMtTranslateRequest prototype)
public static AdaptiveMtTranslateRequest.Builder newBuilder(AdaptiveMtTranslateRequest prototype)
public static AdaptiveMtTranslateRequest parseDelimitedFrom(InputStream input)
public static AdaptiveMtTranslateRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static AdaptiveMtTranslateRequest parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static AdaptiveMtTranslateRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static AdaptiveMtTranslateRequest parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static AdaptiveMtTranslateRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static AdaptiveMtTranslateRequest parseFrom(CodedInputStream input)
public static AdaptiveMtTranslateRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static AdaptiveMtTranslateRequest parseFrom(InputStream input)
public static AdaptiveMtTranslateRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static AdaptiveMtTranslateRequest parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static AdaptiveMtTranslateRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<AdaptiveMtTranslateRequest> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
Overrides
getContent(int index)
public String getContent(int index)
Required. The content of the input in string format.
For now only one sentence per request is supported.
repeated string content = 3 [(.google.api.field_behavior) = REQUIRED];
Parameter |
Name |
Description |
index |
int
The index of the element to return.
|
Returns |
Type |
Description |
String |
The content at the given index.
|
getContentBytes(int index)
public ByteString getContentBytes(int index)
Required. The content of the input in string format.
For now only one sentence per request is supported.
repeated string content = 3 [(.google.api.field_behavior) = REQUIRED];
Parameter |
Name |
Description |
index |
int
The index of the value to return.
|
Returns |
Type |
Description |
ByteString |
The bytes of the content at the given index.
|
getContentCount()
public int getContentCount()
Required. The content of the input in string format.
For now only one sentence per request is supported.
repeated string content = 3 [(.google.api.field_behavior) = REQUIRED];
Returns |
Type |
Description |
int |
The count of content.
|
getContentList()
public ProtocolStringList getContentList()
Required. The content of the input in string format.
For now only one sentence per request is supported.
repeated string content = 3 [(.google.api.field_behavior) = REQUIRED];
getDataset()
public String getDataset()
Required. The resource name for the dataset to use for adaptive MT.
projects/{project}/locations/{location-id}/adaptiveMtDatasets/{dataset}
string dataset = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns |
Type |
Description |
String |
The dataset.
|
getDatasetBytes()
public ByteString getDatasetBytes()
Required. The resource name for the dataset to use for adaptive MT.
projects/{project}/locations/{location-id}/adaptiveMtDatasets/{dataset}
string dataset = 2 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns |
Type |
Description |
ByteString |
The bytes for dataset.
|
getDefaultInstanceForType()
public AdaptiveMtTranslateRequest getDefaultInstanceForType()
getParent()
public String getParent()
Required. Location to make a regional call.
Format: projects/{project-number-or-id}/locations/{location-id}
.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns |
Type |
Description |
String |
The parent.
|
getParentBytes()
public ByteString getParentBytes()
Required. Location to make a regional call.
Format: projects/{project-number-or-id}/locations/{location-id}
.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
Returns |
Type |
Description |
ByteString |
The bytes for parent.
|
getParserForType()
public Parser<AdaptiveMtTranslateRequest> getParserForType()
Overrides
getSerializedSize()
public int getSerializedSize()
Returns |
Type |
Description |
int |
|
Overrides
hashCode()
Returns |
Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public AdaptiveMtTranslateRequest.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected AdaptiveMtTranslateRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
toBuilder()
public AdaptiveMtTranslateRequest.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides