Class CustomWeightsMetadata.Builder (0.41.0)

public static final class CustomWeightsMetadata.Builder extends GeneratedMessageV3.Builder<CustomWeightsMetadata.Builder> implements CustomWeightsMetadataOrBuilder

To support the custom weighting across document schemas.

Protobuf type google.cloud.contentwarehouse.v1.CustomWeightsMetadata

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addAllWeightedSchemaProperties(Iterable<? extends WeightedSchemaProperty> values)

public CustomWeightsMetadata.Builder addAllWeightedSchemaProperties(Iterable<? extends WeightedSchemaProperty> values)

List of schema and property name. Allows a maximum of 10 schemas to be specified for relevance boosting.

repeated .google.cloud.contentwarehouse.v1.WeightedSchemaProperty weighted_schema_properties = 1;

Parameter
Name Description
values Iterable<? extends com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty>
Returns
Type Description
CustomWeightsMetadata.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CustomWeightsMetadata.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CustomWeightsMetadata.Builder
Overrides

addWeightedSchemaProperties(WeightedSchemaProperty value)

public CustomWeightsMetadata.Builder addWeightedSchemaProperties(WeightedSchemaProperty value)

List of schema and property name. Allows a maximum of 10 schemas to be specified for relevance boosting.

repeated .google.cloud.contentwarehouse.v1.WeightedSchemaProperty weighted_schema_properties = 1;

Parameter
Name Description
value WeightedSchemaProperty
Returns
Type Description
CustomWeightsMetadata.Builder

addWeightedSchemaProperties(WeightedSchemaProperty.Builder builderForValue)

public CustomWeightsMetadata.Builder addWeightedSchemaProperties(WeightedSchemaProperty.Builder builderForValue)

List of schema and property name. Allows a maximum of 10 schemas to be specified for relevance boosting.

repeated .google.cloud.contentwarehouse.v1.WeightedSchemaProperty weighted_schema_properties = 1;

Parameter
Name Description
builderForValue WeightedSchemaProperty.Builder
Returns
Type Description
CustomWeightsMetadata.Builder

addWeightedSchemaProperties(int index, WeightedSchemaProperty value)

public CustomWeightsMetadata.Builder addWeightedSchemaProperties(int index, WeightedSchemaProperty value)

List of schema and property name. Allows a maximum of 10 schemas to be specified for relevance boosting.

repeated .google.cloud.contentwarehouse.v1.WeightedSchemaProperty weighted_schema_properties = 1;

Parameters
Name Description
index int
value WeightedSchemaProperty
Returns
Type Description
CustomWeightsMetadata.Builder

addWeightedSchemaProperties(int index, WeightedSchemaProperty.Builder builderForValue)

public CustomWeightsMetadata.Builder addWeightedSchemaProperties(int index, WeightedSchemaProperty.Builder builderForValue)

List of schema and property name. Allows a maximum of 10 schemas to be specified for relevance boosting.

repeated .google.cloud.contentwarehouse.v1.WeightedSchemaProperty weighted_schema_properties = 1;

Parameters
Name Description
index int
builderForValue WeightedSchemaProperty.Builder
Returns
Type Description
CustomWeightsMetadata.Builder

addWeightedSchemaPropertiesBuilder()

public WeightedSchemaProperty.Builder addWeightedSchemaPropertiesBuilder()

List of schema and property name. Allows a maximum of 10 schemas to be specified for relevance boosting.

repeated .google.cloud.contentwarehouse.v1.WeightedSchemaProperty weighted_schema_properties = 1;

Returns
Type Description
WeightedSchemaProperty.Builder

addWeightedSchemaPropertiesBuilder(int index)

public WeightedSchemaProperty.Builder addWeightedSchemaPropertiesBuilder(int index)

List of schema and property name. Allows a maximum of 10 schemas to be specified for relevance boosting.

repeated .google.cloud.contentwarehouse.v1.WeightedSchemaProperty weighted_schema_properties = 1;

Parameter
Name Description
index int
Returns
Type Description
WeightedSchemaProperty.Builder

build()

public CustomWeightsMetadata build()
Returns
Type Description
CustomWeightsMetadata

buildPartial()

public CustomWeightsMetadata buildPartial()
Returns
Type Description
CustomWeightsMetadata

clear()

public CustomWeightsMetadata.Builder clear()
Returns
Type Description
CustomWeightsMetadata.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public CustomWeightsMetadata.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
CustomWeightsMetadata.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public CustomWeightsMetadata.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
CustomWeightsMetadata.Builder
Overrides

clearWeightedSchemaProperties()

public CustomWeightsMetadata.Builder clearWeightedSchemaProperties()

List of schema and property name. Allows a maximum of 10 schemas to be specified for relevance boosting.

repeated .google.cloud.contentwarehouse.v1.WeightedSchemaProperty weighted_schema_properties = 1;

Returns
Type Description
CustomWeightsMetadata.Builder

clone()

public CustomWeightsMetadata.Builder clone()
Returns
Type Description
CustomWeightsMetadata.Builder
Overrides

getDefaultInstanceForType()

public CustomWeightsMetadata getDefaultInstanceForType()
Returns
Type Description
CustomWeightsMetadata

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getWeightedSchemaProperties(int index)

public WeightedSchemaProperty getWeightedSchemaProperties(int index)

List of schema and property name. Allows a maximum of 10 schemas to be specified for relevance boosting.

repeated .google.cloud.contentwarehouse.v1.WeightedSchemaProperty weighted_schema_properties = 1;

Parameter
Name Description
index int
Returns
Type Description
WeightedSchemaProperty

getWeightedSchemaPropertiesBuilder(int index)

public WeightedSchemaProperty.Builder getWeightedSchemaPropertiesBuilder(int index)

List of schema and property name. Allows a maximum of 10 schemas to be specified for relevance boosting.

repeated .google.cloud.contentwarehouse.v1.WeightedSchemaProperty weighted_schema_properties = 1;

Parameter
Name Description
index int
Returns
Type Description
WeightedSchemaProperty.Builder

getWeightedSchemaPropertiesBuilderList()

public List<WeightedSchemaProperty.Builder> getWeightedSchemaPropertiesBuilderList()

List of schema and property name. Allows a maximum of 10 schemas to be specified for relevance boosting.

repeated .google.cloud.contentwarehouse.v1.WeightedSchemaProperty weighted_schema_properties = 1;

Returns
Type Description
List<Builder>

getWeightedSchemaPropertiesCount()

public int getWeightedSchemaPropertiesCount()

List of schema and property name. Allows a maximum of 10 schemas to be specified for relevance boosting.

repeated .google.cloud.contentwarehouse.v1.WeightedSchemaProperty weighted_schema_properties = 1;

Returns
Type Description
int

getWeightedSchemaPropertiesList()

public List<WeightedSchemaProperty> getWeightedSchemaPropertiesList()

List of schema and property name. Allows a maximum of 10 schemas to be specified for relevance boosting.

repeated .google.cloud.contentwarehouse.v1.WeightedSchemaProperty weighted_schema_properties = 1;

Returns
Type Description
List<WeightedSchemaProperty>

getWeightedSchemaPropertiesOrBuilder(int index)

public WeightedSchemaPropertyOrBuilder getWeightedSchemaPropertiesOrBuilder(int index)

List of schema and property name. Allows a maximum of 10 schemas to be specified for relevance boosting.

repeated .google.cloud.contentwarehouse.v1.WeightedSchemaProperty weighted_schema_properties = 1;

Parameter
Name Description
index int
Returns
Type Description
WeightedSchemaPropertyOrBuilder

getWeightedSchemaPropertiesOrBuilderList()

public List<? extends WeightedSchemaPropertyOrBuilder> getWeightedSchemaPropertiesOrBuilderList()

List of schema and property name. Allows a maximum of 10 schemas to be specified for relevance boosting.

repeated .google.cloud.contentwarehouse.v1.WeightedSchemaProperty weighted_schema_properties = 1;

Returns
Type Description
List<? extends com.google.cloud.contentwarehouse.v1.WeightedSchemaPropertyOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(CustomWeightsMetadata other)

public CustomWeightsMetadata.Builder mergeFrom(CustomWeightsMetadata other)
Parameter
Name Description
other CustomWeightsMetadata
Returns
Type Description
CustomWeightsMetadata.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public CustomWeightsMetadata.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CustomWeightsMetadata.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public CustomWeightsMetadata.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
CustomWeightsMetadata.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CustomWeightsMetadata.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CustomWeightsMetadata.Builder
Overrides

removeWeightedSchemaProperties(int index)

public CustomWeightsMetadata.Builder removeWeightedSchemaProperties(int index)

List of schema and property name. Allows a maximum of 10 schemas to be specified for relevance boosting.

repeated .google.cloud.contentwarehouse.v1.WeightedSchemaProperty weighted_schema_properties = 1;

Parameter
Name Description
index int
Returns
Type Description
CustomWeightsMetadata.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public CustomWeightsMetadata.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
CustomWeightsMetadata.Builder
Overrides

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

public CustomWeightsMetadata.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
CustomWeightsMetadata.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final CustomWeightsMetadata.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
CustomWeightsMetadata.Builder
Overrides

setWeightedSchemaProperties(int index, WeightedSchemaProperty value)

public CustomWeightsMetadata.Builder setWeightedSchemaProperties(int index, WeightedSchemaProperty value)

List of schema and property name. Allows a maximum of 10 schemas to be specified for relevance boosting.

repeated .google.cloud.contentwarehouse.v1.WeightedSchemaProperty weighted_schema_properties = 1;

Parameters
Name Description
index int
value WeightedSchemaProperty
Returns
Type Description
CustomWeightsMetadata.Builder

setWeightedSchemaProperties(int index, WeightedSchemaProperty.Builder builderForValue)

public CustomWeightsMetadata.Builder setWeightedSchemaProperties(int index, WeightedSchemaProperty.Builder builderForValue)

List of schema and property name. Allows a maximum of 10 schemas to be specified for relevance boosting.

repeated .google.cloud.contentwarehouse.v1.WeightedSchemaProperty weighted_schema_properties = 1;

Parameters
Name Description
index int
builderForValue WeightedSchemaProperty.Builder
Returns
Type Description
CustomWeightsMetadata.Builder