Class: Google::Cloud::DiscoveryEngine::V1beta::Condition

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/discoveryengine/v1beta/control.rb

Overview

Defines circumstances to be checked before allowing a behavior

Defined Under Namespace

Classes: QueryTerm, TimeRange

Instance Attribute Summary collapse

Instance Attribute Details

#active_time_range::Array<::Google::Cloud::DiscoveryEngine::V1beta::Condition::TimeRange>

Returns Range of time(s) specifying when condition is active.

Maximum of 10 time ranges.

Returns:



36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# File 'proto_docs/google/cloud/discoveryengine/v1beta/control.rb', line 36

class Condition
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Matcher for search request query
  # @!attribute [rw] value
  #   @return [::String]
  #     The specific query value to match against
  #
  #     Must be lowercase, must be UTF-8.
  #     Can have at most 3 space separated terms if full_match is true.
  #     Cannot be an empty string.
  #     Maximum length of 5000 characters.
  # @!attribute [rw] full_match
  #   @return [::Boolean]
  #     Whether the search query needs to exactly match the query term.
  class QueryTerm
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Used for time-dependent conditions.
  # @!attribute [rw] start_time
  #   @return [::Google::Protobuf::Timestamp]
  #     Start of time range.
  #
  #     Range is inclusive.
  # @!attribute [rw] end_time
  #   @return [::Google::Protobuf::Timestamp]
  #     End of time range.
  #
  #     Range is inclusive.
  #     Must be in the future.
  class TimeRange
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end

#query_terms::Array<::Google::Cloud::DiscoveryEngine::V1beta::Condition::QueryTerm>

Returns Search only A list of terms to match the query on.

Maximum of 10 query terms.

Returns:



36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
# File 'proto_docs/google/cloud/discoveryengine/v1beta/control.rb', line 36

class Condition
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods

  # Matcher for search request query
  # @!attribute [rw] value
  #   @return [::String]
  #     The specific query value to match against
  #
  #     Must be lowercase, must be UTF-8.
  #     Can have at most 3 space separated terms if full_match is true.
  #     Cannot be an empty string.
  #     Maximum length of 5000 characters.
  # @!attribute [rw] full_match
  #   @return [::Boolean]
  #     Whether the search query needs to exactly match the query term.
  class QueryTerm
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end

  # Used for time-dependent conditions.
  # @!attribute [rw] start_time
  #   @return [::Google::Protobuf::Timestamp]
  #     Start of time range.
  #
  #     Range is inclusive.
  # @!attribute [rw] end_time
  #   @return [::Google::Protobuf::Timestamp]
  #     End of time range.
  #
  #     Range is inclusive.
  #     Must be in the future.
  class TimeRange
    include ::Google::Protobuf::MessageExts
    extend ::Google::Protobuf::MessageExts::ClassMethods
  end
end