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