Deprecated: Use the "google.golang.org/protobuf" module instead.
package empty
import "github.com/golang/protobuf/ptypes/empty"
Index ¶
- type Empty
- func (*Empty) Descriptor() ([]byte, []int)
- func (*Empty) ProtoMessage()
- func (m *Empty) Reset()
- func (m *Empty) String() string
- func (m *Empty) XXX_DiscardUnknown()
- func (m *Empty) XXX_Marshal(b []byte, deterministic bool) ([]byte, error)
- func (m *Empty) XXX_Merge(src proto.Message)
- func (m *Empty) XXX_Size() int
- func (m *Empty) XXX_Unmarshal(b []byte) error
- func (*Empty) XXX_WellKnownType() string
Types ¶
type Empty ¶
type Empty struct { XXX_NoUnkeyedLiteral struct{} `json:"-"` XXX_unrecognized []byte `json:"-"` XXX_sizecache int32 `json:"-"` }
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 ¶
func (*Empty) ProtoMessage ¶
func (*Empty) ProtoMessage()
func (*Empty) Reset ¶
func (m *Empty) Reset()
func (*Empty) String ¶
func (*Empty) XXX_DiscardUnknown ¶
func (m *Empty) XXX_DiscardUnknown()
func (*Empty) XXX_Marshal ¶
func (*Empty) XXX_Merge ¶
func (*Empty) XXX_Size ¶
func (*Empty) XXX_Unmarshal ¶
func (*Empty) XXX_WellKnownType ¶
Source Files ¶
- Version
- v1.3.1
- Published
- Feb 28, 2019
- Platform
- darwin/amd64
- Imports
- 3 packages
- Last checked
- 2 hours ago –
Tools for package owners.