public final class Condition extends GeneratedMessageV3 implements ConditionOrBuilder
Metadata that is used to define a condition that triggers an action.
A valid condition must specify at least one of 'query_terms' or
'products_filter'. If multiple fields are specified, the condition is met if
all the fields are satisfied e.g. if a set of query terms and product_filter
are set, then only items matching the product_filter for requests with a
query matching the query terms wil get boosted.
Protobuf type google.cloud.retail.v2beta.Condition
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
Static Fields
ACTIVE_TIME_RANGE_FIELD_NUMBER
public static final int ACTIVE_TIME_RANGE_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
QUERY_TERMS_FIELD_NUMBER
public static final int QUERY_TERMS_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
Static Methods
getDefaultInstance()
public static Condition getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static Condition.Builder newBuilder()
newBuilder(Condition prototype)
public static Condition.Builder newBuilder(Condition prototype)
public static Condition parseDelimitedFrom(InputStream input)
public static Condition parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static Condition parseFrom(byte[] data)
Parameter |
---|
Name | Description |
data | byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static Condition parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static Condition parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Condition parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static Condition parseFrom(CodedInputStream input)
public static Condition parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static Condition parseFrom(InputStream input)
public static Condition parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static Condition parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static Condition parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<Condition> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
---|
Name | Description |
obj | Object
|
Overrides
getActiveTimeRange(int index)
public Condition.TimeRange getActiveTimeRange(int index)
Range of time(s) specifying when Condition is active.
Condition true if any time range matches.
repeated .google.cloud.retail.v2beta.Condition.TimeRange active_time_range = 3;
Parameter |
---|
Name | Description |
index | int
|
getActiveTimeRangeCount()
public int getActiveTimeRangeCount()
Range of time(s) specifying when Condition is active.
Condition true if any time range matches.
repeated .google.cloud.retail.v2beta.Condition.TimeRange active_time_range = 3;
Returns |
---|
Type | Description |
int | |
getActiveTimeRangeList()
public List<Condition.TimeRange> getActiveTimeRangeList()
Range of time(s) specifying when Condition is active.
Condition true if any time range matches.
repeated .google.cloud.retail.v2beta.Condition.TimeRange active_time_range = 3;
getActiveTimeRangeOrBuilder(int index)
public Condition.TimeRangeOrBuilder getActiveTimeRangeOrBuilder(int index)
Range of time(s) specifying when Condition is active.
Condition true if any time range matches.
repeated .google.cloud.retail.v2beta.Condition.TimeRange active_time_range = 3;
Parameter |
---|
Name | Description |
index | int
|
getActiveTimeRangeOrBuilderList()
public List<? extends Condition.TimeRangeOrBuilder> getActiveTimeRangeOrBuilderList()
Range of time(s) specifying when Condition is active.
Condition true if any time range matches.
repeated .google.cloud.retail.v2beta.Condition.TimeRange active_time_range = 3;
Returns |
---|
Type | Description |
List<? extends com.google.cloud.retail.v2beta.Condition.TimeRangeOrBuilder> | |
getDefaultInstanceForType()
public Condition getDefaultInstanceForType()
getParserForType()
public Parser<Condition> getParserForType()
Overrides
getQueryTerms(int index)
public Condition.QueryTerm getQueryTerms(int index)
A list (up to 10 entries) of terms to match the query on. If not
specified, match all queries.
If many query terms are specified, the condition
is matched if any of the terms is a match (i.e. using the OR operator).
repeated .google.cloud.retail.v2beta.Condition.QueryTerm query_terms = 1;
Parameter |
---|
Name | Description |
index | int
|
getQueryTermsCount()
public int getQueryTermsCount()
A list (up to 10 entries) of terms to match the query on. If not
specified, match all queries.
If many query terms are specified, the condition
is matched if any of the terms is a match (i.e. using the OR operator).
repeated .google.cloud.retail.v2beta.Condition.QueryTerm query_terms = 1;
Returns |
---|
Type | Description |
int | |
getQueryTermsList()
public List<Condition.QueryTerm> getQueryTermsList()
A list (up to 10 entries) of terms to match the query on. If not
specified, match all queries.
If many query terms are specified, the condition
is matched if any of the terms is a match (i.e. using the OR operator).
repeated .google.cloud.retail.v2beta.Condition.QueryTerm query_terms = 1;
getQueryTermsOrBuilder(int index)
public Condition.QueryTermOrBuilder getQueryTermsOrBuilder(int index)
A list (up to 10 entries) of terms to match the query on. If not
specified, match all queries.
If many query terms are specified, the condition
is matched if any of the terms is a match (i.e. using the OR operator).
repeated .google.cloud.retail.v2beta.Condition.QueryTerm query_terms = 1;
Parameter |
---|
Name | Description |
index | int
|
getQueryTermsOrBuilderList()
public List<? extends Condition.QueryTermOrBuilder> getQueryTermsOrBuilderList()
A list (up to 10 entries) of terms to match the query on. If not
specified, match all queries.
If many query terms are specified, the condition
is matched if any of the terms is a match (i.e. using the OR operator).
repeated .google.cloud.retail.v2beta.Condition.QueryTerm query_terms = 1;
Returns |
---|
Type | Description |
List<? extends com.google.cloud.retail.v2beta.Condition.QueryTermOrBuilder> | |
getSerializedSize()
public int getSerializedSize()
Returns |
---|
Type | Description |
int | |
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Overrides
hashCode()
Returns |
---|
Type | Description |
int | |
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public Condition.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected Condition.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Overrides
toBuilder()
public Condition.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides