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
All Methods Instance Methods Abstract Methods Modifier and Type Method Description java.lang.String
getHeader()
The header of the snippet.com.google.protobuf.ByteString
getHeaderBytes()
The header of the snippet.java.lang.String
getValues(int index)
The values in the snippet.com.google.protobuf.ByteString
getValuesBytes(int index)
The values in the snippet.int
getValuesCount()
The values in the snippet.java.util.List<java.lang.String>
getValuesList()
The values in the snippet.boolean
hasHeader()
The header of the snippet.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
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
java.lang.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
java.util.List<java.lang.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
java.lang.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.
-
-