You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

380 lines
14 KiB

1 year ago
2 years ago
3 years ago
3 years ago
  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // versions:
  3. // protoc-gen-go v1.30.0
  4. // protoc v4.23.3
  5. // source: s3.proto
  6. package s3_pb
  7. import (
  8. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  9. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  10. reflect "reflect"
  11. sync "sync"
  12. )
  13. const (
  14. // Verify that this generated code is sufficiently up-to-date.
  15. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  16. // Verify that runtime/protoimpl is sufficiently up-to-date.
  17. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  18. )
  19. type S3ConfigureRequest struct {
  20. state protoimpl.MessageState
  21. sizeCache protoimpl.SizeCache
  22. unknownFields protoimpl.UnknownFields
  23. S3ConfigurationFileContent []byte `protobuf:"bytes,1,opt,name=s3_configuration_file_content,json=s3ConfigurationFileContent,proto3" json:"s3_configuration_file_content,omitempty"`
  24. }
  25. func (x *S3ConfigureRequest) Reset() {
  26. *x = S3ConfigureRequest{}
  27. if protoimpl.UnsafeEnabled {
  28. mi := &file_s3_proto_msgTypes[0]
  29. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  30. ms.StoreMessageInfo(mi)
  31. }
  32. }
  33. func (x *S3ConfigureRequest) String() string {
  34. return protoimpl.X.MessageStringOf(x)
  35. }
  36. func (*S3ConfigureRequest) ProtoMessage() {}
  37. func (x *S3ConfigureRequest) ProtoReflect() protoreflect.Message {
  38. mi := &file_s3_proto_msgTypes[0]
  39. if protoimpl.UnsafeEnabled && x != nil {
  40. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  41. if ms.LoadMessageInfo() == nil {
  42. ms.StoreMessageInfo(mi)
  43. }
  44. return ms
  45. }
  46. return mi.MessageOf(x)
  47. }
  48. // Deprecated: Use S3ConfigureRequest.ProtoReflect.Descriptor instead.
  49. func (*S3ConfigureRequest) Descriptor() ([]byte, []int) {
  50. return file_s3_proto_rawDescGZIP(), []int{0}
  51. }
  52. func (x *S3ConfigureRequest) GetS3ConfigurationFileContent() []byte {
  53. if x != nil {
  54. return x.S3ConfigurationFileContent
  55. }
  56. return nil
  57. }
  58. type S3ConfigureResponse struct {
  59. state protoimpl.MessageState
  60. sizeCache protoimpl.SizeCache
  61. unknownFields protoimpl.UnknownFields
  62. }
  63. func (x *S3ConfigureResponse) Reset() {
  64. *x = S3ConfigureResponse{}
  65. if protoimpl.UnsafeEnabled {
  66. mi := &file_s3_proto_msgTypes[1]
  67. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  68. ms.StoreMessageInfo(mi)
  69. }
  70. }
  71. func (x *S3ConfigureResponse) String() string {
  72. return protoimpl.X.MessageStringOf(x)
  73. }
  74. func (*S3ConfigureResponse) ProtoMessage() {}
  75. func (x *S3ConfigureResponse) ProtoReflect() protoreflect.Message {
  76. mi := &file_s3_proto_msgTypes[1]
  77. if protoimpl.UnsafeEnabled && x != nil {
  78. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  79. if ms.LoadMessageInfo() == nil {
  80. ms.StoreMessageInfo(mi)
  81. }
  82. return ms
  83. }
  84. return mi.MessageOf(x)
  85. }
  86. // Deprecated: Use S3ConfigureResponse.ProtoReflect.Descriptor instead.
  87. func (*S3ConfigureResponse) Descriptor() ([]byte, []int) {
  88. return file_s3_proto_rawDescGZIP(), []int{1}
  89. }
  90. type S3CircuitBreakerConfig struct {
  91. state protoimpl.MessageState
  92. sizeCache protoimpl.SizeCache
  93. unknownFields protoimpl.UnknownFields
  94. Global *S3CircuitBreakerOptions `protobuf:"bytes,1,opt,name=global,proto3" json:"global,omitempty"`
  95. Buckets map[string]*S3CircuitBreakerOptions `protobuf:"bytes,2,rep,name=buckets,proto3" json:"buckets,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
  96. }
  97. func (x *S3CircuitBreakerConfig) Reset() {
  98. *x = S3CircuitBreakerConfig{}
  99. if protoimpl.UnsafeEnabled {
  100. mi := &file_s3_proto_msgTypes[2]
  101. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  102. ms.StoreMessageInfo(mi)
  103. }
  104. }
  105. func (x *S3CircuitBreakerConfig) String() string {
  106. return protoimpl.X.MessageStringOf(x)
  107. }
  108. func (*S3CircuitBreakerConfig) ProtoMessage() {}
  109. func (x *S3CircuitBreakerConfig) ProtoReflect() protoreflect.Message {
  110. mi := &file_s3_proto_msgTypes[2]
  111. if protoimpl.UnsafeEnabled && x != nil {
  112. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  113. if ms.LoadMessageInfo() == nil {
  114. ms.StoreMessageInfo(mi)
  115. }
  116. return ms
  117. }
  118. return mi.MessageOf(x)
  119. }
  120. // Deprecated: Use S3CircuitBreakerConfig.ProtoReflect.Descriptor instead.
  121. func (*S3CircuitBreakerConfig) Descriptor() ([]byte, []int) {
  122. return file_s3_proto_rawDescGZIP(), []int{2}
  123. }
  124. func (x *S3CircuitBreakerConfig) GetGlobal() *S3CircuitBreakerOptions {
  125. if x != nil {
  126. return x.Global
  127. }
  128. return nil
  129. }
  130. func (x *S3CircuitBreakerConfig) GetBuckets() map[string]*S3CircuitBreakerOptions {
  131. if x != nil {
  132. return x.Buckets
  133. }
  134. return nil
  135. }
  136. type S3CircuitBreakerOptions struct {
  137. state protoimpl.MessageState
  138. sizeCache protoimpl.SizeCache
  139. unknownFields protoimpl.UnknownFields
  140. Enabled bool `protobuf:"varint,1,opt,name=enabled,proto3" json:"enabled,omitempty"`
  141. Actions map[string]int64 `protobuf:"bytes,2,rep,name=actions,proto3" json:"actions,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"varint,2,opt,name=value,proto3"`
  142. }
  143. func (x *S3CircuitBreakerOptions) Reset() {
  144. *x = S3CircuitBreakerOptions{}
  145. if protoimpl.UnsafeEnabled {
  146. mi := &file_s3_proto_msgTypes[3]
  147. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  148. ms.StoreMessageInfo(mi)
  149. }
  150. }
  151. func (x *S3CircuitBreakerOptions) String() string {
  152. return protoimpl.X.MessageStringOf(x)
  153. }
  154. func (*S3CircuitBreakerOptions) ProtoMessage() {}
  155. func (x *S3CircuitBreakerOptions) ProtoReflect() protoreflect.Message {
  156. mi := &file_s3_proto_msgTypes[3]
  157. if protoimpl.UnsafeEnabled && x != nil {
  158. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  159. if ms.LoadMessageInfo() == nil {
  160. ms.StoreMessageInfo(mi)
  161. }
  162. return ms
  163. }
  164. return mi.MessageOf(x)
  165. }
  166. // Deprecated: Use S3CircuitBreakerOptions.ProtoReflect.Descriptor instead.
  167. func (*S3CircuitBreakerOptions) Descriptor() ([]byte, []int) {
  168. return file_s3_proto_rawDescGZIP(), []int{3}
  169. }
  170. func (x *S3CircuitBreakerOptions) GetEnabled() bool {
  171. if x != nil {
  172. return x.Enabled
  173. }
  174. return false
  175. }
  176. func (x *S3CircuitBreakerOptions) GetActions() map[string]int64 {
  177. if x != nil {
  178. return x.Actions
  179. }
  180. return nil
  181. }
  182. var File_s3_proto protoreflect.FileDescriptor
  183. var file_s3_proto_rawDesc = []byte{
  184. 0x0a, 0x08, 0x73, 0x33, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x0c, 0x6d, 0x65, 0x73, 0x73,
  185. 0x61, 0x67, 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x62, 0x22, 0x57, 0x0a, 0x12, 0x53, 0x33, 0x43, 0x6f,
  186. 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x41,
  187. 0x0a, 0x1d, 0x73, 0x33, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x61, 0x74, 0x69,
  188. 0x6f, 0x6e, 0x5f, 0x66, 0x69, 0x6c, 0x65, 0x5f, 0x63, 0x6f, 0x6e, 0x74, 0x65, 0x6e, 0x74, 0x18,
  189. 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x1a, 0x73, 0x33, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75,
  190. 0x72, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x46, 0x69, 0x6c, 0x65, 0x43, 0x6f, 0x6e, 0x74, 0x65, 0x6e,
  191. 0x74, 0x22, 0x15, 0x0a, 0x13, 0x53, 0x33, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x65,
  192. 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73, 0x65, 0x22, 0x87, 0x02, 0x0a, 0x16, 0x53, 0x33, 0x43,
  193. 0x69, 0x72, 0x63, 0x75, 0x69, 0x74, 0x42, 0x72, 0x65, 0x61, 0x6b, 0x65, 0x72, 0x43, 0x6f, 0x6e,
  194. 0x66, 0x69, 0x67, 0x12, 0x3d, 0x0a, 0x06, 0x67, 0x6c, 0x6f, 0x62, 0x61, 0x6c, 0x18, 0x01, 0x20,
  195. 0x01, 0x28, 0x0b, 0x32, 0x25, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x69, 0x6e, 0x67, 0x5f,
  196. 0x70, 0x62, 0x2e, 0x53, 0x33, 0x43, 0x69, 0x72, 0x63, 0x75, 0x69, 0x74, 0x42, 0x72, 0x65, 0x61,
  197. 0x6b, 0x65, 0x72, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x06, 0x67, 0x6c, 0x6f, 0x62,
  198. 0x61, 0x6c, 0x12, 0x4b, 0x0a, 0x07, 0x62, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x18, 0x02, 0x20,
  199. 0x03, 0x28, 0x0b, 0x32, 0x31, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x69, 0x6e, 0x67, 0x5f,
  200. 0x70, 0x62, 0x2e, 0x53, 0x33, 0x43, 0x69, 0x72, 0x63, 0x75, 0x69, 0x74, 0x42, 0x72, 0x65, 0x61,
  201. 0x6b, 0x65, 0x72, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x42, 0x75, 0x63, 0x6b, 0x65, 0x74,
  202. 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x07, 0x62, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x1a,
  203. 0x61, 0x0a, 0x0c, 0x42, 0x75, 0x63, 0x6b, 0x65, 0x74, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12,
  204. 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65,
  205. 0x79, 0x12, 0x3b, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0b,
  206. 0x32, 0x25, 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x62, 0x2e,
  207. 0x53, 0x33, 0x43, 0x69, 0x72, 0x63, 0x75, 0x69, 0x74, 0x42, 0x72, 0x65, 0x61, 0x6b, 0x65, 0x72,
  208. 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02,
  209. 0x38, 0x01, 0x22, 0xbd, 0x01, 0x0a, 0x17, 0x53, 0x33, 0x43, 0x69, 0x72, 0x63, 0x75, 0x69, 0x74,
  210. 0x42, 0x72, 0x65, 0x61, 0x6b, 0x65, 0x72, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x18,
  211. 0x0a, 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x18, 0x01, 0x20, 0x01, 0x28, 0x08, 0x52,
  212. 0x07, 0x65, 0x6e, 0x61, 0x62, 0x6c, 0x65, 0x64, 0x12, 0x4c, 0x0a, 0x07, 0x61, 0x63, 0x74, 0x69,
  213. 0x6f, 0x6e, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x32, 0x2e, 0x6d, 0x65, 0x73, 0x73,
  214. 0x61, 0x67, 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x62, 0x2e, 0x53, 0x33, 0x43, 0x69, 0x72, 0x63, 0x75,
  215. 0x69, 0x74, 0x42, 0x72, 0x65, 0x61, 0x6b, 0x65, 0x72, 0x4f, 0x70, 0x74, 0x69, 0x6f, 0x6e, 0x73,
  216. 0x2e, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x52, 0x07, 0x61,
  217. 0x63, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x1a, 0x3a, 0x0a, 0x0c, 0x41, 0x63, 0x74, 0x69, 0x6f, 0x6e,
  218. 0x73, 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x10, 0x0a, 0x03, 0x6b, 0x65, 0x79, 0x18, 0x01, 0x20,
  219. 0x01, 0x28, 0x09, 0x52, 0x03, 0x6b, 0x65, 0x79, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75,
  220. 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x03, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x02,
  221. 0x38, 0x01, 0x32, 0x5f, 0x0a, 0x09, 0x53, 0x65, 0x61, 0x77, 0x65, 0x65, 0x64, 0x53, 0x33, 0x12,
  222. 0x52, 0x0a, 0x09, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x65, 0x12, 0x20, 0x2e, 0x6d,
  223. 0x65, 0x73, 0x73, 0x61, 0x67, 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x62, 0x2e, 0x53, 0x33, 0x43, 0x6f,
  224. 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x65, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x21,
  225. 0x2e, 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x69, 0x6e, 0x67, 0x5f, 0x70, 0x62, 0x2e, 0x53, 0x33,
  226. 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x75, 0x72, 0x65, 0x52, 0x65, 0x73, 0x70, 0x6f, 0x6e, 0x73,
  227. 0x65, 0x22, 0x00, 0x42, 0x49, 0x0a, 0x10, 0x73, 0x65, 0x61, 0x77, 0x65, 0x65, 0x64, 0x66, 0x73,
  228. 0x2e, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x42, 0x07, 0x53, 0x33, 0x50, 0x72, 0x6f, 0x74, 0x6f,
  229. 0x5a, 0x2c, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x73, 0x65, 0x61,
  230. 0x77, 0x65, 0x65, 0x64, 0x66, 0x73, 0x2f, 0x73, 0x65, 0x61, 0x77, 0x65, 0x65, 0x64, 0x66, 0x73,
  231. 0x2f, 0x77, 0x65, 0x65, 0x64, 0x2f, 0x70, 0x62, 0x2f, 0x73, 0x33, 0x5f, 0x70, 0x62, 0x62, 0x06,
  232. 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  233. }
  234. var (
  235. file_s3_proto_rawDescOnce sync.Once
  236. file_s3_proto_rawDescData = file_s3_proto_rawDesc
  237. )
  238. func file_s3_proto_rawDescGZIP() []byte {
  239. file_s3_proto_rawDescOnce.Do(func() {
  240. file_s3_proto_rawDescData = protoimpl.X.CompressGZIP(file_s3_proto_rawDescData)
  241. })
  242. return file_s3_proto_rawDescData
  243. }
  244. var file_s3_proto_msgTypes = make([]protoimpl.MessageInfo, 6)
  245. var file_s3_proto_goTypes = []interface{}{
  246. (*S3ConfigureRequest)(nil), // 0: messaging_pb.S3ConfigureRequest
  247. (*S3ConfigureResponse)(nil), // 1: messaging_pb.S3ConfigureResponse
  248. (*S3CircuitBreakerConfig)(nil), // 2: messaging_pb.S3CircuitBreakerConfig
  249. (*S3CircuitBreakerOptions)(nil), // 3: messaging_pb.S3CircuitBreakerOptions
  250. nil, // 4: messaging_pb.S3CircuitBreakerConfig.BucketsEntry
  251. nil, // 5: messaging_pb.S3CircuitBreakerOptions.ActionsEntry
  252. }
  253. var file_s3_proto_depIdxs = []int32{
  254. 3, // 0: messaging_pb.S3CircuitBreakerConfig.global:type_name -> messaging_pb.S3CircuitBreakerOptions
  255. 4, // 1: messaging_pb.S3CircuitBreakerConfig.buckets:type_name -> messaging_pb.S3CircuitBreakerConfig.BucketsEntry
  256. 5, // 2: messaging_pb.S3CircuitBreakerOptions.actions:type_name -> messaging_pb.S3CircuitBreakerOptions.ActionsEntry
  257. 3, // 3: messaging_pb.S3CircuitBreakerConfig.BucketsEntry.value:type_name -> messaging_pb.S3CircuitBreakerOptions
  258. 0, // 4: messaging_pb.SeaweedS3.Configure:input_type -> messaging_pb.S3ConfigureRequest
  259. 1, // 5: messaging_pb.SeaweedS3.Configure:output_type -> messaging_pb.S3ConfigureResponse
  260. 5, // [5:6] is the sub-list for method output_type
  261. 4, // [4:5] is the sub-list for method input_type
  262. 4, // [4:4] is the sub-list for extension type_name
  263. 4, // [4:4] is the sub-list for extension extendee
  264. 0, // [0:4] is the sub-list for field type_name
  265. }
  266. func init() { file_s3_proto_init() }
  267. func file_s3_proto_init() {
  268. if File_s3_proto != nil {
  269. return
  270. }
  271. if !protoimpl.UnsafeEnabled {
  272. file_s3_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  273. switch v := v.(*S3ConfigureRequest); i {
  274. case 0:
  275. return &v.state
  276. case 1:
  277. return &v.sizeCache
  278. case 2:
  279. return &v.unknownFields
  280. default:
  281. return nil
  282. }
  283. }
  284. file_s3_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  285. switch v := v.(*S3ConfigureResponse); i {
  286. case 0:
  287. return &v.state
  288. case 1:
  289. return &v.sizeCache
  290. case 2:
  291. return &v.unknownFields
  292. default:
  293. return nil
  294. }
  295. }
  296. file_s3_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  297. switch v := v.(*S3CircuitBreakerConfig); i {
  298. case 0:
  299. return &v.state
  300. case 1:
  301. return &v.sizeCache
  302. case 2:
  303. return &v.unknownFields
  304. default:
  305. return nil
  306. }
  307. }
  308. file_s3_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
  309. switch v := v.(*S3CircuitBreakerOptions); i {
  310. case 0:
  311. return &v.state
  312. case 1:
  313. return &v.sizeCache
  314. case 2:
  315. return &v.unknownFields
  316. default:
  317. return nil
  318. }
  319. }
  320. }
  321. type x struct{}
  322. out := protoimpl.TypeBuilder{
  323. File: protoimpl.DescBuilder{
  324. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  325. RawDescriptor: file_s3_proto_rawDesc,
  326. NumEnums: 0,
  327. NumMessages: 6,
  328. NumExtensions: 0,
  329. NumServices: 1,
  330. },
  331. GoTypes: file_s3_proto_goTypes,
  332. DependencyIndexes: file_s3_proto_depIdxs,
  333. MessageInfos: file_s3_proto_msgTypes,
  334. }.Build()
  335. File_s3_proto = out.File
  336. file_s3_proto_rawDesc = nil
  337. file_s3_proto_goTypes = nil
  338. file_s3_proto_depIdxs = nil
  339. }