Class: Google::Apis::ChecksV1alpha::PolicyDataTypeAnnotation
- Inherits:
-
Object
- Object
- Google::Apis::ChecksV1alpha::PolicyDataTypeAnnotation
- 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
-
#data_type ⇒ String
Type of the data mentioned in the policy.
-
#end_offset ⇒ Fixnum
Byte offsets for the end of the data type sentence inside the full text.
-
#score ⇒ Float
Score given by the model representing how confident it was regarding this
text_contentbeing ofdata_type. -
#start_offset ⇒ Fixnum
Byte offsets for the start of the data type sentence inside the full text.
-
#text_content ⇒ String
Actual text content in the section.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PolicyDataTypeAnnotation
constructor
A new instance of PolicyDataTypeAnnotation.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ PolicyDataTypeAnnotation
Returns a new instance of PolicyDataTypeAnnotation.
1410 1411 1412 |
# File 'lib/google/apis/checks_v1alpha/classes.rb', line 1410 def initialize(**args) update!(**args) end |
Instance Attribute Details
#data_type ⇒ String
Type of the data mentioned in the policy.
Corresponds to the JSON property dataType
1385 1386 1387 |
# File 'lib/google/apis/checks_v1alpha/classes.rb', line 1385 def data_type @data_type end |
#end_offset ⇒ Fixnum
Byte offsets for the end of the data type sentence inside the full text.
Corresponds to the JSON property endOffset
1390 1391 1392 |
# File 'lib/google/apis/checks_v1alpha/classes.rb', line 1390 def end_offset @end_offset end |
#score ⇒ Float
Score given by the model representing how confident it was regarding this
text_content being of data_type.
Corresponds to the JSON property score
1396 1397 1398 |
# File 'lib/google/apis/checks_v1alpha/classes.rb', line 1396 def score @score end |
#start_offset ⇒ Fixnum
Byte offsets for the start of the data type sentence inside the full text.
Corresponds to the JSON property startOffset
1401 1402 1403 |
# File 'lib/google/apis/checks_v1alpha/classes.rb', line 1401 def start_offset @start_offset end |
#text_content ⇒ String
Actual text content in the section. This makes it much easier to consume the
information. NOTE: This field might contain HTML and does not guarantee a
SafeHtml security contract go/safehtmltypecontracts#safehtml.
Corresponds to the JSON property textContent
1408 1409 1410 |
# File 'lib/google/apis/checks_v1alpha/classes.rb', line 1408 def text_content @text_content end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1415 1416 1417 1418 1419 1420 1421 |
# File 'lib/google/apis/checks_v1alpha/classes.rb', line 1415 def update!(**args) @data_type = args[:data_type] if args.key?(:data_type) @end_offset = args[:end_offset] if args.key?(:end_offset) @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 |