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

    Modifier and Type
    Method
    Description
    Required.
    com.google.protobuf.ByteString
    Required.
    getValues(int index)
    Required.
    com.google.protobuf.ByteString
    getValuesBytes(int index)
    Required.
    int
    Required.
    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 Details

    • getHeader

      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

      List<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

      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.