public static final class SearchKnowledgeRequest.SearchConfig.BoostSpecs.Builder extends GeneratedMessageV3.Builder<SearchKnowledgeRequest.SearchConfig.BoostSpecs.Builder> implements SearchKnowledgeRequest.SearchConfig.BoostSpecsOrBuilder
Boost specifications for data stores.
Protobuf type
google.cloud.dialogflow.v2beta1.SearchKnowledgeRequest.SearchConfig.BoostSpecs
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addAllDataStores(Iterable<String> values)
public SearchKnowledgeRequest.SearchConfig.BoostSpecs.Builder addAllDataStores(Iterable<String> values)
Optional. Data Stores where the boosting configuration is applied. The
full names of the referenced data stores. Formats:
projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}
projects/{project}/locations/{location}/dataStores/{data_store}
repeated string data_stores = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
Parameter |
Name |
Description |
values |
Iterable<String>
The dataStores to add.
|
addAllSpec(Iterable<? extends SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec> values)
public SearchKnowledgeRequest.SearchConfig.BoostSpecs.Builder addAllSpec(Iterable<? extends SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec> values)
Optional. A list of boosting specifications.
repeated .google.cloud.dialogflow.v2beta1.SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec spec = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameter |
Name |
Description |
values |
Iterable<? extends com.google.cloud.dialogflow.v2beta1.SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec>
|
addDataStores(String value)
public SearchKnowledgeRequest.SearchConfig.BoostSpecs.Builder addDataStores(String value)
Optional. Data Stores where the boosting configuration is applied. The
full names of the referenced data stores. Formats:
projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}
projects/{project}/locations/{location}/dataStores/{data_store}
repeated string data_stores = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
Parameter |
Name |
Description |
value |
String
The dataStores to add.
|
addDataStoresBytes(ByteString value)
public SearchKnowledgeRequest.SearchConfig.BoostSpecs.Builder addDataStoresBytes(ByteString value)
Optional. Data Stores where the boosting configuration is applied. The
full names of the referenced data stores. Formats:
projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}
projects/{project}/locations/{location}/dataStores/{data_store}
repeated string data_stores = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
Parameter |
Name |
Description |
value |
ByteString
The bytes of the dataStores to add.
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public SearchKnowledgeRequest.SearchConfig.BoostSpecs.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
addSpec(SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec value)
public SearchKnowledgeRequest.SearchConfig.BoostSpecs.Builder addSpec(SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec value)
Optional. A list of boosting specifications.
repeated .google.cloud.dialogflow.v2beta1.SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec spec = 2 [(.google.api.field_behavior) = OPTIONAL];
addSpec(SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec.Builder builderForValue)
public SearchKnowledgeRequest.SearchConfig.BoostSpecs.Builder addSpec(SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec.Builder builderForValue)
Optional. A list of boosting specifications.
repeated .google.cloud.dialogflow.v2beta1.SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec spec = 2 [(.google.api.field_behavior) = OPTIONAL];
addSpec(int index, SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec value)
public SearchKnowledgeRequest.SearchConfig.BoostSpecs.Builder addSpec(int index, SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec value)
Optional. A list of boosting specifications.
repeated .google.cloud.dialogflow.v2beta1.SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec spec = 2 [(.google.api.field_behavior) = OPTIONAL];
addSpec(int index, SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec.Builder builderForValue)
public SearchKnowledgeRequest.SearchConfig.BoostSpecs.Builder addSpec(int index, SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec.Builder builderForValue)
Optional. A list of boosting specifications.
repeated .google.cloud.dialogflow.v2beta1.SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec spec = 2 [(.google.api.field_behavior) = OPTIONAL];
addSpecBuilder()
public SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec.Builder addSpecBuilder()
Optional. A list of boosting specifications.
repeated .google.cloud.dialogflow.v2beta1.SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec spec = 2 [(.google.api.field_behavior) = OPTIONAL];
addSpecBuilder(int index)
public SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec.Builder addSpecBuilder(int index)
Optional. A list of boosting specifications.
repeated .google.cloud.dialogflow.v2beta1.SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec spec = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameter |
Name |
Description |
index |
int
|
build()
public SearchKnowledgeRequest.SearchConfig.BoostSpecs build()
buildPartial()
public SearchKnowledgeRequest.SearchConfig.BoostSpecs buildPartial()
clear()
public SearchKnowledgeRequest.SearchConfig.BoostSpecs.Builder clear()
Overrides
clearDataStores()
public SearchKnowledgeRequest.SearchConfig.BoostSpecs.Builder clearDataStores()
Optional. Data Stores where the boosting configuration is applied. The
full names of the referenced data stores. Formats:
projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}
projects/{project}/locations/{location}/dataStores/{data_store}
repeated string data_stores = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
clearField(Descriptors.FieldDescriptor field)
public SearchKnowledgeRequest.SearchConfig.BoostSpecs.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public SearchKnowledgeRequest.SearchConfig.BoostSpecs.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearSpec()
public SearchKnowledgeRequest.SearchConfig.BoostSpecs.Builder clearSpec()
Optional. A list of boosting specifications.
repeated .google.cloud.dialogflow.v2beta1.SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec spec = 2 [(.google.api.field_behavior) = OPTIONAL];
clone()
public SearchKnowledgeRequest.SearchConfig.BoostSpecs.Builder clone()
Overrides
getDataStores(int index)
public String getDataStores(int index)
Optional. Data Stores where the boosting configuration is applied. The
full names of the referenced data stores. Formats:
projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}
projects/{project}/locations/{location}/dataStores/{data_store}
repeated string data_stores = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
Parameter |
Name |
Description |
index |
int
The index of the element to return.
|
Returns |
Type |
Description |
String |
The dataStores at the given index.
|
getDataStoresBytes(int index)
public ByteString getDataStoresBytes(int index)
Optional. Data Stores where the boosting configuration is applied. The
full names of the referenced data stores. Formats:
projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}
projects/{project}/locations/{location}/dataStores/{data_store}
repeated string data_stores = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
Parameter |
Name |
Description |
index |
int
The index of the value to return.
|
Returns |
Type |
Description |
ByteString |
The bytes of the dataStores at the given index.
|
getDataStoresCount()
public int getDataStoresCount()
Optional. Data Stores where the boosting configuration is applied. The
full names of the referenced data stores. Formats:
projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}
projects/{project}/locations/{location}/dataStores/{data_store}
repeated string data_stores = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
Returns |
Type |
Description |
int |
The count of dataStores.
|
getDataStoresList()
public ProtocolStringList getDataStoresList()
Optional. Data Stores where the boosting configuration is applied. The
full names of the referenced data stores. Formats:
projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}
projects/{project}/locations/{location}/dataStores/{data_store}
repeated string data_stores = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
getDefaultInstanceForType()
public SearchKnowledgeRequest.SearchConfig.BoostSpecs getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getSpec(int index)
public SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec getSpec(int index)
Optional. A list of boosting specifications.
repeated .google.cloud.dialogflow.v2beta1.SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec spec = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameter |
Name |
Description |
index |
int
|
getSpecBuilder(int index)
public SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec.Builder getSpecBuilder(int index)
Optional. A list of boosting specifications.
repeated .google.cloud.dialogflow.v2beta1.SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec spec = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameter |
Name |
Description |
index |
int
|
getSpecBuilderList()
public List<SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec.Builder> getSpecBuilderList()
Optional. A list of boosting specifications.
repeated .google.cloud.dialogflow.v2beta1.SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec spec = 2 [(.google.api.field_behavior) = OPTIONAL];
getSpecCount()
public int getSpecCount()
Optional. A list of boosting specifications.
repeated .google.cloud.dialogflow.v2beta1.SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec spec = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
int |
|
getSpecList()
public List<SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec> getSpecList()
Optional. A list of boosting specifications.
repeated .google.cloud.dialogflow.v2beta1.SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec spec = 2 [(.google.api.field_behavior) = OPTIONAL];
getSpecOrBuilder(int index)
public SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpecOrBuilder getSpecOrBuilder(int index)
Optional. A list of boosting specifications.
repeated .google.cloud.dialogflow.v2beta1.SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec spec = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameter |
Name |
Description |
index |
int
|
getSpecOrBuilderList()
public List<? extends SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpecOrBuilder> getSpecOrBuilderList()
Optional. A list of boosting specifications.
repeated .google.cloud.dialogflow.v2beta1.SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec spec = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
List<? extends com.google.cloud.dialogflow.v2beta1.SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpecOrBuilder> |
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(SearchKnowledgeRequest.SearchConfig.BoostSpecs other)
public SearchKnowledgeRequest.SearchConfig.BoostSpecs.Builder mergeFrom(SearchKnowledgeRequest.SearchConfig.BoostSpecs other)
public SearchKnowledgeRequest.SearchConfig.BoostSpecs.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public SearchKnowledgeRequest.SearchConfig.BoostSpecs.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final SearchKnowledgeRequest.SearchConfig.BoostSpecs.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
removeSpec(int index)
public SearchKnowledgeRequest.SearchConfig.BoostSpecs.Builder removeSpec(int index)
Optional. A list of boosting specifications.
repeated .google.cloud.dialogflow.v2beta1.SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec spec = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameter |
Name |
Description |
index |
int
|
setDataStores(int index, String value)
public SearchKnowledgeRequest.SearchConfig.BoostSpecs.Builder setDataStores(int index, String value)
Optional. Data Stores where the boosting configuration is applied. The
full names of the referenced data stores. Formats:
projects/{project}/locations/{location}/collections/{collection}/dataStores/{data_store}
projects/{project}/locations/{location}/dataStores/{data_store}
repeated string data_stores = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
Parameters |
Name |
Description |
index |
int
The index to set the value at.
|
value |
String
The dataStores to set.
|
setField(Descriptors.FieldDescriptor field, Object value)
public SearchKnowledgeRequest.SearchConfig.BoostSpecs.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public SearchKnowledgeRequest.SearchConfig.BoostSpecs.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setSpec(int index, SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec value)
public SearchKnowledgeRequest.SearchConfig.BoostSpecs.Builder setSpec(int index, SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec value)
Optional. A list of boosting specifications.
repeated .google.cloud.dialogflow.v2beta1.SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec spec = 2 [(.google.api.field_behavior) = OPTIONAL];
setSpec(int index, SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec.Builder builderForValue)
public SearchKnowledgeRequest.SearchConfig.BoostSpecs.Builder setSpec(int index, SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec.Builder builderForValue)
Optional. A list of boosting specifications.
repeated .google.cloud.dialogflow.v2beta1.SearchKnowledgeRequest.SearchConfig.BoostSpecs.BoostSpec spec = 2 [(.google.api.field_behavior) = OPTIONAL];
setUnknownFields(UnknownFieldSet unknownFields)
public final SearchKnowledgeRequest.SearchConfig.BoostSpecs.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides