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

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
generated/google/apis/toolresults_v1beta3/classes.rb,
generated/google/apis/toolresults_v1beta3/representations.rb,
generated/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.



2453
2454
2455
# File 'generated/google/apis/toolresults_v1beta3/classes.rb', line 2453

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)


2451
2452
2453
# File 'generated/google/apis/toolresults_v1beta3/classes.rb', line 2451

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



2458
2459
2460
# File 'generated/google/apis/toolresults_v1beta3/classes.rb', line 2458

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