public static final class AdaptiveMtTranslateRequest.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<AdaptiveMtTranslateRequest.Builder> implements AdaptiveMtTranslateRequestOrBuilder
The request for sending an AdaptiveMt translation query.Protobuf type
google.cloud.translation.v3.AdaptiveMtTranslateRequestgetAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<AdaptiveMtTranslateRequest.Builder>public AdaptiveMtTranslateRequest.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<AdaptiveMtTranslateRequest.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<AdaptiveMtTranslateRequest.Builder>public AdaptiveMtTranslateRequest getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic AdaptiveMtTranslateRequest build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic AdaptiveMtTranslateRequest buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic AdaptiveMtTranslateRequest.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<AdaptiveMtTranslateRequest.Builder>public AdaptiveMtTranslateRequest.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<AdaptiveMtTranslateRequest.Builder>public AdaptiveMtTranslateRequest.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<AdaptiveMtTranslateRequest.Builder>public AdaptiveMtTranslateRequest.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<AdaptiveMtTranslateRequest.Builder>public AdaptiveMtTranslateRequest.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<AdaptiveMtTranslateRequest.Builder>public AdaptiveMtTranslateRequest.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<AdaptiveMtTranslateRequest.Builder>public AdaptiveMtTranslateRequest.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<AdaptiveMtTranslateRequest.Builder>public AdaptiveMtTranslateRequest.Builder mergeFrom(AdaptiveMtTranslateRequest other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<AdaptiveMtTranslateRequest.Builder>public AdaptiveMtTranslateRequest.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<AdaptiveMtTranslateRequest.Builder>IOExceptionpublic 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) = { ... }
getParent in interface AdaptiveMtTranslateRequestOrBuilderpublic com.google.protobuf.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) = { ... }
getParentBytes in interface AdaptiveMtTranslateRequestOrBuilderpublic 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) = { ... }
value - The parent to set.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) = { ... }
public AdaptiveMtTranslateRequest.Builder setParentBytes(com.google.protobuf.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) = { ... }
value - The bytes for parent to set.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) = { ... }
getDataset in interface AdaptiveMtTranslateRequestOrBuilderpublic com.google.protobuf.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) = { ... }
getDatasetBytes in interface AdaptiveMtTranslateRequestOrBuilderpublic 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) = { ... }
value - The dataset to set.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) = { ... }
public AdaptiveMtTranslateRequest.Builder setDatasetBytes(com.google.protobuf.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) = { ... }
value - The bytes for dataset to set.public com.google.protobuf.ProtocolStringList getContentList()
Required. The content of the input in string format.
repeated string content = 3 [(.google.api.field_behavior) = REQUIRED];getContentList in interface AdaptiveMtTranslateRequestOrBuilderpublic int getContentCount()
Required. The content of the input in string format.
repeated string content = 3 [(.google.api.field_behavior) = REQUIRED];getContentCount in interface AdaptiveMtTranslateRequestOrBuilderpublic String getContent(int index)
Required. The content of the input in string format.
repeated string content = 3 [(.google.api.field_behavior) = REQUIRED];getContent in interface AdaptiveMtTranslateRequestOrBuilderindex - The index of the element to return.public com.google.protobuf.ByteString getContentBytes(int index)
Required. The content of the input in string format.
repeated string content = 3 [(.google.api.field_behavior) = REQUIRED];getContentBytes in interface AdaptiveMtTranslateRequestOrBuilderindex - The index of the value to return.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];index - The index to set the value at.value - The content to set.public AdaptiveMtTranslateRequest.Builder addContent(String value)
Required. The content of the input in string format.
repeated string content = 3 [(.google.api.field_behavior) = REQUIRED];value - The content to add.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];values - The content to add.public AdaptiveMtTranslateRequest.Builder clearContent()
Required. The content of the input in string format.
repeated string content = 3 [(.google.api.field_behavior) = REQUIRED];public AdaptiveMtTranslateRequest.Builder addContentBytes(com.google.protobuf.ByteString value)
Required. The content of the input in string format.
repeated string content = 3 [(.google.api.field_behavior) = REQUIRED];value - The bytes of the content to add.public boolean hasReferenceSentenceConfig()
Configuration for caller provided reference sentences.
optional .google.cloud.translation.v3.AdaptiveMtTranslateRequest.ReferenceSentenceConfig reference_sentence_config = 6;
hasReferenceSentenceConfig in interface AdaptiveMtTranslateRequestOrBuilderpublic AdaptiveMtTranslateRequest.ReferenceSentenceConfig getReferenceSentenceConfig()
Configuration for caller provided reference sentences.
optional .google.cloud.translation.v3.AdaptiveMtTranslateRequest.ReferenceSentenceConfig reference_sentence_config = 6;
getReferenceSentenceConfig in interface AdaptiveMtTranslateRequestOrBuilderpublic AdaptiveMtTranslateRequest.Builder setReferenceSentenceConfig(AdaptiveMtTranslateRequest.ReferenceSentenceConfig value)
Configuration for caller provided reference sentences.
optional .google.cloud.translation.v3.AdaptiveMtTranslateRequest.ReferenceSentenceConfig reference_sentence_config = 6;
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;
public AdaptiveMtTranslateRequest.Builder mergeReferenceSentenceConfig(AdaptiveMtTranslateRequest.ReferenceSentenceConfig value)
Configuration for caller provided reference sentences.
optional .google.cloud.translation.v3.AdaptiveMtTranslateRequest.ReferenceSentenceConfig reference_sentence_config = 6;
public AdaptiveMtTranslateRequest.Builder clearReferenceSentenceConfig()
Configuration for caller provided reference sentences.
optional .google.cloud.translation.v3.AdaptiveMtTranslateRequest.ReferenceSentenceConfig reference_sentence_config = 6;
public AdaptiveMtTranslateRequest.ReferenceSentenceConfig.Builder getReferenceSentenceConfigBuilder()
Configuration for caller provided reference sentences.
optional .google.cloud.translation.v3.AdaptiveMtTranslateRequest.ReferenceSentenceConfig reference_sentence_config = 6;
public AdaptiveMtTranslateRequest.ReferenceSentenceConfigOrBuilder getReferenceSentenceConfigOrBuilder()
Configuration for caller provided reference sentences.
optional .google.cloud.translation.v3.AdaptiveMtTranslateRequest.ReferenceSentenceConfig reference_sentence_config = 6;
getReferenceSentenceConfigOrBuilder in interface AdaptiveMtTranslateRequestOrBuilderpublic 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];
hasGlossaryConfig in interface AdaptiveMtTranslateRequestOrBuilderpublic 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];
getGlossaryConfig in interface AdaptiveMtTranslateRequestOrBuilderpublic 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];
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];
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];
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];
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];
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];
getGlossaryConfigOrBuilder in interface AdaptiveMtTranslateRequestOrBuilderpublic final AdaptiveMtTranslateRequest.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AdaptiveMtTranslateRequest.Builder>public final AdaptiveMtTranslateRequest.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<AdaptiveMtTranslateRequest.Builder>Copyright © 2024 Google LLC. All rights reserved.