empty

package
v0.7.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 25, 2018 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package empty is a generated protocol buffer package.

It is generated from these files:

empty/empty.proto

It has these top-level messages:

Empty

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Empty

type Empty struct {
}

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

func (m *Empty) Marshal() []byte

Marshal marshals Empty to a slice of bytes.

func (*Empty) MarshalToWriter

func (m *Empty) MarshalToWriter(writer jspb.Writer)

MarshalToWriter marshals Empty to the provided writer.

func (*Empty) Unmarshal

func (m *Empty) Unmarshal(rawBytes []byte) (*Empty, error)

Unmarshal unmarshals a Empty from a slice of bytes.

func (*Empty) UnmarshalFromReader

func (m *Empty) UnmarshalFromReader(reader jspb.Reader) *Empty

UnmarshalFromReader unmarshals a Empty from the provided reader.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL