- 0.50.0 (latest)
- 0.49.0
- 0.48.0
- 0.47.0
- 0.45.0
- 0.44.0
- 0.43.0
- 0.42.0
- 0.41.0
- 0.40.0
- 0.39.0
- 0.38.0
- 0.37.0
- 0.36.0
- 0.35.0
- 0.33.0
- 0.32.0
- 0.31.0
- 0.30.0
- 0.29.0
- 0.28.0
- 0.27.0
- 0.26.0
- 0.25.0
- 0.24.0
- 0.23.0
- 0.20.0
- 0.19.0
- 0.18.0
- 0.17.0
- 0.16.0
- 0.15.0
- 0.14.0
- 0.13.0
- 0.12.0
- 0.11.0
- 0.10.0
- 0.9.0
- 0.8.0
- 0.7.0
- 0.5.0
- 0.4.0
- 0.3.0
- 0.2.0
- 0.1.0
public static final class Condition.Builder extends GeneratedMessageV3.Builder<Condition.Builder> implements ConditionOrBuilder
Defines circumstances to be checked before allowing a behavior
Protobuf type google.cloud.discoveryengine.v1.Condition
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > Condition.BuilderImplements
ConditionOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addActiveTimeRange(Condition.TimeRange value)
public Condition.Builder addActiveTimeRange(Condition.TimeRange value)
Range of time(s) specifying when condition is active.
Maximum of 10 time ranges.
repeated .google.cloud.discoveryengine.v1.Condition.TimeRange active_time_range = 3;
Parameter | |
---|---|
Name | Description |
value |
Condition.TimeRange |
Returns | |
---|---|
Type | Description |
Condition.Builder |
addActiveTimeRange(Condition.TimeRange.Builder builderForValue)
public Condition.Builder addActiveTimeRange(Condition.TimeRange.Builder builderForValue)
Range of time(s) specifying when condition is active.
Maximum of 10 time ranges.
repeated .google.cloud.discoveryengine.v1.Condition.TimeRange active_time_range = 3;
Parameter | |
---|---|
Name | Description |
builderForValue |
Condition.TimeRange.Builder |
Returns | |
---|---|
Type | Description |
Condition.Builder |
addActiveTimeRange(int index, Condition.TimeRange value)
public Condition.Builder addActiveTimeRange(int index, Condition.TimeRange value)
Range of time(s) specifying when condition is active.
Maximum of 10 time ranges.
repeated .google.cloud.discoveryengine.v1.Condition.TimeRange active_time_range = 3;
Parameters | |
---|---|
Name | Description |
index |
int |
value |
Condition.TimeRange |
Returns | |
---|---|
Type | Description |
Condition.Builder |
addActiveTimeRange(int index, Condition.TimeRange.Builder builderForValue)
public Condition.Builder addActiveTimeRange(int index, Condition.TimeRange.Builder builderForValue)
Range of time(s) specifying when condition is active.
Maximum of 10 time ranges.
repeated .google.cloud.discoveryengine.v1.Condition.TimeRange active_time_range = 3;
Parameters | |
---|---|
Name | Description |
index |
int |
builderForValue |
Condition.TimeRange.Builder |
Returns | |
---|---|
Type | Description |
Condition.Builder |
addActiveTimeRangeBuilder()
public Condition.TimeRange.Builder addActiveTimeRangeBuilder()
Range of time(s) specifying when condition is active.
Maximum of 10 time ranges.
repeated .google.cloud.discoveryengine.v1.Condition.TimeRange active_time_range = 3;
Returns | |
---|---|
Type | Description |
Condition.TimeRange.Builder |
addActiveTimeRangeBuilder(int index)
public Condition.TimeRange.Builder addActiveTimeRangeBuilder(int index)
Range of time(s) specifying when condition is active.
Maximum of 10 time ranges.
repeated .google.cloud.discoveryengine.v1.Condition.TimeRange active_time_range = 3;
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
Condition.TimeRange.Builder |
addAllActiveTimeRange(Iterable<? extends Condition.TimeRange> values)
public Condition.Builder addAllActiveTimeRange(Iterable<? extends Condition.TimeRange> values)
Range of time(s) specifying when condition is active.
Maximum of 10 time ranges.
repeated .google.cloud.discoveryengine.v1.Condition.TimeRange active_time_range = 3;
Parameter | |
---|---|
Name | Description |
values |
Iterable<? extends com.google.cloud.discoveryengine.v1.Condition.TimeRange> |
Returns | |
---|---|
Type | Description |
Condition.Builder |
addAllQueryTerms(Iterable<? extends Condition.QueryTerm> values)
public Condition.Builder addAllQueryTerms(Iterable<? extends Condition.QueryTerm> values)
Search only A list of terms to match the query on. Cannot be set when Condition.query_regex is set.
Maximum of 10 query terms.
repeated .google.cloud.discoveryengine.v1.Condition.QueryTerm query_terms = 2;
Parameter | |
---|---|
Name | Description |
values |
Iterable<? extends com.google.cloud.discoveryengine.v1.Condition.QueryTerm> |
Returns | |
---|---|
Type | Description |
Condition.Builder |
addQueryTerms(Condition.QueryTerm value)
public Condition.Builder addQueryTerms(Condition.QueryTerm value)
Search only A list of terms to match the query on. Cannot be set when Condition.query_regex is set.
Maximum of 10 query terms.
repeated .google.cloud.discoveryengine.v1.Condition.QueryTerm query_terms = 2;
Parameter | |
---|---|
Name | Description |
value |
Condition.QueryTerm |
Returns | |
---|---|
Type | Description |
Condition.Builder |
addQueryTerms(Condition.QueryTerm.Builder builderForValue)
public Condition.Builder addQueryTerms(Condition.QueryTerm.Builder builderForValue)
Search only A list of terms to match the query on. Cannot be set when Condition.query_regex is set.
Maximum of 10 query terms.
repeated .google.cloud.discoveryengine.v1.Condition.QueryTerm query_terms = 2;
Parameter | |
---|---|
Name | Description |
builderForValue |
Condition.QueryTerm.Builder |
Returns | |
---|---|
Type | Description |
Condition.Builder |
addQueryTerms(int index, Condition.QueryTerm value)
public Condition.Builder addQueryTerms(int index, Condition.QueryTerm value)
Search only A list of terms to match the query on. Cannot be set when Condition.query_regex is set.
Maximum of 10 query terms.
repeated .google.cloud.discoveryengine.v1.Condition.QueryTerm query_terms = 2;
Parameters | |
---|---|
Name | Description |
index |
int |
value |
Condition.QueryTerm |
Returns | |
---|---|
Type | Description |
Condition.Builder |
addQueryTerms(int index, Condition.QueryTerm.Builder builderForValue)
public Condition.Builder addQueryTerms(int index, Condition.QueryTerm.Builder builderForValue)
Search only A list of terms to match the query on. Cannot be set when Condition.query_regex is set.
Maximum of 10 query terms.
repeated .google.cloud.discoveryengine.v1.Condition.QueryTerm query_terms = 2;
Parameters | |
---|---|
Name | Description |
index |
int |
builderForValue |
Condition.QueryTerm.Builder |
Returns | |
---|---|
Type | Description |
Condition.Builder |
addQueryTermsBuilder()
public Condition.QueryTerm.Builder addQueryTermsBuilder()
Search only A list of terms to match the query on. Cannot be set when Condition.query_regex is set.
Maximum of 10 query terms.
repeated .google.cloud.discoveryengine.v1.Condition.QueryTerm query_terms = 2;
Returns | |
---|---|
Type | Description |
Condition.QueryTerm.Builder |
addQueryTermsBuilder(int index)
public Condition.QueryTerm.Builder addQueryTermsBuilder(int index)
Search only A list of terms to match the query on. Cannot be set when Condition.query_regex is set.
Maximum of 10 query terms.
repeated .google.cloud.discoveryengine.v1.Condition.QueryTerm query_terms = 2;
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
Condition.QueryTerm.Builder |
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Condition.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
Condition.Builder |
build()
public Condition build()
Returns | |
---|---|
Type | Description |
Condition |
buildPartial()
public Condition buildPartial()
Returns | |
---|---|
Type | Description |
Condition |
clear()
public Condition.Builder clear()
Returns | |
---|---|
Type | Description |
Condition.Builder |
clearActiveTimeRange()
public Condition.Builder clearActiveTimeRange()
Range of time(s) specifying when condition is active.
Maximum of 10 time ranges.
repeated .google.cloud.discoveryengine.v1.Condition.TimeRange active_time_range = 3;
Returns | |
---|---|
Type | Description |
Condition.Builder |
clearField(Descriptors.FieldDescriptor field)
public Condition.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
FieldDescriptor |
Returns | |
---|---|
Type | Description |
Condition.Builder |
clearOneof(Descriptors.OneofDescriptor oneof)
public Condition.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof |
OneofDescriptor |
Returns | |
---|---|
Type | Description |
Condition.Builder |
clearQueryRegex()
public Condition.Builder clearQueryRegex()
Optional. Query regex to match the whole search query. Cannot be set when Condition.query_terms is set. This is currently supporting promotion use case.
string query_regex = 4 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
Condition.Builder |
This builder for chaining. |
clearQueryTerms()
public Condition.Builder clearQueryTerms()
Search only A list of terms to match the query on. Cannot be set when Condition.query_regex is set.
Maximum of 10 query terms.
repeated .google.cloud.discoveryengine.v1.Condition.QueryTerm query_terms = 2;
Returns | |
---|---|
Type | Description |
Condition.Builder |
clone()
public Condition.Builder clone()
Returns | |
---|---|
Type | Description |
Condition.Builder |
getActiveTimeRange(int index)
public Condition.TimeRange getActiveTimeRange(int index)
Range of time(s) specifying when condition is active.
Maximum of 10 time ranges.
repeated .google.cloud.discoveryengine.v1.Condition.TimeRange active_time_range = 3;
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
Condition.TimeRange |
getActiveTimeRangeBuilder(int index)
public Condition.TimeRange.Builder getActiveTimeRangeBuilder(int index)
Range of time(s) specifying when condition is active.
Maximum of 10 time ranges.
repeated .google.cloud.discoveryengine.v1.Condition.TimeRange active_time_range = 3;
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
Condition.TimeRange.Builder |
getActiveTimeRangeBuilderList()
public List<Condition.TimeRange.Builder> getActiveTimeRangeBuilderList()
Range of time(s) specifying when condition is active.
Maximum of 10 time ranges.
repeated .google.cloud.discoveryengine.v1.Condition.TimeRange active_time_range = 3;
Returns | |
---|---|
Type | Description |
List<Builder> |
getActiveTimeRangeCount()
public int getActiveTimeRangeCount()
Range of time(s) specifying when condition is active.
Maximum of 10 time ranges.
repeated .google.cloud.discoveryengine.v1.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.
Maximum of 10 time ranges.
repeated .google.cloud.discoveryengine.v1.Condition.TimeRange active_time_range = 3;
Returns | |
---|---|
Type | Description |
List<TimeRange> |
getActiveTimeRangeOrBuilder(int index)
public Condition.TimeRangeOrBuilder getActiveTimeRangeOrBuilder(int index)
Range of time(s) specifying when condition is active.
Maximum of 10 time ranges.
repeated .google.cloud.discoveryengine.v1.Condition.TimeRange active_time_range = 3;
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
Condition.TimeRangeOrBuilder |
getActiveTimeRangeOrBuilderList()
public List<? extends Condition.TimeRangeOrBuilder> getActiveTimeRangeOrBuilderList()
Range of time(s) specifying when condition is active.
Maximum of 10 time ranges.
repeated .google.cloud.discoveryengine.v1.Condition.TimeRange active_time_range = 3;
Returns | |
---|---|
Type | Description |
List<? extends com.google.cloud.discoveryengine.v1.Condition.TimeRangeOrBuilder> |
getDefaultInstanceForType()
public Condition getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
Condition |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getQueryRegex()
public String getQueryRegex()
Optional. Query regex to match the whole search query. Cannot be set when Condition.query_terms is set. This is currently supporting promotion use case.
string query_regex = 4 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
String |
The queryRegex. |
getQueryRegexBytes()
public ByteString getQueryRegexBytes()
Optional. Query regex to match the whole search query. Cannot be set when Condition.query_terms is set. This is currently supporting promotion use case.
string query_regex = 4 [(.google.api.field_behavior) = OPTIONAL];
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for queryRegex. |
getQueryTerms(int index)
public Condition.QueryTerm getQueryTerms(int index)
Search only A list of terms to match the query on. Cannot be set when Condition.query_regex is set.
Maximum of 10 query terms.
repeated .google.cloud.discoveryengine.v1.Condition.QueryTerm query_terms = 2;
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
Condition.QueryTerm |
getQueryTermsBuilder(int index)
public Condition.QueryTerm.Builder getQueryTermsBuilder(int index)
Search only A list of terms to match the query on. Cannot be set when Condition.query_regex is set.
Maximum of 10 query terms.
repeated .google.cloud.discoveryengine.v1.Condition.QueryTerm query_terms = 2;
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
Condition.QueryTerm.Builder |
getQueryTermsBuilderList()
public List<Condition.QueryTerm.Builder> getQueryTermsBuilderList()
Search only A list of terms to match the query on. Cannot be set when Condition.query_regex is set.
Maximum of 10 query terms.
repeated .google.cloud.discoveryengine.v1.Condition.QueryTerm query_terms = 2;
Returns | |
---|---|
Type | Description |
List<Builder> |
getQueryTermsCount()
public int getQueryTermsCount()
Search only A list of terms to match the query on. Cannot be set when Condition.query_regex is set.
Maximum of 10 query terms.
repeated .google.cloud.discoveryengine.v1.Condition.QueryTerm query_terms = 2;
Returns | |
---|---|
Type | Description |
int |
getQueryTermsList()
public List<Condition.QueryTerm> getQueryTermsList()
Search only A list of terms to match the query on. Cannot be set when Condition.query_regex is set.
Maximum of 10 query terms.
repeated .google.cloud.discoveryengine.v1.Condition.QueryTerm query_terms = 2;
Returns | |
---|---|
Type | Description |
List<QueryTerm> |
getQueryTermsOrBuilder(int index)
public Condition.QueryTermOrBuilder getQueryTermsOrBuilder(int index)
Search only A list of terms to match the query on. Cannot be set when Condition.query_regex is set.
Maximum of 10 query terms.
repeated .google.cloud.discoveryengine.v1.Condition.QueryTerm query_terms = 2;
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
Condition.QueryTermOrBuilder |
getQueryTermsOrBuilderList()
public List<? extends Condition.QueryTermOrBuilder> getQueryTermsOrBuilderList()
Search only A list of terms to match the query on. Cannot be set when Condition.query_regex is set.
Maximum of 10 query terms.
repeated .google.cloud.discoveryengine.v1.Condition.QueryTerm query_terms = 2;
Returns | |
---|---|
Type | Description |
List<? extends com.google.cloud.discoveryengine.v1.Condition.QueryTermOrBuilder> |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeFrom(Condition other)
public Condition.Builder mergeFrom(Condition other)
Parameter | |
---|---|
Name | Description |
other |
Condition |
Returns | |
---|---|
Type | Description |
Condition.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Condition.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
Condition.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public Condition.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other |
Message |
Returns | |
---|---|
Type | Description |
Condition.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Condition.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
Condition.Builder |
removeActiveTimeRange(int index)
public Condition.Builder removeActiveTimeRange(int index)
Range of time(s) specifying when condition is active.
Maximum of 10 time ranges.
repeated .google.cloud.discoveryengine.v1.Condition.TimeRange active_time_range = 3;
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
Condition.Builder |
removeQueryTerms(int index)
public Condition.Builder removeQueryTerms(int index)
Search only A list of terms to match the query on. Cannot be set when Condition.query_regex is set.
Maximum of 10 query terms.
repeated .google.cloud.discoveryengine.v1.Condition.QueryTerm query_terms = 2;
Parameter | |
---|---|
Name | Description |
index |
int |
Returns | |
---|---|
Type | Description |
Condition.Builder |
setActiveTimeRange(int index, Condition.TimeRange value)
public Condition.Builder setActiveTimeRange(int index, Condition.TimeRange value)
Range of time(s) specifying when condition is active.
Maximum of 10 time ranges.
repeated .google.cloud.discoveryengine.v1.Condition.TimeRange active_time_range = 3;
Parameters | |
---|---|
Name | Description |
index |
int |
value |
Condition.TimeRange |
Returns | |
---|---|
Type | Description |
Condition.Builder |
setActiveTimeRange(int index, Condition.TimeRange.Builder builderForValue)
public Condition.Builder setActiveTimeRange(int index, Condition.TimeRange.Builder builderForValue)
Range of time(s) specifying when condition is active.
Maximum of 10 time ranges.
repeated .google.cloud.discoveryengine.v1.Condition.TimeRange active_time_range = 3;
Parameters | |
---|---|
Name | Description |
index |
int |
builderForValue |
Condition.TimeRange.Builder |
Returns | |
---|---|
Type | Description |
Condition.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public Condition.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
Condition.Builder |
setQueryRegex(String value)
public Condition.Builder setQueryRegex(String value)
Optional. Query regex to match the whole search query. Cannot be set when Condition.query_terms is set. This is currently supporting promotion use case.
string query_regex = 4 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
String The queryRegex to set. |
Returns | |
---|---|
Type | Description |
Condition.Builder |
This builder for chaining. |
setQueryRegexBytes(ByteString value)
public Condition.Builder setQueryRegexBytes(ByteString value)
Optional. Query regex to match the whole search query. Cannot be set when Condition.query_terms is set. This is currently supporting promotion use case.
string query_regex = 4 [(.google.api.field_behavior) = OPTIONAL];
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for queryRegex to set. |
Returns | |
---|---|
Type | Description |
Condition.Builder |
This builder for chaining. |
setQueryTerms(int index, Condition.QueryTerm value)
public Condition.Builder setQueryTerms(int index, Condition.QueryTerm value)
Search only A list of terms to match the query on. Cannot be set when Condition.query_regex is set.
Maximum of 10 query terms.
repeated .google.cloud.discoveryengine.v1.Condition.QueryTerm query_terms = 2;
Parameters | |
---|---|
Name | Description |
index |
int |
value |
Condition.QueryTerm |
Returns | |
---|---|
Type | Description |
Condition.Builder |
setQueryTerms(int index, Condition.QueryTerm.Builder builderForValue)
public Condition.Builder setQueryTerms(int index, Condition.QueryTerm.Builder builderForValue)
Search only A list of terms to match the query on. Cannot be set when Condition.query_regex is set.
Maximum of 10 query terms.
repeated .google.cloud.discoveryengine.v1.Condition.QueryTerm query_terms = 2;
Parameters | |
---|---|
Name | Description |
index |
int |
builderForValue |
Condition.QueryTerm.Builder |
Returns | |
---|---|
Type | Description |
Condition.Builder |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public Condition.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
Returns | |
---|---|
Type | Description |
Condition.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final Condition.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
Condition.Builder |