plugin.pb.go 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361
  1. //
  2. //Copyright © 2022 ESO Maintainer Team
  3. //
  4. //Licensed under the Apache License, Version 2.0 (the "License");
  5. //you may not use this file except in compliance with the License.
  6. //You may obtain a copy of the License at
  7. //
  8. //http://www.apache.org/licenses/LICENSE-2.0
  9. //
  10. //Unless required by applicable law or agreed to in writing, software
  11. //distributed under the License is distributed on an "AS IS" BASIS,
  12. //WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. //See the License for the specific language governing permissions and
  14. //limitations under the License.
  15. // Code generated by protoc-gen-go. DO NOT EDIT.
  16. // versions:
  17. // protoc-gen-go v1.28.1
  18. // protoc v3.21.12
  19. // source: pkg/plugin/grpc/plugin.proto
  20. package plugin_proto
  21. import (
  22. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  23. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  24. reflect "reflect"
  25. sync "sync"
  26. )
  27. const (
  28. // Verify that this generated code is sufficiently up-to-date.
  29. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  30. // Verify that runtime/protoimpl is sufficiently up-to-date.
  31. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  32. )
  33. type RemoteRef struct {
  34. state protoimpl.MessageState
  35. sizeCache protoimpl.SizeCache
  36. unknownFields protoimpl.UnknownFields
  37. Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"`
  38. MetadataPolicy string `protobuf:"bytes,2,opt,name=metadataPolicy,proto3" json:"metadataPolicy,omitempty"`
  39. Property string `protobuf:"bytes,3,opt,name=property,proto3" json:"property,omitempty"`
  40. Version string `protobuf:"bytes,4,opt,name=version,proto3" json:"version,omitempty"`
  41. ConversionStrategy string `protobuf:"bytes,5,opt,name=conversionStrategy,proto3" json:"conversionStrategy,omitempty"`
  42. DecodingStrategy string `protobuf:"bytes,6,opt,name=decodingStrategy,proto3" json:"decodingStrategy,omitempty"`
  43. }
  44. func (x *RemoteRef) Reset() {
  45. *x = RemoteRef{}
  46. if protoimpl.UnsafeEnabled {
  47. mi := &file_pkg_plugin_grpc_plugin_proto_msgTypes[0]
  48. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  49. ms.StoreMessageInfo(mi)
  50. }
  51. }
  52. func (x *RemoteRef) String() string {
  53. return protoimpl.X.MessageStringOf(x)
  54. }
  55. func (*RemoteRef) ProtoMessage() {}
  56. func (x *RemoteRef) ProtoReflect() protoreflect.Message {
  57. mi := &file_pkg_plugin_grpc_plugin_proto_msgTypes[0]
  58. if protoimpl.UnsafeEnabled && x != nil {
  59. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  60. if ms.LoadMessageInfo() == nil {
  61. ms.StoreMessageInfo(mi)
  62. }
  63. return ms
  64. }
  65. return mi.MessageOf(x)
  66. }
  67. // Deprecated: Use RemoteRef.ProtoReflect.Descriptor instead.
  68. func (*RemoteRef) Descriptor() ([]byte, []int) {
  69. return file_pkg_plugin_grpc_plugin_proto_rawDescGZIP(), []int{0}
  70. }
  71. func (x *RemoteRef) GetKey() string {
  72. if x != nil {
  73. return x.Key
  74. }
  75. return ""
  76. }
  77. func (x *RemoteRef) GetMetadataPolicy() string {
  78. if x != nil {
  79. return x.MetadataPolicy
  80. }
  81. return ""
  82. }
  83. func (x *RemoteRef) GetProperty() string {
  84. if x != nil {
  85. return x.Property
  86. }
  87. return ""
  88. }
  89. func (x *RemoteRef) GetVersion() string {
  90. if x != nil {
  91. return x.Version
  92. }
  93. return ""
  94. }
  95. func (x *RemoteRef) GetConversionStrategy() string {
  96. if x != nil {
  97. return x.ConversionStrategy
  98. }
  99. return ""
  100. }
  101. func (x *RemoteRef) GetDecodingStrategy() string {
  102. if x != nil {
  103. return x.DecodingStrategy
  104. }
  105. return ""
  106. }
  107. type GetSecretRequest struct {
  108. state protoimpl.MessageState
  109. sizeCache protoimpl.SizeCache
  110. unknownFields protoimpl.UnknownFields
  111. RemoteRef *RemoteRef `protobuf:"bytes,1,opt,name=remoteRef,proto3" json:"remoteRef,omitempty"`
  112. }
  113. func (x *GetSecretRequest) Reset() {
  114. *x = GetSecretRequest{}
  115. if protoimpl.UnsafeEnabled {
  116. mi := &file_pkg_plugin_grpc_plugin_proto_msgTypes[1]
  117. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  118. ms.StoreMessageInfo(mi)
  119. }
  120. }
  121. func (x *GetSecretRequest) String() string {
  122. return protoimpl.X.MessageStringOf(x)
  123. }
  124. func (*GetSecretRequest) ProtoMessage() {}
  125. func (x *GetSecretRequest) ProtoReflect() protoreflect.Message {
  126. mi := &file_pkg_plugin_grpc_plugin_proto_msgTypes[1]
  127. if protoimpl.UnsafeEnabled && x != nil {
  128. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  129. if ms.LoadMessageInfo() == nil {
  130. ms.StoreMessageInfo(mi)
  131. }
  132. return ms
  133. }
  134. return mi.MessageOf(x)
  135. }
  136. // Deprecated: Use GetSecretRequest.ProtoReflect.Descriptor instead.
  137. func (*GetSecretRequest) Descriptor() ([]byte, []int) {
  138. return file_pkg_plugin_grpc_plugin_proto_rawDescGZIP(), []int{1}
  139. }
  140. func (x *GetSecretRequest) GetRemoteRef() *RemoteRef {
  141. if x != nil {
  142. return x.RemoteRef
  143. }
  144. return nil
  145. }
  146. type GetSecretReply struct {
  147. state protoimpl.MessageState
  148. sizeCache protoimpl.SizeCache
  149. unknownFields protoimpl.UnknownFields
  150. Secret []byte `protobuf:"bytes,1,opt,name=secret,proto3" json:"secret,omitempty"`
  151. Error string `protobuf:"bytes,2,opt,name=error,proto3" json:"error,omitempty"`
  152. }
  153. func (x *GetSecretReply) Reset() {
  154. *x = GetSecretReply{}
  155. if protoimpl.UnsafeEnabled {
  156. mi := &file_pkg_plugin_grpc_plugin_proto_msgTypes[2]
  157. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  158. ms.StoreMessageInfo(mi)
  159. }
  160. }
  161. func (x *GetSecretReply) String() string {
  162. return protoimpl.X.MessageStringOf(x)
  163. }
  164. func (*GetSecretReply) ProtoMessage() {}
  165. func (x *GetSecretReply) ProtoReflect() protoreflect.Message {
  166. mi := &file_pkg_plugin_grpc_plugin_proto_msgTypes[2]
  167. if protoimpl.UnsafeEnabled && x != nil {
  168. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  169. if ms.LoadMessageInfo() == nil {
  170. ms.StoreMessageInfo(mi)
  171. }
  172. return ms
  173. }
  174. return mi.MessageOf(x)
  175. }
  176. // Deprecated: Use GetSecretReply.ProtoReflect.Descriptor instead.
  177. func (*GetSecretReply) Descriptor() ([]byte, []int) {
  178. return file_pkg_plugin_grpc_plugin_proto_rawDescGZIP(), []int{2}
  179. }
  180. func (x *GetSecretReply) GetSecret() []byte {
  181. if x != nil {
  182. return x.Secret
  183. }
  184. return nil
  185. }
  186. func (x *GetSecretReply) GetError() string {
  187. if x != nil {
  188. return x.Error
  189. }
  190. return ""
  191. }
  192. var File_pkg_plugin_grpc_plugin_proto protoreflect.FileDescriptor
  193. var file_pkg_plugin_grpc_plugin_proto_rawDesc = []byte{
  194. 0x0a, 0x1c, 0x70, 0x6b, 0x67, 0x2f, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x2f, 0x67, 0x72, 0x70,
  195. 0x63, 0x2f, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x06,
  196. 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x22, 0xd7, 0x01, 0x0a, 0x09, 0x52, 0x65, 0x6d, 0x6f, 0x74,
  197. 0x65, 0x52, 0x65, 0x66, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28,
  198. 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x26, 0x0a, 0x0e, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61,
  199. 0x74, 0x61, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0e,
  200. 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x50, 0x6f, 0x6c, 0x69, 0x63, 0x79, 0x12, 0x1a,
  201. 0x0a, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09,
  202. 0x52, 0x08, 0x70, 0x72, 0x6f, 0x70, 0x65, 0x72, 0x74, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x76, 0x65,
  203. 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x18, 0x04, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07, 0x76, 0x65, 0x72,
  204. 0x73, 0x69, 0x6f, 0x6e, 0x12, 0x2e, 0x0a, 0x12, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x73, 0x69,
  205. 0x6f, 0x6e, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x18, 0x05, 0x20, 0x01, 0x28, 0x09,
  206. 0x52, 0x12, 0x63, 0x6f, 0x6e, 0x76, 0x65, 0x72, 0x73, 0x69, 0x6f, 0x6e, 0x53, 0x74, 0x72, 0x61,
  207. 0x74, 0x65, 0x67, 0x79, 0x12, 0x2a, 0x0a, 0x10, 0x64, 0x65, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67,
  208. 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79, 0x18, 0x06, 0x20, 0x01, 0x28, 0x09, 0x52, 0x10,
  209. 0x64, 0x65, 0x63, 0x6f, 0x64, 0x69, 0x6e, 0x67, 0x53, 0x74, 0x72, 0x61, 0x74, 0x65, 0x67, 0x79,
  210. 0x22, 0x43, 0x0a, 0x10, 0x47, 0x65, 0x74, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x52, 0x65, 0x71,
  211. 0x75, 0x65, 0x73, 0x74, 0x12, 0x2f, 0x0a, 0x09, 0x72, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x52, 0x65,
  212. 0x66, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x11, 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e,
  213. 0x2e, 0x52, 0x65, 0x6d, 0x6f, 0x74, 0x65, 0x52, 0x65, 0x66, 0x52, 0x09, 0x72, 0x65, 0x6d, 0x6f,
  214. 0x74, 0x65, 0x52, 0x65, 0x66, 0x22, 0x3e, 0x0a, 0x0e, 0x47, 0x65, 0x74, 0x53, 0x65, 0x63, 0x72,
  215. 0x65, 0x74, 0x52, 0x65, 0x70, 0x6c, 0x79, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x65, 0x63, 0x72, 0x65,
  216. 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x06, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x12,
  217. 0x14, 0x0a, 0x05, 0x65, 0x72, 0x72, 0x6f, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05,
  218. 0x65, 0x72, 0x72, 0x6f, 0x72, 0x32, 0x50, 0x0a, 0x0d, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x73,
  219. 0x43, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x12, 0x3f, 0x0a, 0x09, 0x47, 0x65, 0x74, 0x53, 0x65, 0x63,
  220. 0x72, 0x65, 0x74, 0x12, 0x18, 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74,
  221. 0x53, 0x65, 0x63, 0x72, 0x65, 0x74, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x16, 0x2e,
  222. 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x2e, 0x47, 0x65, 0x74, 0x53, 0x65, 0x63, 0x72, 0x65, 0x74,
  223. 0x52, 0x65, 0x70, 0x6c, 0x79, 0x22, 0x00, 0x42, 0x87, 0x01, 0x0a, 0x23, 0x69, 0x6f, 0x2e, 0x65,
  224. 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2d, 0x73, 0x65, 0x63, 0x72, 0x65, 0x74, 0x73, 0x2e,
  225. 0x70, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x2e, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x42,
  226. 0x13, 0x50, 0x72, 0x6f, 0x76, 0x69, 0x64, 0x65, 0x72, 0x50, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x50,
  227. 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x49, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63,
  228. 0x6f, 0x6d, 0x2f, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2d, 0x73, 0x65, 0x63, 0x72,
  229. 0x65, 0x74, 0x73, 0x2f, 0x65, 0x78, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2d, 0x73, 0x65, 0x63,
  230. 0x72, 0x65, 0x74, 0x73, 0x2f, 0x70, 0x6b, 0x67, 0x2f, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x2f,
  231. 0x67, 0x72, 0x70, 0x63, 0x2f, 0x70, 0x6c, 0x75, 0x67, 0x69, 0x6e, 0x2e, 0x70, 0x72, 0x6f, 0x74,
  232. 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  233. }
  234. var (
  235. file_pkg_plugin_grpc_plugin_proto_rawDescOnce sync.Once
  236. file_pkg_plugin_grpc_plugin_proto_rawDescData = file_pkg_plugin_grpc_plugin_proto_rawDesc
  237. )
  238. func file_pkg_plugin_grpc_plugin_proto_rawDescGZIP() []byte {
  239. file_pkg_plugin_grpc_plugin_proto_rawDescOnce.Do(func() {
  240. file_pkg_plugin_grpc_plugin_proto_rawDescData = protoimpl.X.CompressGZIP(file_pkg_plugin_grpc_plugin_proto_rawDescData)
  241. })
  242. return file_pkg_plugin_grpc_plugin_proto_rawDescData
  243. }
  244. var file_pkg_plugin_grpc_plugin_proto_msgTypes = make([]protoimpl.MessageInfo, 3)
  245. var file_pkg_plugin_grpc_plugin_proto_goTypes = []interface{}{
  246. (*RemoteRef)(nil), // 0: plugin.RemoteRef
  247. (*GetSecretRequest)(nil), // 1: plugin.GetSecretRequest
  248. (*GetSecretReply)(nil), // 2: plugin.GetSecretReply
  249. }
  250. var file_pkg_plugin_grpc_plugin_proto_depIdxs = []int32{
  251. 0, // 0: plugin.GetSecretRequest.remoteRef:type_name -> plugin.RemoteRef
  252. 1, // 1: plugin.SecretsClient.GetSecret:input_type -> plugin.GetSecretRequest
  253. 2, // 2: plugin.SecretsClient.GetSecret:output_type -> plugin.GetSecretReply
  254. 2, // [2:3] is the sub-list for method output_type
  255. 1, // [1:2] is the sub-list for method input_type
  256. 1, // [1:1] is the sub-list for extension type_name
  257. 1, // [1:1] is the sub-list for extension extendee
  258. 0, // [0:1] is the sub-list for field type_name
  259. }
  260. func init() { file_pkg_plugin_grpc_plugin_proto_init() }
  261. func file_pkg_plugin_grpc_plugin_proto_init() {
  262. if File_pkg_plugin_grpc_plugin_proto != nil {
  263. return
  264. }
  265. if !protoimpl.UnsafeEnabled {
  266. file_pkg_plugin_grpc_plugin_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  267. switch v := v.(*RemoteRef); i {
  268. case 0:
  269. return &v.state
  270. case 1:
  271. return &v.sizeCache
  272. case 2:
  273. return &v.unknownFields
  274. default:
  275. return nil
  276. }
  277. }
  278. file_pkg_plugin_grpc_plugin_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  279. switch v := v.(*GetSecretRequest); i {
  280. case 0:
  281. return &v.state
  282. case 1:
  283. return &v.sizeCache
  284. case 2:
  285. return &v.unknownFields
  286. default:
  287. return nil
  288. }
  289. }
  290. file_pkg_plugin_grpc_plugin_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  291. switch v := v.(*GetSecretReply); i {
  292. case 0:
  293. return &v.state
  294. case 1:
  295. return &v.sizeCache
  296. case 2:
  297. return &v.unknownFields
  298. default:
  299. return nil
  300. }
  301. }
  302. }
  303. type x struct{}
  304. out := protoimpl.TypeBuilder{
  305. File: protoimpl.DescBuilder{
  306. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  307. RawDescriptor: file_pkg_plugin_grpc_plugin_proto_rawDesc,
  308. NumEnums: 0,
  309. NumMessages: 3,
  310. NumExtensions: 0,
  311. NumServices: 1,
  312. },
  313. GoTypes: file_pkg_plugin_grpc_plugin_proto_goTypes,
  314. DependencyIndexes: file_pkg_plugin_grpc_plugin_proto_depIdxs,
  315. MessageInfos: file_pkg_plugin_grpc_plugin_proto_msgTypes,
  316. }.Build()
  317. File_pkg_plugin_grpc_plugin_proto = out.File
  318. file_pkg_plugin_grpc_plugin_proto_rawDesc = nil
  319. file_pkg_plugin_grpc_plugin_proto_goTypes = nil
  320. file_pkg_plugin_grpc_plugin_proto_depIdxs = nil
  321. }