backend.pb.go 9.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.21.0-devel
  4. // protoc v3.6.1
  5. // source: backend/v1/backend.proto
  6. package v1
  7. import (
  8. context "context"
  9. proto "github.com/golang/protobuf/proto"
  10. empty "github.com/golang/protobuf/ptypes/empty"
  11. grpc "google.golang.org/grpc"
  12. codes "google.golang.org/grpc/codes"
  13. status "google.golang.org/grpc/status"
  14. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  15. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  16. reflect "reflect"
  17. sync "sync"
  18. )
  19. const (
  20. // Verify that this generated code is sufficiently up-to-date.
  21. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  22. // Verify that runtime/protoimpl is sufficiently up-to-date.
  23. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  24. )
  25. // This is a compile-time assertion that a sufficiently up-to-date version
  26. // of the legacy proto package is being used.
  27. const _ = proto.ProtoPackageIsVersion4
  28. type BackendInformationResponse struct {
  29. state protoimpl.MessageState
  30. sizeCache protoimpl.SizeCache
  31. unknownFields protoimpl.UnknownFields
  32. Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"`
  33. }
  34. func (x *BackendInformationResponse) Reset() {
  35. *x = BackendInformationResponse{}
  36. if protoimpl.UnsafeEnabled {
  37. mi := &file_backend_v1_backend_proto_msgTypes[0]
  38. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  39. ms.StoreMessageInfo(mi)
  40. }
  41. }
  42. func (x *BackendInformationResponse) String() string {
  43. return protoimpl.X.MessageStringOf(x)
  44. }
  45. func (*BackendInformationResponse) ProtoMessage() {}
  46. func (x *BackendInformationResponse) ProtoReflect() protoreflect.Message {
  47. mi := &file_backend_v1_backend_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 BackendInformationResponse.ProtoReflect.Descriptor instead.
  58. func (*BackendInformationResponse) Descriptor() ([]byte, []int) {
  59. return file_backend_v1_backend_proto_rawDescGZIP(), []int{0}
  60. }
  61. func (x *BackendInformationResponse) GetId() string {
  62. if x != nil {
  63. return x.Id
  64. }
  65. return ""
  66. }
  67. var File_backend_v1_backend_proto protoreflect.FileDescriptor
  68. var file_backend_v1_backend_proto_rawDesc = []byte{
  69. 0x0a, 0x18, 0x62, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x2f, 0x76, 0x31, 0x2f, 0x62, 0x61, 0x63,
  70. 0x6b, 0x65, 0x6e, 0x64, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x19, 0x63, 0x6f, 0x6d, 0x2e,
  71. 0x64, 0x6f, 0x63, 0x6b, 0x65, 0x72, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x62, 0x61, 0x63, 0x6b, 0x65,
  72. 0x6e, 0x64, 0x2e, 0x76, 0x31, 0x1a, 0x1b, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72,
  73. 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x65, 0x6d, 0x70, 0x74, 0x79, 0x2e, 0x70, 0x72, 0x6f,
  74. 0x74, 0x6f, 0x22, 0x2c, 0x0a, 0x1a, 0x42, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x49, 0x6e, 0x66,
  75. 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
  76. 0x12, 0x0e, 0x0a, 0x02, 0x69, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x02, 0x69, 0x64,
  77. 0x32, 0x6e, 0x0a, 0x07, 0x42, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x12, 0x63, 0x0a, 0x12, 0x42,
  78. 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x49, 0x6e, 0x66, 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f,
  79. 0x6e, 0x12, 0x16, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  80. 0x62, 0x75, 0x66, 0x2e, 0x45, 0x6d, 0x70, 0x74, 0x79, 0x1a, 0x35, 0x2e, 0x63, 0x6f, 0x6d, 0x2e,
  81. 0x64, 0x6f, 0x63, 0x6b, 0x65, 0x72, 0x2e, 0x61, 0x70, 0x69, 0x2e, 0x62, 0x61, 0x63, 0x6b, 0x65,
  82. 0x6e, 0x64, 0x2e, 0x76, 0x31, 0x2e, 0x42, 0x61, 0x63, 0x6b, 0x65, 0x6e, 0x64, 0x49, 0x6e, 0x66,
  83. 0x6f, 0x72, 0x6d, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65,
  84. 0x42, 0x25, 0x5a, 0x23, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x64,
  85. 0x6f, 0x63, 0x6b, 0x65, 0x72, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x62, 0x61, 0x63, 0x6b, 0x65, 0x6e,
  86. 0x64, 0x2f, 0x76, 0x31, 0x3b, 0x76, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  87. }
  88. var (
  89. file_backend_v1_backend_proto_rawDescOnce sync.Once
  90. file_backend_v1_backend_proto_rawDescData = file_backend_v1_backend_proto_rawDesc
  91. )
  92. func file_backend_v1_backend_proto_rawDescGZIP() []byte {
  93. file_backend_v1_backend_proto_rawDescOnce.Do(func() {
  94. file_backend_v1_backend_proto_rawDescData = protoimpl.X.CompressGZIP(file_backend_v1_backend_proto_rawDescData)
  95. })
  96. return file_backend_v1_backend_proto_rawDescData
  97. }
  98. var file_backend_v1_backend_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
  99. var file_backend_v1_backend_proto_goTypes = []interface{}{
  100. (*BackendInformationResponse)(nil), // 0: com.docker.api.backend.v1.BackendInformationResponse
  101. (*empty.Empty)(nil), // 1: google.protobuf.Empty
  102. }
  103. var file_backend_v1_backend_proto_depIdxs = []int32{
  104. 1, // 0: com.docker.api.backend.v1.Backend.BackendInformation:input_type -> google.protobuf.Empty
  105. 0, // 1: com.docker.api.backend.v1.Backend.BackendInformation:output_type -> com.docker.api.backend.v1.BackendInformationResponse
  106. 1, // [1:2] is the sub-list for method output_type
  107. 0, // [0:1] is the sub-list for method input_type
  108. 0, // [0:0] is the sub-list for extension type_name
  109. 0, // [0:0] is the sub-list for extension extendee
  110. 0, // [0:0] is the sub-list for field type_name
  111. }
  112. func init() { file_backend_v1_backend_proto_init() }
  113. func file_backend_v1_backend_proto_init() {
  114. if File_backend_v1_backend_proto != nil {
  115. return
  116. }
  117. if !protoimpl.UnsafeEnabled {
  118. file_backend_v1_backend_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  119. switch v := v.(*BackendInformationResponse); i {
  120. case 0:
  121. return &v.state
  122. case 1:
  123. return &v.sizeCache
  124. case 2:
  125. return &v.unknownFields
  126. default:
  127. return nil
  128. }
  129. }
  130. }
  131. type x struct{}
  132. out := protoimpl.TypeBuilder{
  133. File: protoimpl.DescBuilder{
  134. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  135. RawDescriptor: file_backend_v1_backend_proto_rawDesc,
  136. NumEnums: 0,
  137. NumMessages: 1,
  138. NumExtensions: 0,
  139. NumServices: 1,
  140. },
  141. GoTypes: file_backend_v1_backend_proto_goTypes,
  142. DependencyIndexes: file_backend_v1_backend_proto_depIdxs,
  143. MessageInfos: file_backend_v1_backend_proto_msgTypes,
  144. }.Build()
  145. File_backend_v1_backend_proto = out.File
  146. file_backend_v1_backend_proto_rawDesc = nil
  147. file_backend_v1_backend_proto_goTypes = nil
  148. file_backend_v1_backend_proto_depIdxs = nil
  149. }
  150. // Reference imports to suppress errors if they are not otherwise used.
  151. var _ context.Context
  152. var _ grpc.ClientConnInterface
  153. // This is a compile-time assertion to ensure that this generated file
  154. // is compatible with the grpc package it is being compiled against.
  155. const _ = grpc.SupportPackageIsVersion6
  156. // BackendClient is the client API for Backend service.
  157. //
  158. // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
  159. type BackendClient interface {
  160. // BackendInformation returns implementation specific information on the backend.
  161. BackendInformation(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*BackendInformationResponse, error)
  162. }
  163. type backendClient struct {
  164. cc grpc.ClientConnInterface
  165. }
  166. func NewBackendClient(cc grpc.ClientConnInterface) BackendClient {
  167. return &backendClient{cc}
  168. }
  169. func (c *backendClient) BackendInformation(ctx context.Context, in *empty.Empty, opts ...grpc.CallOption) (*BackendInformationResponse, error) {
  170. out := new(BackendInformationResponse)
  171. err := c.cc.Invoke(ctx, "/com.docker.api.backend.v1.Backend/BackendInformation", in, out, opts...)
  172. if err != nil {
  173. return nil, err
  174. }
  175. return out, nil
  176. }
  177. // BackendServer is the server API for Backend service.
  178. type BackendServer interface {
  179. // BackendInformation returns implementation specific information on the backend.
  180. BackendInformation(context.Context, *empty.Empty) (*BackendInformationResponse, error)
  181. }
  182. // UnimplementedBackendServer can be embedded to have forward compatible implementations.
  183. type UnimplementedBackendServer struct {
  184. }
  185. func (*UnimplementedBackendServer) BackendInformation(context.Context, *empty.Empty) (*BackendInformationResponse, error) {
  186. return nil, status.Errorf(codes.Unimplemented, "method BackendInformation not implemented")
  187. }
  188. func RegisterBackendServer(s *grpc.Server, srv BackendServer) {
  189. s.RegisterService(&_Backend_serviceDesc, srv)
  190. }
  191. func _Backend_BackendInformation_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  192. in := new(empty.Empty)
  193. if err := dec(in); err != nil {
  194. return nil, err
  195. }
  196. if interceptor == nil {
  197. return srv.(BackendServer).BackendInformation(ctx, in)
  198. }
  199. info := &grpc.UnaryServerInfo{
  200. Server: srv,
  201. FullMethod: "/com.docker.api.backend.v1.Backend/BackendInformation",
  202. }
  203. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  204. return srv.(BackendServer).BackendInformation(ctx, req.(*empty.Empty))
  205. }
  206. return interceptor(ctx, in, info, handler)
  207. }
  208. var _Backend_serviceDesc = grpc.ServiceDesc{
  209. ServiceName: "com.docker.api.backend.v1.Backend",
  210. HandlerType: (*BackendServer)(nil),
  211. Methods: []grpc.MethodDesc{
  212. {
  213. MethodName: "BackendInformation",
  214. Handler: _Backend_BackendInformation_Handler,
  215. },
  216. },
  217. Streams: []grpc.StreamDesc{},
  218. Metadata: "backend/v1/backend.proto",
  219. }