diff options
author | Nathan Dench <ndenc2@gmail.com> | 2019-05-24 15:16:44 +1000 |
---|---|---|
committer | Nathan Dench <ndenc2@gmail.com> | 2019-05-24 15:16:44 +1000 |
commit | 107c1cdb09c575aa2f61d97f48d8587eb6bada4c (patch) | |
tree | ca7d008643efc555c388baeaf1d986e0b6b3e28c /vendor/google.golang.org/appengine/internal/urlfetch | |
parent | 844b5a68d8af4791755b8f0ad293cc99f5959183 (diff) | |
download | terraform-provider-statuscake-107c1cdb09c575aa2f61d97f48d8587eb6bada4c.tar.gz terraform-provider-statuscake-107c1cdb09c575aa2f61d97f48d8587eb6bada4c.tar.zst terraform-provider-statuscake-107c1cdb09c575aa2f61d97f48d8587eb6bada4c.zip |
Upgrade to 0.12
Diffstat (limited to 'vendor/google.golang.org/appengine/internal/urlfetch')
-rw-r--r-- | vendor/google.golang.org/appengine/internal/urlfetch/urlfetch_service.pb.go | 527 | ||||
-rw-r--r-- | vendor/google.golang.org/appengine/internal/urlfetch/urlfetch_service.proto | 64 |
2 files changed, 591 insertions, 0 deletions
diff --git a/vendor/google.golang.org/appengine/internal/urlfetch/urlfetch_service.pb.go b/vendor/google.golang.org/appengine/internal/urlfetch/urlfetch_service.pb.go new file mode 100644 index 0000000..5f72775 --- /dev/null +++ b/vendor/google.golang.org/appengine/internal/urlfetch/urlfetch_service.pb.go | |||
@@ -0,0 +1,527 @@ | |||
1 | // Code generated by protoc-gen-go. DO NOT EDIT. | ||
2 | // source: google.golang.org/appengine/internal/urlfetch/urlfetch_service.proto | ||
3 | |||
4 | package urlfetch | ||
5 | |||
6 | import proto "github.com/golang/protobuf/proto" | ||
7 | import fmt "fmt" | ||
8 | import math "math" | ||
9 | |||
10 | // Reference imports to suppress errors if they are not otherwise used. | ||
11 | var _ = proto.Marshal | ||
12 | var _ = fmt.Errorf | ||
13 | var _ = math.Inf | ||
14 | |||
15 | // This is a compile-time assertion to ensure that this generated file | ||
16 | // is compatible with the proto package it is being compiled against. | ||
17 | // A compilation error at this line likely means your copy of the | ||
18 | // proto package needs to be updated. | ||
19 | const _ = proto.ProtoPackageIsVersion2 // please upgrade the proto package | ||
20 | |||
21 | type URLFetchServiceError_ErrorCode int32 | ||
22 | |||
23 | const ( | ||
24 | URLFetchServiceError_OK URLFetchServiceError_ErrorCode = 0 | ||
25 | URLFetchServiceError_INVALID_URL URLFetchServiceError_ErrorCode = 1 | ||
26 | URLFetchServiceError_FETCH_ERROR URLFetchServiceError_ErrorCode = 2 | ||
27 | URLFetchServiceError_UNSPECIFIED_ERROR URLFetchServiceError_ErrorCode = 3 | ||
28 | URLFetchServiceError_RESPONSE_TOO_LARGE URLFetchServiceError_ErrorCode = 4 | ||
29 | URLFetchServiceError_DEADLINE_EXCEEDED URLFetchServiceError_ErrorCode = 5 | ||
30 | URLFetchServiceError_SSL_CERTIFICATE_ERROR URLFetchServiceError_ErrorCode = 6 | ||
31 | URLFetchServiceError_DNS_ERROR URLFetchServiceError_ErrorCode = 7 | ||
32 | URLFetchServiceError_CLOSED URLFetchServiceError_ErrorCode = 8 | ||
33 | URLFetchServiceError_INTERNAL_TRANSIENT_ERROR URLFetchServiceError_ErrorCode = 9 | ||
34 | URLFetchServiceError_TOO_MANY_REDIRECTS URLFetchServiceError_ErrorCode = 10 | ||
35 | URLFetchServiceError_MALFORMED_REPLY URLFetchServiceError_ErrorCode = 11 | ||
36 | URLFetchServiceError_CONNECTION_ERROR URLFetchServiceError_ErrorCode = 12 | ||
37 | ) | ||
38 | |||
39 | var URLFetchServiceError_ErrorCode_name = map[int32]string{ | ||
40 | 0: "OK", | ||
41 | 1: "INVALID_URL", | ||
42 | 2: "FETCH_ERROR", | ||
43 | 3: "UNSPECIFIED_ERROR", | ||
44 | 4: "RESPONSE_TOO_LARGE", | ||
45 | 5: "DEADLINE_EXCEEDED", | ||
46 | 6: "SSL_CERTIFICATE_ERROR", | ||
47 | 7: "DNS_ERROR", | ||
48 | 8: "CLOSED", | ||
49 | 9: "INTERNAL_TRANSIENT_ERROR", | ||
50 | 10: "TOO_MANY_REDIRECTS", | ||
51 | 11: "MALFORMED_REPLY", | ||
52 | 12: "CONNECTION_ERROR", | ||
53 | } | ||
54 | var URLFetchServiceError_ErrorCode_value = map[string]int32{ | ||
55 | "OK": 0, | ||
56 | "INVALID_URL": 1, | ||
57 | "FETCH_ERROR": 2, | ||
58 | "UNSPECIFIED_ERROR": 3, | ||
59 | "RESPONSE_TOO_LARGE": 4, | ||
60 | "DEADLINE_EXCEEDED": 5, | ||
61 | "SSL_CERTIFICATE_ERROR": 6, | ||
62 | "DNS_ERROR": 7, | ||
63 | "CLOSED": 8, | ||
64 | "INTERNAL_TRANSIENT_ERROR": 9, | ||
65 | "TOO_MANY_REDIRECTS": 10, | ||
66 | "MALFORMED_REPLY": 11, | ||
67 | "CONNECTION_ERROR": 12, | ||
68 | } | ||
69 | |||
70 | func (x URLFetchServiceError_ErrorCode) Enum() *URLFetchServiceError_ErrorCode { | ||
71 | p := new(URLFetchServiceError_ErrorCode) | ||
72 | *p = x | ||
73 | return p | ||
74 | } | ||
75 | func (x URLFetchServiceError_ErrorCode) String() string { | ||
76 | return proto.EnumName(URLFetchServiceError_ErrorCode_name, int32(x)) | ||
77 | } | ||
78 | func (x *URLFetchServiceError_ErrorCode) UnmarshalJSON(data []byte) error { | ||
79 | value, err := proto.UnmarshalJSONEnum(URLFetchServiceError_ErrorCode_value, data, "URLFetchServiceError_ErrorCode") | ||
80 | if err != nil { | ||
81 | return err | ||
82 | } | ||
83 | *x = URLFetchServiceError_ErrorCode(value) | ||
84 | return nil | ||
85 | } | ||
86 | func (URLFetchServiceError_ErrorCode) EnumDescriptor() ([]byte, []int) { | ||
87 | return fileDescriptor_urlfetch_service_b245a7065f33bced, []int{0, 0} | ||
88 | } | ||
89 | |||
90 | type URLFetchRequest_RequestMethod int32 | ||
91 | |||
92 | const ( | ||
93 | URLFetchRequest_GET URLFetchRequest_RequestMethod = 1 | ||
94 | URLFetchRequest_POST URLFetchRequest_RequestMethod = 2 | ||
95 | URLFetchRequest_HEAD URLFetchRequest_RequestMethod = 3 | ||
96 | URLFetchRequest_PUT URLFetchRequest_RequestMethod = 4 | ||
97 | URLFetchRequest_DELETE URLFetchRequest_RequestMethod = 5 | ||
98 | URLFetchRequest_PATCH URLFetchRequest_RequestMethod = 6 | ||
99 | ) | ||
100 | |||
101 | var URLFetchRequest_RequestMethod_name = map[int32]string{ | ||
102 | 1: "GET", | ||
103 | 2: "POST", | ||
104 | 3: "HEAD", | ||
105 | 4: "PUT", | ||
106 | 5: "DELETE", | ||
107 | 6: "PATCH", | ||
108 | } | ||
109 | var URLFetchRequest_RequestMethod_value = map[string]int32{ | ||
110 | "GET": 1, | ||
111 | "POST": 2, | ||
112 | "HEAD": 3, | ||
113 | "PUT": 4, | ||
114 | "DELETE": 5, | ||
115 | "PATCH": 6, | ||
116 | } | ||
117 | |||
118 | func (x URLFetchRequest_RequestMethod) Enum() *URLFetchRequest_RequestMethod { | ||
119 | p := new(URLFetchRequest_RequestMethod) | ||
120 | *p = x | ||
121 | return p | ||
122 | } | ||
123 | func (x URLFetchRequest_RequestMethod) String() string { | ||
124 | return proto.EnumName(URLFetchRequest_RequestMethod_name, int32(x)) | ||
125 | } | ||
126 | func (x *URLFetchRequest_RequestMethod) UnmarshalJSON(data []byte) error { | ||
127 | value, err := proto.UnmarshalJSONEnum(URLFetchRequest_RequestMethod_value, data, "URLFetchRequest_RequestMethod") | ||
128 | if err != nil { | ||
129 | return err | ||
130 | } | ||
131 | *x = URLFetchRequest_RequestMethod(value) | ||
132 | return nil | ||
133 | } | ||
134 | func (URLFetchRequest_RequestMethod) EnumDescriptor() ([]byte, []int) { | ||
135 | return fileDescriptor_urlfetch_service_b245a7065f33bced, []int{1, 0} | ||
136 | } | ||
137 | |||
138 | type URLFetchServiceError struct { | ||
139 | XXX_NoUnkeyedLiteral struct{} `json:"-"` | ||
140 | XXX_unrecognized []byte `json:"-"` | ||
141 | XXX_sizecache int32 `json:"-"` | ||
142 | } | ||
143 | |||
144 | func (m *URLFetchServiceError) Reset() { *m = URLFetchServiceError{} } | ||
145 | func (m *URLFetchServiceError) String() string { return proto.CompactTextString(m) } | ||
146 | func (*URLFetchServiceError) ProtoMessage() {} | ||
147 | func (*URLFetchServiceError) Descriptor() ([]byte, []int) { | ||
148 | return fileDescriptor_urlfetch_service_b245a7065f33bced, []int{0} | ||
149 | } | ||
150 | func (m *URLFetchServiceError) XXX_Unmarshal(b []byte) error { | ||
151 | return xxx_messageInfo_URLFetchServiceError.Unmarshal(m, b) | ||
152 | } | ||
153 | func (m *URLFetchServiceError) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { | ||
154 | return xxx_messageInfo_URLFetchServiceError.Marshal(b, m, deterministic) | ||
155 | } | ||
156 | func (dst *URLFetchServiceError) XXX_Merge(src proto.Message) { | ||
157 | xxx_messageInfo_URLFetchServiceError.Merge(dst, src) | ||
158 | } | ||
159 | func (m *URLFetchServiceError) XXX_Size() int { | ||
160 | return xxx_messageInfo_URLFetchServiceError.Size(m) | ||
161 | } | ||
162 | func (m *URLFetchServiceError) XXX_DiscardUnknown() { | ||
163 | xxx_messageInfo_URLFetchServiceError.DiscardUnknown(m) | ||
164 | } | ||
165 | |||
166 | var xxx_messageInfo_URLFetchServiceError proto.InternalMessageInfo | ||
167 | |||
168 | type URLFetchRequest struct { | ||
169 | Method *URLFetchRequest_RequestMethod `protobuf:"varint,1,req,name=Method,enum=appengine.URLFetchRequest_RequestMethod" json:"Method,omitempty"` | ||
170 | Url *string `protobuf:"bytes,2,req,name=Url" json:"Url,omitempty"` | ||
171 | Header []*URLFetchRequest_Header `protobuf:"group,3,rep,name=Header,json=header" json:"header,omitempty"` | ||
172 | Payload []byte `protobuf:"bytes,6,opt,name=Payload" json:"Payload,omitempty"` | ||
173 | FollowRedirects *bool `protobuf:"varint,7,opt,name=FollowRedirects,def=1" json:"FollowRedirects,omitempty"` | ||
174 | Deadline *float64 `protobuf:"fixed64,8,opt,name=Deadline" json:"Deadline,omitempty"` | ||
175 | MustValidateServerCertificate *bool `protobuf:"varint,9,opt,name=MustValidateServerCertificate,def=1" json:"MustValidateServerCertificate,omitempty"` | ||
176 | XXX_NoUnkeyedLiteral struct{} `json:"-"` | ||
177 | XXX_unrecognized []byte `json:"-"` | ||
178 | XXX_sizecache int32 `json:"-"` | ||
179 | } | ||
180 | |||
181 | func (m *URLFetchRequest) Reset() { *m = URLFetchRequest{} } | ||
182 | func (m *URLFetchRequest) String() string { return proto.CompactTextString(m) } | ||
183 | func (*URLFetchRequest) ProtoMessage() {} | ||
184 | func (*URLFetchRequest) Descriptor() ([]byte, []int) { | ||
185 | return fileDescriptor_urlfetch_service_b245a7065f33bced, []int{1} | ||
186 | } | ||
187 | func (m *URLFetchRequest) XXX_Unmarshal(b []byte) error { | ||
188 | return xxx_messageInfo_URLFetchRequest.Unmarshal(m, b) | ||
189 | } | ||
190 | func (m *URLFetchRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { | ||
191 | return xxx_messageInfo_URLFetchRequest.Marshal(b, m, deterministic) | ||
192 | } | ||
193 | func (dst *URLFetchRequest) XXX_Merge(src proto.Message) { | ||
194 | xxx_messageInfo_URLFetchRequest.Merge(dst, src) | ||
195 | } | ||
196 | func (m *URLFetchRequest) XXX_Size() int { | ||
197 | return xxx_messageInfo_URLFetchRequest.Size(m) | ||
198 | } | ||
199 | func (m *URLFetchRequest) XXX_DiscardUnknown() { | ||
200 | xxx_messageInfo_URLFetchRequest.DiscardUnknown(m) | ||
201 | } | ||
202 | |||
203 | var xxx_messageInfo_URLFetchRequest proto.InternalMessageInfo | ||
204 | |||
205 | const Default_URLFetchRequest_FollowRedirects bool = true | ||
206 | const Default_URLFetchRequest_MustValidateServerCertificate bool = true | ||
207 | |||
208 | func (m *URLFetchRequest) GetMethod() URLFetchRequest_RequestMethod { | ||
209 | if m != nil && m.Method != nil { | ||
210 | return *m.Method | ||
211 | } | ||
212 | return URLFetchRequest_GET | ||
213 | } | ||
214 | |||
215 | func (m *URLFetchRequest) GetUrl() string { | ||
216 | if m != nil && m.Url != nil { | ||
217 | return *m.Url | ||
218 | } | ||
219 | return "" | ||
220 | } | ||
221 | |||
222 | func (m *URLFetchRequest) GetHeader() []*URLFetchRequest_Header { | ||
223 | if m != nil { | ||
224 | return m.Header | ||
225 | } | ||
226 | return nil | ||
227 | } | ||
228 | |||
229 | func (m *URLFetchRequest) GetPayload() []byte { | ||
230 | if m != nil { | ||
231 | return m.Payload | ||
232 | } | ||
233 | return nil | ||
234 | } | ||
235 | |||
236 | func (m *URLFetchRequest) GetFollowRedirects() bool { | ||
237 | if m != nil && m.FollowRedirects != nil { | ||
238 | return *m.FollowRedirects | ||
239 | } | ||
240 | return Default_URLFetchRequest_FollowRedirects | ||
241 | } | ||
242 | |||
243 | func (m *URLFetchRequest) GetDeadline() float64 { | ||
244 | if m != nil && m.Deadline != nil { | ||
245 | return *m.Deadline | ||
246 | } | ||
247 | return 0 | ||
248 | } | ||
249 | |||
250 | func (m *URLFetchRequest) GetMustValidateServerCertificate() bool { | ||
251 | if m != nil && m.MustValidateServerCertificate != nil { | ||
252 | return *m.MustValidateServerCertificate | ||
253 | } | ||
254 | return Default_URLFetchRequest_MustValidateServerCertificate | ||
255 | } | ||
256 | |||
257 | type URLFetchRequest_Header struct { | ||
258 | Key *string `protobuf:"bytes,4,req,name=Key" json:"Key,omitempty"` | ||
259 | Value *string `protobuf:"bytes,5,req,name=Value" json:"Value,omitempty"` | ||
260 | XXX_NoUnkeyedLiteral struct{} `json:"-"` | ||
261 | XXX_unrecognized []byte `json:"-"` | ||
262 | XXX_sizecache int32 `json:"-"` | ||
263 | } | ||
264 | |||
265 | func (m *URLFetchRequest_Header) Reset() { *m = URLFetchRequest_Header{} } | ||
266 | func (m *URLFetchRequest_Header) String() string { return proto.CompactTextString(m) } | ||
267 | func (*URLFetchRequest_Header) ProtoMessage() {} | ||
268 | func (*URLFetchRequest_Header) Descriptor() ([]byte, []int) { | ||
269 | return fileDescriptor_urlfetch_service_b245a7065f33bced, []int{1, 0} | ||
270 | } | ||
271 | func (m *URLFetchRequest_Header) XXX_Unmarshal(b []byte) error { | ||
272 | return xxx_messageInfo_URLFetchRequest_Header.Unmarshal(m, b) | ||
273 | } | ||
274 | func (m *URLFetchRequest_Header) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { | ||
275 | return xxx_messageInfo_URLFetchRequest_Header.Marshal(b, m, deterministic) | ||
276 | } | ||
277 | func (dst *URLFetchRequest_Header) XXX_Merge(src proto.Message) { | ||
278 | xxx_messageInfo_URLFetchRequest_Header.Merge(dst, src) | ||
279 | } | ||
280 | func (m *URLFetchRequest_Header) XXX_Size() int { | ||
281 | return xxx_messageInfo_URLFetchRequest_Header.Size(m) | ||
282 | } | ||
283 | func (m *URLFetchRequest_Header) XXX_DiscardUnknown() { | ||
284 | xxx_messageInfo_URLFetchRequest_Header.DiscardUnknown(m) | ||
285 | } | ||
286 | |||
287 | var xxx_messageInfo_URLFetchRequest_Header proto.InternalMessageInfo | ||
288 | |||
289 | func (m *URLFetchRequest_Header) GetKey() string { | ||
290 | if m != nil && m.Key != nil { | ||
291 | return *m.Key | ||
292 | } | ||
293 | return "" | ||
294 | } | ||
295 | |||
296 | func (m *URLFetchRequest_Header) GetValue() string { | ||
297 | if m != nil && m.Value != nil { | ||
298 | return *m.Value | ||
299 | } | ||
300 | return "" | ||
301 | } | ||
302 | |||
303 | type URLFetchResponse struct { | ||
304 | Content []byte `protobuf:"bytes,1,opt,name=Content" json:"Content,omitempty"` | ||
305 | StatusCode *int32 `protobuf:"varint,2,req,name=StatusCode" json:"StatusCode,omitempty"` | ||
306 | Header []*URLFetchResponse_Header `protobuf:"group,3,rep,name=Header,json=header" json:"header,omitempty"` | ||
307 | ContentWasTruncated *bool `protobuf:"varint,6,opt,name=ContentWasTruncated,def=0" json:"ContentWasTruncated,omitempty"` | ||
308 | ExternalBytesSent *int64 `protobuf:"varint,7,opt,name=ExternalBytesSent" json:"ExternalBytesSent,omitempty"` | ||
309 | ExternalBytesReceived *int64 `protobuf:"varint,8,opt,name=ExternalBytesReceived" json:"ExternalBytesReceived,omitempty"` | ||
310 | FinalUrl *string `protobuf:"bytes,9,opt,name=FinalUrl" json:"FinalUrl,omitempty"` | ||
311 | ApiCpuMilliseconds *int64 `protobuf:"varint,10,opt,name=ApiCpuMilliseconds,def=0" json:"ApiCpuMilliseconds,omitempty"` | ||
312 | ApiBytesSent *int64 `protobuf:"varint,11,opt,name=ApiBytesSent,def=0" json:"ApiBytesSent,omitempty"` | ||
313 | ApiBytesReceived *int64 `protobuf:"varint,12,opt,name=ApiBytesReceived,def=0" json:"ApiBytesReceived,omitempty"` | ||
314 | XXX_NoUnkeyedLiteral struct{} `json:"-"` | ||
315 | XXX_unrecognized []byte `json:"-"` | ||
316 | XXX_sizecache int32 `json:"-"` | ||
317 | } | ||
318 | |||
319 | func (m *URLFetchResponse) Reset() { *m = URLFetchResponse{} } | ||
320 | func (m *URLFetchResponse) String() string { return proto.CompactTextString(m) } | ||
321 | func (*URLFetchResponse) ProtoMessage() {} | ||
322 | func (*URLFetchResponse) Descriptor() ([]byte, []int) { | ||
323 | return fileDescriptor_urlfetch_service_b245a7065f33bced, []int{2} | ||
324 | } | ||
325 | func (m *URLFetchResponse) XXX_Unmarshal(b []byte) error { | ||
326 | return xxx_messageInfo_URLFetchResponse.Unmarshal(m, b) | ||
327 | } | ||
328 | func (m *URLFetchResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { | ||
329 | return xxx_messageInfo_URLFetchResponse.Marshal(b, m, deterministic) | ||
330 | } | ||
331 | func (dst *URLFetchResponse) XXX_Merge(src proto.Message) { | ||
332 | xxx_messageInfo_URLFetchResponse.Merge(dst, src) | ||
333 | } | ||
334 | func (m *URLFetchResponse) XXX_Size() int { | ||
335 | return xxx_messageInfo_URLFetchResponse.Size(m) | ||
336 | } | ||
337 | func (m *URLFetchResponse) XXX_DiscardUnknown() { | ||
338 | xxx_messageInfo_URLFetchResponse.DiscardUnknown(m) | ||
339 | } | ||
340 | |||
341 | var xxx_messageInfo_URLFetchResponse proto.InternalMessageInfo | ||
342 | |||
343 | const Default_URLFetchResponse_ContentWasTruncated bool = false | ||
344 | const Default_URLFetchResponse_ApiCpuMilliseconds int64 = 0 | ||
345 | const Default_URLFetchResponse_ApiBytesSent int64 = 0 | ||
346 | const Default_URLFetchResponse_ApiBytesReceived int64 = 0 | ||
347 | |||
348 | func (m *URLFetchResponse) GetContent() []byte { | ||
349 | if m != nil { | ||
350 | return m.Content | ||
351 | } | ||
352 | return nil | ||
353 | } | ||
354 | |||
355 | func (m *URLFetchResponse) GetStatusCode() int32 { | ||
356 | if m != nil && m.StatusCode != nil { | ||
357 | return *m.StatusCode | ||
358 | } | ||
359 | return 0 | ||
360 | } | ||
361 | |||
362 | func (m *URLFetchResponse) GetHeader() []*URLFetchResponse_Header { | ||
363 | if m != nil { | ||
364 | return m.Header | ||
365 | } | ||
366 | return nil | ||
367 | } | ||
368 | |||
369 | func (m *URLFetchResponse) GetContentWasTruncated() bool { | ||
370 | if m != nil && m.ContentWasTruncated != nil { | ||
371 | return *m.ContentWasTruncated | ||
372 | } | ||
373 | return Default_URLFetchResponse_ContentWasTruncated | ||
374 | } | ||
375 | |||
376 | func (m *URLFetchResponse) GetExternalBytesSent() int64 { | ||
377 | if m != nil && m.ExternalBytesSent != nil { | ||
378 | return *m.ExternalBytesSent | ||
379 | } | ||
380 | return 0 | ||
381 | } | ||
382 | |||
383 | func (m *URLFetchResponse) GetExternalBytesReceived() int64 { | ||
384 | if m != nil && m.ExternalBytesReceived != nil { | ||
385 | return *m.ExternalBytesReceived | ||
386 | } | ||
387 | return 0 | ||
388 | } | ||
389 | |||
390 | func (m *URLFetchResponse) GetFinalUrl() string { | ||
391 | if m != nil && m.FinalUrl != nil { | ||
392 | return *m.FinalUrl | ||
393 | } | ||
394 | return "" | ||
395 | } | ||
396 | |||
397 | func (m *URLFetchResponse) GetApiCpuMilliseconds() int64 { | ||
398 | if m != nil && m.ApiCpuMilliseconds != nil { | ||
399 | return *m.ApiCpuMilliseconds | ||
400 | } | ||
401 | return Default_URLFetchResponse_ApiCpuMilliseconds | ||
402 | } | ||
403 | |||
404 | func (m *URLFetchResponse) GetApiBytesSent() int64 { | ||
405 | if m != nil && m.ApiBytesSent != nil { | ||
406 | return *m.ApiBytesSent | ||
407 | } | ||
408 | return Default_URLFetchResponse_ApiBytesSent | ||
409 | } | ||
410 | |||
411 | func (m *URLFetchResponse) GetApiBytesReceived() int64 { | ||
412 | if m != nil && m.ApiBytesReceived != nil { | ||
413 | return *m.ApiBytesReceived | ||
414 | } | ||
415 | return Default_URLFetchResponse_ApiBytesReceived | ||
416 | } | ||
417 | |||
418 | type URLFetchResponse_Header struct { | ||
419 | Key *string `protobuf:"bytes,4,req,name=Key" json:"Key,omitempty"` | ||
420 | Value *string `protobuf:"bytes,5,req,name=Value" json:"Value,omitempty"` | ||
421 | XXX_NoUnkeyedLiteral struct{} `json:"-"` | ||
422 | XXX_unrecognized []byte `json:"-"` | ||
423 | XXX_sizecache int32 `json:"-"` | ||
424 | } | ||
425 | |||
426 | func (m *URLFetchResponse_Header) Reset() { *m = URLFetchResponse_Header{} } | ||
427 | func (m *URLFetchResponse_Header) String() string { return proto.CompactTextString(m) } | ||
428 | func (*URLFetchResponse_Header) ProtoMessage() {} | ||
429 | func (*URLFetchResponse_Header) Descriptor() ([]byte, []int) { | ||
430 | return fileDescriptor_urlfetch_service_b245a7065f33bced, []int{2, 0} | ||
431 | } | ||
432 | func (m *URLFetchResponse_Header) XXX_Unmarshal(b []byte) error { | ||
433 | return xxx_messageInfo_URLFetchResponse_Header.Unmarshal(m, b) | ||
434 | } | ||
435 | func (m *URLFetchResponse_Header) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { | ||
436 | return xxx_messageInfo_URLFetchResponse_Header.Marshal(b, m, deterministic) | ||
437 | } | ||
438 | func (dst *URLFetchResponse_Header) XXX_Merge(src proto.Message) { | ||
439 | xxx_messageInfo_URLFetchResponse_Header.Merge(dst, src) | ||
440 | } | ||
441 | func (m *URLFetchResponse_Header) XXX_Size() int { | ||
442 | return xxx_messageInfo_URLFetchResponse_Header.Size(m) | ||
443 | } | ||
444 | func (m *URLFetchResponse_Header) XXX_DiscardUnknown() { | ||
445 | xxx_messageInfo_URLFetchResponse_Header.DiscardUnknown(m) | ||
446 | } | ||
447 | |||
448 | var xxx_messageInfo_URLFetchResponse_Header proto.InternalMessageInfo | ||
449 | |||
450 | func (m *URLFetchResponse_Header) GetKey() string { | ||
451 | if m != nil && m.Key != nil { | ||
452 | return *m.Key | ||
453 | } | ||
454 | return "" | ||
455 | } | ||
456 | |||
457 | func (m *URLFetchResponse_Header) GetValue() string { | ||
458 | if m != nil && m.Value != nil { | ||
459 | return *m.Value | ||
460 | } | ||
461 | return "" | ||
462 | } | ||
463 | |||
464 | func init() { | ||
465 | proto.RegisterType((*URLFetchServiceError)(nil), "appengine.URLFetchServiceError") | ||
466 | proto.RegisterType((*URLFetchRequest)(nil), "appengine.URLFetchRequest") | ||
467 | proto.RegisterType((*URLFetchRequest_Header)(nil), "appengine.URLFetchRequest.Header") | ||
468 | proto.RegisterType((*URLFetchResponse)(nil), "appengine.URLFetchResponse") | ||
469 | proto.RegisterType((*URLFetchResponse_Header)(nil), "appengine.URLFetchResponse.Header") | ||
470 | } | ||
471 | |||
472 | func init() { | ||
473 | proto.RegisterFile("google.golang.org/appengine/internal/urlfetch/urlfetch_service.proto", fileDescriptor_urlfetch_service_b245a7065f33bced) | ||
474 | } | ||
475 | |||
476 | var fileDescriptor_urlfetch_service_b245a7065f33bced = []byte{ | ||
477 | // 770 bytes of a gzipped FileDescriptorProto | ||
478 | 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x54, 0xdd, 0x6e, 0xe3, 0x54, | ||
479 | 0x10, 0xc6, 0x76, 0x7e, 0xa7, 0x5d, 0x7a, 0x76, 0xb6, 0x45, 0x66, 0xb5, 0xa0, 0x10, 0x09, 0x29, | ||
480 | 0x17, 0x90, 0x2e, 0x2b, 0x24, 0x44, 0xaf, 0x70, 0xed, 0x93, 0xad, 0xa9, 0x63, 0x47, 0xc7, 0x4e, | ||
481 | 0x61, 0xb9, 0xb1, 0xac, 0x78, 0x9a, 0x5a, 0xb2, 0xec, 0x60, 0x9f, 0x2c, 0xf4, 0x35, 0x78, 0x0d, | ||
482 | 0xde, 0x87, 0xa7, 0xe1, 0x02, 0x9d, 0xc4, 0xc9, 0x6e, 0xbb, 0xd1, 0x4a, 0x5c, 0x65, 0xe6, 0x9b, | ||
483 | 0xef, 0xcc, 0x99, 0x7c, 0xdf, 0xf8, 0x80, 0xb3, 0x2c, 0xcb, 0x65, 0x4e, 0xe3, 0x65, 0x99, 0x27, | ||
484 | 0xc5, 0x72, 0x5c, 0x56, 0xcb, 0xf3, 0x64, 0xb5, 0xa2, 0x62, 0x99, 0x15, 0x74, 0x9e, 0x15, 0x92, | ||
485 | 0xaa, 0x22, 0xc9, 0xcf, 0xd7, 0x55, 0x7e, 0x4b, 0x72, 0x71, 0xb7, 0x0f, 0xe2, 0x9a, 0xaa, 0xb7, | ||
486 | 0xd9, 0x82, 0xc6, 0xab, 0xaa, 0x94, 0x25, 0xf6, 0xf7, 0x67, 0x86, 0x7f, 0xeb, 0x70, 0x3a, 0x17, | ||
487 | 0xde, 0x44, 0xb1, 0xc2, 0x2d, 0x89, 0x57, 0x55, 0x59, 0x0d, 0xff, 0xd2, 0xa1, 0xbf, 0x89, 0xec, | ||
488 | 0x32, 0x25, 0xec, 0x80, 0x1e, 0x5c, 0xb3, 0x4f, 0xf0, 0x04, 0x8e, 0x5c, 0xff, 0xc6, 0xf2, 0x5c, | ||
489 | 0x27, 0x9e, 0x0b, 0x8f, 0x69, 0x0a, 0x98, 0xf0, 0xc8, 0xbe, 0x8a, 0xb9, 0x10, 0x81, 0x60, 0x3a, | ||
490 | 0x9e, 0xc1, 0xd3, 0xb9, 0x1f, 0xce, 0xb8, 0xed, 0x4e, 0x5c, 0xee, 0x34, 0xb0, 0x81, 0x9f, 0x01, | ||
491 | 0x0a, 0x1e, 0xce, 0x02, 0x3f, 0xe4, 0x71, 0x14, 0x04, 0xb1, 0x67, 0x89, 0xd7, 0x9c, 0xb5, 0x14, | ||
492 | 0xdd, 0xe1, 0x96, 0xe3, 0xb9, 0x3e, 0x8f, 0xf9, 0xaf, 0x36, 0xe7, 0x0e, 0x77, 0x58, 0x1b, 0x3f, | ||
493 | 0x87, 0xb3, 0x30, 0xf4, 0x62, 0x9b, 0x8b, 0xc8, 0x9d, 0xb8, 0xb6, 0x15, 0xf1, 0xa6, 0x53, 0x07, | ||
494 | 0x9f, 0x40, 0xdf, 0xf1, 0xc3, 0x26, 0xed, 0x22, 0x40, 0xc7, 0xf6, 0x82, 0x90, 0x3b, 0xac, 0x87, | ||
495 | 0x2f, 0xc0, 0x74, 0xfd, 0x88, 0x0b, 0xdf, 0xf2, 0xe2, 0x48, 0x58, 0x7e, 0xe8, 0x72, 0x3f, 0x6a, | ||
496 | 0x98, 0x7d, 0x35, 0x82, 0xba, 0x79, 0x6a, 0xf9, 0x6f, 0x62, 0xc1, 0x1d, 0x57, 0x70, 0x3b, 0x0a, | ||
497 | 0x19, 0xe0, 0x33, 0x38, 0x99, 0x5a, 0xde, 0x24, 0x10, 0x53, 0xee, 0xc4, 0x82, 0xcf, 0xbc, 0x37, | ||
498 | 0xec, 0x08, 0x4f, 0x81, 0xd9, 0x81, 0xef, 0x73, 0x3b, 0x72, 0x03, 0xbf, 0x69, 0x71, 0x3c, 0xfc, | ||
499 | 0xc7, 0x80, 0x93, 0x9d, 0x5a, 0x82, 0x7e, 0x5f, 0x53, 0x2d, 0xf1, 0x27, 0xe8, 0x4c, 0x49, 0xde, | ||
500 | 0x95, 0xa9, 0xa9, 0x0d, 0xf4, 0xd1, 0xa7, 0xaf, 0x46, 0xe3, 0xbd, 0xba, 0xe3, 0x47, 0xdc, 0x71, | ||
501 | 0xf3, 0xbb, 0xe5, 0x8b, 0xe6, 0x1c, 0x32, 0x30, 0xe6, 0x55, 0x6e, 0xea, 0x03, 0x7d, 0xd4, 0x17, | ||
502 | 0x2a, 0xc4, 0x1f, 0xa1, 0x73, 0x47, 0x49, 0x4a, 0x95, 0x69, 0x0c, 0x8c, 0x11, 0xbc, 0xfa, 0xea, | ||
503 | 0x23, 0x3d, 0xaf, 0x36, 0x44, 0xd1, 0x1c, 0xc0, 0x17, 0xd0, 0x9d, 0x25, 0xf7, 0x79, 0x99, 0xa4, | ||
504 | 0x66, 0x67, 0xa0, 0x8d, 0x8e, 0x2f, 0xf5, 0x9e, 0x26, 0x76, 0x10, 0x8e, 0xe1, 0x64, 0x52, 0xe6, | ||
505 | 0x79, 0xf9, 0x87, 0xa0, 0x34, 0xab, 0x68, 0x21, 0x6b, 0xb3, 0x3b, 0xd0, 0x46, 0xbd, 0x8b, 0x96, | ||
506 | 0xac, 0xd6, 0x24, 0x1e, 0x17, 0xf1, 0x39, 0xf4, 0x1c, 0x4a, 0xd2, 0x3c, 0x2b, 0xc8, 0xec, 0x0d, | ||
507 | 0xb4, 0x91, 0x26, 0xf6, 0x39, 0xfe, 0x0c, 0x5f, 0x4c, 0xd7, 0xb5, 0xbc, 0x49, 0xf2, 0x2c, 0x4d, | ||
508 | 0x24, 0xa9, 0xed, 0xa1, 0xca, 0xa6, 0x4a, 0x66, 0xb7, 0xd9, 0x22, 0x91, 0x64, 0xf6, 0xdf, 0xeb, | ||
509 | 0xfc, 0x71, 0xea, 0xf3, 0x97, 0xd0, 0xd9, 0xfe, 0x0f, 0x25, 0xc6, 0x35, 0xdd, 0x9b, 0xad, 0xad, | ||
510 | 0x18, 0xd7, 0x74, 0x8f, 0xa7, 0xd0, 0xbe, 0x49, 0xf2, 0x35, 0x99, 0xed, 0x0d, 0xb6, 0x4d, 0x86, | ||
511 | 0x1e, 0x3c, 0x79, 0xa0, 0x26, 0x76, 0xc1, 0x78, 0xcd, 0x23, 0xa6, 0x61, 0x0f, 0x5a, 0xb3, 0x20, | ||
512 | 0x8c, 0x98, 0xae, 0xa2, 0x2b, 0x6e, 0x39, 0xcc, 0x50, 0xc5, 0xd9, 0x3c, 0x62, 0x2d, 0xb5, 0x2e, | ||
513 | 0x0e, 0xf7, 0x78, 0xc4, 0x59, 0x1b, 0xfb, 0xd0, 0x9e, 0x59, 0x91, 0x7d, 0xc5, 0x3a, 0xc3, 0x7f, | ||
514 | 0x0d, 0x60, 0xef, 0x84, 0xad, 0x57, 0x65, 0x51, 0x13, 0x9a, 0xd0, 0xb5, 0xcb, 0x42, 0x52, 0x21, | ||
515 | 0x4d, 0x4d, 0x49, 0x29, 0x76, 0x29, 0x7e, 0x09, 0x10, 0xca, 0x44, 0xae, 0x6b, 0xf5, 0x71, 0x6c, | ||
516 | 0x8c, 0x6b, 0x8b, 0xf7, 0x10, 0xbc, 0x78, 0xe4, 0xdf, 0xf0, 0xa0, 0x7f, 0xdb, 0x6b, 0x1e, 0x1b, | ||
517 | 0xf8, 0x03, 0x3c, 0x6b, 0xae, 0xf9, 0x25, 0xa9, 0xa3, 0x6a, 0x5d, 0x28, 0x81, 0xb6, 0x66, 0xf6, | ||
518 | 0x2e, 0xda, 0xb7, 0x49, 0x5e, 0x93, 0x38, 0xc4, 0xc0, 0x6f, 0xe0, 0x29, 0xff, 0x73, 0xfb, 0x02, | ||
519 | 0x5c, 0xde, 0x4b, 0xaa, 0x43, 0x35, 0xb8, 0x72, 0xd7, 0x10, 0x1f, 0x16, 0xf0, 0x7b, 0x38, 0x7b, | ||
520 | 0x00, 0x0a, 0x5a, 0x50, 0xf6, 0x96, 0xd2, 0x8d, 0xcd, 0x86, 0x38, 0x5c, 0x54, 0xfb, 0x30, 0xc9, | ||
521 | 0x8a, 0x24, 0x57, 0xfb, 0xaa, 0xec, 0xed, 0x8b, 0x7d, 0x8e, 0xdf, 0x01, 0x5a, 0xab, 0xcc, 0x5e, | ||
522 | 0xad, 0xa7, 0x59, 0x9e, 0x67, 0x35, 0x2d, 0xca, 0x22, 0xad, 0x4d, 0x50, 0xed, 0x2e, 0xb4, 0x97, | ||
523 | 0xe2, 0x40, 0x11, 0xbf, 0x86, 0x63, 0x6b, 0x95, 0xbd, 0x9b, 0xf6, 0x68, 0x47, 0x7e, 0x00, 0xe3, | ||
524 | 0xb7, 0xc0, 0x76, 0xf9, 0x7e, 0xcc, 0xe3, 0x1d, 0xf5, 0x83, 0xd2, 0xff, 0x5f, 0xa6, 0x4b, 0xf8, | ||
525 | 0xad, 0xb7, 0x7b, 0x2a, 0xff, 0x0b, 0x00, 0x00, 0xff, 0xff, 0x1d, 0x9f, 0x6d, 0x24, 0x63, 0x05, | ||
526 | 0x00, 0x00, | ||
527 | } | ||
diff --git a/vendor/google.golang.org/appengine/internal/urlfetch/urlfetch_service.proto b/vendor/google.golang.org/appengine/internal/urlfetch/urlfetch_service.proto new file mode 100644 index 0000000..f695edf --- /dev/null +++ b/vendor/google.golang.org/appengine/internal/urlfetch/urlfetch_service.proto | |||
@@ -0,0 +1,64 @@ | |||
1 | syntax = "proto2"; | ||
2 | option go_package = "urlfetch"; | ||
3 | |||
4 | package appengine; | ||
5 | |||
6 | message URLFetchServiceError { | ||
7 | enum ErrorCode { | ||
8 | OK = 0; | ||
9 | INVALID_URL = 1; | ||
10 | FETCH_ERROR = 2; | ||
11 | UNSPECIFIED_ERROR = 3; | ||
12 | RESPONSE_TOO_LARGE = 4; | ||
13 | DEADLINE_EXCEEDED = 5; | ||
14 | SSL_CERTIFICATE_ERROR = 6; | ||
15 | DNS_ERROR = 7; | ||
16 | CLOSED = 8; | ||
17 | INTERNAL_TRANSIENT_ERROR = 9; | ||
18 | TOO_MANY_REDIRECTS = 10; | ||
19 | MALFORMED_REPLY = 11; | ||
20 | CONNECTION_ERROR = 12; | ||
21 | } | ||
22 | } | ||
23 | |||
24 | message URLFetchRequest { | ||
25 | enum RequestMethod { | ||
26 | GET = 1; | ||
27 | POST = 2; | ||
28 | HEAD = 3; | ||
29 | PUT = 4; | ||
30 | DELETE = 5; | ||
31 | PATCH = 6; | ||
32 | } | ||
33 | required RequestMethod Method = 1; | ||
34 | required string Url = 2; | ||
35 | repeated group Header = 3 { | ||
36 | required string Key = 4; | ||
37 | required string Value = 5; | ||
38 | } | ||
39 | optional bytes Payload = 6 [ctype=CORD]; | ||
40 | |||
41 | optional bool FollowRedirects = 7 [default=true]; | ||
42 | |||
43 | optional double Deadline = 8; | ||
44 | |||
45 | optional bool MustValidateServerCertificate = 9 [default=true]; | ||
46 | } | ||
47 | |||
48 | message URLFetchResponse { | ||
49 | optional bytes Content = 1; | ||
50 | required int32 StatusCode = 2; | ||
51 | repeated group Header = 3 { | ||
52 | required string Key = 4; | ||
53 | required string Value = 5; | ||
54 | } | ||
55 | optional bool ContentWasTruncated = 6 [default=false]; | ||
56 | optional int64 ExternalBytesSent = 7; | ||
57 | optional int64 ExternalBytesReceived = 8; | ||
58 | |||
59 | optional string FinalUrl = 9; | ||
60 | |||
61 | optional int64 ApiCpuMilliseconds = 10 [default=0]; | ||
62 | optional int64 ApiBytesSent = 11 [default=0]; | ||
63 | optional int64 ApiBytesReceived = 12 [default=0]; | ||
64 | } | ||