public static final class SearchRequest.ContentSearchSpec.SnippetSpec extends GeneratedMessageV3 implements SearchRequest.ContentSearchSpec.SnippetSpecOrBuilder
The specification that configs the snippet in the search results.
Protobuf type
google.cloud.discoveryengine.v1beta.SearchRequest.ContentSearchSpec.SnippetSpec
Static Fields
MAX_SNIPPET_COUNT_FIELD_NUMBER
public static final int MAX_SNIPPET_COUNT_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
REFERENCE_ONLY_FIELD_NUMBER
public static final int REFERENCE_ONLY_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
Static Methods
getDefaultInstance()
public static SearchRequest.ContentSearchSpec.SnippetSpec getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static SearchRequest.ContentSearchSpec.SnippetSpec.Builder newBuilder()
newBuilder(SearchRequest.ContentSearchSpec.SnippetSpec prototype)
public static SearchRequest.ContentSearchSpec.SnippetSpec.Builder newBuilder(SearchRequest.ContentSearchSpec.SnippetSpec prototype)
parseDelimitedFrom(InputStream input)
public static SearchRequest.ContentSearchSpec.SnippetSpec parseDelimitedFrom(InputStream input)
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static SearchRequest.ContentSearchSpec.SnippetSpec parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static SearchRequest.ContentSearchSpec.SnippetSpec parseFrom(byte[] data)
Parameter |
---|
Name | Description |
data | byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static SearchRequest.ContentSearchSpec.SnippetSpec parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static SearchRequest.ContentSearchSpec.SnippetSpec parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static SearchRequest.ContentSearchSpec.SnippetSpec parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
parseFrom(CodedInputStream input)
public static SearchRequest.ContentSearchSpec.SnippetSpec parseFrom(CodedInputStream input)
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static SearchRequest.ContentSearchSpec.SnippetSpec parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(InputStream input)
public static SearchRequest.ContentSearchSpec.SnippetSpec parseFrom(InputStream input)
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static SearchRequest.ContentSearchSpec.SnippetSpec parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static SearchRequest.ContentSearchSpec.SnippetSpec parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static SearchRequest.ContentSearchSpec.SnippetSpec parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<SearchRequest.ContentSearchSpec.SnippetSpec> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
---|
Name | Description |
obj | Object
|
Overrides
getDefaultInstanceForType()
public SearchRequest.ContentSearchSpec.SnippetSpec getDefaultInstanceForType()
getMaxSnippetCount()
public int getMaxSnippetCount()
Max number of snippets returned in each search result.
If the matching snippets is less than the max_snippet_count, return all
of the snippets; otherwise, return the max_snippet_count.
At most 5 snippets will be returned for each SearchResult.
int32 max_snippet_count = 1;
Returns |
---|
Type | Description |
int | The maxSnippetCount.
|
getParserForType()
public Parser<SearchRequest.ContentSearchSpec.SnippetSpec> getParserForType()
Overrides
getReferenceOnly()
public boolean getReferenceOnly()
if true, only snippet reference is returned.
bool reference_only = 2;
Returns |
---|
Type | Description |
boolean | The referenceOnly.
|
getSerializedSize()
public int getSerializedSize()
Returns |
---|
Type | Description |
int | |
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Overrides
hashCode()
Returns |
---|
Type | Description |
int | |
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public SearchRequest.ContentSearchSpec.SnippetSpec.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected SearchRequest.ContentSearchSpec.SnippetSpec.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Overrides
toBuilder()
public SearchRequest.ContentSearchSpec.SnippetSpec.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides