proto library Client - Class GPBEmpty (v5.36.2)

Reference documentation and code samples for the proto library Client class GPBEmpty.

A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }

Generated from protobuf message google.protobuf.Empty

Namespace

Google \ Protobuf

Methods

__construct

Constructor.

Parameter
Name Description
data array

Optional. Data for populating the Message object.