Class Condition.QueryTerm (2.8.0)

public static final class Condition.QueryTerm extends GeneratedMessageV3 implements Condition.QueryTermOrBuilder

Query terms that we want to match on.

Protobuf type google.cloud.retail.v2alpha.Condition.QueryTerm

Static Fields

FULL_MATCH_FIELD_NUMBER

public static final int FULL_MATCH_FIELD_NUMBER
Field Value
TypeDescription
int

VALUE_FIELD_NUMBER

public static final int VALUE_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Condition.QueryTerm getDefaultInstance()
Returns
TypeDescription
Condition.QueryTerm

getDescriptor()

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

newBuilder()

public static Condition.QueryTerm.Builder newBuilder()
Returns
TypeDescription
Condition.QueryTerm.Builder

newBuilder(Condition.QueryTerm prototype)

public static Condition.QueryTerm.Builder newBuilder(Condition.QueryTerm prototype)
Parameter
NameDescription
prototypeCondition.QueryTerm
Returns
TypeDescription
Condition.QueryTerm.Builder

parseDelimitedFrom(InputStream input)

public static Condition.QueryTerm parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Condition.QueryTerm
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static Condition.QueryTerm parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
Condition.QueryTerm
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

public static Condition.QueryTerm parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
Condition.QueryTerm
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

public static Condition.QueryTerm parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Condition.QueryTerm
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

public static Condition.QueryTerm parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
Condition.QueryTerm
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<Condition.QueryTerm> parser()
Returns
TypeDescription
Parser<QueryTerm>

Methods

equals(Object obj)

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

getDefaultInstanceForType()

public Condition.QueryTerm getDefaultInstanceForType()
Returns
TypeDescription
Condition.QueryTerm

getFullMatch()

public boolean getFullMatch()

Whether this is supposed to be a full or partial match.

bool full_match = 2;

Returns
TypeDescription
boolean

The fullMatch.

getParserForType()

public Parser<Condition.QueryTerm> getParserForType()
Returns
TypeDescription
Parser<QueryTerm>
Overrides

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

getValue()

public String getValue()

The value of the term to match on. Value cannot be empty. Value can have at most 3 terms if specified as a partial match. Each space separated string is considered as one term. Example) "a b c" is 3 terms and allowed, " a b c d" is 4 terms and not allowed for partial match.

string value = 1;

Returns
TypeDescription
String

The value.

getValueBytes()

public ByteString getValueBytes()

The value of the term to match on. Value cannot be empty. Value can have at most 3 terms if specified as a partial match. Each space separated string is considered as one term. Example) "a b c" is 3 terms and allowed, " a b c d" is 4 terms and not allowed for partial match.

string value = 1;

Returns
TypeDescription
ByteString

The bytes for value.

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

public Condition.QueryTerm.Builder toBuilder()
Returns
TypeDescription
Condition.QueryTerm.Builder

writeTo(CodedOutputStream output)

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