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