public static final class ClassificationCategory.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ClassificationCategory.Builder> implements ClassificationCategoryOrBuilder
Represents a category returned from the text classifier.Protobuf type
google.cloud.language.v1.ClassificationCategory| Modifier and Type | Method and Description |
|---|---|
ClassificationCategory.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
ClassificationCategory |
build() |
ClassificationCategory |
buildPartial() |
ClassificationCategory.Builder |
clear() |
ClassificationCategory.Builder |
clearConfidence()
The classifier's confidence of the category.
|
ClassificationCategory.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
ClassificationCategory.Builder |
clearName()
The name of the category representing the document.
|
ClassificationCategory.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
ClassificationCategory.Builder |
clone() |
float |
getConfidence()
The classifier's confidence of the category.
|
ClassificationCategory |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getName()
The name of the category representing the document.
|
com.google.protobuf.ByteString |
getNameBytes()
The name of the category representing the document.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
ClassificationCategory.Builder |
mergeFrom(ClassificationCategory other) |
ClassificationCategory.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
ClassificationCategory.Builder |
mergeFrom(com.google.protobuf.Message other) |
ClassificationCategory.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
ClassificationCategory.Builder |
setConfidence(float value)
The classifier's confidence of the category.
|
ClassificationCategory.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
ClassificationCategory.Builder |
setName(String value)
The name of the category representing the document.
|
ClassificationCategory.Builder |
setNameBytes(com.google.protobuf.ByteString value)
The name of the category representing the document.
|
ClassificationCategory.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
ClassificationCategory.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, newBuilderForField, onBuilt, onChanged, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<ClassificationCategory.Builder>public ClassificationCategory.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<ClassificationCategory.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<ClassificationCategory.Builder>public ClassificationCategory getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic ClassificationCategory build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic ClassificationCategory buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic ClassificationCategory.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<ClassificationCategory.Builder>public ClassificationCategory.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<ClassificationCategory.Builder>public ClassificationCategory.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<ClassificationCategory.Builder>public ClassificationCategory.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<ClassificationCategory.Builder>public ClassificationCategory.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ClassificationCategory.Builder>public ClassificationCategory.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<ClassificationCategory.Builder>public ClassificationCategory.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<ClassificationCategory.Builder>public ClassificationCategory.Builder mergeFrom(ClassificationCategory other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<ClassificationCategory.Builder>public ClassificationCategory.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<ClassificationCategory.Builder>IOExceptionpublic String getName()
The name of the category representing the document.
string name = 1;getName in interface ClassificationCategoryOrBuilderpublic com.google.protobuf.ByteString getNameBytes()
The name of the category representing the document.
string name = 1;getNameBytes in interface ClassificationCategoryOrBuilderpublic ClassificationCategory.Builder setName(String value)
The name of the category representing the document.
string name = 1;public ClassificationCategory.Builder clearName()
The name of the category representing the document.
string name = 1;public ClassificationCategory.Builder setNameBytes(com.google.protobuf.ByteString value)
The name of the category representing the document.
string name = 1;public float getConfidence()
The classifier's confidence of the category. Number represents how certain the classifier is that this category represents the given text.
float confidence = 2;getConfidence in interface ClassificationCategoryOrBuilderpublic ClassificationCategory.Builder setConfidence(float value)
The classifier's confidence of the category. Number represents how certain the classifier is that this category represents the given text.
float confidence = 2;public ClassificationCategory.Builder clearConfidence()
The classifier's confidence of the category. Number represents how certain the classifier is that this category represents the given text.
float confidence = 2;public final ClassificationCategory.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ClassificationCategory.Builder>public final ClassificationCategory.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ClassificationCategory.Builder>Copyright © 2018 Google LLC. All rights reserved.