public static final class DetectLanguageResponse.Builder extends GeneratedMessageV3.Builder<DetectLanguageResponse.Builder> implements DetectLanguageResponseOrBuilder
The response message for language detection.
Protobuf type google.cloud.translation.v3beta1.DetectLanguageResponse
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
Methods
addAllLanguages(Iterable<? extends DetectedLanguage> values)
public DetectLanguageResponse.Builder addAllLanguages(Iterable<? extends DetectedLanguage> values)
A list of detected languages sorted by detection confidence in descending
order. The most probable language first.
repeated .google.cloud.translation.v3beta1.DetectedLanguage languages = 1;
Parameter
Name | Description |
values | Iterable<? extends com.google.cloud.translate.v3beta1.DetectedLanguage>
|
Returns
addLanguages(DetectedLanguage value)
public DetectLanguageResponse.Builder addLanguages(DetectedLanguage value)
A list of detected languages sorted by detection confidence in descending
order. The most probable language first.
repeated .google.cloud.translation.v3beta1.DetectedLanguage languages = 1;
Parameter
Returns
addLanguages(DetectedLanguage.Builder builderForValue)
public DetectLanguageResponse.Builder addLanguages(DetectedLanguage.Builder builderForValue)
A list of detected languages sorted by detection confidence in descending
order. The most probable language first.
repeated .google.cloud.translation.v3beta1.DetectedLanguage languages = 1;
Parameter
Returns
addLanguages(int index, DetectedLanguage value)
public DetectLanguageResponse.Builder addLanguages(int index, DetectedLanguage value)
A list of detected languages sorted by detection confidence in descending
order. The most probable language first.
repeated .google.cloud.translation.v3beta1.DetectedLanguage languages = 1;
Parameters
Returns
addLanguages(int index, DetectedLanguage.Builder builderForValue)
public DetectLanguageResponse.Builder addLanguages(int index, DetectedLanguage.Builder builderForValue)
A list of detected languages sorted by detection confidence in descending
order. The most probable language first.
repeated .google.cloud.translation.v3beta1.DetectedLanguage languages = 1;
Parameters
Returns
addLanguagesBuilder()
public DetectedLanguage.Builder addLanguagesBuilder()
A list of detected languages sorted by detection confidence in descending
order. The most probable language first.
repeated .google.cloud.translation.v3beta1.DetectedLanguage languages = 1;
Returns
addLanguagesBuilder(int index)
public DetectedLanguage.Builder addLanguagesBuilder(int index)
A list of detected languages sorted by detection confidence in descending
order. The most probable language first.
repeated .google.cloud.translation.v3beta1.DetectedLanguage languages = 1;
Parameter
Returns
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public DetectLanguageResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public DetectLanguageResponse build()
Returns
buildPartial()
public DetectLanguageResponse buildPartial()
Returns
clear()
public DetectLanguageResponse.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public DetectLanguageResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearLanguages()
public DetectLanguageResponse.Builder clearLanguages()
A list of detected languages sorted by detection confidence in descending
order. The most probable language first.
repeated .google.cloud.translation.v3beta1.DetectedLanguage languages = 1;
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public DetectLanguageResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clone()
public DetectLanguageResponse.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public DetectLanguageResponse getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getLanguages(int index)
public DetectedLanguage getLanguages(int index)
A list of detected languages sorted by detection confidence in descending
order. The most probable language first.
repeated .google.cloud.translation.v3beta1.DetectedLanguage languages = 1;
Parameter
Returns
getLanguagesBuilder(int index)
public DetectedLanguage.Builder getLanguagesBuilder(int index)
A list of detected languages sorted by detection confidence in descending
order. The most probable language first.
repeated .google.cloud.translation.v3beta1.DetectedLanguage languages = 1;
Parameter
Returns
getLanguagesBuilderList()
public List<DetectedLanguage.Builder> getLanguagesBuilderList()
A list of detected languages sorted by detection confidence in descending
order. The most probable language first.
repeated .google.cloud.translation.v3beta1.DetectedLanguage languages = 1;
Returns
getLanguagesCount()
public int getLanguagesCount()
A list of detected languages sorted by detection confidence in descending
order. The most probable language first.
repeated .google.cloud.translation.v3beta1.DetectedLanguage languages = 1;
Returns
getLanguagesList()
public List<DetectedLanguage> getLanguagesList()
A list of detected languages sorted by detection confidence in descending
order. The most probable language first.
repeated .google.cloud.translation.v3beta1.DetectedLanguage languages = 1;
Returns
getLanguagesOrBuilder(int index)
public DetectedLanguageOrBuilder getLanguagesOrBuilder(int index)
A list of detected languages sorted by detection confidence in descending
order. The most probable language first.
repeated .google.cloud.translation.v3beta1.DetectedLanguage languages = 1;
Parameter
Returns
getLanguagesOrBuilderList()
public List<? extends DetectedLanguageOrBuilder> getLanguagesOrBuilderList()
A list of detected languages sorted by detection confidence in descending
order. The most probable language first.
repeated .google.cloud.translation.v3beta1.DetectedLanguage languages = 1;
Returns
Type | Description |
List<? extends com.google.cloud.translate.v3beta1.DetectedLanguageOrBuilder> | |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(DetectLanguageResponse other)
public DetectLanguageResponse.Builder mergeFrom(DetectLanguageResponse other)
Parameter
Returns
public DetectLanguageResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public DetectLanguageResponse.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final DetectLanguageResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
removeLanguages(int index)
public DetectLanguageResponse.Builder removeLanguages(int index)
A list of detected languages sorted by detection confidence in descending
order. The most probable language first.
repeated .google.cloud.translation.v3beta1.DetectedLanguage languages = 1;
Parameter
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public DetectLanguageResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setLanguages(int index, DetectedLanguage value)
public DetectLanguageResponse.Builder setLanguages(int index, DetectedLanguage value)
A list of detected languages sorted by detection confidence in descending
order. The most probable language first.
repeated .google.cloud.translation.v3beta1.DetectedLanguage languages = 1;
Parameters
Returns
setLanguages(int index, DetectedLanguage.Builder builderForValue)
public DetectLanguageResponse.Builder setLanguages(int index, DetectedLanguage.Builder builderForValue)
A list of detected languages sorted by detection confidence in descending
order. The most probable language first.
repeated .google.cloud.translation.v3beta1.DetectedLanguage languages = 1;
Parameters
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public DetectLanguageResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final DetectLanguageResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides