Interface CustomAttributeOrBuilder

  • All Superinterfaces:
    com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
    All Known Implementing Classes:
    CustomAttribute, CustomAttribute.Builder

    public interface CustomAttributeOrBuilder
    extends com.google.protobuf.MessageOrBuilder
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      double getNumbers​(int index)
      The numerical values of this custom attribute.
      int getNumbersCount()
      The numerical values of this custom attribute.
      List<Double> getNumbersList()
      The numerical values of this custom attribute.
      String getText​(int index)
      The textual values of this custom attribute.
      com.google.protobuf.ByteString getTextBytes​(int index)
      The textual values of this custom attribute.
      int getTextCount()
      The textual values of this custom attribute.
      List<String> getTextList()
      The textual values of this custom attribute.
      • 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

      • getTextList

        List<String> getTextList()
         The textual values of this custom attribute. For example, `["yellow",
         "green"]` when the key is "color".
        
         Empty string is not allowed. Otherwise, an `INVALID_ARGUMENT` error is
         returned.
        
         Exactly one of
         [CustomAttribute.text][google.cloud.discoveryengine.v1beta.CustomAttribute.text]
         or
         [CustomAttribute.numbers][google.cloud.discoveryengine.v1beta.CustomAttribute.numbers]
         should be set. Otherwise, an `INVALID_ARGUMENT` error is returned.
         
        repeated string text = 1;
        Returns:
        A list containing the text.
      • getTextCount

        int getTextCount()
         The textual values of this custom attribute. For example, `["yellow",
         "green"]` when the key is "color".
        
         Empty string is not allowed. Otherwise, an `INVALID_ARGUMENT` error is
         returned.
        
         Exactly one of
         [CustomAttribute.text][google.cloud.discoveryengine.v1beta.CustomAttribute.text]
         or
         [CustomAttribute.numbers][google.cloud.discoveryengine.v1beta.CustomAttribute.numbers]
         should be set. Otherwise, an `INVALID_ARGUMENT` error is returned.
         
        repeated string text = 1;
        Returns:
        The count of text.
      • getText

        String getText​(int index)
         The textual values of this custom attribute. For example, `["yellow",
         "green"]` when the key is "color".
        
         Empty string is not allowed. Otherwise, an `INVALID_ARGUMENT` error is
         returned.
        
         Exactly one of
         [CustomAttribute.text][google.cloud.discoveryengine.v1beta.CustomAttribute.text]
         or
         [CustomAttribute.numbers][google.cloud.discoveryengine.v1beta.CustomAttribute.numbers]
         should be set. Otherwise, an `INVALID_ARGUMENT` error is returned.
         
        repeated string text = 1;
        Parameters:
        index - The index of the element to return.
        Returns:
        The text at the given index.
      • getTextBytes

        com.google.protobuf.ByteString getTextBytes​(int index)
         The textual values of this custom attribute. For example, `["yellow",
         "green"]` when the key is "color".
        
         Empty string is not allowed. Otherwise, an `INVALID_ARGUMENT` error is
         returned.
        
         Exactly one of
         [CustomAttribute.text][google.cloud.discoveryengine.v1beta.CustomAttribute.text]
         or
         [CustomAttribute.numbers][google.cloud.discoveryengine.v1beta.CustomAttribute.numbers]
         should be set. Otherwise, an `INVALID_ARGUMENT` error is returned.
         
        repeated string text = 1;
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the text at the given index.
      • getNumbersList

        List<Double> getNumbersList()
         The numerical values of this custom attribute. For example, `[2.3, 15.4]`
         when the key is "lengths_cm".
        
         Exactly one of
         [CustomAttribute.text][google.cloud.discoveryengine.v1beta.CustomAttribute.text]
         or
         [CustomAttribute.numbers][google.cloud.discoveryengine.v1beta.CustomAttribute.numbers]
         should be set. Otherwise, an `INVALID_ARGUMENT` error is returned.
         
        repeated double numbers = 2;
        Returns:
        A list containing the numbers.
      • getNumbersCount

        int getNumbersCount()
         The numerical values of this custom attribute. For example, `[2.3, 15.4]`
         when the key is "lengths_cm".
        
         Exactly one of
         [CustomAttribute.text][google.cloud.discoveryengine.v1beta.CustomAttribute.text]
         or
         [CustomAttribute.numbers][google.cloud.discoveryengine.v1beta.CustomAttribute.numbers]
         should be set. Otherwise, an `INVALID_ARGUMENT` error is returned.
         
        repeated double numbers = 2;
        Returns:
        The count of numbers.
      • getNumbers

        double getNumbers​(int index)
         The numerical values of this custom attribute. For example, `[2.3, 15.4]`
         when the key is "lengths_cm".
        
         Exactly one of
         [CustomAttribute.text][google.cloud.discoveryengine.v1beta.CustomAttribute.text]
         or
         [CustomAttribute.numbers][google.cloud.discoveryengine.v1beta.CustomAttribute.numbers]
         should be set. Otherwise, an `INVALID_ARGUMENT` error is returned.
         
        repeated double numbers = 2;
        Parameters:
        index - The index of the element to return.
        Returns:
        The numbers at the given index.