1// Code generated by protoc-gen-go. DO NOT EDIT. 2// source: google/devtools/containeranalysis/v1beta1/grafeas/grafeas.proto 3 4package grafeas 5 6import ( 7 context "context" 8 fmt "fmt" 9 math "math" 10 11 proto "github.com/golang/protobuf/proto" 12 empty "github.com/golang/protobuf/ptypes/empty" 13 timestamp "github.com/golang/protobuf/ptypes/timestamp" 14 _ "google.golang.org/genproto/googleapis/api/annotations" 15 attestation "google.golang.org/genproto/googleapis/devtools/containeranalysis/v1beta1/attestation" 16 build "google.golang.org/genproto/googleapis/devtools/containeranalysis/v1beta1/build" 17 common "google.golang.org/genproto/googleapis/devtools/containeranalysis/v1beta1/common" 18 deployment "google.golang.org/genproto/googleapis/devtools/containeranalysis/v1beta1/deployment" 19 discovery "google.golang.org/genproto/googleapis/devtools/containeranalysis/v1beta1/discovery" 20 image "google.golang.org/genproto/googleapis/devtools/containeranalysis/v1beta1/image" 21 _package "google.golang.org/genproto/googleapis/devtools/containeranalysis/v1beta1/package" 22 provenance "google.golang.org/genproto/googleapis/devtools/containeranalysis/v1beta1/provenance" 23 vulnerability "google.golang.org/genproto/googleapis/devtools/containeranalysis/v1beta1/vulnerability" 24 field_mask "google.golang.org/genproto/protobuf/field_mask" 25 grpc "google.golang.org/grpc" 26) 27 28// Reference imports to suppress errors if they are not otherwise used. 29var _ = proto.Marshal 30var _ = fmt.Errorf 31var _ = math.Inf 32 33// This is a compile-time assertion to ensure that this generated file 34// is compatible with the proto package it is being compiled against. 35// A compilation error at this line likely means your copy of the 36// proto package needs to be updated. 37const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package 38 39// An instance of an analysis type that has been found on a resource. 40type Occurrence struct { 41 // Output only. The name of the occurrence in the form of 42 // `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. 43 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 44 // Required. Immutable. The resource for which the occurrence applies. 45 Resource *Resource `protobuf:"bytes,2,opt,name=resource,proto3" json:"resource,omitempty"` 46 // Required. Immutable. The analysis note associated with this occurrence, in 47 // the form of `projects[PROVIDER_ID]/notes/[NOTE_ID]`. This field can be used 48 // as a filter in list requests. 49 NoteName string `protobuf:"bytes,3,opt,name=note_name,json=noteName,proto3" json:"note_name,omitempty"` 50 // Output only. This explicitly denotes which of the occurrence details are 51 // specified. This field can be used as a filter in list requests. 52 Kind common.NoteKind `protobuf:"varint,4,opt,name=kind,proto3,enum=grafeas.v1beta1.NoteKind" json:"kind,omitempty"` 53 // A description of actions that can be taken to remedy the note. 54 Remediation string `protobuf:"bytes,5,opt,name=remediation,proto3" json:"remediation,omitempty"` 55 // Output only. The time this occurrence was created. 56 CreateTime *timestamp.Timestamp `protobuf:"bytes,6,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` 57 // Output only. The time this occurrence was last updated. 58 UpdateTime *timestamp.Timestamp `protobuf:"bytes,7,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` 59 // Required. Immutable. Describes the details of the note kind found on this 60 // resource. 61 // 62 // Types that are valid to be assigned to Details: 63 // *Occurrence_Vulnerability 64 // *Occurrence_Build 65 // *Occurrence_DerivedImage 66 // *Occurrence_Installation 67 // *Occurrence_Deployment 68 // *Occurrence_Discovered 69 // *Occurrence_Attestation 70 Details isOccurrence_Details `protobuf_oneof:"details"` 71 XXX_NoUnkeyedLiteral struct{} `json:"-"` 72 XXX_unrecognized []byte `json:"-"` 73 XXX_sizecache int32 `json:"-"` 74} 75 76func (m *Occurrence) Reset() { *m = Occurrence{} } 77func (m *Occurrence) String() string { return proto.CompactTextString(m) } 78func (*Occurrence) ProtoMessage() {} 79func (*Occurrence) Descriptor() ([]byte, []int) { 80 return fileDescriptor_5865e5de1898162a, []int{0} 81} 82 83func (m *Occurrence) XXX_Unmarshal(b []byte) error { 84 return xxx_messageInfo_Occurrence.Unmarshal(m, b) 85} 86func (m *Occurrence) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 87 return xxx_messageInfo_Occurrence.Marshal(b, m, deterministic) 88} 89func (m *Occurrence) XXX_Merge(src proto.Message) { 90 xxx_messageInfo_Occurrence.Merge(m, src) 91} 92func (m *Occurrence) XXX_Size() int { 93 return xxx_messageInfo_Occurrence.Size(m) 94} 95func (m *Occurrence) XXX_DiscardUnknown() { 96 xxx_messageInfo_Occurrence.DiscardUnknown(m) 97} 98 99var xxx_messageInfo_Occurrence proto.InternalMessageInfo 100 101func (m *Occurrence) GetName() string { 102 if m != nil { 103 return m.Name 104 } 105 return "" 106} 107 108func (m *Occurrence) GetResource() *Resource { 109 if m != nil { 110 return m.Resource 111 } 112 return nil 113} 114 115func (m *Occurrence) GetNoteName() string { 116 if m != nil { 117 return m.NoteName 118 } 119 return "" 120} 121 122func (m *Occurrence) GetKind() common.NoteKind { 123 if m != nil { 124 return m.Kind 125 } 126 return common.NoteKind_NOTE_KIND_UNSPECIFIED 127} 128 129func (m *Occurrence) GetRemediation() string { 130 if m != nil { 131 return m.Remediation 132 } 133 return "" 134} 135 136func (m *Occurrence) GetCreateTime() *timestamp.Timestamp { 137 if m != nil { 138 return m.CreateTime 139 } 140 return nil 141} 142 143func (m *Occurrence) GetUpdateTime() *timestamp.Timestamp { 144 if m != nil { 145 return m.UpdateTime 146 } 147 return nil 148} 149 150type isOccurrence_Details interface { 151 isOccurrence_Details() 152} 153 154type Occurrence_Vulnerability struct { 155 Vulnerability *vulnerability.Details `protobuf:"bytes,8,opt,name=vulnerability,proto3,oneof"` 156} 157 158type Occurrence_Build struct { 159 Build *build.Details `protobuf:"bytes,9,opt,name=build,proto3,oneof"` 160} 161 162type Occurrence_DerivedImage struct { 163 DerivedImage *image.Details `protobuf:"bytes,10,opt,name=derived_image,json=derivedImage,proto3,oneof"` 164} 165 166type Occurrence_Installation struct { 167 Installation *_package.Details `protobuf:"bytes,11,opt,name=installation,proto3,oneof"` 168} 169 170type Occurrence_Deployment struct { 171 Deployment *deployment.Details `protobuf:"bytes,12,opt,name=deployment,proto3,oneof"` 172} 173 174type Occurrence_Discovered struct { 175 Discovered *discovery.Details `protobuf:"bytes,13,opt,name=discovered,proto3,oneof"` 176} 177 178type Occurrence_Attestation struct { 179 Attestation *attestation.Details `protobuf:"bytes,14,opt,name=attestation,proto3,oneof"` 180} 181 182func (*Occurrence_Vulnerability) isOccurrence_Details() {} 183 184func (*Occurrence_Build) isOccurrence_Details() {} 185 186func (*Occurrence_DerivedImage) isOccurrence_Details() {} 187 188func (*Occurrence_Installation) isOccurrence_Details() {} 189 190func (*Occurrence_Deployment) isOccurrence_Details() {} 191 192func (*Occurrence_Discovered) isOccurrence_Details() {} 193 194func (*Occurrence_Attestation) isOccurrence_Details() {} 195 196func (m *Occurrence) GetDetails() isOccurrence_Details { 197 if m != nil { 198 return m.Details 199 } 200 return nil 201} 202 203func (m *Occurrence) GetVulnerability() *vulnerability.Details { 204 if x, ok := m.GetDetails().(*Occurrence_Vulnerability); ok { 205 return x.Vulnerability 206 } 207 return nil 208} 209 210func (m *Occurrence) GetBuild() *build.Details { 211 if x, ok := m.GetDetails().(*Occurrence_Build); ok { 212 return x.Build 213 } 214 return nil 215} 216 217func (m *Occurrence) GetDerivedImage() *image.Details { 218 if x, ok := m.GetDetails().(*Occurrence_DerivedImage); ok { 219 return x.DerivedImage 220 } 221 return nil 222} 223 224func (m *Occurrence) GetInstallation() *_package.Details { 225 if x, ok := m.GetDetails().(*Occurrence_Installation); ok { 226 return x.Installation 227 } 228 return nil 229} 230 231func (m *Occurrence) GetDeployment() *deployment.Details { 232 if x, ok := m.GetDetails().(*Occurrence_Deployment); ok { 233 return x.Deployment 234 } 235 return nil 236} 237 238func (m *Occurrence) GetDiscovered() *discovery.Details { 239 if x, ok := m.GetDetails().(*Occurrence_Discovered); ok { 240 return x.Discovered 241 } 242 return nil 243} 244 245func (m *Occurrence) GetAttestation() *attestation.Details { 246 if x, ok := m.GetDetails().(*Occurrence_Attestation); ok { 247 return x.Attestation 248 } 249 return nil 250} 251 252// XXX_OneofWrappers is for the internal use of the proto package. 253func (*Occurrence) XXX_OneofWrappers() []interface{} { 254 return []interface{}{ 255 (*Occurrence_Vulnerability)(nil), 256 (*Occurrence_Build)(nil), 257 (*Occurrence_DerivedImage)(nil), 258 (*Occurrence_Installation)(nil), 259 (*Occurrence_Deployment)(nil), 260 (*Occurrence_Discovered)(nil), 261 (*Occurrence_Attestation)(nil), 262 } 263} 264 265// An entity that can have metadata. For example, a Docker image. 266type Resource struct { 267 // The name of the resource. For example, the name of a Docker image - 268 // "Debian". 269 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 270 // The unique URI of the resource. For example, 271 // `https://gcr.io/project/image@sha256:foo` for a Docker image. 272 Uri string `protobuf:"bytes,2,opt,name=uri,proto3" json:"uri,omitempty"` 273 // The hash of the resource content. For example, the Docker digest. 274 ContentHash *provenance.Hash `protobuf:"bytes,3,opt,name=content_hash,json=contentHash,proto3" json:"content_hash,omitempty"` 275 XXX_NoUnkeyedLiteral struct{} `json:"-"` 276 XXX_unrecognized []byte `json:"-"` 277 XXX_sizecache int32 `json:"-"` 278} 279 280func (m *Resource) Reset() { *m = Resource{} } 281func (m *Resource) String() string { return proto.CompactTextString(m) } 282func (*Resource) ProtoMessage() {} 283func (*Resource) Descriptor() ([]byte, []int) { 284 return fileDescriptor_5865e5de1898162a, []int{1} 285} 286 287func (m *Resource) XXX_Unmarshal(b []byte) error { 288 return xxx_messageInfo_Resource.Unmarshal(m, b) 289} 290func (m *Resource) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 291 return xxx_messageInfo_Resource.Marshal(b, m, deterministic) 292} 293func (m *Resource) XXX_Merge(src proto.Message) { 294 xxx_messageInfo_Resource.Merge(m, src) 295} 296func (m *Resource) XXX_Size() int { 297 return xxx_messageInfo_Resource.Size(m) 298} 299func (m *Resource) XXX_DiscardUnknown() { 300 xxx_messageInfo_Resource.DiscardUnknown(m) 301} 302 303var xxx_messageInfo_Resource proto.InternalMessageInfo 304 305func (m *Resource) GetName() string { 306 if m != nil { 307 return m.Name 308 } 309 return "" 310} 311 312func (m *Resource) GetUri() string { 313 if m != nil { 314 return m.Uri 315 } 316 return "" 317} 318 319func (m *Resource) GetContentHash() *provenance.Hash { 320 if m != nil { 321 return m.ContentHash 322 } 323 return nil 324} 325 326// A type of analysis that can be done for a resource. 327type Note struct { 328 // Output only. The name of the note in the form of 329 // `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. 330 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 331 // A one sentence description of this note. 332 ShortDescription string `protobuf:"bytes,2,opt,name=short_description,json=shortDescription,proto3" json:"short_description,omitempty"` 333 // A detailed description of this note. 334 LongDescription string `protobuf:"bytes,3,opt,name=long_description,json=longDescription,proto3" json:"long_description,omitempty"` 335 // Output only. The type of analysis. This field can be used as a filter in 336 // list requests. 337 Kind common.NoteKind `protobuf:"varint,4,opt,name=kind,proto3,enum=grafeas.v1beta1.NoteKind" json:"kind,omitempty"` 338 // URLs associated with this note. 339 RelatedUrl []*common.RelatedUrl `protobuf:"bytes,5,rep,name=related_url,json=relatedUrl,proto3" json:"related_url,omitempty"` 340 // Time of expiration for this note. Empty if note does not expire. 341 ExpirationTime *timestamp.Timestamp `protobuf:"bytes,6,opt,name=expiration_time,json=expirationTime,proto3" json:"expiration_time,omitempty"` 342 // Output only. The time this note was created. This field can be used as a 343 // filter in list requests. 344 CreateTime *timestamp.Timestamp `protobuf:"bytes,7,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"` 345 // Output only. The time this note was last updated. This field can be used as 346 // a filter in list requests. 347 UpdateTime *timestamp.Timestamp `protobuf:"bytes,8,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` 348 // Other notes related to this note. 349 RelatedNoteNames []string `protobuf:"bytes,9,rep,name=related_note_names,json=relatedNoteNames,proto3" json:"related_note_names,omitempty"` 350 // Required. Immutable. The type of analysis this note represents. 351 // 352 // Types that are valid to be assigned to Type: 353 // *Note_Vulnerability 354 // *Note_Build 355 // *Note_BaseImage 356 // *Note_Package 357 // *Note_Deployable 358 // *Note_Discovery 359 // *Note_AttestationAuthority 360 Type isNote_Type `protobuf_oneof:"type"` 361 XXX_NoUnkeyedLiteral struct{} `json:"-"` 362 XXX_unrecognized []byte `json:"-"` 363 XXX_sizecache int32 `json:"-"` 364} 365 366func (m *Note) Reset() { *m = Note{} } 367func (m *Note) String() string { return proto.CompactTextString(m) } 368func (*Note) ProtoMessage() {} 369func (*Note) Descriptor() ([]byte, []int) { 370 return fileDescriptor_5865e5de1898162a, []int{2} 371} 372 373func (m *Note) XXX_Unmarshal(b []byte) error { 374 return xxx_messageInfo_Note.Unmarshal(m, b) 375} 376func (m *Note) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 377 return xxx_messageInfo_Note.Marshal(b, m, deterministic) 378} 379func (m *Note) XXX_Merge(src proto.Message) { 380 xxx_messageInfo_Note.Merge(m, src) 381} 382func (m *Note) XXX_Size() int { 383 return xxx_messageInfo_Note.Size(m) 384} 385func (m *Note) XXX_DiscardUnknown() { 386 xxx_messageInfo_Note.DiscardUnknown(m) 387} 388 389var xxx_messageInfo_Note proto.InternalMessageInfo 390 391func (m *Note) GetName() string { 392 if m != nil { 393 return m.Name 394 } 395 return "" 396} 397 398func (m *Note) GetShortDescription() string { 399 if m != nil { 400 return m.ShortDescription 401 } 402 return "" 403} 404 405func (m *Note) GetLongDescription() string { 406 if m != nil { 407 return m.LongDescription 408 } 409 return "" 410} 411 412func (m *Note) GetKind() common.NoteKind { 413 if m != nil { 414 return m.Kind 415 } 416 return common.NoteKind_NOTE_KIND_UNSPECIFIED 417} 418 419func (m *Note) GetRelatedUrl() []*common.RelatedUrl { 420 if m != nil { 421 return m.RelatedUrl 422 } 423 return nil 424} 425 426func (m *Note) GetExpirationTime() *timestamp.Timestamp { 427 if m != nil { 428 return m.ExpirationTime 429 } 430 return nil 431} 432 433func (m *Note) GetCreateTime() *timestamp.Timestamp { 434 if m != nil { 435 return m.CreateTime 436 } 437 return nil 438} 439 440func (m *Note) GetUpdateTime() *timestamp.Timestamp { 441 if m != nil { 442 return m.UpdateTime 443 } 444 return nil 445} 446 447func (m *Note) GetRelatedNoteNames() []string { 448 if m != nil { 449 return m.RelatedNoteNames 450 } 451 return nil 452} 453 454type isNote_Type interface { 455 isNote_Type() 456} 457 458type Note_Vulnerability struct { 459 Vulnerability *vulnerability.Vulnerability `protobuf:"bytes,10,opt,name=vulnerability,proto3,oneof"` 460} 461 462type Note_Build struct { 463 Build *build.Build `protobuf:"bytes,11,opt,name=build,proto3,oneof"` 464} 465 466type Note_BaseImage struct { 467 BaseImage *image.Basis `protobuf:"bytes,12,opt,name=base_image,json=baseImage,proto3,oneof"` 468} 469 470type Note_Package struct { 471 Package *_package.Package `protobuf:"bytes,13,opt,name=package,proto3,oneof"` 472} 473 474type Note_Deployable struct { 475 Deployable *deployment.Deployable `protobuf:"bytes,14,opt,name=deployable,proto3,oneof"` 476} 477 478type Note_Discovery struct { 479 Discovery *discovery.Discovery `protobuf:"bytes,15,opt,name=discovery,proto3,oneof"` 480} 481 482type Note_AttestationAuthority struct { 483 AttestationAuthority *attestation.Authority `protobuf:"bytes,16,opt,name=attestation_authority,json=attestationAuthority,proto3,oneof"` 484} 485 486func (*Note_Vulnerability) isNote_Type() {} 487 488func (*Note_Build) isNote_Type() {} 489 490func (*Note_BaseImage) isNote_Type() {} 491 492func (*Note_Package) isNote_Type() {} 493 494func (*Note_Deployable) isNote_Type() {} 495 496func (*Note_Discovery) isNote_Type() {} 497 498func (*Note_AttestationAuthority) isNote_Type() {} 499 500func (m *Note) GetType() isNote_Type { 501 if m != nil { 502 return m.Type 503 } 504 return nil 505} 506 507func (m *Note) GetVulnerability() *vulnerability.Vulnerability { 508 if x, ok := m.GetType().(*Note_Vulnerability); ok { 509 return x.Vulnerability 510 } 511 return nil 512} 513 514func (m *Note) GetBuild() *build.Build { 515 if x, ok := m.GetType().(*Note_Build); ok { 516 return x.Build 517 } 518 return nil 519} 520 521func (m *Note) GetBaseImage() *image.Basis { 522 if x, ok := m.GetType().(*Note_BaseImage); ok { 523 return x.BaseImage 524 } 525 return nil 526} 527 528func (m *Note) GetPackage() *_package.Package { 529 if x, ok := m.GetType().(*Note_Package); ok { 530 return x.Package 531 } 532 return nil 533} 534 535func (m *Note) GetDeployable() *deployment.Deployable { 536 if x, ok := m.GetType().(*Note_Deployable); ok { 537 return x.Deployable 538 } 539 return nil 540} 541 542func (m *Note) GetDiscovery() *discovery.Discovery { 543 if x, ok := m.GetType().(*Note_Discovery); ok { 544 return x.Discovery 545 } 546 return nil 547} 548 549func (m *Note) GetAttestationAuthority() *attestation.Authority { 550 if x, ok := m.GetType().(*Note_AttestationAuthority); ok { 551 return x.AttestationAuthority 552 } 553 return nil 554} 555 556// XXX_OneofWrappers is for the internal use of the proto package. 557func (*Note) XXX_OneofWrappers() []interface{} { 558 return []interface{}{ 559 (*Note_Vulnerability)(nil), 560 (*Note_Build)(nil), 561 (*Note_BaseImage)(nil), 562 (*Note_Package)(nil), 563 (*Note_Deployable)(nil), 564 (*Note_Discovery)(nil), 565 (*Note_AttestationAuthority)(nil), 566 } 567} 568 569// Request to get an occurrence. 570type GetOccurrenceRequest struct { 571 // The name of the occurrence in the form of 572 // `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. 573 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 574 XXX_NoUnkeyedLiteral struct{} `json:"-"` 575 XXX_unrecognized []byte `json:"-"` 576 XXX_sizecache int32 `json:"-"` 577} 578 579func (m *GetOccurrenceRequest) Reset() { *m = GetOccurrenceRequest{} } 580func (m *GetOccurrenceRequest) String() string { return proto.CompactTextString(m) } 581func (*GetOccurrenceRequest) ProtoMessage() {} 582func (*GetOccurrenceRequest) Descriptor() ([]byte, []int) { 583 return fileDescriptor_5865e5de1898162a, []int{3} 584} 585 586func (m *GetOccurrenceRequest) XXX_Unmarshal(b []byte) error { 587 return xxx_messageInfo_GetOccurrenceRequest.Unmarshal(m, b) 588} 589func (m *GetOccurrenceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 590 return xxx_messageInfo_GetOccurrenceRequest.Marshal(b, m, deterministic) 591} 592func (m *GetOccurrenceRequest) XXX_Merge(src proto.Message) { 593 xxx_messageInfo_GetOccurrenceRequest.Merge(m, src) 594} 595func (m *GetOccurrenceRequest) XXX_Size() int { 596 return xxx_messageInfo_GetOccurrenceRequest.Size(m) 597} 598func (m *GetOccurrenceRequest) XXX_DiscardUnknown() { 599 xxx_messageInfo_GetOccurrenceRequest.DiscardUnknown(m) 600} 601 602var xxx_messageInfo_GetOccurrenceRequest proto.InternalMessageInfo 603 604func (m *GetOccurrenceRequest) GetName() string { 605 if m != nil { 606 return m.Name 607 } 608 return "" 609} 610 611// Request to list occurrences. 612type ListOccurrencesRequest struct { 613 // The name of the project to list occurrences for in the form of 614 // `projects/[PROJECT_ID]`. 615 Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` 616 // The filter expression. 617 Filter string `protobuf:"bytes,2,opt,name=filter,proto3" json:"filter,omitempty"` 618 // Number of occurrences to return in the list. 619 PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` 620 // Token to provide to skip to a particular spot in the list. 621 PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` 622 XXX_NoUnkeyedLiteral struct{} `json:"-"` 623 XXX_unrecognized []byte `json:"-"` 624 XXX_sizecache int32 `json:"-"` 625} 626 627func (m *ListOccurrencesRequest) Reset() { *m = ListOccurrencesRequest{} } 628func (m *ListOccurrencesRequest) String() string { return proto.CompactTextString(m) } 629func (*ListOccurrencesRequest) ProtoMessage() {} 630func (*ListOccurrencesRequest) Descriptor() ([]byte, []int) { 631 return fileDescriptor_5865e5de1898162a, []int{4} 632} 633 634func (m *ListOccurrencesRequest) XXX_Unmarshal(b []byte) error { 635 return xxx_messageInfo_ListOccurrencesRequest.Unmarshal(m, b) 636} 637func (m *ListOccurrencesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 638 return xxx_messageInfo_ListOccurrencesRequest.Marshal(b, m, deterministic) 639} 640func (m *ListOccurrencesRequest) XXX_Merge(src proto.Message) { 641 xxx_messageInfo_ListOccurrencesRequest.Merge(m, src) 642} 643func (m *ListOccurrencesRequest) XXX_Size() int { 644 return xxx_messageInfo_ListOccurrencesRequest.Size(m) 645} 646func (m *ListOccurrencesRequest) XXX_DiscardUnknown() { 647 xxx_messageInfo_ListOccurrencesRequest.DiscardUnknown(m) 648} 649 650var xxx_messageInfo_ListOccurrencesRequest proto.InternalMessageInfo 651 652func (m *ListOccurrencesRequest) GetParent() string { 653 if m != nil { 654 return m.Parent 655 } 656 return "" 657} 658 659func (m *ListOccurrencesRequest) GetFilter() string { 660 if m != nil { 661 return m.Filter 662 } 663 return "" 664} 665 666func (m *ListOccurrencesRequest) GetPageSize() int32 { 667 if m != nil { 668 return m.PageSize 669 } 670 return 0 671} 672 673func (m *ListOccurrencesRequest) GetPageToken() string { 674 if m != nil { 675 return m.PageToken 676 } 677 return "" 678} 679 680// Response for listing occurrences. 681type ListOccurrencesResponse struct { 682 // The occurrences requested. 683 Occurrences []*Occurrence `protobuf:"bytes,1,rep,name=occurrences,proto3" json:"occurrences,omitempty"` 684 // The next pagination token in the list response. It should be used as 685 // `page_token` for the following request. An empty value means no more 686 // results. 687 NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` 688 XXX_NoUnkeyedLiteral struct{} `json:"-"` 689 XXX_unrecognized []byte `json:"-"` 690 XXX_sizecache int32 `json:"-"` 691} 692 693func (m *ListOccurrencesResponse) Reset() { *m = ListOccurrencesResponse{} } 694func (m *ListOccurrencesResponse) String() string { return proto.CompactTextString(m) } 695func (*ListOccurrencesResponse) ProtoMessage() {} 696func (*ListOccurrencesResponse) Descriptor() ([]byte, []int) { 697 return fileDescriptor_5865e5de1898162a, []int{5} 698} 699 700func (m *ListOccurrencesResponse) XXX_Unmarshal(b []byte) error { 701 return xxx_messageInfo_ListOccurrencesResponse.Unmarshal(m, b) 702} 703func (m *ListOccurrencesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 704 return xxx_messageInfo_ListOccurrencesResponse.Marshal(b, m, deterministic) 705} 706func (m *ListOccurrencesResponse) XXX_Merge(src proto.Message) { 707 xxx_messageInfo_ListOccurrencesResponse.Merge(m, src) 708} 709func (m *ListOccurrencesResponse) XXX_Size() int { 710 return xxx_messageInfo_ListOccurrencesResponse.Size(m) 711} 712func (m *ListOccurrencesResponse) XXX_DiscardUnknown() { 713 xxx_messageInfo_ListOccurrencesResponse.DiscardUnknown(m) 714} 715 716var xxx_messageInfo_ListOccurrencesResponse proto.InternalMessageInfo 717 718func (m *ListOccurrencesResponse) GetOccurrences() []*Occurrence { 719 if m != nil { 720 return m.Occurrences 721 } 722 return nil 723} 724 725func (m *ListOccurrencesResponse) GetNextPageToken() string { 726 if m != nil { 727 return m.NextPageToken 728 } 729 return "" 730} 731 732// Request to delete a occurrence. 733type DeleteOccurrenceRequest struct { 734 // The name of the occurrence in the form of 735 // `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. 736 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 737 XXX_NoUnkeyedLiteral struct{} `json:"-"` 738 XXX_unrecognized []byte `json:"-"` 739 XXX_sizecache int32 `json:"-"` 740} 741 742func (m *DeleteOccurrenceRequest) Reset() { *m = DeleteOccurrenceRequest{} } 743func (m *DeleteOccurrenceRequest) String() string { return proto.CompactTextString(m) } 744func (*DeleteOccurrenceRequest) ProtoMessage() {} 745func (*DeleteOccurrenceRequest) Descriptor() ([]byte, []int) { 746 return fileDescriptor_5865e5de1898162a, []int{6} 747} 748 749func (m *DeleteOccurrenceRequest) XXX_Unmarshal(b []byte) error { 750 return xxx_messageInfo_DeleteOccurrenceRequest.Unmarshal(m, b) 751} 752func (m *DeleteOccurrenceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 753 return xxx_messageInfo_DeleteOccurrenceRequest.Marshal(b, m, deterministic) 754} 755func (m *DeleteOccurrenceRequest) XXX_Merge(src proto.Message) { 756 xxx_messageInfo_DeleteOccurrenceRequest.Merge(m, src) 757} 758func (m *DeleteOccurrenceRequest) XXX_Size() int { 759 return xxx_messageInfo_DeleteOccurrenceRequest.Size(m) 760} 761func (m *DeleteOccurrenceRequest) XXX_DiscardUnknown() { 762 xxx_messageInfo_DeleteOccurrenceRequest.DiscardUnknown(m) 763} 764 765var xxx_messageInfo_DeleteOccurrenceRequest proto.InternalMessageInfo 766 767func (m *DeleteOccurrenceRequest) GetName() string { 768 if m != nil { 769 return m.Name 770 } 771 return "" 772} 773 774// Request to create a new occurrence. 775type CreateOccurrenceRequest struct { 776 // The name of the project in the form of `projects/[PROJECT_ID]`, under which 777 // the occurrence is to be created. 778 Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` 779 // The occurrence to create. 780 Occurrence *Occurrence `protobuf:"bytes,2,opt,name=occurrence,proto3" json:"occurrence,omitempty"` 781 XXX_NoUnkeyedLiteral struct{} `json:"-"` 782 XXX_unrecognized []byte `json:"-"` 783 XXX_sizecache int32 `json:"-"` 784} 785 786func (m *CreateOccurrenceRequest) Reset() { *m = CreateOccurrenceRequest{} } 787func (m *CreateOccurrenceRequest) String() string { return proto.CompactTextString(m) } 788func (*CreateOccurrenceRequest) ProtoMessage() {} 789func (*CreateOccurrenceRequest) Descriptor() ([]byte, []int) { 790 return fileDescriptor_5865e5de1898162a, []int{7} 791} 792 793func (m *CreateOccurrenceRequest) XXX_Unmarshal(b []byte) error { 794 return xxx_messageInfo_CreateOccurrenceRequest.Unmarshal(m, b) 795} 796func (m *CreateOccurrenceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 797 return xxx_messageInfo_CreateOccurrenceRequest.Marshal(b, m, deterministic) 798} 799func (m *CreateOccurrenceRequest) XXX_Merge(src proto.Message) { 800 xxx_messageInfo_CreateOccurrenceRequest.Merge(m, src) 801} 802func (m *CreateOccurrenceRequest) XXX_Size() int { 803 return xxx_messageInfo_CreateOccurrenceRequest.Size(m) 804} 805func (m *CreateOccurrenceRequest) XXX_DiscardUnknown() { 806 xxx_messageInfo_CreateOccurrenceRequest.DiscardUnknown(m) 807} 808 809var xxx_messageInfo_CreateOccurrenceRequest proto.InternalMessageInfo 810 811func (m *CreateOccurrenceRequest) GetParent() string { 812 if m != nil { 813 return m.Parent 814 } 815 return "" 816} 817 818func (m *CreateOccurrenceRequest) GetOccurrence() *Occurrence { 819 if m != nil { 820 return m.Occurrence 821 } 822 return nil 823} 824 825// Request to update an occurrence. 826type UpdateOccurrenceRequest struct { 827 // The name of the occurrence in the form of 828 // `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. 829 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 830 // The updated occurrence. 831 Occurrence *Occurrence `protobuf:"bytes,2,opt,name=occurrence,proto3" json:"occurrence,omitempty"` 832 // The fields to update. 833 UpdateMask *field_mask.FieldMask `protobuf:"bytes,3,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` 834 XXX_NoUnkeyedLiteral struct{} `json:"-"` 835 XXX_unrecognized []byte `json:"-"` 836 XXX_sizecache int32 `json:"-"` 837} 838 839func (m *UpdateOccurrenceRequest) Reset() { *m = UpdateOccurrenceRequest{} } 840func (m *UpdateOccurrenceRequest) String() string { return proto.CompactTextString(m) } 841func (*UpdateOccurrenceRequest) ProtoMessage() {} 842func (*UpdateOccurrenceRequest) Descriptor() ([]byte, []int) { 843 return fileDescriptor_5865e5de1898162a, []int{8} 844} 845 846func (m *UpdateOccurrenceRequest) XXX_Unmarshal(b []byte) error { 847 return xxx_messageInfo_UpdateOccurrenceRequest.Unmarshal(m, b) 848} 849func (m *UpdateOccurrenceRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 850 return xxx_messageInfo_UpdateOccurrenceRequest.Marshal(b, m, deterministic) 851} 852func (m *UpdateOccurrenceRequest) XXX_Merge(src proto.Message) { 853 xxx_messageInfo_UpdateOccurrenceRequest.Merge(m, src) 854} 855func (m *UpdateOccurrenceRequest) XXX_Size() int { 856 return xxx_messageInfo_UpdateOccurrenceRequest.Size(m) 857} 858func (m *UpdateOccurrenceRequest) XXX_DiscardUnknown() { 859 xxx_messageInfo_UpdateOccurrenceRequest.DiscardUnknown(m) 860} 861 862var xxx_messageInfo_UpdateOccurrenceRequest proto.InternalMessageInfo 863 864func (m *UpdateOccurrenceRequest) GetName() string { 865 if m != nil { 866 return m.Name 867 } 868 return "" 869} 870 871func (m *UpdateOccurrenceRequest) GetOccurrence() *Occurrence { 872 if m != nil { 873 return m.Occurrence 874 } 875 return nil 876} 877 878func (m *UpdateOccurrenceRequest) GetUpdateMask() *field_mask.FieldMask { 879 if m != nil { 880 return m.UpdateMask 881 } 882 return nil 883} 884 885// Request to get a note. 886type GetNoteRequest struct { 887 // The name of the note in the form of 888 // `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. 889 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 890 XXX_NoUnkeyedLiteral struct{} `json:"-"` 891 XXX_unrecognized []byte `json:"-"` 892 XXX_sizecache int32 `json:"-"` 893} 894 895func (m *GetNoteRequest) Reset() { *m = GetNoteRequest{} } 896func (m *GetNoteRequest) String() string { return proto.CompactTextString(m) } 897func (*GetNoteRequest) ProtoMessage() {} 898func (*GetNoteRequest) Descriptor() ([]byte, []int) { 899 return fileDescriptor_5865e5de1898162a, []int{9} 900} 901 902func (m *GetNoteRequest) XXX_Unmarshal(b []byte) error { 903 return xxx_messageInfo_GetNoteRequest.Unmarshal(m, b) 904} 905func (m *GetNoteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 906 return xxx_messageInfo_GetNoteRequest.Marshal(b, m, deterministic) 907} 908func (m *GetNoteRequest) XXX_Merge(src proto.Message) { 909 xxx_messageInfo_GetNoteRequest.Merge(m, src) 910} 911func (m *GetNoteRequest) XXX_Size() int { 912 return xxx_messageInfo_GetNoteRequest.Size(m) 913} 914func (m *GetNoteRequest) XXX_DiscardUnknown() { 915 xxx_messageInfo_GetNoteRequest.DiscardUnknown(m) 916} 917 918var xxx_messageInfo_GetNoteRequest proto.InternalMessageInfo 919 920func (m *GetNoteRequest) GetName() string { 921 if m != nil { 922 return m.Name 923 } 924 return "" 925} 926 927// Request to get the note to which the specified occurrence is attached. 928type GetOccurrenceNoteRequest struct { 929 // The name of the occurrence in the form of 930 // `projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID]`. 931 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 932 XXX_NoUnkeyedLiteral struct{} `json:"-"` 933 XXX_unrecognized []byte `json:"-"` 934 XXX_sizecache int32 `json:"-"` 935} 936 937func (m *GetOccurrenceNoteRequest) Reset() { *m = GetOccurrenceNoteRequest{} } 938func (m *GetOccurrenceNoteRequest) String() string { return proto.CompactTextString(m) } 939func (*GetOccurrenceNoteRequest) ProtoMessage() {} 940func (*GetOccurrenceNoteRequest) Descriptor() ([]byte, []int) { 941 return fileDescriptor_5865e5de1898162a, []int{10} 942} 943 944func (m *GetOccurrenceNoteRequest) XXX_Unmarshal(b []byte) error { 945 return xxx_messageInfo_GetOccurrenceNoteRequest.Unmarshal(m, b) 946} 947func (m *GetOccurrenceNoteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 948 return xxx_messageInfo_GetOccurrenceNoteRequest.Marshal(b, m, deterministic) 949} 950func (m *GetOccurrenceNoteRequest) XXX_Merge(src proto.Message) { 951 xxx_messageInfo_GetOccurrenceNoteRequest.Merge(m, src) 952} 953func (m *GetOccurrenceNoteRequest) XXX_Size() int { 954 return xxx_messageInfo_GetOccurrenceNoteRequest.Size(m) 955} 956func (m *GetOccurrenceNoteRequest) XXX_DiscardUnknown() { 957 xxx_messageInfo_GetOccurrenceNoteRequest.DiscardUnknown(m) 958} 959 960var xxx_messageInfo_GetOccurrenceNoteRequest proto.InternalMessageInfo 961 962func (m *GetOccurrenceNoteRequest) GetName() string { 963 if m != nil { 964 return m.Name 965 } 966 return "" 967} 968 969// Request to list notes. 970type ListNotesRequest struct { 971 // The name of the project to list notes for in the form of 972 // `projects/[PROJECT_ID]`. 973 Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` 974 // The filter expression. 975 Filter string `protobuf:"bytes,2,opt,name=filter,proto3" json:"filter,omitempty"` 976 // Number of notes to return in the list. 977 PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` 978 // Token to provide to skip to a particular spot in the list. 979 PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` 980 XXX_NoUnkeyedLiteral struct{} `json:"-"` 981 XXX_unrecognized []byte `json:"-"` 982 XXX_sizecache int32 `json:"-"` 983} 984 985func (m *ListNotesRequest) Reset() { *m = ListNotesRequest{} } 986func (m *ListNotesRequest) String() string { return proto.CompactTextString(m) } 987func (*ListNotesRequest) ProtoMessage() {} 988func (*ListNotesRequest) Descriptor() ([]byte, []int) { 989 return fileDescriptor_5865e5de1898162a, []int{11} 990} 991 992func (m *ListNotesRequest) XXX_Unmarshal(b []byte) error { 993 return xxx_messageInfo_ListNotesRequest.Unmarshal(m, b) 994} 995func (m *ListNotesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 996 return xxx_messageInfo_ListNotesRequest.Marshal(b, m, deterministic) 997} 998func (m *ListNotesRequest) XXX_Merge(src proto.Message) { 999 xxx_messageInfo_ListNotesRequest.Merge(m, src) 1000} 1001func (m *ListNotesRequest) XXX_Size() int { 1002 return xxx_messageInfo_ListNotesRequest.Size(m) 1003} 1004func (m *ListNotesRequest) XXX_DiscardUnknown() { 1005 xxx_messageInfo_ListNotesRequest.DiscardUnknown(m) 1006} 1007 1008var xxx_messageInfo_ListNotesRequest proto.InternalMessageInfo 1009 1010func (m *ListNotesRequest) GetParent() string { 1011 if m != nil { 1012 return m.Parent 1013 } 1014 return "" 1015} 1016 1017func (m *ListNotesRequest) GetFilter() string { 1018 if m != nil { 1019 return m.Filter 1020 } 1021 return "" 1022} 1023 1024func (m *ListNotesRequest) GetPageSize() int32 { 1025 if m != nil { 1026 return m.PageSize 1027 } 1028 return 0 1029} 1030 1031func (m *ListNotesRequest) GetPageToken() string { 1032 if m != nil { 1033 return m.PageToken 1034 } 1035 return "" 1036} 1037 1038// Response for listing notes. 1039type ListNotesResponse struct { 1040 // The notes requested. 1041 Notes []*Note `protobuf:"bytes,1,rep,name=notes,proto3" json:"notes,omitempty"` 1042 // The next pagination token in the list response. It should be used as 1043 // `page_token` for the following request. An empty value means no more 1044 // results. 1045 NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` 1046 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1047 XXX_unrecognized []byte `json:"-"` 1048 XXX_sizecache int32 `json:"-"` 1049} 1050 1051func (m *ListNotesResponse) Reset() { *m = ListNotesResponse{} } 1052func (m *ListNotesResponse) String() string { return proto.CompactTextString(m) } 1053func (*ListNotesResponse) ProtoMessage() {} 1054func (*ListNotesResponse) Descriptor() ([]byte, []int) { 1055 return fileDescriptor_5865e5de1898162a, []int{12} 1056} 1057 1058func (m *ListNotesResponse) XXX_Unmarshal(b []byte) error { 1059 return xxx_messageInfo_ListNotesResponse.Unmarshal(m, b) 1060} 1061func (m *ListNotesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1062 return xxx_messageInfo_ListNotesResponse.Marshal(b, m, deterministic) 1063} 1064func (m *ListNotesResponse) XXX_Merge(src proto.Message) { 1065 xxx_messageInfo_ListNotesResponse.Merge(m, src) 1066} 1067func (m *ListNotesResponse) XXX_Size() int { 1068 return xxx_messageInfo_ListNotesResponse.Size(m) 1069} 1070func (m *ListNotesResponse) XXX_DiscardUnknown() { 1071 xxx_messageInfo_ListNotesResponse.DiscardUnknown(m) 1072} 1073 1074var xxx_messageInfo_ListNotesResponse proto.InternalMessageInfo 1075 1076func (m *ListNotesResponse) GetNotes() []*Note { 1077 if m != nil { 1078 return m.Notes 1079 } 1080 return nil 1081} 1082 1083func (m *ListNotesResponse) GetNextPageToken() string { 1084 if m != nil { 1085 return m.NextPageToken 1086 } 1087 return "" 1088} 1089 1090// Request to delete a note. 1091type DeleteNoteRequest struct { 1092 // The name of the note in the form of 1093 // `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. 1094 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 1095 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1096 XXX_unrecognized []byte `json:"-"` 1097 XXX_sizecache int32 `json:"-"` 1098} 1099 1100func (m *DeleteNoteRequest) Reset() { *m = DeleteNoteRequest{} } 1101func (m *DeleteNoteRequest) String() string { return proto.CompactTextString(m) } 1102func (*DeleteNoteRequest) ProtoMessage() {} 1103func (*DeleteNoteRequest) Descriptor() ([]byte, []int) { 1104 return fileDescriptor_5865e5de1898162a, []int{13} 1105} 1106 1107func (m *DeleteNoteRequest) XXX_Unmarshal(b []byte) error { 1108 return xxx_messageInfo_DeleteNoteRequest.Unmarshal(m, b) 1109} 1110func (m *DeleteNoteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1111 return xxx_messageInfo_DeleteNoteRequest.Marshal(b, m, deterministic) 1112} 1113func (m *DeleteNoteRequest) XXX_Merge(src proto.Message) { 1114 xxx_messageInfo_DeleteNoteRequest.Merge(m, src) 1115} 1116func (m *DeleteNoteRequest) XXX_Size() int { 1117 return xxx_messageInfo_DeleteNoteRequest.Size(m) 1118} 1119func (m *DeleteNoteRequest) XXX_DiscardUnknown() { 1120 xxx_messageInfo_DeleteNoteRequest.DiscardUnknown(m) 1121} 1122 1123var xxx_messageInfo_DeleteNoteRequest proto.InternalMessageInfo 1124 1125func (m *DeleteNoteRequest) GetName() string { 1126 if m != nil { 1127 return m.Name 1128 } 1129 return "" 1130} 1131 1132// Request to create a new note. 1133type CreateNoteRequest struct { 1134 // The name of the project in the form of `projects/[PROJECT_ID]`, under which 1135 // the note is to be created. 1136 Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` 1137 // The ID to use for this note. 1138 NoteId string `protobuf:"bytes,2,opt,name=note_id,json=noteId,proto3" json:"note_id,omitempty"` 1139 // The note to create. 1140 Note *Note `protobuf:"bytes,3,opt,name=note,proto3" json:"note,omitempty"` 1141 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1142 XXX_unrecognized []byte `json:"-"` 1143 XXX_sizecache int32 `json:"-"` 1144} 1145 1146func (m *CreateNoteRequest) Reset() { *m = CreateNoteRequest{} } 1147func (m *CreateNoteRequest) String() string { return proto.CompactTextString(m) } 1148func (*CreateNoteRequest) ProtoMessage() {} 1149func (*CreateNoteRequest) Descriptor() ([]byte, []int) { 1150 return fileDescriptor_5865e5de1898162a, []int{14} 1151} 1152 1153func (m *CreateNoteRequest) XXX_Unmarshal(b []byte) error { 1154 return xxx_messageInfo_CreateNoteRequest.Unmarshal(m, b) 1155} 1156func (m *CreateNoteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1157 return xxx_messageInfo_CreateNoteRequest.Marshal(b, m, deterministic) 1158} 1159func (m *CreateNoteRequest) XXX_Merge(src proto.Message) { 1160 xxx_messageInfo_CreateNoteRequest.Merge(m, src) 1161} 1162func (m *CreateNoteRequest) XXX_Size() int { 1163 return xxx_messageInfo_CreateNoteRequest.Size(m) 1164} 1165func (m *CreateNoteRequest) XXX_DiscardUnknown() { 1166 xxx_messageInfo_CreateNoteRequest.DiscardUnknown(m) 1167} 1168 1169var xxx_messageInfo_CreateNoteRequest proto.InternalMessageInfo 1170 1171func (m *CreateNoteRequest) GetParent() string { 1172 if m != nil { 1173 return m.Parent 1174 } 1175 return "" 1176} 1177 1178func (m *CreateNoteRequest) GetNoteId() string { 1179 if m != nil { 1180 return m.NoteId 1181 } 1182 return "" 1183} 1184 1185func (m *CreateNoteRequest) GetNote() *Note { 1186 if m != nil { 1187 return m.Note 1188 } 1189 return nil 1190} 1191 1192// Request to update a note. 1193type UpdateNoteRequest struct { 1194 // The name of the note in the form of 1195 // `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. 1196 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 1197 // The updated note. 1198 Note *Note `protobuf:"bytes,2,opt,name=note,proto3" json:"note,omitempty"` 1199 // The fields to update. 1200 UpdateMask *field_mask.FieldMask `protobuf:"bytes,3,opt,name=update_mask,json=updateMask,proto3" json:"update_mask,omitempty"` 1201 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1202 XXX_unrecognized []byte `json:"-"` 1203 XXX_sizecache int32 `json:"-"` 1204} 1205 1206func (m *UpdateNoteRequest) Reset() { *m = UpdateNoteRequest{} } 1207func (m *UpdateNoteRequest) String() string { return proto.CompactTextString(m) } 1208func (*UpdateNoteRequest) ProtoMessage() {} 1209func (*UpdateNoteRequest) Descriptor() ([]byte, []int) { 1210 return fileDescriptor_5865e5de1898162a, []int{15} 1211} 1212 1213func (m *UpdateNoteRequest) XXX_Unmarshal(b []byte) error { 1214 return xxx_messageInfo_UpdateNoteRequest.Unmarshal(m, b) 1215} 1216func (m *UpdateNoteRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1217 return xxx_messageInfo_UpdateNoteRequest.Marshal(b, m, deterministic) 1218} 1219func (m *UpdateNoteRequest) XXX_Merge(src proto.Message) { 1220 xxx_messageInfo_UpdateNoteRequest.Merge(m, src) 1221} 1222func (m *UpdateNoteRequest) XXX_Size() int { 1223 return xxx_messageInfo_UpdateNoteRequest.Size(m) 1224} 1225func (m *UpdateNoteRequest) XXX_DiscardUnknown() { 1226 xxx_messageInfo_UpdateNoteRequest.DiscardUnknown(m) 1227} 1228 1229var xxx_messageInfo_UpdateNoteRequest proto.InternalMessageInfo 1230 1231func (m *UpdateNoteRequest) GetName() string { 1232 if m != nil { 1233 return m.Name 1234 } 1235 return "" 1236} 1237 1238func (m *UpdateNoteRequest) GetNote() *Note { 1239 if m != nil { 1240 return m.Note 1241 } 1242 return nil 1243} 1244 1245func (m *UpdateNoteRequest) GetUpdateMask() *field_mask.FieldMask { 1246 if m != nil { 1247 return m.UpdateMask 1248 } 1249 return nil 1250} 1251 1252// Request to list occurrences for a note. 1253type ListNoteOccurrencesRequest struct { 1254 // The name of the note to list occurrences for in the form of 1255 // `projects/[PROVIDER_ID]/notes/[NOTE_ID]`. 1256 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 1257 // The filter expression. 1258 Filter string `protobuf:"bytes,2,opt,name=filter,proto3" json:"filter,omitempty"` 1259 // Number of occurrences to return in the list. 1260 PageSize int32 `protobuf:"varint,3,opt,name=page_size,json=pageSize,proto3" json:"page_size,omitempty"` 1261 // Token to provide to skip to a particular spot in the list. 1262 PageToken string `protobuf:"bytes,4,opt,name=page_token,json=pageToken,proto3" json:"page_token,omitempty"` 1263 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1264 XXX_unrecognized []byte `json:"-"` 1265 XXX_sizecache int32 `json:"-"` 1266} 1267 1268func (m *ListNoteOccurrencesRequest) Reset() { *m = ListNoteOccurrencesRequest{} } 1269func (m *ListNoteOccurrencesRequest) String() string { return proto.CompactTextString(m) } 1270func (*ListNoteOccurrencesRequest) ProtoMessage() {} 1271func (*ListNoteOccurrencesRequest) Descriptor() ([]byte, []int) { 1272 return fileDescriptor_5865e5de1898162a, []int{16} 1273} 1274 1275func (m *ListNoteOccurrencesRequest) XXX_Unmarshal(b []byte) error { 1276 return xxx_messageInfo_ListNoteOccurrencesRequest.Unmarshal(m, b) 1277} 1278func (m *ListNoteOccurrencesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1279 return xxx_messageInfo_ListNoteOccurrencesRequest.Marshal(b, m, deterministic) 1280} 1281func (m *ListNoteOccurrencesRequest) XXX_Merge(src proto.Message) { 1282 xxx_messageInfo_ListNoteOccurrencesRequest.Merge(m, src) 1283} 1284func (m *ListNoteOccurrencesRequest) XXX_Size() int { 1285 return xxx_messageInfo_ListNoteOccurrencesRequest.Size(m) 1286} 1287func (m *ListNoteOccurrencesRequest) XXX_DiscardUnknown() { 1288 xxx_messageInfo_ListNoteOccurrencesRequest.DiscardUnknown(m) 1289} 1290 1291var xxx_messageInfo_ListNoteOccurrencesRequest proto.InternalMessageInfo 1292 1293func (m *ListNoteOccurrencesRequest) GetName() string { 1294 if m != nil { 1295 return m.Name 1296 } 1297 return "" 1298} 1299 1300func (m *ListNoteOccurrencesRequest) GetFilter() string { 1301 if m != nil { 1302 return m.Filter 1303 } 1304 return "" 1305} 1306 1307func (m *ListNoteOccurrencesRequest) GetPageSize() int32 { 1308 if m != nil { 1309 return m.PageSize 1310 } 1311 return 0 1312} 1313 1314func (m *ListNoteOccurrencesRequest) GetPageToken() string { 1315 if m != nil { 1316 return m.PageToken 1317 } 1318 return "" 1319} 1320 1321// Response for listing occurrences for a note. 1322type ListNoteOccurrencesResponse struct { 1323 // The occurrences attached to the specified note. 1324 Occurrences []*Occurrence `protobuf:"bytes,1,rep,name=occurrences,proto3" json:"occurrences,omitempty"` 1325 // Token to provide to skip to a particular spot in the list. 1326 NextPageToken string `protobuf:"bytes,2,opt,name=next_page_token,json=nextPageToken,proto3" json:"next_page_token,omitempty"` 1327 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1328 XXX_unrecognized []byte `json:"-"` 1329 XXX_sizecache int32 `json:"-"` 1330} 1331 1332func (m *ListNoteOccurrencesResponse) Reset() { *m = ListNoteOccurrencesResponse{} } 1333func (m *ListNoteOccurrencesResponse) String() string { return proto.CompactTextString(m) } 1334func (*ListNoteOccurrencesResponse) ProtoMessage() {} 1335func (*ListNoteOccurrencesResponse) Descriptor() ([]byte, []int) { 1336 return fileDescriptor_5865e5de1898162a, []int{17} 1337} 1338 1339func (m *ListNoteOccurrencesResponse) XXX_Unmarshal(b []byte) error { 1340 return xxx_messageInfo_ListNoteOccurrencesResponse.Unmarshal(m, b) 1341} 1342func (m *ListNoteOccurrencesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1343 return xxx_messageInfo_ListNoteOccurrencesResponse.Marshal(b, m, deterministic) 1344} 1345func (m *ListNoteOccurrencesResponse) XXX_Merge(src proto.Message) { 1346 xxx_messageInfo_ListNoteOccurrencesResponse.Merge(m, src) 1347} 1348func (m *ListNoteOccurrencesResponse) XXX_Size() int { 1349 return xxx_messageInfo_ListNoteOccurrencesResponse.Size(m) 1350} 1351func (m *ListNoteOccurrencesResponse) XXX_DiscardUnknown() { 1352 xxx_messageInfo_ListNoteOccurrencesResponse.DiscardUnknown(m) 1353} 1354 1355var xxx_messageInfo_ListNoteOccurrencesResponse proto.InternalMessageInfo 1356 1357func (m *ListNoteOccurrencesResponse) GetOccurrences() []*Occurrence { 1358 if m != nil { 1359 return m.Occurrences 1360 } 1361 return nil 1362} 1363 1364func (m *ListNoteOccurrencesResponse) GetNextPageToken() string { 1365 if m != nil { 1366 return m.NextPageToken 1367 } 1368 return "" 1369} 1370 1371// Request to create notes in batch. 1372type BatchCreateNotesRequest struct { 1373 // The name of the project in the form of `projects/[PROJECT_ID]`, under which 1374 // the notes are to be created. 1375 Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` 1376 // The notes to create. 1377 Notes map[string]*Note `protobuf:"bytes,2,rep,name=notes,proto3" json:"notes,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"` 1378 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1379 XXX_unrecognized []byte `json:"-"` 1380 XXX_sizecache int32 `json:"-"` 1381} 1382 1383func (m *BatchCreateNotesRequest) Reset() { *m = BatchCreateNotesRequest{} } 1384func (m *BatchCreateNotesRequest) String() string { return proto.CompactTextString(m) } 1385func (*BatchCreateNotesRequest) ProtoMessage() {} 1386func (*BatchCreateNotesRequest) Descriptor() ([]byte, []int) { 1387 return fileDescriptor_5865e5de1898162a, []int{18} 1388} 1389 1390func (m *BatchCreateNotesRequest) XXX_Unmarshal(b []byte) error { 1391 return xxx_messageInfo_BatchCreateNotesRequest.Unmarshal(m, b) 1392} 1393func (m *BatchCreateNotesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1394 return xxx_messageInfo_BatchCreateNotesRequest.Marshal(b, m, deterministic) 1395} 1396func (m *BatchCreateNotesRequest) XXX_Merge(src proto.Message) { 1397 xxx_messageInfo_BatchCreateNotesRequest.Merge(m, src) 1398} 1399func (m *BatchCreateNotesRequest) XXX_Size() int { 1400 return xxx_messageInfo_BatchCreateNotesRequest.Size(m) 1401} 1402func (m *BatchCreateNotesRequest) XXX_DiscardUnknown() { 1403 xxx_messageInfo_BatchCreateNotesRequest.DiscardUnknown(m) 1404} 1405 1406var xxx_messageInfo_BatchCreateNotesRequest proto.InternalMessageInfo 1407 1408func (m *BatchCreateNotesRequest) GetParent() string { 1409 if m != nil { 1410 return m.Parent 1411 } 1412 return "" 1413} 1414 1415func (m *BatchCreateNotesRequest) GetNotes() map[string]*Note { 1416 if m != nil { 1417 return m.Notes 1418 } 1419 return nil 1420} 1421 1422// Response for creating notes in batch. 1423type BatchCreateNotesResponse struct { 1424 // The notes that were created. 1425 Notes []*Note `protobuf:"bytes,1,rep,name=notes,proto3" json:"notes,omitempty"` 1426 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1427 XXX_unrecognized []byte `json:"-"` 1428 XXX_sizecache int32 `json:"-"` 1429} 1430 1431func (m *BatchCreateNotesResponse) Reset() { *m = BatchCreateNotesResponse{} } 1432func (m *BatchCreateNotesResponse) String() string { return proto.CompactTextString(m) } 1433func (*BatchCreateNotesResponse) ProtoMessage() {} 1434func (*BatchCreateNotesResponse) Descriptor() ([]byte, []int) { 1435 return fileDescriptor_5865e5de1898162a, []int{19} 1436} 1437 1438func (m *BatchCreateNotesResponse) XXX_Unmarshal(b []byte) error { 1439 return xxx_messageInfo_BatchCreateNotesResponse.Unmarshal(m, b) 1440} 1441func (m *BatchCreateNotesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1442 return xxx_messageInfo_BatchCreateNotesResponse.Marshal(b, m, deterministic) 1443} 1444func (m *BatchCreateNotesResponse) XXX_Merge(src proto.Message) { 1445 xxx_messageInfo_BatchCreateNotesResponse.Merge(m, src) 1446} 1447func (m *BatchCreateNotesResponse) XXX_Size() int { 1448 return xxx_messageInfo_BatchCreateNotesResponse.Size(m) 1449} 1450func (m *BatchCreateNotesResponse) XXX_DiscardUnknown() { 1451 xxx_messageInfo_BatchCreateNotesResponse.DiscardUnknown(m) 1452} 1453 1454var xxx_messageInfo_BatchCreateNotesResponse proto.InternalMessageInfo 1455 1456func (m *BatchCreateNotesResponse) GetNotes() []*Note { 1457 if m != nil { 1458 return m.Notes 1459 } 1460 return nil 1461} 1462 1463// Request to create occurrences in batch. 1464type BatchCreateOccurrencesRequest struct { 1465 // The name of the project in the form of `projects/[PROJECT_ID]`, under which 1466 // the occurrences are to be created. 1467 Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` 1468 // The occurrences to create. 1469 Occurrences []*Occurrence `protobuf:"bytes,2,rep,name=occurrences,proto3" json:"occurrences,omitempty"` 1470 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1471 XXX_unrecognized []byte `json:"-"` 1472 XXX_sizecache int32 `json:"-"` 1473} 1474 1475func (m *BatchCreateOccurrencesRequest) Reset() { *m = BatchCreateOccurrencesRequest{} } 1476func (m *BatchCreateOccurrencesRequest) String() string { return proto.CompactTextString(m) } 1477func (*BatchCreateOccurrencesRequest) ProtoMessage() {} 1478func (*BatchCreateOccurrencesRequest) Descriptor() ([]byte, []int) { 1479 return fileDescriptor_5865e5de1898162a, []int{20} 1480} 1481 1482func (m *BatchCreateOccurrencesRequest) XXX_Unmarshal(b []byte) error { 1483 return xxx_messageInfo_BatchCreateOccurrencesRequest.Unmarshal(m, b) 1484} 1485func (m *BatchCreateOccurrencesRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1486 return xxx_messageInfo_BatchCreateOccurrencesRequest.Marshal(b, m, deterministic) 1487} 1488func (m *BatchCreateOccurrencesRequest) XXX_Merge(src proto.Message) { 1489 xxx_messageInfo_BatchCreateOccurrencesRequest.Merge(m, src) 1490} 1491func (m *BatchCreateOccurrencesRequest) XXX_Size() int { 1492 return xxx_messageInfo_BatchCreateOccurrencesRequest.Size(m) 1493} 1494func (m *BatchCreateOccurrencesRequest) XXX_DiscardUnknown() { 1495 xxx_messageInfo_BatchCreateOccurrencesRequest.DiscardUnknown(m) 1496} 1497 1498var xxx_messageInfo_BatchCreateOccurrencesRequest proto.InternalMessageInfo 1499 1500func (m *BatchCreateOccurrencesRequest) GetParent() string { 1501 if m != nil { 1502 return m.Parent 1503 } 1504 return "" 1505} 1506 1507func (m *BatchCreateOccurrencesRequest) GetOccurrences() []*Occurrence { 1508 if m != nil { 1509 return m.Occurrences 1510 } 1511 return nil 1512} 1513 1514// Response for creating occurrences in batch. 1515type BatchCreateOccurrencesResponse struct { 1516 // The occurrences that were created. 1517 Occurrences []*Occurrence `protobuf:"bytes,1,rep,name=occurrences,proto3" json:"occurrences,omitempty"` 1518 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1519 XXX_unrecognized []byte `json:"-"` 1520 XXX_sizecache int32 `json:"-"` 1521} 1522 1523func (m *BatchCreateOccurrencesResponse) Reset() { *m = BatchCreateOccurrencesResponse{} } 1524func (m *BatchCreateOccurrencesResponse) String() string { return proto.CompactTextString(m) } 1525func (*BatchCreateOccurrencesResponse) ProtoMessage() {} 1526func (*BatchCreateOccurrencesResponse) Descriptor() ([]byte, []int) { 1527 return fileDescriptor_5865e5de1898162a, []int{21} 1528} 1529 1530func (m *BatchCreateOccurrencesResponse) XXX_Unmarshal(b []byte) error { 1531 return xxx_messageInfo_BatchCreateOccurrencesResponse.Unmarshal(m, b) 1532} 1533func (m *BatchCreateOccurrencesResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1534 return xxx_messageInfo_BatchCreateOccurrencesResponse.Marshal(b, m, deterministic) 1535} 1536func (m *BatchCreateOccurrencesResponse) XXX_Merge(src proto.Message) { 1537 xxx_messageInfo_BatchCreateOccurrencesResponse.Merge(m, src) 1538} 1539func (m *BatchCreateOccurrencesResponse) XXX_Size() int { 1540 return xxx_messageInfo_BatchCreateOccurrencesResponse.Size(m) 1541} 1542func (m *BatchCreateOccurrencesResponse) XXX_DiscardUnknown() { 1543 xxx_messageInfo_BatchCreateOccurrencesResponse.DiscardUnknown(m) 1544} 1545 1546var xxx_messageInfo_BatchCreateOccurrencesResponse proto.InternalMessageInfo 1547 1548func (m *BatchCreateOccurrencesResponse) GetOccurrences() []*Occurrence { 1549 if m != nil { 1550 return m.Occurrences 1551 } 1552 return nil 1553} 1554 1555// Request to get a vulnerability summary for some set of occurrences. 1556type GetVulnerabilityOccurrencesSummaryRequest struct { 1557 // The name of the project to get a vulnerability summary for in the form of 1558 // `projects/[PROJECT_ID]`. 1559 Parent string `protobuf:"bytes,1,opt,name=parent,proto3" json:"parent,omitempty"` 1560 // The filter expression. 1561 Filter string `protobuf:"bytes,2,opt,name=filter,proto3" json:"filter,omitempty"` 1562 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1563 XXX_unrecognized []byte `json:"-"` 1564 XXX_sizecache int32 `json:"-"` 1565} 1566 1567func (m *GetVulnerabilityOccurrencesSummaryRequest) Reset() { 1568 *m = GetVulnerabilityOccurrencesSummaryRequest{} 1569} 1570func (m *GetVulnerabilityOccurrencesSummaryRequest) String() string { return proto.CompactTextString(m) } 1571func (*GetVulnerabilityOccurrencesSummaryRequest) ProtoMessage() {} 1572func (*GetVulnerabilityOccurrencesSummaryRequest) Descriptor() ([]byte, []int) { 1573 return fileDescriptor_5865e5de1898162a, []int{22} 1574} 1575 1576func (m *GetVulnerabilityOccurrencesSummaryRequest) XXX_Unmarshal(b []byte) error { 1577 return xxx_messageInfo_GetVulnerabilityOccurrencesSummaryRequest.Unmarshal(m, b) 1578} 1579func (m *GetVulnerabilityOccurrencesSummaryRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1580 return xxx_messageInfo_GetVulnerabilityOccurrencesSummaryRequest.Marshal(b, m, deterministic) 1581} 1582func (m *GetVulnerabilityOccurrencesSummaryRequest) XXX_Merge(src proto.Message) { 1583 xxx_messageInfo_GetVulnerabilityOccurrencesSummaryRequest.Merge(m, src) 1584} 1585func (m *GetVulnerabilityOccurrencesSummaryRequest) XXX_Size() int { 1586 return xxx_messageInfo_GetVulnerabilityOccurrencesSummaryRequest.Size(m) 1587} 1588func (m *GetVulnerabilityOccurrencesSummaryRequest) XXX_DiscardUnknown() { 1589 xxx_messageInfo_GetVulnerabilityOccurrencesSummaryRequest.DiscardUnknown(m) 1590} 1591 1592var xxx_messageInfo_GetVulnerabilityOccurrencesSummaryRequest proto.InternalMessageInfo 1593 1594func (m *GetVulnerabilityOccurrencesSummaryRequest) GetParent() string { 1595 if m != nil { 1596 return m.Parent 1597 } 1598 return "" 1599} 1600 1601func (m *GetVulnerabilityOccurrencesSummaryRequest) GetFilter() string { 1602 if m != nil { 1603 return m.Filter 1604 } 1605 return "" 1606} 1607 1608// A summary of how many vulnerability occurrences there are per resource and 1609// severity type. 1610type VulnerabilityOccurrencesSummary struct { 1611 // A listing by resource of the number of fixable and total vulnerabilities. 1612 Counts []*VulnerabilityOccurrencesSummary_FixableTotalByDigest `protobuf:"bytes,1,rep,name=counts,proto3" json:"counts,omitempty"` 1613 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1614 XXX_unrecognized []byte `json:"-"` 1615 XXX_sizecache int32 `json:"-"` 1616} 1617 1618func (m *VulnerabilityOccurrencesSummary) Reset() { *m = VulnerabilityOccurrencesSummary{} } 1619func (m *VulnerabilityOccurrencesSummary) String() string { return proto.CompactTextString(m) } 1620func (*VulnerabilityOccurrencesSummary) ProtoMessage() {} 1621func (*VulnerabilityOccurrencesSummary) Descriptor() ([]byte, []int) { 1622 return fileDescriptor_5865e5de1898162a, []int{23} 1623} 1624 1625func (m *VulnerabilityOccurrencesSummary) XXX_Unmarshal(b []byte) error { 1626 return xxx_messageInfo_VulnerabilityOccurrencesSummary.Unmarshal(m, b) 1627} 1628func (m *VulnerabilityOccurrencesSummary) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1629 return xxx_messageInfo_VulnerabilityOccurrencesSummary.Marshal(b, m, deterministic) 1630} 1631func (m *VulnerabilityOccurrencesSummary) XXX_Merge(src proto.Message) { 1632 xxx_messageInfo_VulnerabilityOccurrencesSummary.Merge(m, src) 1633} 1634func (m *VulnerabilityOccurrencesSummary) XXX_Size() int { 1635 return xxx_messageInfo_VulnerabilityOccurrencesSummary.Size(m) 1636} 1637func (m *VulnerabilityOccurrencesSummary) XXX_DiscardUnknown() { 1638 xxx_messageInfo_VulnerabilityOccurrencesSummary.DiscardUnknown(m) 1639} 1640 1641var xxx_messageInfo_VulnerabilityOccurrencesSummary proto.InternalMessageInfo 1642 1643func (m *VulnerabilityOccurrencesSummary) GetCounts() []*VulnerabilityOccurrencesSummary_FixableTotalByDigest { 1644 if m != nil { 1645 return m.Counts 1646 } 1647 return nil 1648} 1649 1650// Per resource and severity counts of fixable and total vulnerabilites. 1651type VulnerabilityOccurrencesSummary_FixableTotalByDigest struct { 1652 // The affected resource. 1653 Resource *Resource `protobuf:"bytes,1,opt,name=resource,proto3" json:"resource,omitempty"` 1654 // The severity for this count. SEVERITY_UNSPECIFIED indicates total across 1655 // all severities. 1656 Severity vulnerability.Severity `protobuf:"varint,2,opt,name=severity,proto3,enum=grafeas.v1beta1.vulnerability.Severity" json:"severity,omitempty"` 1657 // The number of fixable vulnerabilities associated with this resource. 1658 FixableCount int64 `protobuf:"varint,3,opt,name=fixable_count,json=fixableCount,proto3" json:"fixable_count,omitempty"` 1659 // The total number of vulnerabilities associated with this resource. 1660 TotalCount int64 `protobuf:"varint,4,opt,name=total_count,json=totalCount,proto3" json:"total_count,omitempty"` 1661 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1662 XXX_unrecognized []byte `json:"-"` 1663 XXX_sizecache int32 `json:"-"` 1664} 1665 1666func (m *VulnerabilityOccurrencesSummary_FixableTotalByDigest) Reset() { 1667 *m = VulnerabilityOccurrencesSummary_FixableTotalByDigest{} 1668} 1669func (m *VulnerabilityOccurrencesSummary_FixableTotalByDigest) String() string { 1670 return proto.CompactTextString(m) 1671} 1672func (*VulnerabilityOccurrencesSummary_FixableTotalByDigest) ProtoMessage() {} 1673func (*VulnerabilityOccurrencesSummary_FixableTotalByDigest) Descriptor() ([]byte, []int) { 1674 return fileDescriptor_5865e5de1898162a, []int{23, 0} 1675} 1676 1677func (m *VulnerabilityOccurrencesSummary_FixableTotalByDigest) XXX_Unmarshal(b []byte) error { 1678 return xxx_messageInfo_VulnerabilityOccurrencesSummary_FixableTotalByDigest.Unmarshal(m, b) 1679} 1680func (m *VulnerabilityOccurrencesSummary_FixableTotalByDigest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1681 return xxx_messageInfo_VulnerabilityOccurrencesSummary_FixableTotalByDigest.Marshal(b, m, deterministic) 1682} 1683func (m *VulnerabilityOccurrencesSummary_FixableTotalByDigest) XXX_Merge(src proto.Message) { 1684 xxx_messageInfo_VulnerabilityOccurrencesSummary_FixableTotalByDigest.Merge(m, src) 1685} 1686func (m *VulnerabilityOccurrencesSummary_FixableTotalByDigest) XXX_Size() int { 1687 return xxx_messageInfo_VulnerabilityOccurrencesSummary_FixableTotalByDigest.Size(m) 1688} 1689func (m *VulnerabilityOccurrencesSummary_FixableTotalByDigest) XXX_DiscardUnknown() { 1690 xxx_messageInfo_VulnerabilityOccurrencesSummary_FixableTotalByDigest.DiscardUnknown(m) 1691} 1692 1693var xxx_messageInfo_VulnerabilityOccurrencesSummary_FixableTotalByDigest proto.InternalMessageInfo 1694 1695func (m *VulnerabilityOccurrencesSummary_FixableTotalByDigest) GetResource() *Resource { 1696 if m != nil { 1697 return m.Resource 1698 } 1699 return nil 1700} 1701 1702func (m *VulnerabilityOccurrencesSummary_FixableTotalByDigest) GetSeverity() vulnerability.Severity { 1703 if m != nil { 1704 return m.Severity 1705 } 1706 return vulnerability.Severity_SEVERITY_UNSPECIFIED 1707} 1708 1709func (m *VulnerabilityOccurrencesSummary_FixableTotalByDigest) GetFixableCount() int64 { 1710 if m != nil { 1711 return m.FixableCount 1712 } 1713 return 0 1714} 1715 1716func (m *VulnerabilityOccurrencesSummary_FixableTotalByDigest) GetTotalCount() int64 { 1717 if m != nil { 1718 return m.TotalCount 1719 } 1720 return 0 1721} 1722 1723func init() { 1724 proto.RegisterType((*Occurrence)(nil), "grafeas.v1beta1.Occurrence") 1725 proto.RegisterType((*Resource)(nil), "grafeas.v1beta1.Resource") 1726 proto.RegisterType((*Note)(nil), "grafeas.v1beta1.Note") 1727 proto.RegisterType((*GetOccurrenceRequest)(nil), "grafeas.v1beta1.GetOccurrenceRequest") 1728 proto.RegisterType((*ListOccurrencesRequest)(nil), "grafeas.v1beta1.ListOccurrencesRequest") 1729 proto.RegisterType((*ListOccurrencesResponse)(nil), "grafeas.v1beta1.ListOccurrencesResponse") 1730 proto.RegisterType((*DeleteOccurrenceRequest)(nil), "grafeas.v1beta1.DeleteOccurrenceRequest") 1731 proto.RegisterType((*CreateOccurrenceRequest)(nil), "grafeas.v1beta1.CreateOccurrenceRequest") 1732 proto.RegisterType((*UpdateOccurrenceRequest)(nil), "grafeas.v1beta1.UpdateOccurrenceRequest") 1733 proto.RegisterType((*GetNoteRequest)(nil), "grafeas.v1beta1.GetNoteRequest") 1734 proto.RegisterType((*GetOccurrenceNoteRequest)(nil), "grafeas.v1beta1.GetOccurrenceNoteRequest") 1735 proto.RegisterType((*ListNotesRequest)(nil), "grafeas.v1beta1.ListNotesRequest") 1736 proto.RegisterType((*ListNotesResponse)(nil), "grafeas.v1beta1.ListNotesResponse") 1737 proto.RegisterType((*DeleteNoteRequest)(nil), "grafeas.v1beta1.DeleteNoteRequest") 1738 proto.RegisterType((*CreateNoteRequest)(nil), "grafeas.v1beta1.CreateNoteRequest") 1739 proto.RegisterType((*UpdateNoteRequest)(nil), "grafeas.v1beta1.UpdateNoteRequest") 1740 proto.RegisterType((*ListNoteOccurrencesRequest)(nil), "grafeas.v1beta1.ListNoteOccurrencesRequest") 1741 proto.RegisterType((*ListNoteOccurrencesResponse)(nil), "grafeas.v1beta1.ListNoteOccurrencesResponse") 1742 proto.RegisterType((*BatchCreateNotesRequest)(nil), "grafeas.v1beta1.BatchCreateNotesRequest") 1743 proto.RegisterMapType((map[string]*Note)(nil), "grafeas.v1beta1.BatchCreateNotesRequest.NotesEntry") 1744 proto.RegisterType((*BatchCreateNotesResponse)(nil), "grafeas.v1beta1.BatchCreateNotesResponse") 1745 proto.RegisterType((*BatchCreateOccurrencesRequest)(nil), "grafeas.v1beta1.BatchCreateOccurrencesRequest") 1746 proto.RegisterType((*BatchCreateOccurrencesResponse)(nil), "grafeas.v1beta1.BatchCreateOccurrencesResponse") 1747 proto.RegisterType((*GetVulnerabilityOccurrencesSummaryRequest)(nil), "grafeas.v1beta1.GetVulnerabilityOccurrencesSummaryRequest") 1748 proto.RegisterType((*VulnerabilityOccurrencesSummary)(nil), "grafeas.v1beta1.VulnerabilityOccurrencesSummary") 1749 proto.RegisterType((*VulnerabilityOccurrencesSummary_FixableTotalByDigest)(nil), "grafeas.v1beta1.VulnerabilityOccurrencesSummary.FixableTotalByDigest") 1750} 1751 1752func init() { 1753 proto.RegisterFile("google/devtools/containeranalysis/v1beta1/grafeas/grafeas.proto", fileDescriptor_5865e5de1898162a) 1754} 1755 1756var fileDescriptor_5865e5de1898162a = []byte{ 1757 // 1920 bytes of a gzipped FileDescriptorProto 1758 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xc4, 0x59, 0xcd, 0x6f, 0x1b, 0xc7, 1759 0x15, 0xf7, 0x52, 0x9f, 0x7c, 0xd4, 0x07, 0x35, 0x75, 0xac, 0x2d, 0x9d, 0xc4, 0xec, 0xc6, 0x75, 1760 0x24, 0xda, 0x21, 0x6d, 0x39, 0x35, 0x1a, 0xd9, 0x82, 0x11, 0x4a, 0xb2, 0x64, 0xa4, 0x75, 0x8c, 1761 0xb5, 0x12, 0x14, 0x2d, 0x02, 0x62, 0xc8, 0x1d, 0x51, 0x5b, 0x2d, 0x77, 0xb7, 0xbb, 0x43, 0xc2, 1762 0x4c, 0x91, 0xa0, 0x28, 0xdc, 0xde, 0x8a, 0x1e, 0x0a, 0xb4, 0xf7, 0x5c, 0xda, 0x3f, 0xa1, 0xe8, 1763 0xb1, 0xe7, 0xf6, 0xd4, 0x4b, 0x8b, 0x5e, 0xfb, 0x87, 0x14, 0xf3, 0xb1, 0xdc, 0x21, 0x77, 0x97, 1764 0x5c, 0xc6, 0xfd, 0xb8, 0x88, 0xb3, 0xb3, 0xef, 0xfd, 0xe6, 0xcd, 0x9b, 0xf7, 0xfb, 0xcd, 0x23, 1765 0x05, 0x8f, 0xbb, 0x9e, 0xd7, 0x75, 0x48, 0xc3, 0x22, 0x03, 0xea, 0x79, 0x4e, 0xd8, 0xe8, 0x78, 1766 0x2e, 0xc5, 0xb6, 0x4b, 0x02, 0xec, 0x62, 0x67, 0x18, 0xda, 0x61, 0x63, 0x70, 0xaf, 0x4d, 0x28, 1767 0xbe, 0xd7, 0xe8, 0x06, 0xf8, 0x9c, 0xe0, 0x30, 0xfa, 0xac, 0xfb, 0x81, 0x47, 0x3d, 0xb4, 0x19, 1768 0x3d, 0x4a, 0xb3, 0xca, 0x9b, 0x12, 0x11, 0xfb, 0x76, 0x03, 0xbb, 0xae, 0x47, 0x31, 0xb5, 0x3d, 1769 0x57, 0x9a, 0x57, 0x4e, 0xf2, 0xaf, 0x87, 0x29, 0x25, 0xa1, 0xf0, 0x56, 0xc7, 0x12, 0xe8, 0x61, 1770 0x7e, 0xa0, 0x76, 0xdf, 0x76, 0x2c, 0xf1, 0x57, 0x3a, 0x1f, 0xe4, 0x77, 0xee, 0x78, 0xbd, 0x9e, 1771 0xe7, 0xca, 0x0f, 0xe9, 0x7e, 0x9c, 0xdf, 0xdd, 0x22, 0xbe, 0xe3, 0x0d, 0x7b, 0xc4, 0xa5, 0xca, 1772 0x50, 0xc2, 0x1c, 0xce, 0x01, 0x63, 0x87, 0x1d, 0x6f, 0x40, 0x82, 0x61, 0x3c, 0x9a, 0x3f, 0x0f, 1773 0x76, 0x0f, 0x77, 0x89, 0xf8, 0x2b, 0x9d, 0xe7, 0x38, 0x7d, 0x1f, 0x77, 0x2e, 0x99, 0xbb, 0xfc, 1774 0x9c, 0x3f, 0x13, 0x7e, 0xe0, 0x0d, 0x88, 0x8b, 0xdd, 0x0e, 0x51, 0x86, 0x12, 0xe6, 0xa3, 0xfc, 1775 0x30, 0x83, 0xbe, 0xc3, 0xa6, 0xdb, 0xb6, 0x63, 0xd3, 0xe1, 0xf8, 0x93, 0x04, 0xbb, 0x2e, 0xc1, 1776 0xf8, 0x53, 0xbb, 0x7f, 0xde, 0x20, 0x3d, 0x7f, 0xf4, 0xb2, 0x3a, 0xf9, 0xf2, 0xdc, 0x26, 0x8e, 1777 0xd5, 0xea, 0xe1, 0xf0, 0x52, 0x5a, 0xdc, 0x98, 0xb4, 0xa0, 0x76, 0x8f, 0xd5, 0x5e, 0xcf, 0x17, 1778 0x06, 0xc6, 0x1f, 0x97, 0x01, 0x3e, 0xee, 0x74, 0xfa, 0x41, 0x40, 0xdc, 0x0e, 0x41, 0x08, 0x16, 1779 0x5d, 0xdc, 0x23, 0xba, 0x56, 0xd5, 0x76, 0x8a, 0x26, 0x1f, 0xa3, 0xef, 0xc0, 0x6a, 0x40, 0x42, 1780 0xaf, 0x1f, 0x74, 0x88, 0x5e, 0xa8, 0x6a, 0x3b, 0xa5, 0xbd, 0x6f, 0xd6, 0x27, 0x78, 0x52, 0x37, 1781 0xa5, 0x81, 0x39, 0x32, 0x45, 0xd7, 0xa1, 0xe8, 0x7a, 0x94, 0xb4, 0x38, 0xde, 0x02, 0xc7, 0x5b, 1782 0x65, 0x13, 0xcf, 0x18, 0xe6, 0x7b, 0xb0, 0x78, 0x69, 0xbb, 0x96, 0xbe, 0x58, 0xd5, 0x76, 0x36, 1783 0x52, 0xf0, 0x9e, 0x79, 0x94, 0x7c, 0x64, 0xbb, 0x96, 0xc9, 0xcd, 0x50, 0x15, 0x4a, 0x01, 0xe9, 1784 0x11, 0xcb, 0xe6, 0xa4, 0xd1, 0x97, 0x38, 0x9a, 0x3a, 0x85, 0x1e, 0x42, 0xa9, 0x13, 0x10, 0x4c, 1785 0x49, 0x8b, 0xed, 0x50, 0x5f, 0xe6, 0x71, 0x56, 0xea, 0x62, 0xfb, 0xf5, 0x68, 0xfb, 0xf5, 0xb3, 1786 0x68, 0xfb, 0x26, 0x08, 0x73, 0x36, 0xc1, 0x9c, 0xfb, 0xbe, 0x35, 0x72, 0x5e, 0x99, 0xed, 0x2c, 1787 0xcc, 0xb9, 0xf3, 0x33, 0x58, 0x1f, 0x3b, 0x38, 0x7d, 0x95, 0xbb, 0xdf, 0x4a, 0xec, 0x69, 0xfc, 1788 0x78, 0x8f, 0x08, 0xc5, 0xb6, 0x13, 0x9e, 0x5e, 0x31, 0xc7, 0xdd, 0xd1, 0x03, 0x58, 0xe2, 0xec, 1789 0xd6, 0x8b, 0x1c, 0xe7, 0xed, 0x04, 0x8e, 0xe0, 0x7e, 0xec, 0x2f, 0xcc, 0xd1, 0x31, 0xac, 0x5b, 1790 0x24, 0xb0, 0x07, 0xc4, 0x6a, 0x71, 0x56, 0xe8, 0x90, 0xe1, 0x2f, 0x38, 0x13, 0xfb, 0xaf, 0x49, 1791 0xb7, 0xa7, 0x6c, 0x1e, 0x3d, 0x81, 0x35, 0xdb, 0x0d, 0x29, 0x76, 0x1c, 0x91, 0xeb, 0x12, 0x47, 1792 0xa9, 0x26, 0x50, 0x22, 0xea, 0x28, 0x38, 0xaa, 0x1f, 0x3a, 0x06, 0x88, 0x35, 0x42, 0x5f, 0xe3, 1793 0x28, 0xef, 0x24, 0x50, 0x14, 0x19, 0x89, 0x81, 0x14, 0x47, 0x74, 0x04, 0x10, 0x89, 0x04, 0xb1, 1794 0xf4, 0x75, 0x0e, 0x63, 0x24, 0x61, 0x46, 0x3a, 0xa2, 0xa2, 0x8c, 0xfc, 0xd0, 0x29, 0x94, 0x14, 1795 0xd1, 0xd5, 0x37, 0x38, 0xcc, 0xcd, 0x04, 0x8c, 0x2a, 0xcc, 0x31, 0x90, 0xea, 0xda, 0x2c, 0xc2, 1796 0x8a, 0x25, 0xde, 0x18, 0x7d, 0x58, 0x8d, 0xca, 0x3e, 0x95, 0x37, 0x65, 0x58, 0xe8, 0x07, 0x36, 1797 0xa7, 0x4c, 0xd1, 0x64, 0x43, 0x74, 0x08, 0x6b, 0x4c, 0x0b, 0x88, 0x4b, 0x5b, 0x17, 0x38, 0xbc, 1798 0xe0, 0xac, 0x48, 0xcd, 0x6d, 0x2c, 0x29, 0xa7, 0x38, 0xbc, 0x30, 0x4b, 0xd2, 0x8b, 0x3d, 0x18, 1799 0x7f, 0x59, 0x81, 0x45, 0x46, 0x8f, 0xd4, 0x35, 0x6f, 0xc3, 0x56, 0x78, 0xe1, 0x05, 0xb4, 0x65, 1800 0x91, 0xb0, 0x13, 0xd8, 0x3e, 0xdf, 0xae, 0x88, 0xa0, 0xcc, 0x5f, 0x1c, 0xc5, 0xf3, 0x68, 0x17, 1801 0xca, 0x8e, 0xe7, 0x76, 0xc7, 0x6c, 0x05, 0x51, 0x37, 0xd9, 0xbc, 0x6a, 0x3a, 0x27, 0x5f, 0x1f, 1802 0x31, 0xbe, 0x3a, 0x98, 0x12, 0xab, 0xd5, 0x0f, 0x1c, 0x7d, 0xa9, 0xba, 0xb0, 0x53, 0xda, 0xbb, 1803 0x9e, 0xa2, 0x1a, 0xdc, 0xe6, 0x93, 0xc0, 0x31, 0x21, 0x18, 0x8d, 0xd1, 0x21, 0x6c, 0x92, 0x97, 1804 0xbe, 0x1d, 0xf0, 0x8c, 0xe7, 0xe5, 0xf3, 0x46, 0xec, 0x12, 0x71, 0x5a, 0x15, 0x84, 0x95, 0xd7, 1805 0x11, 0x84, 0xd5, 0xb9, 0x04, 0xe1, 0x0e, 0xa0, 0x68, 0xf3, 0x23, 0x01, 0x0c, 0xf5, 0x62, 0x75, 1806 0x81, 0x1d, 0x82, 0x7c, 0xf3, 0x4c, 0x0a, 0x61, 0x88, 0xce, 0x26, 0xe5, 0x43, 0xd0, 0xf6, 0xce, 1807 0x0c, 0xf9, 0xf8, 0x54, 0x7d, 0x4a, 0x8a, 0xc8, 0xfb, 0x91, 0x88, 0x08, 0xfa, 0xbe, 0x99, 0x21, 1808 0x22, 0x4d, 0xf6, 0x37, 0x96, 0x90, 0x03, 0x80, 0x36, 0x0e, 0x89, 0xd4, 0x8f, 0xb5, 0x0c, 0x57, 1809 0xa1, 0x1f, 0x4d, 0x1c, 0xda, 0x8c, 0x1d, 0x45, 0xe6, 0x21, 0xa4, 0xe3, 0x11, 0xac, 0x48, 0x55, 1810 0x90, 0x44, 0xcd, 0x56, 0x8d, 0xe7, 0xe2, 0xf3, 0xf4, 0x8a, 0x19, 0xb9, 0xa0, 0xd3, 0x48, 0x30, 1811 0x70, 0xdb, 0x21, 0x92, 0xa2, 0xb7, 0xa6, 0x0b, 0x46, 0x64, 0x1d, 0x6b, 0x06, 0x7b, 0x42, 0x47, 1812 0x50, 0x1c, 0x09, 0x82, 0xbe, 0x99, 0xc1, 0x75, 0x45, 0x32, 0xa2, 0x11, 0xdb, 0xcd, 0x68, 0x1a, 1813 0x7d, 0x06, 0x6f, 0x28, 0xc4, 0x6f, 0xe1, 0x3e, 0xbd, 0xf0, 0x02, 0x76, 0x40, 0xe5, 0x8c, 0xd0, 1814 0x54, 0xf5, 0xf8, 0x30, 0xb2, 0x3e, 0xbd, 0x62, 0x5e, 0x55, 0x5e, 0x8c, 0xe6, 0x9b, 0xcb, 0xb0, 1815 0x48, 0x87, 0x3e, 0x31, 0x6a, 0x70, 0xf5, 0x84, 0xd0, 0xf8, 0x0a, 0x36, 0xc9, 0x4f, 0xfa, 0x24, 1816 0xa4, 0x69, 0xec, 0x36, 0x5e, 0x69, 0x70, 0xed, 0x7b, 0x76, 0xa8, 0x58, 0x87, 0x91, 0xf9, 0x35, 1817 0x58, 0xf6, 0x71, 0xc0, 0xa4, 0x56, 0x38, 0xc8, 0x27, 0x36, 0x7f, 0x6e, 0x3b, 0x94, 0x04, 0x52, 1818 0x05, 0xe4, 0x13, 0xbb, 0x9d, 0x7d, 0xdc, 0x25, 0xad, 0xd0, 0xfe, 0x5c, 0xdc, 0xce, 0x4b, 0xe6, 1819 0x2a, 0x9b, 0x78, 0x61, 0x7f, 0x4e, 0xd0, 0x5b, 0x00, 0xfc, 0x25, 0xf5, 0x2e, 0x89, 0xcb, 0x39, 1820 0x5f, 0x34, 0xb9, 0xf9, 0x19, 0x9b, 0x30, 0x7e, 0xa6, 0xc1, 0x76, 0x22, 0x8c, 0xd0, 0xf7, 0xdc, 1821 0x90, 0xa0, 0x03, 0x28, 0x79, 0xf1, 0xb4, 0xae, 0x65, 0x30, 0x5f, 0xd9, 0xaf, 0x6a, 0x8f, 0x6e, 1822 0xc1, 0xa6, 0x4b, 0x5e, 0xd2, 0x96, 0xb2, 0xbc, 0x88, 0x7b, 0x9d, 0x4d, 0x3f, 0x1f, 0x85, 0xf0, 1823 0x1e, 0x6c, 0x1f, 0x11, 0x87, 0x50, 0x92, 0x2f, 0x71, 0x2e, 0x6c, 0x1f, 0x72, 0x76, 0x27, 0xcd, 1824 0xb3, 0x12, 0xf7, 0x10, 0x20, 0x0e, 0x4c, 0xf6, 0x3d, 0x53, 0xf7, 0xa1, 0x98, 0x1b, 0xbf, 0xd7, 1825 0x60, 0xfb, 0x13, 0xae, 0x08, 0xb9, 0xe2, 0x7b, 0xad, 0xc5, 0x14, 0xb1, 0x62, 0x8d, 0x9f, 0xbc, 1826 0x54, 0x92, 0x62, 0xf5, 0x84, 0xf5, 0x86, 0xdf, 0xc7, 0xe1, 0x65, 0x24, 0x56, 0x6c, 0x6c, 0xdc, 1827 0x84, 0x8d, 0x13, 0x42, 0x99, 0x1c, 0x4d, 0xcb, 0x5f, 0x1d, 0xf4, 0xb1, 0x22, 0x9d, 0x65, 0xff, 1828 0x25, 0x94, 0x59, 0x81, 0x30, 0xb3, 0xff, 0x4b, 0x85, 0x5e, 0xc0, 0x96, 0xb2, 0xbe, 0x2c, 0xcd, 1829 0xdb, 0xb0, 0xc4, 0xf4, 0x38, 0x2a, 0xca, 0x37, 0x52, 0x2f, 0x31, 0x53, 0xd8, 0xe4, 0x2e, 0xc4, 1830 0x77, 0x61, 0x4b, 0x14, 0xe2, 0xac, 0x94, 0x78, 0xb0, 0x25, 0x4a, 0x50, 0x35, 0xcc, 0xca, 0xc9, 1831 0x36, 0xac, 0xf0, 0xab, 0xc3, 0xb6, 0xa2, 0xa4, 0xb0, 0xc7, 0xa7, 0x16, 0xda, 0x85, 0x45, 0x36, 1832 0x92, 0x87, 0x9c, 0xb1, 0x05, 0x6e, 0x62, 0xfc, 0x5a, 0x83, 0x2d, 0x51, 0x83, 0x33, 0x42, 0x1b, 1833 0x81, 0x16, 0x66, 0x82, 0xbe, 0x5e, 0xad, 0xbd, 0xd2, 0xa0, 0x12, 0x1d, 0x4b, 0x8a, 0x84, 0xa5, 1834 0x85, 0xf6, 0xdf, 0x28, 0x8e, 0x57, 0x1a, 0x5c, 0x4f, 0x0d, 0xe3, 0x7f, 0x2b, 0x61, 0x7f, 0xd5, 1835 0x60, 0xbb, 0x89, 0x69, 0xe7, 0x22, 0x2e, 0x8b, 0x99, 0x5c, 0x79, 0x1a, 0x95, 0x70, 0x81, 0x07, 1836 0x75, 0x3f, 0x11, 0x54, 0x06, 0x20, 0x3f, 0xc2, 0xf0, 0xd8, 0xa5, 0xc1, 0x50, 0x16, 0x78, 0xe5, 1837 0x63, 0x80, 0x78, 0x92, 0xf5, 0xaa, 0x97, 0x64, 0x28, 0x57, 0x63, 0x43, 0xc6, 0x96, 0x01, 0x76, 1838 0xfa, 0x33, 0xaa, 0x42, 0xd8, 0xec, 0x17, 0xbe, 0xab, 0x19, 0x27, 0xa0, 0x27, 0x57, 0xff, 0x1a, 1839 0xd4, 0x33, 0x06, 0xf0, 0x96, 0x02, 0x34, 0xc7, 0x5d, 0x37, 0x71, 0x70, 0x85, 0xf9, 0x0e, 0xce, 1840 0x68, 0xc1, 0xdb, 0x59, 0xeb, 0xfe, 0x47, 0x2a, 0xc3, 0xf8, 0x11, 0xec, 0x9e, 0x10, 0x3a, 0xd6, 1841 0xb9, 0x29, 0xab, 0xbc, 0xe8, 0xf7, 0x7a, 0x38, 0x18, 0x7e, 0x4d, 0xb9, 0x34, 0xfe, 0x59, 0x80, 1842 0x1b, 0x33, 0xa0, 0xd1, 0x67, 0xb0, 0xdc, 0xf1, 0xfa, 0x2e, 0x8d, 0x42, 0x3f, 0x4e, 0x84, 0x3e, 1843 0x03, 0xa1, 0xfe, 0xc4, 0x7e, 0xc9, 0x5a, 0xac, 0x33, 0x8f, 0x62, 0xa7, 0x39, 0x3c, 0xb2, 0xbb, 1844 0x24, 0xa4, 0xa6, 0x04, 0xad, 0xfc, 0x5d, 0x83, 0xab, 0x69, 0x06, 0x63, 0xbf, 0x20, 0x68, 0xf9, 1845 0x7f, 0x41, 0x38, 0x84, 0xd5, 0x90, 0x0c, 0x08, 0x6f, 0xba, 0x0a, 0xfc, 0x8b, 0xc7, 0xbb, 0x33, 1846 0xba, 0xe2, 0x17, 0xd2, 0xdc, 0x1c, 0x39, 0xa2, 0x77, 0x60, 0xfd, 0x5c, 0xc4, 0xd4, 0xe2, 0x61, 1847 0x72, 0xb5, 0x58, 0x30, 0xd7, 0xe4, 0xe4, 0x21, 0x9b, 0x43, 0x37, 0xa0, 0x44, 0x59, 0xc4, 0xd2, 1848 0x64, 0x91, 0x9b, 0x00, 0x9f, 0xe2, 0x06, 0x7b, 0x7f, 0xde, 0x82, 0x8d, 0x13, 0xb1, 0xf4, 0xa7, 1849 0xf7, 0x9a, 0x6c, 0x65, 0xf4, 0x0b, 0x0d, 0xd6, 0xc7, 0x2e, 0x45, 0xf4, 0xed, 0x44, 0x74, 0x69, 1850 0x9d, 0x5d, 0x65, 0x5a, 0xc1, 0x18, 0x77, 0x7f, 0xfe, 0xb7, 0x7f, 0xfd, 0xa6, 0x50, 0x43, 0x3b, 1851 0xa3, 0xdf, 0x88, 0x7e, 0xca, 0x84, 0xf0, 0xc0, 0x0f, 0xbc, 0x1f, 0x93, 0x0e, 0x0d, 0x1b, 0xb5, 1852 0x86, 0x52, 0x52, 0x8d, 0xda, 0x17, 0xe8, 0xb7, 0x1a, 0x6c, 0x4e, 0x74, 0x63, 0x28, 0x99, 0xa7, 1853 0xf4, 0xb6, 0xb1, 0xb2, 0x33, 0xdb, 0x50, 0xd4, 0x7e, 0x5a, 0x60, 0xa2, 0x22, 0x95, 0xd0, 0xbe, 1854 0x50, 0x63, 0x43, 0xbf, 0xd4, 0xa0, 0x3c, 0xd9, 0xa4, 0xa1, 0xe4, 0x82, 0x19, 0x7d, 0x5c, 0xe5, 1855 0x5a, 0xe2, 0x56, 0x39, 0xee, 0xf9, 0x74, 0x18, 0x05, 0x52, 0xcb, 0x9f, 0xa1, 0xdf, 0x69, 0x50, 1856 0x9e, 0x24, 0x75, 0x4a, 0x20, 0x19, 0x1d, 0xe2, 0xf4, 0xf3, 0x7a, 0xc4, 0xa3, 0x79, 0x60, 0xe4, 1857 0x4e, 0xcb, 0xbe, 0xda, 0xba, 0xfd, 0x49, 0x83, 0x6b, 0xe9, 0x9a, 0x83, 0xea, 0xd3, 0xb4, 0x3d, 1858 0xe5, 0x24, 0x1b, 0xb9, 0xed, 0xe5, 0x81, 0x3e, 0xe6, 0x91, 0x7f, 0x60, 0xbc, 0x9f, 0x3b, 0xf2, 1859 0x76, 0x0c, 0xb8, 0xaf, 0xd5, 0x78, 0x5a, 0x27, 0x9b, 0xdc, 0x94, 0xb4, 0x66, 0xf4, 0xc1, 0xb9, 1860 0xd2, 0xba, 0x97, 0xfb, 0x90, 0xc7, 0xd2, 0xfa, 0x2b, 0x0d, 0xb6, 0x12, 0xfd, 0x2a, 0xda, 0x9d, 1861 0x4e, 0x4f, 0xa5, 0x4b, 0xaa, 0xa4, 0x5f, 0x50, 0xc6, 0x03, 0x1e, 0xd5, 0x5d, 0x54, 0xcf, 0x1b, 1862 0x55, 0x43, 0x34, 0x93, 0x3d, 0x58, 0x91, 0x4d, 0x36, 0xba, 0x91, 0x16, 0x44, 0x8e, 0xa5, 0x6b, 1863 0x7c, 0xe9, 0x9b, 0xc8, 0xc8, 0x5e, 0x9a, 0xaf, 0xc5, 0xea, 0xfd, 0x4b, 0x28, 0x8e, 0xba, 0x5f, 1864 0xf4, 0xad, 0x54, 0x86, 0xab, 0xcd, 0x41, 0xc5, 0x98, 0x66, 0x22, 0xab, 0x25, 0x65, 0xfd, 0x94, 1865 0x6a, 0x11, 0xdb, 0xa5, 0x00, 0x71, 0x4f, 0x8c, 0x8c, 0x0c, 0xc6, 0xab, 0x9b, 0xce, 0xe2, 0xba, 1866 0x5c, 0xb5, 0x96, 0x67, 0xd7, 0x43, 0x80, 0xb8, 0xf5, 0x48, 0x59, 0x35, 0xd1, 0x7d, 0x67, 0xa5, 1867 0x5a, 0x0a, 0x8c, 0x91, 0x63, 0xab, 0xfb, 0xa2, 0x2b, 0xfe, 0x4a, 0x83, 0xf2, 0x64, 0xef, 0x93, 1868 0xc2, 0x84, 0x8c, 0xe6, 0xac, 0xb2, 0x9b, 0xc3, 0x52, 0x1e, 0xc3, 0x07, 0x3c, 0xb6, 0xfb, 0x46, 1869 0x3d, 0x47, 0x6c, 0x13, 0x74, 0x1d, 0x02, 0xc4, 0x5f, 0x07, 0x52, 0xf2, 0x93, 0xf8, 0xae, 0x30, 1870 0x23, 0x3f, 0x7b, 0x39, 0x0e, 0x45, 0xe6, 0xe7, 0x0f, 0x1a, 0x7c, 0x23, 0xa5, 0xe3, 0x46, 0xb7, 1871 0x33, 0x0b, 0x2f, 0x45, 0xe0, 0xee, 0xe4, 0x33, 0x96, 0x89, 0xca, 0x41, 0xd5, 0x28, 0xc8, 0xb1, 1872 0x4b, 0xeb, 0x1f, 0x1a, 0x18, 0xb3, 0x9b, 0x34, 0xb4, 0x9f, 0x46, 0xe3, 0x7c, 0x9d, 0x5d, 0xe5, 1873 0xee, 0xbc, 0x5d, 0x97, 0x71, 0xcc, 0x37, 0xf3, 0x18, 0x1d, 0xe4, 0x96, 0xea, 0xb1, 0xb6, 0x48, 1874 0xc2, 0x34, 0x07, 0x80, 0x6c, 0x6f, 0x72, 0xf1, 0xe7, 0xda, 0x0f, 0x7f, 0x20, 0xc9, 0xd7, 0xf5, 1875 0x1c, 0xec, 0x76, 0xeb, 0x5e, 0xd0, 0x6d, 0x74, 0x89, 0xcb, 0xa9, 0xd8, 0x10, 0xaf, 0xb0, 0x6f, 1876 0x87, 0x73, 0xfc, 0x57, 0xf5, 0xa1, 0xfc, 0xfc, 0xaa, 0xb0, 0x70, 0x62, 0x7e, 0xd8, 0x5e, 0xe6, 1877 0x50, 0xf7, 0xff, 0x1d, 0x00, 0x00, 0xff, 0xff, 0x58, 0x08, 0x46, 0x82, 0x9f, 0x1d, 0x00, 0x00, 1878} 1879 1880// Reference imports to suppress errors if they are not otherwise used. 1881var _ context.Context 1882var _ grpc.ClientConn 1883 1884// This is a compile-time assertion to ensure that this generated file 1885// is compatible with the grpc package it is being compiled against. 1886const _ = grpc.SupportPackageIsVersion4 1887 1888// GrafeasV1Beta1Client is the client API for GrafeasV1Beta1 service. 1889// 1890// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 1891type GrafeasV1Beta1Client interface { 1892 // Gets the specified occurrence. 1893 GetOccurrence(ctx context.Context, in *GetOccurrenceRequest, opts ...grpc.CallOption) (*Occurrence, error) 1894 // Lists occurrences for the specified project. 1895 ListOccurrences(ctx context.Context, in *ListOccurrencesRequest, opts ...grpc.CallOption) (*ListOccurrencesResponse, error) 1896 // Deletes the specified occurrence. For example, use this method to delete an 1897 // occurrence when the occurrence is no longer applicable for the given 1898 // resource. 1899 DeleteOccurrence(ctx context.Context, in *DeleteOccurrenceRequest, opts ...grpc.CallOption) (*empty.Empty, error) 1900 // Creates a new occurrence. 1901 CreateOccurrence(ctx context.Context, in *CreateOccurrenceRequest, opts ...grpc.CallOption) (*Occurrence, error) 1902 // Creates new occurrences in batch. 1903 BatchCreateOccurrences(ctx context.Context, in *BatchCreateOccurrencesRequest, opts ...grpc.CallOption) (*BatchCreateOccurrencesResponse, error) 1904 // Updates the specified occurrence. 1905 UpdateOccurrence(ctx context.Context, in *UpdateOccurrenceRequest, opts ...grpc.CallOption) (*Occurrence, error) 1906 // Gets the note attached to the specified occurrence. Consumer projects can 1907 // use this method to get a note that belongs to a provider project. 1908 GetOccurrenceNote(ctx context.Context, in *GetOccurrenceNoteRequest, opts ...grpc.CallOption) (*Note, error) 1909 // Gets the specified note. 1910 GetNote(ctx context.Context, in *GetNoteRequest, opts ...grpc.CallOption) (*Note, error) 1911 // Lists notes for the specified project. 1912 ListNotes(ctx context.Context, in *ListNotesRequest, opts ...grpc.CallOption) (*ListNotesResponse, error) 1913 // Deletes the specified note. 1914 DeleteNote(ctx context.Context, in *DeleteNoteRequest, opts ...grpc.CallOption) (*empty.Empty, error) 1915 // Creates a new note. 1916 CreateNote(ctx context.Context, in *CreateNoteRequest, opts ...grpc.CallOption) (*Note, error) 1917 // Creates new notes in batch. 1918 BatchCreateNotes(ctx context.Context, in *BatchCreateNotesRequest, opts ...grpc.CallOption) (*BatchCreateNotesResponse, error) 1919 // Updates the specified note. 1920 UpdateNote(ctx context.Context, in *UpdateNoteRequest, opts ...grpc.CallOption) (*Note, error) 1921 // Lists occurrences referencing the specified note. Provider projects can use 1922 // this method to get all occurrences across consumer projects referencing the 1923 // specified note. 1924 ListNoteOccurrences(ctx context.Context, in *ListNoteOccurrencesRequest, opts ...grpc.CallOption) (*ListNoteOccurrencesResponse, error) 1925 // Gets a summary of the number and severity of occurrences. 1926 GetVulnerabilityOccurrencesSummary(ctx context.Context, in *GetVulnerabilityOccurrencesSummaryRequest, opts ...grpc.CallOption) (*VulnerabilityOccurrencesSummary, error) 1927} 1928 1929type grafeasV1Beta1Client struct { 1930 cc *grpc.ClientConn 1931} 1932 1933func NewGrafeasV1Beta1Client(cc *grpc.ClientConn) GrafeasV1Beta1Client { 1934 return &grafeasV1Beta1Client{cc} 1935} 1936 1937func (c *grafeasV1Beta1Client) GetOccurrence(ctx context.Context, in *GetOccurrenceRequest, opts ...grpc.CallOption) (*Occurrence, error) { 1938 out := new(Occurrence) 1939 err := c.cc.Invoke(ctx, "/grafeas.v1beta1.GrafeasV1Beta1/GetOccurrence", in, out, opts...) 1940 if err != nil { 1941 return nil, err 1942 } 1943 return out, nil 1944} 1945 1946func (c *grafeasV1Beta1Client) ListOccurrences(ctx context.Context, in *ListOccurrencesRequest, opts ...grpc.CallOption) (*ListOccurrencesResponse, error) { 1947 out := new(ListOccurrencesResponse) 1948 err := c.cc.Invoke(ctx, "/grafeas.v1beta1.GrafeasV1Beta1/ListOccurrences", in, out, opts...) 1949 if err != nil { 1950 return nil, err 1951 } 1952 return out, nil 1953} 1954 1955func (c *grafeasV1Beta1Client) DeleteOccurrence(ctx context.Context, in *DeleteOccurrenceRequest, opts ...grpc.CallOption) (*empty.Empty, error) { 1956 out := new(empty.Empty) 1957 err := c.cc.Invoke(ctx, "/grafeas.v1beta1.GrafeasV1Beta1/DeleteOccurrence", in, out, opts...) 1958 if err != nil { 1959 return nil, err 1960 } 1961 return out, nil 1962} 1963 1964func (c *grafeasV1Beta1Client) CreateOccurrence(ctx context.Context, in *CreateOccurrenceRequest, opts ...grpc.CallOption) (*Occurrence, error) { 1965 out := new(Occurrence) 1966 err := c.cc.Invoke(ctx, "/grafeas.v1beta1.GrafeasV1Beta1/CreateOccurrence", in, out, opts...) 1967 if err != nil { 1968 return nil, err 1969 } 1970 return out, nil 1971} 1972 1973func (c *grafeasV1Beta1Client) BatchCreateOccurrences(ctx context.Context, in *BatchCreateOccurrencesRequest, opts ...grpc.CallOption) (*BatchCreateOccurrencesResponse, error) { 1974 out := new(BatchCreateOccurrencesResponse) 1975 err := c.cc.Invoke(ctx, "/grafeas.v1beta1.GrafeasV1Beta1/BatchCreateOccurrences", in, out, opts...) 1976 if err != nil { 1977 return nil, err 1978 } 1979 return out, nil 1980} 1981 1982func (c *grafeasV1Beta1Client) UpdateOccurrence(ctx context.Context, in *UpdateOccurrenceRequest, opts ...grpc.CallOption) (*Occurrence, error) { 1983 out := new(Occurrence) 1984 err := c.cc.Invoke(ctx, "/grafeas.v1beta1.GrafeasV1Beta1/UpdateOccurrence", in, out, opts...) 1985 if err != nil { 1986 return nil, err 1987 } 1988 return out, nil 1989} 1990 1991func (c *grafeasV1Beta1Client) GetOccurrenceNote(ctx context.Context, in *GetOccurrenceNoteRequest, opts ...grpc.CallOption) (*Note, error) { 1992 out := new(Note) 1993 err := c.cc.Invoke(ctx, "/grafeas.v1beta1.GrafeasV1Beta1/GetOccurrenceNote", in, out, opts...) 1994 if err != nil { 1995 return nil, err 1996 } 1997 return out, nil 1998} 1999 2000func (c *grafeasV1Beta1Client) GetNote(ctx context.Context, in *GetNoteRequest, opts ...grpc.CallOption) (*Note, error) { 2001 out := new(Note) 2002 err := c.cc.Invoke(ctx, "/grafeas.v1beta1.GrafeasV1Beta1/GetNote", in, out, opts...) 2003 if err != nil { 2004 return nil, err 2005 } 2006 return out, nil 2007} 2008 2009func (c *grafeasV1Beta1Client) ListNotes(ctx context.Context, in *ListNotesRequest, opts ...grpc.CallOption) (*ListNotesResponse, error) { 2010 out := new(ListNotesResponse) 2011 err := c.cc.Invoke(ctx, "/grafeas.v1beta1.GrafeasV1Beta1/ListNotes", in, out, opts...) 2012 if err != nil { 2013 return nil, err 2014 } 2015 return out, nil 2016} 2017 2018func (c *grafeasV1Beta1Client) DeleteNote(ctx context.Context, in *DeleteNoteRequest, opts ...grpc.CallOption) (*empty.Empty, error) { 2019 out := new(empty.Empty) 2020 err := c.cc.Invoke(ctx, "/grafeas.v1beta1.GrafeasV1Beta1/DeleteNote", in, out, opts...) 2021 if err != nil { 2022 return nil, err 2023 } 2024 return out, nil 2025} 2026 2027func (c *grafeasV1Beta1Client) CreateNote(ctx context.Context, in *CreateNoteRequest, opts ...grpc.CallOption) (*Note, error) { 2028 out := new(Note) 2029 err := c.cc.Invoke(ctx, "/grafeas.v1beta1.GrafeasV1Beta1/CreateNote", in, out, opts...) 2030 if err != nil { 2031 return nil, err 2032 } 2033 return out, nil 2034} 2035 2036func (c *grafeasV1Beta1Client) BatchCreateNotes(ctx context.Context, in *BatchCreateNotesRequest, opts ...grpc.CallOption) (*BatchCreateNotesResponse, error) { 2037 out := new(BatchCreateNotesResponse) 2038 err := c.cc.Invoke(ctx, "/grafeas.v1beta1.GrafeasV1Beta1/BatchCreateNotes", in, out, opts...) 2039 if err != nil { 2040 return nil, err 2041 } 2042 return out, nil 2043} 2044 2045func (c *grafeasV1Beta1Client) UpdateNote(ctx context.Context, in *UpdateNoteRequest, opts ...grpc.CallOption) (*Note, error) { 2046 out := new(Note) 2047 err := c.cc.Invoke(ctx, "/grafeas.v1beta1.GrafeasV1Beta1/UpdateNote", in, out, opts...) 2048 if err != nil { 2049 return nil, err 2050 } 2051 return out, nil 2052} 2053 2054func (c *grafeasV1Beta1Client) ListNoteOccurrences(ctx context.Context, in *ListNoteOccurrencesRequest, opts ...grpc.CallOption) (*ListNoteOccurrencesResponse, error) { 2055 out := new(ListNoteOccurrencesResponse) 2056 err := c.cc.Invoke(ctx, "/grafeas.v1beta1.GrafeasV1Beta1/ListNoteOccurrences", in, out, opts...) 2057 if err != nil { 2058 return nil, err 2059 } 2060 return out, nil 2061} 2062 2063func (c *grafeasV1Beta1Client) GetVulnerabilityOccurrencesSummary(ctx context.Context, in *GetVulnerabilityOccurrencesSummaryRequest, opts ...grpc.CallOption) (*VulnerabilityOccurrencesSummary, error) { 2064 out := new(VulnerabilityOccurrencesSummary) 2065 err := c.cc.Invoke(ctx, "/grafeas.v1beta1.GrafeasV1Beta1/GetVulnerabilityOccurrencesSummary", in, out, opts...) 2066 if err != nil { 2067 return nil, err 2068 } 2069 return out, nil 2070} 2071 2072// GrafeasV1Beta1Server is the server API for GrafeasV1Beta1 service. 2073type GrafeasV1Beta1Server interface { 2074 // Gets the specified occurrence. 2075 GetOccurrence(context.Context, *GetOccurrenceRequest) (*Occurrence, error) 2076 // Lists occurrences for the specified project. 2077 ListOccurrences(context.Context, *ListOccurrencesRequest) (*ListOccurrencesResponse, error) 2078 // Deletes the specified occurrence. For example, use this method to delete an 2079 // occurrence when the occurrence is no longer applicable for the given 2080 // resource. 2081 DeleteOccurrence(context.Context, *DeleteOccurrenceRequest) (*empty.Empty, error) 2082 // Creates a new occurrence. 2083 CreateOccurrence(context.Context, *CreateOccurrenceRequest) (*Occurrence, error) 2084 // Creates new occurrences in batch. 2085 BatchCreateOccurrences(context.Context, *BatchCreateOccurrencesRequest) (*BatchCreateOccurrencesResponse, error) 2086 // Updates the specified occurrence. 2087 UpdateOccurrence(context.Context, *UpdateOccurrenceRequest) (*Occurrence, error) 2088 // Gets the note attached to the specified occurrence. Consumer projects can 2089 // use this method to get a note that belongs to a provider project. 2090 GetOccurrenceNote(context.Context, *GetOccurrenceNoteRequest) (*Note, error) 2091 // Gets the specified note. 2092 GetNote(context.Context, *GetNoteRequest) (*Note, error) 2093 // Lists notes for the specified project. 2094 ListNotes(context.Context, *ListNotesRequest) (*ListNotesResponse, error) 2095 // Deletes the specified note. 2096 DeleteNote(context.Context, *DeleteNoteRequest) (*empty.Empty, error) 2097 // Creates a new note. 2098 CreateNote(context.Context, *CreateNoteRequest) (*Note, error) 2099 // Creates new notes in batch. 2100 BatchCreateNotes(context.Context, *BatchCreateNotesRequest) (*BatchCreateNotesResponse, error) 2101 // Updates the specified note. 2102 UpdateNote(context.Context, *UpdateNoteRequest) (*Note, error) 2103 // Lists occurrences referencing the specified note. Provider projects can use 2104 // this method to get all occurrences across consumer projects referencing the 2105 // specified note. 2106 ListNoteOccurrences(context.Context, *ListNoteOccurrencesRequest) (*ListNoteOccurrencesResponse, error) 2107 // Gets a summary of the number and severity of occurrences. 2108 GetVulnerabilityOccurrencesSummary(context.Context, *GetVulnerabilityOccurrencesSummaryRequest) (*VulnerabilityOccurrencesSummary, error) 2109} 2110 2111func RegisterGrafeasV1Beta1Server(s *grpc.Server, srv GrafeasV1Beta1Server) { 2112 s.RegisterService(&_GrafeasV1Beta1_serviceDesc, srv) 2113} 2114 2115func _GrafeasV1Beta1_GetOccurrence_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 2116 in := new(GetOccurrenceRequest) 2117 if err := dec(in); err != nil { 2118 return nil, err 2119 } 2120 if interceptor == nil { 2121 return srv.(GrafeasV1Beta1Server).GetOccurrence(ctx, in) 2122 } 2123 info := &grpc.UnaryServerInfo{ 2124 Server: srv, 2125 FullMethod: "/grafeas.v1beta1.GrafeasV1Beta1/GetOccurrence", 2126 } 2127 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 2128 return srv.(GrafeasV1Beta1Server).GetOccurrence(ctx, req.(*GetOccurrenceRequest)) 2129 } 2130 return interceptor(ctx, in, info, handler) 2131} 2132 2133func _GrafeasV1Beta1_ListOccurrences_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 2134 in := new(ListOccurrencesRequest) 2135 if err := dec(in); err != nil { 2136 return nil, err 2137 } 2138 if interceptor == nil { 2139 return srv.(GrafeasV1Beta1Server).ListOccurrences(ctx, in) 2140 } 2141 info := &grpc.UnaryServerInfo{ 2142 Server: srv, 2143 FullMethod: "/grafeas.v1beta1.GrafeasV1Beta1/ListOccurrences", 2144 } 2145 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 2146 return srv.(GrafeasV1Beta1Server).ListOccurrences(ctx, req.(*ListOccurrencesRequest)) 2147 } 2148 return interceptor(ctx, in, info, handler) 2149} 2150 2151func _GrafeasV1Beta1_DeleteOccurrence_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 2152 in := new(DeleteOccurrenceRequest) 2153 if err := dec(in); err != nil { 2154 return nil, err 2155 } 2156 if interceptor == nil { 2157 return srv.(GrafeasV1Beta1Server).DeleteOccurrence(ctx, in) 2158 } 2159 info := &grpc.UnaryServerInfo{ 2160 Server: srv, 2161 FullMethod: "/grafeas.v1beta1.GrafeasV1Beta1/DeleteOccurrence", 2162 } 2163 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 2164 return srv.(GrafeasV1Beta1Server).DeleteOccurrence(ctx, req.(*DeleteOccurrenceRequest)) 2165 } 2166 return interceptor(ctx, in, info, handler) 2167} 2168 2169func _GrafeasV1Beta1_CreateOccurrence_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 2170 in := new(CreateOccurrenceRequest) 2171 if err := dec(in); err != nil { 2172 return nil, err 2173 } 2174 if interceptor == nil { 2175 return srv.(GrafeasV1Beta1Server).CreateOccurrence(ctx, in) 2176 } 2177 info := &grpc.UnaryServerInfo{ 2178 Server: srv, 2179 FullMethod: "/grafeas.v1beta1.GrafeasV1Beta1/CreateOccurrence", 2180 } 2181 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 2182 return srv.(GrafeasV1Beta1Server).CreateOccurrence(ctx, req.(*CreateOccurrenceRequest)) 2183 } 2184 return interceptor(ctx, in, info, handler) 2185} 2186 2187func _GrafeasV1Beta1_BatchCreateOccurrences_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 2188 in := new(BatchCreateOccurrencesRequest) 2189 if err := dec(in); err != nil { 2190 return nil, err 2191 } 2192 if interceptor == nil { 2193 return srv.(GrafeasV1Beta1Server).BatchCreateOccurrences(ctx, in) 2194 } 2195 info := &grpc.UnaryServerInfo{ 2196 Server: srv, 2197 FullMethod: "/grafeas.v1beta1.GrafeasV1Beta1/BatchCreateOccurrences", 2198 } 2199 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 2200 return srv.(GrafeasV1Beta1Server).BatchCreateOccurrences(ctx, req.(*BatchCreateOccurrencesRequest)) 2201 } 2202 return interceptor(ctx, in, info, handler) 2203} 2204 2205func _GrafeasV1Beta1_UpdateOccurrence_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 2206 in := new(UpdateOccurrenceRequest) 2207 if err := dec(in); err != nil { 2208 return nil, err 2209 } 2210 if interceptor == nil { 2211 return srv.(GrafeasV1Beta1Server).UpdateOccurrence(ctx, in) 2212 } 2213 info := &grpc.UnaryServerInfo{ 2214 Server: srv, 2215 FullMethod: "/grafeas.v1beta1.GrafeasV1Beta1/UpdateOccurrence", 2216 } 2217 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 2218 return srv.(GrafeasV1Beta1Server).UpdateOccurrence(ctx, req.(*UpdateOccurrenceRequest)) 2219 } 2220 return interceptor(ctx, in, info, handler) 2221} 2222 2223func _GrafeasV1Beta1_GetOccurrenceNote_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 2224 in := new(GetOccurrenceNoteRequest) 2225 if err := dec(in); err != nil { 2226 return nil, err 2227 } 2228 if interceptor == nil { 2229 return srv.(GrafeasV1Beta1Server).GetOccurrenceNote(ctx, in) 2230 } 2231 info := &grpc.UnaryServerInfo{ 2232 Server: srv, 2233 FullMethod: "/grafeas.v1beta1.GrafeasV1Beta1/GetOccurrenceNote", 2234 } 2235 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 2236 return srv.(GrafeasV1Beta1Server).GetOccurrenceNote(ctx, req.(*GetOccurrenceNoteRequest)) 2237 } 2238 return interceptor(ctx, in, info, handler) 2239} 2240 2241func _GrafeasV1Beta1_GetNote_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 2242 in := new(GetNoteRequest) 2243 if err := dec(in); err != nil { 2244 return nil, err 2245 } 2246 if interceptor == nil { 2247 return srv.(GrafeasV1Beta1Server).GetNote(ctx, in) 2248 } 2249 info := &grpc.UnaryServerInfo{ 2250 Server: srv, 2251 FullMethod: "/grafeas.v1beta1.GrafeasV1Beta1/GetNote", 2252 } 2253 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 2254 return srv.(GrafeasV1Beta1Server).GetNote(ctx, req.(*GetNoteRequest)) 2255 } 2256 return interceptor(ctx, in, info, handler) 2257} 2258 2259func _GrafeasV1Beta1_ListNotes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 2260 in := new(ListNotesRequest) 2261 if err := dec(in); err != nil { 2262 return nil, err 2263 } 2264 if interceptor == nil { 2265 return srv.(GrafeasV1Beta1Server).ListNotes(ctx, in) 2266 } 2267 info := &grpc.UnaryServerInfo{ 2268 Server: srv, 2269 FullMethod: "/grafeas.v1beta1.GrafeasV1Beta1/ListNotes", 2270 } 2271 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 2272 return srv.(GrafeasV1Beta1Server).ListNotes(ctx, req.(*ListNotesRequest)) 2273 } 2274 return interceptor(ctx, in, info, handler) 2275} 2276 2277func _GrafeasV1Beta1_DeleteNote_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 2278 in := new(DeleteNoteRequest) 2279 if err := dec(in); err != nil { 2280 return nil, err 2281 } 2282 if interceptor == nil { 2283 return srv.(GrafeasV1Beta1Server).DeleteNote(ctx, in) 2284 } 2285 info := &grpc.UnaryServerInfo{ 2286 Server: srv, 2287 FullMethod: "/grafeas.v1beta1.GrafeasV1Beta1/DeleteNote", 2288 } 2289 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 2290 return srv.(GrafeasV1Beta1Server).DeleteNote(ctx, req.(*DeleteNoteRequest)) 2291 } 2292 return interceptor(ctx, in, info, handler) 2293} 2294 2295func _GrafeasV1Beta1_CreateNote_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 2296 in := new(CreateNoteRequest) 2297 if err := dec(in); err != nil { 2298 return nil, err 2299 } 2300 if interceptor == nil { 2301 return srv.(GrafeasV1Beta1Server).CreateNote(ctx, in) 2302 } 2303 info := &grpc.UnaryServerInfo{ 2304 Server: srv, 2305 FullMethod: "/grafeas.v1beta1.GrafeasV1Beta1/CreateNote", 2306 } 2307 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 2308 return srv.(GrafeasV1Beta1Server).CreateNote(ctx, req.(*CreateNoteRequest)) 2309 } 2310 return interceptor(ctx, in, info, handler) 2311} 2312 2313func _GrafeasV1Beta1_BatchCreateNotes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 2314 in := new(BatchCreateNotesRequest) 2315 if err := dec(in); err != nil { 2316 return nil, err 2317 } 2318 if interceptor == nil { 2319 return srv.(GrafeasV1Beta1Server).BatchCreateNotes(ctx, in) 2320 } 2321 info := &grpc.UnaryServerInfo{ 2322 Server: srv, 2323 FullMethod: "/grafeas.v1beta1.GrafeasV1Beta1/BatchCreateNotes", 2324 } 2325 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 2326 return srv.(GrafeasV1Beta1Server).BatchCreateNotes(ctx, req.(*BatchCreateNotesRequest)) 2327 } 2328 return interceptor(ctx, in, info, handler) 2329} 2330 2331func _GrafeasV1Beta1_UpdateNote_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 2332 in := new(UpdateNoteRequest) 2333 if err := dec(in); err != nil { 2334 return nil, err 2335 } 2336 if interceptor == nil { 2337 return srv.(GrafeasV1Beta1Server).UpdateNote(ctx, in) 2338 } 2339 info := &grpc.UnaryServerInfo{ 2340 Server: srv, 2341 FullMethod: "/grafeas.v1beta1.GrafeasV1Beta1/UpdateNote", 2342 } 2343 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 2344 return srv.(GrafeasV1Beta1Server).UpdateNote(ctx, req.(*UpdateNoteRequest)) 2345 } 2346 return interceptor(ctx, in, info, handler) 2347} 2348 2349func _GrafeasV1Beta1_ListNoteOccurrences_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 2350 in := new(ListNoteOccurrencesRequest) 2351 if err := dec(in); err != nil { 2352 return nil, err 2353 } 2354 if interceptor == nil { 2355 return srv.(GrafeasV1Beta1Server).ListNoteOccurrences(ctx, in) 2356 } 2357 info := &grpc.UnaryServerInfo{ 2358 Server: srv, 2359 FullMethod: "/grafeas.v1beta1.GrafeasV1Beta1/ListNoteOccurrences", 2360 } 2361 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 2362 return srv.(GrafeasV1Beta1Server).ListNoteOccurrences(ctx, req.(*ListNoteOccurrencesRequest)) 2363 } 2364 return interceptor(ctx, in, info, handler) 2365} 2366 2367func _GrafeasV1Beta1_GetVulnerabilityOccurrencesSummary_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 2368 in := new(GetVulnerabilityOccurrencesSummaryRequest) 2369 if err := dec(in); err != nil { 2370 return nil, err 2371 } 2372 if interceptor == nil { 2373 return srv.(GrafeasV1Beta1Server).GetVulnerabilityOccurrencesSummary(ctx, in) 2374 } 2375 info := &grpc.UnaryServerInfo{ 2376 Server: srv, 2377 FullMethod: "/grafeas.v1beta1.GrafeasV1Beta1/GetVulnerabilityOccurrencesSummary", 2378 } 2379 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 2380 return srv.(GrafeasV1Beta1Server).GetVulnerabilityOccurrencesSummary(ctx, req.(*GetVulnerabilityOccurrencesSummaryRequest)) 2381 } 2382 return interceptor(ctx, in, info, handler) 2383} 2384 2385var _GrafeasV1Beta1_serviceDesc = grpc.ServiceDesc{ 2386 ServiceName: "grafeas.v1beta1.GrafeasV1Beta1", 2387 HandlerType: (*GrafeasV1Beta1Server)(nil), 2388 Methods: []grpc.MethodDesc{ 2389 { 2390 MethodName: "GetOccurrence", 2391 Handler: _GrafeasV1Beta1_GetOccurrence_Handler, 2392 }, 2393 { 2394 MethodName: "ListOccurrences", 2395 Handler: _GrafeasV1Beta1_ListOccurrences_Handler, 2396 }, 2397 { 2398 MethodName: "DeleteOccurrence", 2399 Handler: _GrafeasV1Beta1_DeleteOccurrence_Handler, 2400 }, 2401 { 2402 MethodName: "CreateOccurrence", 2403 Handler: _GrafeasV1Beta1_CreateOccurrence_Handler, 2404 }, 2405 { 2406 MethodName: "BatchCreateOccurrences", 2407 Handler: _GrafeasV1Beta1_BatchCreateOccurrences_Handler, 2408 }, 2409 { 2410 MethodName: "UpdateOccurrence", 2411 Handler: _GrafeasV1Beta1_UpdateOccurrence_Handler, 2412 }, 2413 { 2414 MethodName: "GetOccurrenceNote", 2415 Handler: _GrafeasV1Beta1_GetOccurrenceNote_Handler, 2416 }, 2417 { 2418 MethodName: "GetNote", 2419 Handler: _GrafeasV1Beta1_GetNote_Handler, 2420 }, 2421 { 2422 MethodName: "ListNotes", 2423 Handler: _GrafeasV1Beta1_ListNotes_Handler, 2424 }, 2425 { 2426 MethodName: "DeleteNote", 2427 Handler: _GrafeasV1Beta1_DeleteNote_Handler, 2428 }, 2429 { 2430 MethodName: "CreateNote", 2431 Handler: _GrafeasV1Beta1_CreateNote_Handler, 2432 }, 2433 { 2434 MethodName: "BatchCreateNotes", 2435 Handler: _GrafeasV1Beta1_BatchCreateNotes_Handler, 2436 }, 2437 { 2438 MethodName: "UpdateNote", 2439 Handler: _GrafeasV1Beta1_UpdateNote_Handler, 2440 }, 2441 { 2442 MethodName: "ListNoteOccurrences", 2443 Handler: _GrafeasV1Beta1_ListNoteOccurrences_Handler, 2444 }, 2445 { 2446 MethodName: "GetVulnerabilityOccurrencesSummary", 2447 Handler: _GrafeasV1Beta1_GetVulnerabilityOccurrencesSummary_Handler, 2448 }, 2449 }, 2450 Streams: []grpc.StreamDesc{}, 2451 Metadata: "google/devtools/containeranalysis/v1beta1/grafeas/grafeas.proto", 2452} 2453