- 2.56.0 (latest)
- 2.55.0
- 2.54.0
- 2.53.0
- 2.52.0
- 2.50.0
- 2.49.0
- 2.48.0
- 2.47.0
- 2.46.0
- 2.45.0
- 2.44.0
- 2.43.0
- 2.42.0
- 2.41.0
- 2.40.0
- 2.38.0
- 2.37.0
- 2.36.0
- 2.35.0
- 2.34.0
- 2.33.0
- 2.32.0
- 2.31.0
- 2.30.0
- 2.29.0
- 2.28.0
- 2.25.0
- 2.24.0
- 2.23.0
- 2.22.0
- 2.21.0
- 2.20.0
- 2.19.0
- 2.18.0
- 2.17.0
- 2.16.0
- 2.15.0
- 2.14.0
- 2.13.0
- 2.12.0
- 2.10.0
- 2.9.0
- 2.8.0
- 2.7.0
- 2.6.0
- 2.5.0
- 2.4.1
- 2.3.4
- 2.2.0
- 2.1.10
public static final class ClassificationCategory.Builder extends GeneratedMessageV3.Builder<ClassificationCategory.Builder> implements ClassificationCategoryOrBuilder
Represents a category returned from the text classifier.
Protobuf type google.cloud.language.v1.ClassificationCategory
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > ClassificationCategory.BuilderImplements
ClassificationCategoryOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
build()
public ClassificationCategory build()
Returns | |
---|---|
Type | Description |
ClassificationCategory |
buildPartial()
public ClassificationCategory buildPartial()
Returns | |
---|---|
Type | Description |
ClassificationCategory |
clear()
public ClassificationCategory.Builder clear()
Returns | |
---|---|
Type | Description |
ClassificationCategory.Builder |
clearConfidence()
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;
Returns | |
---|---|
Type | Description |
ClassificationCategory.Builder | This builder for chaining. |
clearName()
public ClassificationCategory.Builder clearName()
The name of the category representing the document.
string name = 1;
Returns | |
---|---|
Type | Description |
ClassificationCategory.Builder | This builder for chaining. |
getConfidence()
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;
Returns | |
---|---|
Type | Description |
float | The confidence. |
getDefaultInstanceForType()
public ClassificationCategory getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
ClassificationCategory |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getName()
public String getName()
The name of the category representing the document.
string name = 1;
Returns | |
---|---|
Type | Description |
String | The name. |
getNameBytes()
public ByteString getNameBytes()
The name of the category representing the document.
string name = 1;
Returns | |
---|---|
Type | Description |
ByteString | The bytes for name. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeFrom(ClassificationCategory other)
public ClassificationCategory.Builder mergeFrom(ClassificationCategory other)
Parameter | |
---|---|
Name | Description |
other | ClassificationCategory |
Returns | |
---|---|
Type | Description |
ClassificationCategory.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public ClassificationCategory.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
ClassificationCategory.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public ClassificationCategory.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other | Message |
Returns | |
---|---|
Type | Description |
ClassificationCategory.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final ClassificationCategory.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
ClassificationCategory.Builder |
setConfidence(float value)
public 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;
Parameter | |
---|---|
Name | Description |
value | float The confidence to set. |
Returns | |
---|---|
Type | Description |
ClassificationCategory.Builder | This builder for chaining. |
setName(String value)
public ClassificationCategory.Builder setName(String value)
The name of the category representing the document.
string name = 1;
Parameter | |
---|---|
Name | Description |
value | String The name to set. |
Returns | |
---|---|
Type | Description |
ClassificationCategory.Builder | This builder for chaining. |
setNameBytes(ByteString value)
public ClassificationCategory.Builder setNameBytes(ByteString value)
The name of the category representing the document.
string name = 1;
Parameter | |
---|---|
Name | Description |
value | ByteString The bytes for name to set. |
Returns | |
---|---|
Type | Description |
ClassificationCategory.Builder | This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final ClassificationCategory.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields | UnknownFieldSet |
Returns | |
---|---|
Type | Description |
ClassificationCategory.Builder |