Class: Google::Apis::ToolresultsV1beta3::SafeHtmlProto

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

Overview

IMPORTANT: It is unsafe to accept this message from an untrusted source, since it's trivial for an attacker to forge serialized messages that don't fulfill the type's safety contract -- for example, it could contain attacker controlled script. A system which receives a SafeHtmlProto implicitly trusts the producer of the SafeHtmlProto. So, it's generally safe to return this message in RPC responses, but generally unsafe to accept it in RPC requests.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SafeHtmlProto

Returns a new instance of SafeHtmlProto.



2493
2494
2495
# File 'lib/google/apis/toolresults_v1beta3/classes.rb', line 2493

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

Instance Attribute Details

#private_do_not_access_or_else_safe_html_wrapped_valueString

IMPORTANT: Never set or read this field, even from tests, it is private. See documentation at the top of .proto file for programming language packages with which to create or read this message. Corresponds to the JSON property privateDoNotAccessOrElseSafeHtmlWrappedValue

Returns:

  • (String)


2491
2492
2493
# File 'lib/google/apis/toolresults_v1beta3/classes.rb', line 2491

def private_do_not_access_or_else_safe_html_wrapped_value
  @private_do_not_access_or_else_safe_html_wrapped_value
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2498
2499
2500
# File 'lib/google/apis/toolresults_v1beta3/classes.rb', line 2498

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