Class: Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1AutoLabelingRule
- Inherits:
-
Object
- Object
- Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1AutoLabelingRule
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/contactcenterinsights_v1/classes.rb,
lib/google/apis/contactcenterinsights_v1/representations.rb,
lib/google/apis/contactcenterinsights_v1/representations.rb
Overview
Rule for auto-labeling conversations.
Instance Attribute Summary collapse
-
#active ⇒ Boolean
(also: #active?)
Whether the rule is active.
-
#conditions ⇒ Array<Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1AutoLabelingRuleLabelingCondition>
Conditions to apply for auto-labeling the label_key.
-
#create_time ⇒ String
Output only.
-
#description ⇒ String
The description of the rule.
-
#display_name ⇒ String
The user-provided display name of the rule.
-
#label_key ⇒ String
The label key.
-
#label_key_type ⇒ String
The type of the label key.
-
#name ⇒ String
Identifier.
-
#update_time ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudContactcenterinsightsV1AutoLabelingRule
constructor
A new instance of GoogleCloudContactcenterinsightsV1AutoLabelingRule.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudContactcenterinsightsV1AutoLabelingRule
Returns a new instance of GoogleCloudContactcenterinsightsV1AutoLabelingRule.
1174 1175 1176 |
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 1174 def initialize(**args) update!(**args) end |
Instance Attribute Details
#active ⇒ Boolean Also known as: active?
Whether the rule is active.
Corresponds to the JSON property active
1127 1128 1129 |
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 1127 def active @active end |
#conditions ⇒ Array<Google::Apis::ContactcenterinsightsV1::GoogleCloudContactcenterinsightsV1AutoLabelingRuleLabelingCondition>
Conditions to apply for auto-labeling the label_key. Representing sequential
block of if .. else if .. else statements. The value of the first matching
condition will be used.
Corresponds to the JSON property conditions
1135 1136 1137 |
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 1135 def conditions @conditions end |
#create_time ⇒ String
Output only. The time at which this rule was created.
Corresponds to the JSON property createTime
1140 1141 1142 |
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 1140 def create_time @create_time end |
#description ⇒ String
The description of the rule.
Corresponds to the JSON property description
1145 1146 1147 |
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 1145 def description @description end |
#display_name ⇒ String
The user-provided display name of the rule.
Corresponds to the JSON property displayName
1150 1151 1152 |
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 1150 def display_name @display_name end |
#label_key ⇒ String
The label key. This is also the auto_labeling_rule in the resource name.
Only settable if label_key_type is LABEL_KEY_TYPE_CUSTOM.
Corresponds to the JSON property labelKey
1156 1157 1158 |
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 1156 def label_key @label_key end |
#label_key_type ⇒ String
The type of the label key.
Corresponds to the JSON property labelKeyType
1161 1162 1163 |
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 1161 def label_key_type @label_key_type end |
#name ⇒ String
Identifier. The resource name of the auto-labeling rule. Format: projects/
project/locations/location/autoLabelingRules/auto_labeling_rule
Corresponds to the JSON property name
1167 1168 1169 |
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 1167 def name @name end |
#update_time ⇒ String
Output only. The most recent time at which the rule was updated.
Corresponds to the JSON property updateTime
1172 1173 1174 |
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 1172 def update_time @update_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 |
# File 'lib/google/apis/contactcenterinsights_v1/classes.rb', line 1179 def update!(**args) @active = args[:active] if args.key?(:active) @conditions = args[:conditions] if args.key?(:conditions) @create_time = args[:create_time] if args.key?(:create_time) @description = args[:description] if args.key?(:description) @display_name = args[:display_name] if args.key?(:display_name) @label_key = args[:label_key] if args.key?(:label_key) @label_key_type = args[:label_key_type] if args.key?(:label_key_type) @name = args[:name] if args.key?(:name) @update_time = args[:update_time] if args.key?(:update_time) end |