Interface CustomAttributeOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
CustomAttribute,CustomAttribute.Builder
@Generated
public interface CustomAttributeOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptiondoublegetNumbers(int index) The numerical values of this custom attribute.intThe numerical values of this custom attribute.The numerical values of this custom attribute.getText(int index) The textual values of this custom attribute.com.google.protobuf.ByteStringgetTextBytes(int index) The textual values of this custom attribute.intThe textual values of this custom attribute.The textual values of this custom attribute.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
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
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
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.
-