public final class CustomWeightsMetadata extends GeneratedMessage implements CustomWeightsMetadataOrBuilderTo support the custom weighting across document schemas.
Protobuf type google.cloud.contentwarehouse.v1.CustomWeightsMetadata
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessage > CustomWeightsMetadataImplements
CustomWeightsMetadataOrBuilderStatic 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 |
|
getDefaultInstanceForType()
public CustomWeightsMetadata getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
CustomWeightsMetadata |
|
getParserForType()
public Parser<CustomWeightsMetadata> getParserForType()| Returns | |
|---|---|
| Type | Description |
Parser<CustomWeightsMetadata> |
|
getSerializedSize()
public int getSerializedSize()| Returns | |
|---|---|
| Type | Description |
int |
|
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 |
|
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
newBuilderForType()
public CustomWeightsMetadata.Builder newBuilderForType()| Returns | |
|---|---|
| Type | Description |
CustomWeightsMetadata.Builder |
|
newBuilderForType(AbstractMessage.BuilderParent parent)
protected CustomWeightsMetadata.Builder newBuilderForType(AbstractMessage.BuilderParent parent)| Parameter | |
|---|---|
| Name | Description |
parent |
BuilderParent |
| Returns | |
|---|---|
| Type | Description |
CustomWeightsMetadata.Builder |
|
toBuilder()
public CustomWeightsMetadata.Builder toBuilder()| Returns | |
|---|---|
| Type | Description |
CustomWeightsMetadata.Builder |
|
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)| Parameter | |
|---|---|
| Name | Description |
output |
CodedOutputStream |
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|