- 2.76.0 (latest)
- 2.75.0
- 2.74.0
- 2.73.0
- 2.72.0
- 2.70.0
- 2.68.0
- 2.67.0
- 2.64.0
- 2.63.0
- 2.62.0
- 2.60.0
- 2.59.0
- 2.58.0
- 2.57.0
- 2.56.0
- 2.55.0
- 2.54.0
- 2.53.0
- 2.52.0
- 2.51.0
- 2.49.0
- 2.48.0
- 2.47.0
- 2.46.0
- 2.45.0
- 2.44.0
- 2.43.0
- 2.42.0
- 2.41.0
- 2.40.0
- 2.39.0
- 2.37.0
- 2.36.0
- 2.35.0
- 2.34.0
- 2.33.0
- 2.32.0
- 2.31.0
- 2.30.0
- 2.29.0
- 2.28.0
- 2.27.0
- 2.24.0
- 2.23.0
- 2.22.0
- 2.21.0
- 2.20.0
- 2.19.0
- 2.18.0
- 2.17.0
- 2.16.0
- 2.15.0
- 2.14.0
- 2.13.0
- 2.12.0
- 2.11.0
- 2.9.0
- 2.8.0
- 2.7.0
- 2.6.0
- 2.5.0
- 2.4.0
- 2.3.5
- 2.2.0
- 2.1.13
public static final class AdaptiveMtTranslateRequest.Builder extends GeneratedMessageV3.Builder<AdaptiveMtTranslateRequest.Builder> implements AdaptiveMtTranslateRequestOrBuilderThe request for sending an AdaptiveMt translation query.
Protobuf type google.cloud.translation.v3.AdaptiveMtTranslateRequest
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > AdaptiveMtTranslateRequest.BuilderImplements
AdaptiveMtTranslateRequestOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addAllContent(Iterable<String> values)
public AdaptiveMtTranslateRequest.Builder addAllContent(Iterable<String> values)Required. The content of the input in string format.
repeated string content = 3 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<String>The content to add. |
| Returns | |
|---|---|
| Type | Description |
AdaptiveMtTranslateRequest.Builder |
This builder for chaining. |
addContent(String value)
public AdaptiveMtTranslateRequest.Builder addContent(String value)Required. The content of the input in string format.
repeated string content = 3 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe content to add. |
| Returns | |
|---|---|
| Type | Description |
AdaptiveMtTranslateRequest.Builder |
This builder for chaining. |
addContentBytes(ByteString value)
public AdaptiveMtTranslateRequest.Builder addContentBytes(ByteString value)Required. The content of the input in string format.
repeated string content = 3 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes of the content to add. |
| Returns | |
|---|---|
| Type | Description |
AdaptiveMtTranslateRequest.Builder |
This builder for chaining. |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public AdaptiveMtTranslateRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
AdaptiveMtTranslateRequest.Builder |
|
build()
public AdaptiveMtTranslateRequest build()| Returns | |
|---|---|
| Type | Description |
AdaptiveMtTranslateRequest |
|
buildPartial()
public AdaptiveMtTranslateRequest buildPartial()| Returns | |
|---|---|
| Type | Description |
AdaptiveMtTranslateRequest |
|
clear()
public AdaptiveMtTranslateRequest.Builder clear()| Returns | |
|---|---|
| Type | Description |
AdaptiveMtTranslateRequest.Builder |
|
clearContent()
public AdaptiveMtTranslateRequest.Builder clearContent()Required. The content of the input in string format.
repeated string content = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
AdaptiveMtTranslateRequest.Builder |
This builder for chaining. |
clearDataset()
public AdaptiveMtTranslateRequest.Builder clearDataset() 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 |
AdaptiveMtTranslateRequest.Builder |
This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public AdaptiveMtTranslateRequest.Builder clearField(Descriptors.FieldDescriptor field)| Parameter | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
| Returns | |
|---|---|
| Type | Description |
AdaptiveMtTranslateRequest.Builder |
|
clearGlossaryConfig()
public AdaptiveMtTranslateRequest.Builder clearGlossaryConfig()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.
optional .google.cloud.translation.v3.AdaptiveMtTranslateRequest.GlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
AdaptiveMtTranslateRequest.Builder |
|
clearOneof(Descriptors.OneofDescriptor oneof)
public AdaptiveMtTranslateRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)| Parameter | |
|---|---|
| Name | Description |
oneof |
OneofDescriptor |
| Returns | |
|---|---|
| Type | Description |
AdaptiveMtTranslateRequest.Builder |
|
clearParent()
public AdaptiveMtTranslateRequest.Builder clearParent()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 |
AdaptiveMtTranslateRequest.Builder |
This builder for chaining. |
clearReferenceSentenceConfig()
public AdaptiveMtTranslateRequest.Builder clearReferenceSentenceConfig()Configuration for caller provided reference sentences.
optional .google.cloud.translation.v3.AdaptiveMtTranslateRequest.ReferenceSentenceConfig reference_sentence_config = 6;
| Returns | |
|---|---|
| Type | Description |
AdaptiveMtTranslateRequest.Builder |
|
clone()
public AdaptiveMtTranslateRequest.Builder clone()| Returns | |
|---|---|
| Type | Description |
AdaptiveMtTranslateRequest.Builder |
|
getContent(int index)
public String getContent(int index)Required. The content of the input in string format.
repeated string content = 3 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
index |
intThe 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.
repeated string content = 3 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
index |
intThe 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.
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.
repeated string content = 3 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
ProtocolStringList |
A list containing the content. |
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()| Returns | |
|---|---|
| Type | Description |
AdaptiveMtTranslateRequest |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getGlossaryConfig()
public AdaptiveMtTranslateRequest.GlossaryConfig getGlossaryConfig()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.
optional .google.cloud.translation.v3.AdaptiveMtTranslateRequest.GlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
AdaptiveMtTranslateRequest.GlossaryConfig |
The glossaryConfig. |
getGlossaryConfigBuilder()
public AdaptiveMtTranslateRequest.GlossaryConfig.Builder getGlossaryConfigBuilder()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.
optional .google.cloud.translation.v3.AdaptiveMtTranslateRequest.GlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
AdaptiveMtTranslateRequest.GlossaryConfig.Builder |
|
getGlossaryConfigOrBuilder()
public AdaptiveMtTranslateRequest.GlossaryConfigOrBuilder getGlossaryConfigOrBuilder()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.
optional .google.cloud.translation.v3.AdaptiveMtTranslateRequest.GlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
AdaptiveMtTranslateRequest.GlossaryConfigOrBuilder |
|
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. |
getReferenceSentenceConfig()
public AdaptiveMtTranslateRequest.ReferenceSentenceConfig getReferenceSentenceConfig()Configuration for caller provided reference sentences.
optional .google.cloud.translation.v3.AdaptiveMtTranslateRequest.ReferenceSentenceConfig reference_sentence_config = 6;
| Returns | |
|---|---|
| Type | Description |
AdaptiveMtTranslateRequest.ReferenceSentenceConfig |
The referenceSentenceConfig. |
getReferenceSentenceConfigBuilder()
public AdaptiveMtTranslateRequest.ReferenceSentenceConfig.Builder getReferenceSentenceConfigBuilder()Configuration for caller provided reference sentences.
optional .google.cloud.translation.v3.AdaptiveMtTranslateRequest.ReferenceSentenceConfig reference_sentence_config = 6;
| Returns | |
|---|---|
| Type | Description |
AdaptiveMtTranslateRequest.ReferenceSentenceConfig.Builder |
|
getReferenceSentenceConfigOrBuilder()
public AdaptiveMtTranslateRequest.ReferenceSentenceConfigOrBuilder getReferenceSentenceConfigOrBuilder()Configuration for caller provided reference sentences.
optional .google.cloud.translation.v3.AdaptiveMtTranslateRequest.ReferenceSentenceConfig reference_sentence_config = 6;
| Returns | |
|---|---|
| Type | Description |
AdaptiveMtTranslateRequest.ReferenceSentenceConfigOrBuilder |
|
hasGlossaryConfig()
public boolean hasGlossaryConfig()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.
optional .google.cloud.translation.v3.AdaptiveMtTranslateRequest.GlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the glossaryConfig field is set. |
hasReferenceSentenceConfig()
public boolean hasReferenceSentenceConfig()Configuration for caller provided reference sentences.
optional .google.cloud.translation.v3.AdaptiveMtTranslateRequest.ReferenceSentenceConfig reference_sentence_config = 6;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the referenceSentenceConfig field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(AdaptiveMtTranslateRequest other)
public AdaptiveMtTranslateRequest.Builder mergeFrom(AdaptiveMtTranslateRequest other)| Parameter | |
|---|---|
| Name | Description |
other |
AdaptiveMtTranslateRequest |
| Returns | |
|---|---|
| Type | Description |
AdaptiveMtTranslateRequest.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public AdaptiveMtTranslateRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
AdaptiveMtTranslateRequest.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public AdaptiveMtTranslateRequest.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
AdaptiveMtTranslateRequest.Builder |
|
mergeGlossaryConfig(AdaptiveMtTranslateRequest.GlossaryConfig value)
public AdaptiveMtTranslateRequest.Builder mergeGlossaryConfig(AdaptiveMtTranslateRequest.GlossaryConfig value)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.
optional .google.cloud.translation.v3.AdaptiveMtTranslateRequest.GlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
AdaptiveMtTranslateRequest.GlossaryConfig |
| Returns | |
|---|---|
| Type | Description |
AdaptiveMtTranslateRequest.Builder |
|
mergeReferenceSentenceConfig(AdaptiveMtTranslateRequest.ReferenceSentenceConfig value)
public AdaptiveMtTranslateRequest.Builder mergeReferenceSentenceConfig(AdaptiveMtTranslateRequest.ReferenceSentenceConfig value)Configuration for caller provided reference sentences.
optional .google.cloud.translation.v3.AdaptiveMtTranslateRequest.ReferenceSentenceConfig reference_sentence_config = 6;
| Parameter | |
|---|---|
| Name | Description |
value |
AdaptiveMtTranslateRequest.ReferenceSentenceConfig |
| Returns | |
|---|---|
| Type | Description |
AdaptiveMtTranslateRequest.Builder |
|
mergeUnknownFields(UnknownFieldSet unknownFields)
public final AdaptiveMtTranslateRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
AdaptiveMtTranslateRequest.Builder |
|
setContent(int index, String value)
public AdaptiveMtTranslateRequest.Builder setContent(int index, String value)Required. The content of the input in string format.
repeated string content = 3 [(.google.api.field_behavior) = REQUIRED];
| Parameters | |
|---|---|
| Name | Description |
index |
intThe index to set the value at. |
value |
StringThe content to set. |
| Returns | |
|---|---|
| Type | Description |
AdaptiveMtTranslateRequest.Builder |
This builder for chaining. |
setDataset(String value)
public AdaptiveMtTranslateRequest.Builder setDataset(String value) 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) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe dataset to set. |
| Returns | |
|---|---|
| Type | Description |
AdaptiveMtTranslateRequest.Builder |
This builder for chaining. |
setDatasetBytes(ByteString value)
public AdaptiveMtTranslateRequest.Builder setDatasetBytes(ByteString value) 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) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for dataset to set. |
| Returns | |
|---|---|
| Type | Description |
AdaptiveMtTranslateRequest.Builder |
This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public AdaptiveMtTranslateRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
AdaptiveMtTranslateRequest.Builder |
|
setGlossaryConfig(AdaptiveMtTranslateRequest.GlossaryConfig value)
public AdaptiveMtTranslateRequest.Builder setGlossaryConfig(AdaptiveMtTranslateRequest.GlossaryConfig value)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.
optional .google.cloud.translation.v3.AdaptiveMtTranslateRequest.GlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
AdaptiveMtTranslateRequest.GlossaryConfig |
| Returns | |
|---|---|
| Type | Description |
AdaptiveMtTranslateRequest.Builder |
|
setGlossaryConfig(AdaptiveMtTranslateRequest.GlossaryConfig.Builder builderForValue)
public AdaptiveMtTranslateRequest.Builder setGlossaryConfig(AdaptiveMtTranslateRequest.GlossaryConfig.Builder builderForValue)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.
optional .google.cloud.translation.v3.AdaptiveMtTranslateRequest.GlossaryConfig glossary_config = 7 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
AdaptiveMtTranslateRequest.GlossaryConfig.Builder |
| Returns | |
|---|---|
| Type | Description |
AdaptiveMtTranslateRequest.Builder |
|
setParent(String value)
public AdaptiveMtTranslateRequest.Builder setParent(String value)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) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe parent to set. |
| Returns | |
|---|---|
| Type | Description |
AdaptiveMtTranslateRequest.Builder |
This builder for chaining. |
setParentBytes(ByteString value)
public AdaptiveMtTranslateRequest.Builder setParentBytes(ByteString value)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) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for parent to set. |
| Returns | |
|---|---|
| Type | Description |
AdaptiveMtTranslateRequest.Builder |
This builder for chaining. |
setReferenceSentenceConfig(AdaptiveMtTranslateRequest.ReferenceSentenceConfig value)
public AdaptiveMtTranslateRequest.Builder setReferenceSentenceConfig(AdaptiveMtTranslateRequest.ReferenceSentenceConfig value)Configuration for caller provided reference sentences.
optional .google.cloud.translation.v3.AdaptiveMtTranslateRequest.ReferenceSentenceConfig reference_sentence_config = 6;
| Parameter | |
|---|---|
| Name | Description |
value |
AdaptiveMtTranslateRequest.ReferenceSentenceConfig |
| Returns | |
|---|---|
| Type | Description |
AdaptiveMtTranslateRequest.Builder |
|
setReferenceSentenceConfig(AdaptiveMtTranslateRequest.ReferenceSentenceConfig.Builder builderForValue)
public AdaptiveMtTranslateRequest.Builder setReferenceSentenceConfig(AdaptiveMtTranslateRequest.ReferenceSentenceConfig.Builder builderForValue)Configuration for caller provided reference sentences.
optional .google.cloud.translation.v3.AdaptiveMtTranslateRequest.ReferenceSentenceConfig reference_sentence_config = 6;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
AdaptiveMtTranslateRequest.ReferenceSentenceConfig.Builder |
| Returns | |
|---|---|
| Type | Description |
AdaptiveMtTranslateRequest.Builder |
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public AdaptiveMtTranslateRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)| Parameters | |
|---|---|
| Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
| Returns | |
|---|---|
| Type | Description |
AdaptiveMtTranslateRequest.Builder |
|
setUnknownFields(UnknownFieldSet unknownFields)
public final AdaptiveMtTranslateRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description |
unknownFields |
UnknownFieldSet |
| Returns | |
|---|---|
| Type | Description |
AdaptiveMtTranslateRequest.Builder |
|