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
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
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>
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public CustomWeightsMetadata.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
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;
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;
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;
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;
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;
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
|
build()
public CustomWeightsMetadata build()
buildPartial()
public CustomWeightsMetadata buildPartial()
clear()
public CustomWeightsMetadata.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public CustomWeightsMetadata.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public CustomWeightsMetadata.Builder clearOneof(Descriptors.OneofDescriptor oneof)
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;
clone()
public CustomWeightsMetadata.Builder clone()
Overrides
getDefaultInstanceForType()
public CustomWeightsMetadata getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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
|
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
|
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;
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;
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
|
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()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(CustomWeightsMetadata other)
public CustomWeightsMetadata.Builder mergeFrom(CustomWeightsMetadata other)
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public CustomWeightsMetadata.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public CustomWeightsMetadata.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final CustomWeightsMetadata.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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
|
setField(Descriptors.FieldDescriptor field, Object value)
public CustomWeightsMetadata.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public CustomWeightsMetadata.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final CustomWeightsMetadata.Builder setUnknownFields(UnknownFieldSet unknownFields)
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;
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;