trace_config.pb.go 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555
  1. // Copyright 2018, OpenCensus Authors
  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.26.0
  17. // protoc v3.17.3
  18. // source: opencensus/proto/trace/v1/trace_config.proto
  19. package v1
  20. import (
  21. protoreflect "google.golang.org/protobuf/reflect/protoreflect"
  22. protoimpl "google.golang.org/protobuf/runtime/protoimpl"
  23. reflect "reflect"
  24. sync "sync"
  25. )
  26. const (
  27. // Verify that this generated code is sufficiently up-to-date.
  28. _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
  29. // Verify that runtime/protoimpl is sufficiently up-to-date.
  30. _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
  31. )
  32. // How spans should be sampled:
  33. // - Always off
  34. // - Always on
  35. // - Always follow the parent Span's decision (off if no parent).
  36. type ConstantSampler_ConstantDecision int32
  37. const (
  38. ConstantSampler_ALWAYS_OFF ConstantSampler_ConstantDecision = 0
  39. ConstantSampler_ALWAYS_ON ConstantSampler_ConstantDecision = 1
  40. ConstantSampler_ALWAYS_PARENT ConstantSampler_ConstantDecision = 2
  41. )
  42. // Enum value maps for ConstantSampler_ConstantDecision.
  43. var (
  44. ConstantSampler_ConstantDecision_name = map[int32]string{
  45. 0: "ALWAYS_OFF",
  46. 1: "ALWAYS_ON",
  47. 2: "ALWAYS_PARENT",
  48. }
  49. ConstantSampler_ConstantDecision_value = map[string]int32{
  50. "ALWAYS_OFF": 0,
  51. "ALWAYS_ON": 1,
  52. "ALWAYS_PARENT": 2,
  53. }
  54. )
  55. func (x ConstantSampler_ConstantDecision) Enum() *ConstantSampler_ConstantDecision {
  56. p := new(ConstantSampler_ConstantDecision)
  57. *p = x
  58. return p
  59. }
  60. func (x ConstantSampler_ConstantDecision) String() string {
  61. return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
  62. }
  63. func (ConstantSampler_ConstantDecision) Descriptor() protoreflect.EnumDescriptor {
  64. return file_opencensus_proto_trace_v1_trace_config_proto_enumTypes[0].Descriptor()
  65. }
  66. func (ConstantSampler_ConstantDecision) Type() protoreflect.EnumType {
  67. return &file_opencensus_proto_trace_v1_trace_config_proto_enumTypes[0]
  68. }
  69. func (x ConstantSampler_ConstantDecision) Number() protoreflect.EnumNumber {
  70. return protoreflect.EnumNumber(x)
  71. }
  72. // Deprecated: Use ConstantSampler_ConstantDecision.Descriptor instead.
  73. func (ConstantSampler_ConstantDecision) EnumDescriptor() ([]byte, []int) {
  74. return file_opencensus_proto_trace_v1_trace_config_proto_rawDescGZIP(), []int{2, 0}
  75. }
  76. // Global configuration of the trace service. All fields must be specified, or
  77. // the default (zero) values will be used for each type.
  78. type TraceConfig struct {
  79. state protoimpl.MessageState
  80. sizeCache protoimpl.SizeCache
  81. unknownFields protoimpl.UnknownFields
  82. // The global default sampler used to make decisions on span sampling.
  83. //
  84. // Types that are assignable to Sampler:
  85. // *TraceConfig_ProbabilitySampler
  86. // *TraceConfig_ConstantSampler
  87. // *TraceConfig_RateLimitingSampler
  88. Sampler isTraceConfig_Sampler `protobuf_oneof:"sampler"`
  89. // The global default max number of attributes per span.
  90. MaxNumberOfAttributes int64 `protobuf:"varint,4,opt,name=max_number_of_attributes,json=maxNumberOfAttributes,proto3" json:"max_number_of_attributes,omitempty"`
  91. // The global default max number of annotation events per span.
  92. MaxNumberOfAnnotations int64 `protobuf:"varint,5,opt,name=max_number_of_annotations,json=maxNumberOfAnnotations,proto3" json:"max_number_of_annotations,omitempty"`
  93. // The global default max number of message events per span.
  94. MaxNumberOfMessageEvents int64 `protobuf:"varint,6,opt,name=max_number_of_message_events,json=maxNumberOfMessageEvents,proto3" json:"max_number_of_message_events,omitempty"`
  95. // The global default max number of link entries per span.
  96. MaxNumberOfLinks int64 `protobuf:"varint,7,opt,name=max_number_of_links,json=maxNumberOfLinks,proto3" json:"max_number_of_links,omitempty"`
  97. }
  98. func (x *TraceConfig) Reset() {
  99. *x = TraceConfig{}
  100. if protoimpl.UnsafeEnabled {
  101. mi := &file_opencensus_proto_trace_v1_trace_config_proto_msgTypes[0]
  102. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  103. ms.StoreMessageInfo(mi)
  104. }
  105. }
  106. func (x *TraceConfig) String() string {
  107. return protoimpl.X.MessageStringOf(x)
  108. }
  109. func (*TraceConfig) ProtoMessage() {}
  110. func (x *TraceConfig) ProtoReflect() protoreflect.Message {
  111. mi := &file_opencensus_proto_trace_v1_trace_config_proto_msgTypes[0]
  112. if protoimpl.UnsafeEnabled && x != nil {
  113. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  114. if ms.LoadMessageInfo() == nil {
  115. ms.StoreMessageInfo(mi)
  116. }
  117. return ms
  118. }
  119. return mi.MessageOf(x)
  120. }
  121. // Deprecated: Use TraceConfig.ProtoReflect.Descriptor instead.
  122. func (*TraceConfig) Descriptor() ([]byte, []int) {
  123. return file_opencensus_proto_trace_v1_trace_config_proto_rawDescGZIP(), []int{0}
  124. }
  125. func (m *TraceConfig) GetSampler() isTraceConfig_Sampler {
  126. if m != nil {
  127. return m.Sampler
  128. }
  129. return nil
  130. }
  131. func (x *TraceConfig) GetProbabilitySampler() *ProbabilitySampler {
  132. if x, ok := x.GetSampler().(*TraceConfig_ProbabilitySampler); ok {
  133. return x.ProbabilitySampler
  134. }
  135. return nil
  136. }
  137. func (x *TraceConfig) GetConstantSampler() *ConstantSampler {
  138. if x, ok := x.GetSampler().(*TraceConfig_ConstantSampler); ok {
  139. return x.ConstantSampler
  140. }
  141. return nil
  142. }
  143. func (x *TraceConfig) GetRateLimitingSampler() *RateLimitingSampler {
  144. if x, ok := x.GetSampler().(*TraceConfig_RateLimitingSampler); ok {
  145. return x.RateLimitingSampler
  146. }
  147. return nil
  148. }
  149. func (x *TraceConfig) GetMaxNumberOfAttributes() int64 {
  150. if x != nil {
  151. return x.MaxNumberOfAttributes
  152. }
  153. return 0
  154. }
  155. func (x *TraceConfig) GetMaxNumberOfAnnotations() int64 {
  156. if x != nil {
  157. return x.MaxNumberOfAnnotations
  158. }
  159. return 0
  160. }
  161. func (x *TraceConfig) GetMaxNumberOfMessageEvents() int64 {
  162. if x != nil {
  163. return x.MaxNumberOfMessageEvents
  164. }
  165. return 0
  166. }
  167. func (x *TraceConfig) GetMaxNumberOfLinks() int64 {
  168. if x != nil {
  169. return x.MaxNumberOfLinks
  170. }
  171. return 0
  172. }
  173. type isTraceConfig_Sampler interface {
  174. isTraceConfig_Sampler()
  175. }
  176. type TraceConfig_ProbabilitySampler struct {
  177. ProbabilitySampler *ProbabilitySampler `protobuf:"bytes,1,opt,name=probability_sampler,json=probabilitySampler,proto3,oneof"`
  178. }
  179. type TraceConfig_ConstantSampler struct {
  180. ConstantSampler *ConstantSampler `protobuf:"bytes,2,opt,name=constant_sampler,json=constantSampler,proto3,oneof"`
  181. }
  182. type TraceConfig_RateLimitingSampler struct {
  183. RateLimitingSampler *RateLimitingSampler `protobuf:"bytes,3,opt,name=rate_limiting_sampler,json=rateLimitingSampler,proto3,oneof"`
  184. }
  185. func (*TraceConfig_ProbabilitySampler) isTraceConfig_Sampler() {}
  186. func (*TraceConfig_ConstantSampler) isTraceConfig_Sampler() {}
  187. func (*TraceConfig_RateLimitingSampler) isTraceConfig_Sampler() {}
  188. // Sampler that tries to uniformly sample traces with a given probability.
  189. // The probability of sampling a trace is equal to that of the specified probability.
  190. type ProbabilitySampler struct {
  191. state protoimpl.MessageState
  192. sizeCache protoimpl.SizeCache
  193. unknownFields protoimpl.UnknownFields
  194. // The desired probability of sampling. Must be within [0.0, 1.0].
  195. SamplingProbability float64 `protobuf:"fixed64,1,opt,name=samplingProbability,proto3" json:"samplingProbability,omitempty"`
  196. }
  197. func (x *ProbabilitySampler) Reset() {
  198. *x = ProbabilitySampler{}
  199. if protoimpl.UnsafeEnabled {
  200. mi := &file_opencensus_proto_trace_v1_trace_config_proto_msgTypes[1]
  201. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  202. ms.StoreMessageInfo(mi)
  203. }
  204. }
  205. func (x *ProbabilitySampler) String() string {
  206. return protoimpl.X.MessageStringOf(x)
  207. }
  208. func (*ProbabilitySampler) ProtoMessage() {}
  209. func (x *ProbabilitySampler) ProtoReflect() protoreflect.Message {
  210. mi := &file_opencensus_proto_trace_v1_trace_config_proto_msgTypes[1]
  211. if protoimpl.UnsafeEnabled && x != nil {
  212. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  213. if ms.LoadMessageInfo() == nil {
  214. ms.StoreMessageInfo(mi)
  215. }
  216. return ms
  217. }
  218. return mi.MessageOf(x)
  219. }
  220. // Deprecated: Use ProbabilitySampler.ProtoReflect.Descriptor instead.
  221. func (*ProbabilitySampler) Descriptor() ([]byte, []int) {
  222. return file_opencensus_proto_trace_v1_trace_config_proto_rawDescGZIP(), []int{1}
  223. }
  224. func (x *ProbabilitySampler) GetSamplingProbability() float64 {
  225. if x != nil {
  226. return x.SamplingProbability
  227. }
  228. return 0
  229. }
  230. // Sampler that always makes a constant decision on span sampling.
  231. type ConstantSampler struct {
  232. state protoimpl.MessageState
  233. sizeCache protoimpl.SizeCache
  234. unknownFields protoimpl.UnknownFields
  235. Decision ConstantSampler_ConstantDecision `protobuf:"varint,1,opt,name=decision,proto3,enum=opencensus.proto.trace.v1.ConstantSampler_ConstantDecision" json:"decision,omitempty"`
  236. }
  237. func (x *ConstantSampler) Reset() {
  238. *x = ConstantSampler{}
  239. if protoimpl.UnsafeEnabled {
  240. mi := &file_opencensus_proto_trace_v1_trace_config_proto_msgTypes[2]
  241. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  242. ms.StoreMessageInfo(mi)
  243. }
  244. }
  245. func (x *ConstantSampler) String() string {
  246. return protoimpl.X.MessageStringOf(x)
  247. }
  248. func (*ConstantSampler) ProtoMessage() {}
  249. func (x *ConstantSampler) ProtoReflect() protoreflect.Message {
  250. mi := &file_opencensus_proto_trace_v1_trace_config_proto_msgTypes[2]
  251. if protoimpl.UnsafeEnabled && x != nil {
  252. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  253. if ms.LoadMessageInfo() == nil {
  254. ms.StoreMessageInfo(mi)
  255. }
  256. return ms
  257. }
  258. return mi.MessageOf(x)
  259. }
  260. // Deprecated: Use ConstantSampler.ProtoReflect.Descriptor instead.
  261. func (*ConstantSampler) Descriptor() ([]byte, []int) {
  262. return file_opencensus_proto_trace_v1_trace_config_proto_rawDescGZIP(), []int{2}
  263. }
  264. func (x *ConstantSampler) GetDecision() ConstantSampler_ConstantDecision {
  265. if x != nil {
  266. return x.Decision
  267. }
  268. return ConstantSampler_ALWAYS_OFF
  269. }
  270. // Sampler that tries to sample with a rate per time window.
  271. type RateLimitingSampler struct {
  272. state protoimpl.MessageState
  273. sizeCache protoimpl.SizeCache
  274. unknownFields protoimpl.UnknownFields
  275. // Rate per second.
  276. Qps int64 `protobuf:"varint,1,opt,name=qps,proto3" json:"qps,omitempty"`
  277. }
  278. func (x *RateLimitingSampler) Reset() {
  279. *x = RateLimitingSampler{}
  280. if protoimpl.UnsafeEnabled {
  281. mi := &file_opencensus_proto_trace_v1_trace_config_proto_msgTypes[3]
  282. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  283. ms.StoreMessageInfo(mi)
  284. }
  285. }
  286. func (x *RateLimitingSampler) String() string {
  287. return protoimpl.X.MessageStringOf(x)
  288. }
  289. func (*RateLimitingSampler) ProtoMessage() {}
  290. func (x *RateLimitingSampler) ProtoReflect() protoreflect.Message {
  291. mi := &file_opencensus_proto_trace_v1_trace_config_proto_msgTypes[3]
  292. if protoimpl.UnsafeEnabled && x != nil {
  293. ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
  294. if ms.LoadMessageInfo() == nil {
  295. ms.StoreMessageInfo(mi)
  296. }
  297. return ms
  298. }
  299. return mi.MessageOf(x)
  300. }
  301. // Deprecated: Use RateLimitingSampler.ProtoReflect.Descriptor instead.
  302. func (*RateLimitingSampler) Descriptor() ([]byte, []int) {
  303. return file_opencensus_proto_trace_v1_trace_config_proto_rawDescGZIP(), []int{3}
  304. }
  305. func (x *RateLimitingSampler) GetQps() int64 {
  306. if x != nil {
  307. return x.Qps
  308. }
  309. return 0
  310. }
  311. var File_opencensus_proto_trace_v1_trace_config_proto protoreflect.FileDescriptor
  312. var file_opencensus_proto_trace_v1_trace_config_proto_rawDesc = []byte{
  313. 0x0a, 0x2c, 0x6f, 0x70, 0x65, 0x6e, 0x63, 0x65, 0x6e, 0x73, 0x75, 0x73, 0x2f, 0x70, 0x72, 0x6f,
  314. 0x74, 0x6f, 0x2f, 0x74, 0x72, 0x61, 0x63, 0x65, 0x2f, 0x76, 0x31, 0x2f, 0x74, 0x72, 0x61, 0x63,
  315. 0x65, 0x5f, 0x63, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x19,
  316. 0x6f, 0x70, 0x65, 0x6e, 0x63, 0x65, 0x6e, 0x73, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f,
  317. 0x2e, 0x74, 0x72, 0x61, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x22, 0x9c, 0x04, 0x0a, 0x0b, 0x54, 0x72,
  318. 0x61, 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x12, 0x60, 0x0a, 0x13, 0x70, 0x72, 0x6f,
  319. 0x62, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x5f, 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x72,
  320. 0x18, 0x01, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x6f, 0x70, 0x65, 0x6e, 0x63, 0x65, 0x6e,
  321. 0x73, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x74, 0x72, 0x61, 0x63, 0x65, 0x2e,
  322. 0x76, 0x31, 0x2e, 0x50, 0x72, 0x6f, 0x62, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x53, 0x61,
  323. 0x6d, 0x70, 0x6c, 0x65, 0x72, 0x48, 0x00, 0x52, 0x12, 0x70, 0x72, 0x6f, 0x62, 0x61, 0x62, 0x69,
  324. 0x6c, 0x69, 0x74, 0x79, 0x53, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x72, 0x12, 0x57, 0x0a, 0x10, 0x63,
  325. 0x6f, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x74, 0x5f, 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x72, 0x18,
  326. 0x02, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x6f, 0x70, 0x65, 0x6e, 0x63, 0x65, 0x6e, 0x73,
  327. 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x74, 0x72, 0x61, 0x63, 0x65, 0x2e, 0x76,
  328. 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x74, 0x53, 0x61, 0x6d, 0x70, 0x6c, 0x65,
  329. 0x72, 0x48, 0x00, 0x52, 0x0f, 0x63, 0x6f, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x74, 0x53, 0x61, 0x6d,
  330. 0x70, 0x6c, 0x65, 0x72, 0x12, 0x64, 0x0a, 0x15, 0x72, 0x61, 0x74, 0x65, 0x5f, 0x6c, 0x69, 0x6d,
  331. 0x69, 0x74, 0x69, 0x6e, 0x67, 0x5f, 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x72, 0x18, 0x03, 0x20,
  332. 0x01, 0x28, 0x0b, 0x32, 0x2e, 0x2e, 0x6f, 0x70, 0x65, 0x6e, 0x63, 0x65, 0x6e, 0x73, 0x75, 0x73,
  333. 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x74, 0x72, 0x61, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x2e,
  334. 0x52, 0x61, 0x74, 0x65, 0x4c, 0x69, 0x6d, 0x69, 0x74, 0x69, 0x6e, 0x67, 0x53, 0x61, 0x6d, 0x70,
  335. 0x6c, 0x65, 0x72, 0x48, 0x00, 0x52, 0x13, 0x72, 0x61, 0x74, 0x65, 0x4c, 0x69, 0x6d, 0x69, 0x74,
  336. 0x69, 0x6e, 0x67, 0x53, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x72, 0x12, 0x37, 0x0a, 0x18, 0x6d, 0x61,
  337. 0x78, 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x5f, 0x6f, 0x66, 0x5f, 0x61, 0x74, 0x74, 0x72,
  338. 0x69, 0x62, 0x75, 0x74, 0x65, 0x73, 0x18, 0x04, 0x20, 0x01, 0x28, 0x03, 0x52, 0x15, 0x6d, 0x61,
  339. 0x78, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x4f, 0x66, 0x41, 0x74, 0x74, 0x72, 0x69, 0x62, 0x75,
  340. 0x74, 0x65, 0x73, 0x12, 0x39, 0x0a, 0x19, 0x6d, 0x61, 0x78, 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65,
  341. 0x72, 0x5f, 0x6f, 0x66, 0x5f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73,
  342. 0x18, 0x05, 0x20, 0x01, 0x28, 0x03, 0x52, 0x16, 0x6d, 0x61, 0x78, 0x4e, 0x75, 0x6d, 0x62, 0x65,
  343. 0x72, 0x4f, 0x66, 0x41, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x12, 0x3e,
  344. 0x0a, 0x1c, 0x6d, 0x61, 0x78, 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x5f, 0x6f, 0x66, 0x5f,
  345. 0x6d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x5f, 0x65, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x18, 0x06,
  346. 0x20, 0x01, 0x28, 0x03, 0x52, 0x18, 0x6d, 0x61, 0x78, 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x4f,
  347. 0x66, 0x4d, 0x65, 0x73, 0x73, 0x61, 0x67, 0x65, 0x45, 0x76, 0x65, 0x6e, 0x74, 0x73, 0x12, 0x2d,
  348. 0x0a, 0x13, 0x6d, 0x61, 0x78, 0x5f, 0x6e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x5f, 0x6f, 0x66, 0x5f,
  349. 0x6c, 0x69, 0x6e, 0x6b, 0x73, 0x18, 0x07, 0x20, 0x01, 0x28, 0x03, 0x52, 0x10, 0x6d, 0x61, 0x78,
  350. 0x4e, 0x75, 0x6d, 0x62, 0x65, 0x72, 0x4f, 0x66, 0x4c, 0x69, 0x6e, 0x6b, 0x73, 0x42, 0x09, 0x0a,
  351. 0x07, 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x72, 0x22, 0x46, 0x0a, 0x12, 0x50, 0x72, 0x6f, 0x62,
  352. 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79, 0x53, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x72, 0x12, 0x30,
  353. 0x0a, 0x13, 0x73, 0x61, 0x6d, 0x70, 0x6c, 0x69, 0x6e, 0x67, 0x50, 0x72, 0x6f, 0x62, 0x61, 0x62,
  354. 0x69, 0x6c, 0x69, 0x74, 0x79, 0x18, 0x01, 0x20, 0x01, 0x28, 0x01, 0x52, 0x13, 0x73, 0x61, 0x6d,
  355. 0x70, 0x6c, 0x69, 0x6e, 0x67, 0x50, 0x72, 0x6f, 0x62, 0x61, 0x62, 0x69, 0x6c, 0x69, 0x74, 0x79,
  356. 0x22, 0xb0, 0x01, 0x0a, 0x0f, 0x43, 0x6f, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x74, 0x53, 0x61, 0x6d,
  357. 0x70, 0x6c, 0x65, 0x72, 0x12, 0x57, 0x0a, 0x08, 0x64, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e,
  358. 0x18, 0x01, 0x20, 0x01, 0x28, 0x0e, 0x32, 0x3b, 0x2e, 0x6f, 0x70, 0x65, 0x6e, 0x63, 0x65, 0x6e,
  359. 0x73, 0x75, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x74, 0x72, 0x61, 0x63, 0x65, 0x2e,
  360. 0x76, 0x31, 0x2e, 0x43, 0x6f, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x74, 0x53, 0x61, 0x6d, 0x70, 0x6c,
  361. 0x65, 0x72, 0x2e, 0x43, 0x6f, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x74, 0x44, 0x65, 0x63, 0x69, 0x73,
  362. 0x69, 0x6f, 0x6e, 0x52, 0x08, 0x64, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f, 0x6e, 0x22, 0x44, 0x0a,
  363. 0x10, 0x43, 0x6f, 0x6e, 0x73, 0x74, 0x61, 0x6e, 0x74, 0x44, 0x65, 0x63, 0x69, 0x73, 0x69, 0x6f,
  364. 0x6e, 0x12, 0x0e, 0x0a, 0x0a, 0x41, 0x4c, 0x57, 0x41, 0x59, 0x53, 0x5f, 0x4f, 0x46, 0x46, 0x10,
  365. 0x00, 0x12, 0x0d, 0x0a, 0x09, 0x41, 0x4c, 0x57, 0x41, 0x59, 0x53, 0x5f, 0x4f, 0x4e, 0x10, 0x01,
  366. 0x12, 0x11, 0x0a, 0x0d, 0x41, 0x4c, 0x57, 0x41, 0x59, 0x53, 0x5f, 0x50, 0x41, 0x52, 0x45, 0x4e,
  367. 0x54, 0x10, 0x02, 0x22, 0x27, 0x0a, 0x13, 0x52, 0x61, 0x74, 0x65, 0x4c, 0x69, 0x6d, 0x69, 0x74,
  368. 0x69, 0x6e, 0x67, 0x53, 0x61, 0x6d, 0x70, 0x6c, 0x65, 0x72, 0x12, 0x10, 0x0a, 0x03, 0x71, 0x70,
  369. 0x73, 0x18, 0x01, 0x20, 0x01, 0x28, 0x03, 0x52, 0x03, 0x71, 0x70, 0x73, 0x42, 0x95, 0x01, 0x0a,
  370. 0x1c, 0x69, 0x6f, 0x2e, 0x6f, 0x70, 0x65, 0x6e, 0x63, 0x65, 0x6e, 0x73, 0x75, 0x73, 0x2e, 0x70,
  371. 0x72, 0x6f, 0x74, 0x6f, 0x2e, 0x74, 0x72, 0x61, 0x63, 0x65, 0x2e, 0x76, 0x31, 0x42, 0x10, 0x54,
  372. 0x72, 0x61, 0x63, 0x65, 0x43, 0x6f, 0x6e, 0x66, 0x69, 0x67, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50,
  373. 0x01, 0x5a, 0x42, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x63, 0x65,
  374. 0x6e, 0x73, 0x75, 0x73, 0x2d, 0x69, 0x6e, 0x73, 0x74, 0x72, 0x75, 0x6d, 0x65, 0x6e, 0x74, 0x61,
  375. 0x74, 0x69, 0x6f, 0x6e, 0x2f, 0x6f, 0x70, 0x65, 0x6e, 0x63, 0x65, 0x6e, 0x73, 0x75, 0x73, 0x2d,
  376. 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x65, 0x6e, 0x2d, 0x67, 0x6f, 0x2f, 0x74, 0x72, 0x61,
  377. 0x63, 0x65, 0x2f, 0x76, 0x31, 0xea, 0x02, 0x1c, 0x4f, 0x70, 0x65, 0x6e, 0x43, 0x65, 0x6e, 0x73,
  378. 0x75, 0x73, 0x3a, 0x3a, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x3a, 0x3a, 0x54, 0x72, 0x61, 0x63, 0x65,
  379. 0x3a, 0x3a, 0x56, 0x31, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
  380. }
  381. var (
  382. file_opencensus_proto_trace_v1_trace_config_proto_rawDescOnce sync.Once
  383. file_opencensus_proto_trace_v1_trace_config_proto_rawDescData = file_opencensus_proto_trace_v1_trace_config_proto_rawDesc
  384. )
  385. func file_opencensus_proto_trace_v1_trace_config_proto_rawDescGZIP() []byte {
  386. file_opencensus_proto_trace_v1_trace_config_proto_rawDescOnce.Do(func() {
  387. file_opencensus_proto_trace_v1_trace_config_proto_rawDescData = protoimpl.X.CompressGZIP(file_opencensus_proto_trace_v1_trace_config_proto_rawDescData)
  388. })
  389. return file_opencensus_proto_trace_v1_trace_config_proto_rawDescData
  390. }
  391. var file_opencensus_proto_trace_v1_trace_config_proto_enumTypes = make([]protoimpl.EnumInfo, 1)
  392. var file_opencensus_proto_trace_v1_trace_config_proto_msgTypes = make([]protoimpl.MessageInfo, 4)
  393. var file_opencensus_proto_trace_v1_trace_config_proto_goTypes = []interface{}{
  394. (ConstantSampler_ConstantDecision)(0), // 0: opencensus.proto.trace.v1.ConstantSampler.ConstantDecision
  395. (*TraceConfig)(nil), // 1: opencensus.proto.trace.v1.TraceConfig
  396. (*ProbabilitySampler)(nil), // 2: opencensus.proto.trace.v1.ProbabilitySampler
  397. (*ConstantSampler)(nil), // 3: opencensus.proto.trace.v1.ConstantSampler
  398. (*RateLimitingSampler)(nil), // 4: opencensus.proto.trace.v1.RateLimitingSampler
  399. }
  400. var file_opencensus_proto_trace_v1_trace_config_proto_depIdxs = []int32{
  401. 2, // 0: opencensus.proto.trace.v1.TraceConfig.probability_sampler:type_name -> opencensus.proto.trace.v1.ProbabilitySampler
  402. 3, // 1: opencensus.proto.trace.v1.TraceConfig.constant_sampler:type_name -> opencensus.proto.trace.v1.ConstantSampler
  403. 4, // 2: opencensus.proto.trace.v1.TraceConfig.rate_limiting_sampler:type_name -> opencensus.proto.trace.v1.RateLimitingSampler
  404. 0, // 3: opencensus.proto.trace.v1.ConstantSampler.decision:type_name -> opencensus.proto.trace.v1.ConstantSampler.ConstantDecision
  405. 4, // [4:4] is the sub-list for method output_type
  406. 4, // [4:4] is the sub-list for method input_type
  407. 4, // [4:4] is the sub-list for extension type_name
  408. 4, // [4:4] is the sub-list for extension extendee
  409. 0, // [0:4] is the sub-list for field type_name
  410. }
  411. func init() { file_opencensus_proto_trace_v1_trace_config_proto_init() }
  412. func file_opencensus_proto_trace_v1_trace_config_proto_init() {
  413. if File_opencensus_proto_trace_v1_trace_config_proto != nil {
  414. return
  415. }
  416. if !protoimpl.UnsafeEnabled {
  417. file_opencensus_proto_trace_v1_trace_config_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
  418. switch v := v.(*TraceConfig); i {
  419. case 0:
  420. return &v.state
  421. case 1:
  422. return &v.sizeCache
  423. case 2:
  424. return &v.unknownFields
  425. default:
  426. return nil
  427. }
  428. }
  429. file_opencensus_proto_trace_v1_trace_config_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
  430. switch v := v.(*ProbabilitySampler); i {
  431. case 0:
  432. return &v.state
  433. case 1:
  434. return &v.sizeCache
  435. case 2:
  436. return &v.unknownFields
  437. default:
  438. return nil
  439. }
  440. }
  441. file_opencensus_proto_trace_v1_trace_config_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} {
  442. switch v := v.(*ConstantSampler); i {
  443. case 0:
  444. return &v.state
  445. case 1:
  446. return &v.sizeCache
  447. case 2:
  448. return &v.unknownFields
  449. default:
  450. return nil
  451. }
  452. }
  453. file_opencensus_proto_trace_v1_trace_config_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} {
  454. switch v := v.(*RateLimitingSampler); i {
  455. case 0:
  456. return &v.state
  457. case 1:
  458. return &v.sizeCache
  459. case 2:
  460. return &v.unknownFields
  461. default:
  462. return nil
  463. }
  464. }
  465. }
  466. file_opencensus_proto_trace_v1_trace_config_proto_msgTypes[0].OneofWrappers = []interface{}{
  467. (*TraceConfig_ProbabilitySampler)(nil),
  468. (*TraceConfig_ConstantSampler)(nil),
  469. (*TraceConfig_RateLimitingSampler)(nil),
  470. }
  471. type x struct{}
  472. out := protoimpl.TypeBuilder{
  473. File: protoimpl.DescBuilder{
  474. GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
  475. RawDescriptor: file_opencensus_proto_trace_v1_trace_config_proto_rawDesc,
  476. NumEnums: 1,
  477. NumMessages: 4,
  478. NumExtensions: 0,
  479. NumServices: 0,
  480. },
  481. GoTypes: file_opencensus_proto_trace_v1_trace_config_proto_goTypes,
  482. DependencyIndexes: file_opencensus_proto_trace_v1_trace_config_proto_depIdxs,
  483. EnumInfos: file_opencensus_proto_trace_v1_trace_config_proto_enumTypes,
  484. MessageInfos: file_opencensus_proto_trace_v1_trace_config_proto_msgTypes,
  485. }.Build()
  486. File_opencensus_proto_trace_v1_trace_config_proto = out.File
  487. file_opencensus_proto_trace_v1_trace_config_proto_rawDesc = nil
  488. file_opencensus_proto_trace_v1_trace_config_proto_goTypes = nil
  489. file_opencensus_proto_trace_v1_trace_config_proto_depIdxs = nil
  490. }