Class: Google::Apis::PubsubV1beta1a::Empty

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

Overview

An empty message that you can re-use to avoid defining duplicated empty messages in your project. A typical example is to use it as argument or the return value of a service API. For instance: service Foo rpc Bar (proto2. Empty) returns (proto2.Empty) ;; BEGIN GOOGLE-INTERNAL The difference between this one and net/rpc/empty-message.proto is that 1) The generated message here is in proto2 C++ API. 2) The proto2.Empty has minimum dependencies (no message_set or net/rpc dependencies) END GOOGLE-INTERNAL

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Empty

Returns a new instance of Empty.



61
62
63
# File 'generated/google/apis/pubsub_v1beta1a/classes.rb', line 61

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

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



66
67
# File 'generated/google/apis/pubsub_v1beta1a/classes.rb', line 66

def update!(**args)
end