- 2.55.0 (latest)
- 2.54.0
- 2.53.0
- 2.51.0
- 2.50.0
- 2.49.0
- 2.48.0
- 2.47.0
- 2.46.0
- 2.45.0
- 2.44.0
- 2.43.0
- 2.42.0
- 2.41.0
- 2.39.0
- 2.38.0
- 2.37.0
- 2.36.0
- 2.35.0
- 2.34.0
- 2.33.0
- 2.32.0
- 2.31.0
- 2.30.0
- 2.29.0
- 2.26.0
- 2.25.0
- 2.24.0
- 2.23.0
- 2.22.0
- 2.21.0
- 2.20.0
- 2.19.0
- 2.18.0
- 2.17.0
- 2.16.0
- 2.15.0
- 2.14.0
- 2.13.0
- 2.11.0
- 2.10.0
- 2.9.0
- 2.8.0
- 2.7.0
- 2.6.0
- 2.5.1
- 2.4.0
- 2.3.0
- 2.2.3
- 2.1.0
- 2.0.19
public static final class CompleteQueryResponse.CompletionResult.Builder extends GeneratedMessageV3.Builder<CompleteQueryResponse.CompletionResult.Builder> implements CompleteQueryResponse.CompletionResultOrBuilder
Resource that represents completion results.
Protobuf type google.cloud.retail.v2alpha.CompleteQueryResponse.CompletionResult
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > CompleteQueryResponse.CompletionResult.BuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public CompleteQueryResponse.CompletionResult.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
CompleteQueryResponse.CompletionResult.Builder |
build()
public CompleteQueryResponse.CompletionResult build()
Type | Description |
CompleteQueryResponse.CompletionResult |
buildPartial()
public CompleteQueryResponse.CompletionResult buildPartial()
Type | Description |
CompleteQueryResponse.CompletionResult |
clear()
public CompleteQueryResponse.CompletionResult.Builder clear()
Type | Description |
CompleteQueryResponse.CompletionResult.Builder |
clearAttributes()
public CompleteQueryResponse.CompletionResult.Builder clearAttributes()
Type | Description |
CompleteQueryResponse.CompletionResult.Builder |
clearField(Descriptors.FieldDescriptor field)
public CompleteQueryResponse.CompletionResult.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
CompleteQueryResponse.CompletionResult.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public CompleteQueryResponse.CompletionResult.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
CompleteQueryResponse.CompletionResult.Builder |
clearSuggestion()
public CompleteQueryResponse.CompletionResult.Builder clearSuggestion()
The suggestion for the query.
string suggestion = 1;
Type | Description |
CompleteQueryResponse.CompletionResult.Builder | This builder for chaining. |
clone()
public CompleteQueryResponse.CompletionResult.Builder clone()
Type | Description |
CompleteQueryResponse.CompletionResult.Builder |
containsAttributes(String key)
public boolean containsAttributes(String key)
Custom attributes for the suggestion term.
- For "user-data", the attributes are additional custom attributes ingested through BigQuery.
- For "cloud-retail", the attributes are product attributes generated by Cloud Retail.
map<string, .google.cloud.retail.v2alpha.CustomAttribute> attributes = 2;
Name | Description |
key | String |
Type | Description |
boolean |
getAttributes()
public Map<String,CustomAttribute> getAttributes()
Use #getAttributesMap() instead.
Type | Description |
Map<String,CustomAttribute> |
getAttributesCount()
public int getAttributesCount()
Custom attributes for the suggestion term.
- For "user-data", the attributes are additional custom attributes ingested through BigQuery.
- For "cloud-retail", the attributes are product attributes generated by Cloud Retail.
map<string, .google.cloud.retail.v2alpha.CustomAttribute> attributes = 2;
Type | Description |
int |
getAttributesMap()
public Map<String,CustomAttribute> getAttributesMap()
Custom attributes for the suggestion term.
- For "user-data", the attributes are additional custom attributes ingested through BigQuery.
- For "cloud-retail", the attributes are product attributes generated by Cloud Retail.
map<string, .google.cloud.retail.v2alpha.CustomAttribute> attributes = 2;
Type | Description |
Map<String,CustomAttribute> |
getAttributesOrDefault(String key, CustomAttribute defaultValue)
public CustomAttribute getAttributesOrDefault(String key, CustomAttribute defaultValue)
Custom attributes for the suggestion term.
- For "user-data", the attributes are additional custom attributes ingested through BigQuery.
- For "cloud-retail", the attributes are product attributes generated by Cloud Retail.
map<string, .google.cloud.retail.v2alpha.CustomAttribute> attributes = 2;
Name | Description |
key | String |
defaultValue | CustomAttribute |
Type | Description |
CustomAttribute |
getAttributesOrThrow(String key)
public CustomAttribute getAttributesOrThrow(String key)
Custom attributes for the suggestion term.
- For "user-data", the attributes are additional custom attributes ingested through BigQuery.
- For "cloud-retail", the attributes are product attributes generated by Cloud Retail.
map<string, .google.cloud.retail.v2alpha.CustomAttribute> attributes = 2;
Name | Description |
key | String |
Type | Description |
CustomAttribute |
getDefaultInstanceForType()
public CompleteQueryResponse.CompletionResult getDefaultInstanceForType()
Type | Description |
CompleteQueryResponse.CompletionResult |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getMutableAttributes()
public Map<String,CustomAttribute> getMutableAttributes()
Use alternate mutation accessors instead.
Type | Description |
Map<String,CustomAttribute> |
getSuggestion()
public String getSuggestion()
The suggestion for the query.
string suggestion = 1;
Type | Description |
String | The suggestion. |
getSuggestionBytes()
public ByteString getSuggestionBytes()
The suggestion for the query.
string suggestion = 1;
Type | Description |
ByteString | The bytes for suggestion. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
internalGetMapField(int number)
protected MapField internalGetMapField(int number)
Name | Description |
number | int |
Type | Description |
MapField |
internalGetMutableMapField(int number)
protected MapField internalGetMutableMapField(int number)
Name | Description |
number | int |
Type | Description |
MapField |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeFrom(CompleteQueryResponse.CompletionResult other)
public CompleteQueryResponse.CompletionResult.Builder mergeFrom(CompleteQueryResponse.CompletionResult other)
Name | Description |
other | CompleteQueryResponse.CompletionResult |
Type | Description |
CompleteQueryResponse.CompletionResult.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public CompleteQueryResponse.CompletionResult.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
CompleteQueryResponse.CompletionResult.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public CompleteQueryResponse.CompletionResult.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
CompleteQueryResponse.CompletionResult.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final CompleteQueryResponse.CompletionResult.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
CompleteQueryResponse.CompletionResult.Builder |
putAllAttributes(Map<String,CustomAttribute> values)
public CompleteQueryResponse.CompletionResult.Builder putAllAttributes(Map<String,CustomAttribute> values)
Custom attributes for the suggestion term.
- For "user-data", the attributes are additional custom attributes ingested through BigQuery.
- For "cloud-retail", the attributes are product attributes generated by Cloud Retail.
map<string, .google.cloud.retail.v2alpha.CustomAttribute> attributes = 2;
Name | Description |
values | Map<String,CustomAttribute> |
Type | Description |
CompleteQueryResponse.CompletionResult.Builder |
putAttributes(String key, CustomAttribute value)
public CompleteQueryResponse.CompletionResult.Builder putAttributes(String key, CustomAttribute value)
Custom attributes for the suggestion term.
- For "user-data", the attributes are additional custom attributes ingested through BigQuery.
- For "cloud-retail", the attributes are product attributes generated by Cloud Retail.
map<string, .google.cloud.retail.v2alpha.CustomAttribute> attributes = 2;
Name | Description |
key | String |
value | CustomAttribute |
Type | Description |
CompleteQueryResponse.CompletionResult.Builder |
removeAttributes(String key)
public CompleteQueryResponse.CompletionResult.Builder removeAttributes(String key)
Custom attributes for the suggestion term.
- For "user-data", the attributes are additional custom attributes ingested through BigQuery.
- For "cloud-retail", the attributes are product attributes generated by Cloud Retail.
map<string, .google.cloud.retail.v2alpha.CustomAttribute> attributes = 2;
Name | Description |
key | String |
Type | Description |
CompleteQueryResponse.CompletionResult.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public CompleteQueryResponse.CompletionResult.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
CompleteQueryResponse.CompletionResult.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public CompleteQueryResponse.CompletionResult.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
CompleteQueryResponse.CompletionResult.Builder |
setSuggestion(String value)
public CompleteQueryResponse.CompletionResult.Builder setSuggestion(String value)
The suggestion for the query.
string suggestion = 1;
Name | Description |
value | String The suggestion to set. |
Type | Description |
CompleteQueryResponse.CompletionResult.Builder | This builder for chaining. |
setSuggestionBytes(ByteString value)
public CompleteQueryResponse.CompletionResult.Builder setSuggestionBytes(ByteString value)
The suggestion for the query.
string suggestion = 1;
Name | Description |
value | ByteString The bytes for suggestion to set. |
Type | Description |
CompleteQueryResponse.CompletionResult.Builder | This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final CompleteQueryResponse.CompletionResult.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
CompleteQueryResponse.CompletionResult.Builder |