Debian Codegraph @

m3/thrift/v2/m3.go

raw symbols SCIP
1 // Autogenerated by Thrift Compiler (0.9.3)
2 // DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
3
4 package v2scip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/m3/thrift/v2`/
5
6 import (
7 "bytesscip-go gomod github.com/golang/go/src go1.20 bytes/"
8 "fmtscip-go gomod github.com/golang/go/src go1.20 fmt/"
9 "github.com/uber-go/tally/v4/thirdparty/github.com/apache/thrift/lib/go/thriftscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/thirdparty/github.com/apache/thrift/lib/go/thrift`/"
10 )
11
12 // (needed to ensure safety because of naive import list construction.)
13 var _ = thriftscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/thirdparty/github.com/apache/thrift/lib/go/thrift`/.ZEROscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/thirdparty/github.com/apache/thrift/lib/go/thrift`/ZERO.
14 var _ = fmtscip-go gomod github.com/golang/go/src go1.20 fmt/.Printfscip-go gomod github.com/golang/go/src go1.20 fmt/Printf().
15 var _ = bytesscip-go gomod github.com/golang/go/src go1.20 bytes/.Equalscip-go gomod github.com/golang/go/src go1.20 bytes/Equal().
16
17 type M3scip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/m3/thrift/v2`/M3# interface {
18 // Parameters:
19 // - Batch
20 EmitMetricBatchV2scip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/m3/thrift/v2`/M3#EmitMetricBatchV2.(batch MetricBatchscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/m3/thrift/v2`/MetricBatch#) (err error)
21 }
22
23 type M3Clientscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/m3/thrift/v2`/M3Client# struct {
24 Transportscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/m3/thrift/v2`/M3Client#Transport. thriftscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/thirdparty/github.com/apache/thrift/lib/go/thrift`/.TTransportscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/thirdparty/github.com/apache/thrift/lib/go/thrift`/TTransport#
25 ProtocolFactoryscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/m3/thrift/v2`/M3Client#ProtocolFactory. thriftscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/thirdparty/github.com/apache/thrift/lib/go/thrift`/.TProtocolFactoryscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/thirdparty/github.com/apache/thrift/lib/go/thrift`/TProtocolFactory#
26 InputProtocolscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/m3/thrift/v2`/M3Client#InputProtocol. thriftscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/thirdparty/github.com/apache/thrift/lib/go/thrift`/.TProtocolscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/thirdparty/github.com/apache/thrift/lib/go/thrift`/TProtocol#
27 OutputProtocolscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/m3/thrift/v2`/M3Client#OutputProtocol. thriftscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/thirdparty/github.com/apache/thrift/lib/go/thrift`/.TProtocolscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/thirdparty/github.com/apache/thrift/lib/go/thrift`/TProtocol#
28 SeqIdscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/m3/thrift/v2`/M3Client#SeqId. int32
29 }
30
31 func NewM3ClientFactoryscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/m3/thrift/v2`/NewM3ClientFactory().(t thriftscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/thirdparty/github.com/apache/thrift/lib/go/thrift`/.TTransportscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/thirdparty/github.com/apache/thrift/lib/go/thrift`/TTransport#, f thriftscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/thirdparty/github.com/apache/thrift/lib/go/thrift`/.TProtocolFactoryscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/thirdparty/github.com/apache/thrift/lib/go/thrift`/TProtocolFactory#) *M3Clientscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/m3/thrift/v2`/M3Client# {
32 return &M3Clientscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/m3/thrift/v2`/M3Client#{Transportscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/m3/thrift/v2`/M3Client#Transport.: t,
33 ProtocolFactoryscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/m3/thrift/v2`/M3Client#ProtocolFactory.: f,
34 InputProtocolscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/m3/thrift/v2`/M3Client#InputProtocol.: f.GetProtocolscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/thirdparty/github.com/apache/thrift/lib/go/thrift`/TProtocolFactory#GetProtocol.(t),
35 OutputProtocolscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/m3/thrift/v2`/M3Client#OutputProtocol.: f.GetProtocolscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/thirdparty/github.com/apache/thrift/lib/go/thrift`/TProtocolFactory#GetProtocol.(t),
36 SeqIdscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/m3/thrift/v2`/M3Client#SeqId.: 0,
37 }
38 }
39
40 func NewM3ClientProtocolscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/m3/thrift/v2`/NewM3ClientProtocol().(t thriftscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/thirdparty/github.com/apache/thrift/lib/go/thrift`/.TTransportscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/thirdparty/github.com/apache/thrift/lib/go/thrift`/TTransport#, iprot thriftscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/thirdparty/github.com/apache/thrift/lib/go/thrift`/.TProtocolscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/thirdparty/github.com/apache/thrift/lib/go/thrift`/TProtocol#, oprot thriftscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/thirdparty/github.com/apache/thrift/lib/go/thrift`/.TProtocolscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/thirdparty/github.com/apache/thrift/lib/go/thrift`/TProtocol#) *M3Clientscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/m3/thrift/v2`/M3Client# {
41 return &M3Clientscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/m3/thrift/v2`/M3Client#{Transportscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/m3/thrift/v2`/M3Client#Transport.: t,
42 ProtocolFactoryscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/m3/thrift/v2`/M3Client#ProtocolFactory.: nil,
43 InputProtocolscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/m3/thrift/v2`/M3Client#InputProtocol.: iprot,
44 OutputProtocolscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/m3/thrift/v2`/M3Client#OutputProtocol.: oprot,
45 SeqIdscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/m3/thrift/v2`/M3Client#SeqId.: 0,
46 }
47 }
48
49 // Parameters:
50 // - Batch
51 func (p *M3Clientscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/m3/thrift/v2`/M3Client#) EmitMetricBatchV2scip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/m3/thrift/v2`/M3Client#EmitMetricBatchV2().(batch MetricBatchscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/m3/thrift/v2`/MetricBatch#) (err error) {
52 if err = p.sendEmitMetricBatchV2scip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/m3/thrift/v2`/M3Client#sendEmitMetricBatchV2().(batch); err != nil {
53 return
54 }
55 return
56 }
57
58 func (p *M3Clientscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/m3/thrift/v2`/M3Client#) sendEmitMetricBatchV2scip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/m3/thrift/v2`/M3Client#sendEmitMetricBatchV2().(batch MetricBatchscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/m3/thrift/v2`/MetricBatch#) (err error) {
59 oprot := p.OutputProtocolscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/m3/thrift/v2`/M3Client#OutputProtocol.
60 if oprot == nil {
61 oprot = p.ProtocolFactoryscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/m3/thrift/v2`/M3Client#ProtocolFactory..GetProtocolscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/thirdparty/github.com/apache/thrift/lib/go/thrift`/TProtocolFactory#GetProtocol.(p.Transportscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/m3/thrift/v2`/M3Client#Transport.)
62 p.OutputProtocolscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/m3/thrift/v2`/M3Client#OutputProtocol. = oprot
63 }
64 p.SeqIdscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/m3/thrift/v2`/M3Client#SeqId.++
65 if err = oprot.WriteMessageBeginscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/thirdparty/github.com/apache/thrift/lib/go/thrift`/TProtocol#WriteMessageBegin.("emitMetricBatchV2", thriftscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/thirdparty/github.com/apache/thrift/lib/go/thrift`/.ONEWAYscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/thirdparty/github.com/apache/thrift/lib/go/thrift`/ONEWAY., p.SeqIdscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/m3/thrift/v2`/M3Client#SeqId.); err != nil {
66 return
67 }
68 args := M3EmitMetricBatchV2Argsscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/m3/thrift/v2`/M3EmitMetricBatchV2Args#{
69 Batchscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/m3/thrift/v2`/M3EmitMetricBatchV2Args#Batch.: batch,
70 }
71 if err = args.Writescip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/m3/thrift/v2`/M3EmitMetricBatchV2Args#Write().(oprot); err != nil {
72 return
73 }
74 if err = oprot.WriteMessageEndscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/thirdparty/github.com/apache/thrift/lib/go/thrift`/TProtocol#WriteMessageEnd.(); err != nil {
75 return
76 }
77 return oprot.Flushscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/thirdparty/github.com/apache/thrift/lib/go/thrift`/TProtocol#Flush.()
78 }
79
80 type M3Processorscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/m3/thrift/v2`/M3Processor# struct {
81 processorMapscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/m3/thrift/v2`/M3Processor#processorMap. map[string]thriftscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/thirdparty/github.com/apache/thrift/lib/go/thrift`/.TProcessorFunctionscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/thirdparty/github.com/apache/thrift/lib/go/thrift`/TProcessorFunction#
82 handlerscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/m3/thrift/v2`/M3Processor#handler. M3scip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/m3/thrift/v2`/M3#
83 }
84
85 func (p *M3Processorscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/m3/thrift/v2`/M3Processor#) AddToProcessorMapscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/m3/thrift/v2`/M3Processor#AddToProcessorMap().(key string, processor thriftscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/thirdparty/github.com/apache/thrift/lib/go/thrift`/.TProcessorFunctionscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/thirdparty/github.com/apache/thrift/lib/go/thrift`/TProcessorFunction#) {
86 p.processorMapscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/m3/thrift/v2`/M3Processor#processorMap.[key] = processor
87 }
88
89 func (p *M3Processorscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/m3/thrift/v2`/M3Processor#) GetProcessorFunctionscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/m3/thrift/v2`/M3Processor#GetProcessorFunction().(key string) (processor thriftscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/thirdparty/github.com/apache/thrift/lib/go/thrift`/.TProcessorFunctionscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/thirdparty/github.com/apache/thrift/lib/go/thrift`/TProcessorFunction#, ok bool) {
90 processor, ok = p.processorMapscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/m3/thrift/v2`/M3Processor#processorMap.[key]
91 return processor, ok
92 }
93
94 func (p *M3Processorscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/m3/thrift/v2`/M3Processor#) ProcessorMapscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/m3/thrift/v2`/M3Processor#ProcessorMap().() map[string]thriftscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/thirdparty/github.com/apache/thrift/lib/go/thrift`/.TProcessorFunctionscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/thirdparty/github.com/apache/thrift/lib/go/thrift`/TProcessorFunction# {
95 return p.processorMapscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/m3/thrift/v2`/M3Processor#processorMap.
96 }
97
98 func NewM3Processorscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/m3/thrift/v2`/NewM3Processor().(handler M3scip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/m3/thrift/v2`/M3#) *M3Processorscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/m3/thrift/v2`/M3Processor# {
99
100 self3 := &M3Processorscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/m3/thrift/v2`/M3Processor#{handlerscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/m3/thrift/v2`/M3Processor#handler.: handler, processorMapscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/m3/thrift/v2`/M3Processor#processorMap.: make(map[string]thriftscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/thirdparty/github.com/apache/thrift/lib/go/thrift`/.TProcessorFunctionscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/thirdparty/github.com/apache/thrift/lib/go/thrift`/TProcessorFunction#)}
101 self3.processorMapscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/m3/thrift/v2`/M3Processor#processorMap.["emitMetricBatchV2"] = &m3ProcessorEmitMetricBatchV2scip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/m3/thrift/v2`/m3ProcessorEmitMetricBatchV2#{handlerscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/m3/thrift/v2`/m3ProcessorEmitMetricBatchV2#handler.: handler}
102 return self3
103 }
104
105 func (p *M3Processorscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/m3/thrift/v2`/M3Processor#) Processscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/m3/thrift/v2`/M3Processor#Process().(iprot, oprot thriftscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/thirdparty/github.com/apache/thrift/lib/go/thrift`/.TProtocolscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/thirdparty/github.com/apache/thrift/lib/go/thrift`/TProtocol#) (success bool, err thriftscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/thirdparty/github.com/apache/thrift/lib/go/thrift`/.TExceptionscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/thirdparty/github.com/apache/thrift/lib/go/thrift`/TException#) {
106 name, _, seqId, err := iprot.ReadMessageBeginscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/thirdparty/github.com/apache/thrift/lib/go/thrift`/TProtocol#ReadMessageBegin.()
107 if err != nil {
108 return false, err
109 }
110 if processor, ok := p.GetProcessorFunctionscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/m3/thrift/v2`/M3Processor#GetProcessorFunction().(name); ok {
111 return processor.Processscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/thirdparty/github.com/apache/thrift/lib/go/thrift`/TProcessorFunction#Process.(seqId, iprot, oprot)
112 }
113 iprot.Skipscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/thirdparty/github.com/apache/thrift/lib/go/thrift`/TProtocol#Skip.(thriftscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/thirdparty/github.com/apache/thrift/lib/go/thrift`/.STRUCTscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/thirdparty/github.com/apache/thrift/lib/go/thrift`/STRUCT.)
114 iprot.ReadMessageEndscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/thirdparty/github.com/apache/thrift/lib/go/thrift`/TProtocol#ReadMessageEnd.()
115 x4 := thriftscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/thirdparty/github.com/apache/thrift/lib/go/thrift`/.NewTApplicationExceptionscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/thirdparty/github.com/apache/thrift/lib/go/thrift`/NewTApplicationException().(thriftscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/thirdparty/github.com/apache/thrift/lib/go/thrift`/.UNKNOWN_METHODscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/thirdparty/github.com/apache/thrift/lib/go/thrift`/UNKNOWN_METHOD., "Unknown function "+name)
116 oprot.WriteMessageBeginscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/thirdparty/github.com/apache/thrift/lib/go/thrift`/TProtocol#WriteMessageBegin.(name, thriftscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/thirdparty/github.com/apache/thrift/lib/go/thrift`/.EXCEPTIONscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/thirdparty/github.com/apache/thrift/lib/go/thrift`/EXCEPTION., seqId)
117 x4.Writescip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/thirdparty/github.com/apache/thrift/lib/go/thrift`/TApplicationException#Write.(oprot)
118 oprot.WriteMessageEndscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/thirdparty/github.com/apache/thrift/lib/go/thrift`/TProtocol#WriteMessageEnd.()
119 oprot.Flushscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/thirdparty/github.com/apache/thrift/lib/go/thrift`/TProtocol#Flush.()
120 return false, x4
121
122 }
123
124 type m3ProcessorEmitMetricBatchV2scip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/m3/thrift/v2`/m3ProcessorEmitMetricBatchV2# struct {
125 handlerscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/m3/thrift/v2`/m3ProcessorEmitMetricBatchV2#handler. M3scip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/m3/thrift/v2`/M3#
126 }
127
128 func (p *m3ProcessorEmitMetricBatchV2scip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/m3/thrift/v2`/m3ProcessorEmitMetricBatchV2#) Processscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/m3/thrift/v2`/m3ProcessorEmitMetricBatchV2#Process().(seqId int32, iprot, oprot thriftscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/thirdparty/github.com/apache/thrift/lib/go/thrift`/.TProtocolscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/thirdparty/github.com/apache/thrift/lib/go/thrift`/TProtocol#) (success bool, err thriftscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/thirdparty/github.com/apache/thrift/lib/go/thrift`/.TExceptionscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/thirdparty/github.com/apache/thrift/lib/go/thrift`/TException#) {
129 args := M3EmitMetricBatchV2Argsscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/m3/thrift/v2`/M3EmitMetricBatchV2Args#{}
130 if err = args.Readscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/m3/thrift/v2`/M3EmitMetricBatchV2Args#Read().(iprot); err != nil {
131 iprot.ReadMessageEndscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/thirdparty/github.com/apache/thrift/lib/go/thrift`/TProtocol#ReadMessageEnd.()
132 return false, err
133 }
134
135 iprot.ReadMessageEndscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/thirdparty/github.com/apache/thrift/lib/go/thrift`/TProtocol#ReadMessageEnd.()
136 var err2 error
137 if err2 = p.handlerscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/m3/thrift/v2`/m3ProcessorEmitMetricBatchV2#handler..EmitMetricBatchV2scip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/m3/thrift/v2`/M3#EmitMetricBatchV2.(args.Batchscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/m3/thrift/v2`/M3EmitMetricBatchV2Args#Batch.); err2 != nil {
138 return true, err2
139 }
140 return true, nil
141 }
142
143 // HELPER FUNCTIONS AND STRUCTURES
144
145 // Attributes:
146 // - Batch
147 type M3EmitMetricBatchV2Argsscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/m3/thrift/v2`/M3EmitMetricBatchV2Args# struct {
148 Batchscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/m3/thrift/v2`/M3EmitMetricBatchV2Args#Batch. MetricBatchscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/m3/thrift/v2`/MetricBatch# `thrift:"batch,1" json:"batch"`
149 }
150
151 func NewM3EmitMetricBatchV2Argsscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/m3/thrift/v2`/NewM3EmitMetricBatchV2Args().() *M3EmitMetricBatchV2Argsscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/m3/thrift/v2`/M3EmitMetricBatchV2Args# {
152 return &M3EmitMetricBatchV2Argsscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/m3/thrift/v2`/M3EmitMetricBatchV2Args#{}
153 }
154
155 var M3EmitMetricBatchV2Args_Batch_DEFAULTscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/m3/thrift/v2`/M3EmitMetricBatchV2Args_Batch_DEFAULT. MetricBatchscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/m3/thrift/v2`/MetricBatch#
156
157 func (p *M3EmitMetricBatchV2Argsscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/m3/thrift/v2`/M3EmitMetricBatchV2Args#) GetBatchscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/m3/thrift/v2`/M3EmitMetricBatchV2Args#GetBatch().() MetricBatchscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/m3/thrift/v2`/MetricBatch# {
158 if !p.IsSetBatchscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/m3/thrift/v2`/M3EmitMetricBatchV2Args#IsSetBatch().() {
159 return M3EmitMetricBatchV2Args_Batch_DEFAULTscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/m3/thrift/v2`/M3EmitMetricBatchV2Args_Batch_DEFAULT.
160 }
161 return p.Batchscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/m3/thrift/v2`/M3EmitMetricBatchV2Args#Batch.
162 }
163 func (p *M3EmitMetricBatchV2Argsscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/m3/thrift/v2`/M3EmitMetricBatchV2Args#) IsSetBatchscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/m3/thrift/v2`/M3EmitMetricBatchV2Args#IsSetBatch().() bool {
164 return p.Batchscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/m3/thrift/v2`/M3EmitMetricBatchV2Args#Batch..Metricsscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/m3/thrift/v2`/MetricBatch#Metrics. != nil || p.Batchscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/m3/thrift/v2`/M3EmitMetricBatchV2Args#Batch..CommonTagsscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/m3/thrift/v2`/MetricBatch#CommonTags. != nil
165 }
166
167 func (p *M3EmitMetricBatchV2Argsscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/m3/thrift/v2`/M3EmitMetricBatchV2Args#) Readscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/m3/thrift/v2`/M3EmitMetricBatchV2Args#Read().(iprot thriftscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/thirdparty/github.com/apache/thrift/lib/go/thrift`/.TProtocolscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/thirdparty/github.com/apache/thrift/lib/go/thrift`/TProtocol#) error {
168 if _, err := iprot.ReadStructBeginscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/thirdparty/github.com/apache/thrift/lib/go/thrift`/TProtocol#ReadStructBegin.(); err != nil {
169 return thriftscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/thirdparty/github.com/apache/thrift/lib/go/thrift`/.PrependErrorscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/thirdparty/github.com/apache/thrift/lib/go/thrift`/PrependError().(fmtscip-go gomod github.com/golang/go/src go1.20 fmt/.Sprintfscip-go gomod github.com/golang/go/src go1.20 fmt/Sprintf().("%T read error: ", p), err)
170 }
171
172 for {
173 _, fieldTypeId, fieldId, err := iprot.ReadFieldBeginscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/thirdparty/github.com/apache/thrift/lib/go/thrift`/TProtocol#ReadFieldBegin.()
174 if err != nil {
175 return thriftscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/thirdparty/github.com/apache/thrift/lib/go/thrift`/.PrependErrorscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/thirdparty/github.com/apache/thrift/lib/go/thrift`/PrependError().(fmtscip-go gomod github.com/golang/go/src go1.20 fmt/.Sprintfscip-go gomod github.com/golang/go/src go1.20 fmt/Sprintf().("%T field %d read error: ", p, fieldId), err)
176 }
177 if fieldTypeId == thriftscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/thirdparty/github.com/apache/thrift/lib/go/thrift`/.STOPscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/thirdparty/github.com/apache/thrift/lib/go/thrift`/STOP. {
178 break
179 }
180 switch fieldId {
181 case 1:
182 if err := p.readField1scip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/m3/thrift/v2`/M3EmitMetricBatchV2Args#readField1().(iprot); err != nil {
183 return err
184 }
185 default:
186 if err := iprot.Skipscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/thirdparty/github.com/apache/thrift/lib/go/thrift`/TProtocol#Skip.(fieldTypeId); err != nil {
187 return err
188 }
189 }
190 if err := iprot.ReadFieldEndscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/thirdparty/github.com/apache/thrift/lib/go/thrift`/TProtocol#ReadFieldEnd.(); err != nil {
191 return err
192 }
193 }
194 if err := iprot.ReadStructEndscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/thirdparty/github.com/apache/thrift/lib/go/thrift`/TProtocol#ReadStructEnd.(); err != nil {
195 return thriftscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/thirdparty/github.com/apache/thrift/lib/go/thrift`/.PrependErrorscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/thirdparty/github.com/apache/thrift/lib/go/thrift`/PrependError().(fmtscip-go gomod github.com/golang/go/src go1.20 fmt/.Sprintfscip-go gomod github.com/golang/go/src go1.20 fmt/Sprintf().("%T read struct end error: ", p), err)
196 }
197 return nil
198 }
199
200 func (p *M3EmitMetricBatchV2Argsscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/m3/thrift/v2`/M3EmitMetricBatchV2Args#) readField1scip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/m3/thrift/v2`/M3EmitMetricBatchV2Args#readField1().(iprot thriftscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/thirdparty/github.com/apache/thrift/lib/go/thrift`/.TProtocolscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/thirdparty/github.com/apache/thrift/lib/go/thrift`/TProtocol#) error {
201 p.Batchscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/m3/thrift/v2`/M3EmitMetricBatchV2Args#Batch. = MetricBatchscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/m3/thrift/v2`/MetricBatch#{}
202 if err := p.Batchscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/m3/thrift/v2`/M3EmitMetricBatchV2Args#Batch..Readscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/m3/thrift/v2`/MetricBatch#Read().(iprot); err != nil {
203 return thriftscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/thirdparty/github.com/apache/thrift/lib/go/thrift`/.PrependErrorscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/thirdparty/github.com/apache/thrift/lib/go/thrift`/PrependError().(fmtscip-go gomod github.com/golang/go/src go1.20 fmt/.Sprintfscip-go gomod github.com/golang/go/src go1.20 fmt/Sprintf().("%T error reading struct: ", p.Batchscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/m3/thrift/v2`/M3EmitMetricBatchV2Args#Batch.), err)
204 }
205 return nil
206 }
207
208 func (p *M3EmitMetricBatchV2Argsscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/m3/thrift/v2`/M3EmitMetricBatchV2Args#) Writescip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/m3/thrift/v2`/M3EmitMetricBatchV2Args#Write().(oprot thriftscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/thirdparty/github.com/apache/thrift/lib/go/thrift`/.TProtocolscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/thirdparty/github.com/apache/thrift/lib/go/thrift`/TProtocol#) error {
209 if err := oprot.WriteStructBeginscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/thirdparty/github.com/apache/thrift/lib/go/thrift`/TProtocol#WriteStructBegin.("emitMetricBatchV2_args"); err != nil {
210 return thriftscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/thirdparty/github.com/apache/thrift/lib/go/thrift`/.PrependErrorscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/thirdparty/github.com/apache/thrift/lib/go/thrift`/PrependError().(fmtscip-go gomod github.com/golang/go/src go1.20 fmt/.Sprintfscip-go gomod github.com/golang/go/src go1.20 fmt/Sprintf().("%T write struct begin error: ", p), err)
211 }
212 if err := p.writeField1scip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/m3/thrift/v2`/M3EmitMetricBatchV2Args#writeField1().(oprot); err != nil {
213 return err
214 }
215 if err := oprot.WriteFieldStopscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/thirdparty/github.com/apache/thrift/lib/go/thrift`/TProtocol#WriteFieldStop.(); err != nil {
216 return thriftscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/thirdparty/github.com/apache/thrift/lib/go/thrift`/.PrependErrorscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/thirdparty/github.com/apache/thrift/lib/go/thrift`/PrependError().("write field stop error: ", err)
217 }
218 if err := oprot.WriteStructEndscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/thirdparty/github.com/apache/thrift/lib/go/thrift`/TProtocol#WriteStructEnd.(); err != nil {
219 return thriftscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/thirdparty/github.com/apache/thrift/lib/go/thrift`/.PrependErrorscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/thirdparty/github.com/apache/thrift/lib/go/thrift`/PrependError().("write struct stop error: ", err)
220 }
221 return nil
222 }
223
224 func (p *M3EmitMetricBatchV2Argsscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/m3/thrift/v2`/M3EmitMetricBatchV2Args#) writeField1scip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/m3/thrift/v2`/M3EmitMetricBatchV2Args#writeField1().(oprot thriftscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/thirdparty/github.com/apache/thrift/lib/go/thrift`/.TProtocolscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/thirdparty/github.com/apache/thrift/lib/go/thrift`/TProtocol#) (err error) {
225 if err := oprot.WriteFieldBeginscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/thirdparty/github.com/apache/thrift/lib/go/thrift`/TProtocol#WriteFieldBegin.("batch", thriftscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/thirdparty/github.com/apache/thrift/lib/go/thrift`/.STRUCTscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/thirdparty/github.com/apache/thrift/lib/go/thrift`/STRUCT., 1); err != nil {
226 return thriftscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/thirdparty/github.com/apache/thrift/lib/go/thrift`/.PrependErrorscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/thirdparty/github.com/apache/thrift/lib/go/thrift`/PrependError().(fmtscip-go gomod github.com/golang/go/src go1.20 fmt/.Sprintfscip-go gomod github.com/golang/go/src go1.20 fmt/Sprintf().("%T write field begin error 1:batch: ", p), err)
227 }
228 if err := p.Batchscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/m3/thrift/v2`/M3EmitMetricBatchV2Args#Batch..Writescip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/m3/thrift/v2`/MetricBatch#Write().(oprot); err != nil {
229 return thriftscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/thirdparty/github.com/apache/thrift/lib/go/thrift`/.PrependErrorscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/thirdparty/github.com/apache/thrift/lib/go/thrift`/PrependError().(fmtscip-go gomod github.com/golang/go/src go1.20 fmt/.Sprintfscip-go gomod github.com/golang/go/src go1.20 fmt/Sprintf().("%T error writing struct: ", p.Batchscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/m3/thrift/v2`/M3EmitMetricBatchV2Args#Batch.), err)
230 }
231 if err := oprot.WriteFieldEndscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/thirdparty/github.com/apache/thrift/lib/go/thrift`/TProtocol#WriteFieldEnd.(); err != nil {
232 return thriftscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/thirdparty/github.com/apache/thrift/lib/go/thrift`/.PrependErrorscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/thirdparty/github.com/apache/thrift/lib/go/thrift`/PrependError().(fmtscip-go gomod github.com/golang/go/src go1.20 fmt/.Sprintfscip-go gomod github.com/golang/go/src go1.20 fmt/Sprintf().("%T write field end error 1:batch: ", p), err)
233 }
234 return err
235 }
236
237 func (p *M3EmitMetricBatchV2Argsscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/m3/thrift/v2`/M3EmitMetricBatchV2Args#) Stringscip-go gomod github.com/uber-go/tally/v4 . `github.com/uber-go/tally/v4/m3/thrift/v2`/M3EmitMetricBatchV2Args#String().() string {
238 if p == nil {
239 return "<nil>"
240 }
241 return fmtscip-go gomod github.com/golang/go/src go1.20 fmt/.Sprintfscip-go gomod github.com/golang/go/src go1.20 fmt/Sprintf().("M3EmitMetricBatchV2Args(%+v)", *p)
242 }