PageRenderTime 55ms CodeModel.GetById 16ms RepoModel.GetById 0ms app.codeStats 0ms

/vendor/google.golang.org/genproto/googleapis/logging/v2/logging_config.pb.go

http://github.com/garyburd/gopkgdoc
Go | 1203 lines | 802 code | 106 blank | 295 comment | 134 complexity | dab7042412ca01f4bf9f5077774743ff MD5 | raw file
Possible License(s): BSD-3-Clause, Apache-2.0, MPL-2.0-no-copyleft-exception, BSD-2-Clause

Large files files are truncated, but you can click here to view the full file

  1. // Code generated by protoc-gen-go. DO NOT EDIT.
  2. // source: google/logging/v2/logging_config.proto
  3. package logging
  4. import proto "github.com/golang/protobuf/proto"
  5. import fmt "fmt"
  6. import math "math"
  7. import _ "google.golang.org/genproto/googleapis/api/annotations"
  8. import google_protobuf5 "github.com/golang/protobuf/ptypes/empty"
  9. import google_protobuf6 "google.golang.org/genproto/protobuf/field_mask"
  10. import google_protobuf4 "github.com/golang/protobuf/ptypes/timestamp"
  11. import (
  12. context "golang.org/x/net/context"
  13. grpc "google.golang.org/grpc"
  14. )
  15. // Reference imports to suppress errors if they are not otherwise used.
  16. var _ = proto.Marshal
  17. var _ = fmt.Errorf
  18. var _ = math.Inf
  19. // Available log entry formats. Log entries can be written to Stackdriver
  20. // Logging in either format and can be exported in either format.
  21. // Version 2 is the preferred format.
  22. type LogSink_VersionFormat int32
  23. const (
  24. // An unspecified format version that will default to V2.
  25. LogSink_VERSION_FORMAT_UNSPECIFIED LogSink_VersionFormat = 0
  26. // `LogEntry` version 2 format.
  27. LogSink_V2 LogSink_VersionFormat = 1
  28. // `LogEntry` version 1 format.
  29. LogSink_V1 LogSink_VersionFormat = 2
  30. )
  31. var LogSink_VersionFormat_name = map[int32]string{
  32. 0: "VERSION_FORMAT_UNSPECIFIED",
  33. 1: "V2",
  34. 2: "V1",
  35. }
  36. var LogSink_VersionFormat_value = map[string]int32{
  37. "VERSION_FORMAT_UNSPECIFIED": 0,
  38. "V2": 1,
  39. "V1": 2,
  40. }
  41. func (x LogSink_VersionFormat) String() string {
  42. return proto.EnumName(LogSink_VersionFormat_name, int32(x))
  43. }
  44. func (LogSink_VersionFormat) EnumDescriptor() ([]byte, []int) { return fileDescriptor2, []int{0, 0} }
  45. // Describes a sink used to export log entries to one of the following
  46. // destinations in any project: a Cloud Storage bucket, a BigQuery dataset, or a
  47. // Cloud Pub/Sub topic. A logs filter controls which log entries are
  48. // exported. The sink must be created within a project, organization, billing
  49. // account, or folder.
  50. type LogSink struct {
  51. // Required. The client-assigned sink identifier, unique within the
  52. // project. Example: `"my-syslog-errors-to-pubsub"`. Sink identifiers are
  53. // limited to 100 characters and can include only the following characters:
  54. // upper and lower-case alphanumeric characters, underscores, hyphens, and
  55. // periods.
  56. Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
  57. // Required. The export destination:
  58. //
  59. // "storage.googleapis.com/[GCS_BUCKET]"
  60. // "bigquery.googleapis.com/projects/[PROJECT_ID]/datasets/[DATASET]"
  61. // "pubsub.googleapis.com/projects/[PROJECT_ID]/topics/[TOPIC_ID]"
  62. //
  63. // The sink's `writer_identity`, set when the sink is created, must
  64. // have permission to write to the destination or else the log
  65. // entries are not exported. For more information, see
  66. // [Exporting Logs With Sinks](/logging/docs/api/tasks/exporting-logs).
  67. Destination string `protobuf:"bytes,3,opt,name=destination" json:"destination,omitempty"`
  68. // Optional.
  69. // An [advanced logs filter](/logging/docs/view/advanced_filters). The only
  70. // exported log entries are those that are in the resource owning the sink and
  71. // that match the filter. The filter must use the log entry format specified
  72. // by the `output_version_format` parameter. For example, in the v2 format:
  73. //
  74. // logName="projects/[PROJECT_ID]/logs/[LOG_ID]" AND severity>=ERROR
  75. Filter string `protobuf:"bytes,5,opt,name=filter" json:"filter,omitempty"`
  76. // Deprecated. The log entry format to use for this sink's exported log
  77. // entries. The v2 format is used by default and cannot be changed.
  78. OutputVersionFormat LogSink_VersionFormat `protobuf:"varint,6,opt,name=output_version_format,json=outputVersionFormat,enum=google.logging.v2.LogSink_VersionFormat" json:"output_version_format,omitempty"`
  79. // Output only. An IAM identity—a service account or group—under
  80. // which Stackdriver Logging writes the exported log entries to the sink's
  81. // destination. This field is set by
  82. // [sinks.create](/logging/docs/api/reference/rest/v2/projects.sinks/create)
  83. // and
  84. // [sinks.update](/logging/docs/api/reference/rest/v2/projects.sinks/update),
  85. // based on the setting of `unique_writer_identity` in those methods.
  86. //
  87. // Until you grant this identity write-access to the destination, log entry
  88. // exports from this sink will fail. For more information,
  89. // see [Granting access for a
  90. // resource](/iam/docs/granting-roles-to-service-accounts#granting_access_to_a_service_account_for_a_resource).
  91. // Consult the destination service's documentation to determine the
  92. // appropriate IAM roles to assign to the identity.
  93. WriterIdentity string `protobuf:"bytes,8,opt,name=writer_identity,json=writerIdentity" json:"writer_identity,omitempty"`
  94. // Optional. This field applies only to sinks owned by organizations and
  95. // folders. If the field is false, the default, only the logs owned by the
  96. // sink's parent resource are available for export. If the field is true, then
  97. // logs from all the projects, folders, and billing accounts contained in the
  98. // sink's parent resource are also available for export. Whether a particular
  99. // log entry from the children is exported depends on the sink's filter
  100. // expression. For example, if this field is true, then the filter
  101. // `resource.type=gce_instance` would export all Compute Engine VM instance
  102. // log entries from all projects in the sink's parent. To only export entries
  103. // from certain child projects, filter on the project part of the log name:
  104. //
  105. // logName:("projects/test-project1/" OR "projects/test-project2/") AND
  106. // resource.type=gce_instance
  107. IncludeChildren bool `protobuf:"varint,9,opt,name=include_children,json=includeChildren" json:"include_children,omitempty"`
  108. // Optional. The time at which this sink will begin exporting log entries.
  109. // Log entries are exported only if their timestamp is not earlier than the
  110. // start time. The default value of this field is the time the sink is
  111. // created or updated.
  112. StartTime *google_protobuf4.Timestamp `protobuf:"bytes,10,opt,name=start_time,json=startTime" json:"start_time,omitempty"`
  113. // Optional. The time at which this sink will stop exporting log entries. Log
  114. // entries are exported only if their timestamp is earlier than the end time.
  115. // If this field is not supplied, there is no end time. If both a start time
  116. // and an end time are provided, then the end time must be later than the
  117. // start time.
  118. EndTime *google_protobuf4.Timestamp `protobuf:"bytes,11,opt,name=end_time,json=endTime" json:"end_time,omitempty"`
  119. }
  120. func (m *LogSink) Reset() { *m = LogSink{} }
  121. func (m *LogSink) String() string { return proto.CompactTextString(m) }
  122. func (*LogSink) ProtoMessage() {}
  123. func (*LogSink) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{0} }
  124. func (m *LogSink) GetName() string {
  125. if m != nil {
  126. return m.Name
  127. }
  128. return ""
  129. }
  130. func (m *LogSink) GetDestination() string {
  131. if m != nil {
  132. return m.Destination
  133. }
  134. return ""
  135. }
  136. func (m *LogSink) GetFilter() string {
  137. if m != nil {
  138. return m.Filter
  139. }
  140. return ""
  141. }
  142. func (m *LogSink) GetOutputVersionFormat() LogSink_VersionFormat {
  143. if m != nil {
  144. return m.OutputVersionFormat
  145. }
  146. return LogSink_VERSION_FORMAT_UNSPECIFIED
  147. }
  148. func (m *LogSink) GetWriterIdentity() string {
  149. if m != nil {
  150. return m.WriterIdentity
  151. }
  152. return ""
  153. }
  154. func (m *LogSink) GetIncludeChildren() bool {
  155. if m != nil {
  156. return m.IncludeChildren
  157. }
  158. return false
  159. }
  160. func (m *LogSink) GetStartTime() *google_protobuf4.Timestamp {
  161. if m != nil {
  162. return m.StartTime
  163. }
  164. return nil
  165. }
  166. func (m *LogSink) GetEndTime() *google_protobuf4.Timestamp {
  167. if m != nil {
  168. return m.EndTime
  169. }
  170. return nil
  171. }
  172. // The parameters to `ListSinks`.
  173. type ListSinksRequest struct {
  174. // Required. The parent resource whose sinks are to be listed:
  175. //
  176. // "projects/[PROJECT_ID]"
  177. // "organizations/[ORGANIZATION_ID]"
  178. // "billingAccounts/[BILLING_ACCOUNT_ID]"
  179. // "folders/[FOLDER_ID]"
  180. Parent string `protobuf:"bytes,1,opt,name=parent" json:"parent,omitempty"`
  181. // Optional. If present, then retrieve the next batch of results from the
  182. // preceding call to this method. `pageToken` must be the value of
  183. // `nextPageToken` from the previous response. The values of other method
  184. // parameters should be identical to those in the previous call.
  185. PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken" json:"page_token,omitempty"`
  186. // Optional. The maximum number of results to return from this request.
  187. // Non-positive values are ignored. The presence of `nextPageToken` in the
  188. // response indicates that more results might be available.
  189. PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize" json:"page_size,omitempty"`
  190. }
  191. func (m *ListSinksRequest) Reset() { *m = ListSinksRequest{} }
  192. func (m *ListSinksRequest) String() string { return proto.CompactTextString(m) }
  193. func (*ListSinksRequest) ProtoMessage() {}
  194. func (*ListSinksRequest) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{1} }
  195. func (m *ListSinksRequest) GetParent() string {
  196. if m != nil {
  197. return m.Parent
  198. }
  199. return ""
  200. }
  201. func (m *ListSinksRequest) GetPageToken() string {
  202. if m != nil {
  203. return m.PageToken
  204. }
  205. return ""
  206. }
  207. func (m *ListSinksRequest) GetPageSize() int32 {
  208. if m != nil {
  209. return m.PageSize
  210. }
  211. return 0
  212. }
  213. // Result returned from `ListSinks`.
  214. type ListSinksResponse struct {
  215. // A list of sinks.
  216. Sinks []*LogSink `protobuf:"bytes,1,rep,name=sinks" json:"sinks,omitempty"`
  217. // If there might be more results than appear in this response, then
  218. // `nextPageToken` is included. To get the next set of results, call the same
  219. // method again using the value of `nextPageToken` as `pageToken`.
  220. NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken" json:"next_page_token,omitempty"`
  221. }
  222. func (m *ListSinksResponse) Reset() { *m = ListSinksResponse{} }
  223. func (m *ListSinksResponse) String() string { return proto.CompactTextString(m) }
  224. func (*ListSinksResponse) ProtoMessage() {}
  225. func (*ListSinksResponse) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{2} }
  226. func (m *ListSinksResponse) GetSinks() []*LogSink {
  227. if m != nil {
  228. return m.Sinks
  229. }
  230. return nil
  231. }
  232. func (m *ListSinksResponse) GetNextPageToken() string {
  233. if m != nil {
  234. return m.NextPageToken
  235. }
  236. return ""
  237. }
  238. // The parameters to `GetSink`.
  239. type GetSinkRequest struct {
  240. // Required. The resource name of the sink:
  241. //
  242. // "projects/[PROJECT_ID]/sinks/[SINK_ID]"
  243. // "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
  244. // "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
  245. // "folders/[FOLDER_ID]/sinks/[SINK_ID]"
  246. //
  247. // Example: `"projects/my-project-id/sinks/my-sink-id"`.
  248. SinkName string `protobuf:"bytes,1,opt,name=sink_name,json=sinkName" json:"sink_name,omitempty"`
  249. }
  250. func (m *GetSinkRequest) Reset() { *m = GetSinkRequest{} }
  251. func (m *GetSinkRequest) String() string { return proto.CompactTextString(m) }
  252. func (*GetSinkRequest) ProtoMessage() {}
  253. func (*GetSinkRequest) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{3} }
  254. func (m *GetSinkRequest) GetSinkName() string {
  255. if m != nil {
  256. return m.SinkName
  257. }
  258. return ""
  259. }
  260. // The parameters to `CreateSink`.
  261. type CreateSinkRequest struct {
  262. // Required. The resource in which to create the sink:
  263. //
  264. // "projects/[PROJECT_ID]"
  265. // "organizations/[ORGANIZATION_ID]"
  266. // "billingAccounts/[BILLING_ACCOUNT_ID]"
  267. // "folders/[FOLDER_ID]"
  268. //
  269. // Examples: `"projects/my-logging-project"`, `"organizations/123456789"`.
  270. Parent string `protobuf:"bytes,1,opt,name=parent" json:"parent,omitempty"`
  271. // Required. The new sink, whose `name` parameter is a sink identifier that
  272. // is not already in use.
  273. Sink *LogSink `protobuf:"bytes,2,opt,name=sink" json:"sink,omitempty"`
  274. // Optional. Determines the kind of IAM identity returned as `writer_identity`
  275. // in the new sink. If this value is omitted or set to false, and if the
  276. // sink's parent is a project, then the value returned as `writer_identity` is
  277. // the same group or service account used by Stackdriver Logging before the
  278. // addition of writer identities to this API. The sink's destination must be
  279. // in the same project as the sink itself.
  280. //
  281. // If this field is set to true, or if the sink is owned by a non-project
  282. // resource such as an organization, then the value of `writer_identity` will
  283. // be a unique service account used only for exports from the new sink. For
  284. // more information, see `writer_identity` in [LogSink][google.logging.v2.LogSink].
  285. UniqueWriterIdentity bool `protobuf:"varint,3,opt,name=unique_writer_identity,json=uniqueWriterIdentity" json:"unique_writer_identity,omitempty"`
  286. }
  287. func (m *CreateSinkRequest) Reset() { *m = CreateSinkRequest{} }
  288. func (m *CreateSinkRequest) String() string { return proto.CompactTextString(m) }
  289. func (*CreateSinkRequest) ProtoMessage() {}
  290. func (*CreateSinkRequest) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{4} }
  291. func (m *CreateSinkRequest) GetParent() string {
  292. if m != nil {
  293. return m.Parent
  294. }
  295. return ""
  296. }
  297. func (m *CreateSinkRequest) GetSink() *LogSink {
  298. if m != nil {
  299. return m.Sink
  300. }
  301. return nil
  302. }
  303. func (m *CreateSinkRequest) GetUniqueWriterIdentity() bool {
  304. if m != nil {
  305. return m.UniqueWriterIdentity
  306. }
  307. return false
  308. }
  309. // The parameters to `UpdateSink`.
  310. type UpdateSinkRequest struct {
  311. // Required. The full resource name of the sink to update, including the
  312. // parent resource and the sink identifier:
  313. //
  314. // "projects/[PROJECT_ID]/sinks/[SINK_ID]"
  315. // "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
  316. // "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
  317. // "folders/[FOLDER_ID]/sinks/[SINK_ID]"
  318. //
  319. // Example: `"projects/my-project-id/sinks/my-sink-id"`.
  320. SinkName string `protobuf:"bytes,1,opt,name=sink_name,json=sinkName" json:"sink_name,omitempty"`
  321. // Required. The updated sink, whose name is the same identifier that appears
  322. // as part of `sink_name`.
  323. Sink *LogSink `protobuf:"bytes,2,opt,name=sink" json:"sink,omitempty"`
  324. // Optional. See
  325. // [sinks.create](/logging/docs/api/reference/rest/v2/projects.sinks/create)
  326. // for a description of this field. When updating a sink, the effect of this
  327. // field on the value of `writer_identity` in the updated sink depends on both
  328. // the old and new values of this field:
  329. //
  330. // + If the old and new values of this field are both false or both true,
  331. // then there is no change to the sink's `writer_identity`.
  332. // + If the old value is false and the new value is true, then
  333. // `writer_identity` is changed to a unique service account.
  334. // + It is an error if the old value is true and the new value is
  335. // set to false or defaulted to false.
  336. UniqueWriterIdentity bool `protobuf:"varint,3,opt,name=unique_writer_identity,json=uniqueWriterIdentity" json:"unique_writer_identity,omitempty"`
  337. }
  338. func (m *UpdateSinkRequest) Reset() { *m = UpdateSinkRequest{} }
  339. func (m *UpdateSinkRequest) String() string { return proto.CompactTextString(m) }
  340. func (*UpdateSinkRequest) ProtoMessage() {}
  341. func (*UpdateSinkRequest) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{5} }
  342. func (m *UpdateSinkRequest) GetSinkName() string {
  343. if m != nil {
  344. return m.SinkName
  345. }
  346. return ""
  347. }
  348. func (m *UpdateSinkRequest) GetSink() *LogSink {
  349. if m != nil {
  350. return m.Sink
  351. }
  352. return nil
  353. }
  354. func (m *UpdateSinkRequest) GetUniqueWriterIdentity() bool {
  355. if m != nil {
  356. return m.UniqueWriterIdentity
  357. }
  358. return false
  359. }
  360. // The parameters to `DeleteSink`.
  361. type DeleteSinkRequest struct {
  362. // Required. The full resource name of the sink to delete, including the
  363. // parent resource and the sink identifier:
  364. //
  365. // "projects/[PROJECT_ID]/sinks/[SINK_ID]"
  366. // "organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]"
  367. // "billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]"
  368. // "folders/[FOLDER_ID]/sinks/[SINK_ID]"
  369. //
  370. // Example: `"projects/my-project-id/sinks/my-sink-id"`.
  371. SinkName string `protobuf:"bytes,1,opt,name=sink_name,json=sinkName" json:"sink_name,omitempty"`
  372. }
  373. func (m *DeleteSinkRequest) Reset() { *m = DeleteSinkRequest{} }
  374. func (m *DeleteSinkRequest) String() string { return proto.CompactTextString(m) }
  375. func (*DeleteSinkRequest) ProtoMessage() {}
  376. func (*DeleteSinkRequest) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{6} }
  377. func (m *DeleteSinkRequest) GetSinkName() string {
  378. if m != nil {
  379. return m.SinkName
  380. }
  381. return ""
  382. }
  383. // Specifies a set of log entries that are not to be stored in Stackdriver
  384. // Logging. If your project receives a large volume of logs, you might be able
  385. // to use exclusions to reduce your chargeable logs. Exclusions are processed
  386. // after log sinks, so you can export log entries before they are excluded.
  387. // Audit log entries and log entries from Amazon Web Services are never
  388. // excluded.
  389. type LogExclusion struct {
  390. // Required. A client-assigned identifier, such as
  391. // `"load-balancer-exclusion"`. Identifiers are limited to 100 characters and
  392. // can include only letters, digits, underscores, hyphens, and periods.
  393. Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
  394. // Optional. A description of this exclusion.
  395. Description string `protobuf:"bytes,2,opt,name=description" json:"description,omitempty"`
  396. // Required.
  397. // An [advanced logs filter](/logging/docs/view/advanced_filters)
  398. // that matches the log entries to be excluded. By using the
  399. // [sample function](/logging/docs/view/advanced_filters#sample),
  400. // you can exclude less than 100% of the matching log entries.
  401. // For example, the following filter matches 99% of low-severity log
  402. // entries from load balancers:
  403. //
  404. // "resource.type=http_load_balancer severity<ERROR sample(insertId, 0.99)"
  405. Filter string `protobuf:"bytes,3,opt,name=filter" json:"filter,omitempty"`
  406. // Optional. If set to True, then this exclusion is disabled and it does not
  407. // exclude any log entries. You can use
  408. // [exclusions.patch](/logging/docs/alpha-exclusion/docs/reference/v2/rest/v2/projects.exclusions/patch)
  409. // to change the value of this field.
  410. Disabled bool `protobuf:"varint,4,opt,name=disabled" json:"disabled,omitempty"`
  411. }
  412. func (m *LogExclusion) Reset() { *m = LogExclusion{} }
  413. func (m *LogExclusion) String() string { return proto.CompactTextString(m) }
  414. func (*LogExclusion) ProtoMessage() {}
  415. func (*LogExclusion) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{7} }
  416. func (m *LogExclusion) GetName() string {
  417. if m != nil {
  418. return m.Name
  419. }
  420. return ""
  421. }
  422. func (m *LogExclusion) GetDescription() string {
  423. if m != nil {
  424. return m.Description
  425. }
  426. return ""
  427. }
  428. func (m *LogExclusion) GetFilter() string {
  429. if m != nil {
  430. return m.Filter
  431. }
  432. return ""
  433. }
  434. func (m *LogExclusion) GetDisabled() bool {
  435. if m != nil {
  436. return m.Disabled
  437. }
  438. return false
  439. }
  440. // The parameters to `ListExclusions`.
  441. type ListExclusionsRequest struct {
  442. // Required. The parent resource whose exclusions are to be listed.
  443. //
  444. // "projects/[PROJECT_ID]"
  445. // "organizations/[ORGANIZATION_ID]"
  446. // "billingAccounts/[BILLING_ACCOUNT_ID]"
  447. // "folders/[FOLDER_ID]"
  448. Parent string `protobuf:"bytes,1,opt,name=parent" json:"parent,omitempty"`
  449. // Optional. If present, then retrieve the next batch of results from the
  450. // preceding call to this method. `pageToken` must be the value of
  451. // `nextPageToken` from the previous response. The values of other method
  452. // parameters should be identical to those in the previous call.
  453. PageToken string `protobuf:"bytes,2,opt,name=page_token,json=pageToken" json:"page_token,omitempty"`
  454. // Optional. The maximum number of results to return from this request.
  455. // Non-positive values are ignored. The presence of `nextPageToken` in the
  456. // response indicates that more results might be available.
  457. PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize" json:"page_size,omitempty"`
  458. }
  459. func (m *ListExclusionsRequest) Reset() { *m = ListExclusionsRequest{} }
  460. func (m *ListExclusionsRequest) String() string { return proto.CompactTextString(m) }
  461. func (*ListExclusionsRequest) ProtoMessage() {}
  462. func (*ListExclusionsRequest) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{8} }
  463. func (m *ListExclusionsRequest) GetParent() string {
  464. if m != nil {
  465. return m.Parent
  466. }
  467. return ""
  468. }
  469. func (m *ListExclusionsRequest) GetPageToken() string {
  470. if m != nil {
  471. return m.PageToken
  472. }
  473. return ""
  474. }
  475. func (m *ListExclusionsRequest) GetPageSize() int32 {
  476. if m != nil {
  477. return m.PageSize
  478. }
  479. return 0
  480. }
  481. // Result returned from `ListExclusions`.
  482. type ListExclusionsResponse struct {
  483. // A list of exclusions.
  484. Exclusions []*LogExclusion `protobuf:"bytes,1,rep,name=exclusions" json:"exclusions,omitempty"`
  485. // If there might be more results than appear in this response, then
  486. // `nextPageToken` is included. To get the next set of results, call the same
  487. // method again using the value of `nextPageToken` as `pageToken`.
  488. NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken" json:"next_page_token,omitempty"`
  489. }
  490. func (m *ListExclusionsResponse) Reset() { *m = ListExclusionsResponse{} }
  491. func (m *ListExclusionsResponse) String() string { return proto.CompactTextString(m) }
  492. func (*ListExclusionsResponse) ProtoMessage() {}
  493. func (*ListExclusionsResponse) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{9} }
  494. func (m *ListExclusionsResponse) GetExclusions() []*LogExclusion {
  495. if m != nil {
  496. return m.Exclusions
  497. }
  498. return nil
  499. }
  500. func (m *ListExclusionsResponse) GetNextPageToken() string {
  501. if m != nil {
  502. return m.NextPageToken
  503. }
  504. return ""
  505. }
  506. // The parameters to `GetExclusion`.
  507. type GetExclusionRequest struct {
  508. // Required. The resource name of an existing exclusion:
  509. //
  510. // "projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]"
  511. // "organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]"
  512. // "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]"
  513. // "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]"
  514. //
  515. // Example: `"projects/my-project-id/exclusions/my-exclusion-id"`.
  516. Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
  517. }
  518. func (m *GetExclusionRequest) Reset() { *m = GetExclusionRequest{} }
  519. func (m *GetExclusionRequest) String() string { return proto.CompactTextString(m) }
  520. func (*GetExclusionRequest) ProtoMessage() {}
  521. func (*GetExclusionRequest) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{10} }
  522. func (m *GetExclusionRequest) GetName() string {
  523. if m != nil {
  524. return m.Name
  525. }
  526. return ""
  527. }
  528. // The parameters to `CreateExclusion`.
  529. type CreateExclusionRequest struct {
  530. // Required. The parent resource in which to create the exclusion:
  531. //
  532. // "projects/[PROJECT_ID]"
  533. // "organizations/[ORGANIZATION_ID]"
  534. // "billingAccounts/[BILLING_ACCOUNT_ID]"
  535. // "folders/[FOLDER_ID]"
  536. //
  537. // Examples: `"projects/my-logging-project"`, `"organizations/123456789"`.
  538. Parent string `protobuf:"bytes,1,opt,name=parent" json:"parent,omitempty"`
  539. // Required. The new exclusion, whose `name` parameter is an exclusion name
  540. // that is not already used in the parent resource.
  541. Exclusion *LogExclusion `protobuf:"bytes,2,opt,name=exclusion" json:"exclusion,omitempty"`
  542. }
  543. func (m *CreateExclusionRequest) Reset() { *m = CreateExclusionRequest{} }
  544. func (m *CreateExclusionRequest) String() string { return proto.CompactTextString(m) }
  545. func (*CreateExclusionRequest) ProtoMessage() {}
  546. func (*CreateExclusionRequest) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{11} }
  547. func (m *CreateExclusionRequest) GetParent() string {
  548. if m != nil {
  549. return m.Parent
  550. }
  551. return ""
  552. }
  553. func (m *CreateExclusionRequest) GetExclusion() *LogExclusion {
  554. if m != nil {
  555. return m.Exclusion
  556. }
  557. return nil
  558. }
  559. // The parameters to `UpdateExclusion`.
  560. type UpdateExclusionRequest struct {
  561. // Required. The resource name of the exclusion to update:
  562. //
  563. // "projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]"
  564. // "organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]"
  565. // "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]"
  566. // "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]"
  567. //
  568. // Example: `"projects/my-project-id/exclusions/my-exclusion-id"`.
  569. Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
  570. // Required. New values for the existing exclusion. Only the fields specified
  571. // in `update_mask` are relevant.
  572. Exclusion *LogExclusion `protobuf:"bytes,2,opt,name=exclusion" json:"exclusion,omitempty"`
  573. // Required. A nonempty list of fields to change in the existing exclusion.
  574. // New values for the fields are taken from the corresponding fields in the
  575. // [LogExclusion][google.logging.v2.LogExclusion] included in this request. Fields not mentioned in
  576. // `update_mask` are not changed and are ignored in the request.
  577. //
  578. // For example, to change the filter and description of an exclusion,
  579. // specify an `update_mask` of `"filter,description"`.
  580. UpdateMask *google_protobuf6.FieldMask `protobuf:"bytes,3,opt,name=update_mask,json=updateMask" json:"update_mask,omitempty"`
  581. }
  582. func (m *UpdateExclusionRequest) Reset() { *m = UpdateExclusionRequest{} }
  583. func (m *UpdateExclusionRequest) String() string { return proto.CompactTextString(m) }
  584. func (*UpdateExclusionRequest) ProtoMessage() {}
  585. func (*UpdateExclusionRequest) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{12} }
  586. func (m *UpdateExclusionRequest) GetName() string {
  587. if m != nil {
  588. return m.Name
  589. }
  590. return ""
  591. }
  592. func (m *UpdateExclusionRequest) GetExclusion() *LogExclusion {
  593. if m != nil {
  594. return m.Exclusion
  595. }
  596. return nil
  597. }
  598. func (m *UpdateExclusionRequest) GetUpdateMask() *google_protobuf6.FieldMask {
  599. if m != nil {
  600. return m.UpdateMask
  601. }
  602. return nil
  603. }
  604. // The parameters to `DeleteExclusion`.
  605. type DeleteExclusionRequest struct {
  606. // Required. The resource name of an existing exclusion to delete:
  607. //
  608. // "projects/[PROJECT_ID]/exclusions/[EXCLUSION_ID]"
  609. // "organizations/[ORGANIZATION_ID]/exclusions/[EXCLUSION_ID]"
  610. // "billingAccounts/[BILLING_ACCOUNT_ID]/exclusions/[EXCLUSION_ID]"
  611. // "folders/[FOLDER_ID]/exclusions/[EXCLUSION_ID]"
  612. //
  613. // Example: `"projects/my-project-id/exclusions/my-exclusion-id"`.
  614. Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"`
  615. }
  616. func (m *DeleteExclusionRequest) Reset() { *m = DeleteExclusionRequest{} }
  617. func (m *DeleteExclusionRequest) String() string { return proto.CompactTextString(m) }
  618. func (*DeleteExclusionRequest) ProtoMessage() {}
  619. func (*DeleteExclusionRequest) Descriptor() ([]byte, []int) { return fileDescriptor2, []int{13} }
  620. func (m *DeleteExclusionRequest) GetName() string {
  621. if m != nil {
  622. return m.Name
  623. }
  624. return ""
  625. }
  626. func init() {
  627. proto.RegisterType((*LogSink)(nil), "google.logging.v2.LogSink")
  628. proto.RegisterType((*ListSinksRequest)(nil), "google.logging.v2.ListSinksRequest")
  629. proto.RegisterType((*ListSinksResponse)(nil), "google.logging.v2.ListSinksResponse")
  630. proto.RegisterType((*GetSinkRequest)(nil), "google.logging.v2.GetSinkRequest")
  631. proto.RegisterType((*CreateSinkRequest)(nil), "google.logging.v2.CreateSinkRequest")
  632. proto.RegisterType((*UpdateSinkRequest)(nil), "google.logging.v2.UpdateSinkRequest")
  633. proto.RegisterType((*DeleteSinkRequest)(nil), "google.logging.v2.DeleteSinkRequest")
  634. proto.RegisterType((*LogExclusion)(nil), "google.logging.v2.LogExclusion")
  635. proto.RegisterType((*ListExclusionsRequest)(nil), "google.logging.v2.ListExclusionsRequest")
  636. proto.RegisterType((*ListExclusionsResponse)(nil), "google.logging.v2.ListExclusionsResponse")
  637. proto.RegisterType((*GetExclusionRequest)(nil), "google.logging.v2.GetExclusionRequest")
  638. proto.RegisterType((*CreateExclusionRequest)(nil), "google.logging.v2.CreateExclusionRequest")
  639. proto.RegisterType((*UpdateExclusionRequest)(nil), "google.logging.v2.UpdateExclusionRequest")
  640. proto.RegisterType((*DeleteExclusionRequest)(nil), "google.logging.v2.DeleteExclusionRequest")
  641. proto.RegisterEnum("google.logging.v2.LogSink_VersionFormat", LogSink_VersionFormat_name, LogSink_VersionFormat_value)
  642. }
  643. // Reference imports to suppress errors if they are not otherwise used.
  644. var _ context.Context
  645. var _ grpc.ClientConn
  646. // This is a compile-time assertion to ensure that this generated file
  647. // is compatible with the grpc package it is being compiled against.
  648. const _ = grpc.SupportPackageIsVersion4
  649. // Client API for ConfigServiceV2 service
  650. type ConfigServiceV2Client interface {
  651. // Lists sinks.
  652. ListSinks(ctx context.Context, in *ListSinksRequest, opts ...grpc.CallOption) (*ListSinksResponse, error)
  653. // Gets a sink.
  654. GetSink(ctx context.Context, in *GetSinkRequest, opts ...grpc.CallOption) (*LogSink, error)
  655. // Creates a sink that exports specified log entries to a destination. The
  656. // export of newly-ingested log entries begins immediately, unless the current
  657. // time is outside the sink's start and end times or the sink's
  658. // `writer_identity` is not permitted to write to the destination. A sink can
  659. // export log entries only from the resource owning the sink.
  660. CreateSink(ctx context.Context, in *CreateSinkRequest, opts ...grpc.CallOption) (*LogSink, error)
  661. // Updates a sink. This method replaces the following fields in the existing
  662. // sink with values from the new sink: `destination`, `filter`,
  663. // `output_version_format`, `start_time`, and `end_time`.
  664. // The updated sink might also have a new `writer_identity`; see the
  665. // `unique_writer_identity` field.
  666. UpdateSink(ctx context.Context, in *UpdateSinkRequest, opts ...grpc.CallOption) (*LogSink, error)
  667. // Deletes a sink. If the sink has a unique `writer_identity`, then that
  668. // service account is also deleted.
  669. DeleteSink(ctx context.Context, in *DeleteSinkRequest, opts ...grpc.CallOption) (*google_protobuf5.Empty, error)
  670. // Lists all the exclusions in a parent resource.
  671. ListExclusions(ctx context.Context, in *ListExclusionsRequest, opts ...grpc.CallOption) (*ListExclusionsResponse, error)
  672. // Gets the description of an exclusion.
  673. GetExclusion(ctx context.Context, in *GetExclusionRequest, opts ...grpc.CallOption) (*LogExclusion, error)
  674. // Creates a new exclusion in a specified parent resource.
  675. // Only log entries belonging to that resource can be excluded.
  676. // You can have up to 10 exclusions in a resource.
  677. CreateExclusion(ctx context.Context, in *CreateExclusionRequest, opts ...grpc.CallOption) (*LogExclusion, error)
  678. // Changes one or more properties of an existing exclusion.
  679. UpdateExclusion(ctx context.Context, in *UpdateExclusionRequest, opts ...grpc.CallOption) (*LogExclusion, error)
  680. // Deletes an exclusion.
  681. DeleteExclusion(ctx context.Context, in *DeleteExclusionRequest, opts ...grpc.CallOption) (*google_protobuf5.Empty, error)
  682. }
  683. type configServiceV2Client struct {
  684. cc *grpc.ClientConn
  685. }
  686. func NewConfigServiceV2Client(cc *grpc.ClientConn) ConfigServiceV2Client {
  687. return &configServiceV2Client{cc}
  688. }
  689. func (c *configServiceV2Client) ListSinks(ctx context.Context, in *ListSinksRequest, opts ...grpc.CallOption) (*ListSinksResponse, error) {
  690. out := new(ListSinksResponse)
  691. err := grpc.Invoke(ctx, "/google.logging.v2.ConfigServiceV2/ListSinks", in, out, c.cc, opts...)
  692. if err != nil {
  693. return nil, err
  694. }
  695. return out, nil
  696. }
  697. func (c *configServiceV2Client) GetSink(ctx context.Context, in *GetSinkRequest, opts ...grpc.CallOption) (*LogSink, error) {
  698. out := new(LogSink)
  699. err := grpc.Invoke(ctx, "/google.logging.v2.ConfigServiceV2/GetSink", in, out, c.cc, opts...)
  700. if err != nil {
  701. return nil, err
  702. }
  703. return out, nil
  704. }
  705. func (c *configServiceV2Client) CreateSink(ctx context.Context, in *CreateSinkRequest, opts ...grpc.CallOption) (*LogSink, error) {
  706. out := new(LogSink)
  707. err := grpc.Invoke(ctx, "/google.logging.v2.ConfigServiceV2/CreateSink", in, out, c.cc, opts...)
  708. if err != nil {
  709. return nil, err
  710. }
  711. return out, nil
  712. }
  713. func (c *configServiceV2Client) UpdateSink(ctx context.Context, in *UpdateSinkRequest, opts ...grpc.CallOption) (*LogSink, error) {
  714. out := new(LogSink)
  715. err := grpc.Invoke(ctx, "/google.logging.v2.ConfigServiceV2/UpdateSink", in, out, c.cc, opts...)
  716. if err != nil {
  717. return nil, err
  718. }
  719. return out, nil
  720. }
  721. func (c *configServiceV2Client) DeleteSink(ctx context.Context, in *DeleteSinkRequest, opts ...grpc.CallOption) (*google_protobuf5.Empty, error) {
  722. out := new(google_protobuf5.Empty)
  723. err := grpc.Invoke(ctx, "/google.logging.v2.ConfigServiceV2/DeleteSink", in, out, c.cc, opts...)
  724. if err != nil {
  725. return nil, err
  726. }
  727. return out, nil
  728. }
  729. func (c *configServiceV2Client) ListExclusions(ctx context.Context, in *ListExclusionsRequest, opts ...grpc.CallOption) (*ListExclusionsResponse, error) {
  730. out := new(ListExclusionsResponse)
  731. err := grpc.Invoke(ctx, "/google.logging.v2.ConfigServiceV2/ListExclusions", in, out, c.cc, opts...)
  732. if err != nil {
  733. return nil, err
  734. }
  735. return out, nil
  736. }
  737. func (c *configServiceV2Client) GetExclusion(ctx context.Context, in *GetExclusionRequest, opts ...grpc.CallOption) (*LogExclusion, error) {
  738. out := new(LogExclusion)
  739. err := grpc.Invoke(ctx, "/google.logging.v2.ConfigServiceV2/GetExclusion", in, out, c.cc, opts...)
  740. if err != nil {
  741. return nil, err
  742. }
  743. return out, nil
  744. }
  745. func (c *configServiceV2Client) CreateExclusion(ctx context.Context, in *CreateExclusionRequest, opts ...grpc.CallOption) (*LogExclusion, error) {
  746. out := new(LogExclusion)
  747. err := grpc.Invoke(ctx, "/google.logging.v2.ConfigServiceV2/CreateExclusion", in, out, c.cc, opts...)
  748. if err != nil {
  749. return nil, err
  750. }
  751. return out, nil
  752. }
  753. func (c *configServiceV2Client) UpdateExclusion(ctx context.Context, in *UpdateExclusionRequest, opts ...grpc.CallOption) (*LogExclusion, error) {
  754. out := new(LogExclusion)
  755. err := grpc.Invoke(ctx, "/google.logging.v2.ConfigServiceV2/UpdateExclusion", in, out, c.cc, opts...)
  756. if err != nil {
  757. return nil, err
  758. }
  759. return out, nil
  760. }
  761. func (c *configServiceV2Client) DeleteExclusion(ctx context.Context, in *DeleteExclusionRequest, opts ...grpc.CallOption) (*google_protobuf5.Empty, error) {
  762. out := new(google_protobuf5.Empty)
  763. err := grpc.Invoke(ctx, "/google.logging.v2.ConfigServiceV2/DeleteExclusion", in, out, c.cc, opts...)
  764. if err != nil {
  765. return nil, err
  766. }
  767. return out, nil
  768. }
  769. // Server API for ConfigServiceV2 service
  770. type ConfigServiceV2Server interface {
  771. // Lists sinks.
  772. ListSinks(context.Context, *ListSinksRequest) (*ListSinksResponse, error)
  773. // Gets a sink.
  774. GetSink(context.Context, *GetSinkRequest) (*LogSink, error)
  775. // Creates a sink that exports specified log entries to a destination. The
  776. // export of newly-ingested log entries begins immediately, unless the current
  777. // time is outside the sink's start and end times or the sink's
  778. // `writer_identity` is not permitted to write to the destination. A sink can
  779. // export log entries only from the resource owning the sink.
  780. CreateSink(context.Context, *CreateSinkRequest) (*LogSink, error)
  781. // Updates a sink. This method replaces the following fields in the existing
  782. // sink with values from the new sink: `destination`, `filter`,
  783. // `output_version_format`, `start_time`, and `end_time`.
  784. // The updated sink might also have a new `writer_identity`; see the
  785. // `unique_writer_identity` field.
  786. UpdateSink(context.Context, *UpdateSinkRequest) (*LogSink, error)
  787. // Deletes a sink. If the sink has a unique `writer_identity`, then that
  788. // service account is also deleted.
  789. DeleteSink(context.Context, *DeleteSinkRequest) (*google_protobuf5.Empty, error)
  790. // Lists all the exclusions in a parent resource.
  791. ListExclusions(context.Context, *ListExclusionsRequest) (*ListExclusionsResponse, error)
  792. // Gets the description of an exclusion.
  793. GetExclusion(context.Context, *GetExclusionRequest) (*LogExclusion, error)
  794. // Creates a new exclusion in a specified parent resource.
  795. // Only log entries belonging to that resource can be excluded.
  796. // You can have up to 10 exclusions in a resource.
  797. CreateExclusion(context.Context, *CreateExclusionRequest) (*LogExclusion, error)
  798. // Changes one or more properties of an existing exclusion.
  799. UpdateExclusion(context.Context, *UpdateExclusionRequest) (*LogExclusion, error)
  800. // Deletes an exclusion.
  801. DeleteExclusion(context.Context, *DeleteExclusionRequest) (*google_protobuf5.Empty, error)
  802. }
  803. func RegisterConfigServiceV2Server(s *grpc.Server, srv ConfigServiceV2Server) {
  804. s.RegisterService(&_ConfigServiceV2_serviceDesc, srv)
  805. }
  806. func _ConfigServiceV2_ListSinks_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  807. in := new(ListSinksRequest)
  808. if err := dec(in); err != nil {
  809. return nil, err
  810. }
  811. if interceptor == nil {
  812. return srv.(ConfigServiceV2Server).ListSinks(ctx, in)
  813. }
  814. info := &grpc.UnaryServerInfo{
  815. Server: srv,
  816. FullMethod: "/google.logging.v2.ConfigServiceV2/ListSinks",
  817. }
  818. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  819. return srv.(ConfigServiceV2Server).ListSinks(ctx, req.(*ListSinksRequest))
  820. }
  821. return interceptor(ctx, in, info, handler)
  822. }
  823. func _ConfigServiceV2_GetSink_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  824. in := new(GetSinkRequest)
  825. if err := dec(in); err != nil {
  826. return nil, err
  827. }
  828. if interceptor == nil {
  829. return srv.(ConfigServiceV2Server).GetSink(ctx, in)
  830. }
  831. info := &grpc.UnaryServerInfo{
  832. Server: srv,
  833. FullMethod: "/google.logging.v2.ConfigServiceV2/GetSink",
  834. }
  835. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  836. return srv.(ConfigServiceV2Server).GetSink(ctx, req.(*GetSinkRequest))
  837. }
  838. return interceptor(ctx, in, info, handler)
  839. }
  840. func _ConfigServiceV2_CreateSink_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  841. in := new(CreateSinkRequest)
  842. if err := dec(in); err != nil {
  843. return nil, err
  844. }
  845. if interceptor == nil {
  846. return srv.(ConfigServiceV2Server).CreateSink(ctx, in)
  847. }
  848. info := &grpc.UnaryServerInfo{
  849. Server: srv,
  850. FullMethod: "/google.logging.v2.ConfigServiceV2/CreateSink",
  851. }
  852. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  853. return srv.(ConfigServiceV2Server).CreateSink(ctx, req.(*CreateSinkRequest))
  854. }
  855. return interceptor(ctx, in, info, handler)
  856. }
  857. func _ConfigServiceV2_UpdateSink_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  858. in := new(UpdateSinkRequest)
  859. if err := dec(in); err != nil {
  860. return nil, err
  861. }
  862. if interceptor == nil {
  863. return srv.(ConfigServiceV2Server).UpdateSink(ctx, in)
  864. }
  865. info := &grpc.UnaryServerInfo{
  866. Server: srv,
  867. FullMethod: "/google.logging.v2.ConfigServiceV2/UpdateSink",
  868. }
  869. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  870. return srv.(ConfigServiceV2Server).UpdateSink(ctx, req.(*UpdateSinkRequest))
  871. }
  872. return interceptor(ctx, in, info, handler)
  873. }
  874. func _ConfigServiceV2_DeleteSink_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  875. in := new(DeleteSinkRequest)
  876. if err := dec(in); err != nil {
  877. return nil, err
  878. }
  879. if interceptor == nil {
  880. return srv.(ConfigServiceV2Server).DeleteSink(ctx, in)
  881. }
  882. info := &grpc.UnaryServerInfo{
  883. Server: srv,
  884. FullMethod: "/google.logging.v2.ConfigServiceV2/DeleteSink",
  885. }
  886. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  887. return srv.(ConfigServiceV2Server).DeleteSink(ctx, req.(*DeleteSinkRequest))
  888. }
  889. return interceptor(ctx, in, info, handler)
  890. }
  891. func _ConfigServiceV2_ListExclusions_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  892. in := new(ListExclusionsRequest)
  893. if err := dec(in); err != nil {
  894. return nil, err
  895. }
  896. if interceptor == nil {
  897. return srv.(ConfigServiceV2Server).ListExclusions(ctx, in)
  898. }
  899. info := &grpc.UnaryServerInfo{
  900. Server: srv,
  901. FullMethod: "/google.logging.v2.ConfigServiceV2/ListExclusions",
  902. }
  903. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  904. return srv.(ConfigServiceV2Server).ListExclusions(ctx, req.(*ListExclusionsRequest))
  905. }
  906. return interceptor(ctx, in, info, handler)
  907. }
  908. func _ConfigServiceV2_GetExclusion_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  909. in := new(GetExclusionRequest)
  910. if err := dec(in); err != nil {
  911. return nil, err
  912. }
  913. if interceptor == nil {
  914. return srv.(ConfigServiceV2Server).GetExclusion(ctx, in)
  915. }
  916. info := &grpc.UnaryServerInfo{
  917. Server: srv,
  918. FullMethod: "/google.logging.v2.ConfigServiceV2/GetExclusion",
  919. }
  920. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  921. return srv.(ConfigServiceV2Server).GetExclusion(ctx, req.(*GetExclusionRequest))
  922. }
  923. return interceptor(ctx, in, info, handler)
  924. }
  925. func _ConfigServiceV2_CreateExclusion_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  926. in := new(CreateExclusionRequest)
  927. if err := dec(in); err != nil {
  928. return nil, err
  929. }
  930. if interceptor == nil {
  931. return srv.(ConfigServiceV2Server).CreateExclusion(ctx, in)
  932. }
  933. info := &grpc.UnaryServerInfo{
  934. Server: srv,
  935. FullMethod: "/google.logging.v2.ConfigServiceV2/CreateExclusion",
  936. }
  937. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  938. return srv.(ConfigServiceV2Server).CreateExclusion(ctx, req.(*CreateExclusionRequest))
  939. }
  940. return interceptor(ctx, in, info, handler)
  941. }
  942. func _ConfigServiceV2_UpdateExclusion_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  943. in := new(UpdateExclusionRequest)
  944. if err := dec(in); err != nil {
  945. return nil, err
  946. }
  947. if interceptor == nil {
  948. return srv.(ConfigServiceV2Server).UpdateExclusion(ctx, in)
  949. }
  950. info := &grpc.UnaryServerInfo{
  951. Server: srv,
  952. FullMethod: "/google.logging.v2.ConfigServiceV2/UpdateExclusion",
  953. }
  954. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  955. return srv.(ConfigServiceV2Server).UpdateExclusion(ctx, req.(*UpdateExclusionRequest))
  956. }
  957. return interceptor(ctx, in, info, handler)
  958. }
  959. func _ConfigServiceV2_DeleteExclusion_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
  960. in := new(DeleteExclusionRequest)
  961. if err := dec(in); err != nil {
  962. return nil, err
  963. }
  964. if interceptor == nil {
  965. return srv.(ConfigServiceV2Server).DeleteExclusion(ctx, in)
  966. }
  967. info := &grpc.UnaryServerInfo{
  968. Server: srv,
  969. FullMethod: "/google.logging.v2.ConfigServiceV2/DeleteExclusion",
  970. }
  971. handler := func(ctx context.Context, req interface{}) (interface{}, error) {
  972. return srv.(ConfigServiceV2Server).DeleteExclusion(ctx, req.(*DeleteExclusionRequest))
  973. }
  974. return interceptor(ctx, in, info, handler)
  975. }
  976. var _ConfigServiceV2_serviceDesc = grpc.ServiceDesc{
  977. ServiceName: "google.logging.v2.ConfigServiceV2",
  978. HandlerType: (*ConfigServiceV2Server)(nil),
  979. Methods: []grpc.MethodDesc{
  980. {
  981. MethodName: "ListSinks",
  982. Handler: _ConfigServiceV2_ListSinks_Handler,
  983. },
  984. {
  985. MethodName: "GetSink",
  986. Handler: _ConfigServiceV2_GetSink_Handler,
  987. },
  988. {
  989. MethodName: "CreateSink",
  990. Handler: _ConfigServiceV2_CreateSink_Handler,
  991. },
  992. {
  993. MethodName: "UpdateSink",
  994. Handler: _ConfigServiceV2_UpdateSink_Handler,
  995. },
  996. {
  997. MethodName: "DeleteSink",
  998. Handler: _ConfigServiceV2_DeleteSink_Handler,
  999. },
  1000. {
  1001. MethodName: "ListExclusions",
  1002. Handler: _ConfigServiceV2_ListExclusions_Handler,
  1003. },
  1004. {
  1005. MethodName: "GetExclusion",
  1006. Handler: _ConfigServiceV2_GetExclusion_Handler,
  1007. },
  1008. {
  1009. MethodName: "CreateExclusion",
  1010. Handler: _ConfigServiceV2_CreateExclusion_Handler,
  1011. },
  1012. {
  1013. MethodName: "UpdateExclusion",
  1014. Handler: _ConfigServiceV2_UpdateExclusion_Handler,
  1015. },
  1016. {
  1017. MethodName: "DeleteExclusion",
  1018. Handler: _ConfigServiceV2_DeleteExclusion_Handler,
  1019. },
  1020. },
  1021. Streams: []grpc.StreamDesc{},
  1022. Metadata: "google/logging/v2/logging_config.proto",
  1023. }
  1024. func init() { proto.RegisterFile("google/logging/v2/logging_config.proto", fileDescriptor2) }
  1025. var fileDescriptor2 = []byte{
  1026. // 1109 bytes of a gzipped FileDescriptorProto
  1027. 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xbc, 0x57, 0xff, 0x6e, 0xdb, 0x54,
  1028. 0x14, 0xc6, 0xe9, 0xda, 0x26, 0xa7, 0x5b, 0xd3, 0xde, 0xd1, 0x10, 0xb9, 0x8c, 0x06, 0xb3, 0x95,
  1029. 0xb4, 0x80, 0x53, 0x02, 0x93, 0x60, 0xd3, 0x34, 0xb1, 0xae, 0xad, 0x2a, 0x75, 0x5d, 0xe5, 0x76,
  1030. 0x45, 0x42, 0x48, 0x96, 0x1b, 0xdf, 0x98, 0x4b, 0x1d, 0x5f, 0xcf, 0xbe, 0x09, 0xdd, 0xa6, 0x4a,
  1031. 0xe3, 0xc7, 0x0b, 0x4c, 0x20, 0x9e, 0x01, 0xf1, 0x0c, 0xbc, 0x00, 0x7f, 0xf3, 0x0a, 0x3c, 0x04,
  1032. 0x7f, 0xa2, 0xfb, 0x23, 0x89, 0xe3, 0xb8, 0xa9, 0x11, 0x82, 0xbf, 0x7a, 0xef, 0xb9, 0xe7, 0xf8,
  1033. 0xfb, 0xce, 0xb9, 0x9f, 0x3f, 0xa7, 0xb0, 0xea, 0x51, 0xea, 0xf9, 0xb8, 0xe1, 0x53, 0xcf, 0x23,
  1034. 0x81, 0xd7, 0xe8, 0x35, 0xfb, 0x4b, 0xbb, 0x45, 0x83, 0x36, 0xf1, 0xcc, 0x30, 0xa2, 0x8c, 0xa2,
  1035. 0x45, 0x99, 0x67, 0xaa, 0x43, 0xb3, 0xd7, 0xd4, 0xdf, 0x54, 0xa5, 0x4e, 0x48, 0x1a, 0x4e, 0x10,
  1036. 0x50, 0xe6, 0x30, 0x42, 0x83, 0x58, 0x16, 0xe8, 0xcb, 0xea, 0x54, 0xec, 0x4e, 0xba, 0xed, 0x06,
  1037. 0xee, 0x84, 0xec, 0x99, 0x3a, 0xac, 0xa5, 0x0f, 0xdb, 0x04, 0xfb, 0xae, 0xdd, 0x71, 0xe2, 0x53,
  1038. 0x95, 0xb1, 0x92, 0xce, 0x60, 0xa4, 0x83, 0x63, 0xe6, 0x74, 0x42, 0x99, 0x60, 0xfc, 0x36, 0x05,
  1039. 0xb3, 0x7b, 0xd4, 0x3b, 0x24, 0xc1, 0x29, 0x42, 0x70, 0x25, 0x70, 0x3a, 0xb8, 0xaa, 0xd5, 0xb4,
  1040. 0x7a, 0xc9, 0x12, 0x6b, 0x54, 0x83, 0x39, 0x17, 0xc7, 0x8c, 0x04, 0x82, 0x55, 0x75, 0x4a, 0x1c,
  1041. 0x25, 0x43, 0xa8, 0x02, 0x33, 0x6d, 0xe2, 0x33, 0x1c, 0x55, 0xa7, 0xc5, 0xa1, 0xda, 0xa1, 0x2f,
  1042. 0x61, 0x89, 0x76, 0x59, 0xd8, 0x65, 0x76, 0x0f, 0x47, 0x31, 0xa1, 0x81, 0xdd, 0xa6, 0x51, 0xc7,
  1043. 0x61, 0xd5, 0x99, 0x9a, 0x56, 0x9f, 0x6f, 0xd6, 0xcd, 0xb1, 0x51, 0x98, 0x8a, 0x88, 0x79, 0x2c,
  1044. 0x0b, 0xb6, 0x45, 0xbe, 0x75, 0x5d, 0x3e, 0x66, 0x24, 0x88, 0xde, 0x85, 0xf2, 0x37, 0x11, 0x61,
  1045. 0x38, 0xb2, 0x89, 0x8b, 0x03, 0x46, 0xd8, 0xb3, 0x6a, 0x51, 0xc0, 0xcf, 0xcb, 0xf0, 0xae, 0x8a,
  1046. 0xa2, 0x35, 0x58, 0x20, 0x41, 0xcb, 0xef, 0xba, 0xd8, 0x6e, 0x7d, 0x45, 0x7c, 0x37, 0xc2, 0x41,
  1047. 0xb5, 0x54, 0xd3, 0xea, 0x45, 0xab, 0xac, 0xe2, 0x9b, 0x2a, 0x8c, 0x3e, 0x05, 0x88, 0x99, 0x13,
  1048. 0x31, 0x9b, 0x0f, 0xa9, 0x0a, 0x35, 0xad, 0x3e, 0xd7, 0xd4, 0xfb, 0x34, 0xfb, 0x13, 0x34, 0x8f,
  1049. 0xfa, 0x13, 0xb4, 0x4a, 0x22, 0x9b, 0xef, 0xd1, 0x6d, 0x28, 0xe2, 0xc0, 0x95, 0x85, 0x73, 0x97,
  1050. 0x16, 0xce, 0xe2, 0xc0, 0xe5, 0x3b, 0xe3, 0x3e, 0x5c, 0x1b, 0x6d, 0xeb, 0x2d, 0xd0, 0x8f, 0xb7,
  1051. 0xac, 0xc3, 0xdd, 0xc7, 0xfb, 0xf6, 0xf6, 0x63, 0xeb, 0xd1, 0x67, 0x47, 0xf6, 0x93, 0xfd, 0xc3,
  1052. 0x83, 0xad, 0xcd, 0xdd, 0xed, 0xdd, 0xad, 0x87, 0x0b, 0xaf, 0xa1, 0x19, 0x28, 0x1c, 0x37, 0x17,
  1053. 0x34, 0xf1, 0xf7, 0xc3, 0x85, 0x82, 0xd1, 0x86, 0x85, 0x3d, 0x12, 0x33, 0x3e, 0xb5, 0xd8, 0xc2,
  1054. 0x4f, 0xbb, 0x38, 0x66, 0xfc, 0x42, 0x42, 0x27, 0xc2, 0x01, 0x53, 0x17, 0xa9, 0x76, 0xe8, 0x06,
  1055. 0x40, 0xe8, 0x78, 0xd8, 0x66, 0xf4, 0x14, 0x07, 0xd5, 0x82, 0x38, 0x2b, 0xf1, 0xc8, 0x11, 0x0f,
  1056. 0xa0, 0x65, 0x10, 0x1b, 0x3b, 0x26, 0xcf, 0xb1, 0xb8, 0xe7, 0x69, 0xab, 0xc8, 0x03, 0x87, 0xe4,
  1057. 0x39, 0x36, 0x3a, 0xb0, 0x98, 0xc0, 0x89, 0x43, 0x1a, 0xc4, 0x18, 0x6d, 0xc0, 0x74, 0xcc, 0x03,
  1058. 0x55, 0xad, 0x36, 0x95, 0xec, 0x78, 0xfc, 0x46, 0x2d, 0x99, 0x88, 0x56, 0xa1, 0x1c, 0xe0, 0x33,
  1059. 0x66, 0x8f, 0xf1, 0xb8, 0xc6, 0xc3, 0x07, 0x7d, 0x2e, 0xc6, 0x07, 0x30, 0xbf, 0x83, 0x05, 0x5a,
  1060. 0xbf, 0xa9, 0x65, 0x28, 0xf1, 0x47, 0xd8, 0x09, 0x81, 0x16, 0x79, 0x60, 0xdf, 0xe9, 0x60, 0xe3,
  1061. 0x95, 0x06, 0x8b, 0x9b, 0x11, 0x76, 0x18, 0x4e, 0x96, 0x5c, 0x34, 0x07, 0x13, 0xae, 0xf0, 0x4a,
  1062. 0x81, 0x3c, 0x99, 0xb5, 0xc8, 0x43, 0x1f, 0x43, 0xa5, 0x1b, 0x90, 0xa7, 0x5d, 0x6c, 0xa7, 0x15,
  1063. 0x37, 0x25, 0x74, 0xf4, 0xba, 0x3c, 0xfd, 0x7c, 0x44, 0x77, 0xc6, 0xcf, 0x1a, 0x2c, 0x3e, 0x09,
  1064. 0xdd, 0x14, 0xa7, 0x49, 0x6d, 0xfc, 0x4f, 0xc4, 0x36, 0x60, 0xf1, 0x21, 0xf6, 0x71, 0x7e, 0x5e,
  1065. 0xc6, 0x19, 0x5c, 0xdd, 0xa3, 0xde, 0xd6, 0x59, 0xcb, 0xef, 0x72, 0xa9, 0x4e, 0xf0, 0x89, 0x56,
  1066. 0x44, 0x42, 0xe1, 0x13, 0x85, 0x81, 0x4f, 0xf4, 0x43, 0x09, 0x9f, 0x98, 0x1a, 0xf1, 0x09, 0x1d,
  1067. 0x8a, 0x2e, 0x89, 0x9d, 0x13, 0x1f, 0xbb, 0xd5, 0x2b, 0x82, 0xf7, 0x60, 0x6f, 0x9c, 0xc2, 0x12,
  1068. 0x97, 0xdd, 0x00, 0xfa, 0x3f, 0xd5, 0xf8, 0xb7, 0x1a, 0x54, 0xd2, 0x68, 0x4a, 0xe9, 0xf7, 0x01,
  1069. 0xf0, 0x20, 0xaa, 0xe4, 0xbe, 0x92, 0x7d, 0x3f, 0x83, 0x6a, 0x2b, 0x51, 0x92, 0x5b, 0xf8, 0x6b,
  1070. 0x70, 0x7d, 0x07, 0x0f, 0x19, 0xf4, 0xdb, 0xcd, 0x98, 0xb8, 0x41, 0xa1, 0x22, 0x35, 0x3f, 0x96,
  1071. 0x7d, 0xd1, 0x70, 0xee, 0x41, 0x69, 0x40, 0x49, 0x89, 0xec, 0xd2, 0x26, 0x86, 0x15, 0xc6, 0x2f,
  1072. 0x1a, 0x54, 0xa4, 0xa2, 0xf3, 0xf0, 0xfb, 0x97, 0x68, 0xe8, 0x2e, 0xcc, 0x75, 0x05, 0x98, 0xf8,
  1073. 0x9c, 0x89, 0xcb, 0xca, 0x32, 0xd5, 0x6d, 0xfe, 0xc5, 0x7b, 0xe4, 0xc4, 0xa7, 0x16, 0xc8, 0x74,
  1074. 0xbe, 0x36, 0xde, 0x87, 0x8a, 0xd4, 0x78, 0x1e, 0xa6, 0xcd, 0xdf, 0x01, 0xca, 0x9b, 0xe2, 0x2b,
  1075. 0x7d, 0x88, 0xa3, 0x1e, 0x69, 0xe1, 0xe3, 0x26, 0x3a, 0x87, 0xd2, 0xc0, 0xf0, 0xd0, 0x3b, 0x59,
  1076. 0xbc, 0x53, 0xb6, 0xab, 0xdf, 0x9c, 0x9c, 0x24, 0x95, 0x64, 0xdc, 0xfa, 0xee, 0x8f, 0x3f, 0x7f,
  1077. 0x2c, 0xac, 0xa0, 0x1b, 0xfc, 0x27, 0xc2, 0x0b, 0x79, 0x31, 0xf7, 0xc2, 0x88, 0x7e, 0x8d, 0x5b,
  1078. 0x2c, 0x6

Large files files are truncated, but you can click here to view the full file