Class: Google::Apis::ChecksV1alpha::PolicyPurposeOfUseAnnotation
- Inherits:
-
Object
- Object
- Google::Apis::ChecksV1alpha::PolicyPurposeOfUseAnnotation
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/checks_v1alpha/classes.rb,
lib/google/apis/checks_v1alpha/representations.rb,
lib/google/apis/checks_v1alpha/representations.rb
Instance Attribute Summary collapse
-
#end_offset ⇒ Fixnum
Byte offsets for the end of the purpose of use sentence inside the full text.
-
#purpose_of_use ⇒ String
Purpose of use mentioned in the policy.
-
#score ⇒ Float
Score given by the model representing how confident it was regarding this
text_contentbeing ofpurpose_of_use. -
#start_offset ⇒ Fixnum
Byte offsets for the start of the purpose of use sentence inside the full text.
-
#text_content ⇒ String
The bytes of actual text content in the sentence that mentions the purpose of use.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PolicyPurposeOfUseAnnotation
constructor
A new instance of PolicyPurposeOfUseAnnotation.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ PolicyPurposeOfUseAnnotation
Returns a new instance of PolicyPurposeOfUseAnnotation.
1455 1456 1457 |
# File 'lib/google/apis/checks_v1alpha/classes.rb', line 1455 def initialize(**args) update!(**args) end |
Instance Attribute Details
#end_offset ⇒ Fixnum
Byte offsets for the end of the purpose of use sentence inside the full text.
Corresponds to the JSON property endOffset
1431 1432 1433 |
# File 'lib/google/apis/checks_v1alpha/classes.rb', line 1431 def end_offset @end_offset end |
#purpose_of_use ⇒ String
Purpose of use mentioned in the policy.
Corresponds to the JSON property purposeOfUse
1436 1437 1438 |
# File 'lib/google/apis/checks_v1alpha/classes.rb', line 1436 def purpose_of_use @purpose_of_use end |
#score ⇒ Float
Score given by the model representing how confident it was regarding this
text_content being of purpose_of_use.
Corresponds to the JSON property score
1442 1443 1444 |
# File 'lib/google/apis/checks_v1alpha/classes.rb', line 1442 def score @score end |
#start_offset ⇒ Fixnum
Byte offsets for the start of the purpose of use sentence inside the full text.
Corresponds to the JSON property startOffset
1447 1448 1449 |
# File 'lib/google/apis/checks_v1alpha/classes.rb', line 1447 def start_offset @start_offset end |
#text_content ⇒ String
The bytes of actual text content in the sentence that mentions the purpose of
use. This makes it much easier to consume the information.
Corresponds to the JSON property textContent
1453 1454 1455 |
# File 'lib/google/apis/checks_v1alpha/classes.rb', line 1453 def text_content @text_content end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1460 1461 1462 1463 1464 1465 1466 |
# File 'lib/google/apis/checks_v1alpha/classes.rb', line 1460 def update!(**args) @end_offset = args[:end_offset] if args.key?(:end_offset) @purpose_of_use = args[:purpose_of_use] if args.key?(:purpose_of_use) @score = args[:score] if args.key?(:score) @start_offset = args[:start_offset] if args.key?(:start_offset) @text_content = args[:text_content] if args.key?(:text_content) end |