public static final class AdaptiveMtTranslateRequest.ReferenceSentencePairList.Builder extends GeneratedMessageV3.Builder<AdaptiveMtTranslateRequest.ReferenceSentencePairList.Builder> implements AdaptiveMtTranslateRequest.ReferenceSentencePairListOrBuilder
A list of reference sentence pairs.
Protobuf type
google.cloud.translation.v3.AdaptiveMtTranslateRequest.ReferenceSentencePairList
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addAllReferenceSentencePairs(Iterable<? extends AdaptiveMtTranslateRequest.ReferenceSentencePair> values)
public AdaptiveMtTranslateRequest.ReferenceSentencePairList.Builder addAllReferenceSentencePairs(Iterable<? extends AdaptiveMtTranslateRequest.ReferenceSentencePair> values)
Reference sentence pairs.
repeated .google.cloud.translation.v3.AdaptiveMtTranslateRequest.ReferenceSentencePair reference_sentence_pairs = 1;
Parameter |
Name |
Description |
values |
Iterable<? extends com.google.cloud.translate.v3.AdaptiveMtTranslateRequest.ReferenceSentencePair>
|
addReferenceSentencePairs(AdaptiveMtTranslateRequest.ReferenceSentencePair value)
public AdaptiveMtTranslateRequest.ReferenceSentencePairList.Builder addReferenceSentencePairs(AdaptiveMtTranslateRequest.ReferenceSentencePair value)
Reference sentence pairs.
repeated .google.cloud.translation.v3.AdaptiveMtTranslateRequest.ReferenceSentencePair reference_sentence_pairs = 1;
addReferenceSentencePairs(AdaptiveMtTranslateRequest.ReferenceSentencePair.Builder builderForValue)
public AdaptiveMtTranslateRequest.ReferenceSentencePairList.Builder addReferenceSentencePairs(AdaptiveMtTranslateRequest.ReferenceSentencePair.Builder builderForValue)
Reference sentence pairs.
repeated .google.cloud.translation.v3.AdaptiveMtTranslateRequest.ReferenceSentencePair reference_sentence_pairs = 1;
addReferenceSentencePairs(int index, AdaptiveMtTranslateRequest.ReferenceSentencePair value)
public AdaptiveMtTranslateRequest.ReferenceSentencePairList.Builder addReferenceSentencePairs(int index, AdaptiveMtTranslateRequest.ReferenceSentencePair value)
Reference sentence pairs.
repeated .google.cloud.translation.v3.AdaptiveMtTranslateRequest.ReferenceSentencePair reference_sentence_pairs = 1;
addReferenceSentencePairs(int index, AdaptiveMtTranslateRequest.ReferenceSentencePair.Builder builderForValue)
public AdaptiveMtTranslateRequest.ReferenceSentencePairList.Builder addReferenceSentencePairs(int index, AdaptiveMtTranslateRequest.ReferenceSentencePair.Builder builderForValue)
Reference sentence pairs.
repeated .google.cloud.translation.v3.AdaptiveMtTranslateRequest.ReferenceSentencePair reference_sentence_pairs = 1;
addReferenceSentencePairsBuilder()
public AdaptiveMtTranslateRequest.ReferenceSentencePair.Builder addReferenceSentencePairsBuilder()
Reference sentence pairs.
repeated .google.cloud.translation.v3.AdaptiveMtTranslateRequest.ReferenceSentencePair reference_sentence_pairs = 1;
addReferenceSentencePairsBuilder(int index)
public AdaptiveMtTranslateRequest.ReferenceSentencePair.Builder addReferenceSentencePairsBuilder(int index)
Reference sentence pairs.
repeated .google.cloud.translation.v3.AdaptiveMtTranslateRequest.ReferenceSentencePair reference_sentence_pairs = 1;
Parameter |
Name |
Description |
index |
int
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public AdaptiveMtTranslateRequest.ReferenceSentencePairList.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public AdaptiveMtTranslateRequest.ReferenceSentencePairList build()
buildPartial()
public AdaptiveMtTranslateRequest.ReferenceSentencePairList buildPartial()
clear()
public AdaptiveMtTranslateRequest.ReferenceSentencePairList.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public AdaptiveMtTranslateRequest.ReferenceSentencePairList.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public AdaptiveMtTranslateRequest.ReferenceSentencePairList.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearReferenceSentencePairs()
public AdaptiveMtTranslateRequest.ReferenceSentencePairList.Builder clearReferenceSentencePairs()
Reference sentence pairs.
repeated .google.cloud.translation.v3.AdaptiveMtTranslateRequest.ReferenceSentencePair reference_sentence_pairs = 1;
clone()
public AdaptiveMtTranslateRequest.ReferenceSentencePairList.Builder clone()
Overrides
getDefaultInstanceForType()
public AdaptiveMtTranslateRequest.ReferenceSentencePairList getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getReferenceSentencePairs(int index)
public AdaptiveMtTranslateRequest.ReferenceSentencePair getReferenceSentencePairs(int index)
Reference sentence pairs.
repeated .google.cloud.translation.v3.AdaptiveMtTranslateRequest.ReferenceSentencePair reference_sentence_pairs = 1;
Parameter |
Name |
Description |
index |
int
|
getReferenceSentencePairsBuilder(int index)
public AdaptiveMtTranslateRequest.ReferenceSentencePair.Builder getReferenceSentencePairsBuilder(int index)
Reference sentence pairs.
repeated .google.cloud.translation.v3.AdaptiveMtTranslateRequest.ReferenceSentencePair reference_sentence_pairs = 1;
Parameter |
Name |
Description |
index |
int
|
getReferenceSentencePairsBuilderList()
public List<AdaptiveMtTranslateRequest.ReferenceSentencePair.Builder> getReferenceSentencePairsBuilderList()
Reference sentence pairs.
repeated .google.cloud.translation.v3.AdaptiveMtTranslateRequest.ReferenceSentencePair reference_sentence_pairs = 1;
getReferenceSentencePairsCount()
public int getReferenceSentencePairsCount()
Reference sentence pairs.
repeated .google.cloud.translation.v3.AdaptiveMtTranslateRequest.ReferenceSentencePair reference_sentence_pairs = 1;
Returns |
Type |
Description |
int |
|
getReferenceSentencePairsList()
public List<AdaptiveMtTranslateRequest.ReferenceSentencePair> getReferenceSentencePairsList()
Reference sentence pairs.
repeated .google.cloud.translation.v3.AdaptiveMtTranslateRequest.ReferenceSentencePair reference_sentence_pairs = 1;
getReferenceSentencePairsOrBuilder(int index)
public AdaptiveMtTranslateRequest.ReferenceSentencePairOrBuilder getReferenceSentencePairsOrBuilder(int index)
Reference sentence pairs.
repeated .google.cloud.translation.v3.AdaptiveMtTranslateRequest.ReferenceSentencePair reference_sentence_pairs = 1;
Parameter |
Name |
Description |
index |
int
|
getReferenceSentencePairsOrBuilderList()
public List<? extends AdaptiveMtTranslateRequest.ReferenceSentencePairOrBuilder> getReferenceSentencePairsOrBuilderList()
Reference sentence pairs.
repeated .google.cloud.translation.v3.AdaptiveMtTranslateRequest.ReferenceSentencePair reference_sentence_pairs = 1;
Returns |
Type |
Description |
List<? extends com.google.cloud.translate.v3.AdaptiveMtTranslateRequest.ReferenceSentencePairOrBuilder> |
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(AdaptiveMtTranslateRequest.ReferenceSentencePairList other)
public AdaptiveMtTranslateRequest.ReferenceSentencePairList.Builder mergeFrom(AdaptiveMtTranslateRequest.ReferenceSentencePairList other)
public AdaptiveMtTranslateRequest.ReferenceSentencePairList.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public AdaptiveMtTranslateRequest.ReferenceSentencePairList.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final AdaptiveMtTranslateRequest.ReferenceSentencePairList.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
removeReferenceSentencePairs(int index)
public AdaptiveMtTranslateRequest.ReferenceSentencePairList.Builder removeReferenceSentencePairs(int index)
Reference sentence pairs.
repeated .google.cloud.translation.v3.AdaptiveMtTranslateRequest.ReferenceSentencePair reference_sentence_pairs = 1;
Parameter |
Name |
Description |
index |
int
|
setField(Descriptors.FieldDescriptor field, Object value)
public AdaptiveMtTranslateRequest.ReferenceSentencePairList.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setReferenceSentencePairs(int index, AdaptiveMtTranslateRequest.ReferenceSentencePair value)
public AdaptiveMtTranslateRequest.ReferenceSentencePairList.Builder setReferenceSentencePairs(int index, AdaptiveMtTranslateRequest.ReferenceSentencePair value)
Reference sentence pairs.
repeated .google.cloud.translation.v3.AdaptiveMtTranslateRequest.ReferenceSentencePair reference_sentence_pairs = 1;
setReferenceSentencePairs(int index, AdaptiveMtTranslateRequest.ReferenceSentencePair.Builder builderForValue)
public AdaptiveMtTranslateRequest.ReferenceSentencePairList.Builder setReferenceSentencePairs(int index, AdaptiveMtTranslateRequest.ReferenceSentencePair.Builder builderForValue)
Reference sentence pairs.
repeated .google.cloud.translation.v3.AdaptiveMtTranslateRequest.ReferenceSentencePair reference_sentence_pairs = 1;
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public AdaptiveMtTranslateRequest.ReferenceSentencePairList.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final AdaptiveMtTranslateRequest.ReferenceSentencePairList.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides