proto

package
v0.0.0-...-5e171ff Latest Latest
Warning

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

Go to latest
Published: May 4, 2018 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package proto is a generated protocol buffer package.

It is generated from these files:

proto.proto

It has these top-level messages:

CreateThingOneOfRequest
CreateThingOneOfResponse
CreateThingAnyRequest
CreateThingAnyResponse
Thing
Error

Package proto is a generated protocol buffer package.

It is generated from these files:

proto.proto

It has these top-level messages:

CreateThingOneOfRequest
CreateThingOneOfResponse
CreateThingAnyRequest
CreateThingAnyResponse
Thing
Error

Index

Constants

This section is empty.

Variables

View Source
var ErrorCode_name = map[int32]string{
	0: "Reserved",
	1: "One",
	2: "Two",
	3: "Three",
}
View Source
var ErrorCode_value = map[string]int32{
	"Reserved": 0,
	"One":      1,
	"Two":      2,
	"Three":    3,
}

Functions

func RegisterServiceHandler

func RegisterServiceHandler(s server.Server, hdlr ServiceHandler, opts ...server.HandlerOption)

Types

type CreateThingAnyRequest

type CreateThingAnyRequest struct {
	Name string `protobuf:"bytes,1,opt,name=Name" json:"Name,omitempty"`
}

func (*CreateThingAnyRequest) Descriptor

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

func (*CreateThingAnyRequest) GetName

func (m *CreateThingAnyRequest) GetName() string

func (*CreateThingAnyRequest) ProtoMessage

func (*CreateThingAnyRequest) ProtoMessage()

func (*CreateThingAnyRequest) Reset

func (m *CreateThingAnyRequest) Reset()

func (*CreateThingAnyRequest) String

func (m *CreateThingAnyRequest) String() string

type CreateThingAnyResponse

type CreateThingAnyResponse struct {
	Result *google_protobuf.Any `protobuf:"bytes,2,opt,name=Result" json:"Result,omitempty"`
}

func (*CreateThingAnyResponse) Descriptor

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

func (*CreateThingAnyResponse) GetResult

func (m *CreateThingAnyResponse) GetResult() *google_protobuf.Any

func (*CreateThingAnyResponse) ProtoMessage

func (*CreateThingAnyResponse) ProtoMessage()

func (*CreateThingAnyResponse) Reset

func (m *CreateThingAnyResponse) Reset()

func (*CreateThingAnyResponse) String

func (m *CreateThingAnyResponse) String() string

type CreateThingOneOfRequest

type CreateThingOneOfRequest struct {
	Name string `protobuf:"bytes,1,opt,name=Name" json:"Name,omitempty"`
}

func (*CreateThingOneOfRequest) Descriptor

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

func (*CreateThingOneOfRequest) GetName

func (m *CreateThingOneOfRequest) GetName() string

func (*CreateThingOneOfRequest) ProtoMessage

func (*CreateThingOneOfRequest) ProtoMessage()

func (*CreateThingOneOfRequest) Reset

func (m *CreateThingOneOfRequest) Reset()

func (*CreateThingOneOfRequest) String

func (m *CreateThingOneOfRequest) String() string

type CreateThingOneOfResponse

type CreateThingOneOfResponse struct {
	// Types that are valid to be assigned to Result:
	//	*CreateThingOneOfResponse_Thing
	//	*CreateThingOneOfResponse_Error
	Result isCreateThingOneOfResponse_Result `protobuf_oneof:"Result"`
}

func (*CreateThingOneOfResponse) Descriptor

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

func (*CreateThingOneOfResponse) GetError

func (m *CreateThingOneOfResponse) GetError() *Error

func (*CreateThingOneOfResponse) GetResult

func (m *CreateThingOneOfResponse) GetResult() isCreateThingOneOfResponse_Result

func (*CreateThingOneOfResponse) GetThing

func (m *CreateThingOneOfResponse) GetThing() *Thing

func (*CreateThingOneOfResponse) ProtoMessage

func (*CreateThingOneOfResponse) ProtoMessage()

func (*CreateThingOneOfResponse) Reset

func (m *CreateThingOneOfResponse) Reset()

func (*CreateThingOneOfResponse) String

func (m *CreateThingOneOfResponse) String() string

func (*CreateThingOneOfResponse) XXX_OneofFuncs

func (*CreateThingOneOfResponse) XXX_OneofFuncs() (func(msg proto1.Message, b *proto1.Buffer) error, func(msg proto1.Message, tag, wire int, b *proto1.Buffer) (bool, error), func(msg proto1.Message) (n int), []interface{})

XXX_OneofFuncs is for the internal use of the proto package.

type CreateThingOneOfResponse_Error

type CreateThingOneOfResponse_Error struct {
	Error *Error `protobuf:"bytes,2,opt,name=Error,oneof"`
}

type CreateThingOneOfResponse_Thing

type CreateThingOneOfResponse_Thing struct {
	Thing *Thing `protobuf:"bytes,1,opt,name=Thing,oneof"`
}

type Error

type Error struct {
	Code    ErrorCode         `protobuf:"varint,1,opt,name=Code,enum=ErrorCode" json:"Code,omitempty"`
	Message string            `protobuf:"bytes,2,opt,name=Message" json:"Message,omitempty"`
	Service string            `protobuf:"bytes,3,opt,name=Service" json:"Service,omitempty"`
	Details map[string]string `` /* 134-byte string literal not displayed */
}

func (*Error) Descriptor

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

func (*Error) GetCode

func (m *Error) GetCode() ErrorCode

func (*Error) GetDetails

func (m *Error) GetDetails() map[string]string

func (*Error) GetMessage

func (m *Error) GetMessage() string

func (*Error) GetService

func (m *Error) GetService() string

func (*Error) ProtoMessage

func (*Error) ProtoMessage()

func (*Error) Reset

func (m *Error) Reset()

func (*Error) String

func (m *Error) String() string

type ErrorCode

type ErrorCode int32
const (
	ErrorCode_Reserved ErrorCode = 0
	ErrorCode_One      ErrorCode = 1
	ErrorCode_Two      ErrorCode = 2
	ErrorCode_Three    ErrorCode = 3
)

func (ErrorCode) EnumDescriptor

func (ErrorCode) EnumDescriptor() ([]byte, []int)

func (ErrorCode) String

func (x ErrorCode) String() string

type Service

type Service interface {
	CreateThingOneOf(ctx context.Context, in *CreateThingOneOfRequest, opts ...client.CallOption) (*CreateThingOneOfResponse, error)
	CreateThingAny(ctx context.Context, in *CreateThingAnyRequest, opts ...client.CallOption) (*CreateThingAnyResponse, error)
}

func NewService

func NewService(name string, c client.Client) Service

type Thing

type Thing struct {
	ID   string `protobuf:"bytes,1,opt,name=ID" json:"ID,omitempty"`
	Name string `protobuf:"bytes,2,opt,name=Name" json:"Name,omitempty"`
}

func (*Thing) Descriptor

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

func (*Thing) GetID

func (m *Thing) GetID() string

func (*Thing) GetName

func (m *Thing) GetName() string

func (*Thing) ProtoMessage

func (*Thing) ProtoMessage()

func (*Thing) Reset

func (m *Thing) Reset()

func (*Thing) String

func (m *Thing) String() string

Jump to

Keyboard shortcuts

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