Rename Empty to Void

This commit is contained in:
insanity@loafle.com
2017-05-23 14:20:51 +09:00
parent d01f891c43
commit 2f65275b13
11 changed files with 150 additions and 180 deletions

View File

@@ -8,7 +8,6 @@ It is generated from these files:
initialize.proto
It has these top-level messages:
Empty
AgentInfo
InitResponse
*/
@@ -34,14 +33,6 @@ var _ = math.Inf
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package
type Empty struct {
}
func (m *Empty) Reset() { *m = Empty{} }
func (m *Empty) String() string { return proto.CompactTextString(m) }
func (*Empty) ProtoMessage() {}
func (*Empty) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
type AgentInfo struct {
AgentId string `protobuf:"bytes,1,opt,name=agentId" json:"agentId,omitempty"`
}
@@ -49,7 +40,7 @@ type AgentInfo struct {
func (m *AgentInfo) Reset() { *m = AgentInfo{} }
func (m *AgentInfo) String() string { return proto.CompactTextString(m) }
func (*AgentInfo) ProtoMessage() {}
func (*AgentInfo) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
func (*AgentInfo) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
func (m *AgentInfo) GetAgentId() string {
if m != nil {
@@ -65,7 +56,7 @@ type InitResponse struct {
func (m *InitResponse) Reset() { *m = InitResponse{} }
func (m *InitResponse) String() string { return proto.CompactTextString(m) }
func (*InitResponse) ProtoMessage() {}
func (*InitResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
func (*InitResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
func (m *InitResponse) GetSecretKey() string {
if m != nil {
@@ -75,7 +66,6 @@ func (m *InitResponse) GetSecretKey() string {
}
func init() {
proto.RegisterType((*Empty)(nil), "Empty")
proto.RegisterType((*AgentInfo)(nil), "AgentInfo")
proto.RegisterType((*InitResponse)(nil), "InitResponse")
}
@@ -155,15 +145,14 @@ var _Initializer_serviceDesc = grpc.ServiceDesc{
func init() { proto.RegisterFile("initialize.proto", fileDescriptor0) }
var fileDescriptor0 = []byte{
// 153 bytes of a gzipped FileDescriptorProto
// 144 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0x12, 0xc8, 0xcc, 0xcb, 0x2c,
0xc9, 0x4c, 0xcc, 0xc9, 0xac, 0x4a, 0xd5, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x57, 0x62, 0xe7, 0x62,
0x75, 0xcd, 0x2d, 0x28, 0xa9, 0x54, 0x52, 0xe5, 0xe2, 0x74, 0x4c, 0x4f, 0xcd, 0x2b, 0xf1, 0xcc,
0x4b, 0xcb, 0x17, 0x92, 0xe0, 0x62, 0x4f, 0x04, 0x73, 0x52, 0x24, 0x18, 0x15, 0x18, 0x35, 0x38,
0x83, 0x60, 0x5c, 0x25, 0x1d, 0x2e, 0x1e, 0xcf, 0xbc, 0xcc, 0x92, 0xa0, 0xd4, 0xe2, 0x82, 0xfc,
0xbc, 0xe2, 0x54, 0x21, 0x19, 0x2e, 0xce, 0xe2, 0xd4, 0xe4, 0xa2, 0xd4, 0x12, 0xef, 0xd4, 0x4a,
0xa8, 0x5a, 0x84, 0x80, 0x91, 0x35, 0x17, 0xb7, 0x27, 0xdc, 0xc6, 0x22, 0x21, 0x1d, 0x2e, 0x5e,
0xb0, 0x39, 0xc1, 0x25, 0x89, 0x45, 0x25, 0x99, 0x79, 0xe9, 0x42, 0x5c, 0x7a, 0x70, 0x3b, 0xa5,
0x78, 0xf5, 0x90, 0x0d, 0x56, 0x62, 0x48, 0x62, 0x03, 0xbb, 0xd0, 0x18, 0x10, 0x00, 0x00, 0xff,
0xff, 0x10, 0x56, 0xdb, 0xad, 0xb5, 0x00, 0x00, 0x00,
0xc9, 0x4c, 0xcc, 0xc9, 0xac, 0x4a, 0xd5, 0x2b, 0x28, 0xca, 0x2f, 0xc9, 0x57, 0x52, 0xe5, 0xe2,
0x74, 0x4c, 0x4f, 0xcd, 0x2b, 0xf1, 0xcc, 0x4b, 0xcb, 0x17, 0x92, 0xe0, 0x62, 0x4f, 0x04, 0x73,
0x52, 0x24, 0x18, 0x15, 0x18, 0x35, 0x38, 0x83, 0x60, 0x5c, 0x25, 0x1d, 0x2e, 0x1e, 0xcf, 0xbc,
0xcc, 0x92, 0xa0, 0xd4, 0xe2, 0x82, 0xfc, 0xbc, 0xe2, 0x54, 0x21, 0x19, 0x2e, 0xce, 0xe2, 0xd4,
0xe4, 0xa2, 0xd4, 0x12, 0xef, 0xd4, 0x4a, 0xa8, 0x5a, 0x84, 0x80, 0x91, 0x35, 0x17, 0xb7, 0x27,
0xdc, 0xa2, 0x22, 0x21, 0x1d, 0x2e, 0x5e, 0xb0, 0x39, 0xc1, 0x25, 0x89, 0x45, 0x25, 0x99, 0x79,
0xe9, 0x42, 0x5c, 0x7a, 0x70, 0x3b, 0xa5, 0x78, 0xf5, 0x90, 0x0d, 0x56, 0x62, 0x48, 0x62, 0x03,
0x3b, 0xcc, 0x18, 0x10, 0x00, 0x00, 0xff, 0xff, 0x40, 0x04, 0xea, 0x0a, 0xac, 0x00, 0x00, 0x00,
}

View File

@@ -1,6 +1,5 @@
syntax = "proto3";
message Empty {}
message AgentInfo {
string agentId = 1;