Class WeightedSchemaProperty (0.33.0)

public final class WeightedSchemaProperty extends GeneratedMessageV3 implements WeightedSchemaPropertyOrBuilder

Specifies the schema property name.

Protobuf type google.cloud.contentwarehouse.v1.WeightedSchemaProperty

Static Fields

DOCUMENT_SCHEMA_NAME_FIELD_NUMBER

public static final int DOCUMENT_SCHEMA_NAME_FIELD_NUMBER
Field Value
TypeDescription
int

PROPERTY_NAMES_FIELD_NUMBER

public static final int PROPERTY_NAMES_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static WeightedSchemaProperty getDefaultInstance()
Returns
TypeDescription
WeightedSchemaProperty

getDescriptor()

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

newBuilder()

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

newBuilder(WeightedSchemaProperty prototype)

public static WeightedSchemaProperty.Builder newBuilder(WeightedSchemaProperty prototype)
Parameter
NameDescription
prototypeWeightedSchemaProperty
Returns
TypeDescription
WeightedSchemaProperty.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public WeightedSchemaProperty getDefaultInstanceForType()
Returns
TypeDescription
WeightedSchemaProperty

getDocumentSchemaName()

public String getDocumentSchemaName()

The document schema name.

string document_schema_name = 1 [(.google.api.resource_reference) = { ... }

Returns
TypeDescription
String

The documentSchemaName.

getDocumentSchemaNameBytes()

public ByteString getDocumentSchemaNameBytes()

The document schema name.

string document_schema_name = 1 [(.google.api.resource_reference) = { ... }

Returns
TypeDescription
ByteString

The bytes for documentSchemaName.

getParserForType()

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

getPropertyNames(int index)

public String getPropertyNames(int index)

The property definition names in the schema.

repeated string property_names = 2;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The propertyNames at the given index.

getPropertyNamesBytes(int index)

public ByteString getPropertyNamesBytes(int index)

The property definition names in the schema.

repeated string property_names = 2;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the propertyNames at the given index.

getPropertyNamesCount()

public int getPropertyNamesCount()

The property definition names in the schema.

repeated string property_names = 2;

Returns
TypeDescription
int

The count of propertyNames.

getPropertyNamesList()

public ProtocolStringList getPropertyNamesList()

The property definition names in the schema.

repeated string property_names = 2;

Returns
TypeDescription
ProtocolStringList

A list containing the propertyNames.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

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 WeightedSchemaProperty.Builder newBuilderForType()
Returns
TypeDescription
WeightedSchemaProperty.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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