/
MessageBody.go
42 lines (35 loc) · 1.04 KB
/
MessageBody.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
//
// Copyright 2020 New Relic Corporation. All rights reserved.
// SPDX-License-Identifier: Apache-2.0
//
// Code generated by the FlatBuffers compiler. DO NOT EDIT.
package protocol
import "strconv"
type MessageBody byte
const (
MessageBodyNONE MessageBody = 0
MessageBodyApp MessageBody = 1
MessageBodyAppReply MessageBody = 2
MessageBodyTransaction MessageBody = 3
MessageBodySpanBatch MessageBody = 4
)
var EnumNamesMessageBody = map[MessageBody]string{
MessageBodyNONE: "NONE",
MessageBodyApp: "App",
MessageBodyAppReply: "AppReply",
MessageBodyTransaction: "Transaction",
MessageBodySpanBatch: "SpanBatch",
}
var EnumValuesMessageBody = map[string]MessageBody{
"NONE": MessageBodyNONE,
"App": MessageBodyApp,
"AppReply": MessageBodyAppReply,
"Transaction": MessageBodyTransaction,
"SpanBatch": MessageBodySpanBatch,
}
func (v MessageBody) String() string {
if s, ok := EnumNamesMessageBody[v]; ok {
return s
}
return "MessageBody(" + strconv.FormatInt(int64(v), 10) + ")"
}