@google-cloud/dlp 3.3.0 → 3.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- // Copyright 2021 Google LLC
1
+ // Copyright 2022 Google LLC
2
2
  //
3
3
  // Licensed under the Apache License, Version 2.0 (the "License");
4
4
  // you may not use this file except in compliance with the License.
@@ -526,238 +526,238 @@ export namespace google {
526
526
  namespace DlpService {
527
527
 
528
528
  /**
529
- * Callback as used by {@link google.privacy.dlp.v2.DlpService#inspectContent}.
529
+ * Callback as used by {@link google.privacy.dlp.v2.DlpService|inspectContent}.
530
530
  * @param error Error, if any
531
531
  * @param [response] InspectContentResponse
532
532
  */
533
533
  type InspectContentCallback = (error: (Error|null), response?: google.privacy.dlp.v2.InspectContentResponse) => void;
534
534
 
535
535
  /**
536
- * Callback as used by {@link google.privacy.dlp.v2.DlpService#redactImage}.
536
+ * Callback as used by {@link google.privacy.dlp.v2.DlpService|redactImage}.
537
537
  * @param error Error, if any
538
538
  * @param [response] RedactImageResponse
539
539
  */
540
540
  type RedactImageCallback = (error: (Error|null), response?: google.privacy.dlp.v2.RedactImageResponse) => void;
541
541
 
542
542
  /**
543
- * Callback as used by {@link google.privacy.dlp.v2.DlpService#deidentifyContent}.
543
+ * Callback as used by {@link google.privacy.dlp.v2.DlpService|deidentifyContent}.
544
544
  * @param error Error, if any
545
545
  * @param [response] DeidentifyContentResponse
546
546
  */
547
547
  type DeidentifyContentCallback = (error: (Error|null), response?: google.privacy.dlp.v2.DeidentifyContentResponse) => void;
548
548
 
549
549
  /**
550
- * Callback as used by {@link google.privacy.dlp.v2.DlpService#reidentifyContent}.
550
+ * Callback as used by {@link google.privacy.dlp.v2.DlpService|reidentifyContent}.
551
551
  * @param error Error, if any
552
552
  * @param [response] ReidentifyContentResponse
553
553
  */
554
554
  type ReidentifyContentCallback = (error: (Error|null), response?: google.privacy.dlp.v2.ReidentifyContentResponse) => void;
555
555
 
556
556
  /**
557
- * Callback as used by {@link google.privacy.dlp.v2.DlpService#listInfoTypes}.
557
+ * Callback as used by {@link google.privacy.dlp.v2.DlpService|listInfoTypes}.
558
558
  * @param error Error, if any
559
559
  * @param [response] ListInfoTypesResponse
560
560
  */
561
561
  type ListInfoTypesCallback = (error: (Error|null), response?: google.privacy.dlp.v2.ListInfoTypesResponse) => void;
562
562
 
563
563
  /**
564
- * Callback as used by {@link google.privacy.dlp.v2.DlpService#createInspectTemplate}.
564
+ * Callback as used by {@link google.privacy.dlp.v2.DlpService|createInspectTemplate}.
565
565
  * @param error Error, if any
566
566
  * @param [response] InspectTemplate
567
567
  */
568
568
  type CreateInspectTemplateCallback = (error: (Error|null), response?: google.privacy.dlp.v2.InspectTemplate) => void;
569
569
 
570
570
  /**
571
- * Callback as used by {@link google.privacy.dlp.v2.DlpService#updateInspectTemplate}.
571
+ * Callback as used by {@link google.privacy.dlp.v2.DlpService|updateInspectTemplate}.
572
572
  * @param error Error, if any
573
573
  * @param [response] InspectTemplate
574
574
  */
575
575
  type UpdateInspectTemplateCallback = (error: (Error|null), response?: google.privacy.dlp.v2.InspectTemplate) => void;
576
576
 
577
577
  /**
578
- * Callback as used by {@link google.privacy.dlp.v2.DlpService#getInspectTemplate}.
578
+ * Callback as used by {@link google.privacy.dlp.v2.DlpService|getInspectTemplate}.
579
579
  * @param error Error, if any
580
580
  * @param [response] InspectTemplate
581
581
  */
582
582
  type GetInspectTemplateCallback = (error: (Error|null), response?: google.privacy.dlp.v2.InspectTemplate) => void;
583
583
 
584
584
  /**
585
- * Callback as used by {@link google.privacy.dlp.v2.DlpService#listInspectTemplates}.
585
+ * Callback as used by {@link google.privacy.dlp.v2.DlpService|listInspectTemplates}.
586
586
  * @param error Error, if any
587
587
  * @param [response] ListInspectTemplatesResponse
588
588
  */
589
589
  type ListInspectTemplatesCallback = (error: (Error|null), response?: google.privacy.dlp.v2.ListInspectTemplatesResponse) => void;
590
590
 
591
591
  /**
592
- * Callback as used by {@link google.privacy.dlp.v2.DlpService#deleteInspectTemplate}.
592
+ * Callback as used by {@link google.privacy.dlp.v2.DlpService|deleteInspectTemplate}.
593
593
  * @param error Error, if any
594
594
  * @param [response] Empty
595
595
  */
596
596
  type DeleteInspectTemplateCallback = (error: (Error|null), response?: google.protobuf.Empty) => void;
597
597
 
598
598
  /**
599
- * Callback as used by {@link google.privacy.dlp.v2.DlpService#createDeidentifyTemplate}.
599
+ * Callback as used by {@link google.privacy.dlp.v2.DlpService|createDeidentifyTemplate}.
600
600
  * @param error Error, if any
601
601
  * @param [response] DeidentifyTemplate
602
602
  */
603
603
  type CreateDeidentifyTemplateCallback = (error: (Error|null), response?: google.privacy.dlp.v2.DeidentifyTemplate) => void;
604
604
 
605
605
  /**
606
- * Callback as used by {@link google.privacy.dlp.v2.DlpService#updateDeidentifyTemplate}.
606
+ * Callback as used by {@link google.privacy.dlp.v2.DlpService|updateDeidentifyTemplate}.
607
607
  * @param error Error, if any
608
608
  * @param [response] DeidentifyTemplate
609
609
  */
610
610
  type UpdateDeidentifyTemplateCallback = (error: (Error|null), response?: google.privacy.dlp.v2.DeidentifyTemplate) => void;
611
611
 
612
612
  /**
613
- * Callback as used by {@link google.privacy.dlp.v2.DlpService#getDeidentifyTemplate}.
613
+ * Callback as used by {@link google.privacy.dlp.v2.DlpService|getDeidentifyTemplate}.
614
614
  * @param error Error, if any
615
615
  * @param [response] DeidentifyTemplate
616
616
  */
617
617
  type GetDeidentifyTemplateCallback = (error: (Error|null), response?: google.privacy.dlp.v2.DeidentifyTemplate) => void;
618
618
 
619
619
  /**
620
- * Callback as used by {@link google.privacy.dlp.v2.DlpService#listDeidentifyTemplates}.
620
+ * Callback as used by {@link google.privacy.dlp.v2.DlpService|listDeidentifyTemplates}.
621
621
  * @param error Error, if any
622
622
  * @param [response] ListDeidentifyTemplatesResponse
623
623
  */
624
624
  type ListDeidentifyTemplatesCallback = (error: (Error|null), response?: google.privacy.dlp.v2.ListDeidentifyTemplatesResponse) => void;
625
625
 
626
626
  /**
627
- * Callback as used by {@link google.privacy.dlp.v2.DlpService#deleteDeidentifyTemplate}.
627
+ * Callback as used by {@link google.privacy.dlp.v2.DlpService|deleteDeidentifyTemplate}.
628
628
  * @param error Error, if any
629
629
  * @param [response] Empty
630
630
  */
631
631
  type DeleteDeidentifyTemplateCallback = (error: (Error|null), response?: google.protobuf.Empty) => void;
632
632
 
633
633
  /**
634
- * Callback as used by {@link google.privacy.dlp.v2.DlpService#createJobTrigger}.
634
+ * Callback as used by {@link google.privacy.dlp.v2.DlpService|createJobTrigger}.
635
635
  * @param error Error, if any
636
636
  * @param [response] JobTrigger
637
637
  */
638
638
  type CreateJobTriggerCallback = (error: (Error|null), response?: google.privacy.dlp.v2.JobTrigger) => void;
639
639
 
640
640
  /**
641
- * Callback as used by {@link google.privacy.dlp.v2.DlpService#updateJobTrigger}.
641
+ * Callback as used by {@link google.privacy.dlp.v2.DlpService|updateJobTrigger}.
642
642
  * @param error Error, if any
643
643
  * @param [response] JobTrigger
644
644
  */
645
645
  type UpdateJobTriggerCallback = (error: (Error|null), response?: google.privacy.dlp.v2.JobTrigger) => void;
646
646
 
647
647
  /**
648
- * Callback as used by {@link google.privacy.dlp.v2.DlpService#hybridInspectJobTrigger}.
648
+ * Callback as used by {@link google.privacy.dlp.v2.DlpService|hybridInspectJobTrigger}.
649
649
  * @param error Error, if any
650
650
  * @param [response] HybridInspectResponse
651
651
  */
652
652
  type HybridInspectJobTriggerCallback = (error: (Error|null), response?: google.privacy.dlp.v2.HybridInspectResponse) => void;
653
653
 
654
654
  /**
655
- * Callback as used by {@link google.privacy.dlp.v2.DlpService#getJobTrigger}.
655
+ * Callback as used by {@link google.privacy.dlp.v2.DlpService|getJobTrigger}.
656
656
  * @param error Error, if any
657
657
  * @param [response] JobTrigger
658
658
  */
659
659
  type GetJobTriggerCallback = (error: (Error|null), response?: google.privacy.dlp.v2.JobTrigger) => void;
660
660
 
661
661
  /**
662
- * Callback as used by {@link google.privacy.dlp.v2.DlpService#listJobTriggers}.
662
+ * Callback as used by {@link google.privacy.dlp.v2.DlpService|listJobTriggers}.
663
663
  * @param error Error, if any
664
664
  * @param [response] ListJobTriggersResponse
665
665
  */
666
666
  type ListJobTriggersCallback = (error: (Error|null), response?: google.privacy.dlp.v2.ListJobTriggersResponse) => void;
667
667
 
668
668
  /**
669
- * Callback as used by {@link google.privacy.dlp.v2.DlpService#deleteJobTrigger}.
669
+ * Callback as used by {@link google.privacy.dlp.v2.DlpService|deleteJobTrigger}.
670
670
  * @param error Error, if any
671
671
  * @param [response] Empty
672
672
  */
673
673
  type DeleteJobTriggerCallback = (error: (Error|null), response?: google.protobuf.Empty) => void;
674
674
 
675
675
  /**
676
- * Callback as used by {@link google.privacy.dlp.v2.DlpService#activateJobTrigger}.
676
+ * Callback as used by {@link google.privacy.dlp.v2.DlpService|activateJobTrigger}.
677
677
  * @param error Error, if any
678
678
  * @param [response] DlpJob
679
679
  */
680
680
  type ActivateJobTriggerCallback = (error: (Error|null), response?: google.privacy.dlp.v2.DlpJob) => void;
681
681
 
682
682
  /**
683
- * Callback as used by {@link google.privacy.dlp.v2.DlpService#createDlpJob}.
683
+ * Callback as used by {@link google.privacy.dlp.v2.DlpService|createDlpJob}.
684
684
  * @param error Error, if any
685
685
  * @param [response] DlpJob
686
686
  */
687
687
  type CreateDlpJobCallback = (error: (Error|null), response?: google.privacy.dlp.v2.DlpJob) => void;
688
688
 
689
689
  /**
690
- * Callback as used by {@link google.privacy.dlp.v2.DlpService#listDlpJobs}.
690
+ * Callback as used by {@link google.privacy.dlp.v2.DlpService|listDlpJobs}.
691
691
  * @param error Error, if any
692
692
  * @param [response] ListDlpJobsResponse
693
693
  */
694
694
  type ListDlpJobsCallback = (error: (Error|null), response?: google.privacy.dlp.v2.ListDlpJobsResponse) => void;
695
695
 
696
696
  /**
697
- * Callback as used by {@link google.privacy.dlp.v2.DlpService#getDlpJob}.
697
+ * Callback as used by {@link google.privacy.dlp.v2.DlpService|getDlpJob}.
698
698
  * @param error Error, if any
699
699
  * @param [response] DlpJob
700
700
  */
701
701
  type GetDlpJobCallback = (error: (Error|null), response?: google.privacy.dlp.v2.DlpJob) => void;
702
702
 
703
703
  /**
704
- * Callback as used by {@link google.privacy.dlp.v2.DlpService#deleteDlpJob}.
704
+ * Callback as used by {@link google.privacy.dlp.v2.DlpService|deleteDlpJob}.
705
705
  * @param error Error, if any
706
706
  * @param [response] Empty
707
707
  */
708
708
  type DeleteDlpJobCallback = (error: (Error|null), response?: google.protobuf.Empty) => void;
709
709
 
710
710
  /**
711
- * Callback as used by {@link google.privacy.dlp.v2.DlpService#cancelDlpJob}.
711
+ * Callback as used by {@link google.privacy.dlp.v2.DlpService|cancelDlpJob}.
712
712
  * @param error Error, if any
713
713
  * @param [response] Empty
714
714
  */
715
715
  type CancelDlpJobCallback = (error: (Error|null), response?: google.protobuf.Empty) => void;
716
716
 
717
717
  /**
718
- * Callback as used by {@link google.privacy.dlp.v2.DlpService#createStoredInfoType}.
718
+ * Callback as used by {@link google.privacy.dlp.v2.DlpService|createStoredInfoType}.
719
719
  * @param error Error, if any
720
720
  * @param [response] StoredInfoType
721
721
  */
722
722
  type CreateStoredInfoTypeCallback = (error: (Error|null), response?: google.privacy.dlp.v2.StoredInfoType) => void;
723
723
 
724
724
  /**
725
- * Callback as used by {@link google.privacy.dlp.v2.DlpService#updateStoredInfoType}.
725
+ * Callback as used by {@link google.privacy.dlp.v2.DlpService|updateStoredInfoType}.
726
726
  * @param error Error, if any
727
727
  * @param [response] StoredInfoType
728
728
  */
729
729
  type UpdateStoredInfoTypeCallback = (error: (Error|null), response?: google.privacy.dlp.v2.StoredInfoType) => void;
730
730
 
731
731
  /**
732
- * Callback as used by {@link google.privacy.dlp.v2.DlpService#getStoredInfoType}.
732
+ * Callback as used by {@link google.privacy.dlp.v2.DlpService|getStoredInfoType}.
733
733
  * @param error Error, if any
734
734
  * @param [response] StoredInfoType
735
735
  */
736
736
  type GetStoredInfoTypeCallback = (error: (Error|null), response?: google.privacy.dlp.v2.StoredInfoType) => void;
737
737
 
738
738
  /**
739
- * Callback as used by {@link google.privacy.dlp.v2.DlpService#listStoredInfoTypes}.
739
+ * Callback as used by {@link google.privacy.dlp.v2.DlpService|listStoredInfoTypes}.
740
740
  * @param error Error, if any
741
741
  * @param [response] ListStoredInfoTypesResponse
742
742
  */
743
743
  type ListStoredInfoTypesCallback = (error: (Error|null), response?: google.privacy.dlp.v2.ListStoredInfoTypesResponse) => void;
744
744
 
745
745
  /**
746
- * Callback as used by {@link google.privacy.dlp.v2.DlpService#deleteStoredInfoType}.
746
+ * Callback as used by {@link google.privacy.dlp.v2.DlpService|deleteStoredInfoType}.
747
747
  * @param error Error, if any
748
748
  * @param [response] Empty
749
749
  */
750
750
  type DeleteStoredInfoTypeCallback = (error: (Error|null), response?: google.protobuf.Empty) => void;
751
751
 
752
752
  /**
753
- * Callback as used by {@link google.privacy.dlp.v2.DlpService#hybridInspectDlpJob}.
753
+ * Callback as used by {@link google.privacy.dlp.v2.DlpService|hybridInspectDlpJob}.
754
754
  * @param error Error, if any
755
755
  * @param [response] HybridInspectResponse
756
756
  */
757
757
  type HybridInspectDlpJobCallback = (error: (Error|null), response?: google.privacy.dlp.v2.HybridInspectResponse) => void;
758
758
 
759
759
  /**
760
- * Callback as used by {@link google.privacy.dlp.v2.DlpService#finishDlpJob}.
760
+ * Callback as used by {@link google.privacy.dlp.v2.DlpService|finishDlpJob}.
761
761
  * @param error Error, if any
762
762
  * @param [response] Empty
763
763
  */
@@ -1605,6 +1605,8 @@ export namespace google {
1605
1605
  TEXT_UTF8 = 5,
1606
1606
  WORD_DOCUMENT = 7,
1607
1607
  PDF = 8,
1608
+ POWERPOINT_DOCUMENT = 9,
1609
+ EXCEL_DOCUMENT = 10,
1608
1610
  AVRO = 11,
1609
1611
  CSV = 12,
1610
1612
  TSV = 13
@@ -12441,6 +12443,13 @@ export namespace google {
12441
12443
 
12442
12444
  namespace TransformationSummary {
12443
12445
 
12446
+ /** TransformationResultCode enum. */
12447
+ enum TransformationResultCode {
12448
+ TRANSFORMATION_RESULT_CODE_UNSPECIFIED = 0,
12449
+ SUCCESS = 1,
12450
+ ERROR = 2
12451
+ }
12452
+
12444
12453
  /** Properties of a SummaryResult. */
12445
12454
  interface ISummaryResult {
12446
12455
 
@@ -12542,13 +12551,6 @@ export namespace google {
12542
12551
  */
12543
12552
  public toJSON(): { [k: string]: any };
12544
12553
  }
12545
-
12546
- /** TransformationResultCode enum. */
12547
- enum TransformationResultCode {
12548
- TRANSFORMATION_RESULT_CODE_UNSPECIFIED = 0,
12549
- SUCCESS = 1,
12550
- ERROR = 2
12551
- }
12552
12554
  }
12553
12555
 
12554
12556
  /** Properties of a Schedule. */
@@ -18692,6 +18694,16 @@ export namespace google {
18692
18694
  public toJSON(): { [k: string]: any };
18693
18695
  }
18694
18696
 
18697
+ /** Likelihood enum. */
18698
+ enum Likelihood {
18699
+ LIKELIHOOD_UNSPECIFIED = 0,
18700
+ VERY_UNLIKELY = 1,
18701
+ UNLIKELY = 2,
18702
+ POSSIBLE = 3,
18703
+ LIKELY = 4,
18704
+ VERY_LIKELY = 5
18705
+ }
18706
+
18695
18707
  /** Properties of a StoredType. */
18696
18708
  interface IStoredType {
18697
18709
 
@@ -18788,16 +18800,6 @@ export namespace google {
18788
18800
  public toJSON(): { [k: string]: any };
18789
18801
  }
18790
18802
 
18791
- /** Likelihood enum. */
18792
- enum Likelihood {
18793
- LIKELIHOOD_UNSPECIFIED = 0,
18794
- VERY_UNLIKELY = 1,
18795
- UNLIKELY = 2,
18796
- POSSIBLE = 3,
18797
- LIKELY = 4,
18798
- VERY_LIKELY = 5
18799
- }
18800
-
18801
18803
  /** Properties of a CustomInfoType. */
18802
18804
  interface ICustomInfoType {
18803
18805
 
@@ -20079,6 +20081,21 @@ export namespace google {
20079
20081
  public toJSON(): { [k: string]: any };
20080
20082
  }
20081
20083
 
20084
+ /** FileType enum. */
20085
+ enum FileType {
20086
+ FILE_TYPE_UNSPECIFIED = 0,
20087
+ BINARY_FILE = 1,
20088
+ TEXT_FILE = 2,
20089
+ IMAGE = 3,
20090
+ WORD = 5,
20091
+ PDF = 6,
20092
+ AVRO = 7,
20093
+ CSV = 8,
20094
+ TSV = 9,
20095
+ POWERPOINT = 11,
20096
+ EXCEL = 12
20097
+ }
20098
+
20082
20099
  /** Properties of a CloudStorageRegexFileSet. */
20083
20100
  interface ICloudStorageRegexFileSet {
20084
20101
 
@@ -20951,19 +20968,6 @@ export namespace google {
20951
20968
  }
20952
20969
  }
20953
20970
 
20954
- /** FileType enum. */
20955
- enum FileType {
20956
- FILE_TYPE_UNSPECIFIED = 0,
20957
- BINARY_FILE = 1,
20958
- TEXT_FILE = 2,
20959
- IMAGE = 3,
20960
- WORD = 5,
20961
- PDF = 6,
20962
- AVRO = 7,
20963
- CSV = 8,
20964
- TSV = 9
20965
- }
20966
-
20967
20971
  /** Properties of a HybridOptions. */
20968
20972
  interface IHybridOptions {
20969
20973
 
@@ -21951,590 +21955,590 @@ export namespace google {
21951
21955
  /** Namespace api. */
21952
21956
  namespace api {
21953
21957
 
21954
- /** FieldBehavior enum. */
21955
- enum FieldBehavior {
21956
- FIELD_BEHAVIOR_UNSPECIFIED = 0,
21957
- OPTIONAL = 1,
21958
- REQUIRED = 2,
21959
- OUTPUT_ONLY = 3,
21960
- INPUT_ONLY = 4,
21961
- IMMUTABLE = 5,
21962
- UNORDERED_LIST = 6,
21963
- NON_EMPTY_DEFAULT = 7
21964
- }
21965
-
21966
- /** Properties of a ResourceDescriptor. */
21967
- interface IResourceDescriptor {
21968
-
21969
- /** ResourceDescriptor type */
21970
- type?: (string|null);
21971
-
21972
- /** ResourceDescriptor pattern */
21973
- pattern?: (string[]|null);
21974
-
21975
- /** ResourceDescriptor nameField */
21976
- nameField?: (string|null);
21977
-
21978
- /** ResourceDescriptor history */
21979
- history?: (google.api.ResourceDescriptor.History|keyof typeof google.api.ResourceDescriptor.History|null);
21980
-
21981
- /** ResourceDescriptor plural */
21982
- plural?: (string|null);
21958
+ /** Properties of a Http. */
21959
+ interface IHttp {
21983
21960
 
21984
- /** ResourceDescriptor singular */
21985
- singular?: (string|null);
21961
+ /** Http rules */
21962
+ rules?: (google.api.IHttpRule[]|null);
21986
21963
 
21987
- /** ResourceDescriptor style */
21988
- style?: (google.api.ResourceDescriptor.Style[]|null);
21964
+ /** Http fullyDecodeReservedExpansion */
21965
+ fullyDecodeReservedExpansion?: (boolean|null);
21989
21966
  }
21990
21967
 
21991
- /** Represents a ResourceDescriptor. */
21992
- class ResourceDescriptor implements IResourceDescriptor {
21968
+ /** Represents a Http. */
21969
+ class Http implements IHttp {
21993
21970
 
21994
21971
  /**
21995
- * Constructs a new ResourceDescriptor.
21972
+ * Constructs a new Http.
21996
21973
  * @param [properties] Properties to set
21997
21974
  */
21998
- constructor(properties?: google.api.IResourceDescriptor);
21999
-
22000
- /** ResourceDescriptor type. */
22001
- public type: string;
22002
-
22003
- /** ResourceDescriptor pattern. */
22004
- public pattern: string[];
22005
-
22006
- /** ResourceDescriptor nameField. */
22007
- public nameField: string;
22008
-
22009
- /** ResourceDescriptor history. */
22010
- public history: (google.api.ResourceDescriptor.History|keyof typeof google.api.ResourceDescriptor.History);
22011
-
22012
- /** ResourceDescriptor plural. */
22013
- public plural: string;
21975
+ constructor(properties?: google.api.IHttp);
22014
21976
 
22015
- /** ResourceDescriptor singular. */
22016
- public singular: string;
21977
+ /** Http rules. */
21978
+ public rules: google.api.IHttpRule[];
22017
21979
 
22018
- /** ResourceDescriptor style. */
22019
- public style: google.api.ResourceDescriptor.Style[];
21980
+ /** Http fullyDecodeReservedExpansion. */
21981
+ public fullyDecodeReservedExpansion: boolean;
22020
21982
 
22021
21983
  /**
22022
- * Creates a new ResourceDescriptor instance using the specified properties.
21984
+ * Creates a new Http instance using the specified properties.
22023
21985
  * @param [properties] Properties to set
22024
- * @returns ResourceDescriptor instance
21986
+ * @returns Http instance
22025
21987
  */
22026
- public static create(properties?: google.api.IResourceDescriptor): google.api.ResourceDescriptor;
21988
+ public static create(properties?: google.api.IHttp): google.api.Http;
22027
21989
 
22028
21990
  /**
22029
- * Encodes the specified ResourceDescriptor message. Does not implicitly {@link google.api.ResourceDescriptor.verify|verify} messages.
22030
- * @param message ResourceDescriptor message or plain object to encode
21991
+ * Encodes the specified Http message. Does not implicitly {@link google.api.Http.verify|verify} messages.
21992
+ * @param message Http message or plain object to encode
22031
21993
  * @param [writer] Writer to encode to
22032
21994
  * @returns Writer
22033
21995
  */
22034
- public static encode(message: google.api.IResourceDescriptor, writer?: $protobuf.Writer): $protobuf.Writer;
21996
+ public static encode(message: google.api.IHttp, writer?: $protobuf.Writer): $protobuf.Writer;
22035
21997
 
22036
21998
  /**
22037
- * Encodes the specified ResourceDescriptor message, length delimited. Does not implicitly {@link google.api.ResourceDescriptor.verify|verify} messages.
22038
- * @param message ResourceDescriptor message or plain object to encode
21999
+ * Encodes the specified Http message, length delimited. Does not implicitly {@link google.api.Http.verify|verify} messages.
22000
+ * @param message Http message or plain object to encode
22039
22001
  * @param [writer] Writer to encode to
22040
22002
  * @returns Writer
22041
22003
  */
22042
- public static encodeDelimited(message: google.api.IResourceDescriptor, writer?: $protobuf.Writer): $protobuf.Writer;
22004
+ public static encodeDelimited(message: google.api.IHttp, writer?: $protobuf.Writer): $protobuf.Writer;
22043
22005
 
22044
22006
  /**
22045
- * Decodes a ResourceDescriptor message from the specified reader or buffer.
22007
+ * Decodes a Http message from the specified reader or buffer.
22046
22008
  * @param reader Reader or buffer to decode from
22047
22009
  * @param [length] Message length if known beforehand
22048
- * @returns ResourceDescriptor
22010
+ * @returns Http
22049
22011
  * @throws {Error} If the payload is not a reader or valid buffer
22050
22012
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
22051
22013
  */
22052
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.ResourceDescriptor;
22014
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.Http;
22053
22015
 
22054
22016
  /**
22055
- * Decodes a ResourceDescriptor message from the specified reader or buffer, length delimited.
22017
+ * Decodes a Http message from the specified reader or buffer, length delimited.
22056
22018
  * @param reader Reader or buffer to decode from
22057
- * @returns ResourceDescriptor
22019
+ * @returns Http
22058
22020
  * @throws {Error} If the payload is not a reader or valid buffer
22059
22021
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
22060
22022
  */
22061
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.ResourceDescriptor;
22023
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.Http;
22062
22024
 
22063
22025
  /**
22064
- * Verifies a ResourceDescriptor message.
22026
+ * Verifies a Http message.
22065
22027
  * @param message Plain object to verify
22066
22028
  * @returns `null` if valid, otherwise the reason why it is not
22067
22029
  */
22068
22030
  public static verify(message: { [k: string]: any }): (string|null);
22069
22031
 
22070
22032
  /**
22071
- * Creates a ResourceDescriptor message from a plain object. Also converts values to their respective internal types.
22033
+ * Creates a Http message from a plain object. Also converts values to their respective internal types.
22072
22034
  * @param object Plain object
22073
- * @returns ResourceDescriptor
22035
+ * @returns Http
22074
22036
  */
22075
- public static fromObject(object: { [k: string]: any }): google.api.ResourceDescriptor;
22037
+ public static fromObject(object: { [k: string]: any }): google.api.Http;
22076
22038
 
22077
22039
  /**
22078
- * Creates a plain object from a ResourceDescriptor message. Also converts values to other types if specified.
22079
- * @param message ResourceDescriptor
22040
+ * Creates a plain object from a Http message. Also converts values to other types if specified.
22041
+ * @param message Http
22080
22042
  * @param [options] Conversion options
22081
22043
  * @returns Plain object
22082
22044
  */
22083
- public static toObject(message: google.api.ResourceDescriptor, options?: $protobuf.IConversionOptions): { [k: string]: any };
22045
+ public static toObject(message: google.api.Http, options?: $protobuf.IConversionOptions): { [k: string]: any };
22084
22046
 
22085
22047
  /**
22086
- * Converts this ResourceDescriptor to JSON.
22048
+ * Converts this Http to JSON.
22087
22049
  * @returns JSON object
22088
22050
  */
22089
22051
  public toJSON(): { [k: string]: any };
22090
22052
  }
22091
22053
 
22092
- namespace ResourceDescriptor {
22054
+ /** Properties of a HttpRule. */
22055
+ interface IHttpRule {
22093
22056
 
22094
- /** History enum. */
22095
- enum History {
22096
- HISTORY_UNSPECIFIED = 0,
22097
- ORIGINALLY_SINGLE_PATTERN = 1,
22098
- FUTURE_MULTI_PATTERN = 2
22099
- }
22057
+ /** HttpRule selector */
22058
+ selector?: (string|null);
22100
22059
 
22101
- /** Style enum. */
22102
- enum Style {
22103
- STYLE_UNSPECIFIED = 0,
22104
- DECLARATIVE_FRIENDLY = 1
22105
- }
22106
- }
22060
+ /** HttpRule get */
22061
+ get?: (string|null);
22107
22062
 
22108
- /** Properties of a ResourceReference. */
22109
- interface IResourceReference {
22063
+ /** HttpRule put */
22064
+ put?: (string|null);
22110
22065
 
22111
- /** ResourceReference type */
22112
- type?: (string|null);
22066
+ /** HttpRule post */
22067
+ post?: (string|null);
22113
22068
 
22114
- /** ResourceReference childType */
22115
- childType?: (string|null);
22116
- }
22069
+ /** HttpRule delete */
22070
+ "delete"?: (string|null);
22117
22071
 
22118
- /** Represents a ResourceReference. */
22119
- class ResourceReference implements IResourceReference {
22072
+ /** HttpRule patch */
22073
+ patch?: (string|null);
22120
22074
 
22121
- /**
22122
- * Constructs a new ResourceReference.
22123
- * @param [properties] Properties to set
22124
- */
22125
- constructor(properties?: google.api.IResourceReference);
22075
+ /** HttpRule custom */
22076
+ custom?: (google.api.ICustomHttpPattern|null);
22126
22077
 
22127
- /** ResourceReference type. */
22128
- public type: string;
22078
+ /** HttpRule body */
22079
+ body?: (string|null);
22129
22080
 
22130
- /** ResourceReference childType. */
22131
- public childType: string;
22081
+ /** HttpRule responseBody */
22082
+ responseBody?: (string|null);
22083
+
22084
+ /** HttpRule additionalBindings */
22085
+ additionalBindings?: (google.api.IHttpRule[]|null);
22086
+ }
22087
+
22088
+ /** Represents a HttpRule. */
22089
+ class HttpRule implements IHttpRule {
22132
22090
 
22133
22091
  /**
22134
- * Creates a new ResourceReference instance using the specified properties.
22092
+ * Constructs a new HttpRule.
22135
22093
  * @param [properties] Properties to set
22136
- * @returns ResourceReference instance
22137
22094
  */
22138
- public static create(properties?: google.api.IResourceReference): google.api.ResourceReference;
22095
+ constructor(properties?: google.api.IHttpRule);
22139
22096
 
22140
- /**
22141
- * Encodes the specified ResourceReference message. Does not implicitly {@link google.api.ResourceReference.verify|verify} messages.
22142
- * @param message ResourceReference message or plain object to encode
22143
- * @param [writer] Writer to encode to
22144
- * @returns Writer
22145
- */
22146
- public static encode(message: google.api.IResourceReference, writer?: $protobuf.Writer): $protobuf.Writer;
22097
+ /** HttpRule selector. */
22098
+ public selector: string;
22147
22099
 
22148
- /**
22149
- * Encodes the specified ResourceReference message, length delimited. Does not implicitly {@link google.api.ResourceReference.verify|verify} messages.
22150
- * @param message ResourceReference message or plain object to encode
22151
- * @param [writer] Writer to encode to
22152
- * @returns Writer
22153
- */
22154
- public static encodeDelimited(message: google.api.IResourceReference, writer?: $protobuf.Writer): $protobuf.Writer;
22100
+ /** HttpRule get. */
22101
+ public get?: (string|null);
22155
22102
 
22156
- /**
22157
- * Decodes a ResourceReference message from the specified reader or buffer.
22103
+ /** HttpRule put. */
22104
+ public put?: (string|null);
22105
+
22106
+ /** HttpRule post. */
22107
+ public post?: (string|null);
22108
+
22109
+ /** HttpRule delete. */
22110
+ public delete?: (string|null);
22111
+
22112
+ /** HttpRule patch. */
22113
+ public patch?: (string|null);
22114
+
22115
+ /** HttpRule custom. */
22116
+ public custom?: (google.api.ICustomHttpPattern|null);
22117
+
22118
+ /** HttpRule body. */
22119
+ public body: string;
22120
+
22121
+ /** HttpRule responseBody. */
22122
+ public responseBody: string;
22123
+
22124
+ /** HttpRule additionalBindings. */
22125
+ public additionalBindings: google.api.IHttpRule[];
22126
+
22127
+ /** HttpRule pattern. */
22128
+ public pattern?: ("get"|"put"|"post"|"delete"|"patch"|"custom");
22129
+
22130
+ /**
22131
+ * Creates a new HttpRule instance using the specified properties.
22132
+ * @param [properties] Properties to set
22133
+ * @returns HttpRule instance
22134
+ */
22135
+ public static create(properties?: google.api.IHttpRule): google.api.HttpRule;
22136
+
22137
+ /**
22138
+ * Encodes the specified HttpRule message. Does not implicitly {@link google.api.HttpRule.verify|verify} messages.
22139
+ * @param message HttpRule message or plain object to encode
22140
+ * @param [writer] Writer to encode to
22141
+ * @returns Writer
22142
+ */
22143
+ public static encode(message: google.api.IHttpRule, writer?: $protobuf.Writer): $protobuf.Writer;
22144
+
22145
+ /**
22146
+ * Encodes the specified HttpRule message, length delimited. Does not implicitly {@link google.api.HttpRule.verify|verify} messages.
22147
+ * @param message HttpRule message or plain object to encode
22148
+ * @param [writer] Writer to encode to
22149
+ * @returns Writer
22150
+ */
22151
+ public static encodeDelimited(message: google.api.IHttpRule, writer?: $protobuf.Writer): $protobuf.Writer;
22152
+
22153
+ /**
22154
+ * Decodes a HttpRule message from the specified reader or buffer.
22158
22155
  * @param reader Reader or buffer to decode from
22159
22156
  * @param [length] Message length if known beforehand
22160
- * @returns ResourceReference
22157
+ * @returns HttpRule
22161
22158
  * @throws {Error} If the payload is not a reader or valid buffer
22162
22159
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
22163
22160
  */
22164
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.ResourceReference;
22161
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.HttpRule;
22165
22162
 
22166
22163
  /**
22167
- * Decodes a ResourceReference message from the specified reader or buffer, length delimited.
22164
+ * Decodes a HttpRule message from the specified reader or buffer, length delimited.
22168
22165
  * @param reader Reader or buffer to decode from
22169
- * @returns ResourceReference
22166
+ * @returns HttpRule
22170
22167
  * @throws {Error} If the payload is not a reader or valid buffer
22171
22168
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
22172
22169
  */
22173
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.ResourceReference;
22170
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.HttpRule;
22174
22171
 
22175
22172
  /**
22176
- * Verifies a ResourceReference message.
22173
+ * Verifies a HttpRule message.
22177
22174
  * @param message Plain object to verify
22178
22175
  * @returns `null` if valid, otherwise the reason why it is not
22179
22176
  */
22180
22177
  public static verify(message: { [k: string]: any }): (string|null);
22181
22178
 
22182
22179
  /**
22183
- * Creates a ResourceReference message from a plain object. Also converts values to their respective internal types.
22180
+ * Creates a HttpRule message from a plain object. Also converts values to their respective internal types.
22184
22181
  * @param object Plain object
22185
- * @returns ResourceReference
22182
+ * @returns HttpRule
22186
22183
  */
22187
- public static fromObject(object: { [k: string]: any }): google.api.ResourceReference;
22184
+ public static fromObject(object: { [k: string]: any }): google.api.HttpRule;
22188
22185
 
22189
22186
  /**
22190
- * Creates a plain object from a ResourceReference message. Also converts values to other types if specified.
22191
- * @param message ResourceReference
22187
+ * Creates a plain object from a HttpRule message. Also converts values to other types if specified.
22188
+ * @param message HttpRule
22192
22189
  * @param [options] Conversion options
22193
22190
  * @returns Plain object
22194
22191
  */
22195
- public static toObject(message: google.api.ResourceReference, options?: $protobuf.IConversionOptions): { [k: string]: any };
22192
+ public static toObject(message: google.api.HttpRule, options?: $protobuf.IConversionOptions): { [k: string]: any };
22196
22193
 
22197
22194
  /**
22198
- * Converts this ResourceReference to JSON.
22195
+ * Converts this HttpRule to JSON.
22199
22196
  * @returns JSON object
22200
22197
  */
22201
22198
  public toJSON(): { [k: string]: any };
22202
22199
  }
22203
22200
 
22204
- /** Properties of a Http. */
22205
- interface IHttp {
22201
+ /** Properties of a CustomHttpPattern. */
22202
+ interface ICustomHttpPattern {
22206
22203
 
22207
- /** Http rules */
22208
- rules?: (google.api.IHttpRule[]|null);
22204
+ /** CustomHttpPattern kind */
22205
+ kind?: (string|null);
22209
22206
 
22210
- /** Http fullyDecodeReservedExpansion */
22211
- fullyDecodeReservedExpansion?: (boolean|null);
22207
+ /** CustomHttpPattern path */
22208
+ path?: (string|null);
22212
22209
  }
22213
22210
 
22214
- /** Represents a Http. */
22215
- class Http implements IHttp {
22211
+ /** Represents a CustomHttpPattern. */
22212
+ class CustomHttpPattern implements ICustomHttpPattern {
22216
22213
 
22217
22214
  /**
22218
- * Constructs a new Http.
22215
+ * Constructs a new CustomHttpPattern.
22219
22216
  * @param [properties] Properties to set
22220
22217
  */
22221
- constructor(properties?: google.api.IHttp);
22218
+ constructor(properties?: google.api.ICustomHttpPattern);
22222
22219
 
22223
- /** Http rules. */
22224
- public rules: google.api.IHttpRule[];
22220
+ /** CustomHttpPattern kind. */
22221
+ public kind: string;
22225
22222
 
22226
- /** Http fullyDecodeReservedExpansion. */
22227
- public fullyDecodeReservedExpansion: boolean;
22223
+ /** CustomHttpPattern path. */
22224
+ public path: string;
22228
22225
 
22229
22226
  /**
22230
- * Creates a new Http instance using the specified properties.
22227
+ * Creates a new CustomHttpPattern instance using the specified properties.
22231
22228
  * @param [properties] Properties to set
22232
- * @returns Http instance
22229
+ * @returns CustomHttpPattern instance
22233
22230
  */
22234
- public static create(properties?: google.api.IHttp): google.api.Http;
22231
+ public static create(properties?: google.api.ICustomHttpPattern): google.api.CustomHttpPattern;
22235
22232
 
22236
22233
  /**
22237
- * Encodes the specified Http message. Does not implicitly {@link google.api.Http.verify|verify} messages.
22238
- * @param message Http message or plain object to encode
22234
+ * Encodes the specified CustomHttpPattern message. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages.
22235
+ * @param message CustomHttpPattern message or plain object to encode
22239
22236
  * @param [writer] Writer to encode to
22240
22237
  * @returns Writer
22241
22238
  */
22242
- public static encode(message: google.api.IHttp, writer?: $protobuf.Writer): $protobuf.Writer;
22239
+ public static encode(message: google.api.ICustomHttpPattern, writer?: $protobuf.Writer): $protobuf.Writer;
22243
22240
 
22244
22241
  /**
22245
- * Encodes the specified Http message, length delimited. Does not implicitly {@link google.api.Http.verify|verify} messages.
22246
- * @param message Http message or plain object to encode
22242
+ * Encodes the specified CustomHttpPattern message, length delimited. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages.
22243
+ * @param message CustomHttpPattern message or plain object to encode
22247
22244
  * @param [writer] Writer to encode to
22248
22245
  * @returns Writer
22249
22246
  */
22250
- public static encodeDelimited(message: google.api.IHttp, writer?: $protobuf.Writer): $protobuf.Writer;
22247
+ public static encodeDelimited(message: google.api.ICustomHttpPattern, writer?: $protobuf.Writer): $protobuf.Writer;
22251
22248
 
22252
22249
  /**
22253
- * Decodes a Http message from the specified reader or buffer.
22250
+ * Decodes a CustomHttpPattern message from the specified reader or buffer.
22254
22251
  * @param reader Reader or buffer to decode from
22255
22252
  * @param [length] Message length if known beforehand
22256
- * @returns Http
22253
+ * @returns CustomHttpPattern
22257
22254
  * @throws {Error} If the payload is not a reader or valid buffer
22258
22255
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
22259
22256
  */
22260
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.Http;
22257
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.CustomHttpPattern;
22261
22258
 
22262
22259
  /**
22263
- * Decodes a Http message from the specified reader or buffer, length delimited.
22260
+ * Decodes a CustomHttpPattern message from the specified reader or buffer, length delimited.
22264
22261
  * @param reader Reader or buffer to decode from
22265
- * @returns Http
22262
+ * @returns CustomHttpPattern
22266
22263
  * @throws {Error} If the payload is not a reader or valid buffer
22267
22264
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
22268
22265
  */
22269
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.Http;
22266
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.CustomHttpPattern;
22270
22267
 
22271
22268
  /**
22272
- * Verifies a Http message.
22269
+ * Verifies a CustomHttpPattern message.
22273
22270
  * @param message Plain object to verify
22274
22271
  * @returns `null` if valid, otherwise the reason why it is not
22275
22272
  */
22276
22273
  public static verify(message: { [k: string]: any }): (string|null);
22277
22274
 
22278
22275
  /**
22279
- * Creates a Http message from a plain object. Also converts values to their respective internal types.
22276
+ * Creates a CustomHttpPattern message from a plain object. Also converts values to their respective internal types.
22280
22277
  * @param object Plain object
22281
- * @returns Http
22278
+ * @returns CustomHttpPattern
22282
22279
  */
22283
- public static fromObject(object: { [k: string]: any }): google.api.Http;
22280
+ public static fromObject(object: { [k: string]: any }): google.api.CustomHttpPattern;
22284
22281
 
22285
22282
  /**
22286
- * Creates a plain object from a Http message. Also converts values to other types if specified.
22287
- * @param message Http
22283
+ * Creates a plain object from a CustomHttpPattern message. Also converts values to other types if specified.
22284
+ * @param message CustomHttpPattern
22288
22285
  * @param [options] Conversion options
22289
22286
  * @returns Plain object
22290
22287
  */
22291
- public static toObject(message: google.api.Http, options?: $protobuf.IConversionOptions): { [k: string]: any };
22288
+ public static toObject(message: google.api.CustomHttpPattern, options?: $protobuf.IConversionOptions): { [k: string]: any };
22292
22289
 
22293
22290
  /**
22294
- * Converts this Http to JSON.
22291
+ * Converts this CustomHttpPattern to JSON.
22295
22292
  * @returns JSON object
22296
22293
  */
22297
22294
  public toJSON(): { [k: string]: any };
22298
22295
  }
22299
22296
 
22300
- /** Properties of a HttpRule. */
22301
- interface IHttpRule {
22302
-
22303
- /** HttpRule selector */
22304
- selector?: (string|null);
22305
-
22306
- /** HttpRule get */
22307
- get?: (string|null);
22297
+ /** FieldBehavior enum. */
22298
+ enum FieldBehavior {
22299
+ FIELD_BEHAVIOR_UNSPECIFIED = 0,
22300
+ OPTIONAL = 1,
22301
+ REQUIRED = 2,
22302
+ OUTPUT_ONLY = 3,
22303
+ INPUT_ONLY = 4,
22304
+ IMMUTABLE = 5,
22305
+ UNORDERED_LIST = 6,
22306
+ NON_EMPTY_DEFAULT = 7
22307
+ }
22308
22308
 
22309
- /** HttpRule put */
22310
- put?: (string|null);
22309
+ /** Properties of a ResourceDescriptor. */
22310
+ interface IResourceDescriptor {
22311
22311
 
22312
- /** HttpRule post */
22313
- post?: (string|null);
22312
+ /** ResourceDescriptor type */
22313
+ type?: (string|null);
22314
22314
 
22315
- /** HttpRule delete */
22316
- "delete"?: (string|null);
22315
+ /** ResourceDescriptor pattern */
22316
+ pattern?: (string[]|null);
22317
22317
 
22318
- /** HttpRule patch */
22319
- patch?: (string|null);
22318
+ /** ResourceDescriptor nameField */
22319
+ nameField?: (string|null);
22320
22320
 
22321
- /** HttpRule custom */
22322
- custom?: (google.api.ICustomHttpPattern|null);
22321
+ /** ResourceDescriptor history */
22322
+ history?: (google.api.ResourceDescriptor.History|keyof typeof google.api.ResourceDescriptor.History|null);
22323
22323
 
22324
- /** HttpRule body */
22325
- body?: (string|null);
22324
+ /** ResourceDescriptor plural */
22325
+ plural?: (string|null);
22326
22326
 
22327
- /** HttpRule responseBody */
22328
- responseBody?: (string|null);
22327
+ /** ResourceDescriptor singular */
22328
+ singular?: (string|null);
22329
22329
 
22330
- /** HttpRule additionalBindings */
22331
- additionalBindings?: (google.api.IHttpRule[]|null);
22330
+ /** ResourceDescriptor style */
22331
+ style?: (google.api.ResourceDescriptor.Style[]|null);
22332
22332
  }
22333
22333
 
22334
- /** Represents a HttpRule. */
22335
- class HttpRule implements IHttpRule {
22334
+ /** Represents a ResourceDescriptor. */
22335
+ class ResourceDescriptor implements IResourceDescriptor {
22336
22336
 
22337
22337
  /**
22338
- * Constructs a new HttpRule.
22338
+ * Constructs a new ResourceDescriptor.
22339
22339
  * @param [properties] Properties to set
22340
22340
  */
22341
- constructor(properties?: google.api.IHttpRule);
22342
-
22343
- /** HttpRule selector. */
22344
- public selector: string;
22345
-
22346
- /** HttpRule get. */
22347
- public get?: (string|null);
22348
-
22349
- /** HttpRule put. */
22350
- public put?: (string|null);
22351
-
22352
- /** HttpRule post. */
22353
- public post?: (string|null);
22341
+ constructor(properties?: google.api.IResourceDescriptor);
22354
22342
 
22355
- /** HttpRule delete. */
22356
- public delete?: (string|null);
22343
+ /** ResourceDescriptor type. */
22344
+ public type: string;
22357
22345
 
22358
- /** HttpRule patch. */
22359
- public patch?: (string|null);
22346
+ /** ResourceDescriptor pattern. */
22347
+ public pattern: string[];
22360
22348
 
22361
- /** HttpRule custom. */
22362
- public custom?: (google.api.ICustomHttpPattern|null);
22349
+ /** ResourceDescriptor nameField. */
22350
+ public nameField: string;
22363
22351
 
22364
- /** HttpRule body. */
22365
- public body: string;
22352
+ /** ResourceDescriptor history. */
22353
+ public history: (google.api.ResourceDescriptor.History|keyof typeof google.api.ResourceDescriptor.History);
22366
22354
 
22367
- /** HttpRule responseBody. */
22368
- public responseBody: string;
22355
+ /** ResourceDescriptor plural. */
22356
+ public plural: string;
22369
22357
 
22370
- /** HttpRule additionalBindings. */
22371
- public additionalBindings: google.api.IHttpRule[];
22358
+ /** ResourceDescriptor singular. */
22359
+ public singular: string;
22372
22360
 
22373
- /** HttpRule pattern. */
22374
- public pattern?: ("get"|"put"|"post"|"delete"|"patch"|"custom");
22361
+ /** ResourceDescriptor style. */
22362
+ public style: google.api.ResourceDescriptor.Style[];
22375
22363
 
22376
22364
  /**
22377
- * Creates a new HttpRule instance using the specified properties.
22365
+ * Creates a new ResourceDescriptor instance using the specified properties.
22378
22366
  * @param [properties] Properties to set
22379
- * @returns HttpRule instance
22367
+ * @returns ResourceDescriptor instance
22380
22368
  */
22381
- public static create(properties?: google.api.IHttpRule): google.api.HttpRule;
22369
+ public static create(properties?: google.api.IResourceDescriptor): google.api.ResourceDescriptor;
22382
22370
 
22383
22371
  /**
22384
- * Encodes the specified HttpRule message. Does not implicitly {@link google.api.HttpRule.verify|verify} messages.
22385
- * @param message HttpRule message or plain object to encode
22372
+ * Encodes the specified ResourceDescriptor message. Does not implicitly {@link google.api.ResourceDescriptor.verify|verify} messages.
22373
+ * @param message ResourceDescriptor message or plain object to encode
22386
22374
  * @param [writer] Writer to encode to
22387
22375
  * @returns Writer
22388
22376
  */
22389
- public static encode(message: google.api.IHttpRule, writer?: $protobuf.Writer): $protobuf.Writer;
22377
+ public static encode(message: google.api.IResourceDescriptor, writer?: $protobuf.Writer): $protobuf.Writer;
22390
22378
 
22391
22379
  /**
22392
- * Encodes the specified HttpRule message, length delimited. Does not implicitly {@link google.api.HttpRule.verify|verify} messages.
22393
- * @param message HttpRule message or plain object to encode
22380
+ * Encodes the specified ResourceDescriptor message, length delimited. Does not implicitly {@link google.api.ResourceDescriptor.verify|verify} messages.
22381
+ * @param message ResourceDescriptor message or plain object to encode
22394
22382
  * @param [writer] Writer to encode to
22395
22383
  * @returns Writer
22396
22384
  */
22397
- public static encodeDelimited(message: google.api.IHttpRule, writer?: $protobuf.Writer): $protobuf.Writer;
22385
+ public static encodeDelimited(message: google.api.IResourceDescriptor, writer?: $protobuf.Writer): $protobuf.Writer;
22398
22386
 
22399
22387
  /**
22400
- * Decodes a HttpRule message from the specified reader or buffer.
22388
+ * Decodes a ResourceDescriptor message from the specified reader or buffer.
22401
22389
  * @param reader Reader or buffer to decode from
22402
22390
  * @param [length] Message length if known beforehand
22403
- * @returns HttpRule
22391
+ * @returns ResourceDescriptor
22404
22392
  * @throws {Error} If the payload is not a reader or valid buffer
22405
22393
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
22406
22394
  */
22407
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.HttpRule;
22395
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.ResourceDescriptor;
22408
22396
 
22409
22397
  /**
22410
- * Decodes a HttpRule message from the specified reader or buffer, length delimited.
22398
+ * Decodes a ResourceDescriptor message from the specified reader or buffer, length delimited.
22411
22399
  * @param reader Reader or buffer to decode from
22412
- * @returns HttpRule
22400
+ * @returns ResourceDescriptor
22413
22401
  * @throws {Error} If the payload is not a reader or valid buffer
22414
22402
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
22415
22403
  */
22416
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.HttpRule;
22404
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.ResourceDescriptor;
22417
22405
 
22418
22406
  /**
22419
- * Verifies a HttpRule message.
22407
+ * Verifies a ResourceDescriptor message.
22420
22408
  * @param message Plain object to verify
22421
22409
  * @returns `null` if valid, otherwise the reason why it is not
22422
22410
  */
22423
22411
  public static verify(message: { [k: string]: any }): (string|null);
22424
22412
 
22425
22413
  /**
22426
- * Creates a HttpRule message from a plain object. Also converts values to their respective internal types.
22414
+ * Creates a ResourceDescriptor message from a plain object. Also converts values to their respective internal types.
22427
22415
  * @param object Plain object
22428
- * @returns HttpRule
22416
+ * @returns ResourceDescriptor
22429
22417
  */
22430
- public static fromObject(object: { [k: string]: any }): google.api.HttpRule;
22418
+ public static fromObject(object: { [k: string]: any }): google.api.ResourceDescriptor;
22431
22419
 
22432
22420
  /**
22433
- * Creates a plain object from a HttpRule message. Also converts values to other types if specified.
22434
- * @param message HttpRule
22421
+ * Creates a plain object from a ResourceDescriptor message. Also converts values to other types if specified.
22422
+ * @param message ResourceDescriptor
22435
22423
  * @param [options] Conversion options
22436
22424
  * @returns Plain object
22437
22425
  */
22438
- public static toObject(message: google.api.HttpRule, options?: $protobuf.IConversionOptions): { [k: string]: any };
22426
+ public static toObject(message: google.api.ResourceDescriptor, options?: $protobuf.IConversionOptions): { [k: string]: any };
22439
22427
 
22440
22428
  /**
22441
- * Converts this HttpRule to JSON.
22429
+ * Converts this ResourceDescriptor to JSON.
22442
22430
  * @returns JSON object
22443
22431
  */
22444
22432
  public toJSON(): { [k: string]: any };
22445
22433
  }
22446
22434
 
22447
- /** Properties of a CustomHttpPattern. */
22448
- interface ICustomHttpPattern {
22435
+ namespace ResourceDescriptor {
22449
22436
 
22450
- /** CustomHttpPattern kind */
22451
- kind?: (string|null);
22437
+ /** History enum. */
22438
+ enum History {
22439
+ HISTORY_UNSPECIFIED = 0,
22440
+ ORIGINALLY_SINGLE_PATTERN = 1,
22441
+ FUTURE_MULTI_PATTERN = 2
22442
+ }
22452
22443
 
22453
- /** CustomHttpPattern path */
22454
- path?: (string|null);
22444
+ /** Style enum. */
22445
+ enum Style {
22446
+ STYLE_UNSPECIFIED = 0,
22447
+ DECLARATIVE_FRIENDLY = 1
22448
+ }
22455
22449
  }
22456
22450
 
22457
- /** Represents a CustomHttpPattern. */
22458
- class CustomHttpPattern implements ICustomHttpPattern {
22451
+ /** Properties of a ResourceReference. */
22452
+ interface IResourceReference {
22453
+
22454
+ /** ResourceReference type */
22455
+ type?: (string|null);
22456
+
22457
+ /** ResourceReference childType */
22458
+ childType?: (string|null);
22459
+ }
22460
+
22461
+ /** Represents a ResourceReference. */
22462
+ class ResourceReference implements IResourceReference {
22459
22463
 
22460
22464
  /**
22461
- * Constructs a new CustomHttpPattern.
22465
+ * Constructs a new ResourceReference.
22462
22466
  * @param [properties] Properties to set
22463
22467
  */
22464
- constructor(properties?: google.api.ICustomHttpPattern);
22468
+ constructor(properties?: google.api.IResourceReference);
22465
22469
 
22466
- /** CustomHttpPattern kind. */
22467
- public kind: string;
22470
+ /** ResourceReference type. */
22471
+ public type: string;
22468
22472
 
22469
- /** CustomHttpPattern path. */
22470
- public path: string;
22473
+ /** ResourceReference childType. */
22474
+ public childType: string;
22471
22475
 
22472
22476
  /**
22473
- * Creates a new CustomHttpPattern instance using the specified properties.
22477
+ * Creates a new ResourceReference instance using the specified properties.
22474
22478
  * @param [properties] Properties to set
22475
- * @returns CustomHttpPattern instance
22479
+ * @returns ResourceReference instance
22476
22480
  */
22477
- public static create(properties?: google.api.ICustomHttpPattern): google.api.CustomHttpPattern;
22481
+ public static create(properties?: google.api.IResourceReference): google.api.ResourceReference;
22478
22482
 
22479
22483
  /**
22480
- * Encodes the specified CustomHttpPattern message. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages.
22481
- * @param message CustomHttpPattern message or plain object to encode
22484
+ * Encodes the specified ResourceReference message. Does not implicitly {@link google.api.ResourceReference.verify|verify} messages.
22485
+ * @param message ResourceReference message or plain object to encode
22482
22486
  * @param [writer] Writer to encode to
22483
22487
  * @returns Writer
22484
22488
  */
22485
- public static encode(message: google.api.ICustomHttpPattern, writer?: $protobuf.Writer): $protobuf.Writer;
22489
+ public static encode(message: google.api.IResourceReference, writer?: $protobuf.Writer): $protobuf.Writer;
22486
22490
 
22487
22491
  /**
22488
- * Encodes the specified CustomHttpPattern message, length delimited. Does not implicitly {@link google.api.CustomHttpPattern.verify|verify} messages.
22489
- * @param message CustomHttpPattern message or plain object to encode
22492
+ * Encodes the specified ResourceReference message, length delimited. Does not implicitly {@link google.api.ResourceReference.verify|verify} messages.
22493
+ * @param message ResourceReference message or plain object to encode
22490
22494
  * @param [writer] Writer to encode to
22491
22495
  * @returns Writer
22492
22496
  */
22493
- public static encodeDelimited(message: google.api.ICustomHttpPattern, writer?: $protobuf.Writer): $protobuf.Writer;
22497
+ public static encodeDelimited(message: google.api.IResourceReference, writer?: $protobuf.Writer): $protobuf.Writer;
22494
22498
 
22495
22499
  /**
22496
- * Decodes a CustomHttpPattern message from the specified reader or buffer.
22500
+ * Decodes a ResourceReference message from the specified reader or buffer.
22497
22501
  * @param reader Reader or buffer to decode from
22498
22502
  * @param [length] Message length if known beforehand
22499
- * @returns CustomHttpPattern
22503
+ * @returns ResourceReference
22500
22504
  * @throws {Error} If the payload is not a reader or valid buffer
22501
22505
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
22502
22506
  */
22503
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.CustomHttpPattern;
22507
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.ResourceReference;
22504
22508
 
22505
22509
  /**
22506
- * Decodes a CustomHttpPattern message from the specified reader or buffer, length delimited.
22510
+ * Decodes a ResourceReference message from the specified reader or buffer, length delimited.
22507
22511
  * @param reader Reader or buffer to decode from
22508
- * @returns CustomHttpPattern
22512
+ * @returns ResourceReference
22509
22513
  * @throws {Error} If the payload is not a reader or valid buffer
22510
22514
  * @throws {$protobuf.util.ProtocolError} If required fields are missing
22511
22515
  */
22512
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.CustomHttpPattern;
22516
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.ResourceReference;
22513
22517
 
22514
22518
  /**
22515
- * Verifies a CustomHttpPattern message.
22519
+ * Verifies a ResourceReference message.
22516
22520
  * @param message Plain object to verify
22517
22521
  * @returns `null` if valid, otherwise the reason why it is not
22518
22522
  */
22519
22523
  public static verify(message: { [k: string]: any }): (string|null);
22520
22524
 
22521
22525
  /**
22522
- * Creates a CustomHttpPattern message from a plain object. Also converts values to their respective internal types.
22526
+ * Creates a ResourceReference message from a plain object. Also converts values to their respective internal types.
22523
22527
  * @param object Plain object
22524
- * @returns CustomHttpPattern
22528
+ * @returns ResourceReference
22525
22529
  */
22526
- public static fromObject(object: { [k: string]: any }): google.api.CustomHttpPattern;
22530
+ public static fromObject(object: { [k: string]: any }): google.api.ResourceReference;
22527
22531
 
22528
22532
  /**
22529
- * Creates a plain object from a CustomHttpPattern message. Also converts values to other types if specified.
22530
- * @param message CustomHttpPattern
22533
+ * Creates a plain object from a ResourceReference message. Also converts values to other types if specified.
22534
+ * @param message ResourceReference
22531
22535
  * @param [options] Conversion options
22532
22536
  * @returns Plain object
22533
22537
  */
22534
- public static toObject(message: google.api.CustomHttpPattern, options?: $protobuf.IConversionOptions): { [k: string]: any };
22538
+ public static toObject(message: google.api.ResourceReference, options?: $protobuf.IConversionOptions): { [k: string]: any };
22535
22539
 
22536
22540
  /**
22537
- * Converts this CustomHttpPattern to JSON.
22541
+ * Converts this ResourceReference to JSON.
22538
22542
  * @returns JSON object
22539
22543
  */
22540
22544
  public toJSON(): { [k: string]: any };
@@ -24931,11 +24935,11 @@ export namespace google {
24931
24935
  /** MethodOptions uninterpretedOption */
24932
24936
  uninterpretedOption?: (google.protobuf.IUninterpretedOption[]|null);
24933
24937
 
24934
- /** MethodOptions .google.api.methodSignature */
24935
- ".google.api.methodSignature"?: (string[]|null);
24936
-
24937
24938
  /** MethodOptions .google.api.http */
24938
24939
  ".google.api.http"?: (google.api.IHttpRule|null);
24940
+
24941
+ /** MethodOptions .google.api.methodSignature */
24942
+ ".google.api.methodSignature"?: (string[]|null);
24939
24943
  }
24940
24944
 
24941
24945
  /** Represents a MethodOptions. */