safe.pb.go 9.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.25.0
  4. // protoc v3.9.0
  5. // source: safe.proto
  6. package proto
  7. import (
  8. context "context"
  9. proto "github.com/golang/protobuf/proto"
  10. grpc "google.golang.org/grpc"
  11. codes "google.golang.org/grpc/codes"
  12. status "google.golang.org/grpc/status"
  13. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  14. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  15. reflect "reflect"
  16. sync "sync"
  17. )
  18. const (
  19. // Verify that this generated code is sufficiently up-to-date.
  20. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  21. // Verify that runtime/protoimpl is sufficiently up-to-date.
  22. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  23. )
  24. // This is a compile-time assertion that a sufficiently up-to-date version
  25. // of the legacy proto package is being used.
  26. const _ = proto.ProtoPackageIsVersion4
  27. // The request message containing the user's name.
  28. type SafeServiceRequest struct {
  29. state protoimpl.MessageState
  30. sizeCache protoimpl.SizeCache
  31. unknownFields protoimpl.UnknownFields
  32. BidsectionId string `protobuf:"bytes,1,opt,name=bidsection_id,json=bidsectionId,proto3" json:"bidsection_id,omitempty"`
  33. }
  34. func (x *SafeServiceRequest) Reset() {
  35. *x = SafeServiceRequest{}
  36. if protoimpl.UnsafeEnabled {
  37. mi := &file_safe_proto_msgTypes[0]
  38. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  39. ms.StoreMessageInfo(mi)
  40. }
  41. }
  42. func (x *SafeServiceRequest) String() string {
  43. return protoimpl.X.MessageStringOf(x)
  44. }
  45. func (*SafeServiceRequest) ProtoMessage() {}
  46. func (x *SafeServiceRequest) ProtoReflect() protoreflect.Message {
  47. mi := &file_safe_proto_msgTypes[0]
  48. if protoimpl.UnsafeEnabled && x != nil {
  49. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  50. if ms.LoadMessageInfo() == nil {
  51. ms.StoreMessageInfo(mi)
  52. }
  53. return ms
  54. }
  55. return mi.MessageOf(x)
  56. }
  57. // Deprecated: Use SafeServiceRequest.ProtoReflect.Descriptor instead.
  58. func (*SafeServiceRequest) Descriptor() ([]byte, []int) {
  59. return file_safe_proto_rawDescGZIP(), []int{0}
  60. }
  61. func (x *SafeServiceRequest) GetBidsectionId() string {
  62. if x != nil {
  63. return x.BidsectionId
  64. }
  65. return ""
  66. }
  67. // The response message containing the greetings
  68. type SafeServiceReply struct {
  69. state protoimpl.MessageState
  70. sizeCache protoimpl.SizeCache
  71. unknownFields protoimpl.UnknownFields
  72. Message string `protobuf:"bytes,1,opt,name=message,proto3" json:"message,omitempty"`
  73. }
  74. func (x *SafeServiceReply) Reset() {
  75. *x = SafeServiceReply{}
  76. if protoimpl.UnsafeEnabled {
  77. mi := &file_safe_proto_msgTypes[1]
  78. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  79. ms.StoreMessageInfo(mi)
  80. }
  81. }
  82. func (x *SafeServiceReply) String() string {
  83. return protoimpl.X.MessageStringOf(x)
  84. }
  85. func (*SafeServiceReply) ProtoMessage() {}
  86. func (x *SafeServiceReply) ProtoReflect() protoreflect.Message {
  87. mi := &file_safe_proto_msgTypes[1]
  88. if protoimpl.UnsafeEnabled && x != nil {
  89. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  90. if ms.LoadMessageInfo() == nil {
  91. ms.StoreMessageInfo(mi)
  92. }
  93. return ms
  94. }
  95. return mi.MessageOf(x)
  96. }
  97. // Deprecated: Use SafeServiceReply.ProtoReflect.Descriptor instead.
  98. func (*SafeServiceReply) Descriptor() ([]byte, []int) {
  99. return file_safe_proto_rawDescGZIP(), []int{1}
  100. }
  101. func (x *SafeServiceReply) GetMessage() string {
  102. if x != nil {
  103. return x.Message
  104. }
  105. return ""
  106. }
  107. var File_safe_proto protoreflect.FileDescriptor
  108. var file_safe_proto_rawDesc = []byte{
  109. 0x0a, 0x0a, 0x73, 0x61, 0x66, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x05, 0x70, 0x72,
  110. 0x6f, 0x74, 0x6f, 0x22, 0x39, 0x0a, 0x12, 0x53, 0x61, 0x66, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69,
  111. 0x63, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x23, 0x0a, 0x0d, 0x62, 0x69, 0x64,
  112. 0x73, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x5f, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
  113. 0x52, 0x0c, 0x62, 0x69, 0x64, 0x73, 0x65, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x49, 0x64, 0x22, 0x2c,
  114. 0x0a, 0x10, 0x53, 0x61, 0x66, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x52, 0x65, 0x70,
  115. 0x6c, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x18, 0x01, 0x20,
  116. 0x01, 0x28, 0x09, 0x52, 0x07, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x32, 0x52, 0x0a, 0x0b,
  117. 0x53, 0x61, 0x66, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x12, 0x43, 0x0a, 0x0b, 0x67,
  118. 0x65, 0x74, 0x53, 0x61, 0x66, 0x65, 0x4c, 0x69, 0x73, 0x74, 0x12, 0x19, 0x2e, 0x70, 0x72, 0x6f,
  119. 0x74, 0x6f, 0x2e, 0x53, 0x61, 0x66, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x52, 0x65,
  120. 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x17, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x53, 0x61,
  121. 0x66, 0x65, 0x53, 0x65, 0x72, 0x76, 0x69, 0x63, 0x65, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x00,
  122. 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  123. }
  124. var (
  125. file_safe_proto_rawDescOnce sync.Once
  126. file_safe_proto_rawDescData = file_safe_proto_rawDesc
  127. )
  128. func file_safe_proto_rawDescGZIP() []byte {
  129. file_safe_proto_rawDescOnce.Do(func() {
  130. file_safe_proto_rawDescData = protoimpl.X.CompressGZIP(file_safe_proto_rawDescData)
  131. })
  132. return file_safe_proto_rawDescData
  133. }
  134. var file_safe_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
  135. var file_safe_proto_goTypes = []interface{}{
  136. (*SafeServiceRequest)(nil), // 0: proto.SafeServiceRequest
  137. (*SafeServiceReply)(nil), // 1: proto.SafeServiceReply
  138. }
  139. var file_safe_proto_depIdxs = []int32{
  140. 0, // 0: proto.SafeService.getSafeList:input_type -> proto.SafeServiceRequest
  141. 1, // 1: proto.SafeService.getSafeList:output_type -> proto.SafeServiceReply
  142. 1, // [1:2] is the sub-list for method output_type
  143. 0, // [0:1] is the sub-list for method input_type
  144. 0, // [0:0] is the sub-list for extension type_name
  145. 0, // [0:0] is the sub-list for extension extendee
  146. 0, // [0:0] is the sub-list for field type_name
  147. }
  148. func init() { file_safe_proto_init() }
  149. func file_safe_proto_init() {
  150. if File_safe_proto != nil {
  151. return
  152. }
  153. if !protoimpl.UnsafeEnabled {
  154. file_safe_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  155. switch v := v.(*SafeServiceRequest); i {
  156. case 0:
  157. return &v.state
  158. case 1:
  159. return &v.sizeCache
  160. case 2:
  161. return &v.unknownFields
  162. default:
  163. return nil
  164. }
  165. }
  166. file_safe_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  167. switch v := v.(*SafeServiceReply); i {
  168. case 0:
  169. return &v.state
  170. case 1:
  171. return &v.sizeCache
  172. case 2:
  173. return &v.unknownFields
  174. default:
  175. return nil
  176. }
  177. }
  178. }
  179. type x struct{}
  180. out := protoimpl.TypeBuilder{
  181. File: protoimpl.DescBuilder{
  182. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  183. RawDescriptor: file_safe_proto_rawDesc,
  184. NumEnums: 0,
  185. NumMessages: 2,
  186. NumExtensions: 0,
  187. NumServices: 1,
  188. },
  189. GoTypes: file_safe_proto_goTypes,
  190. DependencyIndexes: file_safe_proto_depIdxs,
  191. MessageInfos: file_safe_proto_msgTypes,
  192. }.Build()
  193. File_safe_proto = out.File
  194. file_safe_proto_rawDesc = nil
  195. file_safe_proto_goTypes = nil
  196. file_safe_proto_depIdxs = nil
  197. }
  198. // Reference imports to suppress errors if they are not otherwise used.
  199. var _ context.Context
  200. var _ grpc.ClientConnInterface
  201. // This is a compile-time assertion to ensure that this generated file
  202. // is compatible with the grpc package it is being compiled against.
  203. const _ = grpc.SupportPackageIsVersion6
  204. // SafeServiceClient is the client API for SafeService service.
  205. //
  206. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  207. type SafeServiceClient interface {
  208. // Sends a greeting
  209. GetSafeList(ctx context.Context, in *SafeServiceRequest, opts ...grpc.CallOption) (*SafeServiceReply, error)
  210. }
  211. type safeServiceClient struct {
  212. cc grpc.ClientConnInterface
  213. }
  214. func NewSafeServiceClient(cc grpc.ClientConnInterface) SafeServiceClient {
  215. return &safeServiceClient{cc}
  216. }
  217. func (c *safeServiceClient) GetSafeList(ctx context.Context, in *SafeServiceRequest, opts ...grpc.CallOption) (*SafeServiceReply, error) {
  218. out := new(SafeServiceReply)
  219. err := c.cc.Invoke(ctx, "/proto.SafeService/getSafeList", in, out, opts...)
  220. if err != nil {
  221. return nil, err
  222. }
  223. return out, nil
  224. }
  225. // SafeServiceServer is the server API for SafeService service.
  226. type SafeServiceServer interface {
  227. // Sends a greeting
  228. GetSafeList(context.Context, *SafeServiceRequest) (*SafeServiceReply, error)
  229. }
  230. // UnimplementedSafeServiceServer can be embedded to have forward compatible implementations.
  231. type UnimplementedSafeServiceServer struct {
  232. }
  233. func (*UnimplementedSafeServiceServer) GetSafeList(context.Context, *SafeServiceRequest) (*SafeServiceReply, error) {
  234. return nil, status.Errorf(codes.Unimplemented, "method GetSafeList not implemented")
  235. }
  236. func RegisterSafeServiceServer(s *grpc.Server, srv SafeServiceServer) {
  237. s.RegisterService(&_SafeService_serviceDesc, srv)
  238. }
  239. func _SafeService_GetSafeList_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  240. in := new(SafeServiceRequest)
  241. if err := dec(in); err != nil {
  242. return nil, err
  243. }
  244. if interceptor == nil {
  245. return srv.(SafeServiceServer).GetSafeList(ctx, in)
  246. }
  247. info := &grpc.UnaryServerInfo{
  248. Server: srv,
  249. FullMethod: "/proto.SafeService/GetSafeList",
  250. }
  251. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  252. return srv.(SafeServiceServer).GetSafeList(ctx, req.(*SafeServiceRequest))
  253. }
  254. return interceptor(ctx, in, info, handler)
  255. }
  256. var _SafeService_serviceDesc = grpc.ServiceDesc{
  257. ServiceName: "proto.SafeService",
  258. HandlerType: (*SafeServiceServer)(nil),
  259. Methods: []grpc.MethodDesc{
  260. {
  261. MethodName: "getSafeList",
  262. Handler: _SafeService_GetSafeList_Handler,
  263. },
  264. },
  265. Streams: []grpc.StreamDesc{},
  266. Metadata: "safe.proto",
  267. }