Class BoostSpecs.Builder (0.44.0)

public static final class BoostSpecs.Builder extends GeneratedMessageV3.Builder<BoostSpecs.Builder> implements BoostSpecsOrBuilder

Boost specifications for data stores.

Protobuf type google.cloud.dialogflow.cx.v3beta1.BoostSpecs

Implements

BoostSpecsOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addAllDataStores(Iterable<String> values)

public 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
NameDescription
valuesIterable<String>

The dataStores to add.

Returns
TypeDescription
BoostSpecs.Builder

This builder for chaining.

addAllSpec(Iterable<? extends BoostSpec> values)

public BoostSpecs.Builder addAllSpec(Iterable<? extends BoostSpec> values)

Optional. A list of boosting specifications.

repeated .google.cloud.dialogflow.cx.v3beta1.BoostSpec spec = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.dialogflow.cx.v3beta1.BoostSpec>
Returns
TypeDescription
BoostSpecs.Builder

addDataStores(String value)

public 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
NameDescription
valueString

The dataStores to add.

Returns
TypeDescription
BoostSpecs.Builder

This builder for chaining.

addDataStoresBytes(ByteString value)

public 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
NameDescription
valueByteString

The bytes of the dataStores to add.

Returns
TypeDescription
BoostSpecs.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public BoostSpecs.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
BoostSpecs.Builder
Overrides

addSpec(BoostSpec value)

public BoostSpecs.Builder addSpec(BoostSpec value)

Optional. A list of boosting specifications.

repeated .google.cloud.dialogflow.cx.v3beta1.BoostSpec spec = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueBoostSpec
Returns
TypeDescription
BoostSpecs.Builder

addSpec(BoostSpec.Builder builderForValue)

public BoostSpecs.Builder addSpec(BoostSpec.Builder builderForValue)

Optional. A list of boosting specifications.

repeated .google.cloud.dialogflow.cx.v3beta1.BoostSpec spec = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
builderForValueBoostSpec.Builder
Returns
TypeDescription
BoostSpecs.Builder

addSpec(int index, BoostSpec value)

public BoostSpecs.Builder addSpec(int index, BoostSpec value)

Optional. A list of boosting specifications.

repeated .google.cloud.dialogflow.cx.v3beta1.BoostSpec spec = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameters
NameDescription
indexint
valueBoostSpec
Returns
TypeDescription
BoostSpecs.Builder

addSpec(int index, BoostSpec.Builder builderForValue)

public BoostSpecs.Builder addSpec(int index, BoostSpec.Builder builderForValue)

Optional. A list of boosting specifications.

repeated .google.cloud.dialogflow.cx.v3beta1.BoostSpec spec = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameters
NameDescription
indexint
builderForValueBoostSpec.Builder
Returns
TypeDescription
BoostSpecs.Builder

addSpecBuilder()

public BoostSpec.Builder addSpecBuilder()

Optional. A list of boosting specifications.

repeated .google.cloud.dialogflow.cx.v3beta1.BoostSpec spec = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
BoostSpec.Builder

addSpecBuilder(int index)

public BoostSpec.Builder addSpecBuilder(int index)

Optional. A list of boosting specifications.

repeated .google.cloud.dialogflow.cx.v3beta1.BoostSpec spec = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint
Returns
TypeDescription
BoostSpec.Builder

build()

public BoostSpecs build()
Returns
TypeDescription
BoostSpecs

buildPartial()

public BoostSpecs buildPartial()
Returns
TypeDescription
BoostSpecs

clear()

public BoostSpecs.Builder clear()
Returns
TypeDescription
BoostSpecs.Builder
Overrides

clearDataStores()

public 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) = { ... }

Returns
TypeDescription
BoostSpecs.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public BoostSpecs.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
BoostSpecs.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public BoostSpecs.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
BoostSpecs.Builder
Overrides

clearSpec()

public BoostSpecs.Builder clearSpec()

Optional. A list of boosting specifications.

repeated .google.cloud.dialogflow.cx.v3beta1.BoostSpec spec = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
BoostSpecs.Builder

clone()

public BoostSpecs.Builder clone()
Returns
TypeDescription
BoostSpecs.Builder
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
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
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
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
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
TypeDescription
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) = { ... }

Returns
TypeDescription
ProtocolStringList

A list containing the dataStores.

getDefaultInstanceForType()

public BoostSpecs getDefaultInstanceForType()
Returns
TypeDescription
BoostSpecs

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getSpec(int index)

public BoostSpec getSpec(int index)

Optional. A list of boosting specifications.

repeated .google.cloud.dialogflow.cx.v3beta1.BoostSpec spec = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint
Returns
TypeDescription
BoostSpec

getSpecBuilder(int index)

public BoostSpec.Builder getSpecBuilder(int index)

Optional. A list of boosting specifications.

repeated .google.cloud.dialogflow.cx.v3beta1.BoostSpec spec = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint
Returns
TypeDescription
BoostSpec.Builder

getSpecBuilderList()

public List<BoostSpec.Builder> getSpecBuilderList()

Optional. A list of boosting specifications.

repeated .google.cloud.dialogflow.cx.v3beta1.BoostSpec spec = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
List<Builder>

getSpecCount()

public int getSpecCount()

Optional. A list of boosting specifications.

repeated .google.cloud.dialogflow.cx.v3beta1.BoostSpec spec = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
int

getSpecList()

public List<BoostSpec> getSpecList()

Optional. A list of boosting specifications.

repeated .google.cloud.dialogflow.cx.v3beta1.BoostSpec spec = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
List<BoostSpec>

getSpecOrBuilder(int index)

public BoostSpecOrBuilder getSpecOrBuilder(int index)

Optional. A list of boosting specifications.

repeated .google.cloud.dialogflow.cx.v3beta1.BoostSpec spec = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint
Returns
TypeDescription
BoostSpecOrBuilder

getSpecOrBuilderList()

public List<? extends BoostSpecOrBuilder> getSpecOrBuilderList()

Optional. A list of boosting specifications.

repeated .google.cloud.dialogflow.cx.v3beta1.BoostSpec spec = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
List<? extends com.google.cloud.dialogflow.cx.v3beta1.BoostSpecOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(BoostSpecs other)

public BoostSpecs.Builder mergeFrom(BoostSpecs other)
Parameter
NameDescription
otherBoostSpecs
Returns
TypeDescription
BoostSpecs.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public BoostSpecs.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
BoostSpecs.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public BoostSpecs.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
BoostSpecs.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final BoostSpecs.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
BoostSpecs.Builder
Overrides

removeSpec(int index)

public BoostSpecs.Builder removeSpec(int index)

Optional. A list of boosting specifications.

repeated .google.cloud.dialogflow.cx.v3beta1.BoostSpec spec = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint
Returns
TypeDescription
BoostSpecs.Builder

setDataStores(int index, String value)

public 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
NameDescription
indexint

The index to set the value at.

valueString

The dataStores to set.

Returns
TypeDescription
BoostSpecs.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public BoostSpecs.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
BoostSpecs.Builder
Overrides

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public BoostSpecs.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
BoostSpecs.Builder
Overrides

setSpec(int index, BoostSpec value)

public BoostSpecs.Builder setSpec(int index, BoostSpec value)

Optional. A list of boosting specifications.

repeated .google.cloud.dialogflow.cx.v3beta1.BoostSpec spec = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameters
NameDescription
indexint
valueBoostSpec
Returns
TypeDescription
BoostSpecs.Builder

setSpec(int index, BoostSpec.Builder builderForValue)

public BoostSpecs.Builder setSpec(int index, BoostSpec.Builder builderForValue)

Optional. A list of boosting specifications.

repeated .google.cloud.dialogflow.cx.v3beta1.BoostSpec spec = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameters
NameDescription
indexint
builderForValueBoostSpec.Builder
Returns
TypeDescription
BoostSpecs.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final BoostSpecs.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
BoostSpecs.Builder
Overrides