Interface StructuredSnippetAssetOrBuilder

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

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

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.lang.String getHeader()
      Required.
      com.google.protobuf.ByteString getHeaderBytes()
      Required.
      java.lang.String getValues​(int index)
      Required.
      com.google.protobuf.ByteString getValuesBytes​(int index)
      Required.
      int getValuesCount()
      Required.
      java.util.List<java.lang.String> getValuesList()
      Required.
      • 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

      • getHeader

        java.lang.String getHeader()
         Required. The header of the snippet.
         This string should be one of the predefined values at
         https://developers.google.com/google-ads/api/reference/data/structured-snippet-headers
         
        string header = 1 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        The header.
      • getHeaderBytes

        com.google.protobuf.ByteString getHeaderBytes()
         Required. The header of the snippet.
         This string should be one of the predefined values at
         https://developers.google.com/google-ads/api/reference/data/structured-snippet-headers
         
        string header = 1 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        The bytes for header.
      • getValuesList

        java.util.List<java.lang.String> getValuesList()
         Required. The values in the snippet.
         The size of this collection should be between 3 and 10, inclusive.
         The length of each value should be between 1 and 25 characters, inclusive.
         
        repeated string values = 2 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        A list containing the values.
      • getValuesCount

        int getValuesCount()
         Required. The values in the snippet.
         The size of this collection should be between 3 and 10, inclusive.
         The length of each value should be between 1 and 25 characters, inclusive.
         
        repeated string values = 2 [(.google.api.field_behavior) = REQUIRED];
        Returns:
        The count of values.
      • getValues

        java.lang.String getValues​(int index)
         Required. The values in the snippet.
         The size of this collection should be between 3 and 10, inclusive.
         The length of each value should be between 1 and 25 characters, inclusive.
         
        repeated string values = 2 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        index - The index of the element to return.
        Returns:
        The values at the given index.
      • getValuesBytes

        com.google.protobuf.ByteString getValuesBytes​(int index)
         Required. The values in the snippet.
         The size of this collection should be between 3 and 10, inclusive.
         The length of each value should be between 1 and 25 characters, inclusive.
         
        repeated string values = 2 [(.google.api.field_behavior) = REQUIRED];
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the values at the given index.