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.



9317
9318
9319
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 9317

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)


9309
9310
9311
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 9309

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)


9315
9316
9317
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 9315

def format_type
  @format_type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



9322
9323
9324
9325
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 9322

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