1// Code generated by protoc-gen-go. DO NOT EDIT. 2// source: google/logging/v2/logging.proto 3 4package logging 5 6import ( 7 context "context" 8 fmt "fmt" 9 math "math" 10 11 proto "github.com/golang/protobuf/proto" 12 _ "github.com/golang/protobuf/ptypes/duration" 13 empty "github.com/golang/protobuf/ptypes/empty" 14 _ "github.com/golang/protobuf/ptypes/timestamp" 15 _ "google.golang.org/genproto/googleapis/api/annotations" 16 monitoredres "google.golang.org/genproto/googleapis/api/monitoredres" 17 status "google.golang.org/genproto/googleapis/rpc/status" 18 grpc "google.golang.org/grpc" 19 codes "google.golang.org/grpc/codes" 20 status1 "google.golang.org/grpc/status" 21) 22 23// Reference imports to suppress errors if they are not otherwise used. 24var _ = proto.Marshal 25var _ = fmt.Errorf 26var _ = math.Inf 27 28// This is a compile-time assertion to ensure that this generated file 29// is compatible with the proto package it is being compiled against. 30// A compilation error at this line likely means your copy of the 31// proto package needs to be updated. 32const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package 33 34// The parameters to DeleteLog. 35type DeleteLogRequest struct { 36 // Required. The resource name of the log to delete: 37 // 38 // "projects/[PROJECT_ID]/logs/[LOG_ID]" 39 // "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]" 40 // "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]" 41 // "folders/[FOLDER_ID]/logs/[LOG_ID]" 42 // 43 // `[LOG_ID]` must be URL-encoded. For example, 44 // `"projects/my-project-id/logs/syslog"`, 45 // `"organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity"`. 46 // For more information about log names, see 47 // [LogEntry][google.logging.v2.LogEntry]. 48 LogName string `protobuf:"bytes,1,opt,name=log_name,json=logName,proto3" json:"log_name,omitempty"` 49 XXX_NoUnkeyedLiteral struct{} `json:"-"` 50 XXX_unrecognized []byte `json:"-"` 51 XXX_sizecache int32 `json:"-"` 52} 53 54func (m *DeleteLogRequest) Reset() { *m = DeleteLogRequest{} } 55func (m *DeleteLogRequest) String() string { return proto.CompactTextString(m) } 56func (*DeleteLogRequest) ProtoMessage() {} 57func (*DeleteLogRequest) Descriptor() ([]byte, []int) { 58 return fileDescriptor_6a8ba408154557e4, []int{0} 59} 60 61func (m *DeleteLogRequest) XXX_Unmarshal(b []byte) error { 62 return xxx_messageInfo_DeleteLogRequest.Unmarshal(m, b) 63} 64func (m *DeleteLogRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 65 return xxx_messageInfo_DeleteLogRequest.Marshal(b, m, deterministic) 66} 67func (m *DeleteLogRequest) XXX_Merge(src proto.Message) { 68 xxx_messageInfo_DeleteLogRequest.Merge(m, src) 69} 70func (m *DeleteLogRequest) XXX_Size() int { 71 return xxx_messageInfo_DeleteLogRequest.Size(m) 72} 73func (m *DeleteLogRequest) XXX_DiscardUnknown() { 74 xxx_messageInfo_DeleteLogRequest.DiscardUnknown(m) 75} 76 77var xxx_messageInfo_DeleteLogRequest proto.InternalMessageInfo 78 79func (m *DeleteLogRequest) GetLogName() string { 80 if m != nil { 81 return m.LogName 82 } 83 return "" 84} 85 86// The parameters to WriteLogEntries. 87type WriteLogEntriesRequest struct { 88 // Optional. A default log resource name that is assigned to all log entries 89 // in `entries` that do not specify a value for `log_name`: 90 // 91 // "projects/[PROJECT_ID]/logs/[LOG_ID]" 92 // "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]" 93 // "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]" 94 // "folders/[FOLDER_ID]/logs/[LOG_ID]" 95 // 96 // `[LOG_ID]` must be URL-encoded. For example: 97 // 98 // "projects/my-project-id/logs/syslog" 99 // "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity" 100 // 101 // The permission `logging.logEntries.create` is needed on each project, 102 // organization, billing account, or folder that is receiving new log 103 // entries, whether the resource is specified in `logName` or in an 104 // individual log entry. 105 LogName string `protobuf:"bytes,1,opt,name=log_name,json=logName,proto3" json:"log_name,omitempty"` 106 // Optional. A default monitored resource object that is assigned to all log 107 // entries in `entries` that do not specify a value for `resource`. Example: 108 // 109 // { "type": "gce_instance", 110 // "labels": { 111 // "zone": "us-central1-a", "instance_id": "00000000000000000000" }} 112 // 113 // See [LogEntry][google.logging.v2.LogEntry]. 114 Resource *monitoredres.MonitoredResource `protobuf:"bytes,2,opt,name=resource,proto3" json:"resource,omitempty"` 115 // Optional. Default labels that are added to the `labels` field of all log 116 // entries in `entries`. If a log entry already has a label with the same key 117 // as a label in this parameter, then the log entry's label is not changed. 118 // See [LogEntry][google.logging.v2.LogEntry]. 119 Labels map[string]string `protobuf:"bytes,3,rep,name=labels,proto3" json:"labels,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` 120 // Required. The log entries to send to Logging. The order of log 121 // entries in this list does not matter. Values supplied in this method's 122 // `log_name`, `resource`, and `labels` fields are copied into those log 123 // entries in this list that do not include values for their corresponding 124 // fields. For more information, see the 125 // [LogEntry][google.logging.v2.LogEntry] type. 126 // 127 // If the `timestamp` or `insert_id` fields are missing in log entries, then 128 // this method supplies the current time or a unique identifier, respectively. 129 // The supplied values are chosen so that, among the log entries that did not 130 // supply their own values, the entries earlier in the list will sort before 131 // the entries later in the list. See the `entries.list` method. 132 // 133 // Log entries with timestamps that are more than the 134 // [logs retention period](https://cloud.google.com/logging/quota-policy) in the past or more than 135 // 24 hours in the future will not be available when calling `entries.list`. 136 // However, those log entries can still be 137 // [exported with LogSinks](https://cloud.google.com/logging/docs/api/tasks/exporting-logs). 138 // 139 // To improve throughput and to avoid exceeding the 140 // [quota limit](https://cloud.google.com/logging/quota-policy) for calls to `entries.write`, 141 // you should try to include several log entries in this list, 142 // rather than calling this method for each individual log entry. 143 Entries []*LogEntry `protobuf:"bytes,4,rep,name=entries,proto3" json:"entries,omitempty"` 144 // Optional. Whether valid entries should be written even if some other 145 // entries fail due to INVALID_ARGUMENT or PERMISSION_DENIED errors. If any 146 // entry is not written, then the response status is the error associated 147 // with one of the failed entries and the response includes error details 148 // keyed by the entries' zero-based index in the `entries.write` method. 149 PartialSuccess bool `protobuf:"varint,5,opt,name=partial_success,json=partialSuccess,proto3" json:"partial_success,omitempty"` 150 // Optional. If true, the request should expect normal response, but the 151 // entries won't be persisted nor exported. Useful for checking whether the 152 // logging API endpoints are working properly before sending valuable data. 153 DryRun bool `protobuf:"varint,6,opt,name=dry_run,json=dryRun,proto3" json:"dry_run,omitempty"` 154 XXX_NoUnkeyedLiteral struct{} `json:"-"` 155 XXX_unrecognized []byte `json:"-"` 156 XXX_sizecache int32 `json:"-"` 157} 158 159func (m *WriteLogEntriesRequest) Reset() { *m = WriteLogEntriesRequest{} } 160func (m *WriteLogEntriesRequest) String() string { return proto.CompactTextString(m) } 161func (*WriteLogEntriesRequest) ProtoMessage() {} 162func (*WriteLogEntriesRequest) Descriptor() ([]byte, []int) { 163 return fileDescriptor_6a8ba408154557e4, []int{1} 164} 165 166func (m *WriteLogEntriesRequest) XXX_Unmarshal(b []byte) error { 167 return xxx_messageInfo_WriteLogEntriesRequest.Unmarshal(m, b) 168} 169func (m *WriteLogEntriesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 170 return xxx_messageInfo_WriteLogEntriesRequest.Marshal(b, m, deterministic) 171} 172func (m *WriteLogEntriesRequest) XXX_Merge(src proto.Message) { 173 xxx_messageInfo_WriteLogEntriesRequest.Merge(m, src) 174} 175func (m *WriteLogEntriesRequest) XXX_Size() int { 176 return xxx_messageInfo_WriteLogEntriesRequest.Size(m) 177} 178func (m *WriteLogEntriesRequest) XXX_DiscardUnknown() { 179 xxx_messageInfo_WriteLogEntriesRequest.DiscardUnknown(m) 180} 181 182var xxx_messageInfo_WriteLogEntriesRequest proto.InternalMessageInfo 183 184func (m *WriteLogEntriesRequest) GetLogName() string { 185 if m != nil { 186 return m.LogName 187 } 188 return "" 189} 190 191func (m *WriteLogEntriesRequest) GetResource() *monitoredres.MonitoredResource { 192 if m != nil { 193 return m.Resource 194 } 195 return nil 196} 197 198func (m *WriteLogEntriesRequest) GetLabels() map[string]string { 199 if m != nil { 200 return m.Labels 201 } 202 return nil 203} 204 205func (m *WriteLogEntriesRequest) GetEntries() []*LogEntry { 206 if m != nil { 207 return m.Entries 208 } 209 return nil 210} 211 212func (m *WriteLogEntriesRequest) GetPartialSuccess() bool { 213 if m != nil { 214 return m.PartialSuccess 215 } 216 return false 217} 218 219func (m *WriteLogEntriesRequest) GetDryRun() bool { 220 if m != nil { 221 return m.DryRun 222 } 223 return false 224} 225 226// Result returned from WriteLogEntries. 227type WriteLogEntriesResponse struct { 228 XXX_NoUnkeyedLiteral struct{} `json:"-"` 229 XXX_unrecognized []byte `json:"-"` 230 XXX_sizecache int32 `json:"-"` 231} 232 233func (m *WriteLogEntriesResponse) Reset() { *m = WriteLogEntriesResponse{} } 234func (m *WriteLogEntriesResponse) String() string { return proto.CompactTextString(m) } 235func (*WriteLogEntriesResponse) ProtoMessage() {} 236func (*WriteLogEntriesResponse) Descriptor() ([]byte, []int) { 237 return fileDescriptor_6a8ba408154557e4, []int{2} 238} 239 240func (m *WriteLogEntriesResponse) XXX_Unmarshal(b []byte) error { 241 return xxx_messageInfo_WriteLogEntriesResponse.Unmarshal(m, b) 242} 243func (m *WriteLogEntriesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 244 return xxx_messageInfo_WriteLogEntriesResponse.Marshal(b, m, deterministic) 245} 246func (m *WriteLogEntriesResponse) XXX_Merge(src proto.Message) { 247 xxx_messageInfo_WriteLogEntriesResponse.Merge(m, src) 248} 249func (m *WriteLogEntriesResponse) XXX_Size() int { 250 return xxx_messageInfo_WriteLogEntriesResponse.Size(m) 251} 252func (m *WriteLogEntriesResponse) XXX_DiscardUnknown() { 253 xxx_messageInfo_WriteLogEntriesResponse.DiscardUnknown(m) 254} 255 256var xxx_messageInfo_WriteLogEntriesResponse proto.InternalMessageInfo 257 258// Error details for WriteLogEntries with partial success. 259type WriteLogEntriesPartialErrors struct { 260 // When `WriteLogEntriesRequest.partial_success` is true, records the error 261 // status for entries that were not written due to a permanent error, keyed 262 // by the entry's zero-based index in `WriteLogEntriesRequest.entries`. 263 // 264 // Failed requests for which no entries are written will not include 265 // per-entry errors. 266 LogEntryErrors map[int32]*status.Status `protobuf:"bytes,1,rep,name=log_entry_errors,json=logEntryErrors,proto3" json:"log_entry_errors,omitempty" protobuf_key:"varint,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` 267 XXX_NoUnkeyedLiteral struct{} `json:"-"` 268 XXX_unrecognized []byte `json:"-"` 269 XXX_sizecache int32 `json:"-"` 270} 271 272func (m *WriteLogEntriesPartialErrors) Reset() { *m = WriteLogEntriesPartialErrors{} } 273func (m *WriteLogEntriesPartialErrors) String() string { return proto.CompactTextString(m) } 274func (*WriteLogEntriesPartialErrors) ProtoMessage() {} 275func (*WriteLogEntriesPartialErrors) Descriptor() ([]byte, []int) { 276 return fileDescriptor_6a8ba408154557e4, []int{3} 277} 278 279func (m *WriteLogEntriesPartialErrors) XXX_Unmarshal(b []byte) error { 280 return xxx_messageInfo_WriteLogEntriesPartialErrors.Unmarshal(m, b) 281} 282func (m *WriteLogEntriesPartialErrors) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 283 return xxx_messageInfo_WriteLogEntriesPartialErrors.Marshal(b, m, deterministic) 284} 285func (m *WriteLogEntriesPartialErrors) XXX_Merge(src proto.Message) { 286 xxx_messageInfo_WriteLogEntriesPartialErrors.Merge(m, src) 287} 288func (m *WriteLogEntriesPartialErrors) XXX_Size() int { 289 return xxx_messageInfo_WriteLogEntriesPartialErrors.Size(m) 290} 291func (m *WriteLogEntriesPartialErrors) XXX_DiscardUnknown() { 292 xxx_messageInfo_WriteLogEntriesPartialErrors.DiscardUnknown(m) 293} 294 295var xxx_messageInfo_WriteLogEntriesPartialErrors proto.InternalMessageInfo 296 297func (m *WriteLogEntriesPartialErrors) GetLogEntryErrors() map[int32]*status.Status { 298 if m != nil { 299 return m.LogEntryErrors 300 } 301 return nil 302} 303 304// The parameters to `ListLogEntries`. 305type ListLogEntriesRequest struct { 306 // Required. Names of one or more parent resources from which to 307 // retrieve log entries: 308 // 309 // "projects/[PROJECT_ID]" 310 // "organizations/[ORGANIZATION_ID]" 311 // "billingAccounts/[BILLING_ACCOUNT_ID]" 312 // "folders/[FOLDER_ID]" 313 // 314 // 315 // Projects listed in the `project_ids` field are added to this list. 316 ResourceNames []string `protobuf:"bytes,8,rep,name=resource_names,json=resourceNames,proto3" json:"resource_names,omitempty"` 317 // Optional. A filter that chooses which log entries to return. See [Advanced 318 // Logs Queries](https://cloud.google.com/logging/docs/view/advanced-queries). Only log entries that 319 // match the filter are returned. An empty filter matches all log entries in 320 // the resources listed in `resource_names`. Referencing a parent resource 321 // that is not listed in `resource_names` will cause the filter to return no 322 // results. 323 // The maximum length of the filter is 20000 characters. 324 Filter string `protobuf:"bytes,2,opt,name=filter,proto3" json:"filter,omitempty"` 325 // Optional. How the results should be sorted. Presently, the only permitted 326 // values are `"timestamp asc"` (default) and `"timestamp desc"`. The first 327 // option returns entries in order of increasing values of 328 // `LogEntry.timestamp` (oldest first), and the second option returns entries 329 // in order of decreasing timestamps (newest first). Entries with equal 330 // timestamps are returned in order of their `insert_id` values. 331 OrderBy string `protobuf:"bytes,3,opt,name=order_by,json=orderBy,proto3" json:"order_by,omitempty"` 332 // Optional. The maximum number of results to return from this request. 333 // Non-positive values are ignored. The presence of `next_page_token` in the 334 // response indicates that more results might be available. 335 PageSize int32 `protobuf:"varint,4,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` 336 // Optional. If present, then retrieve the next batch of results from the 337 // preceding call to this method. `page_token` must be the value of 338 // `next_page_token` from the previous response. The values of other method 339 // parameters should be identical to those in the previous call. 340 PageToken string `protobuf:"bytes,5,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` 341 XXX_NoUnkeyedLiteral struct{} `json:"-"` 342 XXX_unrecognized []byte `json:"-"` 343 XXX_sizecache int32 `json:"-"` 344} 345 346func (m *ListLogEntriesRequest) Reset() { *m = ListLogEntriesRequest{} } 347func (m *ListLogEntriesRequest) String() string { return proto.CompactTextString(m) } 348func (*ListLogEntriesRequest) ProtoMessage() {} 349func (*ListLogEntriesRequest) Descriptor() ([]byte, []int) { 350 return fileDescriptor_6a8ba408154557e4, []int{4} 351} 352 353func (m *ListLogEntriesRequest) XXX_Unmarshal(b []byte) error { 354 return xxx_messageInfo_ListLogEntriesRequest.Unmarshal(m, b) 355} 356func (m *ListLogEntriesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 357 return xxx_messageInfo_ListLogEntriesRequest.Marshal(b, m, deterministic) 358} 359func (m *ListLogEntriesRequest) XXX_Merge(src proto.Message) { 360 xxx_messageInfo_ListLogEntriesRequest.Merge(m, src) 361} 362func (m *ListLogEntriesRequest) XXX_Size() int { 363 return xxx_messageInfo_ListLogEntriesRequest.Size(m) 364} 365func (m *ListLogEntriesRequest) XXX_DiscardUnknown() { 366 xxx_messageInfo_ListLogEntriesRequest.DiscardUnknown(m) 367} 368 369var xxx_messageInfo_ListLogEntriesRequest proto.InternalMessageInfo 370 371func (m *ListLogEntriesRequest) GetResourceNames() []string { 372 if m != nil { 373 return m.ResourceNames 374 } 375 return nil 376} 377 378func (m *ListLogEntriesRequest) GetFilter() string { 379 if m != nil { 380 return m.Filter 381 } 382 return "" 383} 384 385func (m *ListLogEntriesRequest) GetOrderBy() string { 386 if m != nil { 387 return m.OrderBy 388 } 389 return "" 390} 391 392func (m *ListLogEntriesRequest) GetPageSize() int32 { 393 if m != nil { 394 return m.PageSize 395 } 396 return 0 397} 398 399func (m *ListLogEntriesRequest) GetPageToken() string { 400 if m != nil { 401 return m.PageToken 402 } 403 return "" 404} 405 406// Result returned from `ListLogEntries`. 407type ListLogEntriesResponse struct { 408 // A list of log entries. If `entries` is empty, `nextPageToken` may still be 409 // returned, indicating that more entries may exist. See `nextPageToken` for 410 // more information. 411 Entries []*LogEntry `protobuf:"bytes,1,rep,name=entries,proto3" json:"entries,omitempty"` 412 // If there might be more results than those appearing in this response, then 413 // `nextPageToken` is included. To get the next set of results, call this 414 // method again using the value of `nextPageToken` as `pageToken`. 415 // 416 // If a value for `next_page_token` appears and the `entries` field is empty, 417 // it means that the search found no log entries so far but it did not have 418 // time to search all the possible log entries. Retry the method with this 419 // value for `page_token` to continue the search. Alternatively, consider 420 // speeding up the search by changing your filter to specify a single log name 421 // or resource type, or to narrow the time range of the search. 422 NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` 423 XXX_NoUnkeyedLiteral struct{} `json:"-"` 424 XXX_unrecognized []byte `json:"-"` 425 XXX_sizecache int32 `json:"-"` 426} 427 428func (m *ListLogEntriesResponse) Reset() { *m = ListLogEntriesResponse{} } 429func (m *ListLogEntriesResponse) String() string { return proto.CompactTextString(m) } 430func (*ListLogEntriesResponse) ProtoMessage() {} 431func (*ListLogEntriesResponse) Descriptor() ([]byte, []int) { 432 return fileDescriptor_6a8ba408154557e4, []int{5} 433} 434 435func (m *ListLogEntriesResponse) XXX_Unmarshal(b []byte) error { 436 return xxx_messageInfo_ListLogEntriesResponse.Unmarshal(m, b) 437} 438func (m *ListLogEntriesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 439 return xxx_messageInfo_ListLogEntriesResponse.Marshal(b, m, deterministic) 440} 441func (m *ListLogEntriesResponse) XXX_Merge(src proto.Message) { 442 xxx_messageInfo_ListLogEntriesResponse.Merge(m, src) 443} 444func (m *ListLogEntriesResponse) XXX_Size() int { 445 return xxx_messageInfo_ListLogEntriesResponse.Size(m) 446} 447func (m *ListLogEntriesResponse) XXX_DiscardUnknown() { 448 xxx_messageInfo_ListLogEntriesResponse.DiscardUnknown(m) 449} 450 451var xxx_messageInfo_ListLogEntriesResponse proto.InternalMessageInfo 452 453func (m *ListLogEntriesResponse) GetEntries() []*LogEntry { 454 if m != nil { 455 return m.Entries 456 } 457 return nil 458} 459 460func (m *ListLogEntriesResponse) GetNextPageToken() string { 461 if m != nil { 462 return m.NextPageToken 463 } 464 return "" 465} 466 467// The parameters to ListMonitoredResourceDescriptors 468type ListMonitoredResourceDescriptorsRequest struct { 469 // Optional. The maximum number of results to return from this request. 470 // Non-positive values are ignored. The presence of `nextPageToken` in the 471 // response indicates that more results might be available. 472 PageSize int32 `protobuf:"varint,1,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` 473 // Optional. If present, then retrieve the next batch of results from the 474 // preceding call to this method. `pageToken` must be the value of 475 // `nextPageToken` from the previous response. The values of other method 476 // parameters should be identical to those in the previous call. 477 PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` 478 XXX_NoUnkeyedLiteral struct{} `json:"-"` 479 XXX_unrecognized []byte `json:"-"` 480 XXX_sizecache int32 `json:"-"` 481} 482 483func (m *ListMonitoredResourceDescriptorsRequest) Reset() { 484 *m = ListMonitoredResourceDescriptorsRequest{} 485} 486func (m *ListMonitoredResourceDescriptorsRequest) String() string { return proto.CompactTextString(m) } 487func (*ListMonitoredResourceDescriptorsRequest) ProtoMessage() {} 488func (*ListMonitoredResourceDescriptorsRequest) Descriptor() ([]byte, []int) { 489 return fileDescriptor_6a8ba408154557e4, []int{6} 490} 491 492func (m *ListMonitoredResourceDescriptorsRequest) XXX_Unmarshal(b []byte) error { 493 return xxx_messageInfo_ListMonitoredResourceDescriptorsRequest.Unmarshal(m, b) 494} 495func (m *ListMonitoredResourceDescriptorsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 496 return xxx_messageInfo_ListMonitoredResourceDescriptorsRequest.Marshal(b, m, deterministic) 497} 498func (m *ListMonitoredResourceDescriptorsRequest) XXX_Merge(src proto.Message) { 499 xxx_messageInfo_ListMonitoredResourceDescriptorsRequest.Merge(m, src) 500} 501func (m *ListMonitoredResourceDescriptorsRequest) XXX_Size() int { 502 return xxx_messageInfo_ListMonitoredResourceDescriptorsRequest.Size(m) 503} 504func (m *ListMonitoredResourceDescriptorsRequest) XXX_DiscardUnknown() { 505 xxx_messageInfo_ListMonitoredResourceDescriptorsRequest.DiscardUnknown(m) 506} 507 508var xxx_messageInfo_ListMonitoredResourceDescriptorsRequest proto.InternalMessageInfo 509 510func (m *ListMonitoredResourceDescriptorsRequest) GetPageSize() int32 { 511 if m != nil { 512 return m.PageSize 513 } 514 return 0 515} 516 517func (m *ListMonitoredResourceDescriptorsRequest) GetPageToken() string { 518 if m != nil { 519 return m.PageToken 520 } 521 return "" 522} 523 524// Result returned from ListMonitoredResourceDescriptors. 525type ListMonitoredResourceDescriptorsResponse struct { 526 // A list of resource descriptors. 527 ResourceDescriptors []*monitoredres.MonitoredResourceDescriptor `protobuf:"bytes,1,rep,name=resource_descriptors,json=resourceDescriptors,proto3" json:"resource_descriptors,omitempty"` 528 // If there might be more results than those appearing in this response, then 529 // `nextPageToken` is included. To get the next set of results, call this 530 // method again using the value of `nextPageToken` as `pageToken`. 531 NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` 532 XXX_NoUnkeyedLiteral struct{} `json:"-"` 533 XXX_unrecognized []byte `json:"-"` 534 XXX_sizecache int32 `json:"-"` 535} 536 537func (m *ListMonitoredResourceDescriptorsResponse) Reset() { 538 *m = ListMonitoredResourceDescriptorsResponse{} 539} 540func (m *ListMonitoredResourceDescriptorsResponse) String() string { return proto.CompactTextString(m) } 541func (*ListMonitoredResourceDescriptorsResponse) ProtoMessage() {} 542func (*ListMonitoredResourceDescriptorsResponse) Descriptor() ([]byte, []int) { 543 return fileDescriptor_6a8ba408154557e4, []int{7} 544} 545 546func (m *ListMonitoredResourceDescriptorsResponse) XXX_Unmarshal(b []byte) error { 547 return xxx_messageInfo_ListMonitoredResourceDescriptorsResponse.Unmarshal(m, b) 548} 549func (m *ListMonitoredResourceDescriptorsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 550 return xxx_messageInfo_ListMonitoredResourceDescriptorsResponse.Marshal(b, m, deterministic) 551} 552func (m *ListMonitoredResourceDescriptorsResponse) XXX_Merge(src proto.Message) { 553 xxx_messageInfo_ListMonitoredResourceDescriptorsResponse.Merge(m, src) 554} 555func (m *ListMonitoredResourceDescriptorsResponse) XXX_Size() int { 556 return xxx_messageInfo_ListMonitoredResourceDescriptorsResponse.Size(m) 557} 558func (m *ListMonitoredResourceDescriptorsResponse) XXX_DiscardUnknown() { 559 xxx_messageInfo_ListMonitoredResourceDescriptorsResponse.DiscardUnknown(m) 560} 561 562var xxx_messageInfo_ListMonitoredResourceDescriptorsResponse proto.InternalMessageInfo 563 564func (m *ListMonitoredResourceDescriptorsResponse) GetResourceDescriptors() []*monitoredres.MonitoredResourceDescriptor { 565 if m != nil { 566 return m.ResourceDescriptors 567 } 568 return nil 569} 570 571func (m *ListMonitoredResourceDescriptorsResponse) GetNextPageToken() string { 572 if m != nil { 573 return m.NextPageToken 574 } 575 return "" 576} 577 578// The parameters to ListLogs. 579type ListLogsRequest struct { 580 // Required. The resource name that owns the logs: 581 // 582 // "projects/[PROJECT_ID]" 583 // "organizations/[ORGANIZATION_ID]" 584 // "billingAccounts/[BILLING_ACCOUNT_ID]" 585 // "folders/[FOLDER_ID]" 586 Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` 587 // Optional. The maximum number of results to return from this request. 588 // Non-positive values are ignored. The presence of `nextPageToken` in the 589 // response indicates that more results might be available. 590 PageSize int32 `protobuf:"varint,2,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` 591 // Optional. If present, then retrieve the next batch of results from the 592 // preceding call to this method. `pageToken` must be the value of 593 // `nextPageToken` from the previous response. The values of other method 594 // parameters should be identical to those in the previous call. 595 PageToken string `protobuf:"bytes,3,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` 596 XXX_NoUnkeyedLiteral struct{} `json:"-"` 597 XXX_unrecognized []byte `json:"-"` 598 XXX_sizecache int32 `json:"-"` 599} 600 601func (m *ListLogsRequest) Reset() { *m = ListLogsRequest{} } 602func (m *ListLogsRequest) String() string { return proto.CompactTextString(m) } 603func (*ListLogsRequest) ProtoMessage() {} 604func (*ListLogsRequest) Descriptor() ([]byte, []int) { 605 return fileDescriptor_6a8ba408154557e4, []int{8} 606} 607 608func (m *ListLogsRequest) XXX_Unmarshal(b []byte) error { 609 return xxx_messageInfo_ListLogsRequest.Unmarshal(m, b) 610} 611func (m *ListLogsRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 612 return xxx_messageInfo_ListLogsRequest.Marshal(b, m, deterministic) 613} 614func (m *ListLogsRequest) XXX_Merge(src proto.Message) { 615 xxx_messageInfo_ListLogsRequest.Merge(m, src) 616} 617func (m *ListLogsRequest) XXX_Size() int { 618 return xxx_messageInfo_ListLogsRequest.Size(m) 619} 620func (m *ListLogsRequest) XXX_DiscardUnknown() { 621 xxx_messageInfo_ListLogsRequest.DiscardUnknown(m) 622} 623 624var xxx_messageInfo_ListLogsRequest proto.InternalMessageInfo 625 626func (m *ListLogsRequest) GetParent() string { 627 if m != nil { 628 return m.Parent 629 } 630 return "" 631} 632 633func (m *ListLogsRequest) GetPageSize() int32 { 634 if m != nil { 635 return m.PageSize 636 } 637 return 0 638} 639 640func (m *ListLogsRequest) GetPageToken() string { 641 if m != nil { 642 return m.PageToken 643 } 644 return "" 645} 646 647// Result returned from ListLogs. 648type ListLogsResponse struct { 649 // A list of log names. For example, 650 // `"projects/my-project/logs/syslog"` or 651 // `"organizations/123/logs/cloudresourcemanager.googleapis.com%2Factivity"`. 652 LogNames []string `protobuf:"bytes,3,rep,name=log_names,json=logNames,proto3" json:"log_names,omitempty"` 653 // If there might be more results than those appearing in this response, then 654 // `nextPageToken` is included. To get the next set of results, call this 655 // method again using the value of `nextPageToken` as `pageToken`. 656 NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` 657 XXX_NoUnkeyedLiteral struct{} `json:"-"` 658 XXX_unrecognized []byte `json:"-"` 659 XXX_sizecache int32 `json:"-"` 660} 661 662func (m *ListLogsResponse) Reset() { *m = ListLogsResponse{} } 663func (m *ListLogsResponse) String() string { return proto.CompactTextString(m) } 664func (*ListLogsResponse) ProtoMessage() {} 665func (*ListLogsResponse) Descriptor() ([]byte, []int) { 666 return fileDescriptor_6a8ba408154557e4, []int{9} 667} 668 669func (m *ListLogsResponse) XXX_Unmarshal(b []byte) error { 670 return xxx_messageInfo_ListLogsResponse.Unmarshal(m, b) 671} 672func (m *ListLogsResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 673 return xxx_messageInfo_ListLogsResponse.Marshal(b, m, deterministic) 674} 675func (m *ListLogsResponse) XXX_Merge(src proto.Message) { 676 xxx_messageInfo_ListLogsResponse.Merge(m, src) 677} 678func (m *ListLogsResponse) XXX_Size() int { 679 return xxx_messageInfo_ListLogsResponse.Size(m) 680} 681func (m *ListLogsResponse) XXX_DiscardUnknown() { 682 xxx_messageInfo_ListLogsResponse.DiscardUnknown(m) 683} 684 685var xxx_messageInfo_ListLogsResponse proto.InternalMessageInfo 686 687func (m *ListLogsResponse) GetLogNames() []string { 688 if m != nil { 689 return m.LogNames 690 } 691 return nil 692} 693 694func (m *ListLogsResponse) GetNextPageToken() string { 695 if m != nil { 696 return m.NextPageToken 697 } 698 return "" 699} 700 701func init() { 702 proto.RegisterType((*DeleteLogRequest)(nil), "google.logging.v2.DeleteLogRequest") 703 proto.RegisterType((*WriteLogEntriesRequest)(nil), "google.logging.v2.WriteLogEntriesRequest") 704 proto.RegisterMapType((map[string]string)(nil), "google.logging.v2.WriteLogEntriesRequest.LabelsEntry") 705 proto.RegisterType((*WriteLogEntriesResponse)(nil), "google.logging.v2.WriteLogEntriesResponse") 706 proto.RegisterType((*WriteLogEntriesPartialErrors)(nil), "google.logging.v2.WriteLogEntriesPartialErrors") 707 proto.RegisterMapType((map[int32]*status.Status)(nil), "google.logging.v2.WriteLogEntriesPartialErrors.LogEntryErrorsEntry") 708 proto.RegisterType((*ListLogEntriesRequest)(nil), "google.logging.v2.ListLogEntriesRequest") 709 proto.RegisterType((*ListLogEntriesResponse)(nil), "google.logging.v2.ListLogEntriesResponse") 710 proto.RegisterType((*ListMonitoredResourceDescriptorsRequest)(nil), "google.logging.v2.ListMonitoredResourceDescriptorsRequest") 711 proto.RegisterType((*ListMonitoredResourceDescriptorsResponse)(nil), "google.logging.v2.ListMonitoredResourceDescriptorsResponse") 712 proto.RegisterType((*ListLogsRequest)(nil), "google.logging.v2.ListLogsRequest") 713 proto.RegisterType((*ListLogsResponse)(nil), "google.logging.v2.ListLogsResponse") 714} 715 716func init() { 717 proto.RegisterFile("google/logging/v2/logging.proto", fileDescriptor_6a8ba408154557e4) 718} 719 720var fileDescriptor_6a8ba408154557e4 = []byte{ 721 // 1281 bytes of a gzipped FileDescriptorProto 722 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x57, 0xcf, 0x6f, 0x1b, 0xc5, 723 0x17, 0xd7, 0xd8, 0x6d, 0x62, 0x4f, 0xbe, 0x4d, 0xdc, 0x69, 0x93, 0xba, 0x76, 0x9a, 0xba, 0x1b, 724 0xb5, 0x71, 0x2d, 0x77, 0x57, 0xf2, 0x57, 0x95, 0x8a, 0x4b, 0x41, 0x4e, 0x5b, 0x21, 0xa4, 0x80, 725 0x82, 0x03, 0xad, 0x14, 0x55, 0xb2, 0xd6, 0xeb, 0xf1, 0x76, 0xe8, 0xee, 0xce, 0x32, 0x3b, 0x9b, 726 0xe0, 0xa2, 0x5e, 0x38, 0x71, 0xe1, 0xd4, 0x0b, 0x67, 0x38, 0xc1, 0xa1, 0x07, 0x0e, 0xfc, 0x07, 727 0x48, 0xa8, 0x47, 0xb8, 0x45, 0x42, 0xea, 0xa1, 0xdc, 0x39, 0x22, 0x4e, 0x68, 0x67, 0x66, 0xd7, 728 0xeb, 0x1f, 0xb5, 0x0d, 0xb7, 0xf5, 0xfb, 0x7c, 0xde, 0x9b, 0xf7, 0xde, 0xbc, 0xf7, 0x19, 0x19, 729 0x5e, 0xb6, 0x29, 0xb5, 0x1d, 0x6c, 0x38, 0xd4, 0xb6, 0x89, 0x67, 0x1b, 0x47, 0x8d, 0xf8, 0x53, 730 0xf7, 0x19, 0xe5, 0x14, 0x9d, 0x95, 0x04, 0x3d, 0xb6, 0x1e, 0x35, 0x4a, 0x17, 0x94, 0x8f, 0xe9, 731 0x13, 0xc3, 0x72, 0x08, 0xf6, 0xb8, 0xe4, 0x96, 0x2e, 0xa7, 0x80, 0x3e, 0xc1, 0x4e, 0xaf, 0xd3, 732 0xc5, 0x8f, 0xcd, 0x23, 0x42, 0x99, 0x22, 0x6c, 0xa7, 0x08, 0x2e, 0xf5, 0x08, 0xa7, 0x0c, 0xf7, 733 0x3a, 0x0c, 0x07, 0x34, 0x64, 0x16, 0x56, 0xa4, 0x8b, 0x29, 0xd2, 0x18, 0x74, 0x65, 0x6a, 0xb6, 734 0x1d, 0xec, 0x71, 0x36, 0x50, 0x94, 0x6b, 0x6f, 0x2c, 0xa8, 0x63, 0x51, 0xaf, 0x4f, 0x54, 0x5d, 735 0xa5, 0x2d, 0xc5, 0x13, 0xbf, 0xba, 0x61, 0xdf, 0xe8, 0x85, 0xcc, 0xe4, 0x84, 0x7a, 0x0a, 0x2f, 736 0x8f, 0xe3, 0xd8, 0xf5, 0xf9, 0x60, 0xac, 0xd0, 0x04, 0xe4, 0xc4, 0xc5, 0x01, 0x37, 0x5d, 0x5f, 737 0x11, 0xe2, 0x16, 0x31, 0xdf, 0x32, 0x02, 0x6e, 0xf2, 0x30, 0x50, 0xc0, 0x66, 0xaa, 0x38, 0xd3, 738 0xf3, 0x28, 0x17, 0x67, 0x2a, 0x54, 0xfb, 0x08, 0x16, 0xee, 0x61, 0x07, 0x73, 0xbc, 0x47, 0xed, 739 0x36, 0xfe, 0x2c, 0xc4, 0x01, 0x47, 0x77, 0x60, 0x2e, 0xaa, 0xd1, 0x33, 0x5d, 0x5c, 0x04, 0x15, 740 0x50, 0xcd, 0xef, 0x6a, 0xaf, 0x5a, 0x99, 0xbf, 0x5b, 0x9b, 0xb0, 0x14, 0xdf, 0x89, 0x8c, 0x69, 741 0xfa, 0x24, 0xd0, 0x2d, 0xea, 0x1a, 0x91, 0xf3, 0xb2, 0x43, 0xed, 0x0f, 0x4d, 0x17, 0x6b, 0x2f, 742 0xb2, 0x70, 0xe3, 0x21, 0x23, 0x22, 0xe4, 0x7d, 0x8f, 0x33, 0x82, 0x83, 0x99, 0x91, 0xc1, 0xa2, 743 0x91, 0xd1, 0x3b, 0x30, 0x17, 0x5f, 0x4f, 0x31, 0x53, 0x01, 0xd5, 0x95, 0xc6, 0x25, 0xc5, 0xd7, 744 0x4d, 0x9f, 0xe8, 0x1f, 0xc4, 0xf7, 0xdb, 0x56, 0xa4, 0xdd, 0xec, 0xab, 0x16, 0x68, 0x27, 0x3e, 745 0xa8, 0x0d, 0x97, 0x1c, 0xb3, 0x8b, 0x9d, 0xa0, 0x98, 0xad, 0x64, 0xab, 0x2b, 0x8d, 0x9b, 0xfa, 746 0xc4, 0xa8, 0xe9, 0xd3, 0x33, 0xd7, 0xf7, 0x84, 0x5f, 0x64, 0x1c, 0xc8, 0xa8, 0x2a, 0x12, 0x6a, 747 0xc2, 0x65, 0x2c, 0xa9, 0xc5, 0x53, 0x22, 0x68, 0x79, 0x4a, 0x50, 0x15, 0x4f, 0xb8, 0x66, 0xda, 748 0xb1, 0x03, 0xaa, 0xc3, 0x35, 0xdf, 0x64, 0x9c, 0x98, 0x4e, 0x27, 0x08, 0x2d, 0x0b, 0x07, 0x41, 749 0xf1, 0x74, 0x05, 0x54, 0x73, 0xf2, 0x84, 0x55, 0x85, 0x1d, 0x48, 0x08, 0x6d, 0xc2, 0xe5, 0x1e, 750 0x1b, 0x74, 0x58, 0xe8, 0x15, 0x97, 0x86, 0xac, 0xa5, 0x1e, 0x1b, 0xb4, 0x43, 0xaf, 0xf4, 0x16, 751 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0x2a, 0xaa, 0x53, 0x0d, 0x77, 0x64, 0x3d, 0x20, 0x4f, 0x31, 0xd2, 0x20, 763 0x14, 0x0c, 0x4e, 0x9f, 0x60, 0x4f, 0xcc, 0x91, 0x8a, 0x21, 0x1c, 0x3f, 0x8e, 0xac, 0xda, 0x31, 764 0xdc, 0x18, 0x2f, 0x53, 0x5e, 0x34, 0xba, 0x39, 0x1c, 0x63, 0x30, 0x77, 0x8c, 0x87, 0x13, 0x7c, 765 0x0d, 0xae, 0x79, 0xf8, 0x73, 0xde, 0x49, 0x9d, 0x2c, 0xc7, 0xeb, 0x4c, 0x64, 0xde, 0x4f, 0x0e, 766 0xa6, 0x70, 0x27, 0x3a, 0x78, 0x62, 0x43, 0xef, 0xe1, 0xc0, 0x62, 0xc4, 0xe7, 0x94, 0x25, 0x1d, 767 0x1f, 0xa9, 0x14, 0xcc, 0xaf, 0x34, 0x33, 0xb5, 0xd2, 0x17, 0x00, 0x56, 0xe7, 0x9f, 0xa8, 0x8a, 768 0x3f, 0x84, 0xe7, 0x93, 0x4b, 0xee, 0x0d, 0x71, 0xd5, 0x89, 0x9d, 0x99, 0x1a, 0x33, 0x8c, 0xd7, 769 0x3e, 0xc7, 0x26, 0xcf, 0x58, 0xb8, 0x43, 0xcf, 0x01, 0x5c, 0x53, 0x77, 0x93, 0xb4, 0xa2, 0x09, 770 0x97, 0x7c, 0x93, 0x61, 0x8f, 0x8f, 0xca, 0xf0, 0xcc, 0xa1, 0x53, 0x1e, 0xa3, 0x6d, 0xcc, 0xcc, 771 0x6f, 0x63, 0x76, 0x6a, 0x1b, 0x1f, 0xc2, 0xc2, 0x30, 0x29, 0xd5, 0xad, 0x32, 0xcc, 0xc7, 0x22, 772 0x2e, 0x85, 0x34, 0xdf, 0xce, 0x29, 0x85, 0x5e, 0xb8, 0xdc, 0xc6, 0xef, 0x10, 0x16, 0xf6, 0x64, 773 0x15, 0x07, 0x98, 0x1d, 0x11, 0x0b, 0x3f, 0x68, 0xa0, 0x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0x2d, 796 0xcc, 0x8e, 0xe2, 0x2f, 0x4c, 0x16, 0xbb, 0xb8, 0xfb, 0x0d, 0x80, 0xeb, 0x16, 0x75, 0x27, 0xef, 797 0x7b, 0xf7, 0x7f, 0x4a, 0x76, 0xf7, 0x23, 0xc1, 0xdc, 0x07, 0x87, 0xb7, 0x14, 0xc5, 0xa6, 0x8e, 798 0xe9, 0xd9, 0x3a, 0x65, 0xb6, 0x61, 0x63, 0x4f, 0xc8, 0xa9, 0x31, 0x3c, 0x27, 0xf5, 0xef, 0xe6, 799 0xb6, 0xfa, 0xfc, 0x0b, 0x80, 0x1f, 0x32, 0x17, 0xde, 0x93, 0xde, 0x77, 0xa3, 0x8e, 0xe8, 0x2a, 800 0xb4, 0xfe, 0xa0, 0xf1, 0x32, 0x46, 0x1e, 0x09, 0xe4, 0x91, 0x42, 0x1e, 0x3d, 0x68, 0x74, 0x97, 801 0x44, 0xec, 0xff, 0xff, 0x13, 0x00, 0x00, 0xff, 0xff, 0xe7, 0xbf, 0x89, 0xb0, 0x09, 0x0e, 0x00, 802 0x00, 803} 804 805// Reference imports to suppress errors if they are not otherwise used. 806var _ context.Context 807var _ grpc.ClientConnInterface 808 809// This is a compile-time assertion to ensure that this generated file 810// is compatible with the grpc package it is being compiled against. 811const _ = grpc.SupportPackageIsVersion6 812 813// LoggingServiceV2Client is the client API for LoggingServiceV2 service. 814// 815// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 816type LoggingServiceV2Client interface { 817 // Deletes all the log entries in a log. The log reappears if it receives new 818 // entries. Log entries written shortly before the delete operation might not 819 // be deleted. Entries received after the delete operation with a timestamp 820 // before the operation will be deleted. 821 DeleteLog(ctx context.Context, in *DeleteLogRequest, opts ...grpc.CallOption) (*empty.Empty, error) 822 // Writes log entries to Logging. This API method is the 823 // only way to send log entries to Logging. This method 824 // is used, directly or indirectly, by the Logging agent 825 // (fluentd) and all logging libraries configured to use Logging. 826 // A single request may contain log entries for a maximum of 1000 827 // different resources (projects, organizations, billing accounts or 828 // folders) 829 WriteLogEntries(ctx context.Context, in *WriteLogEntriesRequest, opts ...grpc.CallOption) (*WriteLogEntriesResponse, error) 830 // Lists log entries. Use this method to retrieve log entries that originated 831 // from a project/folder/organization/billing account. For ways to export log 832 // entries, see [Exporting Logs](https://cloud.google.com/logging/docs/export). 833 ListLogEntries(ctx context.Context, in *ListLogEntriesRequest, opts ...grpc.CallOption) (*ListLogEntriesResponse, error) 834 // Lists the descriptors for monitored resource types used by Logging. 835 ListMonitoredResourceDescriptors(ctx context.Context, in *ListMonitoredResourceDescriptorsRequest, opts ...grpc.CallOption) (*ListMonitoredResourceDescriptorsResponse, error) 836 // Lists the logs in projects, organizations, folders, or billing accounts. 837 // Only logs that have entries are listed. 838 ListLogs(ctx context.Context, in *ListLogsRequest, opts ...grpc.CallOption) (*ListLogsResponse, error) 839} 840 841type loggingServiceV2Client struct { 842 cc grpc.ClientConnInterface 843} 844 845func NewLoggingServiceV2Client(cc grpc.ClientConnInterface) LoggingServiceV2Client { 846 return &loggingServiceV2Client{cc} 847} 848 849func (c *loggingServiceV2Client) DeleteLog(ctx context.Context, in *DeleteLogRequest, opts ...grpc.CallOption) (*empty.Empty, error) { 850 out := new(empty.Empty) 851 err := c.cc.Invoke(ctx, "/google.logging.v2.LoggingServiceV2/DeleteLog", in, out, opts...) 852 if err != nil { 853 return nil, err 854 } 855 return out, nil 856} 857 858func (c *loggingServiceV2Client) WriteLogEntries(ctx context.Context, in *WriteLogEntriesRequest, opts ...grpc.CallOption) (*WriteLogEntriesResponse, error) { 859 out := new(WriteLogEntriesResponse) 860 err := c.cc.Invoke(ctx, "/google.logging.v2.LoggingServiceV2/WriteLogEntries", in, out, opts...) 861 if err != nil { 862 return nil, err 863 } 864 return out, nil 865} 866 867func (c *loggingServiceV2Client) ListLogEntries(ctx context.Context, in *ListLogEntriesRequest, opts ...grpc.CallOption) (*ListLogEntriesResponse, error) { 868 out := new(ListLogEntriesResponse) 869 err := c.cc.Invoke(ctx, "/google.logging.v2.LoggingServiceV2/ListLogEntries", in, out, opts...) 870 if err != nil { 871 return nil, err 872 } 873 return out, nil 874} 875 876func (c *loggingServiceV2Client) ListMonitoredResourceDescriptors(ctx context.Context, in *ListMonitoredResourceDescriptorsRequest, opts ...grpc.CallOption) (*ListMonitoredResourceDescriptorsResponse, error) { 877 out := new(ListMonitoredResourceDescriptorsResponse) 878 err := c.cc.Invoke(ctx, "/google.logging.v2.LoggingServiceV2/ListMonitoredResourceDescriptors", in, out, opts...) 879 if err != nil { 880 return nil, err 881 } 882 return out, nil 883} 884 885func (c *loggingServiceV2Client) ListLogs(ctx context.Context, in *ListLogsRequest, opts ...grpc.CallOption) (*ListLogsResponse, error) { 886 out := new(ListLogsResponse) 887 err := c.cc.Invoke(ctx, "/google.logging.v2.LoggingServiceV2/ListLogs", in, out, opts...) 888 if err != nil { 889 return nil, err 890 } 891 return out, nil 892} 893 894// LoggingServiceV2Server is the server API for LoggingServiceV2 service. 895type LoggingServiceV2Server interface { 896 // Deletes all the log entries in a log. The log reappears if it receives new 897 // entries. Log entries written shortly before the delete operation might not 898 // be deleted. Entries received after the delete operation with a timestamp 899 // before the operation will be deleted. 900 DeleteLog(context.Context, *DeleteLogRequest) (*empty.Empty, error) 901 // Writes log entries to Logging. This API method is the 902 // only way to send log entries to Logging. This method 903 // is used, directly or indirectly, by the Logging agent 904 // (fluentd) and all logging libraries configured to use Logging. 905 // A single request may contain log entries for a maximum of 1000 906 // different resources (projects, organizations, billing accounts or 907 // folders) 908 WriteLogEntries(context.Context, *WriteLogEntriesRequest) (*WriteLogEntriesResponse, error) 909 // Lists log entries. Use this method to retrieve log entries that originated 910 // from a project/folder/organization/billing account. For ways to export log 911 // entries, see [Exporting Logs](https://cloud.google.com/logging/docs/export). 912 ListLogEntries(context.Context, *ListLogEntriesRequest) (*ListLogEntriesResponse, error) 913 // Lists the descriptors for monitored resource types used by Logging. 914 ListMonitoredResourceDescriptors(context.Context, *ListMonitoredResourceDescriptorsRequest) (*ListMonitoredResourceDescriptorsResponse, error) 915 // Lists the logs in projects, organizations, folders, or billing accounts. 916 // Only logs that have entries are listed. 917 ListLogs(context.Context, *ListLogsRequest) (*ListLogsResponse, error) 918} 919 920// UnimplementedLoggingServiceV2Server can be embedded to have forward compatible implementations. 921type UnimplementedLoggingServiceV2Server struct { 922} 923 924func (*UnimplementedLoggingServiceV2Server) DeleteLog(ctx context.Context, req *DeleteLogRequest) (*empty.Empty, error) { 925 return nil, status1.Errorf(codes.Unimplemented, "method DeleteLog not implemented") 926} 927func (*UnimplementedLoggingServiceV2Server) WriteLogEntries(ctx context.Context, req *WriteLogEntriesRequest) (*WriteLogEntriesResponse, error) { 928 return nil, status1.Errorf(codes.Unimplemented, "method WriteLogEntries not implemented") 929} 930func (*UnimplementedLoggingServiceV2Server) ListLogEntries(ctx context.Context, req *ListLogEntriesRequest) (*ListLogEntriesResponse, error) { 931 return nil, status1.Errorf(codes.Unimplemented, "method ListLogEntries not implemented") 932} 933func (*UnimplementedLoggingServiceV2Server) ListMonitoredResourceDescriptors(ctx context.Context, req *ListMonitoredResourceDescriptorsRequest) (*ListMonitoredResourceDescriptorsResponse, error) { 934 return nil, status1.Errorf(codes.Unimplemented, "method ListMonitoredResourceDescriptors not implemented") 935} 936func (*UnimplementedLoggingServiceV2Server) ListLogs(ctx context.Context, req *ListLogsRequest) (*ListLogsResponse, error) { 937 return nil, status1.Errorf(codes.Unimplemented, "method ListLogs not implemented") 938} 939 940func RegisterLoggingServiceV2Server(s *grpc.Server, srv LoggingServiceV2Server) { 941 s.RegisterService(&_LoggingServiceV2_serviceDesc, srv) 942} 943 944func _LoggingServiceV2_DeleteLog_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 945 in := new(DeleteLogRequest) 946 if err := dec(in); err != nil { 947 return nil, err 948 } 949 if interceptor == nil { 950 return srv.(LoggingServiceV2Server).DeleteLog(ctx, in) 951 } 952 info := &grpc.UnaryServerInfo{ 953 Server: srv, 954 FullMethod: "/google.logging.v2.LoggingServiceV2/DeleteLog", 955 } 956 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 957 return srv.(LoggingServiceV2Server).DeleteLog(ctx, req.(*DeleteLogRequest)) 958 } 959 return interceptor(ctx, in, info, handler) 960} 961 962func _LoggingServiceV2_WriteLogEntries_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 963 in := new(WriteLogEntriesRequest) 964 if err := dec(in); err != nil { 965 return nil, err 966 } 967 if interceptor == nil { 968 return srv.(LoggingServiceV2Server).WriteLogEntries(ctx, in) 969 } 970 info := &grpc.UnaryServerInfo{ 971 Server: srv, 972 FullMethod: "/google.logging.v2.LoggingServiceV2/WriteLogEntries", 973 } 974 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 975 return srv.(LoggingServiceV2Server).WriteLogEntries(ctx, req.(*WriteLogEntriesRequest)) 976 } 977 return interceptor(ctx, in, info, handler) 978} 979 980func _LoggingServiceV2_ListLogEntries_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 981 in := new(ListLogEntriesRequest) 982 if err := dec(in); err != nil { 983 return nil, err 984 } 985 if interceptor == nil { 986 return srv.(LoggingServiceV2Server).ListLogEntries(ctx, in) 987 } 988 info := &grpc.UnaryServerInfo{ 989 Server: srv, 990 FullMethod: "/google.logging.v2.LoggingServiceV2/ListLogEntries", 991 } 992 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 993 return srv.(LoggingServiceV2Server).ListLogEntries(ctx, req.(*ListLogEntriesRequest)) 994 } 995 return interceptor(ctx, in, info, handler) 996} 997 998func _LoggingServiceV2_ListMonitoredResourceDescriptors_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 999 in := new(ListMonitoredResourceDescriptorsRequest) 1000 if err := dec(in); err != nil { 1001 return nil, err 1002 } 1003 if interceptor == nil { 1004 return srv.(LoggingServiceV2Server).ListMonitoredResourceDescriptors(ctx, in) 1005 } 1006 info := &grpc.UnaryServerInfo{ 1007 Server: srv, 1008 FullMethod: "/google.logging.v2.LoggingServiceV2/ListMonitoredResourceDescriptors", 1009 } 1010 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1011 return srv.(LoggingServiceV2Server).ListMonitoredResourceDescriptors(ctx, req.(*ListMonitoredResourceDescriptorsRequest)) 1012 } 1013 return interceptor(ctx, in, info, handler) 1014} 1015 1016func _LoggingServiceV2_ListLogs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1017 in := new(ListLogsRequest) 1018 if err := dec(in); err != nil { 1019 return nil, err 1020 } 1021 if interceptor == nil { 1022 return srv.(LoggingServiceV2Server).ListLogs(ctx, in) 1023 } 1024 info := &grpc.UnaryServerInfo{ 1025 Server: srv, 1026 FullMethod: "/google.logging.v2.LoggingServiceV2/ListLogs", 1027 } 1028 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1029 return srv.(LoggingServiceV2Server).ListLogs(ctx, req.(*ListLogsRequest)) 1030 } 1031 return interceptor(ctx, in, info, handler) 1032} 1033 1034var _LoggingServiceV2_serviceDesc = grpc.ServiceDesc{ 1035 ServiceName: "google.logging.v2.LoggingServiceV2", 1036 HandlerType: (*LoggingServiceV2Server)(nil), 1037 Methods: []grpc.MethodDesc{ 1038 { 1039 MethodName: "DeleteLog", 1040 Handler: _LoggingServiceV2_DeleteLog_Handler, 1041 }, 1042 { 1043 MethodName: "WriteLogEntries", 1044 Handler: _LoggingServiceV2_WriteLogEntries_Handler, 1045 }, 1046 { 1047 MethodName: "ListLogEntries", 1048 Handler: _LoggingServiceV2_ListLogEntries_Handler, 1049 }, 1050 { 1051 MethodName: "ListMonitoredResourceDescriptors", 1052 Handler: _LoggingServiceV2_ListMonitoredResourceDescriptors_Handler, 1053 }, 1054 { 1055 MethodName: "ListLogs", 1056 Handler: _LoggingServiceV2_ListLogs_Handler, 1057 }, 1058 }, 1059 Streams: []grpc.StreamDesc{}, 1060 Metadata: "google/logging/v2/logging.proto", 1061} 1062