Class: Google::Apis::DataplexV1::GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfoStringFieldInfo

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

Overview

StringFieldInfo defines output info for any string type field.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfoStringFieldInfo

Returns a new instance of GoogleCloudDataplexV1DataProfileResultProfileFieldProfileInfoStringFieldInfo.



1175
1176
1177
# File 'lib/google/apis/dataplex_v1/classes.rb', line 1175

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

Instance Attribute Details

#average_lengthFloat

The average length of a string field in the sampled data. Optional if zero non- null rows. Corresponds to the JSON property averageLength

Returns:

  • (Float)


1161
1162
1163
# File 'lib/google/apis/dataplex_v1/classes.rb', line 1161

def average_length
  @average_length
end

#max_lengthFixnum

The maximum length of a string field in the sampled data. Optional if zero non- null rows. Corresponds to the JSON property maxLength

Returns:

  • (Fixnum)


1167
1168
1169
# File 'lib/google/apis/dataplex_v1/classes.rb', line 1167

def max_length
  @max_length
end

#min_lengthFixnum

The minimum length of the string field in the sampled data. Optional if zero non-null rows. Corresponds to the JSON property minLength

Returns:

  • (Fixnum)


1173
1174
1175
# File 'lib/google/apis/dataplex_v1/classes.rb', line 1173

def min_length
  @min_length
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1180
1181
1182
1183
1184
# File 'lib/google/apis/dataplex_v1/classes.rb', line 1180

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