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