backend.pb.go 12 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327
  1. //
  2. //Copyright (c) 2020 Docker Inc.
  3. //
  4. //Permission is hereby granted, free of charge, to any person
  5. //obtaining a copy of this software and associated documentation
  6. //files (the "Software"), to deal in the Software without
  7. //restriction, including without limitation the rights to use, copy,
  8. //modify, merge, publish, distribute, sublicense, and/or sell copies
  9. //of the Software, and to permit persons to whom the Software is
  10. //furnished to do so, subject to the following conditions:
  11. //
  12. //The above copyright notice and this permission notice shall be
  13. //included in all copies or substantial portions of the Software.
  14. //
  15. //THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  16. //EXPRESS OR IMPLIED,
  17. //INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
  18. //FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
  19. //IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
  20. //HOLDERS BE LIABLE FOR ANY CLAIM,
  21. //DAMAGES OR OTHER LIABILITY,
  22. //WHETHER IN AN ACTION OF CONTRACT,
  23. //TORT OR OTHERWISE,
  24. //ARISING FROM, OUT OF OR IN CONNECTION WITH
  25. //THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  26. // Code generated by protoc-gen-go. DO NOT EDIT.
  27. // versions:
  28. // protoc-gen-go v1.22.0
  29. // protoc v3.6.1
  30. // source: backend/v1/backend.proto
  31. package v1
  32. import (
  33. context "context"
  34. reflect "reflect"
  35. sync "sync"
  36. proto "github.com/golang/protobuf/proto"
  37. grpc "google.golang.org/grpc"
  38. codes "google.golang.org/grpc/codes"
  39. status "google.golang.org/grpc/status"
  40. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  41. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  42. )
  43. const (
  44. // Verify that this generated code is sufficiently up-to-date.
  45. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  46. // Verify that runtime/protoimpl is sufficiently up-to-date.
  47. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  48. )
  49. // This is a compile-time assertion that a sufficiently up-to-date version
  50. // of the legacy proto package is being used.
  51. const _ = proto.ProtoPackageIsVersion4
  52. type BackendInformationRequest struct {
  53. state protoimpl.MessageState
  54. sizeCache protoimpl.SizeCache
  55. unknownFields protoimpl.UnknownFields
  56. }
  57. func (x *BackendInformationRequest) Reset() {
  58. *x = BackendInformationRequest{}
  59. if protoimpl.UnsafeEnabled {
  60. mi := &file_backend_v1_backend_proto_msgTypes[0]
  61. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  62. ms.StoreMessageInfo(mi)
  63. }
  64. }
  65. func (x *BackendInformationRequest) String() string {
  66. return protoimpl.X.MessageStringOf(x)
  67. }
  68. func (*BackendInformationRequest) ProtoMessage() {}
  69. func (x *BackendInformationRequest) ProtoReflect() protoreflect.Message {
  70. mi := &file_backend_v1_backend_proto_msgTypes[0]
  71. if protoimpl.UnsafeEnabled && x != nil {
  72. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  73. if ms.LoadMessageInfo() == nil {
  74. ms.StoreMessageInfo(mi)
  75. }
  76. return ms
  77. }
  78. return mi.MessageOf(x)
  79. }
  80. // Deprecated: Use BackendInformationRequest.ProtoReflect.Descriptor instead.
  81. func (*BackendInformationRequest) Descriptor() ([]byte, []int) {
  82. return file_backend_v1_backend_proto_rawDescGZIP(), []int{0}
  83. }
  84. type BackendInformationResponse struct {
  85. state protoimpl.MessageState
  86. sizeCache protoimpl.SizeCache
  87. unknownFields protoimpl.UnknownFields
  88. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
  89. }
  90. func (x *BackendInformationResponse) Reset() {
  91. *x = BackendInformationResponse{}
  92. if protoimpl.UnsafeEnabled {
  93. mi := &file_backend_v1_backend_proto_msgTypes[1]
  94. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  95. ms.StoreMessageInfo(mi)
  96. }
  97. }
  98. func (x *BackendInformationResponse) String() string {
  99. return protoimpl.X.MessageStringOf(x)
  100. }
  101. func (*BackendInformationResponse) ProtoMessage() {}
  102. func (x *BackendInformationResponse) ProtoReflect() protoreflect.Message {
  103. mi := &file_backend_v1_backend_proto_msgTypes[1]
  104. if protoimpl.UnsafeEnabled && x != nil {
  105. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  106. if ms.LoadMessageInfo() == nil {
  107. ms.StoreMessageInfo(mi)
  108. }
  109. return ms
  110. }
  111. return mi.MessageOf(x)
  112. }
  113. // Deprecated: Use BackendInformationResponse.ProtoReflect.Descriptor instead.
  114. func (*BackendInformationResponse) Descriptor() ([]byte, []int) {
  115. return file_backend_v1_backend_proto_rawDescGZIP(), []int{1}
  116. }
  117. func (x *BackendInformationResponse) GetId() string {
  118. if x != nil {
  119. return x.Id
  120. }
  121. return ""
  122. }
  123. var File_backend_v1_backend_proto protoreflect.FileDescriptor
  124. var file_backend_v1_backend_proto_rawDesc = []byte{
  125. 0x0a, 0x18, 0x62, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x2f, 0x76, 0x31, 0x2f, 0x62, 0x61, 0x63,
  126. 0x6b, 0x65, 0x6e, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x19, 0x63, 0x6f, 0x6d, 0x2e,
  127. 0x64, 0x6f, 0x63, 0x6b, 0x65, 0x72, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x62, 0x61, 0x63, 0x6b, 0x65,
  128. 0x6e, 0x64, 0x2e, 0x76, 0x31, 0x22, 0x1b, 0x0a, 0x19, 0x42, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64,
  129. 0x49, 0x6e, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65,
  130. 0x73, 0x74, 0x22, 0x2c, 0x0a, 0x1a, 0x42, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x49, 0x6e, 0x66,
  131. 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
  132. 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64,
  133. 0x32, 0x8d, 0x01, 0x0a, 0x07, 0x42, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x12, 0x81, 0x01, 0x0a,
  134. 0x12, 0x42, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x49, 0x6e, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74,
  135. 0x69, 0x6f, 0x6e, 0x12, 0x34, 0x2e, 0x63, 0x6f, 0x6d, 0x2e, 0x64, 0x6f, 0x63, 0x6b, 0x65, 0x72,
  136. 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x62, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x2e, 0x76, 0x31, 0x2e,
  137. 0x42, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x49, 0x6e, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x69,
  138. 0x6f, 0x6e, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x35, 0x2e, 0x63, 0x6f, 0x6d, 0x2e,
  139. 0x64, 0x6f, 0x63, 0x6b, 0x65, 0x72, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x62, 0x61, 0x63, 0x6b, 0x65,
  140. 0x6e, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x49, 0x6e, 0x66,
  141. 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
  142. 0x42, 0x25, 0x5a, 0x23, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x64,
  143. 0x6f, 0x63, 0x6b, 0x65, 0x72, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x62, 0x61, 0x63, 0x6b, 0x65, 0x6e,
  144. 0x64, 0x2f, 0x76, 0x31, 0x3b, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  145. }
  146. var (
  147. file_backend_v1_backend_proto_rawDescOnce sync.Once
  148. file_backend_v1_backend_proto_rawDescData = file_backend_v1_backend_proto_rawDesc
  149. )
  150. func file_backend_v1_backend_proto_rawDescGZIP() []byte {
  151. file_backend_v1_backend_proto_rawDescOnce.Do(func() {
  152. file_backend_v1_backend_proto_rawDescData = protoimpl.X.CompressGZIP(file_backend_v1_backend_proto_rawDescData)
  153. })
  154. return file_backend_v1_backend_proto_rawDescData
  155. }
  156. var file_backend_v1_backend_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
  157. var file_backend_v1_backend_proto_goTypes = []interface{}{
  158. (*BackendInformationRequest)(nil), // 0: com.docker.api.backend.v1.BackendInformationRequest
  159. (*BackendInformationResponse)(nil), // 1: com.docker.api.backend.v1.BackendInformationResponse
  160. }
  161. var file_backend_v1_backend_proto_depIdxs = []int32{
  162. 0, // 0: com.docker.api.backend.v1.Backend.BackendInformation:input_type -> com.docker.api.backend.v1.BackendInformationRequest
  163. 1, // 1: com.docker.api.backend.v1.Backend.BackendInformation:output_type -> com.docker.api.backend.v1.BackendInformationResponse
  164. 1, // [1:2] is the sub-list for method output_type
  165. 0, // [0:1] is the sub-list for method input_type
  166. 0, // [0:0] is the sub-list for extension type_name
  167. 0, // [0:0] is the sub-list for extension extendee
  168. 0, // [0:0] is the sub-list for field type_name
  169. }
  170. func init() { file_backend_v1_backend_proto_init() }
  171. func file_backend_v1_backend_proto_init() {
  172. if File_backend_v1_backend_proto != nil {
  173. return
  174. }
  175. if !protoimpl.UnsafeEnabled {
  176. file_backend_v1_backend_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  177. switch v := v.(*BackendInformationRequest); i {
  178. case 0:
  179. return &v.state
  180. case 1:
  181. return &v.sizeCache
  182. case 2:
  183. return &v.unknownFields
  184. default:
  185. return nil
  186. }
  187. }
  188. file_backend_v1_backend_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  189. switch v := v.(*BackendInformationResponse); i {
  190. case 0:
  191. return &v.state
  192. case 1:
  193. return &v.sizeCache
  194. case 2:
  195. return &v.unknownFields
  196. default:
  197. return nil
  198. }
  199. }
  200. }
  201. type x struct{}
  202. out := protoimpl.TypeBuilder{
  203. File: protoimpl.DescBuilder{
  204. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  205. RawDescriptor: file_backend_v1_backend_proto_rawDesc,
  206. NumEnums: 0,
  207. NumMessages: 2,
  208. NumExtensions: 0,
  209. NumServices: 1,
  210. },
  211. GoTypes: file_backend_v1_backend_proto_goTypes,
  212. DependencyIndexes: file_backend_v1_backend_proto_depIdxs,
  213. MessageInfos: file_backend_v1_backend_proto_msgTypes,
  214. }.Build()
  215. File_backend_v1_backend_proto = out.File
  216. file_backend_v1_backend_proto_rawDesc = nil
  217. file_backend_v1_backend_proto_goTypes = nil
  218. file_backend_v1_backend_proto_depIdxs = nil
  219. }
  220. // Reference imports to suppress errors if they are not otherwise used.
  221. var _ context.Context
  222. var _ grpc.ClientConnInterface
  223. // This is a compile-time assertion to ensure that this generated file
  224. // is compatible with the grpc package it is being compiled against.
  225. const _ = grpc.SupportPackageIsVersion6
  226. // BackendClient is the client API for Backend service.
  227. //
  228. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  229. type BackendClient interface {
  230. // BackendInformation returns implementation specific information on the backend.
  231. BackendInformation(ctx context.Context, in *BackendInformationRequest, opts ...grpc.CallOption) (*BackendInformationResponse, error)
  232. }
  233. type backendClient struct {
  234. cc grpc.ClientConnInterface
  235. }
  236. func NewBackendClient(cc grpc.ClientConnInterface) BackendClient {
  237. return &backendClient{cc}
  238. }
  239. func (c *backendClient) BackendInformation(ctx context.Context, in *BackendInformationRequest, opts ...grpc.CallOption) (*BackendInformationResponse, error) {
  240. out := new(BackendInformationResponse)
  241. err := c.cc.Invoke(ctx, "/com.docker.api.backend.v1.Backend/BackendInformation", in, out, opts...)
  242. if err != nil {
  243. return nil, err
  244. }
  245. return out, nil
  246. }
  247. // BackendServer is the server API for Backend service.
  248. type BackendServer interface {
  249. // BackendInformation returns implementation specific information on the backend.
  250. BackendInformation(context.Context, *BackendInformationRequest) (*BackendInformationResponse, error)
  251. }
  252. // UnimplementedBackendServer can be embedded to have forward compatible implementations.
  253. type UnimplementedBackendServer struct {
  254. }
  255. func (*UnimplementedBackendServer) BackendInformation(context.Context, *BackendInformationRequest) (*BackendInformationResponse, error) {
  256. return nil, status.Errorf(codes.Unimplemented, "method BackendInformation not implemented")
  257. }
  258. func RegisterBackendServer(s *grpc.Server, srv BackendServer) {
  259. s.RegisterService(&_Backend_serviceDesc, srv)
  260. }
  261. func _Backend_BackendInformation_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  262. in := new(BackendInformationRequest)
  263. if err := dec(in); err != nil {
  264. return nil, err
  265. }
  266. if interceptor == nil {
  267. return srv.(BackendServer).BackendInformation(ctx, in)
  268. }
  269. info := &grpc.UnaryServerInfo{
  270. Server: srv,
  271. FullMethod: "/com.docker.api.backend.v1.Backend/BackendInformation",
  272. }
  273. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  274. return srv.(BackendServer).BackendInformation(ctx, req.(*BackendInformationRequest))
  275. }
  276. return interceptor(ctx, in, info, handler)
  277. }
  278. var _Backend_serviceDesc = grpc.ServiceDesc{
  279. ServiceName: "com.docker.api.backend.v1.Backend",
  280. HandlerType: (*BackendServer)(nil),
  281. Methods: []grpc.MethodDesc{
  282. {
  283. MethodName: "BackendInformation",
  284. Handler: _Backend_BackendInformation_Handler,
  285. },
  286. },
  287. Streams: []grpc.StreamDesc{},
  288. Metadata: "backend/v1/backend.proto",
  289. }