public static final class ClassifyTextResponse.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<ClassifyTextResponse.Builder> implements ClassifyTextResponseOrBuilder
The document classification response message.Protobuf type
google.cloud.language.v1.ClassifyTextResponse| Modifier and Type | Method and Description |
|---|---|
ClassifyTextResponse.Builder |
addAllCategories(Iterable<? extends ClassificationCategory> values)
Categories representing the input document.
|
ClassifyTextResponse.Builder |
addCategories(ClassificationCategory.Builder builderForValue)
Categories representing the input document.
|
ClassifyTextResponse.Builder |
addCategories(ClassificationCategory value)
Categories representing the input document.
|
ClassifyTextResponse.Builder |
addCategories(int index,
ClassificationCategory.Builder builderForValue)
Categories representing the input document.
|
ClassifyTextResponse.Builder |
addCategories(int index,
ClassificationCategory value)
Categories representing the input document.
|
ClassificationCategory.Builder |
addCategoriesBuilder()
Categories representing the input document.
|
ClassificationCategory.Builder |
addCategoriesBuilder(int index)
Categories representing the input document.
|
ClassifyTextResponse.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
ClassifyTextResponse |
build() |
ClassifyTextResponse |
buildPartial() |
ClassifyTextResponse.Builder |
clear() |
ClassifyTextResponse.Builder |
clearCategories()
Categories representing the input document.
|
ClassifyTextResponse.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
ClassifyTextResponse.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
ClassifyTextResponse.Builder |
clone() |
ClassificationCategory |
getCategories(int index)
Categories representing the input document.
|
ClassificationCategory.Builder |
getCategoriesBuilder(int index)
Categories representing the input document.
|
List<ClassificationCategory.Builder> |
getCategoriesBuilderList()
Categories representing the input document.
|
int |
getCategoriesCount()
Categories representing the input document.
|
List<ClassificationCategory> |
getCategoriesList()
Categories representing the input document.
|
ClassificationCategoryOrBuilder |
getCategoriesOrBuilder(int index)
Categories representing the input document.
|
List<? extends ClassificationCategoryOrBuilder> |
getCategoriesOrBuilderList()
Categories representing the input document.
|
ClassifyTextResponse |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
ClassifyTextResponse.Builder |
mergeFrom(ClassifyTextResponse other) |
ClassifyTextResponse.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
ClassifyTextResponse.Builder |
mergeFrom(com.google.protobuf.Message other) |
ClassifyTextResponse.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
ClassifyTextResponse.Builder |
removeCategories(int index)
Categories representing the input document.
|
ClassifyTextResponse.Builder |
setCategories(int index,
ClassificationCategory.Builder builderForValue)
Categories representing the input document.
|
ClassifyTextResponse.Builder |
setCategories(int index,
ClassificationCategory value)
Categories representing the input document.
|
ClassifyTextResponse.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
ClassifyTextResponse.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
ClassifyTextResponse.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<ClassifyTextResponse.Builder>public ClassifyTextResponse.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<ClassifyTextResponse.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<ClassifyTextResponse.Builder>public ClassifyTextResponse getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic ClassifyTextResponse build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic ClassifyTextResponse buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic ClassifyTextResponse.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<ClassifyTextResponse.Builder>public ClassifyTextResponse.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<ClassifyTextResponse.Builder>public ClassifyTextResponse.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<ClassifyTextResponse.Builder>public ClassifyTextResponse.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<ClassifyTextResponse.Builder>public ClassifyTextResponse.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<ClassifyTextResponse.Builder>public ClassifyTextResponse.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<ClassifyTextResponse.Builder>public ClassifyTextResponse.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<ClassifyTextResponse.Builder>public ClassifyTextResponse.Builder mergeFrom(ClassifyTextResponse other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<ClassifyTextResponse.Builder>public ClassifyTextResponse.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<ClassifyTextResponse.Builder>IOExceptionpublic List<ClassificationCategory> getCategoriesList()
Categories representing the input document.
repeated .google.cloud.language.v1.ClassificationCategory categories = 1;getCategoriesList in interface ClassifyTextResponseOrBuilderpublic int getCategoriesCount()
Categories representing the input document.
repeated .google.cloud.language.v1.ClassificationCategory categories = 1;getCategoriesCount in interface ClassifyTextResponseOrBuilderpublic ClassificationCategory getCategories(int index)
Categories representing the input document.
repeated .google.cloud.language.v1.ClassificationCategory categories = 1;getCategories in interface ClassifyTextResponseOrBuilderpublic ClassifyTextResponse.Builder setCategories(int index, ClassificationCategory value)
Categories representing the input document.
repeated .google.cloud.language.v1.ClassificationCategory categories = 1;public ClassifyTextResponse.Builder setCategories(int index, ClassificationCategory.Builder builderForValue)
Categories representing the input document.
repeated .google.cloud.language.v1.ClassificationCategory categories = 1;public ClassifyTextResponse.Builder addCategories(ClassificationCategory value)
Categories representing the input document.
repeated .google.cloud.language.v1.ClassificationCategory categories = 1;public ClassifyTextResponse.Builder addCategories(int index, ClassificationCategory value)
Categories representing the input document.
repeated .google.cloud.language.v1.ClassificationCategory categories = 1;public ClassifyTextResponse.Builder addCategories(ClassificationCategory.Builder builderForValue)
Categories representing the input document.
repeated .google.cloud.language.v1.ClassificationCategory categories = 1;public ClassifyTextResponse.Builder addCategories(int index, ClassificationCategory.Builder builderForValue)
Categories representing the input document.
repeated .google.cloud.language.v1.ClassificationCategory categories = 1;public ClassifyTextResponse.Builder addAllCategories(Iterable<? extends ClassificationCategory> values)
Categories representing the input document.
repeated .google.cloud.language.v1.ClassificationCategory categories = 1;public ClassifyTextResponse.Builder clearCategories()
Categories representing the input document.
repeated .google.cloud.language.v1.ClassificationCategory categories = 1;public ClassifyTextResponse.Builder removeCategories(int index)
Categories representing the input document.
repeated .google.cloud.language.v1.ClassificationCategory categories = 1;public ClassificationCategory.Builder getCategoriesBuilder(int index)
Categories representing the input document.
repeated .google.cloud.language.v1.ClassificationCategory categories = 1;public ClassificationCategoryOrBuilder getCategoriesOrBuilder(int index)
Categories representing the input document.
repeated .google.cloud.language.v1.ClassificationCategory categories = 1;getCategoriesOrBuilder in interface ClassifyTextResponseOrBuilderpublic List<? extends ClassificationCategoryOrBuilder> getCategoriesOrBuilderList()
Categories representing the input document.
repeated .google.cloud.language.v1.ClassificationCategory categories = 1;getCategoriesOrBuilderList in interface ClassifyTextResponseOrBuilderpublic ClassificationCategory.Builder addCategoriesBuilder()
Categories representing the input document.
repeated .google.cloud.language.v1.ClassificationCategory categories = 1;public ClassificationCategory.Builder addCategoriesBuilder(int index)
Categories representing the input document.
repeated .google.cloud.language.v1.ClassificationCategory categories = 1;public List<ClassificationCategory.Builder> getCategoriesBuilderList()
Categories representing the input document.
repeated .google.cloud.language.v1.ClassificationCategory categories = 1;public final ClassifyTextResponse.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ClassifyTextResponse.Builder>public final ClassifyTextResponse.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<ClassifyTextResponse.Builder>Copyright © 2018 Google LLC. All rights reserved.