Class ClassifyTextResponse.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<ClassifyTextResponse.Builder>
com.google.cloud.language.v1.ClassifyTextResponse.Builder
All Implemented Interfaces:
ClassifyTextResponseOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
ClassifyTextResponse

public static final class ClassifyTextResponse.Builder extends com.google.protobuf.GeneratedMessage.Builder<ClassifyTextResponse.Builder> implements ClassifyTextResponseOrBuilder
 The document classification response message.
 
Protobuf type google.cloud.language.v1.ClassifyTextResponse
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<ClassifyTextResponse.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<ClassifyTextResponse.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<ClassifyTextResponse.Builder>
    • getDefaultInstanceForType

      public ClassifyTextResponse getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      public ClassifyTextResponse build()
      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      public ClassifyTextResponse buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public ClassifyTextResponse.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ClassifyTextResponse.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<ClassifyTextResponse.Builder>
    • mergeFrom

      public ClassifyTextResponse.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<ClassifyTextResponse.Builder>
      Throws:
      IOException
    • getCategoriesList

      public List<ClassificationCategory> getCategoriesList()
       Categories representing the input document.
       
      repeated .google.cloud.language.v1.ClassificationCategory categories = 1;
      Specified by:
      getCategoriesList in interface ClassifyTextResponseOrBuilder
    • getCategoriesCount

      public int getCategoriesCount()
       Categories representing the input document.
       
      repeated .google.cloud.language.v1.ClassificationCategory categories = 1;
      Specified by:
      getCategoriesCount in interface ClassifyTextResponseOrBuilder
    • getCategories

      public ClassificationCategory getCategories(int index)
       Categories representing the input document.
       
      repeated .google.cloud.language.v1.ClassificationCategory categories = 1;
      Specified by:
      getCategories in interface ClassifyTextResponseOrBuilder
    • setCategories

      public ClassifyTextResponse.Builder setCategories(int index, ClassificationCategory value)
       Categories representing the input document.
       
      repeated .google.cloud.language.v1.ClassificationCategory categories = 1;
    • setCategories

      public ClassifyTextResponse.Builder setCategories(int index, ClassificationCategory.Builder builderForValue)
       Categories representing the input document.
       
      repeated .google.cloud.language.v1.ClassificationCategory categories = 1;
    • addCategories

       Categories representing the input document.
       
      repeated .google.cloud.language.v1.ClassificationCategory categories = 1;
    • addCategories

      public ClassifyTextResponse.Builder addCategories(int index, ClassificationCategory value)
       Categories representing the input document.
       
      repeated .google.cloud.language.v1.ClassificationCategory categories = 1;
    • addCategories

      public ClassifyTextResponse.Builder addCategories(ClassificationCategory.Builder builderForValue)
       Categories representing the input document.
       
      repeated .google.cloud.language.v1.ClassificationCategory categories = 1;
    • addCategories

      public ClassifyTextResponse.Builder addCategories(int index, ClassificationCategory.Builder builderForValue)
       Categories representing the input document.
       
      repeated .google.cloud.language.v1.ClassificationCategory categories = 1;
    • addAllCategories

      public ClassifyTextResponse.Builder addAllCategories(Iterable<? extends ClassificationCategory> values)
       Categories representing the input document.
       
      repeated .google.cloud.language.v1.ClassificationCategory categories = 1;
    • clearCategories

      public ClassifyTextResponse.Builder clearCategories()
       Categories representing the input document.
       
      repeated .google.cloud.language.v1.ClassificationCategory categories = 1;
    • removeCategories

      public ClassifyTextResponse.Builder removeCategories(int index)
       Categories representing the input document.
       
      repeated .google.cloud.language.v1.ClassificationCategory categories = 1;
    • getCategoriesBuilder

      public ClassificationCategory.Builder getCategoriesBuilder(int index)
       Categories representing the input document.
       
      repeated .google.cloud.language.v1.ClassificationCategory categories = 1;
    • getCategoriesOrBuilder

      public ClassificationCategoryOrBuilder getCategoriesOrBuilder(int index)
       Categories representing the input document.
       
      repeated .google.cloud.language.v1.ClassificationCategory categories = 1;
      Specified by:
      getCategoriesOrBuilder in interface ClassifyTextResponseOrBuilder
    • getCategoriesOrBuilderList

      public List<? extends ClassificationCategoryOrBuilder> getCategoriesOrBuilderList()
       Categories representing the input document.
       
      repeated .google.cloud.language.v1.ClassificationCategory categories = 1;
      Specified by:
      getCategoriesOrBuilderList in interface ClassifyTextResponseOrBuilder
    • addCategoriesBuilder

      public ClassificationCategory.Builder addCategoriesBuilder()
       Categories representing the input document.
       
      repeated .google.cloud.language.v1.ClassificationCategory categories = 1;
    • addCategoriesBuilder

      public ClassificationCategory.Builder addCategoriesBuilder(int index)
       Categories representing the input document.
       
      repeated .google.cloud.language.v1.ClassificationCategory categories = 1;
    • getCategoriesBuilderList

      public List<ClassificationCategory.Builder> getCategoriesBuilderList()
       Categories representing the input document.
       
      repeated .google.cloud.language.v1.ClassificationCategory categories = 1;