Interface SearchResponse.Summary.SafetyAttributesOrBuilder

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      String getCategories​(int index)
      The display names of Safety Attribute categories associated with the generated content.
      com.google.protobuf.ByteString getCategoriesBytes​(int index)
      The display names of Safety Attribute categories associated with the generated content.
      int getCategoriesCount()
      The display names of Safety Attribute categories associated with the generated content.
      List<String> getCategoriesList()
      The display names of Safety Attribute categories associated with the generated content.
      float getScores​(int index)
      The confidence scores of the each category, higher value means higher confidence.
      int getScoresCount()
      The confidence scores of the each category, higher value means higher confidence.
      List<Float> getScoresList()
      The confidence scores of the each category, higher value means higher confidence.
      • Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

        isInitialized
      • Methods inherited from interface com.google.protobuf.MessageOrBuilder

        findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
    • Method Detail

      • getCategoriesList

        List<String> getCategoriesList()
         The display names of Safety Attribute categories associated with the
         generated content. Order matches the Scores.
         
        repeated string categories = 1;
        Returns:
        A list containing the categories.
      • getCategoriesCount

        int getCategoriesCount()
         The display names of Safety Attribute categories associated with the
         generated content. Order matches the Scores.
         
        repeated string categories = 1;
        Returns:
        The count of categories.
      • getCategories

        String getCategories​(int index)
         The display names of Safety Attribute categories associated with the
         generated content. Order matches the Scores.
         
        repeated string categories = 1;
        Parameters:
        index - The index of the element to return.
        Returns:
        The categories at the given index.
      • getCategoriesBytes

        com.google.protobuf.ByteString getCategoriesBytes​(int index)
         The display names of Safety Attribute categories associated with the
         generated content. Order matches the Scores.
         
        repeated string categories = 1;
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the categories at the given index.
      • getScoresList

        List<Float> getScoresList()
         The confidence scores of the each category, higher
         value means higher confidence. Order matches the Categories.
         
        repeated float scores = 2;
        Returns:
        A list containing the scores.
      • getScoresCount

        int getScoresCount()
         The confidence scores of the each category, higher
         value means higher confidence. Order matches the Categories.
         
        repeated float scores = 2;
        Returns:
        The count of scores.
      • getScores

        float getScores​(int index)
         The confidence scores of the each category, higher
         value means higher confidence. Order matches the Categories.
         
        repeated float scores = 2;
        Parameters:
        index - The index of the element to return.
        Returns:
        The scores at the given index.