publicstaticfinalclass ClassifyTextResponse.BuilderextendsGeneratedMessageV3.Builder<ClassifyTextResponse.Builder>implementsClassifyTextResponseOrBuilder
The document classification response message.
Protobuf type google.cloud.language.v2.ClassifyTextResponse
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()
publicstaticfinalDescriptors.DescriptorgetDescriptor()
Methods
addAllCategories(Iterable<? extends ClassificationCategory> values)
publicClassifyTextResponse.BuilderaddAllCategories(Iterable<?extendsClassificationCategory>values)
Categories representing the input document.
repeated .google.cloud.language.v2.ClassificationCategory categories = 1;
| Parameter |
| Name |
Description |
values |
Iterable<? extends com.google.cloud.language.v2.ClassificationCategory>
|
addCategories(ClassificationCategory value)
publicClassifyTextResponse.BuilderaddCategories(ClassificationCategoryvalue)
Categories representing the input document.
repeated .google.cloud.language.v2.ClassificationCategory categories = 1;
addCategories(ClassificationCategory.Builder builderForValue)
publicClassifyTextResponse.BuilderaddCategories(ClassificationCategory.BuilderbuilderForValue)
Categories representing the input document.
repeated .google.cloud.language.v2.ClassificationCategory categories = 1;
addCategories(int index, ClassificationCategory value)
publicClassifyTextResponse.BuilderaddCategories(intindex,ClassificationCategoryvalue)
Categories representing the input document.
repeated .google.cloud.language.v2.ClassificationCategory categories = 1;
addCategories(int index, ClassificationCategory.Builder builderForValue)
publicClassifyTextResponse.BuilderaddCategories(intindex,ClassificationCategory.BuilderbuilderForValue)
Categories representing the input document.
repeated .google.cloud.language.v2.ClassificationCategory categories = 1;
addCategoriesBuilder()
publicClassificationCategory.BuilderaddCategoriesBuilder()
Categories representing the input document.
repeated .google.cloud.language.v2.ClassificationCategory categories = 1;
addCategoriesBuilder(int index)
publicClassificationCategory.BuilderaddCategoriesBuilder(intindex)
Categories representing the input document.
repeated .google.cloud.language.v2.ClassificationCategory categories = 1;
| Parameter |
| Name |
Description |
index |
int
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
publicClassifyTextResponse.BuilderaddRepeatedField(Descriptors.FieldDescriptorfield,Objectvalue)
Overrides
build()
publicClassifyTextResponsebuild()
buildPartial()
publicClassifyTextResponsebuildPartial()
clear()
publicClassifyTextResponse.Builderclear()
Overrides
clearCategories()
publicClassifyTextResponse.BuilderclearCategories()
Categories representing the input document.
repeated .google.cloud.language.v2.ClassificationCategory categories = 1;
clearField(Descriptors.FieldDescriptor field)
publicClassifyTextResponse.BuilderclearField(Descriptors.FieldDescriptorfield)
Overrides
clearLanguageCode()
publicClassifyTextResponse.BuilderclearLanguageCode()
The language of the text, which will be the same as the language specified
in the request or, if not specified, the automatically-detected language.
See [Document.language][] field for more details.
string language_code = 2;
clearLanguageSupported()
publicClassifyTextResponse.BuilderclearLanguageSupported()
Whether the language is officially supported. The API may still return a
response when the language is not supported, but it is on a best effort
basis.
bool language_supported = 3;
clearOneof(Descriptors.OneofDescriptor oneof)
publicClassifyTextResponse.BuilderclearOneof(Descriptors.OneofDescriptoroneof)
Overrides
clone()
publicClassifyTextResponse.Builderclone()
Overrides
getCategories(int index)
publicClassificationCategorygetCategories(intindex)
Categories representing the input document.
repeated .google.cloud.language.v2.ClassificationCategory categories = 1;
| Parameter |
| Name |
Description |
index |
int
|
getCategoriesBuilder(int index)
publicClassificationCategory.BuildergetCategoriesBuilder(intindex)
Categories representing the input document.
repeated .google.cloud.language.v2.ClassificationCategory categories = 1;
| Parameter |
| Name |
Description |
index |
int
|
getCategoriesBuilderList()
publicList<ClassificationCategory.Builder>getCategoriesBuilderList()
Categories representing the input document.
repeated .google.cloud.language.v2.ClassificationCategory categories = 1;
getCategoriesCount()
publicintgetCategoriesCount()
Categories representing the input document.
repeated .google.cloud.language.v2.ClassificationCategory categories = 1;
| Returns |
| Type |
Description |
int |
getCategoriesList()
publicList<ClassificationCategory>getCategoriesList()
Categories representing the input document.
repeated .google.cloud.language.v2.ClassificationCategory categories = 1;
getCategoriesOrBuilder(int index)
publicClassificationCategoryOrBuildergetCategoriesOrBuilder(intindex)
Categories representing the input document.
repeated .google.cloud.language.v2.ClassificationCategory categories = 1;
| Parameter |
| Name |
Description |
index |
int
|
getCategoriesOrBuilderList()
publicList<?extendsClassificationCategoryOrBuilder>getCategoriesOrBuilderList()
Categories representing the input document.
repeated .google.cloud.language.v2.ClassificationCategory categories = 1;
| Returns |
| Type |
Description |
List<? extends com.google.cloud.language.v2.ClassificationCategoryOrBuilder> |
getDefaultInstanceForType()
publicClassifyTextResponsegetDefaultInstanceForType()
getDescriptorForType()
publicDescriptors.DescriptorgetDescriptorForType()
Overrides
getLanguageCode()
publicStringgetLanguageCode()
The language of the text, which will be the same as the language specified
in the request or, if not specified, the automatically-detected language.
See [Document.language][] field for more details.
string language_code = 2;
| Returns |
| Type |
Description |
String |
The languageCode.
|
getLanguageCodeBytes()
publicByteStringgetLanguageCodeBytes()
The language of the text, which will be the same as the language specified
in the request or, if not specified, the automatically-detected language.
See [Document.language][] field for more details.
string language_code = 2;
| Returns |
| Type |
Description |
ByteString |
The bytes for languageCode.
|
getLanguageSupported()
publicbooleangetLanguageSupported()
Whether the language is officially supported. The API may still return a
response when the language is not supported, but it is on a best effort
basis.
bool language_supported = 3;
| Returns |
| Type |
Description |
boolean |
The languageSupported.
|
internalGetFieldAccessorTable()
protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Overrides
isInitialized()
publicfinalbooleanisInitialized()
Overrides
mergeFrom(ClassifyTextResponse other)
publicClassifyTextResponse.BuildermergeFrom(ClassifyTextResponseother)
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
publicClassifyTextResponse.BuildermergeFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Overrides
mergeFrom(Message other)
publicClassifyTextResponse.BuildermergeFrom(Messageother)
| Parameter |
| Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
publicfinalClassifyTextResponse.BuildermergeUnknownFields(UnknownFieldSetunknownFields)
Overrides
removeCategories(int index)
publicClassifyTextResponse.BuilderremoveCategories(intindex)
Categories representing the input document.
repeated .google.cloud.language.v2.ClassificationCategory categories = 1;
| Parameter |
| Name |
Description |
index |
int
|
setCategories(int index, ClassificationCategory value)
publicClassifyTextResponse.BuildersetCategories(intindex,ClassificationCategoryvalue)
Categories representing the input document.
repeated .google.cloud.language.v2.ClassificationCategory categories = 1;
setCategories(int index, ClassificationCategory.Builder builderForValue)
publicClassifyTextResponse.BuildersetCategories(intindex,ClassificationCategory.BuilderbuilderForValue)
Categories representing the input document.
repeated .google.cloud.language.v2.ClassificationCategory categories = 1;
setField(Descriptors.FieldDescriptor field, Object value)
publicClassifyTextResponse.BuildersetField(Descriptors.FieldDescriptorfield,Objectvalue)
Overrides
setLanguageCode(String value)
publicClassifyTextResponse.BuildersetLanguageCode(Stringvalue)
The language of the text, which will be the same as the language specified
in the request or, if not specified, the automatically-detected language.
See [Document.language][] field for more details.
string language_code = 2;
| Parameter |
| Name |
Description |
value |
String
The languageCode to set.
|
setLanguageCodeBytes(ByteString value)
publicClassifyTextResponse.BuildersetLanguageCodeBytes(ByteStringvalue)
The language of the text, which will be the same as the language specified
in the request or, if not specified, the automatically-detected language.
See [Document.language][] field for more details.
string language_code = 2;
| Parameter |
| Name |
Description |
value |
ByteString
The bytes for languageCode to set.
|
setLanguageSupported(boolean value)
publicClassifyTextResponse.BuildersetLanguageSupported(booleanvalue)
Whether the language is officially supported. The API may still return a
response when the language is not supported, but it is on a best effort
basis.
bool language_supported = 3;
| Parameter |
| Name |
Description |
value |
boolean
The languageSupported to set.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
publicClassifyTextResponse.BuildersetRepeatedField(Descriptors.FieldDescriptorfield,intindex,Objectvalue)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
publicfinalClassifyTextResponse.BuildersetUnknownFields(UnknownFieldSetunknownFields)
Overrides