1
2
3
4 package sub
5
6 import (
7 fmt "fmt"
8 proto "github.com/golang/protobuf/proto"
9 math "math"
10 )
11
12
13 var _ = proto.Marshal
14 var _ = fmt.Errorf
15 var _ = math.Inf
16
17
18
19
20
21 const _ = proto.ProtoPackageIsVersion3
22
23 type StringMessage struct {
24 Value *string `protobuf:"bytes,1,req,name=value" json:"value,omitempty"`
25 XXX_NoUnkeyedLiteral struct{} `json:"-"`
26 XXX_unrecognized []byte `json:"-"`
27 XXX_sizecache int32 `json:"-"`
28 }
29
30 func (m *StringMessage) Reset() { *m = StringMessage{} }
31 func (m *StringMessage) String() string { return proto.CompactTextString(m) }
32 func (*StringMessage) ProtoMessage() {}
33 func (*StringMessage) Descriptor() ([]byte, []int) {
34 return fileDescriptor_897f299135d10a90, []int{0}
35 }
36
37 func (m *StringMessage) XXX_Unmarshal(b []byte) error {
38 return xxx_messageInfo_StringMessage.Unmarshal(m, b)
39 }
40 func (m *StringMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
41 return xxx_messageInfo_StringMessage.Marshal(b, m, deterministic)
42 }
43 func (m *StringMessage) XXX_Merge(src proto.Message) {
44 xxx_messageInfo_StringMessage.Merge(m, src)
45 }
46 func (m *StringMessage) XXX_Size() int {
47 return xxx_messageInfo_StringMessage.Size(m)
48 }
49 func (m *StringMessage) XXX_DiscardUnknown() {
50 xxx_messageInfo_StringMessage.DiscardUnknown(m)
51 }
52
53 var xxx_messageInfo_StringMessage proto.InternalMessageInfo
54
55 func (m *StringMessage) GetValue() string {
56 if m != nil && m.Value != nil {
57 return *m.Value
58 }
59 return ""
60 }
61
62 func init() {
63 proto.RegisterType((*StringMessage)(nil), "grpc.gateway.examples.internal.sub.StringMessage")
64 }
65
66 func init() {
67 proto.RegisterFile("examples/internal/proto/sub/message.proto", fileDescriptor_897f299135d10a90)
68 }
69
70 var fileDescriptor_897f299135d10a90 = []byte{
71
72 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xe2, 0xd2, 0x4c, 0xad, 0x48, 0xcc,
73 0x2d, 0xc8, 0x49, 0x2d, 0xd6, 0xcf, 0xcc, 0x2b, 0x49, 0x2d, 0xca, 0x4b, 0xcc, 0xd1, 0x2f, 0x28,
74 0xca, 0x2f, 0xc9, 0xd7, 0x2f, 0x2e, 0x4d, 0xd2, 0xcf, 0x4d, 0x2d, 0x2e, 0x4e, 0x4c, 0x4f, 0xd5,
75 0x03, 0x8b, 0x08, 0x29, 0xa5, 0x17, 0x15, 0x24, 0xeb, 0xa5, 0x27, 0x96, 0xa4, 0x96, 0x27, 0x56,
76 0xea, 0xc1, 0xf4, 0xe9, 0xc1, 0xf4, 0xe9, 0x15, 0x97, 0x26, 0x29, 0xa9, 0x72, 0xf1, 0x06, 0x97,
77 0x14, 0x65, 0xe6, 0xa5, 0xfb, 0x42, 0xb4, 0x0a, 0x89, 0x70, 0xb1, 0x96, 0x25, 0xe6, 0x94, 0xa6,
78 0x4a, 0x30, 0x2a, 0x30, 0x69, 0x70, 0x06, 0x41, 0x38, 0x4e, 0xac, 0x51, 0xcc, 0xc5, 0xa5, 0x49,
79 0x80, 0x00, 0x00, 0x00, 0xff, 0xff, 0x7a, 0x14, 0x0c, 0x22, 0x7d, 0x00, 0x00, 0x00,
80 }
81
View as plain text