public static final class SupportedLanguages.Builder extends GeneratedMessageV3.Builder<SupportedLanguages.Builder> implements SupportedLanguagesOrBuilder
The response message for discovering supported languages.
Protobuf type google.cloud.translation.v3beta1.SupportedLanguages
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
addAllLanguages(Iterable<? extends SupportedLanguage> values)
public SupportedLanguages.Builder addAllLanguages(Iterable<? extends SupportedLanguage> values)
A list of supported language responses. This list contains an entry
for each language the Translation API supports.
repeated .google.cloud.translation.v3beta1.SupportedLanguage languages = 1;
Parameter |
Name |
Description |
values |
Iterable<? extends com.google.cloud.translate.v3beta1.SupportedLanguage>
|
addLanguages(SupportedLanguage value)
public SupportedLanguages.Builder addLanguages(SupportedLanguage value)
A list of supported language responses. This list contains an entry
for each language the Translation API supports.
repeated .google.cloud.translation.v3beta1.SupportedLanguage languages = 1;
addLanguages(SupportedLanguage.Builder builderForValue)
public SupportedLanguages.Builder addLanguages(SupportedLanguage.Builder builderForValue)
A list of supported language responses. This list contains an entry
for each language the Translation API supports.
repeated .google.cloud.translation.v3beta1.SupportedLanguage languages = 1;
addLanguages(int index, SupportedLanguage value)
public SupportedLanguages.Builder addLanguages(int index, SupportedLanguage value)
A list of supported language responses. This list contains an entry
for each language the Translation API supports.
repeated .google.cloud.translation.v3beta1.SupportedLanguage languages = 1;
addLanguages(int index, SupportedLanguage.Builder builderForValue)
public SupportedLanguages.Builder addLanguages(int index, SupportedLanguage.Builder builderForValue)
A list of supported language responses. This list contains an entry
for each language the Translation API supports.
repeated .google.cloud.translation.v3beta1.SupportedLanguage languages = 1;
addLanguagesBuilder()
public SupportedLanguage.Builder addLanguagesBuilder()
A list of supported language responses. This list contains an entry
for each language the Translation API supports.
repeated .google.cloud.translation.v3beta1.SupportedLanguage languages = 1;
addLanguagesBuilder(int index)
public SupportedLanguage.Builder addLanguagesBuilder(int index)
A list of supported language responses. This list contains an entry
for each language the Translation API supports.
repeated .google.cloud.translation.v3beta1.SupportedLanguage languages = 1;
Parameter |
Name |
Description |
index |
int
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public SupportedLanguages.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public SupportedLanguages build()
buildPartial()
public SupportedLanguages buildPartial()
clear()
public SupportedLanguages.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public SupportedLanguages.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearLanguages()
public SupportedLanguages.Builder clearLanguages()
A list of supported language responses. This list contains an entry
for each language the Translation API supports.
repeated .google.cloud.translation.v3beta1.SupportedLanguage languages = 1;
clearOneof(Descriptors.OneofDescriptor oneof)
public SupportedLanguages.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clone()
public SupportedLanguages.Builder clone()
Overrides
getDefaultInstanceForType()
public SupportedLanguages getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getLanguages(int index)
public SupportedLanguage getLanguages(int index)
A list of supported language responses. This list contains an entry
for each language the Translation API supports.
repeated .google.cloud.translation.v3beta1.SupportedLanguage languages = 1;
Parameter |
Name |
Description |
index |
int
|
getLanguagesBuilder(int index)
public SupportedLanguage.Builder getLanguagesBuilder(int index)
A list of supported language responses. This list contains an entry
for each language the Translation API supports.
repeated .google.cloud.translation.v3beta1.SupportedLanguage languages = 1;
Parameter |
Name |
Description |
index |
int
|
getLanguagesBuilderList()
public List<SupportedLanguage.Builder> getLanguagesBuilderList()
A list of supported language responses. This list contains an entry
for each language the Translation API supports.
repeated .google.cloud.translation.v3beta1.SupportedLanguage languages = 1;
getLanguagesCount()
public int getLanguagesCount()
A list of supported language responses. This list contains an entry
for each language the Translation API supports.
repeated .google.cloud.translation.v3beta1.SupportedLanguage languages = 1;
Returns |
Type |
Description |
int |
|
getLanguagesList()
public List<SupportedLanguage> getLanguagesList()
A list of supported language responses. This list contains an entry
for each language the Translation API supports.
repeated .google.cloud.translation.v3beta1.SupportedLanguage languages = 1;
getLanguagesOrBuilder(int index)
public SupportedLanguageOrBuilder getLanguagesOrBuilder(int index)
A list of supported language responses. This list contains an entry
for each language the Translation API supports.
repeated .google.cloud.translation.v3beta1.SupportedLanguage languages = 1;
Parameter |
Name |
Description |
index |
int
|
getLanguagesOrBuilderList()
public List<? extends SupportedLanguageOrBuilder> getLanguagesOrBuilderList()
A list of supported language responses. This list contains an entry
for each language the Translation API supports.
repeated .google.cloud.translation.v3beta1.SupportedLanguage languages = 1;
Returns |
Type |
Description |
List<? extends com.google.cloud.translate.v3beta1.SupportedLanguageOrBuilder> |
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(SupportedLanguages other)
public SupportedLanguages.Builder mergeFrom(SupportedLanguages other)
public SupportedLanguages.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public SupportedLanguages.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final SupportedLanguages.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
removeLanguages(int index)
public SupportedLanguages.Builder removeLanguages(int index)
A list of supported language responses. This list contains an entry
for each language the Translation API supports.
repeated .google.cloud.translation.v3beta1.SupportedLanguage languages = 1;
Parameter |
Name |
Description |
index |
int
|
setField(Descriptors.FieldDescriptor field, Object value)
public SupportedLanguages.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setLanguages(int index, SupportedLanguage value)
public SupportedLanguages.Builder setLanguages(int index, SupportedLanguage value)
A list of supported language responses. This list contains an entry
for each language the Translation API supports.
repeated .google.cloud.translation.v3beta1.SupportedLanguage languages = 1;
setLanguages(int index, SupportedLanguage.Builder builderForValue)
public SupportedLanguages.Builder setLanguages(int index, SupportedLanguage.Builder builderForValue)
A list of supported language responses. This list contains an entry
for each language the Translation API supports.
repeated .google.cloud.translation.v3beta1.SupportedLanguage languages = 1;
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public SupportedLanguages.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final SupportedLanguages.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides