Class: Google::Apis::DlpV2::GooglePrivacyDlpV2DocumentLocation

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/dlp_v2/classes.rb,
generated/google/apis/dlp_v2/representations.rb,
generated/google/apis/dlp_v2/representations.rb

Overview

Location of a finding within a document.

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ GooglePrivacyDlpV2DocumentLocation

Returns a new instance of GooglePrivacyDlpV2DocumentLocation.



2158
2159
2160
# File 'generated/google/apis/dlp_v2/classes.rb', line 2158

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#file_offsetFixnum

Offset of the line, from the beginning of the file, where the finding is located. Corresponds to the JSON property fileOffset

Returns:

  • (Fixnum)


2156
2157
2158
# File 'generated/google/apis/dlp_v2/classes.rb', line 2156

def file_offset
  @file_offset
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2163
2164
2165
# File 'generated/google/apis/dlp_v2/classes.rb', line 2163

def update!(**args)
  @file_offset = args[:file_offset] if args.key?(:file_offset)
end