Vous ne pouvez pas sélectionner plus de 25 sujets Les noms de sujets doivent commencer par une lettre ou un nombre, peuvent contenir des tirets ('-') et peuvent comporter jusqu'à 35 caractères.
 
 
 

1032 lignes
46 KiB

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