1
2
3
4
5
6
7 package proto
8
9 import (
10 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
11 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
12 reflect "reflect"
13 sync "sync"
14 )
15
16 const (
17
18 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
19
20 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
21 )
22
23 type Request struct {
24 state protoimpl.MessageState
25 sizeCache protoimpl.SizeCache
26 unknownFields protoimpl.UnknownFields
27
28 Der []byte `protobuf:"bytes,1,opt,name=der,proto3" json:"der,omitempty"`
29 LogURL string `protobuf:"bytes,2,opt,name=LogURL,proto3" json:"LogURL,omitempty"`
30 LogPublicKey string `protobuf:"bytes,3,opt,name=LogPublicKey,proto3" json:"LogPublicKey,omitempty"`
31 Precert bool `protobuf:"varint,4,opt,name=precert,proto3" json:"precert,omitempty"`
32 }
33
34 func (x *Request) Reset() {
35 *x = Request{}
36 if protoimpl.UnsafeEnabled {
37 mi := &file_publisher_proto_msgTypes[0]
38 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
39 ms.StoreMessageInfo(mi)
40 }
41 }
42
43 func (x *Request) String() string {
44 return protoimpl.X.MessageStringOf(x)
45 }
46
47 func (*Request) ProtoMessage() {}
48
49 func (x *Request) ProtoReflect() protoreflect.Message {
50 mi := &file_publisher_proto_msgTypes[0]
51 if protoimpl.UnsafeEnabled && x != nil {
52 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
53 if ms.LoadMessageInfo() == nil {
54 ms.StoreMessageInfo(mi)
55 }
56 return ms
57 }
58 return mi.MessageOf(x)
59 }
60
61
62 func (*Request) Descriptor() ([]byte, []int) {
63 return file_publisher_proto_rawDescGZIP(), []int{0}
64 }
65
66 func (x *Request) GetDer() []byte {
67 if x != nil {
68 return x.Der
69 }
70 return nil
71 }
72
73 func (x *Request) GetLogURL() string {
74 if x != nil {
75 return x.LogURL
76 }
77 return ""
78 }
79
80 func (x *Request) GetLogPublicKey() string {
81 if x != nil {
82 return x.LogPublicKey
83 }
84 return ""
85 }
86
87 func (x *Request) GetPrecert() bool {
88 if x != nil {
89 return x.Precert
90 }
91 return false
92 }
93
94 type Result struct {
95 state protoimpl.MessageState
96 sizeCache protoimpl.SizeCache
97 unknownFields protoimpl.UnknownFields
98
99 Sct []byte `protobuf:"bytes,1,opt,name=sct,proto3" json:"sct,omitempty"`
100 }
101
102 func (x *Result) Reset() {
103 *x = Result{}
104 if protoimpl.UnsafeEnabled {
105 mi := &file_publisher_proto_msgTypes[1]
106 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
107 ms.StoreMessageInfo(mi)
108 }
109 }
110
111 func (x *Result) String() string {
112 return protoimpl.X.MessageStringOf(x)
113 }
114
115 func (*Result) ProtoMessage() {}
116
117 func (x *Result) ProtoReflect() protoreflect.Message {
118 mi := &file_publisher_proto_msgTypes[1]
119 if protoimpl.UnsafeEnabled && x != nil {
120 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
121 if ms.LoadMessageInfo() == nil {
122 ms.StoreMessageInfo(mi)
123 }
124 return ms
125 }
126 return mi.MessageOf(x)
127 }
128
129
130 func (*Result) Descriptor() ([]byte, []int) {
131 return file_publisher_proto_rawDescGZIP(), []int{1}
132 }
133
134 func (x *Result) GetSct() []byte {
135 if x != nil {
136 return x.Sct
137 }
138 return nil
139 }
140
141 var File_publisher_proto protoreflect.FileDescriptor
142
143 var file_publisher_proto_rawDesc = []byte{
144 0x0a, 0x0f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x65, 0x72, 0x2e, 0x70, 0x72, 0x6f, 0x74,
145 0x6f, 0x22, 0x71, 0x0a, 0x07, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x10, 0x0a, 0x03,
146 0x64, 0x65, 0x72, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x03, 0x64, 0x65, 0x72, 0x12, 0x16,
147 0x0a, 0x06, 0x4c, 0x6f, 0x67, 0x55, 0x52, 0x4c, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06,
148 0x4c, 0x6f, 0x67, 0x55, 0x52, 0x4c, 0x12, 0x22, 0x0a, 0x0c, 0x4c, 0x6f, 0x67, 0x50, 0x75, 0x62,
149 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0c, 0x4c, 0x6f,
150 0x67, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x63, 0x4b, 0x65, 0x79, 0x12, 0x18, 0x0a, 0x07, 0x70, 0x72,
151 0x65, 0x63, 0x65, 0x72, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x08, 0x52, 0x07, 0x70, 0x72, 0x65,
152 0x63, 0x65, 0x72, 0x74, 0x22, 0x1a, 0x0a, 0x06, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x10,
153 0x0a, 0x03, 0x73, 0x63, 0x74, 0x18, 0x01, 0x20, 0x01, 0x28, 0x0c, 0x52, 0x03, 0x73, 0x63, 0x74,
154 0x32, 0x3e, 0x0a, 0x09, 0x50, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x65, 0x72, 0x12, 0x31, 0x0a,
155 0x1a, 0x53, 0x75, 0x62, 0x6d, 0x69, 0x74, 0x54, 0x6f, 0x53, 0x69, 0x6e, 0x67, 0x6c, 0x65, 0x43,
156 0x54, 0x57, 0x69, 0x74, 0x68, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x12, 0x08, 0x2e, 0x52, 0x65,
157 0x71, 0x75, 0x65, 0x73, 0x74, 0x1a, 0x07, 0x2e, 0x52, 0x65, 0x73, 0x75, 0x6c, 0x74, 0x22, 0x00,
158 0x42, 0x30, 0x5a, 0x2e, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6c,
159 0x65, 0x74, 0x73, 0x65, 0x6e, 0x63, 0x72, 0x79, 0x70, 0x74, 0x2f, 0x62, 0x6f, 0x75, 0x6c, 0x64,
160 0x65, 0x72, 0x2f, 0x70, 0x75, 0x62, 0x6c, 0x69, 0x73, 0x68, 0x65, 0x72, 0x2f, 0x70, 0x72, 0x6f,
161 0x74, 0x6f, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
162 }
163
164 var (
165 file_publisher_proto_rawDescOnce sync.Once
166 file_publisher_proto_rawDescData = file_publisher_proto_rawDesc
167 )
168
169 func file_publisher_proto_rawDescGZIP() []byte {
170 file_publisher_proto_rawDescOnce.Do(func() {
171 file_publisher_proto_rawDescData = protoimpl.X.CompressGZIP(file_publisher_proto_rawDescData)
172 })
173 return file_publisher_proto_rawDescData
174 }
175
176 var file_publisher_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
177 var file_publisher_proto_goTypes = []interface{}{
178 (*Request)(nil),
179 (*Result)(nil),
180 }
181 var file_publisher_proto_depIdxs = []int32{
182 0,
183 1,
184 1,
185 0,
186 0,
187 0,
188 0,
189 }
190
191 func init() { file_publisher_proto_init() }
192 func file_publisher_proto_init() {
193 if File_publisher_proto != nil {
194 return
195 }
196 if !protoimpl.UnsafeEnabled {
197 file_publisher_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
198 switch v := v.(*Request); i {
199 case 0:
200 return &v.state
201 case 1:
202 return &v.sizeCache
203 case 2:
204 return &v.unknownFields
205 default:
206 return nil
207 }
208 }
209 file_publisher_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
210 switch v := v.(*Result); i {
211 case 0:
212 return &v.state
213 case 1:
214 return &v.sizeCache
215 case 2:
216 return &v.unknownFields
217 default:
218 return nil
219 }
220 }
221 }
222 type x struct{}
223 out := protoimpl.TypeBuilder{
224 File: protoimpl.DescBuilder{
225 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
226 RawDescriptor: file_publisher_proto_rawDesc,
227 NumEnums: 0,
228 NumMessages: 2,
229 NumExtensions: 0,
230 NumServices: 1,
231 },
232 GoTypes: file_publisher_proto_goTypes,
233 DependencyIndexes: file_publisher_proto_depIdxs,
234 MessageInfos: file_publisher_proto_msgTypes,
235 }.Build()
236 File_publisher_proto = out.File
237 file_publisher_proto_rawDesc = nil
238 file_publisher_proto_goTypes = nil
239 file_publisher_proto_depIdxs = nil
240 }
241
View as plain text