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.



8349
8350
8351
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 8349

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)


8341
8342
8343
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 8341

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)


8347
8348
8349
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 8347

def format_type
  @format_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8354
8355
8356
8357
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 8354

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