Class SynonymSet.Synonym (0.10.0)

public static final class SynonymSet.Synonym extends GeneratedMessageV3 implements SynonymSet.SynonymOrBuilder

Represents a list of words given by the customer All these words are synonyms of each other.

Protobuf type google.cloud.contentwarehouse.v1.SynonymSet.Synonym

Static Fields

WORDS_FIELD_NUMBER

public static final int WORDS_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static SynonymSet.Synonym getDefaultInstance()
Returns
TypeDescription
SynonymSet.Synonym

getDescriptor()

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

newBuilder()

public static SynonymSet.Synonym.Builder newBuilder()
Returns
TypeDescription
SynonymSet.Synonym.Builder

newBuilder(SynonymSet.Synonym prototype)

public static SynonymSet.Synonym.Builder newBuilder(SynonymSet.Synonym prototype)
Parameter
NameDescription
prototypeSynonymSet.Synonym
Returns
TypeDescription
SynonymSet.Synonym.Builder

parseDelimitedFrom(InputStream input)

public static SynonymSet.Synonym parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
SynonymSet.Synonym
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static SynonymSet.Synonym parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
SynonymSet.Synonym
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

public static SynonymSet.Synonym parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
SynonymSet.Synonym
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

public static SynonymSet.Synonym parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
SynonymSet.Synonym
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

public static SynonymSet.Synonym parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
SynonymSet.Synonym
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<SynonymSet.Synonym> parser()
Returns
TypeDescription
Parser<Synonym>

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public SynonymSet.Synonym getDefaultInstanceForType()
Returns
TypeDescription
SynonymSet.Synonym

getParserForType()

public Parser<SynonymSet.Synonym> getParserForType()
Returns
TypeDescription
Parser<Synonym>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

getWords(int index)

public String getWords(int index)

For example: sale, invoice, bill, order

repeated string words = 1;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The words at the given index.

getWordsBytes(int index)

public ByteString getWordsBytes(int index)

For example: sale, invoice, bill, order

repeated string words = 1;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the words at the given index.

getWordsCount()

public int getWordsCount()

For example: sale, invoice, bill, order

repeated string words = 1;

Returns
TypeDescription
int

The count of words.

getWordsList()

public ProtocolStringList getWordsList()

For example: sale, invoice, bill, order

repeated string words = 1;

Returns
TypeDescription
ProtocolStringList

A list containing the words.

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

public SynonymSet.Synonym.Builder toBuilder()
Returns
TypeDescription
SynonymSet.Synonym.Builder

writeTo(CodedOutputStream output)

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