multilog.pb.go 10 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278
  1. // Copyright 2017 Google LLC. All Rights Reserved.
  2. //
  3. // Licensed under the Apache License, Version 2.0 (the "License");
  4. // you may not use this file except in compliance with the License.
  5. // You may obtain a copy of the License at
  6. //
  7. // http://www.apache.org/licenses/LICENSE-2.0
  8. //
  9. // Unless required by applicable law or agreed to in writing, software
  10. // distributed under the License is distributed on an "AS IS" BASIS,
  11. // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  12. // See the License for the specific language governing permissions and
  13. // limitations under the License.
  14. // Code generated by protoc-gen-go. DO NOT EDIT.
  15. // versions:
  16. // protoc-gen-go v1.28.0
  17. // protoc v3.20.1
  18. // source: client/configpb/multilog.proto
  19. package configpb
  20. import (
  21. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  22. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  23. timestamppb "google.golang.org/protobuf/types/known/timestamppb"
  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. // TemporalLogConfig is a set of LogShardConfig messages, whose
  34. // time limits should be contiguous.
  35. type TemporalLogConfig struct {
  36. state protoimpl.MessageState
  37. sizeCache protoimpl.SizeCache
  38. unknownFields protoimpl.UnknownFields
  39. Shard []*LogShardConfig `protobuf:"bytes,1,rep,name=shard,proto3" json:"shard,omitempty"`
  40. }
  41. func (x *TemporalLogConfig) Reset() {
  42. *x = TemporalLogConfig{}
  43. if protoimpl.UnsafeEnabled {
  44. mi := &file_client_configpb_multilog_proto_msgTypes[0]
  45. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  46. ms.StoreMessageInfo(mi)
  47. }
  48. }
  49. func (x *TemporalLogConfig) String() string {
  50. return protoimpl.X.MessageStringOf(x)
  51. }
  52. func (*TemporalLogConfig) ProtoMessage() {}
  53. func (x *TemporalLogConfig) ProtoReflect() protoreflect.Message {
  54. mi := &file_client_configpb_multilog_proto_msgTypes[0]
  55. if protoimpl.UnsafeEnabled && x != nil {
  56. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  57. if ms.LoadMessageInfo() == nil {
  58. ms.StoreMessageInfo(mi)
  59. }
  60. return ms
  61. }
  62. return mi.MessageOf(x)
  63. }
  64. // Deprecated: Use TemporalLogConfig.ProtoReflect.Descriptor instead.
  65. func (*TemporalLogConfig) Descriptor() ([]byte, []int) {
  66. return file_client_configpb_multilog_proto_rawDescGZIP(), []int{0}
  67. }
  68. func (x *TemporalLogConfig) GetShard() []*LogShardConfig {
  69. if x != nil {
  70. return x.Shard
  71. }
  72. return nil
  73. }
  74. // LogShardConfig describes the acceptable date range for a single shard of a temporal
  75. // log.
  76. type LogShardConfig struct {
  77. state protoimpl.MessageState
  78. sizeCache protoimpl.SizeCache
  79. unknownFields protoimpl.UnknownFields
  80. Uri string `protobuf:"bytes,1,opt,name=uri,proto3" json:"uri,omitempty"`
  81. // The log's public key in DER-encoded PKIX form.
  82. PublicKeyDer []byte `protobuf:"bytes,2,opt,name=public_key_der,json=publicKeyDer,proto3" json:"public_key_der,omitempty"`
  83. // not_after_start defines the start of the range of acceptable NotAfter
  84. // values, inclusive.
  85. // Leaving this unset implies no lower bound to the range.
  86. NotAfterStart *timestamppb.Timestamp `protobuf:"bytes,3,opt,name=not_after_start,json=notAfterStart,proto3" json:"not_after_start,omitempty"`
  87. // not_after_limit defines the end of the range of acceptable NotAfter values,
  88. // exclusive.
  89. // Leaving this unset implies no upper bound to the range.
  90. NotAfterLimit *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=not_after_limit,json=notAfterLimit,proto3" json:"not_after_limit,omitempty"`
  91. }
  92. func (x *LogShardConfig) Reset() {
  93. *x = LogShardConfig{}
  94. if protoimpl.UnsafeEnabled {
  95. mi := &file_client_configpb_multilog_proto_msgTypes[1]
  96. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  97. ms.StoreMessageInfo(mi)
  98. }
  99. }
  100. func (x *LogShardConfig) String() string {
  101. return protoimpl.X.MessageStringOf(x)
  102. }
  103. func (*LogShardConfig) ProtoMessage() {}
  104. func (x *LogShardConfig) ProtoReflect() protoreflect.Message {
  105. mi := &file_client_configpb_multilog_proto_msgTypes[1]
  106. if protoimpl.UnsafeEnabled && x != nil {
  107. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  108. if ms.LoadMessageInfo() == nil {
  109. ms.StoreMessageInfo(mi)
  110. }
  111. return ms
  112. }
  113. return mi.MessageOf(x)
  114. }
  115. // Deprecated: Use LogShardConfig.ProtoReflect.Descriptor instead.
  116. func (*LogShardConfig) Descriptor() ([]byte, []int) {
  117. return file_client_configpb_multilog_proto_rawDescGZIP(), []int{1}
  118. }
  119. func (x *LogShardConfig) GetUri() string {
  120. if x != nil {
  121. return x.Uri
  122. }
  123. return ""
  124. }
  125. func (x *LogShardConfig) GetPublicKeyDer() []byte {
  126. if x != nil {
  127. return x.PublicKeyDer
  128. }
  129. return nil
  130. }
  131. func (x *LogShardConfig) GetNotAfterStart() *timestamppb.Timestamp {
  132. if x != nil {
  133. return x.NotAfterStart
  134. }
  135. return nil
  136. }
  137. func (x *LogShardConfig) GetNotAfterLimit() *timestamppb.Timestamp {
  138. if x != nil {
  139. return x.NotAfterLimit
  140. }
  141. return nil
  142. }
  143. var File_client_configpb_multilog_proto protoreflect.FileDescriptor
  144. var file_client_configpb_multilog_proto_rawDesc = []byte{
  145. 0x0a, 0x1e, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x70,
  146. 0x62, 0x2f, 0x6d, 0x75, 0x6c, 0x74, 0x69, 0x6c, 0x6f, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  147. 0x12, 0x08, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x70, 0x62, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67,
  148. 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65,
  149. 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x43, 0x0a, 0x11, 0x54,
  150. 0x65, 0x6d, 0x70, 0x6f, 0x72, 0x61, 0x6c, 0x4c, 0x6f, 0x67, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67,
  151. 0x12, 0x2e, 0x0a, 0x05, 0x73, 0x68, 0x61, 0x72, 0x64, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32,
  152. 0x18, 0x2e, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x70, 0x62, 0x2e, 0x4c, 0x6f, 0x67, 0x53, 0x68,
  153. 0x61, 0x72, 0x64, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x52, 0x05, 0x73, 0x68, 0x61, 0x72, 0x64,
  154. 0x22, 0xd0, 0x01, 0x0a, 0x0e, 0x4c, 0x6f, 0x67, 0x53, 0x68, 0x61, 0x72, 0x64, 0x43, 0x6f, 0x6e,
  155. 0x66, 0x69, 0x67, 0x12, 0x10, 0x0a, 0x03, 0x75, 0x72, 0x69, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09,
  156. 0x52, 0x03, 0x75, 0x72, 0x69, 0x12, 0x24, 0x0a, 0x0e, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x5f,
  157. 0x6b, 0x65, 0x79, 0x5f, 0x64, 0x65, 0x72, 0x18, 0x02, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x0c, 0x70,
  158. 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x44, 0x65, 0x72, 0x12, 0x42, 0x0a, 0x0f, 0x6e,
  159. 0x6f, 0x74, 0x5f, 0x61, 0x66, 0x74, 0x65, 0x72, 0x5f, 0x73, 0x74, 0x61, 0x72, 0x74, 0x18, 0x03,
  160. 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72,
  161. 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70,
  162. 0x52, 0x0d, 0x6e, 0x6f, 0x74, 0x41, 0x66, 0x74, 0x65, 0x72, 0x53, 0x74, 0x61, 0x72, 0x74, 0x12,
  163. 0x42, 0x0a, 0x0f, 0x6e, 0x6f, 0x74, 0x5f, 0x61, 0x66, 0x74, 0x65, 0x72, 0x5f, 0x6c, 0x69, 0x6d,
  164. 0x69, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
  165. 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73,
  166. 0x74, 0x61, 0x6d, 0x70, 0x52, 0x0d, 0x6e, 0x6f, 0x74, 0x41, 0x66, 0x74, 0x65, 0x72, 0x4c, 0x69,
  167. 0x6d, 0x69, 0x74, 0x42, 0x48, 0x5a, 0x46, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f,
  168. 0x6d, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x65, 0x72, 0x74, 0x69, 0x66, 0x69,
  169. 0x63, 0x61, 0x74, 0x65, 0x2d, 0x74, 0x72, 0x61, 0x6e, 0x73, 0x70, 0x61, 0x72, 0x65, 0x6e, 0x63,
  170. 0x79, 0x2d, 0x67, 0x6f, 0x2f, 0x63, 0x6c, 0x69, 0x65, 0x6e, 0x74, 0x2f, 0x6d, 0x75, 0x6c, 0x74,
  171. 0x69, 0x6c, 0x6f, 0x67, 0x2f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x70, 0x62, 0x62, 0x06, 0x70,
  172. 0x72, 0x6f, 0x74, 0x6f, 0x33,
  173. }
  174. var (
  175. file_client_configpb_multilog_proto_rawDescOnce sync.Once
  176. file_client_configpb_multilog_proto_rawDescData = file_client_configpb_multilog_proto_rawDesc
  177. )
  178. func file_client_configpb_multilog_proto_rawDescGZIP() []byte {
  179. file_client_configpb_multilog_proto_rawDescOnce.Do(func() {
  180. file_client_configpb_multilog_proto_rawDescData = protoimpl.X.CompressGZIP(file_client_configpb_multilog_proto_rawDescData)
  181. })
  182. return file_client_configpb_multilog_proto_rawDescData
  183. }
  184. var file_client_configpb_multilog_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
  185. var file_client_configpb_multilog_proto_goTypes = []interface{}{
  186. (*TemporalLogConfig)(nil), // 0: configpb.TemporalLogConfig
  187. (*LogShardConfig)(nil), // 1: configpb.LogShardConfig
  188. (*timestamppb.Timestamp)(nil), // 2: google.protobuf.Timestamp
  189. }
  190. var file_client_configpb_multilog_proto_depIdxs = []int32{
  191. 1, // 0: configpb.TemporalLogConfig.shard:type_name -> configpb.LogShardConfig
  192. 2, // 1: configpb.LogShardConfig.not_after_start:type_name -> google.protobuf.Timestamp
  193. 2, // 2: configpb.LogShardConfig.not_after_limit:type_name -> google.protobuf.Timestamp
  194. 3, // [3:3] is the sub-list for method output_type
  195. 3, // [3:3] is the sub-list for method input_type
  196. 3, // [3:3] is the sub-list for extension type_name
  197. 3, // [3:3] is the sub-list for extension extendee
  198. 0, // [0:3] is the sub-list for field type_name
  199. }
  200. func init() { file_client_configpb_multilog_proto_init() }
  201. func file_client_configpb_multilog_proto_init() {
  202. if File_client_configpb_multilog_proto != nil {
  203. return
  204. }
  205. if !protoimpl.UnsafeEnabled {
  206. file_client_configpb_multilog_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  207. switch v := v.(*TemporalLogConfig); i {
  208. case 0:
  209. return &v.state
  210. case 1:
  211. return &v.sizeCache
  212. case 2:
  213. return &v.unknownFields
  214. default:
  215. return nil
  216. }
  217. }
  218. file_client_configpb_multilog_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  219. switch v := v.(*LogShardConfig); i {
  220. case 0:
  221. return &v.state
  222. case 1:
  223. return &v.sizeCache
  224. case 2:
  225. return &v.unknownFields
  226. default:
  227. return nil
  228. }
  229. }
  230. }
  231. type x struct{}
  232. out := protoimpl.TypeBuilder{
  233. File: protoimpl.DescBuilder{
  234. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  235. RawDescriptor: file_client_configpb_multilog_proto_rawDesc,
  236. NumEnums: 0,
  237. NumMessages: 2,
  238. NumExtensions: 0,
  239. NumServices: 0,
  240. },
  241. GoTypes: file_client_configpb_multilog_proto_goTypes,
  242. DependencyIndexes: file_client_configpb_multilog_proto_depIdxs,
  243. MessageInfos: file_client_configpb_multilog_proto_msgTypes,
  244. }.Build()
  245. File_client_configpb_multilog_proto = out.File
  246. file_client_configpb_multilog_proto_rawDesc = nil
  247. file_client_configpb_multilog_proto_goTypes = nil
  248. file_client_configpb_multilog_proto_depIdxs = nil
  249. }