public final class Snippet
extends com.google.api.client.json.GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Cloud Search API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
com.google.api.client.util.GenericData.Flags
Constructor and Description |
---|
Snippet() |
Modifier and Type | Method and Description |
---|---|
Snippet |
clone() |
java.util.List<MatchRange> |
getMatchRanges()
The matched ranges in the snippet.
|
java.lang.String |
getSnippet()
The snippet of the document.
|
Snippet |
set(java.lang.String fieldName,
java.lang.Object value) |
Snippet |
setMatchRanges(java.util.List<MatchRange> matchRanges)
The matched ranges in the snippet.
|
Snippet |
setSnippet(java.lang.String snippet)
The snippet of the document.
|
getFactory, setFactory, toPrettyString, toString
entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, values
public java.util.List<MatchRange> getMatchRanges()
null
for nonepublic Snippet setMatchRanges(java.util.List<MatchRange> matchRanges)
matchRanges
- matchRanges or null
for nonepublic java.lang.String getSnippet()
null
for nonepublic Snippet setSnippet(java.lang.String snippet)
snippet
- snippet or null
for nonepublic Snippet set(java.lang.String fieldName, java.lang.Object value)
set
in class com.google.api.client.json.GenericJson
public Snippet clone()
clone
in class com.google.api.client.json.GenericJson