Interface StructuredSnippetFeedItemOrBuilder

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

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

    Modifier and Type
    Method
    Description
    The header of the snippet.
    com.google.protobuf.ByteString
    The header of the snippet.
    getValues(int index)
    The values in the snippet.
    com.google.protobuf.ByteString
    getValuesBytes(int index)
    The values in the snippet.
    int
    The values in the snippet.
    The values in the snippet.
    boolean
    The header of the snippet.

    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

    • hasHeader

      boolean hasHeader()
       The header of the snippet.
       This string must not be empty.
       
      optional string header = 3;
      Returns:
      Whether the header field is set.
    • getHeader

      String getHeader()
       The header of the snippet.
       This string must not be empty.
       
      optional string header = 3;
      Returns:
      The header.
    • getHeaderBytes

      com.google.protobuf.ByteString getHeaderBytes()
       The header of the snippet.
       This string must not be empty.
       
      optional string header = 3;
      Returns:
      The bytes for header.
    • getValuesList

      List<String> getValuesList()
       The values in the snippet.
       The maximum size of this collection is 10.
       
      repeated string values = 4;
      Returns:
      A list containing the values.
    • getValuesCount

      int getValuesCount()
       The values in the snippet.
       The maximum size of this collection is 10.
       
      repeated string values = 4;
      Returns:
      The count of values.
    • getValues

      String getValues(int index)
       The values in the snippet.
       The maximum size of this collection is 10.
       
      repeated string values = 4;
      Parameters:
      index - The index of the element to return.
      Returns:
      The values at the given index.
    • getValuesBytes

      com.google.protobuf.ByteString getValuesBytes(int index)
       The values in the snippet.
       The maximum size of this collection is 10.
       
      repeated string values = 4;
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the values at the given index.