my_test

package
v0.2.1-alpha Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2017 License: MIT Imports: 5 Imported by: 2

Documentation

Overview

Package my_test is a generated protocol buffer package.

It is generated from these files:

grpc_test/test.proto

It has these top-level messages:

Simple
Complex

Index

Constants

This section is empty.

Variables

View Source
var Days_name = map[int]string{
	0: "MONDAY",
	2: "TUESDAY",
}
View Source
var Days_value = map[string]int{
	"MONDAY":  0,
	"TUESDAY": 2,
	"LUNDI":   0,
}

Functions

This section is empty.

Types

type Complex

type Complex struct {
	*js.Object
}

Complex is a complicated message

func (*Complex) AddCommunique

func (m *Complex) AddCommunique(v *Complex_Communique, index int)

AddCommunique adds an entry to the Communique slice of the Complex at the specified index. If index is negative, inserts the element at the index counted from the end of the slice, with origin 1.

func (*Complex) ClearCommunique

func (m *Complex) ClearCommunique()

ClearCommunique clears the Communique of the Complex.

func (*Complex) ClearCompactKeys

func (m *Complex) ClearCompactKeys()

ClearCompactKeys clears the CompactKeys of the Complex.

func (*Complex) ClearMulti

func (m *Complex) ClearMulti()

ClearMulti clears the Multi of the Complex. Multi is imported

func (*Complex) Deserialize

func (m *Complex) Deserialize(rawBytes []byte) (*Complex, error)

Deserialize unmarshals a Complex from a slice of bytes.

func (*Complex) GetCommunique

func (m *Complex) GetCommunique() (x []*Complex_Communique)

GetCommunique gets the Communique of the Complex. Warning: mutating the returned slice will not be reflected in the message. Use the setter to make changes to the slice in the message.

func (*Complex) GetCompactKeys

func (m *Complex) GetCompactKeys() (x map[int32]string)

GetCompactKeys gets the CompactKeys of the Complex.

func (*Complex) GetMulti

func (m *Complex) GetMulti() (x *multitest2.Multi1)

GetMulti gets the Multi of the Complex. Multi is imported

func (*Complex) HasMulti

func (m *Complex) HasMulti() bool

HasMulti indicates whether the Multi of the Complex is set. Multi is imported

func (*Complex) New

func (m *Complex) New(communique []*Complex_Communique, compactKeys map[int32]string, multi *multitest2.Multi1) *Complex

New creates a new Complex. Multi is imported

func (*Complex) Serialize

func (m *Complex) Serialize() []byte

Serialize marshals Complex to a slice of bytes.

func (*Complex) SetCommunique

func (m *Complex) SetCommunique(v []*Complex_Communique)

SetCommunique sets the Communique of the Complex.

func (*Complex) SetCompactKeys

func (m *Complex) SetCompactKeys(v map[int32]string)

SetCompactKeys sets the CompactKeys of the Complex.

func (*Complex) SetMulti

func (m *Complex) SetMulti(v *multitest2.Multi1)

SetMulti sets the Multi of the Complex. Multi is imported

type Complex_Communique

type Complex_Communique struct {
	*js.Object
}

func (*Complex_Communique) ClearData

func (m *Complex_Communique) ClearData()

ClearData clears the Data of the Complex_Communique.

func (*Complex_Communique) ClearDelta

func (m *Complex_Communique) ClearDelta()

ClearDelta clears the Delta of the Complex_Communique.

func (*Complex_Communique) ClearHeight

func (m *Complex_Communique) ClearHeight()

ClearHeight clears the Height of the Complex_Communique.

func (*Complex_Communique) ClearMaybe

func (m *Complex_Communique) ClearMaybe()

ClearMaybe clears the Maybe of the Complex_Communique.

func (*Complex_Communique) ClearName

func (m *Complex_Communique) ClearName()

ClearName clears the Name of the Complex_Communique.

func (*Complex_Communique) ClearNumber

func (m *Complex_Communique) ClearNumber()

ClearNumber clears the Number of the Complex_Communique.

func (*Complex_Communique) ClearTempC

func (m *Complex_Communique) ClearTempC()

ClearTempC clears the TempC of the Complex_Communique.

func (*Complex_Communique) ClearToday

func (m *Complex_Communique) ClearToday()

ClearToday clears the Today of the Complex_Communique.

func (*Complex_Communique) Deserialize

func (m *Complex_Communique) Deserialize(rawBytes []byte) (*Complex_Communique, error)

Deserialize unmarshals a Complex_Communique from a slice of bytes.

func (*Complex_Communique) GetData

func (m *Complex_Communique) GetData() (x []byte)

GetData gets the Data of the Complex_Communique.

func (*Complex_Communique) GetDelta

func (m *Complex_Communique) GetDelta() (x int32)

GetDelta gets the Delta of the Complex_Communique.

func (*Complex_Communique) GetHeight

func (m *Complex_Communique) GetHeight() (x float32)

GetHeight gets the Height of the Complex_Communique.

func (*Complex_Communique) GetMakeMeCry

func (m *Complex_Communique) GetMakeMeCry() (x bool)

GetMakeMeCry gets the MakeMeCry of the Complex_Communique.

func (*Complex_Communique) GetMaybe

func (m *Complex_Communique) GetMaybe() (x bool)

GetMaybe gets the Maybe of the Complex_Communique.

func (*Complex_Communique) GetName

func (m *Complex_Communique) GetName() (x string)

GetName gets the Name of the Complex_Communique.

func (*Complex_Communique) GetNumber

func (m *Complex_Communique) GetNumber() (x int32)

GetNumber gets the Number of the Complex_Communique.

func (*Complex_Communique) GetTempC

func (m *Complex_Communique) GetTempC() (x float64)

GetTempC gets the TempC of the Complex_Communique.

func (*Complex_Communique) GetToday

func (m *Complex_Communique) GetToday() (x Days)

GetToday gets the Today of the Complex_Communique.

func (*Complex_Communique) GetUnionThing

func (m *Complex_Communique) GetUnionThing() (x isComplex_Communique_UnionThing)

GetUnionThing gets the UnionThing of the Complex_Communique.

func (*Complex_Communique) HasData

func (m *Complex_Communique) HasData() bool

HasData indicates whether the Data of the Complex_Communique is set.

func (*Complex_Communique) HasDelta

func (m *Complex_Communique) HasDelta() bool

HasDelta indicates whether the Delta of the Complex_Communique is set.

func (*Complex_Communique) HasHeight

func (m *Complex_Communique) HasHeight() bool

HasHeight indicates whether the Height of the Complex_Communique is set.

func (*Complex_Communique) HasMaybe

func (m *Complex_Communique) HasMaybe() bool

HasMaybe indicates whether the Maybe of the Complex_Communique is set.

func (*Complex_Communique) HasName

func (m *Complex_Communique) HasName() bool

HasName indicates whether the Name of the Complex_Communique is set.

func (*Complex_Communique) HasNumber

func (m *Complex_Communique) HasNumber() bool

HasNumber indicates whether the Number of the Complex_Communique is set.

func (*Complex_Communique) HasTempC

func (m *Complex_Communique) HasTempC() bool

HasTempC indicates whether the TempC of the Complex_Communique is set.

func (*Complex_Communique) HasToday

func (m *Complex_Communique) HasToday() bool

HasToday indicates whether the Today of the Complex_Communique is set.

func (*Complex_Communique) New

func (m *Complex_Communique) New(makeMeCry bool, union_thing isComplex_Communique_UnionThing) *Complex_Communique

New creates a new Complex_Communique.

func (*Complex_Communique) Serialize

func (m *Complex_Communique) Serialize() []byte

Serialize marshals Complex_Communique to a slice of bytes.

func (*Complex_Communique) SetData

func (m *Complex_Communique) SetData(v []byte)

SetData sets the Data of the Complex_Communique.

func (*Complex_Communique) SetDelta

func (m *Complex_Communique) SetDelta(v int32)

SetDelta sets the Delta of the Complex_Communique.

func (*Complex_Communique) SetHeight

func (m *Complex_Communique) SetHeight(v float32)

SetHeight sets the Height of the Complex_Communique.

func (*Complex_Communique) SetMakeMeCry

func (m *Complex_Communique) SetMakeMeCry(v bool)

SetMakeMeCry sets the MakeMeCry of the Complex_Communique.

func (*Complex_Communique) SetMaybe

func (m *Complex_Communique) SetMaybe(v bool)

SetMaybe sets the Maybe of the Complex_Communique.

func (*Complex_Communique) SetName

func (m *Complex_Communique) SetName(v string)

SetName sets the Name of the Complex_Communique.

func (*Complex_Communique) SetNumber

func (m *Complex_Communique) SetNumber(v int32)

SetNumber sets the Number of the Complex_Communique.

func (*Complex_Communique) SetTempC

func (m *Complex_Communique) SetTempC(v float64)

SetTempC sets the TempC of the Complex_Communique.

func (*Complex_Communique) SetToday

func (m *Complex_Communique) SetToday(v Days)

SetToday sets the Today of the Complex_Communique.

func (*Complex_Communique) SetUnionThing

func (m *Complex_Communique) SetUnionThing(union_thing isComplex_Communique_UnionThing)

SetUnionThing sets the UnionThing of theComplex_Communique. If the input is nil, SetUnionThing does nothing.

type Complex_Communique_Data

type Complex_Communique_Data struct {
	Data []byte
}

type Complex_Communique_Delta

type Complex_Communique_Delta struct {
	*js.Object
}

func (*Complex_Communique_Delta) Deserialize

func (m *Complex_Communique_Delta) Deserialize(rawBytes []byte) (*Complex_Communique_Delta, error)

Deserialize unmarshals a Complex_Communique_Delta from a slice of bytes.

func (*Complex_Communique_Delta) New

New creates a new Complex_Communique_Delta.

func (*Complex_Communique_Delta) Serialize

func (m *Complex_Communique_Delta) Serialize() []byte

Serialize marshals Complex_Communique_Delta to a slice of bytes.

type Complex_Communique_Delta_

type Complex_Communique_Delta_ struct {
	Delta int32
}

type Complex_Communique_Height

type Complex_Communique_Height struct {
	Height float32
}

type Complex_Communique_Maybe

type Complex_Communique_Maybe struct {
	Maybe bool
}

type Complex_Communique_Name

type Complex_Communique_Name struct {
	Name string
}

type Complex_Communique_Number

type Complex_Communique_Number struct {
	Number int32
}

type Complex_Communique_TempC

type Complex_Communique_TempC struct {
	TempC float64
}

type Complex_Communique_Today

type Complex_Communique_Today struct {
	Today Days
}

type Days

type Days int

This enum represents days of the week.

const (
	Days_MONDAY  Days = 0
	Days_TUESDAY Days = 2
	Days_LUNDI   Days = 0
)

func (Days) String

func (x Days) String() string

type Simple

type Simple struct {
	*js.Object
}

Simple is a simple message.

func (*Simple) Deserialize

func (m *Simple) Deserialize(rawBytes []byte) (*Simple, error)

Deserialize unmarshals a Simple from a slice of bytes.

func (*Simple) GetDay

func (m *Simple) GetDay() (x Days)

GetDay gets the Day of the Simple.

func (*Simple) GetDeadline

func (m *Simple) GetDeadline() (x float32)

GetDeadline gets the Deadline of the Simple.

func (*Simple) GetKey

func (m *Simple) GetKey() (x int64)

GetKey gets the Key of the Simple.

func (*Simple) GetName

func (m *Simple) GetName() (x string)

GetName gets the Name of the Simple.

func (*Simple) New

func (m *Simple) New(key int64, deadline float32, day Days, name string) *Simple

New creates a new Simple.

func (*Simple) Serialize

func (m *Simple) Serialize() []byte

Serialize marshals Simple to a slice of bytes.

func (*Simple) SetDay

func (m *Simple) SetDay(v Days)

SetDay sets the Day of the Simple.

func (*Simple) SetDeadline

func (m *Simple) SetDeadline(v float32)

SetDeadline sets the Deadline of the Simple.

func (*Simple) SetKey

func (m *Simple) SetKey(v int64)

SetKey sets the Key of the Simple.

func (*Simple) SetName

func (m *Simple) SetName(v string)

SetName sets the Name of the Simple.

type TestServiceClient

type TestServiceClient interface {
	Unary(ctx context.Context, in *Simple, opts ...grpcweb.CallOption) (*Complex, error)
	ServerStreaming(ctx context.Context, in *Simple, opts ...grpcweb.CallOption) (TestService_ServerStreamingClient, error)
}

This is a TestService

func NewTestServiceClient

func NewTestServiceClient(hostname string, opts ...grpcweb.DialOption) TestServiceClient

NewTestServiceClient creates a new gRPC-Web client.

type TestService_ServerStreamingClient

type TestService_ServerStreamingClient interface {
	Recv() (*Complex, error)
}

Jump to

Keyboard shortcuts

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