Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(437)

Unified Diff: server/discovery/internal/testservices/helloworld.pb.go

Issue 1571393006: server/discovery: add discovery service (Closed) Base URL: https://chromium.googlesource.com/external/github.com/luci/luci-go@prpc-server
Patch Set: rebased Created 4 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: server/discovery/internal/testservices/helloworld.pb.go
diff --git a/server/prpc/helloworld_test.pb_test.go b/server/discovery/internal/testservices/helloworld.pb.go
similarity index 50%
copy from server/prpc/helloworld_test.pb_test.go
copy to server/discovery/internal/testservices/helloworld.pb.go
index e471bb8bc7158ffb2952ea8b8f0aa3cf03b83f7f..46a520a24b01d342747b9dc83806dd28ed722560 100644
--- a/server/prpc/helloworld_test.pb_test.go
+++ b/server/discovery/internal/testservices/helloworld.pb.go
@@ -1,12 +1,12 @@
// Code generated by protoc-gen-go.
-// source: helloworld_test.proto
+// source: helloworld.proto
// DO NOT EDIT!
/*
-Package prpc is a generated protocol buffer package.
+Package testservices is a generated protocol buffer package.
It is generated from these files:
- helloworld_test.proto
+ helloworld.proto
It has these top-level messages:
HelloRequest
@@ -14,7 +14,9 @@ It has these top-level messages:
MultiplyRequest
MultiplyResponse
*/
-package prpc
+package testservices
+
+import prpc "github.com/luci/luci-go/server/prpc"
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
@@ -35,45 +37,45 @@ type HelloRequest struct {
Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
}
-func (m *HelloRequest) Reset() { *m = HelloRequest{} }
-func (m *HelloRequest) String() string { return proto.CompactTextString(m) }
-func (*HelloRequest) ProtoMessage() {}
-func (*HelloRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
+func (m *HelloRequest) Reset() { *m = HelloRequest{} }
+func (m *HelloRequest) String() string { return proto.CompactTextString(m) }
+func (*HelloRequest) ProtoMessage() {}
+func (*HelloRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
// The response message containing the greetings
type HelloReply struct {
Message string `protobuf:"bytes,1,opt,name=message" json:"message,omitempty"`
}
-func (m *HelloReply) Reset() { *m = HelloReply{} }
-func (m *HelloReply) String() string { return proto.CompactTextString(m) }
-func (*HelloReply) ProtoMessage() {}
-func (*HelloReply) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
+func (m *HelloReply) Reset() { *m = HelloReply{} }
+func (m *HelloReply) String() string { return proto.CompactTextString(m) }
+func (*HelloReply) ProtoMessage() {}
+func (*HelloReply) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
type MultiplyRequest struct {
- X int32 `protobuf:"varint,1,opt,name=x" json:"x,omitempty"`
- Y int32 `protobuf:"varint,2,opt,name=y" json:"y,omitempty"`
+ X int32 `protobuf:"varint,1,opt,name=x" json:"x,omitempty"`
+ Y int32 `protobuf:"varint,2,opt,name=y" json:"y,omitempty"`
}
-func (m *MultiplyRequest) Reset() { *m = MultiplyRequest{} }
-func (m *MultiplyRequest) String() string { return proto.CompactTextString(m) }
-func (*MultiplyRequest) ProtoMessage() {}
-func (*MultiplyRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
+func (m *MultiplyRequest) Reset() { *m = MultiplyRequest{} }
+func (m *MultiplyRequest) String() string { return proto.CompactTextString(m) }
+func (*MultiplyRequest) ProtoMessage() {}
+func (*MultiplyRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
type MultiplyResponse struct {
Z int32 `protobuf:"varint,1,opt,name=z" json:"z,omitempty"`
}
-func (m *MultiplyResponse) Reset() { *m = MultiplyResponse{} }
-func (m *MultiplyResponse) String() string { return proto.CompactTextString(m) }
-func (*MultiplyResponse) ProtoMessage() {}
-func (*MultiplyResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} }
+func (m *MultiplyResponse) Reset() { *m = MultiplyResponse{} }
+func (m *MultiplyResponse) String() string { return proto.CompactTextString(m) }
+func (*MultiplyResponse) ProtoMessage() {}
+func (*MultiplyResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} }
func init() {
- proto.RegisterType((*HelloRequest)(nil), "prpc.HelloRequest")
- proto.RegisterType((*HelloReply)(nil), "prpc.HelloReply")
- proto.RegisterType((*MultiplyRequest)(nil), "prpc.MultiplyRequest")
- proto.RegisterType((*MultiplyResponse)(nil), "prpc.MultiplyResponse")
+ proto.RegisterType((*HelloRequest)(nil), "testservices.HelloRequest")
+ proto.RegisterType((*HelloReply)(nil), "testservices.HelloReply")
+ proto.RegisterType((*MultiplyRequest)(nil), "testservices.MultiplyRequest")
+ proto.RegisterType((*MultiplyResponse)(nil), "testservices.MultiplyResponse")
}
// Reference imports to suppress errors if they are not otherwise used.
@@ -97,7 +99,7 @@ func NewGreeterClient(cc *grpc.ClientConn) GreeterClient {
func (c *greeterClient) SayHello(ctx context.Context, in *HelloRequest, opts ...grpc.CallOption) (*HelloReply, error) {
out := new(HelloReply)
- err := grpc.Invoke(ctx, "/prpc.Greeter/SayHello", in, out, c.cc, opts...)
+ err := grpc.Invoke(ctx, "/testservices.Greeter/SayHello", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
@@ -111,7 +113,7 @@ type GreeterServer interface {
SayHello(context.Context, *HelloRequest) (*HelloReply, error)
}
-func RegisterGreeterServer(s Registrar, srv GreeterServer) {
+func RegisterGreeterServer(s prpc.Registrar, srv GreeterServer) {
s.RegisterService(&_Greeter_serviceDesc, srv)
}
@@ -128,15 +130,15 @@ func _Greeter_SayHello_Handler(srv interface{}, ctx context.Context, dec func(in
}
var _Greeter_serviceDesc = grpc.ServiceDesc{
- ServiceName: "prpc.Greeter",
- HandlerType: (*GreeterServer)(nil),
+ ServiceName: "testservices.Greeter",
+ HandlerType: (*GreeterServer)(nil),
Methods: []grpc.MethodDesc{
{
- MethodName: "SayHello",
- Handler: _Greeter_SayHello_Handler,
+ MethodName: "SayHello",
+ Handler: _Greeter_SayHello_Handler,
},
},
- Streams: []grpc.StreamDesc{},
+ Streams: []grpc.StreamDesc{},
}
// Client API for Calc service
@@ -155,7 +157,7 @@ func NewCalcClient(cc *grpc.ClientConn) CalcClient {
func (c *calcClient) Multiply(ctx context.Context, in *MultiplyRequest, opts ...grpc.CallOption) (*MultiplyResponse, error) {
out := new(MultiplyResponse)
- err := grpc.Invoke(ctx, "/prpc.Calc/Multiply", in, out, c.cc, opts...)
+ err := grpc.Invoke(ctx, "/testservices.Calc/Multiply", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
@@ -168,7 +170,7 @@ type CalcServer interface {
Multiply(context.Context, *MultiplyRequest) (*MultiplyResponse, error)
}
-func RegisterCalcServer(s Registrar, srv CalcServer) {
+func RegisterCalcServer(s prpc.Registrar, srv CalcServer) {
s.RegisterService(&_Calc_serviceDesc, srv)
}
@@ -185,31 +187,31 @@ func _Calc_Multiply_Handler(srv interface{}, ctx context.Context, dec func(inter
}
var _Calc_serviceDesc = grpc.ServiceDesc{
- ServiceName: "prpc.Calc",
- HandlerType: (*CalcServer)(nil),
+ ServiceName: "testservices.Calc",
+ HandlerType: (*CalcServer)(nil),
Methods: []grpc.MethodDesc{
{
- MethodName: "Multiply",
- Handler: _Calc_Multiply_Handler,
+ MethodName: "Multiply",
+ Handler: _Calc_Multiply_Handler,
},
},
- Streams: []grpc.StreamDesc{},
+ Streams: []grpc.StreamDesc{},
}
var fileDescriptor0 = []byte{
- // 213 bytes of a gzipped FileDescriptorProto
- 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xe2, 0x12, 0xcd, 0x48, 0xcd, 0xc9,
- 0xc9, 0x2f, 0xcf, 0x2f, 0xca, 0x49, 0x89, 0x2f, 0x49, 0x2d, 0x2e, 0xd1, 0x2b, 0x28, 0xca, 0x2f,
- 0xc9, 0x17, 0x62, 0x29, 0x28, 0x2a, 0x48, 0x56, 0x92, 0xe1, 0xe2, 0xf1, 0x00, 0x49, 0x07, 0xa5,
- 0x16, 0x96, 0x02, 0xe5, 0x84, 0x78, 0xb8, 0x58, 0xf2, 0x12, 0x73, 0x53, 0x25, 0x18, 0x15, 0x18,
- 0x35, 0x38, 0x95, 0x64, 0xb9, 0xb8, 0xa0, 0xb2, 0x05, 0x39, 0x95, 0x42, 0xfc, 0x5c, 0xec, 0xb9,
- 0xa9, 0xc5, 0xc5, 0x89, 0xe9, 0x30, 0x69, 0x75, 0x2e, 0x7e, 0xdf, 0xd2, 0x9c, 0x92, 0x4c, 0xa0,
- 0x24, 0x4c, 0x3f, 0x27, 0x17, 0x63, 0x05, 0x58, 0x96, 0x15, 0xc4, 0xac, 0x94, 0x60, 0x02, 0x31,
- 0x81, 0xe6, 0x08, 0x20, 0x14, 0x16, 0x17, 0xe4, 0xe7, 0x15, 0xa7, 0x82, 0xa4, 0xab, 0x20, 0x2a,
- 0x8d, 0x6c, 0xb9, 0xd8, 0xdd, 0x8b, 0x52, 0x53, 0x4b, 0x52, 0x8b, 0x84, 0x8c, 0xb8, 0x38, 0x82,
- 0x13, 0x2b, 0xc1, 0x96, 0x0a, 0x09, 0xe9, 0x81, 0x9c, 0xa8, 0x87, 0xec, 0x3e, 0x29, 0x01, 0x14,
- 0x31, 0xa0, 0x79, 0x4a, 0x0c, 0x46, 0xce, 0x5c, 0x2c, 0xce, 0x89, 0x39, 0xc9, 0x42, 0xd6, 0x5c,
- 0x1c, 0x30, 0x5b, 0x84, 0x44, 0x21, 0xea, 0xd0, 0x9c, 0x27, 0x25, 0x86, 0x2e, 0x0c, 0x71, 0x8c,
- 0x12, 0x43, 0x12, 0x1b, 0x38, 0x54, 0x8c, 0x01, 0x01, 0x00, 0x00, 0xff, 0xff, 0x91, 0x40, 0xdf,
- 0xb0, 0x2e, 0x01, 0x00, 0x00,
+ // 216 bytes of a gzipped FileDescriptorProto
+ 0x1f, 0x8b, 0x08, 0x00, 0x00, 0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x8b, 0xaa, 0x1e, 0xcd, 0xd9, 0x52, 0x72, 0xb8,
+ 0xa4, 0x21, 0x8e, 0x55, 0x62, 0x48, 0x62, 0x03, 0x87, 0x9e, 0x31, 0x20, 0x00, 0x00, 0xff, 0xff,
+ 0xad, 0x17, 0x12, 0xf6, 0x51, 0x01, 0x00, 0x00,
}
« no previous file with comments | « server/discovery/internal/testservices/helloworld.proto ('k') | server/discovery/internal/testservices/pb.discovery.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698