Class: Google::Apis::CloudsearchV1::FormatMetadata

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

Overview

Annotation metadata for markup formatting

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ FormatMetadata

Returns a new instance of FormatMetadata.



9253
9254
9255
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 9253

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

Instance Attribute Details

#font_colorFixnum

Font color is set if and only if format_type is FONT_COLOR. The components are stored as (alpha << 24) | (red << 16) | (green << 8) | blue. Clients should always set the alpha component to 0xFF. NEXT TAG: 3 Corresponds to the JSON property fontColor

Returns:

  • (Fixnum)


9245
9246
9247
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 9245

def font_color
  @font_color
end

#format_typeString

LINT.ThenChange(//depot/google3/apps/dynamite/v1/web/datakeys/annotated_span. proto) Corresponds to the JSON property formatType

Returns:

  • (String)


9251
9252
9253
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 9251

def format_type
  @format_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



9258
9259
9260
9261
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 9258

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