public static final class SearchResponse.OneBoxResult extends GeneratedMessageV3 implements SearchResponse.OneBoxResultOrBuilder
OneBoxResult is a holder for all results of specific type that we want
to display in UI differently.
Protobuf type google.cloud.discoveryengine.v1beta.SearchResponse.OneBoxResult
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
ONE_BOX_TYPE_FIELD_NUMBER
public static final int ONE_BOX_TYPE_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
SEARCH_RESULTS_FIELD_NUMBER
public static final int SEARCH_RESULTS_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static SearchResponse.OneBoxResult getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static SearchResponse.OneBoxResult.Builder newBuilder()
newBuilder(SearchResponse.OneBoxResult prototype)
public static SearchResponse.OneBoxResult.Builder newBuilder(SearchResponse.OneBoxResult prototype)
public static SearchResponse.OneBoxResult parseDelimitedFrom(InputStream input)
public static SearchResponse.OneBoxResult parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static SearchResponse.OneBoxResult parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static SearchResponse.OneBoxResult parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static SearchResponse.OneBoxResult parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static SearchResponse.OneBoxResult parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static SearchResponse.OneBoxResult parseFrom(CodedInputStream input)
public static SearchResponse.OneBoxResult parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static SearchResponse.OneBoxResult parseFrom(InputStream input)
public static SearchResponse.OneBoxResult parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static SearchResponse.OneBoxResult parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static SearchResponse.OneBoxResult parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<SearchResponse.OneBoxResult> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
Overrides
getDefaultInstanceForType()
public SearchResponse.OneBoxResult getDefaultInstanceForType()
getOneBoxType()
public SearchResponse.OneBoxResult.OneBoxType getOneBoxType()
The type of One Box result.
.google.cloud.discoveryengine.v1beta.SearchResponse.OneBoxResult.OneBoxType one_box_type = 1;
getOneBoxTypeValue()
public int getOneBoxTypeValue()
The type of One Box result.
.google.cloud.discoveryengine.v1beta.SearchResponse.OneBoxResult.OneBoxType one_box_type = 1;
Returns |
Type |
Description |
int |
The enum numeric value on the wire for oneBoxType.
|
getParserForType()
public Parser<SearchResponse.OneBoxResult> getParserForType()
Overrides
getSearchResults(int index)
public SearchResponse.SearchResult getSearchResults(int index)
The search results for this One Box.
repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult search_results = 2;
Parameter |
Name |
Description |
index |
int
|
getSearchResultsCount()
public int getSearchResultsCount()
The search results for this One Box.
repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult search_results = 2;
Returns |
Type |
Description |
int |
|
getSearchResultsList()
public List<SearchResponse.SearchResult> getSearchResultsList()
The search results for this One Box.
repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult search_results = 2;
getSearchResultsOrBuilder(int index)
public SearchResponse.SearchResultOrBuilder getSearchResultsOrBuilder(int index)
The search results for this One Box.
repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult search_results = 2;
Parameter |
Name |
Description |
index |
int
|
getSearchResultsOrBuilderList()
public List<? extends SearchResponse.SearchResultOrBuilder> getSearchResultsOrBuilderList()
The search results for this One Box.
repeated .google.cloud.discoveryengine.v1beta.SearchResponse.SearchResult search_results = 2;
Returns |
Type |
Description |
List<? extends com.google.cloud.discoveryengine.v1beta.SearchResponse.SearchResultOrBuilder> |
|
getSerializedSize()
public int getSerializedSize()
Returns |
Type |
Description |
int |
|
Overrides
hashCode()
Returns |
Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public SearchResponse.OneBoxResult.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected SearchResponse.OneBoxResult.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
toBuilder()
public SearchResponse.OneBoxResult.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides