Class CustomWeightsMetadata (0.40.0)

public final class CustomWeightsMetadata extends GeneratedMessageV3 implements CustomWeightsMetadataOrBuilder

To support the custom weighting across document schemas.

Protobuf type google.cloud.contentwarehouse.v1.CustomWeightsMetadata

Static Fields

WEIGHTED_SCHEMA_PROPERTIES_FIELD_NUMBER

public static final int WEIGHTED_SCHEMA_PROPERTIES_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static CustomWeightsMetadata getDefaultInstance()
Returns
Type Description
CustomWeightsMetadata

getDescriptor()

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

newBuilder()

public static CustomWeightsMetadata.Builder newBuilder()
Returns
Type Description
CustomWeightsMetadata.Builder

newBuilder(CustomWeightsMetadata prototype)

public static CustomWeightsMetadata.Builder newBuilder(CustomWeightsMetadata prototype)
Parameter
Name Description
prototype CustomWeightsMetadata
Returns
Type Description
CustomWeightsMetadata.Builder

parseDelimitedFrom(InputStream input)

public static CustomWeightsMetadata parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
CustomWeightsMetadata
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CustomWeightsMetadata parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CustomWeightsMetadata
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static CustomWeightsMetadata parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
CustomWeightsMetadata
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static CustomWeightsMetadata parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CustomWeightsMetadata
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static CustomWeightsMetadata parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
CustomWeightsMetadata
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static CustomWeightsMetadata parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CustomWeightsMetadata
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static CustomWeightsMetadata parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
CustomWeightsMetadata
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static CustomWeightsMetadata parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CustomWeightsMetadata
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static CustomWeightsMetadata parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
CustomWeightsMetadata
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CustomWeightsMetadata parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CustomWeightsMetadata
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static CustomWeightsMetadata parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
CustomWeightsMetadata
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static CustomWeightsMetadata parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
CustomWeightsMetadata
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<CustomWeightsMetadata> parser()
Returns
Type Description
Parser<CustomWeightsMetadata>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public CustomWeightsMetadata getDefaultInstanceForType()
Returns
Type Description
CustomWeightsMetadata

getParserForType()

public Parser<CustomWeightsMetadata> getParserForType()
Returns
Type Description
Parser<CustomWeightsMetadata>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
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

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>

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public CustomWeightsMetadata.Builder newBuilderForType()
Returns
Type Description
CustomWeightsMetadata.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected CustomWeightsMetadata.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
CustomWeightsMetadata.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public CustomWeightsMetadata.Builder toBuilder()
Returns
Type Description
CustomWeightsMetadata.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException