@google-cloud/pubsub 3.2.1 → 3.3.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 2022 Google LLC
1
+ // Copyright 2023 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.
@@ -341,6 +341,12 @@ export namespace google {
341
341
 
342
342
  /** SchemaSettings encoding */
343
343
  encoding?: (google.pubsub.v1.Encoding|keyof typeof google.pubsub.v1.Encoding|null);
344
+
345
+ /** SchemaSettings firstRevisionId */
346
+ firstRevisionId?: (string|null);
347
+
348
+ /** SchemaSettings lastRevisionId */
349
+ lastRevisionId?: (string|null);
344
350
  }
345
351
 
346
352
  /** Represents a SchemaSettings. */
@@ -358,6 +364,12 @@ export namespace google {
358
364
  /** SchemaSettings encoding. */
359
365
  public encoding: (google.pubsub.v1.Encoding|keyof typeof google.pubsub.v1.Encoding);
360
366
 
367
+ /** SchemaSettings firstRevisionId. */
368
+ public firstRevisionId: string;
369
+
370
+ /** SchemaSettings lastRevisionId. */
371
+ public lastRevisionId: string;
372
+
361
373
  /**
362
374
  * Creates a new SchemaSettings instance using the specified properties.
363
375
  * @param [properties] Properties to set
@@ -5937,6 +5949,62 @@ export namespace google {
5937
5949
  */
5938
5950
  public listSchemas(request: google.pubsub.v1.IListSchemasRequest): Promise<google.pubsub.v1.ListSchemasResponse>;
5939
5951
 
5952
+ /**
5953
+ * Calls ListSchemaRevisions.
5954
+ * @param request ListSchemaRevisionsRequest message or plain object
5955
+ * @param callback Node-style callback called with the error, if any, and ListSchemaRevisionsResponse
5956
+ */
5957
+ public listSchemaRevisions(request: google.pubsub.v1.IListSchemaRevisionsRequest, callback: google.pubsub.v1.SchemaService.ListSchemaRevisionsCallback): void;
5958
+
5959
+ /**
5960
+ * Calls ListSchemaRevisions.
5961
+ * @param request ListSchemaRevisionsRequest message or plain object
5962
+ * @returns Promise
5963
+ */
5964
+ public listSchemaRevisions(request: google.pubsub.v1.IListSchemaRevisionsRequest): Promise<google.pubsub.v1.ListSchemaRevisionsResponse>;
5965
+
5966
+ /**
5967
+ * Calls CommitSchema.
5968
+ * @param request CommitSchemaRequest message or plain object
5969
+ * @param callback Node-style callback called with the error, if any, and Schema
5970
+ */
5971
+ public commitSchema(request: google.pubsub.v1.ICommitSchemaRequest, callback: google.pubsub.v1.SchemaService.CommitSchemaCallback): void;
5972
+
5973
+ /**
5974
+ * Calls CommitSchema.
5975
+ * @param request CommitSchemaRequest message or plain object
5976
+ * @returns Promise
5977
+ */
5978
+ public commitSchema(request: google.pubsub.v1.ICommitSchemaRequest): Promise<google.pubsub.v1.Schema>;
5979
+
5980
+ /**
5981
+ * Calls RollbackSchema.
5982
+ * @param request RollbackSchemaRequest message or plain object
5983
+ * @param callback Node-style callback called with the error, if any, and Schema
5984
+ */
5985
+ public rollbackSchema(request: google.pubsub.v1.IRollbackSchemaRequest, callback: google.pubsub.v1.SchemaService.RollbackSchemaCallback): void;
5986
+
5987
+ /**
5988
+ * Calls RollbackSchema.
5989
+ * @param request RollbackSchemaRequest message or plain object
5990
+ * @returns Promise
5991
+ */
5992
+ public rollbackSchema(request: google.pubsub.v1.IRollbackSchemaRequest): Promise<google.pubsub.v1.Schema>;
5993
+
5994
+ /**
5995
+ * Calls DeleteSchemaRevision.
5996
+ * @param request DeleteSchemaRevisionRequest message or plain object
5997
+ * @param callback Node-style callback called with the error, if any, and Schema
5998
+ */
5999
+ public deleteSchemaRevision(request: google.pubsub.v1.IDeleteSchemaRevisionRequest, callback: google.pubsub.v1.SchemaService.DeleteSchemaRevisionCallback): void;
6000
+
6001
+ /**
6002
+ * Calls DeleteSchemaRevision.
6003
+ * @param request DeleteSchemaRevisionRequest message or plain object
6004
+ * @returns Promise
6005
+ */
6006
+ public deleteSchemaRevision(request: google.pubsub.v1.IDeleteSchemaRevisionRequest): Promise<google.pubsub.v1.Schema>;
6007
+
5940
6008
  /**
5941
6009
  * Calls DeleteSchema.
5942
6010
  * @param request DeleteSchemaRequest message or plain object
@@ -6003,6 +6071,34 @@ export namespace google {
6003
6071
  */
6004
6072
  type ListSchemasCallback = (error: (Error|null), response?: google.pubsub.v1.ListSchemasResponse) => void;
6005
6073
 
6074
+ /**
6075
+ * Callback as used by {@link google.pubsub.v1.SchemaService|listSchemaRevisions}.
6076
+ * @param error Error, if any
6077
+ * @param [response] ListSchemaRevisionsResponse
6078
+ */
6079
+ type ListSchemaRevisionsCallback = (error: (Error|null), response?: google.pubsub.v1.ListSchemaRevisionsResponse) => void;
6080
+
6081
+ /**
6082
+ * Callback as used by {@link google.pubsub.v1.SchemaService|commitSchema}.
6083
+ * @param error Error, if any
6084
+ * @param [response] Schema
6085
+ */
6086
+ type CommitSchemaCallback = (error: (Error|null), response?: google.pubsub.v1.Schema) => void;
6087
+
6088
+ /**
6089
+ * Callback as used by {@link google.pubsub.v1.SchemaService|rollbackSchema}.
6090
+ * @param error Error, if any
6091
+ * @param [response] Schema
6092
+ */
6093
+ type RollbackSchemaCallback = (error: (Error|null), response?: google.pubsub.v1.Schema) => void;
6094
+
6095
+ /**
6096
+ * Callback as used by {@link google.pubsub.v1.SchemaService|deleteSchemaRevision}.
6097
+ * @param error Error, if any
6098
+ * @param [response] Schema
6099
+ */
6100
+ type DeleteSchemaRevisionCallback = (error: (Error|null), response?: google.pubsub.v1.Schema) => void;
6101
+
6006
6102
  /**
6007
6103
  * Callback as used by {@link google.pubsub.v1.SchemaService|deleteSchema}.
6008
6104
  * @param error Error, if any
@@ -6036,6 +6132,12 @@ export namespace google {
6036
6132
 
6037
6133
  /** Schema definition */
6038
6134
  definition?: (string|null);
6135
+
6136
+ /** Schema revisionId */
6137
+ revisionId?: (string|null);
6138
+
6139
+ /** Schema revisionCreateTime */
6140
+ revisionCreateTime?: (google.protobuf.ITimestamp|null);
6039
6141
  }
6040
6142
 
6041
6143
  /** Represents a Schema. */
@@ -6056,6 +6158,12 @@ export namespace google {
6056
6158
  /** Schema definition. */
6057
6159
  public definition: string;
6058
6160
 
6161
+ /** Schema revisionId. */
6162
+ public revisionId: string;
6163
+
6164
+ /** Schema revisionCreateTime. */
6165
+ public revisionCreateTime?: (google.protobuf.ITimestamp|null);
6166
+
6059
6167
  /**
6060
6168
  * Creates a new Schema instance using the specified properties.
6061
6169
  * @param [properties] Properties to set
@@ -6144,6 +6252,13 @@ export namespace google {
6144
6252
  }
6145
6253
  }
6146
6254
 
6255
+ /** SchemaView enum. */
6256
+ enum SchemaView {
6257
+ SCHEMA_VIEW_UNSPECIFIED = 0,
6258
+ BASIC = 1,
6259
+ FULL = 2
6260
+ }
6261
+
6147
6262
  /** Properties of a CreateSchemaRequest. */
6148
6263
  interface ICreateSchemaRequest {
6149
6264
 
@@ -6253,13 +6368,6 @@ export namespace google {
6253
6368
  public static getTypeUrl(typeUrlPrefix?: string): string;
6254
6369
  }
6255
6370
 
6256
- /** SchemaView enum. */
6257
- enum SchemaView {
6258
- SCHEMA_VIEW_UNSPECIFIED = 0,
6259
- BASIC = 1,
6260
- FULL = 2
6261
- }
6262
-
6263
6371
  /** Properties of a GetSchemaRequest. */
6264
6372
  interface IGetSchemaRequest {
6265
6373
 
@@ -6581,6 +6689,533 @@ export namespace google {
6581
6689
  public static getTypeUrl(typeUrlPrefix?: string): string;
6582
6690
  }
6583
6691
 
6692
+ /** Properties of a ListSchemaRevisionsRequest. */
6693
+ interface IListSchemaRevisionsRequest {
6694
+
6695
+ /** ListSchemaRevisionsRequest name */
6696
+ name?: (string|null);
6697
+
6698
+ /** ListSchemaRevisionsRequest view */
6699
+ view?: (google.pubsub.v1.SchemaView|keyof typeof google.pubsub.v1.SchemaView|null);
6700
+
6701
+ /** ListSchemaRevisionsRequest pageSize */
6702
+ pageSize?: (number|null);
6703
+
6704
+ /** ListSchemaRevisionsRequest pageToken */
6705
+ pageToken?: (string|null);
6706
+ }
6707
+
6708
+ /** Represents a ListSchemaRevisionsRequest. */
6709
+ class ListSchemaRevisionsRequest implements IListSchemaRevisionsRequest {
6710
+
6711
+ /**
6712
+ * Constructs a new ListSchemaRevisionsRequest.
6713
+ * @param [properties] Properties to set
6714
+ */
6715
+ constructor(properties?: google.pubsub.v1.IListSchemaRevisionsRequest);
6716
+
6717
+ /** ListSchemaRevisionsRequest name. */
6718
+ public name: string;
6719
+
6720
+ /** ListSchemaRevisionsRequest view. */
6721
+ public view: (google.pubsub.v1.SchemaView|keyof typeof google.pubsub.v1.SchemaView);
6722
+
6723
+ /** ListSchemaRevisionsRequest pageSize. */
6724
+ public pageSize: number;
6725
+
6726
+ /** ListSchemaRevisionsRequest pageToken. */
6727
+ public pageToken: string;
6728
+
6729
+ /**
6730
+ * Creates a new ListSchemaRevisionsRequest instance using the specified properties.
6731
+ * @param [properties] Properties to set
6732
+ * @returns ListSchemaRevisionsRequest instance
6733
+ */
6734
+ public static create(properties?: google.pubsub.v1.IListSchemaRevisionsRequest): google.pubsub.v1.ListSchemaRevisionsRequest;
6735
+
6736
+ /**
6737
+ * Encodes the specified ListSchemaRevisionsRequest message. Does not implicitly {@link google.pubsub.v1.ListSchemaRevisionsRequest.verify|verify} messages.
6738
+ * @param message ListSchemaRevisionsRequest message or plain object to encode
6739
+ * @param [writer] Writer to encode to
6740
+ * @returns Writer
6741
+ */
6742
+ public static encode(message: google.pubsub.v1.IListSchemaRevisionsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
6743
+
6744
+ /**
6745
+ * Encodes the specified ListSchemaRevisionsRequest message, length delimited. Does not implicitly {@link google.pubsub.v1.ListSchemaRevisionsRequest.verify|verify} messages.
6746
+ * @param message ListSchemaRevisionsRequest message or plain object to encode
6747
+ * @param [writer] Writer to encode to
6748
+ * @returns Writer
6749
+ */
6750
+ public static encodeDelimited(message: google.pubsub.v1.IListSchemaRevisionsRequest, writer?: $protobuf.Writer): $protobuf.Writer;
6751
+
6752
+ /**
6753
+ * Decodes a ListSchemaRevisionsRequest message from the specified reader or buffer.
6754
+ * @param reader Reader or buffer to decode from
6755
+ * @param [length] Message length if known beforehand
6756
+ * @returns ListSchemaRevisionsRequest
6757
+ * @throws {Error} If the payload is not a reader or valid buffer
6758
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
6759
+ */
6760
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.pubsub.v1.ListSchemaRevisionsRequest;
6761
+
6762
+ /**
6763
+ * Decodes a ListSchemaRevisionsRequest message from the specified reader or buffer, length delimited.
6764
+ * @param reader Reader or buffer to decode from
6765
+ * @returns ListSchemaRevisionsRequest
6766
+ * @throws {Error} If the payload is not a reader or valid buffer
6767
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
6768
+ */
6769
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.pubsub.v1.ListSchemaRevisionsRequest;
6770
+
6771
+ /**
6772
+ * Verifies a ListSchemaRevisionsRequest message.
6773
+ * @param message Plain object to verify
6774
+ * @returns `null` if valid, otherwise the reason why it is not
6775
+ */
6776
+ public static verify(message: { [k: string]: any }): (string|null);
6777
+
6778
+ /**
6779
+ * Creates a ListSchemaRevisionsRequest message from a plain object. Also converts values to their respective internal types.
6780
+ * @param object Plain object
6781
+ * @returns ListSchemaRevisionsRequest
6782
+ */
6783
+ public static fromObject(object: { [k: string]: any }): google.pubsub.v1.ListSchemaRevisionsRequest;
6784
+
6785
+ /**
6786
+ * Creates a plain object from a ListSchemaRevisionsRequest message. Also converts values to other types if specified.
6787
+ * @param message ListSchemaRevisionsRequest
6788
+ * @param [options] Conversion options
6789
+ * @returns Plain object
6790
+ */
6791
+ public static toObject(message: google.pubsub.v1.ListSchemaRevisionsRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
6792
+
6793
+ /**
6794
+ * Converts this ListSchemaRevisionsRequest to JSON.
6795
+ * @returns JSON object
6796
+ */
6797
+ public toJSON(): { [k: string]: any };
6798
+
6799
+ /**
6800
+ * Gets the default type url for ListSchemaRevisionsRequest
6801
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
6802
+ * @returns The default type url
6803
+ */
6804
+ public static getTypeUrl(typeUrlPrefix?: string): string;
6805
+ }
6806
+
6807
+ /** Properties of a ListSchemaRevisionsResponse. */
6808
+ interface IListSchemaRevisionsResponse {
6809
+
6810
+ /** ListSchemaRevisionsResponse schemas */
6811
+ schemas?: (google.pubsub.v1.ISchema[]|null);
6812
+
6813
+ /** ListSchemaRevisionsResponse nextPageToken */
6814
+ nextPageToken?: (string|null);
6815
+ }
6816
+
6817
+ /** Represents a ListSchemaRevisionsResponse. */
6818
+ class ListSchemaRevisionsResponse implements IListSchemaRevisionsResponse {
6819
+
6820
+ /**
6821
+ * Constructs a new ListSchemaRevisionsResponse.
6822
+ * @param [properties] Properties to set
6823
+ */
6824
+ constructor(properties?: google.pubsub.v1.IListSchemaRevisionsResponse);
6825
+
6826
+ /** ListSchemaRevisionsResponse schemas. */
6827
+ public schemas: google.pubsub.v1.ISchema[];
6828
+
6829
+ /** ListSchemaRevisionsResponse nextPageToken. */
6830
+ public nextPageToken: string;
6831
+
6832
+ /**
6833
+ * Creates a new ListSchemaRevisionsResponse instance using the specified properties.
6834
+ * @param [properties] Properties to set
6835
+ * @returns ListSchemaRevisionsResponse instance
6836
+ */
6837
+ public static create(properties?: google.pubsub.v1.IListSchemaRevisionsResponse): google.pubsub.v1.ListSchemaRevisionsResponse;
6838
+
6839
+ /**
6840
+ * Encodes the specified ListSchemaRevisionsResponse message. Does not implicitly {@link google.pubsub.v1.ListSchemaRevisionsResponse.verify|verify} messages.
6841
+ * @param message ListSchemaRevisionsResponse message or plain object to encode
6842
+ * @param [writer] Writer to encode to
6843
+ * @returns Writer
6844
+ */
6845
+ public static encode(message: google.pubsub.v1.IListSchemaRevisionsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
6846
+
6847
+ /**
6848
+ * Encodes the specified ListSchemaRevisionsResponse message, length delimited. Does not implicitly {@link google.pubsub.v1.ListSchemaRevisionsResponse.verify|verify} messages.
6849
+ * @param message ListSchemaRevisionsResponse message or plain object to encode
6850
+ * @param [writer] Writer to encode to
6851
+ * @returns Writer
6852
+ */
6853
+ public static encodeDelimited(message: google.pubsub.v1.IListSchemaRevisionsResponse, writer?: $protobuf.Writer): $protobuf.Writer;
6854
+
6855
+ /**
6856
+ * Decodes a ListSchemaRevisionsResponse message from the specified reader or buffer.
6857
+ * @param reader Reader or buffer to decode from
6858
+ * @param [length] Message length if known beforehand
6859
+ * @returns ListSchemaRevisionsResponse
6860
+ * @throws {Error} If the payload is not a reader or valid buffer
6861
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
6862
+ */
6863
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.pubsub.v1.ListSchemaRevisionsResponse;
6864
+
6865
+ /**
6866
+ * Decodes a ListSchemaRevisionsResponse message from the specified reader or buffer, length delimited.
6867
+ * @param reader Reader or buffer to decode from
6868
+ * @returns ListSchemaRevisionsResponse
6869
+ * @throws {Error} If the payload is not a reader or valid buffer
6870
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
6871
+ */
6872
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.pubsub.v1.ListSchemaRevisionsResponse;
6873
+
6874
+ /**
6875
+ * Verifies a ListSchemaRevisionsResponse message.
6876
+ * @param message Plain object to verify
6877
+ * @returns `null` if valid, otherwise the reason why it is not
6878
+ */
6879
+ public static verify(message: { [k: string]: any }): (string|null);
6880
+
6881
+ /**
6882
+ * Creates a ListSchemaRevisionsResponse message from a plain object. Also converts values to their respective internal types.
6883
+ * @param object Plain object
6884
+ * @returns ListSchemaRevisionsResponse
6885
+ */
6886
+ public static fromObject(object: { [k: string]: any }): google.pubsub.v1.ListSchemaRevisionsResponse;
6887
+
6888
+ /**
6889
+ * Creates a plain object from a ListSchemaRevisionsResponse message. Also converts values to other types if specified.
6890
+ * @param message ListSchemaRevisionsResponse
6891
+ * @param [options] Conversion options
6892
+ * @returns Plain object
6893
+ */
6894
+ public static toObject(message: google.pubsub.v1.ListSchemaRevisionsResponse, options?: $protobuf.IConversionOptions): { [k: string]: any };
6895
+
6896
+ /**
6897
+ * Converts this ListSchemaRevisionsResponse to JSON.
6898
+ * @returns JSON object
6899
+ */
6900
+ public toJSON(): { [k: string]: any };
6901
+
6902
+ /**
6903
+ * Gets the default type url for ListSchemaRevisionsResponse
6904
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
6905
+ * @returns The default type url
6906
+ */
6907
+ public static getTypeUrl(typeUrlPrefix?: string): string;
6908
+ }
6909
+
6910
+ /** Properties of a CommitSchemaRequest. */
6911
+ interface ICommitSchemaRequest {
6912
+
6913
+ /** CommitSchemaRequest name */
6914
+ name?: (string|null);
6915
+
6916
+ /** CommitSchemaRequest schema */
6917
+ schema?: (google.pubsub.v1.ISchema|null);
6918
+ }
6919
+
6920
+ /** Represents a CommitSchemaRequest. */
6921
+ class CommitSchemaRequest implements ICommitSchemaRequest {
6922
+
6923
+ /**
6924
+ * Constructs a new CommitSchemaRequest.
6925
+ * @param [properties] Properties to set
6926
+ */
6927
+ constructor(properties?: google.pubsub.v1.ICommitSchemaRequest);
6928
+
6929
+ /** CommitSchemaRequest name. */
6930
+ public name: string;
6931
+
6932
+ /** CommitSchemaRequest schema. */
6933
+ public schema?: (google.pubsub.v1.ISchema|null);
6934
+
6935
+ /**
6936
+ * Creates a new CommitSchemaRequest instance using the specified properties.
6937
+ * @param [properties] Properties to set
6938
+ * @returns CommitSchemaRequest instance
6939
+ */
6940
+ public static create(properties?: google.pubsub.v1.ICommitSchemaRequest): google.pubsub.v1.CommitSchemaRequest;
6941
+
6942
+ /**
6943
+ * Encodes the specified CommitSchemaRequest message. Does not implicitly {@link google.pubsub.v1.CommitSchemaRequest.verify|verify} messages.
6944
+ * @param message CommitSchemaRequest message or plain object to encode
6945
+ * @param [writer] Writer to encode to
6946
+ * @returns Writer
6947
+ */
6948
+ public static encode(message: google.pubsub.v1.ICommitSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer;
6949
+
6950
+ /**
6951
+ * Encodes the specified CommitSchemaRequest message, length delimited. Does not implicitly {@link google.pubsub.v1.CommitSchemaRequest.verify|verify} messages.
6952
+ * @param message CommitSchemaRequest message or plain object to encode
6953
+ * @param [writer] Writer to encode to
6954
+ * @returns Writer
6955
+ */
6956
+ public static encodeDelimited(message: google.pubsub.v1.ICommitSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer;
6957
+
6958
+ /**
6959
+ * Decodes a CommitSchemaRequest message from the specified reader or buffer.
6960
+ * @param reader Reader or buffer to decode from
6961
+ * @param [length] Message length if known beforehand
6962
+ * @returns CommitSchemaRequest
6963
+ * @throws {Error} If the payload is not a reader or valid buffer
6964
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
6965
+ */
6966
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.pubsub.v1.CommitSchemaRequest;
6967
+
6968
+ /**
6969
+ * Decodes a CommitSchemaRequest message from the specified reader or buffer, length delimited.
6970
+ * @param reader Reader or buffer to decode from
6971
+ * @returns CommitSchemaRequest
6972
+ * @throws {Error} If the payload is not a reader or valid buffer
6973
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
6974
+ */
6975
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.pubsub.v1.CommitSchemaRequest;
6976
+
6977
+ /**
6978
+ * Verifies a CommitSchemaRequest message.
6979
+ * @param message Plain object to verify
6980
+ * @returns `null` if valid, otherwise the reason why it is not
6981
+ */
6982
+ public static verify(message: { [k: string]: any }): (string|null);
6983
+
6984
+ /**
6985
+ * Creates a CommitSchemaRequest message from a plain object. Also converts values to their respective internal types.
6986
+ * @param object Plain object
6987
+ * @returns CommitSchemaRequest
6988
+ */
6989
+ public static fromObject(object: { [k: string]: any }): google.pubsub.v1.CommitSchemaRequest;
6990
+
6991
+ /**
6992
+ * Creates a plain object from a CommitSchemaRequest message. Also converts values to other types if specified.
6993
+ * @param message CommitSchemaRequest
6994
+ * @param [options] Conversion options
6995
+ * @returns Plain object
6996
+ */
6997
+ public static toObject(message: google.pubsub.v1.CommitSchemaRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
6998
+
6999
+ /**
7000
+ * Converts this CommitSchemaRequest to JSON.
7001
+ * @returns JSON object
7002
+ */
7003
+ public toJSON(): { [k: string]: any };
7004
+
7005
+ /**
7006
+ * Gets the default type url for CommitSchemaRequest
7007
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
7008
+ * @returns The default type url
7009
+ */
7010
+ public static getTypeUrl(typeUrlPrefix?: string): string;
7011
+ }
7012
+
7013
+ /** Properties of a RollbackSchemaRequest. */
7014
+ interface IRollbackSchemaRequest {
7015
+
7016
+ /** RollbackSchemaRequest name */
7017
+ name?: (string|null);
7018
+
7019
+ /** RollbackSchemaRequest revisionId */
7020
+ revisionId?: (string|null);
7021
+ }
7022
+
7023
+ /** Represents a RollbackSchemaRequest. */
7024
+ class RollbackSchemaRequest implements IRollbackSchemaRequest {
7025
+
7026
+ /**
7027
+ * Constructs a new RollbackSchemaRequest.
7028
+ * @param [properties] Properties to set
7029
+ */
7030
+ constructor(properties?: google.pubsub.v1.IRollbackSchemaRequest);
7031
+
7032
+ /** RollbackSchemaRequest name. */
7033
+ public name: string;
7034
+
7035
+ /** RollbackSchemaRequest revisionId. */
7036
+ public revisionId: string;
7037
+
7038
+ /**
7039
+ * Creates a new RollbackSchemaRequest instance using the specified properties.
7040
+ * @param [properties] Properties to set
7041
+ * @returns RollbackSchemaRequest instance
7042
+ */
7043
+ public static create(properties?: google.pubsub.v1.IRollbackSchemaRequest): google.pubsub.v1.RollbackSchemaRequest;
7044
+
7045
+ /**
7046
+ * Encodes the specified RollbackSchemaRequest message. Does not implicitly {@link google.pubsub.v1.RollbackSchemaRequest.verify|verify} messages.
7047
+ * @param message RollbackSchemaRequest message or plain object to encode
7048
+ * @param [writer] Writer to encode to
7049
+ * @returns Writer
7050
+ */
7051
+ public static encode(message: google.pubsub.v1.IRollbackSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer;
7052
+
7053
+ /**
7054
+ * Encodes the specified RollbackSchemaRequest message, length delimited. Does not implicitly {@link google.pubsub.v1.RollbackSchemaRequest.verify|verify} messages.
7055
+ * @param message RollbackSchemaRequest message or plain object to encode
7056
+ * @param [writer] Writer to encode to
7057
+ * @returns Writer
7058
+ */
7059
+ public static encodeDelimited(message: google.pubsub.v1.IRollbackSchemaRequest, writer?: $protobuf.Writer): $protobuf.Writer;
7060
+
7061
+ /**
7062
+ * Decodes a RollbackSchemaRequest message from the specified reader or buffer.
7063
+ * @param reader Reader or buffer to decode from
7064
+ * @param [length] Message length if known beforehand
7065
+ * @returns RollbackSchemaRequest
7066
+ * @throws {Error} If the payload is not a reader or valid buffer
7067
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
7068
+ */
7069
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.pubsub.v1.RollbackSchemaRequest;
7070
+
7071
+ /**
7072
+ * Decodes a RollbackSchemaRequest message from the specified reader or buffer, length delimited.
7073
+ * @param reader Reader or buffer to decode from
7074
+ * @returns RollbackSchemaRequest
7075
+ * @throws {Error} If the payload is not a reader or valid buffer
7076
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
7077
+ */
7078
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.pubsub.v1.RollbackSchemaRequest;
7079
+
7080
+ /**
7081
+ * Verifies a RollbackSchemaRequest message.
7082
+ * @param message Plain object to verify
7083
+ * @returns `null` if valid, otherwise the reason why it is not
7084
+ */
7085
+ public static verify(message: { [k: string]: any }): (string|null);
7086
+
7087
+ /**
7088
+ * Creates a RollbackSchemaRequest message from a plain object. Also converts values to their respective internal types.
7089
+ * @param object Plain object
7090
+ * @returns RollbackSchemaRequest
7091
+ */
7092
+ public static fromObject(object: { [k: string]: any }): google.pubsub.v1.RollbackSchemaRequest;
7093
+
7094
+ /**
7095
+ * Creates a plain object from a RollbackSchemaRequest message. Also converts values to other types if specified.
7096
+ * @param message RollbackSchemaRequest
7097
+ * @param [options] Conversion options
7098
+ * @returns Plain object
7099
+ */
7100
+ public static toObject(message: google.pubsub.v1.RollbackSchemaRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
7101
+
7102
+ /**
7103
+ * Converts this RollbackSchemaRequest to JSON.
7104
+ * @returns JSON object
7105
+ */
7106
+ public toJSON(): { [k: string]: any };
7107
+
7108
+ /**
7109
+ * Gets the default type url for RollbackSchemaRequest
7110
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
7111
+ * @returns The default type url
7112
+ */
7113
+ public static getTypeUrl(typeUrlPrefix?: string): string;
7114
+ }
7115
+
7116
+ /** Properties of a DeleteSchemaRevisionRequest. */
7117
+ interface IDeleteSchemaRevisionRequest {
7118
+
7119
+ /** DeleteSchemaRevisionRequest name */
7120
+ name?: (string|null);
7121
+
7122
+ /** DeleteSchemaRevisionRequest revisionId */
7123
+ revisionId?: (string|null);
7124
+ }
7125
+
7126
+ /** Represents a DeleteSchemaRevisionRequest. */
7127
+ class DeleteSchemaRevisionRequest implements IDeleteSchemaRevisionRequest {
7128
+
7129
+ /**
7130
+ * Constructs a new DeleteSchemaRevisionRequest.
7131
+ * @param [properties] Properties to set
7132
+ */
7133
+ constructor(properties?: google.pubsub.v1.IDeleteSchemaRevisionRequest);
7134
+
7135
+ /** DeleteSchemaRevisionRequest name. */
7136
+ public name: string;
7137
+
7138
+ /** DeleteSchemaRevisionRequest revisionId. */
7139
+ public revisionId: string;
7140
+
7141
+ /**
7142
+ * Creates a new DeleteSchemaRevisionRequest instance using the specified properties.
7143
+ * @param [properties] Properties to set
7144
+ * @returns DeleteSchemaRevisionRequest instance
7145
+ */
7146
+ public static create(properties?: google.pubsub.v1.IDeleteSchemaRevisionRequest): google.pubsub.v1.DeleteSchemaRevisionRequest;
7147
+
7148
+ /**
7149
+ * Encodes the specified DeleteSchemaRevisionRequest message. Does not implicitly {@link google.pubsub.v1.DeleteSchemaRevisionRequest.verify|verify} messages.
7150
+ * @param message DeleteSchemaRevisionRequest message or plain object to encode
7151
+ * @param [writer] Writer to encode to
7152
+ * @returns Writer
7153
+ */
7154
+ public static encode(message: google.pubsub.v1.IDeleteSchemaRevisionRequest, writer?: $protobuf.Writer): $protobuf.Writer;
7155
+
7156
+ /**
7157
+ * Encodes the specified DeleteSchemaRevisionRequest message, length delimited. Does not implicitly {@link google.pubsub.v1.DeleteSchemaRevisionRequest.verify|verify} messages.
7158
+ * @param message DeleteSchemaRevisionRequest message or plain object to encode
7159
+ * @param [writer] Writer to encode to
7160
+ * @returns Writer
7161
+ */
7162
+ public static encodeDelimited(message: google.pubsub.v1.IDeleteSchemaRevisionRequest, writer?: $protobuf.Writer): $protobuf.Writer;
7163
+
7164
+ /**
7165
+ * Decodes a DeleteSchemaRevisionRequest message from the specified reader or buffer.
7166
+ * @param reader Reader or buffer to decode from
7167
+ * @param [length] Message length if known beforehand
7168
+ * @returns DeleteSchemaRevisionRequest
7169
+ * @throws {Error} If the payload is not a reader or valid buffer
7170
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
7171
+ */
7172
+ public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.pubsub.v1.DeleteSchemaRevisionRequest;
7173
+
7174
+ /**
7175
+ * Decodes a DeleteSchemaRevisionRequest message from the specified reader or buffer, length delimited.
7176
+ * @param reader Reader or buffer to decode from
7177
+ * @returns DeleteSchemaRevisionRequest
7178
+ * @throws {Error} If the payload is not a reader or valid buffer
7179
+ * @throws {$protobuf.util.ProtocolError} If required fields are missing
7180
+ */
7181
+ public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.pubsub.v1.DeleteSchemaRevisionRequest;
7182
+
7183
+ /**
7184
+ * Verifies a DeleteSchemaRevisionRequest message.
7185
+ * @param message Plain object to verify
7186
+ * @returns `null` if valid, otherwise the reason why it is not
7187
+ */
7188
+ public static verify(message: { [k: string]: any }): (string|null);
7189
+
7190
+ /**
7191
+ * Creates a DeleteSchemaRevisionRequest message from a plain object. Also converts values to their respective internal types.
7192
+ * @param object Plain object
7193
+ * @returns DeleteSchemaRevisionRequest
7194
+ */
7195
+ public static fromObject(object: { [k: string]: any }): google.pubsub.v1.DeleteSchemaRevisionRequest;
7196
+
7197
+ /**
7198
+ * Creates a plain object from a DeleteSchemaRevisionRequest message. Also converts values to other types if specified.
7199
+ * @param message DeleteSchemaRevisionRequest
7200
+ * @param [options] Conversion options
7201
+ * @returns Plain object
7202
+ */
7203
+ public static toObject(message: google.pubsub.v1.DeleteSchemaRevisionRequest, options?: $protobuf.IConversionOptions): { [k: string]: any };
7204
+
7205
+ /**
7206
+ * Converts this DeleteSchemaRevisionRequest to JSON.
7207
+ * @returns JSON object
7208
+ */
7209
+ public toJSON(): { [k: string]: any };
7210
+
7211
+ /**
7212
+ * Gets the default type url for DeleteSchemaRevisionRequest
7213
+ * @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
7214
+ * @returns The default type url
7215
+ */
7216
+ public static getTypeUrl(typeUrlPrefix?: string): string;
7217
+ }
7218
+
6584
7219
  /** Properties of a DeleteSchemaRequest. */
6585
7220
  interface IDeleteSchemaRequest {
6586
7221