Class RecommendResponse.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<RecommendResponse.Builder>
-
- com.google.cloud.discoveryengine.v1beta.RecommendResponse.Builder
-
- All Implemented Interfaces:
RecommendResponseOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- RecommendResponse
public static final class RecommendResponse.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<RecommendResponse.Builder> implements RecommendResponseOrBuilder
Response message for Recommend method.
Protobuf typegoogle.cloud.discoveryengine.v1beta.RecommendResponse
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description RecommendResponse.BuilderaddAllMissingIds(Iterable<String> values)IDs of documents in the request that were missing from the default Branch associated with the requested ServingConfig.RecommendResponse.BuilderaddAllResults(Iterable<? extends RecommendResponse.RecommendationResult> values)A list of recommended Documents.RecommendResponse.BuilderaddMissingIds(String value)IDs of documents in the request that were missing from the default Branch associated with the requested ServingConfig.RecommendResponse.BuilderaddMissingIdsBytes(com.google.protobuf.ByteString value)IDs of documents in the request that were missing from the default Branch associated with the requested ServingConfig.RecommendResponse.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)RecommendResponse.BuilderaddResults(int index, RecommendResponse.RecommendationResult value)A list of recommended Documents.RecommendResponse.BuilderaddResults(int index, RecommendResponse.RecommendationResult.Builder builderForValue)A list of recommended Documents.RecommendResponse.BuilderaddResults(RecommendResponse.RecommendationResult value)A list of recommended Documents.RecommendResponse.BuilderaddResults(RecommendResponse.RecommendationResult.Builder builderForValue)A list of recommended Documents.RecommendResponse.RecommendationResult.BuilderaddResultsBuilder()A list of recommended Documents.RecommendResponse.RecommendationResult.BuilderaddResultsBuilder(int index)A list of recommended Documents.RecommendResponsebuild()RecommendResponsebuildPartial()RecommendResponse.Builderclear()RecommendResponse.BuilderclearAttributionToken()A unique attribution token.RecommendResponse.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)RecommendResponse.BuilderclearMissingIds()IDs of documents in the request that were missing from the default Branch associated with the requested ServingConfig.RecommendResponse.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)RecommendResponse.BuilderclearResults()A list of recommended Documents.RecommendResponse.BuilderclearValidateOnly()True if [RecommendRequest.validate_only][google.cloud.discoveryengine.v1beta.RecommendRequest.validate_only] was set.RecommendResponse.Builderclone()StringgetAttributionToken()A unique attribution token.com.google.protobuf.ByteStringgetAttributionTokenBytes()A unique attribution token.RecommendResponsegetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetMissingIds(int index)IDs of documents in the request that were missing from the default Branch associated with the requested ServingConfig.com.google.protobuf.ByteStringgetMissingIdsBytes(int index)IDs of documents in the request that were missing from the default Branch associated with the requested ServingConfig.intgetMissingIdsCount()IDs of documents in the request that were missing from the default Branch associated with the requested ServingConfig.com.google.protobuf.ProtocolStringListgetMissingIdsList()IDs of documents in the request that were missing from the default Branch associated with the requested ServingConfig.RecommendResponse.RecommendationResultgetResults(int index)A list of recommended Documents.RecommendResponse.RecommendationResult.BuildergetResultsBuilder(int index)A list of recommended Documents.List<RecommendResponse.RecommendationResult.Builder>getResultsBuilderList()A list of recommended Documents.intgetResultsCount()A list of recommended Documents.List<RecommendResponse.RecommendationResult>getResultsList()A list of recommended Documents.RecommendResponse.RecommendationResultOrBuildergetResultsOrBuilder(int index)A list of recommended Documents.List<? extends RecommendResponse.RecommendationResultOrBuilder>getResultsOrBuilderList()A list of recommended Documents.booleangetValidateOnly()True if [RecommendRequest.validate_only][google.cloud.discoveryengine.v1beta.RecommendRequest.validate_only] was set.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()RecommendResponse.BuildermergeFrom(RecommendResponse other)RecommendResponse.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)RecommendResponse.BuildermergeFrom(com.google.protobuf.Message other)RecommendResponse.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)RecommendResponse.BuilderremoveResults(int index)A list of recommended Documents.RecommendResponse.BuildersetAttributionToken(String value)A unique attribution token.RecommendResponse.BuildersetAttributionTokenBytes(com.google.protobuf.ByteString value)A unique attribution token.RecommendResponse.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)RecommendResponse.BuildersetMissingIds(int index, String value)IDs of documents in the request that were missing from the default Branch associated with the requested ServingConfig.RecommendResponse.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)RecommendResponse.BuildersetResults(int index, RecommendResponse.RecommendationResult value)A list of recommended Documents.RecommendResponse.BuildersetResults(int index, RecommendResponse.RecommendationResult.Builder builderForValue)A list of recommended Documents.RecommendResponse.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)RecommendResponse.BuildersetValidateOnly(boolean value)True if [RecommendRequest.validate_only][google.cloud.discoveryengine.v1beta.RecommendRequest.validate_only] was set.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<RecommendResponse.Builder>
-
clear
public RecommendResponse.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<RecommendResponse.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<RecommendResponse.Builder>
-
getDefaultInstanceForType
public RecommendResponse getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public RecommendResponse build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public RecommendResponse buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public RecommendResponse.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<RecommendResponse.Builder>
-
setField
public RecommendResponse.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<RecommendResponse.Builder>
-
clearField
public RecommendResponse.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<RecommendResponse.Builder>
-
clearOneof
public RecommendResponse.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<RecommendResponse.Builder>
-
setRepeatedField
public RecommendResponse.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<RecommendResponse.Builder>
-
addRepeatedField
public RecommendResponse.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<RecommendResponse.Builder>
-
mergeFrom
public RecommendResponse.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<RecommendResponse.Builder>
-
mergeFrom
public RecommendResponse.Builder mergeFrom(RecommendResponse other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<RecommendResponse.Builder>
-
mergeFrom
public RecommendResponse.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<RecommendResponse.Builder>- Throws:
IOException
-
getResultsList
public List<RecommendResponse.RecommendationResult> getResultsList()
A list of recommended Documents. The order represents the ranking (from the most relevant Document to the least).
repeated .google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult results = 1;- Specified by:
getResultsListin interfaceRecommendResponseOrBuilder
-
getResultsCount
public int getResultsCount()
A list of recommended Documents. The order represents the ranking (from the most relevant Document to the least).
repeated .google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult results = 1;- Specified by:
getResultsCountin interfaceRecommendResponseOrBuilder
-
getResults
public RecommendResponse.RecommendationResult getResults(int index)
A list of recommended Documents. The order represents the ranking (from the most relevant Document to the least).
repeated .google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult results = 1;- Specified by:
getResultsin interfaceRecommendResponseOrBuilder
-
setResults
public RecommendResponse.Builder setResults(int index, RecommendResponse.RecommendationResult value)
A list of recommended Documents. The order represents the ranking (from the most relevant Document to the least).
repeated .google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult results = 1;
-
setResults
public RecommendResponse.Builder setResults(int index, RecommendResponse.RecommendationResult.Builder builderForValue)
A list of recommended Documents. The order represents the ranking (from the most relevant Document to the least).
repeated .google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult results = 1;
-
addResults
public RecommendResponse.Builder addResults(RecommendResponse.RecommendationResult value)
A list of recommended Documents. The order represents the ranking (from the most relevant Document to the least).
repeated .google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult results = 1;
-
addResults
public RecommendResponse.Builder addResults(int index, RecommendResponse.RecommendationResult value)
A list of recommended Documents. The order represents the ranking (from the most relevant Document to the least).
repeated .google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult results = 1;
-
addResults
public RecommendResponse.Builder addResults(RecommendResponse.RecommendationResult.Builder builderForValue)
A list of recommended Documents. The order represents the ranking (from the most relevant Document to the least).
repeated .google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult results = 1;
-
addResults
public RecommendResponse.Builder addResults(int index, RecommendResponse.RecommendationResult.Builder builderForValue)
A list of recommended Documents. The order represents the ranking (from the most relevant Document to the least).
repeated .google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult results = 1;
-
addAllResults
public RecommendResponse.Builder addAllResults(Iterable<? extends RecommendResponse.RecommendationResult> values)
A list of recommended Documents. The order represents the ranking (from the most relevant Document to the least).
repeated .google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult results = 1;
-
clearResults
public RecommendResponse.Builder clearResults()
A list of recommended Documents. The order represents the ranking (from the most relevant Document to the least).
repeated .google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult results = 1;
-
removeResults
public RecommendResponse.Builder removeResults(int index)
A list of recommended Documents. The order represents the ranking (from the most relevant Document to the least).
repeated .google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult results = 1;
-
getResultsBuilder
public RecommendResponse.RecommendationResult.Builder getResultsBuilder(int index)
A list of recommended Documents. The order represents the ranking (from the most relevant Document to the least).
repeated .google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult results = 1;
-
getResultsOrBuilder
public RecommendResponse.RecommendationResultOrBuilder getResultsOrBuilder(int index)
A list of recommended Documents. The order represents the ranking (from the most relevant Document to the least).
repeated .google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult results = 1;- Specified by:
getResultsOrBuilderin interfaceRecommendResponseOrBuilder
-
getResultsOrBuilderList
public List<? extends RecommendResponse.RecommendationResultOrBuilder> getResultsOrBuilderList()
A list of recommended Documents. The order represents the ranking (from the most relevant Document to the least).
repeated .google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult results = 1;- Specified by:
getResultsOrBuilderListin interfaceRecommendResponseOrBuilder
-
addResultsBuilder
public RecommendResponse.RecommendationResult.Builder addResultsBuilder()
A list of recommended Documents. The order represents the ranking (from the most relevant Document to the least).
repeated .google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult results = 1;
-
addResultsBuilder
public RecommendResponse.RecommendationResult.Builder addResultsBuilder(int index)
A list of recommended Documents. The order represents the ranking (from the most relevant Document to the least).
repeated .google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult results = 1;
-
getResultsBuilderList
public List<RecommendResponse.RecommendationResult.Builder> getResultsBuilderList()
A list of recommended Documents. The order represents the ranking (from the most relevant Document to the least).
repeated .google.cloud.discoveryengine.v1beta.RecommendResponse.RecommendationResult results = 1;
-
getAttributionToken
public String getAttributionToken()
A unique attribution token. This should be included in the [UserEvent][google.cloud.discoveryengine.v1beta.UserEvent] logs resulting from this recommendation, which enables accurate attribution of recommendation model performance.
string attribution_token = 2;- Specified by:
getAttributionTokenin interfaceRecommendResponseOrBuilder- Returns:
- The attributionToken.
-
getAttributionTokenBytes
public com.google.protobuf.ByteString getAttributionTokenBytes()
A unique attribution token. This should be included in the [UserEvent][google.cloud.discoveryengine.v1beta.UserEvent] logs resulting from this recommendation, which enables accurate attribution of recommendation model performance.
string attribution_token = 2;- Specified by:
getAttributionTokenBytesin interfaceRecommendResponseOrBuilder- Returns:
- The bytes for attributionToken.
-
setAttributionToken
public RecommendResponse.Builder setAttributionToken(String value)
A unique attribution token. This should be included in the [UserEvent][google.cloud.discoveryengine.v1beta.UserEvent] logs resulting from this recommendation, which enables accurate attribution of recommendation model performance.
string attribution_token = 2;- Parameters:
value- The attributionToken to set.- Returns:
- This builder for chaining.
-
clearAttributionToken
public RecommendResponse.Builder clearAttributionToken()
A unique attribution token. This should be included in the [UserEvent][google.cloud.discoveryengine.v1beta.UserEvent] logs resulting from this recommendation, which enables accurate attribution of recommendation model performance.
string attribution_token = 2;- Returns:
- This builder for chaining.
-
setAttributionTokenBytes
public RecommendResponse.Builder setAttributionTokenBytes(com.google.protobuf.ByteString value)
A unique attribution token. This should be included in the [UserEvent][google.cloud.discoveryengine.v1beta.UserEvent] logs resulting from this recommendation, which enables accurate attribution of recommendation model performance.
string attribution_token = 2;- Parameters:
value- The bytes for attributionToken to set.- Returns:
- This builder for chaining.
-
getMissingIdsList
public com.google.protobuf.ProtocolStringList getMissingIdsList()
IDs of documents in the request that were missing from the default Branch associated with the requested ServingConfig.
repeated string missing_ids = 3;- Specified by:
getMissingIdsListin interfaceRecommendResponseOrBuilder- Returns:
- A list containing the missingIds.
-
getMissingIdsCount
public int getMissingIdsCount()
IDs of documents in the request that were missing from the default Branch associated with the requested ServingConfig.
repeated string missing_ids = 3;- Specified by:
getMissingIdsCountin interfaceRecommendResponseOrBuilder- Returns:
- The count of missingIds.
-
getMissingIds
public String getMissingIds(int index)
IDs of documents in the request that were missing from the default Branch associated with the requested ServingConfig.
repeated string missing_ids = 3;- Specified by:
getMissingIdsin interfaceRecommendResponseOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The missingIds at the given index.
-
getMissingIdsBytes
public com.google.protobuf.ByteString getMissingIdsBytes(int index)
IDs of documents in the request that were missing from the default Branch associated with the requested ServingConfig.
repeated string missing_ids = 3;- Specified by:
getMissingIdsBytesin interfaceRecommendResponseOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the missingIds at the given index.
-
setMissingIds
public RecommendResponse.Builder setMissingIds(int index, String value)
IDs of documents in the request that were missing from the default Branch associated with the requested ServingConfig.
repeated string missing_ids = 3;- Parameters:
index- The index to set the value at.value- The missingIds to set.- Returns:
- This builder for chaining.
-
addMissingIds
public RecommendResponse.Builder addMissingIds(String value)
IDs of documents in the request that were missing from the default Branch associated with the requested ServingConfig.
repeated string missing_ids = 3;- Parameters:
value- The missingIds to add.- Returns:
- This builder for chaining.
-
addAllMissingIds
public RecommendResponse.Builder addAllMissingIds(Iterable<String> values)
IDs of documents in the request that were missing from the default Branch associated with the requested ServingConfig.
repeated string missing_ids = 3;- Parameters:
values- The missingIds to add.- Returns:
- This builder for chaining.
-
clearMissingIds
public RecommendResponse.Builder clearMissingIds()
IDs of documents in the request that were missing from the default Branch associated with the requested ServingConfig.
repeated string missing_ids = 3;- Returns:
- This builder for chaining.
-
addMissingIdsBytes
public RecommendResponse.Builder addMissingIdsBytes(com.google.protobuf.ByteString value)
IDs of documents in the request that were missing from the default Branch associated with the requested ServingConfig.
repeated string missing_ids = 3;- Parameters:
value- The bytes of the missingIds to add.- Returns:
- This builder for chaining.
-
getValidateOnly
public boolean getValidateOnly()
True if [RecommendRequest.validate_only][google.cloud.discoveryengine.v1beta.RecommendRequest.validate_only] was set.
bool validate_only = 4;- Specified by:
getValidateOnlyin interfaceRecommendResponseOrBuilder- Returns:
- The validateOnly.
-
setValidateOnly
public RecommendResponse.Builder setValidateOnly(boolean value)
True if [RecommendRequest.validate_only][google.cloud.discoveryengine.v1beta.RecommendRequest.validate_only] was set.
bool validate_only = 4;- Parameters:
value- The validateOnly to set.- Returns:
- This builder for chaining.
-
clearValidateOnly
public RecommendResponse.Builder clearValidateOnly()
True if [RecommendRequest.validate_only][google.cloud.discoveryengine.v1beta.RecommendRequest.validate_only] was set.
bool validate_only = 4;- Returns:
- This builder for chaining.
-
setUnknownFields
public final RecommendResponse.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<RecommendResponse.Builder>
-
mergeUnknownFields
public final RecommendResponse.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<RecommendResponse.Builder>
-
-