Class CustomWeightsMetadata.Builder (0.37.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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.contentwarehouse.v1.WeightedSchemaProperty>
Returns
TypeDescription
CustomWeightsMetadata.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public CustomWeightsMetadata.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueWeightedSchemaProperty
Returns
TypeDescription
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
NameDescription
builderForValueWeightedSchemaProperty.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueWeightedSchemaProperty
Returns
TypeDescription
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
NameDescription
indexint
builderForValueWeightedSchemaProperty.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
WeightedSchemaProperty.Builder

build()

public CustomWeightsMetadata build()
Returns
TypeDescription
CustomWeightsMetadata

buildPartial()

public CustomWeightsMetadata buildPartial()
Returns
TypeDescription
CustomWeightsMetadata

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public CustomWeightsMetadata.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
CustomWeightsMetadata.Builder

clone()

public CustomWeightsMetadata.Builder clone()
Returns
TypeDescription
CustomWeightsMetadata.Builder
Overrides

getDefaultInstanceForType()

public CustomWeightsMetadata getDefaultInstanceForType()
Returns
TypeDescription
CustomWeightsMetadata

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<? extends com.google.cloud.contentwarehouse.v1.WeightedSchemaPropertyOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(CustomWeightsMetadata other)

public CustomWeightsMetadata.Builder mergeFrom(CustomWeightsMetadata other)
Parameter
NameDescription
otherCustomWeightsMetadata
Returns
TypeDescription
CustomWeightsMetadata.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final CustomWeightsMetadata.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
CustomWeightsMetadata.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

public final CustomWeightsMetadata.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
indexint
valueWeightedSchemaProperty
Returns
TypeDescription
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
NameDescription
indexint
builderForValueWeightedSchemaProperty.Builder
Returns
TypeDescription
CustomWeightsMetadata.Builder