Class: Google::Apis::PubsubV1::ValidateMessageRequest

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

Overview

Request for the ValidateMessage method.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ValidateMessageRequest

Returns a new instance of ValidateMessageRequest.



2080
2081
2082
# File 'lib/google/apis/pubsub_v1/classes.rb', line 2080

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

Instance Attribute Details

#encodingString

The encoding expected for messages Corresponds to the JSON property encoding

Returns:

  • (String)


2061
2062
2063
# File 'lib/google/apis/pubsub_v1/classes.rb', line 2061

def encoding
  @encoding
end

#messageString

Message to validate against the provided schema_spec. Corresponds to the JSON property message NOTE: Values are automatically base64 encoded/decoded in the client library.

Returns:

  • (String)


2067
2068
2069
# File 'lib/google/apis/pubsub_v1/classes.rb', line 2067

def message
  @message
end

#nameString

Name of the schema against which to validate. Format is projects/project/ schemas/schema`. Corresponds to the JSON propertyname`

Returns:

  • (String)


2073
2074
2075
# File 'lib/google/apis/pubsub_v1/classes.rb', line 2073

def name
  @name
end

#schemaGoogle::Apis::PubsubV1::Schema

A schema resource. Corresponds to the JSON property schema



2078
2079
2080
# File 'lib/google/apis/pubsub_v1/classes.rb', line 2078

def schema
  @schema
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2085
2086
2087
2088
2089
2090
# File 'lib/google/apis/pubsub_v1/classes.rb', line 2085

def update!(**args)
  @encoding = args[:encoding] if args.key?(:encoding)
  @message = args[:message] if args.key?(:message)
  @name = args[:name] if args.key?(:name)
  @schema = args[:schema] if args.key?(:schema)
end