@google-cloud/spanner 5.17.0 → 5.18.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.
@@ -5420,6 +5420,12 @@ export namespace google {
5420
5420
 
5421
5421
  /** Backup databaseDialect */
5422
5422
  databaseDialect?: (google.spanner.admin.database.v1.DatabaseDialect|keyof typeof google.spanner.admin.database.v1.DatabaseDialect|null);
5423
+
5424
+ /** Backup referencingBackups */
5425
+ referencingBackups?: (string[]|null);
5426
+
5427
+ /** Backup maxExpireTime */
5428
+ maxExpireTime?: (google.protobuf.ITimestamp|null);
5423
5429
  }
5424
5430
 
5425
5431
  /** Represents a Backup. */
@@ -5461,6 +5467,12 @@ export namespace google {
5461
5467
  /** Backup databaseDialect. */
5462
5468
  public databaseDialect: (google.spanner.admin.database.v1.DatabaseDialect|keyof typeof google.spanner.admin.database.v1.DatabaseDialect);
5463
5469
 
5470
+ /** Backup referencingBackups. */
5471
+ public referencingBackups: string[];
5472
+
5473
+ /** Backup maxExpireTime. */
5474
+ public maxExpireTime?: (google.protobuf.ITimestamp|null);
5475
+
5464
5476
  /**
5465
5477
  * Creates a new Backup instance using the specified properties.
5466
5478
  * @param [properties] Properties to set
@@ -5758,6 +5770,228 @@ export namespace google {
5758
5770
  public toJSON(): { [k: string]: any };
5759
5771
  }
5760
5772
 
5773
+ /** Properties of a CopyBackupRequest. */
5774
+ interface ICopyBackupRequest {
5775
+
5776
+ /** CopyBackupRequest parent */
5777
+ parent?: (string|null);
5778
+
5779
+ /** CopyBackupRequest backupId */
5780
+ backupId?: (string|null);
5781
+
5782
+ /** CopyBackupRequest sourceBackup */
5783
+ sourceBackup?: (string|null);
5784
+
5785
+ /** CopyBackupRequest expireTime */
5786
+ expireTime?: (google.protobuf.ITimestamp|null);
5787
+
5788
+ /** CopyBackupRequest encryptionConfig */
5789
+ encryptionConfig?: (google.spanner.admin.database.v1.ICopyBackupEncryptionConfig|null);
5790
+ }
5791
+
5792
+ /** Represents a CopyBackupRequest. */
5793
+ class CopyBackupRequest implements ICopyBackupRequest {
5794
+
5795
+ /**
5796
+ * Constructs a new CopyBackupRequest.
5797
+ * @param [properties] Properties to set
5798
+ */
5799
+ constructor(properties?: google.spanner.admin.database.v1.ICopyBackupRequest);
5800
+
5801
+ /** CopyBackupRequest parent. */
5802
+ public parent: string;
5803
+
5804
+ /** CopyBackupRequest backupId. */
5805
+ public backupId: string;
5806
+
5807
+ /** CopyBackupRequest sourceBackup. */
5808
+ public sourceBackup: string;
5809
+
5810
+ /** CopyBackupRequest expireTime. */
5811
+ public expireTime?: (google.protobuf.ITimestamp|null);
5812
+
5813
+ /** CopyBackupRequest encryptionConfig. */
5814
+ public encryptionConfig?: (google.spanner.admin.database.v1.ICopyBackupEncryptionConfig|null);
5815
+
5816
+ /**
5817
+ * Creates a new CopyBackupRequest instance using the specified properties.
5818
+ * @param [properties] Properties to set
5819
+ * @returns CopyBackupRequest instance
5820
+ */
5821
+ public static create(properties?: google.spanner.admin.database.v1.ICopyBackupRequest): google.spanner.admin.database.v1.CopyBackupRequest;
5822
+
5823
+ /**
5824
+ * Encodes the specified CopyBackupRequest message. Does not implicitly {@link google.spanner.admin.database.v1.CopyBackupRequest.verify|verify} messages.
5825
+ * @param message CopyBackupRequest message or plain object to encode
5826
+ * @param [writer] Writer to encode to
5827
+ * @returns Writer
5828
+ */
5829
+ public static encode(message: google.spanner.admin.database.v1.ICopyBackupRequest, writer?: $protobuf.Writer): $protobuf.Writer;
5830
+
5831
+ /**
5832
+ * Encodes the specified CopyBackupRequest message, length delimited. Does not implicitly {@link google.spanner.admin.database.v1.CopyBackupRequest.verify|verify} messages.
5833
+ * @param message CopyBackupRequest message or plain object to encode
5834
+ * @param [writer] Writer to encode to
5835
+ * @returns Writer
5836
+ */
5837
+ public static encodeDelimited(message: google.spanner.admin.database.v1.ICopyBackupRequest, writer?: $protobuf.Writer): $protobuf.Writer;
5838
+
5839
+ /**
5840
+ * Decodes a CopyBackupRequest message from the specified reader or buffer.
5841
+ * @param reader Reader or buffer to decode from
5842
+ * @param [length] Message length if known beforehand
5843
+ * @returns CopyBackupRequest
5844
+ * @throws {Error} If the payload is not a reader or valid buffer
5845
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
5846
+ */
5847
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.spanner.admin.database.v1.CopyBackupRequest;
5848
+
5849
+ /**
5850
+ * Decodes a CopyBackupRequest message from the specified reader or buffer, length delimited.
5851
+ * @param reader Reader or buffer to decode from
5852
+ * @returns CopyBackupRequest
5853
+ * @throws {Error} If the payload is not a reader or valid buffer
5854
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
5855
+ */
5856
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.spanner.admin.database.v1.CopyBackupRequest;
5857
+
5858
+ /**
5859
+ * Verifies a CopyBackupRequest message.
5860
+ * @param message Plain object to verify
5861
+ * @returns `null` if valid, otherwise the reason why it is not
5862
+ */
5863
+ public static verify(message: { [k: string]: any }): (string|null);
5864
+
5865
+ /**
5866
+ * Creates a CopyBackupRequest message from a plain object. Also converts values to their respective internal types.
5867
+ * @param object Plain object
5868
+ * @returns CopyBackupRequest
5869
+ */
5870
+ public static fromObject(object: { [k: string]: any }): google.spanner.admin.database.v1.CopyBackupRequest;
5871
+
5872
+ /**
5873
+ * Creates a plain object from a CopyBackupRequest message. Also converts values to other types if specified.
5874
+ * @param message CopyBackupRequest
5875
+ * @param [options] Conversion options
5876
+ * @returns Plain object
5877
+ */
5878
+ public static toObject(message: google.spanner.admin.database.v1.CopyBackupRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
5879
+
5880
+ /**
5881
+ * Converts this CopyBackupRequest to JSON.
5882
+ * @returns JSON object
5883
+ */
5884
+ public toJSON(): { [k: string]: any };
5885
+ }
5886
+
5887
+ /** Properties of a CopyBackupMetadata. */
5888
+ interface ICopyBackupMetadata {
5889
+
5890
+ /** CopyBackupMetadata name */
5891
+ name?: (string|null);
5892
+
5893
+ /** CopyBackupMetadata sourceBackup */
5894
+ sourceBackup?: (string|null);
5895
+
5896
+ /** CopyBackupMetadata progress */
5897
+ progress?: (google.spanner.admin.database.v1.IOperationProgress|null);
5898
+
5899
+ /** CopyBackupMetadata cancelTime */
5900
+ cancelTime?: (google.protobuf.ITimestamp|null);
5901
+ }
5902
+
5903
+ /** Represents a CopyBackupMetadata. */
5904
+ class CopyBackupMetadata implements ICopyBackupMetadata {
5905
+
5906
+ /**
5907
+ * Constructs a new CopyBackupMetadata.
5908
+ * @param [properties] Properties to set
5909
+ */
5910
+ constructor(properties?: google.spanner.admin.database.v1.ICopyBackupMetadata);
5911
+
5912
+ /** CopyBackupMetadata name. */
5913
+ public name: string;
5914
+
5915
+ /** CopyBackupMetadata sourceBackup. */
5916
+ public sourceBackup: string;
5917
+
5918
+ /** CopyBackupMetadata progress. */
5919
+ public progress?: (google.spanner.admin.database.v1.IOperationProgress|null);
5920
+
5921
+ /** CopyBackupMetadata cancelTime. */
5922
+ public cancelTime?: (google.protobuf.ITimestamp|null);
5923
+
5924
+ /**
5925
+ * Creates a new CopyBackupMetadata instance using the specified properties.
5926
+ * @param [properties] Properties to set
5927
+ * @returns CopyBackupMetadata instance
5928
+ */
5929
+ public static create(properties?: google.spanner.admin.database.v1.ICopyBackupMetadata): google.spanner.admin.database.v1.CopyBackupMetadata;
5930
+
5931
+ /**
5932
+ * Encodes the specified CopyBackupMetadata message. Does not implicitly {@link google.spanner.admin.database.v1.CopyBackupMetadata.verify|verify} messages.
5933
+ * @param message CopyBackupMetadata message or plain object to encode
5934
+ * @param [writer] Writer to encode to
5935
+ * @returns Writer
5936
+ */
5937
+ public static encode(message: google.spanner.admin.database.v1.ICopyBackupMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
5938
+
5939
+ /**
5940
+ * Encodes the specified CopyBackupMetadata message, length delimited. Does not implicitly {@link google.spanner.admin.database.v1.CopyBackupMetadata.verify|verify} messages.
5941
+ * @param message CopyBackupMetadata message or plain object to encode
5942
+ * @param [writer] Writer to encode to
5943
+ * @returns Writer
5944
+ */
5945
+ public static encodeDelimited(message: google.spanner.admin.database.v1.ICopyBackupMetadata, writer?: $protobuf.Writer): $protobuf.Writer;
5946
+
5947
+ /**
5948
+ * Decodes a CopyBackupMetadata message from the specified reader or buffer.
5949
+ * @param reader Reader or buffer to decode from
5950
+ * @param [length] Message length if known beforehand
5951
+ * @returns CopyBackupMetadata
5952
+ * @throws {Error} If the payload is not a reader or valid buffer
5953
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
5954
+ */
5955
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.spanner.admin.database.v1.CopyBackupMetadata;
5956
+
5957
+ /**
5958
+ * Decodes a CopyBackupMetadata message from the specified reader or buffer, length delimited.
5959
+ * @param reader Reader or buffer to decode from
5960
+ * @returns CopyBackupMetadata
5961
+ * @throws {Error} If the payload is not a reader or valid buffer
5962
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
5963
+ */
5964
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.spanner.admin.database.v1.CopyBackupMetadata;
5965
+
5966
+ /**
5967
+ * Verifies a CopyBackupMetadata message.
5968
+ * @param message Plain object to verify
5969
+ * @returns `null` if valid, otherwise the reason why it is not
5970
+ */
5971
+ public static verify(message: { [k: string]: any }): (string|null);
5972
+
5973
+ /**
5974
+ * Creates a CopyBackupMetadata message from a plain object. Also converts values to their respective internal types.
5975
+ * @param object Plain object
5976
+ * @returns CopyBackupMetadata
5977
+ */
5978
+ public static fromObject(object: { [k: string]: any }): google.spanner.admin.database.v1.CopyBackupMetadata;
5979
+
5980
+ /**
5981
+ * Creates a plain object from a CopyBackupMetadata message. Also converts values to other types if specified.
5982
+ * @param message CopyBackupMetadata
5983
+ * @param [options] Conversion options
5984
+ * @returns Plain object
5985
+ */
5986
+ public static toObject(message: google.spanner.admin.database.v1.CopyBackupMetadata, options?: $protobuf.IConversionOptions): { [k: string]: any };
5987
+
5988
+ /**
5989
+ * Converts this CopyBackupMetadata to JSON.
5990
+ * @returns JSON object
5991
+ */
5992
+ public toJSON(): { [k: string]: any };
5993
+ }
5994
+
5761
5995
  /** Properties of an UpdateBackupRequest. */
5762
5996
  interface IUpdateBackupRequest {
5763
5997
 
@@ -6657,6 +6891,113 @@ export namespace google {
6657
6891
  }
6658
6892
  }
6659
6893
 
6894
+ /** Properties of a CopyBackupEncryptionConfig. */
6895
+ interface ICopyBackupEncryptionConfig {
6896
+
6897
+ /** CopyBackupEncryptionConfig encryptionType */
6898
+ encryptionType?: (google.spanner.admin.database.v1.CopyBackupEncryptionConfig.EncryptionType|keyof typeof google.spanner.admin.database.v1.CopyBackupEncryptionConfig.EncryptionType|null);
6899
+
6900
+ /** CopyBackupEncryptionConfig kmsKeyName */
6901
+ kmsKeyName?: (string|null);
6902
+ }
6903
+
6904
+ /** Represents a CopyBackupEncryptionConfig. */
6905
+ class CopyBackupEncryptionConfig implements ICopyBackupEncryptionConfig {
6906
+
6907
+ /**
6908
+ * Constructs a new CopyBackupEncryptionConfig.
6909
+ * @param [properties] Properties to set
6910
+ */
6911
+ constructor(properties?: google.spanner.admin.database.v1.ICopyBackupEncryptionConfig);
6912
+
6913
+ /** CopyBackupEncryptionConfig encryptionType. */
6914
+ public encryptionType: (google.spanner.admin.database.v1.CopyBackupEncryptionConfig.EncryptionType|keyof typeof google.spanner.admin.database.v1.CopyBackupEncryptionConfig.EncryptionType);
6915
+
6916
+ /** CopyBackupEncryptionConfig kmsKeyName. */
6917
+ public kmsKeyName: string;
6918
+
6919
+ /**
6920
+ * Creates a new CopyBackupEncryptionConfig instance using the specified properties.
6921
+ * @param [properties] Properties to set
6922
+ * @returns CopyBackupEncryptionConfig instance
6923
+ */
6924
+ public static create(properties?: google.spanner.admin.database.v1.ICopyBackupEncryptionConfig): google.spanner.admin.database.v1.CopyBackupEncryptionConfig;
6925
+
6926
+ /**
6927
+ * Encodes the specified CopyBackupEncryptionConfig message. Does not implicitly {@link google.spanner.admin.database.v1.CopyBackupEncryptionConfig.verify|verify} messages.
6928
+ * @param message CopyBackupEncryptionConfig message or plain object to encode
6929
+ * @param [writer] Writer to encode to
6930
+ * @returns Writer
6931
+ */
6932
+ public static encode(message: google.spanner.admin.database.v1.ICopyBackupEncryptionConfig, writer?: $protobuf.Writer): $protobuf.Writer;
6933
+
6934
+ /**
6935
+ * Encodes the specified CopyBackupEncryptionConfig message, length delimited. Does not implicitly {@link google.spanner.admin.database.v1.CopyBackupEncryptionConfig.verify|verify} messages.
6936
+ * @param message CopyBackupEncryptionConfig message or plain object to encode
6937
+ * @param [writer] Writer to encode to
6938
+ * @returns Writer
6939
+ */
6940
+ public static encodeDelimited(message: google.spanner.admin.database.v1.ICopyBackupEncryptionConfig, writer?: $protobuf.Writer): $protobuf.Writer;
6941
+
6942
+ /**
6943
+ * Decodes a CopyBackupEncryptionConfig message from the specified reader or buffer.
6944
+ * @param reader Reader or buffer to decode from
6945
+ * @param [length] Message length if known beforehand
6946
+ * @returns CopyBackupEncryptionConfig
6947
+ * @throws {Error} If the payload is not a reader or valid buffer
6948
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
6949
+ */
6950
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.spanner.admin.database.v1.CopyBackupEncryptionConfig;
6951
+
6952
+ /**
6953
+ * Decodes a CopyBackupEncryptionConfig message from the specified reader or buffer, length delimited.
6954
+ * @param reader Reader or buffer to decode from
6955
+ * @returns CopyBackupEncryptionConfig
6956
+ * @throws {Error} If the payload is not a reader or valid buffer
6957
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
6958
+ */
6959
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.spanner.admin.database.v1.CopyBackupEncryptionConfig;
6960
+
6961
+ /**
6962
+ * Verifies a CopyBackupEncryptionConfig message.
6963
+ * @param message Plain object to verify
6964
+ * @returns `null` if valid, otherwise the reason why it is not
6965
+ */
6966
+ public static verify(message: { [k: string]: any }): (string|null);
6967
+
6968
+ /**
6969
+ * Creates a CopyBackupEncryptionConfig message from a plain object. Also converts values to their respective internal types.
6970
+ * @param object Plain object
6971
+ * @returns CopyBackupEncryptionConfig
6972
+ */
6973
+ public static fromObject(object: { [k: string]: any }): google.spanner.admin.database.v1.CopyBackupEncryptionConfig;
6974
+
6975
+ /**
6976
+ * Creates a plain object from a CopyBackupEncryptionConfig message. Also converts values to other types if specified.
6977
+ * @param message CopyBackupEncryptionConfig
6978
+ * @param [options] Conversion options
6979
+ * @returns Plain object
6980
+ */
6981
+ public static toObject(message: google.spanner.admin.database.v1.CopyBackupEncryptionConfig, options?: $protobuf.IConversionOptions): { [k: string]: any };
6982
+
6983
+ /**
6984
+ * Converts this CopyBackupEncryptionConfig to JSON.
6985
+ * @returns JSON object
6986
+ */
6987
+ public toJSON(): { [k: string]: any };
6988
+ }
6989
+
6990
+ namespace CopyBackupEncryptionConfig {
6991
+
6992
+ /** EncryptionType enum. */
6993
+ enum EncryptionType {
6994
+ ENCRYPTION_TYPE_UNSPECIFIED = 0,
6995
+ USE_CONFIG_DEFAULT_OR_BACKUP_ENCRYPTION = 1,
6996
+ GOOGLE_DEFAULT_ENCRYPTION = 2,
6997
+ CUSTOMER_MANAGED_ENCRYPTION = 3
6998
+ }
6999
+ }
7000
+
6660
7001
  /** Properties of an OperationProgress. */
6661
7002
  interface IOperationProgress {
6662
7003
 
@@ -7128,6 +7469,20 @@ export namespace google {
7128
7469
  */
7129
7470
  public createBackup(request: google.spanner.admin.database.v1.ICreateBackupRequest): Promise<google.longrunning.Operation>;
7130
7471
 
7472
+ /**
7473
+ * Calls CopyBackup.
7474
+ * @param request CopyBackupRequest message or plain object
7475
+ * @param callback Node-style callback called with the error, if any, and Operation
7476
+ */
7477
+ public copyBackup(request: google.spanner.admin.database.v1.ICopyBackupRequest, callback: google.spanner.admin.database.v1.DatabaseAdmin.CopyBackupCallback): void;
7478
+
7479
+ /**
7480
+ * Calls CopyBackup.
7481
+ * @param request CopyBackupRequest message or plain object
7482
+ * @returns Promise
7483
+ */
7484
+ public copyBackup(request: google.spanner.admin.database.v1.ICopyBackupRequest): Promise<google.longrunning.Operation>;
7485
+
7131
7486
  /**
7132
7487
  * Calls GetBackup.
7133
7488
  * @param request GetBackupRequest message or plain object
@@ -7299,6 +7654,13 @@ export namespace google {
7299
7654
  */
7300
7655
  type CreateBackupCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
7301
7656
 
7657
+ /**
7658
+ * Callback as used by {@link google.spanner.admin.database.v1.DatabaseAdmin|copyBackup}.
7659
+ * @param error Error, if any
7660
+ * @param [response] Operation
7661
+ */
7662
+ type CopyBackupCallback = (error: (Error|null), response?: google.longrunning.Operation) => void;
7663
+
7302
7664
  /**
7303
7665
  * Callback as used by {@link google.spanner.admin.database.v1.DatabaseAdmin|getBackup}.
7304
7666
  * @param error Error, if any
@@ -16221,21 +16583,271 @@ export namespace google {
16221
16583
  /** Namespace api. */
16222
16584
  namespace api {
16223
16585
 
16224
- /** Properties of a Http. */
16225
- interface IHttp {
16586
+ /** FieldBehavior enum. */
16587
+ enum FieldBehavior {
16588
+ FIELD_BEHAVIOR_UNSPECIFIED = 0,
16589
+ OPTIONAL = 1,
16590
+ REQUIRED = 2,
16591
+ OUTPUT_ONLY = 3,
16592
+ INPUT_ONLY = 4,
16593
+ IMMUTABLE = 5,
16594
+ UNORDERED_LIST = 6,
16595
+ NON_EMPTY_DEFAULT = 7
16596
+ }
16226
16597
 
16227
- /** Http rules */
16228
- rules?: (google.api.IHttpRule[]|null);
16598
+ /** Properties of a ResourceDescriptor. */
16599
+ interface IResourceDescriptor {
16229
16600
 
16230
- /** Http fullyDecodeReservedExpansion */
16231
- fullyDecodeReservedExpansion?: (boolean|null);
16232
- }
16601
+ /** ResourceDescriptor type */
16602
+ type?: (string|null);
16233
16603
 
16234
- /** Represents a Http. */
16235
- class Http implements IHttp {
16604
+ /** ResourceDescriptor pattern */
16605
+ pattern?: (string[]|null);
16236
16606
 
16237
- /**
16238
- * Constructs a new Http.
16607
+ /** ResourceDescriptor nameField */
16608
+ nameField?: (string|null);
16609
+
16610
+ /** ResourceDescriptor history */
16611
+ history?: (google.api.ResourceDescriptor.History|keyof typeof google.api.ResourceDescriptor.History|null);
16612
+
16613
+ /** ResourceDescriptor plural */
16614
+ plural?: (string|null);
16615
+
16616
+ /** ResourceDescriptor singular */
16617
+ singular?: (string|null);
16618
+
16619
+ /** ResourceDescriptor style */
16620
+ style?: (google.api.ResourceDescriptor.Style[]|null);
16621
+ }
16622
+
16623
+ /** Represents a ResourceDescriptor. */
16624
+ class ResourceDescriptor implements IResourceDescriptor {
16625
+
16626
+ /**
16627
+ * Constructs a new ResourceDescriptor.
16628
+ * @param [properties] Properties to set
16629
+ */
16630
+ constructor(properties?: google.api.IResourceDescriptor);
16631
+
16632
+ /** ResourceDescriptor type. */
16633
+ public type: string;
16634
+
16635
+ /** ResourceDescriptor pattern. */
16636
+ public pattern: string[];
16637
+
16638
+ /** ResourceDescriptor nameField. */
16639
+ public nameField: string;
16640
+
16641
+ /** ResourceDescriptor history. */
16642
+ public history: (google.api.ResourceDescriptor.History|keyof typeof google.api.ResourceDescriptor.History);
16643
+
16644
+ /** ResourceDescriptor plural. */
16645
+ public plural: string;
16646
+
16647
+ /** ResourceDescriptor singular. */
16648
+ public singular: string;
16649
+
16650
+ /** ResourceDescriptor style. */
16651
+ public style: google.api.ResourceDescriptor.Style[];
16652
+
16653
+ /**
16654
+ * Creates a new ResourceDescriptor instance using the specified properties.
16655
+ * @param [properties] Properties to set
16656
+ * @returns ResourceDescriptor instance
16657
+ */
16658
+ public static create(properties?: google.api.IResourceDescriptor): google.api.ResourceDescriptor;
16659
+
16660
+ /**
16661
+ * Encodes the specified ResourceDescriptor message. Does not implicitly {@link google.api.ResourceDescriptor.verify|verify} messages.
16662
+ * @param message ResourceDescriptor message or plain object to encode
16663
+ * @param [writer] Writer to encode to
16664
+ * @returns Writer
16665
+ */
16666
+ public static encode(message: google.api.IResourceDescriptor, writer?: $protobuf.Writer): $protobuf.Writer;
16667
+
16668
+ /**
16669
+ * Encodes the specified ResourceDescriptor message, length delimited. Does not implicitly {@link google.api.ResourceDescriptor.verify|verify} messages.
16670
+ * @param message ResourceDescriptor message or plain object to encode
16671
+ * @param [writer] Writer to encode to
16672
+ * @returns Writer
16673
+ */
16674
+ public static encodeDelimited(message: google.api.IResourceDescriptor, writer?: $protobuf.Writer): $protobuf.Writer;
16675
+
16676
+ /**
16677
+ * Decodes a ResourceDescriptor message from the specified reader or buffer.
16678
+ * @param reader Reader or buffer to decode from
16679
+ * @param [length] Message length if known beforehand
16680
+ * @returns ResourceDescriptor
16681
+ * @throws {Error} If the payload is not a reader or valid buffer
16682
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
16683
+ */
16684
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.ResourceDescriptor;
16685
+
16686
+ /**
16687
+ * Decodes a ResourceDescriptor message from the specified reader or buffer, length delimited.
16688
+ * @param reader Reader or buffer to decode from
16689
+ * @returns ResourceDescriptor
16690
+ * @throws {Error} If the payload is not a reader or valid buffer
16691
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
16692
+ */
16693
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.ResourceDescriptor;
16694
+
16695
+ /**
16696
+ * Verifies a ResourceDescriptor message.
16697
+ * @param message Plain object to verify
16698
+ * @returns `null` if valid, otherwise the reason why it is not
16699
+ */
16700
+ public static verify(message: { [k: string]: any }): (string|null);
16701
+
16702
+ /**
16703
+ * Creates a ResourceDescriptor message from a plain object. Also converts values to their respective internal types.
16704
+ * @param object Plain object
16705
+ * @returns ResourceDescriptor
16706
+ */
16707
+ public static fromObject(object: { [k: string]: any }): google.api.ResourceDescriptor;
16708
+
16709
+ /**
16710
+ * Creates a plain object from a ResourceDescriptor message. Also converts values to other types if specified.
16711
+ * @param message ResourceDescriptor
16712
+ * @param [options] Conversion options
16713
+ * @returns Plain object
16714
+ */
16715
+ public static toObject(message: google.api.ResourceDescriptor, options?: $protobuf.IConversionOptions): { [k: string]: any };
16716
+
16717
+ /**
16718
+ * Converts this ResourceDescriptor to JSON.
16719
+ * @returns JSON object
16720
+ */
16721
+ public toJSON(): { [k: string]: any };
16722
+ }
16723
+
16724
+ namespace ResourceDescriptor {
16725
+
16726
+ /** History enum. */
16727
+ enum History {
16728
+ HISTORY_UNSPECIFIED = 0,
16729
+ ORIGINALLY_SINGLE_PATTERN = 1,
16730
+ FUTURE_MULTI_PATTERN = 2
16731
+ }
16732
+
16733
+ /** Style enum. */
16734
+ enum Style {
16735
+ STYLE_UNSPECIFIED = 0,
16736
+ DECLARATIVE_FRIENDLY = 1
16737
+ }
16738
+ }
16739
+
16740
+ /** Properties of a ResourceReference. */
16741
+ interface IResourceReference {
16742
+
16743
+ /** ResourceReference type */
16744
+ type?: (string|null);
16745
+
16746
+ /** ResourceReference childType */
16747
+ childType?: (string|null);
16748
+ }
16749
+
16750
+ /** Represents a ResourceReference. */
16751
+ class ResourceReference implements IResourceReference {
16752
+
16753
+ /**
16754
+ * Constructs a new ResourceReference.
16755
+ * @param [properties] Properties to set
16756
+ */
16757
+ constructor(properties?: google.api.IResourceReference);
16758
+
16759
+ /** ResourceReference type. */
16760
+ public type: string;
16761
+
16762
+ /** ResourceReference childType. */
16763
+ public childType: string;
16764
+
16765
+ /**
16766
+ * Creates a new ResourceReference instance using the specified properties.
16767
+ * @param [properties] Properties to set
16768
+ * @returns ResourceReference instance
16769
+ */
16770
+ public static create(properties?: google.api.IResourceReference): google.api.ResourceReference;
16771
+
16772
+ /**
16773
+ * Encodes the specified ResourceReference message. Does not implicitly {@link google.api.ResourceReference.verify|verify} messages.
16774
+ * @param message ResourceReference message or plain object to encode
16775
+ * @param [writer] Writer to encode to
16776
+ * @returns Writer
16777
+ */
16778
+ public static encode(message: google.api.IResourceReference, writer?: $protobuf.Writer): $protobuf.Writer;
16779
+
16780
+ /**
16781
+ * Encodes the specified ResourceReference message, length delimited. Does not implicitly {@link google.api.ResourceReference.verify|verify} messages.
16782
+ * @param message ResourceReference message or plain object to encode
16783
+ * @param [writer] Writer to encode to
16784
+ * @returns Writer
16785
+ */
16786
+ public static encodeDelimited(message: google.api.IResourceReference, writer?: $protobuf.Writer): $protobuf.Writer;
16787
+
16788
+ /**
16789
+ * Decodes a ResourceReference message from the specified reader or buffer.
16790
+ * @param reader Reader or buffer to decode from
16791
+ * @param [length] Message length if known beforehand
16792
+ * @returns ResourceReference
16793
+ * @throws {Error} If the payload is not a reader or valid buffer
16794
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
16795
+ */
16796
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.ResourceReference;
16797
+
16798
+ /**
16799
+ * Decodes a ResourceReference message from the specified reader or buffer, length delimited.
16800
+ * @param reader Reader or buffer to decode from
16801
+ * @returns ResourceReference
16802
+ * @throws {Error} If the payload is not a reader or valid buffer
16803
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
16804
+ */
16805
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.ResourceReference;
16806
+
16807
+ /**
16808
+ * Verifies a ResourceReference message.
16809
+ * @param message Plain object to verify
16810
+ * @returns `null` if valid, otherwise the reason why it is not
16811
+ */
16812
+ public static verify(message: { [k: string]: any }): (string|null);
16813
+
16814
+ /**
16815
+ * Creates a ResourceReference message from a plain object. Also converts values to their respective internal types.
16816
+ * @param object Plain object
16817
+ * @returns ResourceReference
16818
+ */
16819
+ public static fromObject(object: { [k: string]: any }): google.api.ResourceReference;
16820
+
16821
+ /**
16822
+ * Creates a plain object from a ResourceReference message. Also converts values to other types if specified.
16823
+ * @param message ResourceReference
16824
+ * @param [options] Conversion options
16825
+ * @returns Plain object
16826
+ */
16827
+ public static toObject(message: google.api.ResourceReference, options?: $protobuf.IConversionOptions): { [k: string]: any };
16828
+
16829
+ /**
16830
+ * Converts this ResourceReference to JSON.
16831
+ * @returns JSON object
16832
+ */
16833
+ public toJSON(): { [k: string]: any };
16834
+ }
16835
+
16836
+ /** Properties of a Http. */
16837
+ interface IHttp {
16838
+
16839
+ /** Http rules */
16840
+ rules?: (google.api.IHttpRule[]|null);
16841
+
16842
+ /** Http fullyDecodeReservedExpansion */
16843
+ fullyDecodeReservedExpansion?: (boolean|null);
16844
+ }
16845
+
16846
+ /** Represents a Http. */
16847
+ class Http implements IHttp {
16848
+
16849
+ /**
16850
+ * Constructs a new Http.
16239
16851
  * @param [properties] Properties to set
16240
16852
  */
16241
16853
  constructor(properties?: google.api.IHttp);
@@ -16559,256 +17171,6 @@ export namespace google {
16559
17171
  */
16560
17172
  public toJSON(): { [k: string]: any };
16561
17173
  }
16562
-
16563
- /** FieldBehavior enum. */
16564
- enum FieldBehavior {
16565
- FIELD_BEHAVIOR_UNSPECIFIED = 0,
16566
- OPTIONAL = 1,
16567
- REQUIRED = 2,
16568
- OUTPUT_ONLY = 3,
16569
- INPUT_ONLY = 4,
16570
- IMMUTABLE = 5,
16571
- UNORDERED_LIST = 6,
16572
- NON_EMPTY_DEFAULT = 7
16573
- }
16574
-
16575
- /** Properties of a ResourceDescriptor. */
16576
- interface IResourceDescriptor {
16577
-
16578
- /** ResourceDescriptor type */
16579
- type?: (string|null);
16580
-
16581
- /** ResourceDescriptor pattern */
16582
- pattern?: (string[]|null);
16583
-
16584
- /** ResourceDescriptor nameField */
16585
- nameField?: (string|null);
16586
-
16587
- /** ResourceDescriptor history */
16588
- history?: (google.api.ResourceDescriptor.History|keyof typeof google.api.ResourceDescriptor.History|null);
16589
-
16590
- /** ResourceDescriptor plural */
16591
- plural?: (string|null);
16592
-
16593
- /** ResourceDescriptor singular */
16594
- singular?: (string|null);
16595
-
16596
- /** ResourceDescriptor style */
16597
- style?: (google.api.ResourceDescriptor.Style[]|null);
16598
- }
16599
-
16600
- /** Represents a ResourceDescriptor. */
16601
- class ResourceDescriptor implements IResourceDescriptor {
16602
-
16603
- /**
16604
- * Constructs a new ResourceDescriptor.
16605
- * @param [properties] Properties to set
16606
- */
16607
- constructor(properties?: google.api.IResourceDescriptor);
16608
-
16609
- /** ResourceDescriptor type. */
16610
- public type: string;
16611
-
16612
- /** ResourceDescriptor pattern. */
16613
- public pattern: string[];
16614
-
16615
- /** ResourceDescriptor nameField. */
16616
- public nameField: string;
16617
-
16618
- /** ResourceDescriptor history. */
16619
- public history: (google.api.ResourceDescriptor.History|keyof typeof google.api.ResourceDescriptor.History);
16620
-
16621
- /** ResourceDescriptor plural. */
16622
- public plural: string;
16623
-
16624
- /** ResourceDescriptor singular. */
16625
- public singular: string;
16626
-
16627
- /** ResourceDescriptor style. */
16628
- public style: google.api.ResourceDescriptor.Style[];
16629
-
16630
- /**
16631
- * Creates a new ResourceDescriptor instance using the specified properties.
16632
- * @param [properties] Properties to set
16633
- * @returns ResourceDescriptor instance
16634
- */
16635
- public static create(properties?: google.api.IResourceDescriptor): google.api.ResourceDescriptor;
16636
-
16637
- /**
16638
- * Encodes the specified ResourceDescriptor message. Does not implicitly {@link google.api.ResourceDescriptor.verify|verify} messages.
16639
- * @param message ResourceDescriptor message or plain object to encode
16640
- * @param [writer] Writer to encode to
16641
- * @returns Writer
16642
- */
16643
- public static encode(message: google.api.IResourceDescriptor, writer?: $protobuf.Writer): $protobuf.Writer;
16644
-
16645
- /**
16646
- * Encodes the specified ResourceDescriptor message, length delimited. Does not implicitly {@link google.api.ResourceDescriptor.verify|verify} messages.
16647
- * @param message ResourceDescriptor message or plain object to encode
16648
- * @param [writer] Writer to encode to
16649
- * @returns Writer
16650
- */
16651
- public static encodeDelimited(message: google.api.IResourceDescriptor, writer?: $protobuf.Writer): $protobuf.Writer;
16652
-
16653
- /**
16654
- * Decodes a ResourceDescriptor message from the specified reader or buffer.
16655
- * @param reader Reader or buffer to decode from
16656
- * @param [length] Message length if known beforehand
16657
- * @returns ResourceDescriptor
16658
- * @throws {Error} If the payload is not a reader or valid buffer
16659
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
16660
- */
16661
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.ResourceDescriptor;
16662
-
16663
- /**
16664
- * Decodes a ResourceDescriptor message from the specified reader or buffer, length delimited.
16665
- * @param reader Reader or buffer to decode from
16666
- * @returns ResourceDescriptor
16667
- * @throws {Error} If the payload is not a reader or valid buffer
16668
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
16669
- */
16670
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.ResourceDescriptor;
16671
-
16672
- /**
16673
- * Verifies a ResourceDescriptor message.
16674
- * @param message Plain object to verify
16675
- * @returns `null` if valid, otherwise the reason why it is not
16676
- */
16677
- public static verify(message: { [k: string]: any }): (string|null);
16678
-
16679
- /**
16680
- * Creates a ResourceDescriptor message from a plain object. Also converts values to their respective internal types.
16681
- * @param object Plain object
16682
- * @returns ResourceDescriptor
16683
- */
16684
- public static fromObject(object: { [k: string]: any }): google.api.ResourceDescriptor;
16685
-
16686
- /**
16687
- * Creates a plain object from a ResourceDescriptor message. Also converts values to other types if specified.
16688
- * @param message ResourceDescriptor
16689
- * @param [options] Conversion options
16690
- * @returns Plain object
16691
- */
16692
- public static toObject(message: google.api.ResourceDescriptor, options?: $protobuf.IConversionOptions): { [k: string]: any };
16693
-
16694
- /**
16695
- * Converts this ResourceDescriptor to JSON.
16696
- * @returns JSON object
16697
- */
16698
- public toJSON(): { [k: string]: any };
16699
- }
16700
-
16701
- namespace ResourceDescriptor {
16702
-
16703
- /** History enum. */
16704
- enum History {
16705
- HISTORY_UNSPECIFIED = 0,
16706
- ORIGINALLY_SINGLE_PATTERN = 1,
16707
- FUTURE_MULTI_PATTERN = 2
16708
- }
16709
-
16710
- /** Style enum. */
16711
- enum Style {
16712
- STYLE_UNSPECIFIED = 0,
16713
- DECLARATIVE_FRIENDLY = 1
16714
- }
16715
- }
16716
-
16717
- /** Properties of a ResourceReference. */
16718
- interface IResourceReference {
16719
-
16720
- /** ResourceReference type */
16721
- type?: (string|null);
16722
-
16723
- /** ResourceReference childType */
16724
- childType?: (string|null);
16725
- }
16726
-
16727
- /** Represents a ResourceReference. */
16728
- class ResourceReference implements IResourceReference {
16729
-
16730
- /**
16731
- * Constructs a new ResourceReference.
16732
- * @param [properties] Properties to set
16733
- */
16734
- constructor(properties?: google.api.IResourceReference);
16735
-
16736
- /** ResourceReference type. */
16737
- public type: string;
16738
-
16739
- /** ResourceReference childType. */
16740
- public childType: string;
16741
-
16742
- /**
16743
- * Creates a new ResourceReference instance using the specified properties.
16744
- * @param [properties] Properties to set
16745
- * @returns ResourceReference instance
16746
- */
16747
- public static create(properties?: google.api.IResourceReference): google.api.ResourceReference;
16748
-
16749
- /**
16750
- * Encodes the specified ResourceReference message. Does not implicitly {@link google.api.ResourceReference.verify|verify} messages.
16751
- * @param message ResourceReference message or plain object to encode
16752
- * @param [writer] Writer to encode to
16753
- * @returns Writer
16754
- */
16755
- public static encode(message: google.api.IResourceReference, writer?: $protobuf.Writer): $protobuf.Writer;
16756
-
16757
- /**
16758
- * Encodes the specified ResourceReference message, length delimited. Does not implicitly {@link google.api.ResourceReference.verify|verify} messages.
16759
- * @param message ResourceReference message or plain object to encode
16760
- * @param [writer] Writer to encode to
16761
- * @returns Writer
16762
- */
16763
- public static encodeDelimited(message: google.api.IResourceReference, writer?: $protobuf.Writer): $protobuf.Writer;
16764
-
16765
- /**
16766
- * Decodes a ResourceReference message from the specified reader or buffer.
16767
- * @param reader Reader or buffer to decode from
16768
- * @param [length] Message length if known beforehand
16769
- * @returns ResourceReference
16770
- * @throws {Error} If the payload is not a reader or valid buffer
16771
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
16772
- */
16773
- public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.api.ResourceReference;
16774
-
16775
- /**
16776
- * Decodes a ResourceReference message from the specified reader or buffer, length delimited.
16777
- * @param reader Reader or buffer to decode from
16778
- * @returns ResourceReference
16779
- * @throws {Error} If the payload is not a reader or valid buffer
16780
- * @throws {$protobuf.util.ProtocolError} If required fields are missing
16781
- */
16782
- public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.api.ResourceReference;
16783
-
16784
- /**
16785
- * Verifies a ResourceReference message.
16786
- * @param message Plain object to verify
16787
- * @returns `null` if valid, otherwise the reason why it is not
16788
- */
16789
- public static verify(message: { [k: string]: any }): (string|null);
16790
-
16791
- /**
16792
- * Creates a ResourceReference message from a plain object. Also converts values to their respective internal types.
16793
- * @param object Plain object
16794
- * @returns ResourceReference
16795
- */
16796
- public static fromObject(object: { [k: string]: any }): google.api.ResourceReference;
16797
-
16798
- /**
16799
- * Creates a plain object from a ResourceReference message. Also converts values to other types if specified.
16800
- * @param message ResourceReference
16801
- * @param [options] Conversion options
16802
- * @returns Plain object
16803
- */
16804
- public static toObject(message: google.api.ResourceReference, options?: $protobuf.IConversionOptions): { [k: string]: any };
16805
-
16806
- /**
16807
- * Converts this ResourceReference to JSON.
16808
- * @returns JSON object
16809
- */
16810
- public toJSON(): { [k: string]: any };
16811
- }
16812
17174
  }
16813
17175
 
16814
17176
  /** Namespace longrunning. */