Reference documentation and code samples for the Discovery Engine V1 API class Google::Cloud::DiscoveryEngine::V1::Condition.
Defines circumstances to be checked before allowing a behavior
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#active_time_range
def active_time_range() -> ::Array<::Google::Cloud::DiscoveryEngine::V1::Condition::TimeRange>
    Returns
    
  - 
        (::Array<::Google::Cloud::DiscoveryEngine::V1::Condition::TimeRange>) — Range of time(s) specifying when condition is active.Maximum of 10 time ranges. 
#active_time_range=
def active_time_range=(value) -> ::Array<::Google::Cloud::DiscoveryEngine::V1::Condition::TimeRange>
    Parameter
    
  - 
        value (::Array<::Google::Cloud::DiscoveryEngine::V1::Condition::TimeRange>) — Range of time(s) specifying when condition is active.Maximum of 10 time ranges. 
    Returns
    
  - 
        (::Array<::Google::Cloud::DiscoveryEngine::V1::Condition::TimeRange>) — Range of time(s) specifying when condition is active.Maximum of 10 time ranges. 
#query_regex
def query_regex() -> ::String
    Returns
    
  - (::String) — 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.
#query_regex=
def query_regex=(value) -> ::String
    Parameter
    
  - value (::String) — 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.
    Returns
    
  - (::String) — 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.
#query_terms
def query_terms() -> ::Array<::Google::Cloud::DiscoveryEngine::V1::Condition::QueryTerm>
    Returns
    
  - 
        (::Array<::Google::Cloud::DiscoveryEngine::V1::Condition::QueryTerm>) — 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. 
#query_terms=
def query_terms=(value) -> ::Array<::Google::Cloud::DiscoveryEngine::V1::Condition::QueryTerm>
    Parameter
    
  - 
        value (::Array<::Google::Cloud::DiscoveryEngine::V1::Condition::QueryTerm>) — 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. 
    Returns
    
- 
        (::Array<::Google::Cloud::DiscoveryEngine::V1::Condition::QueryTerm>) — 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.