OSDN Git Service

new repo
[bytom/vapor.git] / vendor / google.golang.org / genproto / googleapis / logging / v2 / logging.pb.go
1 // Code generated by protoc-gen-go. DO NOT EDIT.
2 // source: google/logging/v2/logging.proto
3
4 package logging
5
6 import proto "github.com/golang/protobuf/proto"
7 import fmt "fmt"
8 import math "math"
9 import _ "google.golang.org/genproto/googleapis/api/annotations"
10 import google_api3 "google.golang.org/genproto/googleapis/api/monitoredres"
11 import _ "github.com/golang/protobuf/ptypes/duration"
12 import google_protobuf5 "github.com/golang/protobuf/ptypes/empty"
13 import _ "github.com/golang/protobuf/ptypes/timestamp"
14 import google_rpc "google.golang.org/genproto/googleapis/rpc/status"
15
16 import (
17         context "golang.org/x/net/context"
18         grpc "google.golang.org/grpc"
19 )
20
21 // Reference imports to suppress errors if they are not otherwise used.
22 var _ = proto.Marshal
23 var _ = fmt.Errorf
24 var _ = math.Inf
25
26 // The parameters to DeleteLog.
27 type DeleteLogRequest struct {
28         // Required. The resource name of the log to delete:
29         //
30         //     "projects/[PROJECT_ID]/logs/[LOG_ID]"
31         //     "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]"
32         //     "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]"
33         //     "folders/[FOLDER_ID]/logs/[LOG_ID]"
34         //
35         // `[LOG_ID]` must be URL-encoded. For example,
36         // `"projects/my-project-id/logs/syslog"`,
37         // `"organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity"`.
38         // For more information about log names, see
39         // [LogEntry][google.logging.v2.LogEntry].
40         LogName string `protobuf:"bytes,1,opt,name=log_name,json=logName" json:"log_name,omitempty"`
41 }
42
43 func (m *DeleteLogRequest) Reset()                    { *m = DeleteLogRequest{} }
44 func (m *DeleteLogRequest) String() string            { return proto.CompactTextString(m) }
45 func (*DeleteLogRequest) ProtoMessage()               {}
46 func (*DeleteLogRequest) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{0} }
47
48 func (m *DeleteLogRequest) GetLogName() string {
49         if m != nil {
50                 return m.LogName
51         }
52         return ""
53 }
54
55 // The parameters to WriteLogEntries.
56 type WriteLogEntriesRequest struct {
57         // Optional. A default log resource name that is assigned to all log entries
58         // in `entries` that do not specify a value for `log_name`:
59         //
60         //     "projects/[PROJECT_ID]/logs/[LOG_ID]"
61         //     "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]"
62         //     "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]"
63         //     "folders/[FOLDER_ID]/logs/[LOG_ID]"
64         //
65         // `[LOG_ID]` must be URL-encoded. For example,
66         // `"projects/my-project-id/logs/syslog"` or
67         // `"organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity"`.
68         // For more information about log names, see
69         // [LogEntry][google.logging.v2.LogEntry].
70         LogName string `protobuf:"bytes,1,opt,name=log_name,json=logName" json:"log_name,omitempty"`
71         // Optional. A default monitored resource object that is assigned to all log
72         // entries in `entries` that do not specify a value for `resource`. Example:
73         //
74         //     { "type": "gce_instance",
75         //       "labels": {
76         //         "zone": "us-central1-a", "instance_id": "00000000000000000000" }}
77         //
78         // See [LogEntry][google.logging.v2.LogEntry].
79         Resource *google_api3.MonitoredResource `protobuf:"bytes,2,opt,name=resource" json:"resource,omitempty"`
80         // Optional. Default labels that are added to the `labels` field of all log
81         // entries in `entries`. If a log entry already has a label with the same key
82         // as a label in this parameter, then the log entry's label is not changed.
83         // See [LogEntry][google.logging.v2.LogEntry].
84         Labels map[string]string `protobuf:"bytes,3,rep,name=labels" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
85         // Required.  The log entries to write. Values supplied for the fields
86         // `log_name`, `resource`, and `labels` in this `entries.write` request are
87         // inserted into those log entries in this list that do not provide their own
88         // values.
89         //
90         // Stackdriver Logging also creates and inserts values for `timestamp` and
91         // `insert_id` if the entries do not provide them. The created `insert_id` for
92         // the N'th entry in this list will be greater than earlier entries and less
93         // than later entries.  Otherwise, the order of log entries in this list does
94         // not matter.
95         //
96         // To improve throughput and to avoid exceeding the
97         // [quota limit](/logging/quota-policy) for calls to `entries.write`,
98         // you should write multiple log entries at once rather than
99         // calling this method for each individual log entry.
100         Entries []*LogEntry `protobuf:"bytes,4,rep,name=entries" json:"entries,omitempty"`
101         // Optional. Whether valid entries should be written even if some other
102         // entries fail due to INVALID_ARGUMENT or PERMISSION_DENIED errors. If any
103         // entry is not written, then the response status is the error associated
104         // with one of the failed entries and the response includes error details
105         // keyed by the entries' zero-based index in the `entries.write` method.
106         PartialSuccess bool `protobuf:"varint,5,opt,name=partial_success,json=partialSuccess" json:"partial_success,omitempty"`
107 }
108
109 func (m *WriteLogEntriesRequest) Reset()                    { *m = WriteLogEntriesRequest{} }
110 func (m *WriteLogEntriesRequest) String() string            { return proto.CompactTextString(m) }
111 func (*WriteLogEntriesRequest) ProtoMessage()               {}
112 func (*WriteLogEntriesRequest) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{1} }
113
114 func (m *WriteLogEntriesRequest) GetLogName() string {
115         if m != nil {
116                 return m.LogName
117         }
118         return ""
119 }
120
121 func (m *WriteLogEntriesRequest) GetResource() *google_api3.MonitoredResource {
122         if m != nil {
123                 return m.Resource
124         }
125         return nil
126 }
127
128 func (m *WriteLogEntriesRequest) GetLabels() map[string]string {
129         if m != nil {
130                 return m.Labels
131         }
132         return nil
133 }
134
135 func (m *WriteLogEntriesRequest) GetEntries() []*LogEntry {
136         if m != nil {
137                 return m.Entries
138         }
139         return nil
140 }
141
142 func (m *WriteLogEntriesRequest) GetPartialSuccess() bool {
143         if m != nil {
144                 return m.PartialSuccess
145         }
146         return false
147 }
148
149 // Result returned from WriteLogEntries.
150 // empty
151 type WriteLogEntriesResponse struct {
152 }
153
154 func (m *WriteLogEntriesResponse) Reset()                    { *m = WriteLogEntriesResponse{} }
155 func (m *WriteLogEntriesResponse) String() string            { return proto.CompactTextString(m) }
156 func (*WriteLogEntriesResponse) ProtoMessage()               {}
157 func (*WriteLogEntriesResponse) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{2} }
158
159 // Error details for WriteLogEntries with partial success.
160 type WriteLogEntriesPartialErrors struct {
161         // When `WriteLogEntriesRequest.partial_success` is true, records the error
162         // status for entries that were not written due to a permanent error, keyed
163         // by the entry's zero-based index in `WriteLogEntriesRequest.entries`.
164         //
165         // Failed requests for which no entries are written will not include
166         // per-entry errors.
167         LogEntryErrors map[int32]*google_rpc.Status `protobuf:"bytes,1,rep,name=log_entry_errors,json=logEntryErrors" json:"log_entry_errors,omitempty" protobuf_key:"varint,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
168 }
169
170 func (m *WriteLogEntriesPartialErrors) Reset()                    { *m = WriteLogEntriesPartialErrors{} }
171 func (m *WriteLogEntriesPartialErrors) String() string            { return proto.CompactTextString(m) }
172 func (*WriteLogEntriesPartialErrors) ProtoMessage()               {}
173 func (*WriteLogEntriesPartialErrors) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{3} }
174
175 func (m *WriteLogEntriesPartialErrors) GetLogEntryErrors() map[int32]*google_rpc.Status {
176         if m != nil {
177                 return m.LogEntryErrors
178         }
179         return nil
180 }
181
182 // The parameters to `ListLogEntries`.
183 type ListLogEntriesRequest struct {
184         // Deprecated. Use `resource_names` instead.  One or more project identifiers
185         // or project numbers from which to retrieve log entries.  Example:
186         // `"my-project-1A"`. If present, these project identifiers are converted to
187         // resource name format and added to the list of resources in
188         // `resource_names`.
189         ProjectIds []string `protobuf:"bytes,1,rep,name=project_ids,json=projectIds" json:"project_ids,omitempty"`
190         // Required. Names of one or more parent resources from which to
191         // retrieve log entries:
192         //
193         //     "projects/[PROJECT_ID]"
194         //     "organizations/[ORGANIZATION_ID]"
195         //     "billingAccounts/[BILLING_ACCOUNT_ID]"
196         //     "folders/[FOLDER_ID]"
197         //
198         // Projects listed in the `project_ids` field are added to this list.
199         ResourceNames []string `protobuf:"bytes,8,rep,name=resource_names,json=resourceNames" json:"resource_names,omitempty"`
200         // Optional. A filter that chooses which log entries to return.  See [Advanced
201         // Logs Filters](/logging/docs/view/advanced_filters).  Only log entries that
202         // match the filter are returned.  An empty filter matches all log entries in
203         // the resources listed in `resource_names`. Referencing a parent resource
204         // that is not listed in `resource_names` will cause the filter to return no
205         // results.
206         // The maximum length of the filter is 20000 characters.
207         Filter string `protobuf:"bytes,2,opt,name=filter" json:"filter,omitempty"`
208         // Optional. How the results should be sorted.  Presently, the only permitted
209         // values are `"timestamp asc"` (default) and `"timestamp desc"`. The first
210         // option returns entries in order of increasing values of
211         // `LogEntry.timestamp` (oldest first), and the second option returns entries
212         // in order of decreasing timestamps (newest first).  Entries with equal
213         // timestamps are returned in order of their `insert_id` values.
214         OrderBy string `protobuf:"bytes,3,opt,name=order_by,json=orderBy" json:"order_by,omitempty"`
215         // Optional. The maximum number of results to return from this request.
216         // Non-positive values are ignored.  The presence of `next_page_token` in the
217         // response indicates that more results might be available.
218         PageSize int32 `protobuf:"varint,4,opt,name=page_size,json=pageSize" json:"page_size,omitempty"`
219         // Optional. If present, then retrieve the next batch of results from the
220         // preceding call to this method.  `page_token` must be the value of
221         // `next_page_token` from the previous response.  The values of other method
222         // parameters should be identical to those in the previous call.
223         PageToken string `protobuf:"bytes,5,opt,name=page_token,json=pageToken" json:"page_token,omitempty"`
224 }
225
226 func (m *ListLogEntriesRequest) Reset()                    { *m = ListLogEntriesRequest{} }
227 func (m *ListLogEntriesRequest) String() string            { return proto.CompactTextString(m) }
228 func (*ListLogEntriesRequest) ProtoMessage()               {}
229 func (*ListLogEntriesRequest) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{4} }
230
231 func (m *ListLogEntriesRequest) GetProjectIds() []string {
232         if m != nil {
233                 return m.ProjectIds
234         }
235         return nil
236 }
237
238 func (m *ListLogEntriesRequest) GetResourceNames() []string {
239         if m != nil {
240                 return m.ResourceNames
241         }
242         return nil
243 }
244
245 func (m *ListLogEntriesRequest) GetFilter() string {
246         if m != nil {
247                 return m.Filter
248         }
249         return ""
250 }
251
252 func (m *ListLogEntriesRequest) GetOrderBy() string {
253         if m != nil {
254                 return m.OrderBy
255         }
256         return ""
257 }
258
259 func (m *ListLogEntriesRequest) GetPageSize() int32 {
260         if m != nil {
261                 return m.PageSize
262         }
263         return 0
264 }
265
266 func (m *ListLogEntriesRequest) GetPageToken() string {
267         if m != nil {
268                 return m.PageToken
269         }
270         return ""
271 }
272
273 // Result returned from `ListLogEntries`.
274 type ListLogEntriesResponse struct {
275         // A list of log entries.
276         Entries []*LogEntry `protobuf:"bytes,1,rep,name=entries" json:"entries,omitempty"`
277         // If there might be more results than those appearing in this response, then
278         // `nextPageToken` is included.  To get the next set of results, call this
279         // method again using the value of `nextPageToken` as `pageToken`.
280         //
281         // If a value for `next_page_token` appears and the `entries` field is empty,
282         // it means that the search found no log entries so far but it did not have
283         // time to search all the possible log entries.  Retry the method with this
284         // value for `page_token` to continue the search.  Alternatively, consider
285         // speeding up the search by changing your filter to specify a single log name
286         // or resource type, or to narrow the time range of the search.
287         NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken" json:"next_page_token,omitempty"`
288 }
289
290 func (m *ListLogEntriesResponse) Reset()                    { *m = ListLogEntriesResponse{} }
291 func (m *ListLogEntriesResponse) String() string            { return proto.CompactTextString(m) }
292 func (*ListLogEntriesResponse) ProtoMessage()               {}
293 func (*ListLogEntriesResponse) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{5} }
294
295 func (m *ListLogEntriesResponse) GetEntries() []*LogEntry {
296         if m != nil {
297                 return m.Entries
298         }
299         return nil
300 }
301
302 func (m *ListLogEntriesResponse) GetNextPageToken() string {
303         if m != nil {
304                 return m.NextPageToken
305         }
306         return ""
307 }
308
309 // The parameters to ListMonitoredResourceDescriptors
310 type ListMonitoredResourceDescriptorsRequest struct {
311         // Optional. The maximum number of results to return from this request.
312         // Non-positive values are ignored.  The presence of `nextPageToken` in the
313         // response indicates that more results might be available.
314         PageSize int32 `protobuf:"varint,1,opt,name=page_size,json=pageSize" json:"page_size,omitempty"`
315         // Optional. If present, then retrieve the next batch of results from the
316         // preceding call to this method.  `pageToken` must be the value of
317         // `nextPageToken` from the previous response.  The values of other method
318         // parameters should be identical to those in the previous call.
319         PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken" json:"page_token,omitempty"`
320 }
321
322 func (m *ListMonitoredResourceDescriptorsRequest) Reset() {
323         *m = ListMonitoredResourceDescriptorsRequest{}
324 }
325 func (m *ListMonitoredResourceDescriptorsRequest) String() string { return proto.CompactTextString(m) }
326 func (*ListMonitoredResourceDescriptorsRequest) ProtoMessage()    {}
327 func (*ListMonitoredResourceDescriptorsRequest) Descriptor() ([]byte, []int) {
328         return fileDescriptor1, []int{6}
329 }
330
331 func (m *ListMonitoredResourceDescriptorsRequest) GetPageSize() int32 {
332         if m != nil {
333                 return m.PageSize
334         }
335         return 0
336 }
337
338 func (m *ListMonitoredResourceDescriptorsRequest) GetPageToken() string {
339         if m != nil {
340                 return m.PageToken
341         }
342         return ""
343 }
344
345 // Result returned from ListMonitoredResourceDescriptors.
346 type ListMonitoredResourceDescriptorsResponse struct {
347         // A list of resource descriptors.
348         ResourceDescriptors []*google_api3.MonitoredResourceDescriptor `protobuf:"bytes,1,rep,name=resource_descriptors,json=resourceDescriptors" json:"resource_descriptors,omitempty"`
349         // If there might be more results than those appearing in this response, then
350         // `nextPageToken` is included.  To get the next set of results, call this
351         // method again using the value of `nextPageToken` as `pageToken`.
352         NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken" json:"next_page_token,omitempty"`
353 }
354
355 func (m *ListMonitoredResourceDescriptorsResponse) Reset() {
356         *m = ListMonitoredResourceDescriptorsResponse{}
357 }
358 func (m *ListMonitoredResourceDescriptorsResponse) String() string { return proto.CompactTextString(m) }
359 func (*ListMonitoredResourceDescriptorsResponse) ProtoMessage()    {}
360 func (*ListMonitoredResourceDescriptorsResponse) Descriptor() ([]byte, []int) {
361         return fileDescriptor1, []int{7}
362 }
363
364 func (m *ListMonitoredResourceDescriptorsResponse) GetResourceDescriptors() []*google_api3.MonitoredResourceDescriptor {
365         if m != nil {
366                 return m.ResourceDescriptors
367         }
368         return nil
369 }
370
371 func (m *ListMonitoredResourceDescriptorsResponse) GetNextPageToken() string {
372         if m != nil {
373                 return m.NextPageToken
374         }
375         return ""
376 }
377
378 // The parameters to ListLogs.
379 type ListLogsRequest struct {
380         // Required. The resource name that owns the logs:
381         //
382         //     "projects/[PROJECT_ID]"
383         //     "organizations/[ORGANIZATION_ID]"
384         //     "billingAccounts/[BILLING_ACCOUNT_ID]"
385         //     "folders/[FOLDER_ID]"
386         Parent string `protobuf:"bytes,1,opt,name=parent" json:"parent,omitempty"`
387         // Optional. The maximum number of results to return from this request.
388         // Non-positive values are ignored.  The presence of `nextPageToken` in the
389         // response indicates that more results might be available.
390         PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize" json:"page_size,omitempty"`
391         // Optional. If present, then retrieve the next batch of results from the
392         // preceding call to this method.  `pageToken` must be the value of
393         // `nextPageToken` from the previous response.  The values of other method
394         // parameters should be identical to those in the previous call.
395         PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken" json:"page_token,omitempty"`
396 }
397
398 func (m *ListLogsRequest) Reset()                    { *m = ListLogsRequest{} }
399 func (m *ListLogsRequest) String() string            { return proto.CompactTextString(m) }
400 func (*ListLogsRequest) ProtoMessage()               {}
401 func (*ListLogsRequest) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{8} }
402
403 func (m *ListLogsRequest) GetParent() string {
404         if m != nil {
405                 return m.Parent
406         }
407         return ""
408 }
409
410 func (m *ListLogsRequest) GetPageSize() int32 {
411         if m != nil {
412                 return m.PageSize
413         }
414         return 0
415 }
416
417 func (m *ListLogsRequest) GetPageToken() string {
418         if m != nil {
419                 return m.PageToken
420         }
421         return ""
422 }
423
424 // Result returned from ListLogs.
425 type ListLogsResponse struct {
426         // A list of log names. For example,
427         // `"projects/my-project/syslog"` or
428         // `"organizations/123/cloudresourcemanager.googleapis.com%2Factivity"`.
429         LogNames []string `protobuf:"bytes,3,rep,name=log_names,json=logNames" json:"log_names,omitempty"`
430         // If there might be more results than those appearing in this response, then
431         // `nextPageToken` is included.  To get the next set of results, call this
432         // method again using the value of `nextPageToken` as `pageToken`.
433         NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken" json:"next_page_token,omitempty"`
434 }
435
436 func (m *ListLogsResponse) Reset()                    { *m = ListLogsResponse{} }
437 func (m *ListLogsResponse) String() string            { return proto.CompactTextString(m) }
438 func (*ListLogsResponse) ProtoMessage()               {}
439 func (*ListLogsResponse) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{9} }
440
441 func (m *ListLogsResponse) GetLogNames() []string {
442         if m != nil {
443                 return m.LogNames
444         }
445         return nil
446 }
447
448 func (m *ListLogsResponse) GetNextPageToken() string {
449         if m != nil {
450                 return m.NextPageToken
451         }
452         return ""
453 }
454
455 func init() {
456         proto.RegisterType((*DeleteLogRequest)(nil), "google.logging.v2.DeleteLogRequest")
457         proto.RegisterType((*WriteLogEntriesRequest)(nil), "google.logging.v2.WriteLogEntriesRequest")
458         proto.RegisterType((*WriteLogEntriesResponse)(nil), "google.logging.v2.WriteLogEntriesResponse")
459         proto.RegisterType((*WriteLogEntriesPartialErrors)(nil), "google.logging.v2.WriteLogEntriesPartialErrors")
460         proto.RegisterType((*ListLogEntriesRequest)(nil), "google.logging.v2.ListLogEntriesRequest")
461         proto.RegisterType((*ListLogEntriesResponse)(nil), "google.logging.v2.ListLogEntriesResponse")
462         proto.RegisterType((*ListMonitoredResourceDescriptorsRequest)(nil), "google.logging.v2.ListMonitoredResourceDescriptorsRequest")
463         proto.RegisterType((*ListMonitoredResourceDescriptorsResponse)(nil), "google.logging.v2.ListMonitoredResourceDescriptorsResponse")
464         proto.RegisterType((*ListLogsRequest)(nil), "google.logging.v2.ListLogsRequest")
465         proto.RegisterType((*ListLogsResponse)(nil), "google.logging.v2.ListLogsResponse")
466 }
467
468 // Reference imports to suppress errors if they are not otherwise used.
469 var _ context.Context
470 var _ grpc.ClientConn
471
472 // This is a compile-time assertion to ensure that this generated file
473 // is compatible with the grpc package it is being compiled against.
474 const _ = grpc.SupportPackageIsVersion4
475
476 // Client API for LoggingServiceV2 service
477
478 type LoggingServiceV2Client interface {
479         // Deletes all the log entries in a log.
480         // The log reappears if it receives new entries.
481         // Log entries written shortly before the delete operation might not be
482         // deleted.
483         DeleteLog(ctx context.Context, in *DeleteLogRequest, opts ...grpc.CallOption) (*google_protobuf5.Empty, error)
484         // Writes log entries to Stackdriver Logging.
485         WriteLogEntries(ctx context.Context, in *WriteLogEntriesRequest, opts ...grpc.CallOption) (*WriteLogEntriesResponse, error)
486         // Lists log entries.  Use this method to retrieve log entries from
487         // Stackdriver Logging.  For ways to export log entries, see
488         // [Exporting Logs](/logging/docs/export).
489         ListLogEntries(ctx context.Context, in *ListLogEntriesRequest, opts ...grpc.CallOption) (*ListLogEntriesResponse, error)
490         // Lists the descriptors for monitored resource types used by Stackdriver
491         // Logging.
492         ListMonitoredResourceDescriptors(ctx context.Context, in *ListMonitoredResourceDescriptorsRequest, opts ...grpc.CallOption) (*ListMonitoredResourceDescriptorsResponse, error)
493         // Lists the logs in projects, organizations, folders, or billing accounts.
494         // Only logs that have entries are listed.
495         ListLogs(ctx context.Context, in *ListLogsRequest, opts ...grpc.CallOption) (*ListLogsResponse, error)
496 }
497
498 type loggingServiceV2Client struct {
499         cc *grpc.ClientConn
500 }
501
502 func NewLoggingServiceV2Client(cc *grpc.ClientConn) LoggingServiceV2Client {
503         return &loggingServiceV2Client{cc}
504 }
505
506 func (c *loggingServiceV2Client) DeleteLog(ctx context.Context, in *DeleteLogRequest, opts ...grpc.CallOption) (*google_protobuf5.Empty, error) {
507         out := new(google_protobuf5.Empty)
508         err := grpc.Invoke(ctx, "/google.logging.v2.LoggingServiceV2/DeleteLog", in, out, c.cc, opts...)
509         if err != nil {
510                 return nil, err
511         }
512         return out, nil
513 }
514
515 func (c *loggingServiceV2Client) WriteLogEntries(ctx context.Context, in *WriteLogEntriesRequest, opts ...grpc.CallOption) (*WriteLogEntriesResponse, error) {
516         out := new(WriteLogEntriesResponse)
517         err := grpc.Invoke(ctx, "/google.logging.v2.LoggingServiceV2/WriteLogEntries", in, out, c.cc, opts...)
518         if err != nil {
519                 return nil, err
520         }
521         return out, nil
522 }
523
524 func (c *loggingServiceV2Client) ListLogEntries(ctx context.Context, in *ListLogEntriesRequest, opts ...grpc.CallOption) (*ListLogEntriesResponse, error) {
525         out := new(ListLogEntriesResponse)
526         err := grpc.Invoke(ctx, "/google.logging.v2.LoggingServiceV2/ListLogEntries", in, out, c.cc, opts...)
527         if err != nil {
528                 return nil, err
529         }
530         return out, nil
531 }
532
533 func (c *loggingServiceV2Client) ListMonitoredResourceDescriptors(ctx context.Context, in *ListMonitoredResourceDescriptorsRequest, opts ...grpc.CallOption) (*ListMonitoredResourceDescriptorsResponse, error) {
534         out := new(ListMonitoredResourceDescriptorsResponse)
535         err := grpc.Invoke(ctx, "/google.logging.v2.LoggingServiceV2/ListMonitoredResourceDescriptors", in, out, c.cc, opts...)
536         if err != nil {
537                 return nil, err
538         }
539         return out, nil
540 }
541
542 func (c *loggingServiceV2Client) ListLogs(ctx context.Context, in *ListLogsRequest, opts ...grpc.CallOption) (*ListLogsResponse, error) {
543         out := new(ListLogsResponse)
544         err := grpc.Invoke(ctx, "/google.logging.v2.LoggingServiceV2/ListLogs", in, out, c.cc, opts...)
545         if err != nil {
546                 return nil, err
547         }
548         return out, nil
549 }
550
551 // Server API for LoggingServiceV2 service
552
553 type LoggingServiceV2Server interface {
554         // Deletes all the log entries in a log.
555         // The log reappears if it receives new entries.
556         // Log entries written shortly before the delete operation might not be
557         // deleted.
558         DeleteLog(context.Context, *DeleteLogRequest) (*google_protobuf5.Empty, error)
559         // Writes log entries to Stackdriver Logging.
560         WriteLogEntries(context.Context, *WriteLogEntriesRequest) (*WriteLogEntriesResponse, error)
561         // Lists log entries.  Use this method to retrieve log entries from
562         // Stackdriver Logging.  For ways to export log entries, see
563         // [Exporting Logs](/logging/docs/export).
564         ListLogEntries(context.Context, *ListLogEntriesRequest) (*ListLogEntriesResponse, error)
565         // Lists the descriptors for monitored resource types used by Stackdriver
566         // Logging.
567         ListMonitoredResourceDescriptors(context.Context, *ListMonitoredResourceDescriptorsRequest) (*ListMonitoredResourceDescriptorsResponse, error)
568         // Lists the logs in projects, organizations, folders, or billing accounts.
569         // Only logs that have entries are listed.
570         ListLogs(context.Context, *ListLogsRequest) (*ListLogsResponse, error)
571 }
572
573 func RegisterLoggingServiceV2Server(s *grpc.Server, srv LoggingServiceV2Server) {
574         s.RegisterService(&_LoggingServiceV2_serviceDesc, srv)
575 }
576
577 func _LoggingServiceV2_DeleteLog_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
578         in := new(DeleteLogRequest)
579         if err := dec(in); err != nil {
580                 return nil, err
581         }
582         if interceptor == nil {
583                 return srv.(LoggingServiceV2Server).DeleteLog(ctx, in)
584         }
585         info := &grpc.UnaryServerInfo{
586                 Server:     srv,
587                 FullMethod: "/google.logging.v2.LoggingServiceV2/DeleteLog",
588         }
589         handler := func(ctx context.Context, req interface{}) (interface{}, error) {
590                 return srv.(LoggingServiceV2Server).DeleteLog(ctx, req.(*DeleteLogRequest))
591         }
592         return interceptor(ctx, in, info, handler)
593 }
594
595 func _LoggingServiceV2_WriteLogEntries_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
596         in := new(WriteLogEntriesRequest)
597         if err := dec(in); err != nil {
598                 return nil, err
599         }
600         if interceptor == nil {
601                 return srv.(LoggingServiceV2Server).WriteLogEntries(ctx, in)
602         }
603         info := &grpc.UnaryServerInfo{
604                 Server:     srv,
605                 FullMethod: "/google.logging.v2.LoggingServiceV2/WriteLogEntries",
606         }
607         handler := func(ctx context.Context, req interface{}) (interface{}, error) {
608                 return srv.(LoggingServiceV2Server).WriteLogEntries(ctx, req.(*WriteLogEntriesRequest))
609         }
610         return interceptor(ctx, in, info, handler)
611 }
612
613 func _LoggingServiceV2_ListLogEntries_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
614         in := new(ListLogEntriesRequest)
615         if err := dec(in); err != nil {
616                 return nil, err
617         }
618         if interceptor == nil {
619                 return srv.(LoggingServiceV2Server).ListLogEntries(ctx, in)
620         }
621         info := &grpc.UnaryServerInfo{
622                 Server:     srv,
623                 FullMethod: "/google.logging.v2.LoggingServiceV2/ListLogEntries",
624         }
625         handler := func(ctx context.Context, req interface{}) (interface{}, error) {
626                 return srv.(LoggingServiceV2Server).ListLogEntries(ctx, req.(*ListLogEntriesRequest))
627         }
628         return interceptor(ctx, in, info, handler)
629 }
630
631 func _LoggingServiceV2_ListMonitoredResourceDescriptors_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
632         in := new(ListMonitoredResourceDescriptorsRequest)
633         if err := dec(in); err != nil {
634                 return nil, err
635         }
636         if interceptor == nil {
637                 return srv.(LoggingServiceV2Server).ListMonitoredResourceDescriptors(ctx, in)
638         }
639         info := &grpc.UnaryServerInfo{
640                 Server:     srv,
641                 FullMethod: "/google.logging.v2.LoggingServiceV2/ListMonitoredResourceDescriptors",
642         }
643         handler := func(ctx context.Context, req interface{}) (interface{}, error) {
644                 return srv.(LoggingServiceV2Server).ListMonitoredResourceDescriptors(ctx, req.(*ListMonitoredResourceDescriptorsRequest))
645         }
646         return interceptor(ctx, in, info, handler)
647 }
648
649 func _LoggingServiceV2_ListLogs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
650         in := new(ListLogsRequest)
651         if err := dec(in); err != nil {
652                 return nil, err
653         }
654         if interceptor == nil {
655                 return srv.(LoggingServiceV2Server).ListLogs(ctx, in)
656         }
657         info := &grpc.UnaryServerInfo{
658                 Server:     srv,
659                 FullMethod: "/google.logging.v2.LoggingServiceV2/ListLogs",
660         }
661         handler := func(ctx context.Context, req interface{}) (interface{}, error) {
662                 return srv.(LoggingServiceV2Server).ListLogs(ctx, req.(*ListLogsRequest))
663         }
664         return interceptor(ctx, in, info, handler)
665 }
666
667 var _LoggingServiceV2_serviceDesc = grpc.ServiceDesc{
668         ServiceName: "google.logging.v2.LoggingServiceV2",
669         HandlerType: (*LoggingServiceV2Server)(nil),
670         Methods: []grpc.MethodDesc{
671                 {
672                         MethodName: "DeleteLog",
673                         Handler:    _LoggingServiceV2_DeleteLog_Handler,
674                 },
675                 {
676                         MethodName: "WriteLogEntries",
677                         Handler:    _LoggingServiceV2_WriteLogEntries_Handler,
678                 },
679                 {
680                         MethodName: "ListLogEntries",
681                         Handler:    _LoggingServiceV2_ListLogEntries_Handler,
682                 },
683                 {
684                         MethodName: "ListMonitoredResourceDescriptors",
685                         Handler:    _LoggingServiceV2_ListMonitoredResourceDescriptors_Handler,
686                 },
687                 {
688                         MethodName: "ListLogs",
689                         Handler:    _LoggingServiceV2_ListLogs_Handler,
690                 },
691         },
692         Streams:  []grpc.StreamDesc{},
693         Metadata: "google/logging/v2/logging.proto",
694 }
695
696 func init() { proto.RegisterFile("google/logging/v2/logging.proto", fileDescriptor1) }
697
698 var fileDescriptor1 = []byte{
699         // 975 bytes of a gzipped FileDescriptorProto
700         0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x56, 0xcd, 0x6e, 0xdb, 0x46,
701         0x10, 0x06, 0xa5, 0xd8, 0x91, 0x46, 0x8d, 0xad, 0x6c, 0x62, 0x59, 0x91, 0x9c, 0x58, 0xa5, 0x9b,
702         0x5a, 0x11, 0x10, 0x12, 0x55, 0x11, 0x20, 0x71, 0xd0, 0x8b, 0x13, 0xa3, 0x28, 0xe0, 0x14, 0x06,
703         0xdd, 0x26, 0x40, 0x2e, 0x02, 0x25, 0x4d, 0x88, 0x6d, 0x28, 0x2e, 0xbb, 0xbb, 0x92, 0xab, 0x04,
704         0xe9, 0x21, 0x87, 0xbe, 0x40, 0xdf, 0xa2, 0x87, 0xbe, 0x45, 0xaf, 0xbd, 0xf4, 0xd2, 0x43, 0x8f,
705         0x79, 0x88, 0x1e, 0x0b, 0xee, 0x2e, 0x65, 0xea, 0x27, 0xb2, 0xdc, 0x9b, 0x76, 0xe6, 0xdb, 0x99,
706         0xf9, 0x86, 0xdf, 0xcc, 0x0a, 0x76, 0x03, 0xc6, 0x82, 0x10, 0xdd, 0x90, 0x05, 0x01, 0x8d, 0x02,
707         0x77, 0xd4, 0x4e, 0x7f, 0x3a, 0x31, 0x67, 0x92, 0x91, 0xeb, 0x1a, 0xe0, 0xa4, 0xd6, 0x51, 0xbb,
708         0xb6, 0x63, 0xee, 0xf8, 0x31, 0x75, 0xfd, 0x28, 0x62, 0xd2, 0x97, 0x94, 0x45, 0x42, 0x5f, 0xa8,
709         0xed, 0x65, 0xbc, 0x03, 0x16, 0x51, 0xc9, 0x38, 0xf6, 0x3b, 0x1c, 0x05, 0x1b, 0xf2, 0x1e, 0x1a,
710         0xd0, 0xa7, 0x0b, 0xd3, 0x76, 0x30, 0x92, 0x7c, 0x6c, 0x20, 0x77, 0x0c, 0x44, 0x9d, 0xba, 0xc3,
711         0x57, 0x6e, 0x7f, 0xc8, 0x55, 0x22, 0xe3, 0xaf, 0xcf, 0xfa, 0x71, 0x10, 0xcb, 0xf4, 0xf2, 0xee,
712         0xac, 0x53, 0xd2, 0x01, 0x0a, 0xe9, 0x0f, 0x62, 0x03, 0xd8, 0x36, 0x00, 0x1e, 0xf7, 0x5c, 0x21,
713         0x7d, 0x39, 0x34, 0xe5, 0xdb, 0xf7, 0xa1, 0xfc, 0x14, 0x43, 0x94, 0x78, 0xcc, 0x02, 0x0f, 0x7f,
714         0x1c, 0xa2, 0x90, 0xe4, 0x16, 0x14, 0x92, 0xea, 0x22, 0x7f, 0x80, 0x55, 0xab, 0x61, 0x35, 0x8b,
715         0xde, 0xd5, 0x90, 0x05, 0xdf, 0xfa, 0x03, 0xb4, 0xff, 0xce, 0x41, 0xe5, 0x05, 0xa7, 0x0a, 0x7e,
716         0x14, 0x49, 0x4e, 0x51, 0x5c, 0x7c, 0x8b, 0x3c, 0x82, 0x42, 0xda, 0x90, 0x6a, 0xae, 0x61, 0x35,
717         0x4b, 0xed, 0xdb, 0x8e, 0xe9, 0xb3, 0x1f, 0x53, 0xe7, 0x59, 0xda, 0x36, 0xcf, 0x80, 0xbc, 0x09,
718         0x9c, 0x3c, 0x83, 0xf5, 0xd0, 0xef, 0x62, 0x28, 0xaa, 0xf9, 0x46, 0xbe, 0x59, 0x6a, 0x3f, 0x70,
719         0xe6, 0x3e, 0x90, 0xb3, 0xb8, 0x20, 0xe7, 0x58, 0xdd, 0x4b, 0x8c, 0x63, 0xcf, 0x04, 0x21, 0x0f,
720         0xe0, 0x2a, 0x6a, 0x54, 0xf5, 0x8a, 0x8a, 0x57, 0x5f, 0x10, 0xcf, 0x84, 0x1a, 0x7b, 0x29, 0x96,
721         0xec, 0xc3, 0x66, 0xec, 0x73, 0x49, 0xfd, 0xb0, 0x23, 0x86, 0xbd, 0x1e, 0x0a, 0x51, 0x5d, 0x6b,
722         0x58, 0xcd, 0x82, 0xb7, 0x61, 0xcc, 0xa7, 0xda, 0x5a, 0x7b, 0x04, 0xa5, 0x4c, 0x5a, 0x52, 0x86,
723         0xfc, 0x6b, 0x1c, 0x9b, 0x76, 0x24, 0x3f, 0xc9, 0x4d, 0x58, 0x1b, 0xf9, 0xe1, 0x50, 0xf7, 0xa1,
724         0xe8, 0xe9, 0xc3, 0x41, 0xee, 0xa1, 0x65, 0xdf, 0x82, 0xed, 0x39, 0x22, 0x22, 0x66, 0x91, 0x40,
725         0xfb, 0x83, 0x05, 0x3b, 0x33, 0xbe, 0x13, 0x9d, 0xf7, 0x88, 0x73, 0xc6, 0x05, 0x19, 0x40, 0x79,
726         0xa2, 0xa7, 0x0e, 0x2a, 0x5b, 0xd5, 0x52, 0xfc, 0x9e, 0x5c, 0xdc, 0xaf, 0xa9, 0x50, 0x13, 0xf2,
727         0xfa, 0xa8, 0xfb, 0xb0, 0x11, 0x4e, 0x19, 0x6b, 0xdf, 0xc3, 0x8d, 0x05, 0xb0, 0x2c, 0xdb, 0x35,
728         0xcd, 0xb6, 0x99, 0x65, 0x5b, 0x6a, 0x93, 0xb4, 0x18, 0x1e, 0xf7, 0x9c, 0x53, 0x25, 0xc3, 0x6c,
729         0x07, 0xfe, 0xb4, 0x60, 0xeb, 0x98, 0x0a, 0x39, 0xaf, 0xad, 0x5d, 0x28, 0xc5, 0x9c, 0xfd, 0x80,
730         0x3d, 0xd9, 0xa1, 0x7d, 0x4d, 0xad, 0xe8, 0x81, 0x31, 0x7d, 0xd3, 0x17, 0xe4, 0x2e, 0x6c, 0xa4,
731         0x92, 0x51, 0x0a, 0x14, 0xd5, 0x82, 0xc2, 0x5c, 0x4b, 0xad, 0x89, 0x0e, 0x05, 0xa9, 0xc0, 0xfa,
732         0x2b, 0x1a, 0x4a, 0xe4, 0xa6, 0xfd, 0xe6, 0x94, 0x68, 0x97, 0xf1, 0x3e, 0xf2, 0x4e, 0x77, 0x5c,
733         0xcd, 0x6b, 0xed, 0xaa, 0xf3, 0xe1, 0x98, 0xd4, 0xa1, 0x18, 0xfb, 0x01, 0x76, 0x04, 0x7d, 0x83,
734         0xd5, 0x2b, 0x8a, 0x5a, 0x21, 0x31, 0x9c, 0xd2, 0x37, 0x48, 0x6e, 0x03, 0x28, 0xa7, 0x64, 0xaf,
735         0x31, 0x52, 0x92, 0x28, 0x7a, 0x0a, 0xfe, 0x5d, 0x62, 0xb0, 0xcf, 0xa0, 0x32, 0xcb, 0x47, 0x7f,
736         0xd1, 0xac, 0x0e, 0xad, 0x4b, 0xe8, 0xf0, 0x73, 0xd8, 0x8c, 0xf0, 0x27, 0xd9, 0xc9, 0x24, 0xd5,
737         0x44, 0xae, 0x25, 0xe6, 0x93, 0x49, 0x62, 0x84, 0xfd, 0x24, 0xf1, 0xdc, 0x60, 0x3d, 0x45, 0xd1,
738         0xe3, 0x34, 0x96, 0x8c, 0x4f, 0x5a, 0x3b, 0xc5, 0xcf, 0x5a, 0xca, 0x2f, 0x37, 0xcb, 0xef, 0x77,
739         0x0b, 0x9a, 0x17, 0xe7, 0x31, 0x94, 0x5f, 0xc2, 0xcd, 0xc9, 0x27, 0xea, 0x9f, 0xfb, 0x0d, 0xff,
740         0xfd, 0xa5, 0x0b, 0xe1, 0x3c, 0x9e, 0x77, 0x83, 0xcf, 0xe7, 0xb8, 0x44, 0x5f, 0x36, 0xcd, 0x07,
741         0x99, 0xf0, 0xaf, 0xc0, 0x7a, 0xec, 0x73, 0x8c, 0xa4, 0x99, 0x52, 0x73, 0x9a, 0xee, 0x4b, 0x6e,
742         0x69, 0x5f, 0xf2, 0xb3, 0x7d, 0x79, 0x01, 0xe5, 0xf3, 0x34, 0x86, 0x7e, 0x1d, 0x8a, 0xe9, 0x7a,
743         0xd4, 0xbb, 0xac, 0xe8, 0x15, 0xcc, 0x7e, 0x5c, 0xb9, 0xfe, 0xf6, 0x3f, 0x6b, 0x50, 0x3e, 0xd6,
744         0x02, 0x39, 0x45, 0x3e, 0xa2, 0x3d, 0x7c, 0xde, 0x26, 0x67, 0x50, 0x9c, 0xac, 0x70, 0xb2, 0xb7,
745         0x40, 0x47, 0xb3, 0x0b, 0xbe, 0x56, 0x49, 0x41, 0xe9, 0x7b, 0xe1, 0x1c, 0x25, 0x8f, 0x89, 0x7d,
746         0xff, 0xfd, 0x5f, 0x1f, 0x7e, 0xcd, 0xed, 0xb7, 0xee, 0xba, 0xa3, 0x76, 0x17, 0xa5, 0xff, 0x85,
747         0xfb, 0x36, 0xad, 0xf9, 0x2b, 0x33, 0x6c, 0xc2, 0x6d, 0x25, 0x4f, 0x97, 0x70, 0x5b, 0xef, 0xc8,
748         0x2f, 0x16, 0x6c, 0xce, 0xec, 0x12, 0x72, 0x6f, 0xe5, 0xfd, 0x5c, 0x6b, 0xad, 0x02, 0x35, 0x1b,
749         0x70, 0x47, 0x55, 0x56, 0xb1, 0xaf, 0x27, 0x4f, 0xa7, 0x99, 0x86, 0x83, 0xb3, 0x04, 0x7c, 0x60,
750         0xb5, 0xc8, 0x7b, 0x0b, 0x36, 0xa6, 0x07, 0x8d, 0x34, 0x17, 0xcd, 0xd3, 0xa2, 0xdd, 0x52, 0xbb,
751         0xb7, 0x02, 0xd2, 0x54, 0x51, 0x57, 0x55, 0x6c, 0xd9, 0xe5, 0x6c, 0x15, 0x21, 0x15, 0x32, 0x29,
752         0xe2, 0x0f, 0x0b, 0x1a, 0x17, 0x0d, 0x03, 0x39, 0xf8, 0x48, 0xb2, 0x15, 0x26, 0xb5, 0xf6, 0xf8,
753         0x7f, 0xdd, 0x35, 0xa5, 0x37, 0x55, 0xe9, 0x36, 0x69, 0x24, 0xa5, 0x0f, 0x96, 0x95, 0x38, 0x86,
754         0x42, 0x2a, 0x5e, 0x62, 0x7f, 0xbc, 0x37, 0x93, 0xb2, 0xf6, 0x96, 0x62, 0x4c, 0xfa, 0xcf, 0x54,
755         0xfa, 0x3b, 0x64, 0x27, 0x49, 0xff, 0x56, 0x8f, 0x58, 0x46, 0x52, 0xef, 0x94, 0xa6, 0x0e, 0x7f,
756         0x86, 0xad, 0x1e, 0x1b, 0xcc, 0xc7, 0x3b, 0xfc, 0xc4, 0x88, 0xfe, 0x24, 0xd1, 0xeb, 0x89, 0xf5,
757         0xf2, 0xa1, 0x81, 0x04, 0x2c, 0xf4, 0xa3, 0xc0, 0x61, 0x3c, 0x70, 0x03, 0x8c, 0x94, 0x9a, 0x5d,
758         0xed, 0xf2, 0x63, 0x2a, 0x32, 0x7f, 0xb7, 0x1e, 0x9b, 0x9f, 0xff, 0x5a, 0xd6, 0x6f, 0xb9, 0xed,
759         0xaf, 0xf5, 0xed, 0x27, 0x21, 0x1b, 0xf6, 0x1d, 0x13, 0xda, 0x79, 0xde, 0xee, 0xae, 0xab, 0x08,
760         0x5f, 0xfe, 0x17, 0x00, 0x00, 0xff, 0xff, 0xe2, 0xc4, 0xaa, 0x91, 0x26, 0x0a, 0x00, 0x00,
761 }