protobuf: Index | Files

package emptypb

import ""


Package Files



var File_google_protobuf_empty_proto protoreflect.FileDescriptor

type Empty Uses

type Empty struct {
    // contains filtered or unexported fields

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);

The JSON representation for `Empty` is empty JSON object `{}`.

func (*Empty) Descriptor Uses

func (*Empty) Descriptor() ([]byte, []int)

Deprecated: Use Empty.ProtoReflect.Descriptor instead.

func (*Empty) ProtoMessage Uses

func (*Empty) ProtoMessage()

func (*Empty) ProtoReflect Uses

func (x *Empty) ProtoReflect() protoreflect.Message

func (*Empty) Reset Uses

func (x *Empty) Reset()

func (*Empty) String Uses

func (x *Empty) String() string

Package emptypb imports 4 packages (graph) and is imported by 243 packages. Updated 2021-01-22. Refresh now. Tools for package owners.