Class CustomWeightsMetadata (0.17.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
TypeDescription
int

Static Methods

getDefaultInstance()

public static CustomWeightsMetadata getDefaultInstance()
Returns
TypeDescription
CustomWeightsMetadata

getDescriptor()

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

newBuilder()

public static CustomWeightsMetadata.Builder newBuilder()
Returns
TypeDescription
CustomWeightsMetadata.Builder

newBuilder(CustomWeightsMetadata prototype)

public static CustomWeightsMetadata.Builder newBuilder(CustomWeightsMetadata prototype)
Parameter
NameDescription
prototypeCustomWeightsMetadata
Returns
TypeDescription
CustomWeightsMetadata.Builder

parseDelimitedFrom(InputStream input)

public static CustomWeightsMetadata parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
CustomWeightsMetadata
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CustomWeightsMetadata parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CustomWeightsMetadata
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static CustomWeightsMetadata parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
CustomWeightsMetadata
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static CustomWeightsMetadata parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CustomWeightsMetadata
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static CustomWeightsMetadata parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
CustomWeightsMetadata
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static CustomWeightsMetadata parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CustomWeightsMetadata
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static CustomWeightsMetadata parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
CustomWeightsMetadata
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static CustomWeightsMetadata parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CustomWeightsMetadata
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static CustomWeightsMetadata parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
CustomWeightsMetadata
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CustomWeightsMetadata parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CustomWeightsMetadata
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static CustomWeightsMetadata parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
CustomWeightsMetadata
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static CustomWeightsMetadata parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CustomWeightsMetadata
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<CustomWeightsMetadata> parser()
Returns
TypeDescription
Parser<CustomWeightsMetadata>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getDefaultInstanceForType()

public CustomWeightsMetadata getDefaultInstanceForType()
Returns
TypeDescription
CustomWeightsMetadata

getParserForType()

public Parser<CustomWeightsMetadata> getParserForType()
Returns
TypeDescription
Parser<CustomWeightsMetadata>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
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>

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public CustomWeightsMetadata.Builder newBuilderForType()
Returns
TypeDescription
CustomWeightsMetadata.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected CustomWeightsMetadata.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
CustomWeightsMetadata.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public CustomWeightsMetadata.Builder toBuilder()
Returns
TypeDescription
CustomWeightsMetadata.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException