-
Notifications
You must be signed in to change notification settings - Fork 302
/
picture.pb.go
164 lines (147 loc) · 6.94 KB
/
picture.pb.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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: lorawan-stack/api/picture.proto
package ttnpb
import (
fmt "fmt"
_ "github.com/envoyproxy/protoc-gen-validate/validate"
_ "github.com/gogo/protobuf/gogoproto"
proto "github.com/gogo/protobuf/proto"
golang_proto "github.com/golang/protobuf/proto"
math "math"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = golang_proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.GoGoProtoPackageIsVersion3 // please upgrade the proto package
type Picture struct {
// Embedded picture.
// Omitted if there are external URLs available (in sizes).
Embedded *Picture_Embedded `protobuf:"bytes,1,opt,name=embedded,proto3" json:"embedded,omitempty"`
// URLs of the picture for different sizes, if available on a CDN.
Sizes map[uint32]string `protobuf:"bytes,2,rep,name=sizes,proto3" json:"sizes,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Picture) Reset() { *m = Picture{} }
func (m *Picture) String() string { return proto.CompactTextString(m) }
func (*Picture) ProtoMessage() {}
func (*Picture) Descriptor() ([]byte, []int) {
return fileDescriptor_e379f581972557c1, []int{0}
}
func (m *Picture) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Picture.Unmarshal(m, b)
}
func (m *Picture) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Picture.Marshal(b, m, deterministic)
}
func (m *Picture) XXX_Merge(src proto.Message) {
xxx_messageInfo_Picture.Merge(m, src)
}
func (m *Picture) XXX_Size() int {
return xxx_messageInfo_Picture.Size(m)
}
func (m *Picture) XXX_DiscardUnknown() {
xxx_messageInfo_Picture.DiscardUnknown(m)
}
var xxx_messageInfo_Picture proto.InternalMessageInfo
func (m *Picture) GetEmbedded() *Picture_Embedded {
if m != nil {
return m.Embedded
}
return nil
}
func (m *Picture) GetSizes() map[uint32]string {
if m != nil {
return m.Sizes
}
return nil
}
type Picture_Embedded struct {
// MIME type of the picture.
MimeType string `protobuf:"bytes,1,opt,name=mime_type,json=mimeType,proto3" json:"mime_type,omitempty"`
// Picture data. A data URI can be constructed as follows:
// `data:<mime_type>;base64,<data>`.
Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Picture_Embedded) Reset() { *m = Picture_Embedded{} }
func (m *Picture_Embedded) String() string { return proto.CompactTextString(m) }
func (*Picture_Embedded) ProtoMessage() {}
func (*Picture_Embedded) Descriptor() ([]byte, []int) {
return fileDescriptor_e379f581972557c1, []int{0, 0}
}
func (m *Picture_Embedded) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Picture_Embedded.Unmarshal(m, b)
}
func (m *Picture_Embedded) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Picture_Embedded.Marshal(b, m, deterministic)
}
func (m *Picture_Embedded) XXX_Merge(src proto.Message) {
xxx_messageInfo_Picture_Embedded.Merge(m, src)
}
func (m *Picture_Embedded) XXX_Size() int {
return xxx_messageInfo_Picture_Embedded.Size(m)
}
func (m *Picture_Embedded) XXX_DiscardUnknown() {
xxx_messageInfo_Picture_Embedded.DiscardUnknown(m)
}
var xxx_messageInfo_Picture_Embedded proto.InternalMessageInfo
func (m *Picture_Embedded) GetMimeType() string {
if m != nil {
return m.MimeType
}
return ""
}
func (m *Picture_Embedded) GetData() []byte {
if m != nil {
return m.Data
}
return nil
}
func init() {
proto.RegisterType((*Picture)(nil), "ttn.lorawan.v3.Picture")
golang_proto.RegisterType((*Picture)(nil), "ttn.lorawan.v3.Picture")
proto.RegisterMapType((map[uint32]string)(nil), "ttn.lorawan.v3.Picture.SizesEntry")
golang_proto.RegisterMapType((map[uint32]string)(nil), "ttn.lorawan.v3.Picture.SizesEntry")
proto.RegisterType((*Picture_Embedded)(nil), "ttn.lorawan.v3.Picture.Embedded")
golang_proto.RegisterType((*Picture_Embedded)(nil), "ttn.lorawan.v3.Picture.Embedded")
}
func init() { proto.RegisterFile("lorawan-stack/api/picture.proto", fileDescriptor_e379f581972557c1) }
func init() {
golang_proto.RegisterFile("lorawan-stack/api/picture.proto", fileDescriptor_e379f581972557c1)
}
var fileDescriptor_e379f581972557c1 = []byte{
// 363 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x74, 0x91, 0x3f, 0x6b, 0xe3, 0x30,
0x00, 0xc5, 0x91, 0x13, 0x9f, 0x13, 0xe5, 0x72, 0x1c, 0xe6, 0x06, 0xe3, 0x21, 0x67, 0xc2, 0x0d,
0xe1, 0xc0, 0x12, 0x24, 0x1c, 0x84, 0xa3, 0x4b, 0x0d, 0xa1, 0x6b, 0x70, 0x3b, 0x75, 0x29, 0xb2,
0xad, 0x3a, 0xc6, 0xb1, 0x24, 0x64, 0xd9, 0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