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 ¶
- Variables
- type Complex
- func (m *Complex) AddCommunique(v *Complex_Communique, index int)
- func (m *Complex) ClearCommunique()
- func (m *Complex) ClearCompactKeys()
- func (m *Complex) ClearMulti()
- func (m *Complex) Deserialize(rawBytes []byte) (*Complex, error)
- func (m *Complex) GetCommunique() (x []*Complex_Communique)
- func (m *Complex) GetCompactKeys() (x map[int32]string)
- func (m *Complex) GetMulti() (x *multitest2.Multi1)
- func (m *Complex) HasMulti() bool
- func (m *Complex) New(communique []*Complex_Communique, compactKeys map[int32]string, ...) *Complex
- func (m *Complex) Serialize() []byte
- func (m *Complex) SetCommunique(v []*Complex_Communique)
- func (m *Complex) SetCompactKeys(v map[int32]string)
- func (m *Complex) SetMulti(v *multitest2.Multi1)
- type Complex_Communique
- func (m *Complex_Communique) ClearData()
- func (m *Complex_Communique) ClearDelta()
- func (m *Complex_Communique) ClearHeight()
- func (m *Complex_Communique) ClearMaybe()
- func (m *Complex_Communique) ClearName()
- func (m *Complex_Communique) ClearNumber()
- func (m *Complex_Communique) ClearTempC()
- func (m *Complex_Communique) ClearToday()
- func (m *Complex_Communique) Deserialize(rawBytes []byte) (*Complex_Communique, error)
- func (m *Complex_Communique) GetData() (x []byte)
- func (m *Complex_Communique) GetDelta() (x int32)
- func (m *Complex_Communique) GetHeight() (x float32)
- func (m *Complex_Communique) GetMakeMeCry() (x bool)
- func (m *Complex_Communique) GetMaybe() (x bool)
- func (m *Complex_Communique) GetName() (x string)
- func (m *Complex_Communique) GetNumber() (x int32)
- func (m *Complex_Communique) GetTempC() (x float64)
- func (m *Complex_Communique) GetToday() (x Days)
- func (m *Complex_Communique) GetUnionThing() (x isComplex_Communique_UnionThing)
- func (m *Complex_Communique) HasData() bool
- func (m *Complex_Communique) HasDelta() bool
- func (m *Complex_Communique) HasHeight() bool
- func (m *Complex_Communique) HasMaybe() bool
- func (m *Complex_Communique) HasName() bool
- func (m *Complex_Communique) HasNumber() bool
- func (m *Complex_Communique) HasTempC() bool
- func (m *Complex_Communique) HasToday() bool
- func (m *Complex_Communique) New(makeMeCry bool, union_thing isComplex_Communique_UnionThing) *Complex_Communique
- func (m *Complex_Communique) Serialize() []byte
- func (m *Complex_Communique) SetData(v []byte)
- func (m *Complex_Communique) SetDelta(v int32)
- func (m *Complex_Communique) SetHeight(v float32)
- func (m *Complex_Communique) SetMakeMeCry(v bool)
- func (m *Complex_Communique) SetMaybe(v bool)
- func (m *Complex_Communique) SetName(v string)
- func (m *Complex_Communique) SetNumber(v int32)
- func (m *Complex_Communique) SetTempC(v float64)
- func (m *Complex_Communique) SetToday(v Days)
- func (m *Complex_Communique) SetUnionThing(union_thing isComplex_Communique_UnionThing)
- type Complex_Communique_Data
- type Complex_Communique_Delta
- type Complex_Communique_Delta_
- type Complex_Communique_Height
- type Complex_Communique_Maybe
- type Complex_Communique_Name
- type Complex_Communique_Number
- type Complex_Communique_TempC
- type Complex_Communique_Today
- type Days
- type Simple
- func (m *Simple) Deserialize(rawBytes []byte) (*Simple, error)
- func (m *Simple) GetDay() (x Days)
- func (m *Simple) GetDeadline() (x float32)
- func (m *Simple) GetKey() (x int64)
- func (m *Simple) GetName() (x string)
- func (m *Simple) New(key int64, deadline float32, day Days, name string) *Simple
- func (m *Simple) Serialize() []byte
- func (m *Simple) SetDay(v Days)
- func (m *Simple) SetDeadline(v float32)
- func (m *Simple) SetKey(v int64)
- func (m *Simple) SetName(v string)
- type TestServiceClient
- type TestService_ServerStreamingClient
Constants ¶
This section is empty.
Variables ¶
var Days_name = map[int]string{
0: "MONDAY",
2: "TUESDAY",
}
var Days_value = map[string]int{
"MONDAY": 0,
"TUESDAY": 2,
"LUNDI": 0,
}
Functions ¶
This section is empty.
Types ¶
type Complex ¶
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 ¶
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 ¶
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 ¶
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) SetCommunique ¶
func (m *Complex) SetCommunique(v []*Complex_Communique)
SetCommunique sets the Communique of the Complex.
func (*Complex) SetCompactKeys ¶
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 ¶
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 ¶
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 ¶
func (m *Complex_Communique_Delta) New() *Complex_Communique_Delta
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 Simple ¶
Simple is a simple message.
func (*Simple) Deserialize ¶
Deserialize unmarshals a Simple from a slice of bytes.
func (*Simple) GetDeadline ¶
GetDeadline gets the Deadline of the Simple.
func (*Simple) SetDeadline ¶
SetDeadline sets the Deadline 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.