public static final class DetectLanguageResponse.Builder extends GeneratedMessageV3.Builder<DetectLanguageResponse.Builder> implements DetectLanguageResponseOrBuilder
The response message for language detection.
Protobuf type google.cloud.translation.v3.DetectLanguageResponse
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 DetectedLanguage> values)
public DetectLanguageResponse.Builder addAllLanguages(Iterable<? extends DetectedLanguage> values)
The most probable language detected by the Translation API. For each
request, the Translation API will always return only one result.
repeated .google.cloud.translation.v3.DetectedLanguage languages = 1;
Parameter |
---|
Name | Description |
values | Iterable<? extends com.google.cloud.translate.v3.DetectedLanguage>
|
addLanguages(DetectedLanguage value)
public DetectLanguageResponse.Builder addLanguages(DetectedLanguage value)
The most probable language detected by the Translation API. For each
request, the Translation API will always return only one result.
repeated .google.cloud.translation.v3.DetectedLanguage languages = 1;
addLanguages(DetectedLanguage.Builder builderForValue)
public DetectLanguageResponse.Builder addLanguages(DetectedLanguage.Builder builderForValue)
The most probable language detected by the Translation API. For each
request, the Translation API will always return only one result.
repeated .google.cloud.translation.v3.DetectedLanguage languages = 1;
addLanguages(int index, DetectedLanguage value)
public DetectLanguageResponse.Builder addLanguages(int index, DetectedLanguage value)
The most probable language detected by the Translation API. For each
request, the Translation API will always return only one result.
repeated .google.cloud.translation.v3.DetectedLanguage languages = 1;
addLanguages(int index, DetectedLanguage.Builder builderForValue)
public DetectLanguageResponse.Builder addLanguages(int index, DetectedLanguage.Builder builderForValue)
The most probable language detected by the Translation API. For each
request, the Translation API will always return only one result.
repeated .google.cloud.translation.v3.DetectedLanguage languages = 1;
addLanguagesBuilder()
public DetectedLanguage.Builder addLanguagesBuilder()
The most probable language detected by the Translation API. For each
request, the Translation API will always return only one result.
repeated .google.cloud.translation.v3.DetectedLanguage languages = 1;
addLanguagesBuilder(int index)
public DetectedLanguage.Builder addLanguagesBuilder(int index)
The most probable language detected by the Translation API. For each
request, the Translation API will always return only one result.
repeated .google.cloud.translation.v3.DetectedLanguage languages = 1;
Parameter |
---|
Name | Description |
index | int
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public DetectLanguageResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public DetectLanguageResponse build()
buildPartial()
public DetectLanguageResponse buildPartial()
clear()
public DetectLanguageResponse.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public DetectLanguageResponse.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearLanguages()
public DetectLanguageResponse.Builder clearLanguages()
The most probable language detected by the Translation API. For each
request, the Translation API will always return only one result.
repeated .google.cloud.translation.v3.DetectedLanguage languages = 1;
clearOneof(Descriptors.OneofDescriptor oneof)
public DetectLanguageResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clone()
public DetectLanguageResponse.Builder clone()
Overrides
getDefaultInstanceForType()
public DetectLanguageResponse getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getLanguages(int index)
public DetectedLanguage getLanguages(int index)
The most probable language detected by the Translation API. For each
request, the Translation API will always return only one result.
repeated .google.cloud.translation.v3.DetectedLanguage languages = 1;
Parameter |
---|
Name | Description |
index | int
|
getLanguagesBuilder(int index)
public DetectedLanguage.Builder getLanguagesBuilder(int index)
The most probable language detected by the Translation API. For each
request, the Translation API will always return only one result.
repeated .google.cloud.translation.v3.DetectedLanguage languages = 1;
Parameter |
---|
Name | Description |
index | int
|
getLanguagesBuilderList()
public List<DetectedLanguage.Builder> getLanguagesBuilderList()
The most probable language detected by the Translation API. For each
request, the Translation API will always return only one result.
repeated .google.cloud.translation.v3.DetectedLanguage languages = 1;
getLanguagesCount()
public int getLanguagesCount()
The most probable language detected by the Translation API. For each
request, the Translation API will always return only one result.
repeated .google.cloud.translation.v3.DetectedLanguage languages = 1;
Returns |
---|
Type | Description |
int | |
getLanguagesList()
public List<DetectedLanguage> getLanguagesList()
The most probable language detected by the Translation API. For each
request, the Translation API will always return only one result.
repeated .google.cloud.translation.v3.DetectedLanguage languages = 1;
getLanguagesOrBuilder(int index)
public DetectedLanguageOrBuilder getLanguagesOrBuilder(int index)
The most probable language detected by the Translation API. For each
request, the Translation API will always return only one result.
repeated .google.cloud.translation.v3.DetectedLanguage languages = 1;
Parameter |
---|
Name | Description |
index | int
|
getLanguagesOrBuilderList()
public List<? extends DetectedLanguageOrBuilder> getLanguagesOrBuilderList()
The most probable language detected by the Translation API. For each
request, the Translation API will always return only one result.
repeated .google.cloud.translation.v3.DetectedLanguage languages = 1;
Returns |
---|
Type | Description |
List<? extends com.google.cloud.translate.v3.DetectedLanguageOrBuilder> | |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(DetectLanguageResponse other)
public DetectLanguageResponse.Builder mergeFrom(DetectLanguageResponse other)
public DetectLanguageResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public DetectLanguageResponse.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final DetectLanguageResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
removeLanguages(int index)
public DetectLanguageResponse.Builder removeLanguages(int index)
The most probable language detected by the Translation API. For each
request, the Translation API will always return only one result.
repeated .google.cloud.translation.v3.DetectedLanguage languages = 1;
Parameter |
---|
Name | Description |
index | int
|
setField(Descriptors.FieldDescriptor field, Object value)
public DetectLanguageResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setLanguages(int index, DetectedLanguage value)
public DetectLanguageResponse.Builder setLanguages(int index, DetectedLanguage value)
The most probable language detected by the Translation API. For each
request, the Translation API will always return only one result.
repeated .google.cloud.translation.v3.DetectedLanguage languages = 1;
setLanguages(int index, DetectedLanguage.Builder builderForValue)
public DetectLanguageResponse.Builder setLanguages(int index, DetectedLanguage.Builder builderForValue)
The most probable language detected by the Translation API. For each
request, the Translation API will always return only one result.
repeated .google.cloud.translation.v3.DetectedLanguage languages = 1;
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public DetectLanguageResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final DetectLanguageResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides