empty - ActiveState ActiveGo 1.8

Package empty

import "github.com/golang/protobuf/ptypes/empty"

Overview ▾

Package empty is a generated protocol buffer package.

It is generated from these files:


It has these top-level messages:


type Empty

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 `{}`.

type Empty struct {

func (*Empty) Descriptor

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

func (*Empty) ProtoMessage

func (*Empty) ProtoMessage()

func (*Empty) Reset

func (m *Empty) Reset()

func (*Empty) String

func (m *Empty) String() string

func (*Empty) XXX_WellKnownType

func (*Empty) XXX_WellKnownType() string