Package com.google.cloud.retail.v2alpha
Class CompletionConfig
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.retail.v2alpha.CompletionConfig
- All Implemented Interfaces:
CompletionConfigOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
@Generated
public final class CompletionConfig
extends com.google.protobuf.GeneratedMessage
implements CompletionConfigOrBuilder
Catalog level autocomplete config for customers to customize autocomplete feature's settings.Protobuf type
google.cloud.retail.v2alpha.CompletionConfig- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classCatalog level autocomplete config for customers to customize autocomplete feature's settings.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanOutput only.Output only.booleanIf set to true, the auto learning function is enabled.static CompletionConfigOutput only.Output only.static final com.google.protobuf.Descriptors.DescriptorOutput only.com.google.protobuf.ByteStringOutput only.Output only.com.google.protobuf.ByteStringOutput only.Output only.com.google.protobuf.ByteStringOutput only.Specifies the matching order for autocomplete suggestions, e.g., a query consisting of 'sh' with 'out-of-order' specified would suggest "women's shoes", whereas a query of 'red s' with 'exact-prefix' specified would suggest "red shoes".com.google.protobuf.ByteStringSpecifies the matching order for autocomplete suggestions, e.g., a query consisting of 'sh' with 'out-of-order' specified would suggest "women's shoes", whereas a query of 'red s' with 'exact-prefix' specified would suggest "red shoes".intThe maximum number of autocomplete suggestions returned per term.intThe minimum number of characters needed to be typed in order to get suggestions.getName()Required.com.google.protobuf.ByteStringRequired.com.google.protobuf.Parser<CompletionConfig>intOutput only.Output only.booleanOutput only.booleanOutput only.inthashCode()booleanOutput only.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanstatic CompletionConfig.Builderstatic CompletionConfig.BuildernewBuilder(CompletionConfig prototype) protected CompletionConfig.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) static CompletionConfigparseDelimitedFrom(InputStream input) static CompletionConfigparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static CompletionConfigparseFrom(byte[] data) static CompletionConfigparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static CompletionConfigparseFrom(com.google.protobuf.ByteString data) static CompletionConfigparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static CompletionConfigparseFrom(com.google.protobuf.CodedInputStream input) static CompletionConfigparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static CompletionConfigparseFrom(InputStream input) static CompletionConfigparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static CompletionConfigparseFrom(ByteBuffer data) static CompletionConfigparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<CompletionConfig>parser()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
NAME_FIELD_NUMBER
public static final int NAME_FIELD_NUMBER- See Also:
-
MATCHING_ORDER_FIELD_NUMBER
public static final int MATCHING_ORDER_FIELD_NUMBER- See Also:
-
MAX_SUGGESTIONS_FIELD_NUMBER
public static final int MAX_SUGGESTIONS_FIELD_NUMBER- See Also:
-
MIN_PREFIX_LENGTH_FIELD_NUMBER
public static final int MIN_PREFIX_LENGTH_FIELD_NUMBER- See Also:
-
AUTO_LEARNING_FIELD_NUMBER
public static final int AUTO_LEARNING_FIELD_NUMBER- See Also:
-
SUGGESTIONS_INPUT_CONFIG_FIELD_NUMBER
public static final int SUGGESTIONS_INPUT_CONFIG_FIELD_NUMBER- See Also:
-
LAST_SUGGESTIONS_IMPORT_OPERATION_FIELD_NUMBER
public static final int LAST_SUGGESTIONS_IMPORT_OPERATION_FIELD_NUMBER- See Also:
-
DENYLIST_INPUT_CONFIG_FIELD_NUMBER
public static final int DENYLIST_INPUT_CONFIG_FIELD_NUMBER- See Also:
-
LAST_DENYLIST_IMPORT_OPERATION_FIELD_NUMBER
public static final int LAST_DENYLIST_IMPORT_OPERATION_FIELD_NUMBER- See Also:
-
ALLOWLIST_INPUT_CONFIG_FIELD_NUMBER
public static final int ALLOWLIST_INPUT_CONFIG_FIELD_NUMBER- See Also:
-
LAST_ALLOWLIST_IMPORT_OPERATION_FIELD_NUMBER
public static final int LAST_ALLOWLIST_IMPORT_OPERATION_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
getName
Required. Immutable. Fully qualified name `projects/*/locations/*/catalogs/*/completionConfig`
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];- Specified by:
getNamein interfaceCompletionConfigOrBuilder- Returns:
- The name.
-
getNameBytes
public com.google.protobuf.ByteString getNameBytes()Required. Immutable. Fully qualified name `projects/*/locations/*/catalogs/*/completionConfig`
string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = IMMUTABLE];- Specified by:
getNameBytesin interfaceCompletionConfigOrBuilder- Returns:
- The bytes for name.
-
getMatchingOrder
Specifies the matching order for autocomplete suggestions, e.g., a query consisting of 'sh' with 'out-of-order' specified would suggest "women's shoes", whereas a query of 'red s' with 'exact-prefix' specified would suggest "red shoes". Currently supported values: * 'out-of-order' * 'exact-prefix' Default value: 'exact-prefix'.
string matching_order = 2;- Specified by:
getMatchingOrderin interfaceCompletionConfigOrBuilder- Returns:
- The matchingOrder.
-
getMatchingOrderBytes
public com.google.protobuf.ByteString getMatchingOrderBytes()Specifies the matching order for autocomplete suggestions, e.g., a query consisting of 'sh' with 'out-of-order' specified would suggest "women's shoes", whereas a query of 'red s' with 'exact-prefix' specified would suggest "red shoes". Currently supported values: * 'out-of-order' * 'exact-prefix' Default value: 'exact-prefix'.
string matching_order = 2;- Specified by:
getMatchingOrderBytesin interfaceCompletionConfigOrBuilder- Returns:
- The bytes for matchingOrder.
-
getMaxSuggestions
public int getMaxSuggestions()The maximum number of autocomplete suggestions returned per term. Default value is 20. If left unset or set to 0, then will fallback to default value. Value range is 1 to 20.
int32 max_suggestions = 3;- Specified by:
getMaxSuggestionsin interfaceCompletionConfigOrBuilder- Returns:
- The maxSuggestions.
-
getMinPrefixLength
public int getMinPrefixLength()The minimum number of characters needed to be typed in order to get suggestions. Default value is 2. If left unset or set to 0, then will fallback to default value. Value range is 1 to 20.
int32 min_prefix_length = 4;- Specified by:
getMinPrefixLengthin interfaceCompletionConfigOrBuilder- Returns:
- The minPrefixLength.
-
getAutoLearning
public boolean getAutoLearning()If set to true, the auto learning function is enabled. Auto learning uses user data to generate suggestions using ML techniques. Default value is false. Only after enabling auto learning can users use `cloud-retail` data in [CompleteQueryRequest][google.cloud.retail.v2alpha.CompleteQueryRequest].
bool auto_learning = 11;- Specified by:
getAutoLearningin interfaceCompletionConfigOrBuilder- Returns:
- The autoLearning.
-
hasSuggestionsInputConfig
public boolean hasSuggestionsInputConfig()Output only. The source data for the latest import of the autocomplete suggestion phrases.
.google.cloud.retail.v2alpha.CompletionDataInputConfig suggestions_input_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasSuggestionsInputConfigin interfaceCompletionConfigOrBuilder- Returns:
- Whether the suggestionsInputConfig field is set.
-
getSuggestionsInputConfig
Output only. The source data for the latest import of the autocomplete suggestion phrases.
.google.cloud.retail.v2alpha.CompletionDataInputConfig suggestions_input_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getSuggestionsInputConfigin interfaceCompletionConfigOrBuilder- Returns:
- The suggestionsInputConfig.
-
getSuggestionsInputConfigOrBuilder
Output only. The source data for the latest import of the autocomplete suggestion phrases.
.google.cloud.retail.v2alpha.CompletionDataInputConfig suggestions_input_config = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getSuggestionsInputConfigOrBuilderin interfaceCompletionConfigOrBuilder
-
getLastSuggestionsImportOperation
Output only. Name of the LRO corresponding to the latest suggestion terms list import. Can use [GetOperation][google.longrunning.Operations.GetOperation] API method to retrieve the latest state of the Long Running Operation.
string last_suggestions_import_operation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getLastSuggestionsImportOperationin interfaceCompletionConfigOrBuilder- Returns:
- The lastSuggestionsImportOperation.
-
getLastSuggestionsImportOperationBytes
public com.google.protobuf.ByteString getLastSuggestionsImportOperationBytes()Output only. Name of the LRO corresponding to the latest suggestion terms list import. Can use [GetOperation][google.longrunning.Operations.GetOperation] API method to retrieve the latest state of the Long Running Operation.
string last_suggestions_import_operation = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getLastSuggestionsImportOperationBytesin interfaceCompletionConfigOrBuilder- Returns:
- The bytes for lastSuggestionsImportOperation.
-
hasDenylistInputConfig
public boolean hasDenylistInputConfig()Output only. The source data for the latest import of the autocomplete denylist phrases.
.google.cloud.retail.v2alpha.CompletionDataInputConfig denylist_input_config = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasDenylistInputConfigin interfaceCompletionConfigOrBuilder- Returns:
- Whether the denylistInputConfig field is set.
-
getDenylistInputConfig
Output only. The source data for the latest import of the autocomplete denylist phrases.
.google.cloud.retail.v2alpha.CompletionDataInputConfig denylist_input_config = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getDenylistInputConfigin interfaceCompletionConfigOrBuilder- Returns:
- The denylistInputConfig.
-
getDenylistInputConfigOrBuilder
Output only. The source data for the latest import of the autocomplete denylist phrases.
.google.cloud.retail.v2alpha.CompletionDataInputConfig denylist_input_config = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getDenylistInputConfigOrBuilderin interfaceCompletionConfigOrBuilder
-
getLastDenylistImportOperation
Output only. Name of the LRO corresponding to the latest denylist import. Can use [GetOperation][google.longrunning.Operations.GetOperation] API to retrieve the latest state of the Long Running Operation.
string last_denylist_import_operation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getLastDenylistImportOperationin interfaceCompletionConfigOrBuilder- Returns:
- The lastDenylistImportOperation.
-
getLastDenylistImportOperationBytes
public com.google.protobuf.ByteString getLastDenylistImportOperationBytes()Output only. Name of the LRO corresponding to the latest denylist import. Can use [GetOperation][google.longrunning.Operations.GetOperation] API to retrieve the latest state of the Long Running Operation.
string last_denylist_import_operation = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getLastDenylistImportOperationBytesin interfaceCompletionConfigOrBuilder- Returns:
- The bytes for lastDenylistImportOperation.
-
hasAllowlistInputConfig
public boolean hasAllowlistInputConfig()Output only. The source data for the latest import of the autocomplete allowlist phrases.
.google.cloud.retail.v2alpha.CompletionDataInputConfig allowlist_input_config = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
hasAllowlistInputConfigin interfaceCompletionConfigOrBuilder- Returns:
- Whether the allowlistInputConfig field is set.
-
getAllowlistInputConfig
Output only. The source data for the latest import of the autocomplete allowlist phrases.
.google.cloud.retail.v2alpha.CompletionDataInputConfig allowlist_input_config = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getAllowlistInputConfigin interfaceCompletionConfigOrBuilder- Returns:
- The allowlistInputConfig.
-
getAllowlistInputConfigOrBuilder
Output only. The source data for the latest import of the autocomplete allowlist phrases.
.google.cloud.retail.v2alpha.CompletionDataInputConfig allowlist_input_config = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getAllowlistInputConfigOrBuilderin interfaceCompletionConfigOrBuilder
-
getLastAllowlistImportOperation
Output only. Name of the LRO corresponding to the latest allowlist import. Can use [GetOperation][google.longrunning.Operations.GetOperation] API to retrieve the latest state of the Long Running Operation.
string last_allowlist_import_operation = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getLastAllowlistImportOperationin interfaceCompletionConfigOrBuilder- Returns:
- The lastAllowlistImportOperation.
-
getLastAllowlistImportOperationBytes
public com.google.protobuf.ByteString getLastAllowlistImportOperationBytes()Output only. Name of the LRO corresponding to the latest allowlist import. Can use [GetOperation][google.longrunning.Operations.GetOperation] API to retrieve the latest state of the Long Running Operation.
string last_allowlist_import_operation = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getLastAllowlistImportOperationBytesin interfaceCompletionConfigOrBuilder- Returns:
- The bytes for lastAllowlistImportOperation.
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static CompletionConfig parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CompletionConfig parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CompletionConfig parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CompletionConfig parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CompletionConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static CompletionConfig parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static CompletionConfig parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static CompletionConfig parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static CompletionConfig parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static CompletionConfig parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected CompletionConfig.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-