@google-cloud/pubsub 4.7.2 → 4.8.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.
- package/CHANGELOG.md +8 -0
- package/README.md +4 -2
- package/build/protos/google/pubsub/v1/pubsub.proto +141 -1
- package/build/protos/protos.d.ts +660 -1
- package/build/protos/protos.js +1656 -50
- package/build/protos/protos.json +163 -1
- package/build/src/index.d.ts +1 -1
- package/build/src/index.js +2 -1
- package/build/src/index.js.map +1 -1
- package/build/src/message-stream.js +3 -2
- package/build/src/message-stream.js.map +1 -1
- package/build/src/subscriber.d.ts +1 -1
- package/build/src/subscriber.js +3 -1
- package/build/src/subscriber.js.map +1 -1
- package/build/src/v1/subscriber_client.d.ts +4 -1
- package/build/src/v1/subscriber_client.js.map +1 -1
- package/package.json +7 -3
package/build/protos/protos.d.ts
CHANGED
|
@@ -459,6 +459,12 @@ export namespace google {
|
|
|
459
459
|
|
|
460
460
|
/** IngestionDataSourceSettings awsKinesis */
|
|
461
461
|
awsKinesis?: (google.pubsub.v1.IngestionDataSourceSettings.IAwsKinesis|null);
|
|
462
|
+
|
|
463
|
+
/** IngestionDataSourceSettings cloudStorage */
|
|
464
|
+
cloudStorage?: (google.pubsub.v1.IngestionDataSourceSettings.ICloudStorage|null);
|
|
465
|
+
|
|
466
|
+
/** IngestionDataSourceSettings platformLogsSettings */
|
|
467
|
+
platformLogsSettings?: (google.pubsub.v1.IPlatformLogsSettings|null);
|
|
462
468
|
}
|
|
463
469
|
|
|
464
470
|
/** Represents an IngestionDataSourceSettings. */
|
|
@@ -473,8 +479,14 @@ export namespace google {
|
|
|
473
479
|
/** IngestionDataSourceSettings awsKinesis. */
|
|
474
480
|
public awsKinesis?: (google.pubsub.v1.IngestionDataSourceSettings.IAwsKinesis|null);
|
|
475
481
|
|
|
482
|
+
/** IngestionDataSourceSettings cloudStorage. */
|
|
483
|
+
public cloudStorage?: (google.pubsub.v1.IngestionDataSourceSettings.ICloudStorage|null);
|
|
484
|
+
|
|
485
|
+
/** IngestionDataSourceSettings platformLogsSettings. */
|
|
486
|
+
public platformLogsSettings?: (google.pubsub.v1.IPlatformLogsSettings|null);
|
|
487
|
+
|
|
476
488
|
/** IngestionDataSourceSettings source. */
|
|
477
|
-
public source?: "awsKinesis";
|
|
489
|
+
public source?: ("awsKinesis"|"cloudStorage");
|
|
478
490
|
|
|
479
491
|
/**
|
|
480
492
|
* Creates a new IngestionDataSourceSettings instance using the specified properties.
|
|
@@ -689,6 +701,544 @@ export namespace google {
|
|
|
689
701
|
CONSUMER_NOT_FOUND = 5
|
|
690
702
|
}
|
|
691
703
|
}
|
|
704
|
+
|
|
705
|
+
/** Properties of a CloudStorage. */
|
|
706
|
+
interface ICloudStorage {
|
|
707
|
+
|
|
708
|
+
/** CloudStorage state */
|
|
709
|
+
state?: (google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.State|keyof typeof google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.State|null);
|
|
710
|
+
|
|
711
|
+
/** CloudStorage bucket */
|
|
712
|
+
bucket?: (string|null);
|
|
713
|
+
|
|
714
|
+
/** CloudStorage textFormat */
|
|
715
|
+
textFormat?: (google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.ITextFormat|null);
|
|
716
|
+
|
|
717
|
+
/** CloudStorage avroFormat */
|
|
718
|
+
avroFormat?: (google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.IAvroFormat|null);
|
|
719
|
+
|
|
720
|
+
/** CloudStorage pubsubAvroFormat */
|
|
721
|
+
pubsubAvroFormat?: (google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.IPubSubAvroFormat|null);
|
|
722
|
+
|
|
723
|
+
/** CloudStorage minimumObjectCreateTime */
|
|
724
|
+
minimumObjectCreateTime?: (google.protobuf.ITimestamp|null);
|
|
725
|
+
|
|
726
|
+
/** CloudStorage matchGlob */
|
|
727
|
+
matchGlob?: (string|null);
|
|
728
|
+
}
|
|
729
|
+
|
|
730
|
+
/** Represents a CloudStorage. */
|
|
731
|
+
class CloudStorage implements ICloudStorage {
|
|
732
|
+
|
|
733
|
+
/**
|
|
734
|
+
* Constructs a new CloudStorage.
|
|
735
|
+
* @param [properties] Properties to set
|
|
736
|
+
*/
|
|
737
|
+
constructor(properties?: google.pubsub.v1.IngestionDataSourceSettings.ICloudStorage);
|
|
738
|
+
|
|
739
|
+
/** CloudStorage state. */
|
|
740
|
+
public state: (google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.State|keyof typeof google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.State);
|
|
741
|
+
|
|
742
|
+
/** CloudStorage bucket. */
|
|
743
|
+
public bucket: string;
|
|
744
|
+
|
|
745
|
+
/** CloudStorage textFormat. */
|
|
746
|
+
public textFormat?: (google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.ITextFormat|null);
|
|
747
|
+
|
|
748
|
+
/** CloudStorage avroFormat. */
|
|
749
|
+
public avroFormat?: (google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.IAvroFormat|null);
|
|
750
|
+
|
|
751
|
+
/** CloudStorage pubsubAvroFormat. */
|
|
752
|
+
public pubsubAvroFormat?: (google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.IPubSubAvroFormat|null);
|
|
753
|
+
|
|
754
|
+
/** CloudStorage minimumObjectCreateTime. */
|
|
755
|
+
public minimumObjectCreateTime?: (google.protobuf.ITimestamp|null);
|
|
756
|
+
|
|
757
|
+
/** CloudStorage matchGlob. */
|
|
758
|
+
public matchGlob: string;
|
|
759
|
+
|
|
760
|
+
/** CloudStorage inputFormat. */
|
|
761
|
+
public inputFormat?: ("textFormat"|"avroFormat"|"pubsubAvroFormat");
|
|
762
|
+
|
|
763
|
+
/**
|
|
764
|
+
* Creates a new CloudStorage instance using the specified properties.
|
|
765
|
+
* @param [properties] Properties to set
|
|
766
|
+
* @returns CloudStorage instance
|
|
767
|
+
*/
|
|
768
|
+
public static create(properties?: google.pubsub.v1.IngestionDataSourceSettings.ICloudStorage): google.pubsub.v1.IngestionDataSourceSettings.CloudStorage;
|
|
769
|
+
|
|
770
|
+
/**
|
|
771
|
+
* Encodes the specified CloudStorage message. Does not implicitly {@link google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.verify|verify} messages.
|
|
772
|
+
* @param message CloudStorage message or plain object to encode
|
|
773
|
+
* @param [writer] Writer to encode to
|
|
774
|
+
* @returns Writer
|
|
775
|
+
*/
|
|
776
|
+
public static encode(message: google.pubsub.v1.IngestionDataSourceSettings.ICloudStorage, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
777
|
+
|
|
778
|
+
/**
|
|
779
|
+
* Encodes the specified CloudStorage message, length delimited. Does not implicitly {@link google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.verify|verify} messages.
|
|
780
|
+
* @param message CloudStorage message or plain object to encode
|
|
781
|
+
* @param [writer] Writer to encode to
|
|
782
|
+
* @returns Writer
|
|
783
|
+
*/
|
|
784
|
+
public static encodeDelimited(message: google.pubsub.v1.IngestionDataSourceSettings.ICloudStorage, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
785
|
+
|
|
786
|
+
/**
|
|
787
|
+
* Decodes a CloudStorage message from the specified reader or buffer.
|
|
788
|
+
* @param reader Reader or buffer to decode from
|
|
789
|
+
* @param [length] Message length if known beforehand
|
|
790
|
+
* @returns CloudStorage
|
|
791
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
792
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
793
|
+
*/
|
|
794
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.pubsub.v1.IngestionDataSourceSettings.CloudStorage;
|
|
795
|
+
|
|
796
|
+
/**
|
|
797
|
+
* Decodes a CloudStorage message from the specified reader or buffer, length delimited.
|
|
798
|
+
* @param reader Reader or buffer to decode from
|
|
799
|
+
* @returns CloudStorage
|
|
800
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
801
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
802
|
+
*/
|
|
803
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.pubsub.v1.IngestionDataSourceSettings.CloudStorage;
|
|
804
|
+
|
|
805
|
+
/**
|
|
806
|
+
* Verifies a CloudStorage message.
|
|
807
|
+
* @param message Plain object to verify
|
|
808
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
809
|
+
*/
|
|
810
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
811
|
+
|
|
812
|
+
/**
|
|
813
|
+
* Creates a CloudStorage message from a plain object. Also converts values to their respective internal types.
|
|
814
|
+
* @param object Plain object
|
|
815
|
+
* @returns CloudStorage
|
|
816
|
+
*/
|
|
817
|
+
public static fromObject(object: { [k: string]: any }): google.pubsub.v1.IngestionDataSourceSettings.CloudStorage;
|
|
818
|
+
|
|
819
|
+
/**
|
|
820
|
+
* Creates a plain object from a CloudStorage message. Also converts values to other types if specified.
|
|
821
|
+
* @param message CloudStorage
|
|
822
|
+
* @param [options] Conversion options
|
|
823
|
+
* @returns Plain object
|
|
824
|
+
*/
|
|
825
|
+
public static toObject(message: google.pubsub.v1.IngestionDataSourceSettings.CloudStorage, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
826
|
+
|
|
827
|
+
/**
|
|
828
|
+
* Converts this CloudStorage to JSON.
|
|
829
|
+
* @returns JSON object
|
|
830
|
+
*/
|
|
831
|
+
public toJSON(): { [k: string]: any };
|
|
832
|
+
|
|
833
|
+
/**
|
|
834
|
+
* Gets the default type url for CloudStorage
|
|
835
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
836
|
+
* @returns The default type url
|
|
837
|
+
*/
|
|
838
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
839
|
+
}
|
|
840
|
+
|
|
841
|
+
namespace CloudStorage {
|
|
842
|
+
|
|
843
|
+
/** State enum. */
|
|
844
|
+
enum State {
|
|
845
|
+
STATE_UNSPECIFIED = 0,
|
|
846
|
+
ACTIVE = 1,
|
|
847
|
+
CLOUD_STORAGE_PERMISSION_DENIED = 2,
|
|
848
|
+
PUBLISH_PERMISSION_DENIED = 3,
|
|
849
|
+
BUCKET_NOT_FOUND = 4,
|
|
850
|
+
TOO_MANY_OBJECTS = 5
|
|
851
|
+
}
|
|
852
|
+
|
|
853
|
+
/** Properties of a TextFormat. */
|
|
854
|
+
interface ITextFormat {
|
|
855
|
+
|
|
856
|
+
/** TextFormat delimiter */
|
|
857
|
+
delimiter?: (string|null);
|
|
858
|
+
}
|
|
859
|
+
|
|
860
|
+
/** Represents a TextFormat. */
|
|
861
|
+
class TextFormat implements ITextFormat {
|
|
862
|
+
|
|
863
|
+
/**
|
|
864
|
+
* Constructs a new TextFormat.
|
|
865
|
+
* @param [properties] Properties to set
|
|
866
|
+
*/
|
|
867
|
+
constructor(properties?: google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.ITextFormat);
|
|
868
|
+
|
|
869
|
+
/** TextFormat delimiter. */
|
|
870
|
+
public delimiter?: (string|null);
|
|
871
|
+
|
|
872
|
+
/**
|
|
873
|
+
* Creates a new TextFormat instance using the specified properties.
|
|
874
|
+
* @param [properties] Properties to set
|
|
875
|
+
* @returns TextFormat instance
|
|
876
|
+
*/
|
|
877
|
+
public static create(properties?: google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.ITextFormat): google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat;
|
|
878
|
+
|
|
879
|
+
/**
|
|
880
|
+
* Encodes the specified TextFormat message. Does not implicitly {@link google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat.verify|verify} messages.
|
|
881
|
+
* @param message TextFormat message or plain object to encode
|
|
882
|
+
* @param [writer] Writer to encode to
|
|
883
|
+
* @returns Writer
|
|
884
|
+
*/
|
|
885
|
+
public static encode(message: google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.ITextFormat, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
886
|
+
|
|
887
|
+
/**
|
|
888
|
+
* Encodes the specified TextFormat message, length delimited. Does not implicitly {@link google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat.verify|verify} messages.
|
|
889
|
+
* @param message TextFormat message or plain object to encode
|
|
890
|
+
* @param [writer] Writer to encode to
|
|
891
|
+
* @returns Writer
|
|
892
|
+
*/
|
|
893
|
+
public static encodeDelimited(message: google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.ITextFormat, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
894
|
+
|
|
895
|
+
/**
|
|
896
|
+
* Decodes a TextFormat message from the specified reader or buffer.
|
|
897
|
+
* @param reader Reader or buffer to decode from
|
|
898
|
+
* @param [length] Message length if known beforehand
|
|
899
|
+
* @returns TextFormat
|
|
900
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
901
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
902
|
+
*/
|
|
903
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat;
|
|
904
|
+
|
|
905
|
+
/**
|
|
906
|
+
* Decodes a TextFormat message from the specified reader or buffer, length delimited.
|
|
907
|
+
* @param reader Reader or buffer to decode from
|
|
908
|
+
* @returns TextFormat
|
|
909
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
910
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
911
|
+
*/
|
|
912
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat;
|
|
913
|
+
|
|
914
|
+
/**
|
|
915
|
+
* Verifies a TextFormat message.
|
|
916
|
+
* @param message Plain object to verify
|
|
917
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
918
|
+
*/
|
|
919
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
920
|
+
|
|
921
|
+
/**
|
|
922
|
+
* Creates a TextFormat message from a plain object. Also converts values to their respective internal types.
|
|
923
|
+
* @param object Plain object
|
|
924
|
+
* @returns TextFormat
|
|
925
|
+
*/
|
|
926
|
+
public static fromObject(object: { [k: string]: any }): google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat;
|
|
927
|
+
|
|
928
|
+
/**
|
|
929
|
+
* Creates a plain object from a TextFormat message. Also converts values to other types if specified.
|
|
930
|
+
* @param message TextFormat
|
|
931
|
+
* @param [options] Conversion options
|
|
932
|
+
* @returns Plain object
|
|
933
|
+
*/
|
|
934
|
+
public static toObject(message: google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.TextFormat, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
935
|
+
|
|
936
|
+
/**
|
|
937
|
+
* Converts this TextFormat to JSON.
|
|
938
|
+
* @returns JSON object
|
|
939
|
+
*/
|
|
940
|
+
public toJSON(): { [k: string]: any };
|
|
941
|
+
|
|
942
|
+
/**
|
|
943
|
+
* Gets the default type url for TextFormat
|
|
944
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
945
|
+
* @returns The default type url
|
|
946
|
+
*/
|
|
947
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
948
|
+
}
|
|
949
|
+
|
|
950
|
+
/** Properties of an AvroFormat. */
|
|
951
|
+
interface IAvroFormat {
|
|
952
|
+
}
|
|
953
|
+
|
|
954
|
+
/** Represents an AvroFormat. */
|
|
955
|
+
class AvroFormat implements IAvroFormat {
|
|
956
|
+
|
|
957
|
+
/**
|
|
958
|
+
* Constructs a new AvroFormat.
|
|
959
|
+
* @param [properties] Properties to set
|
|
960
|
+
*/
|
|
961
|
+
constructor(properties?: google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.IAvroFormat);
|
|
962
|
+
|
|
963
|
+
/**
|
|
964
|
+
* Creates a new AvroFormat instance using the specified properties.
|
|
965
|
+
* @param [properties] Properties to set
|
|
966
|
+
* @returns AvroFormat instance
|
|
967
|
+
*/
|
|
968
|
+
public static create(properties?: google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.IAvroFormat): google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat;
|
|
969
|
+
|
|
970
|
+
/**
|
|
971
|
+
* Encodes the specified AvroFormat message. Does not implicitly {@link google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat.verify|verify} messages.
|
|
972
|
+
* @param message AvroFormat message or plain object to encode
|
|
973
|
+
* @param [writer] Writer to encode to
|
|
974
|
+
* @returns Writer
|
|
975
|
+
*/
|
|
976
|
+
public static encode(message: google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.IAvroFormat, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
977
|
+
|
|
978
|
+
/**
|
|
979
|
+
* Encodes the specified AvroFormat message, length delimited. Does not implicitly {@link google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat.verify|verify} messages.
|
|
980
|
+
* @param message AvroFormat message or plain object to encode
|
|
981
|
+
* @param [writer] Writer to encode to
|
|
982
|
+
* @returns Writer
|
|
983
|
+
*/
|
|
984
|
+
public static encodeDelimited(message: google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.IAvroFormat, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
985
|
+
|
|
986
|
+
/**
|
|
987
|
+
* Decodes an AvroFormat message from the specified reader or buffer.
|
|
988
|
+
* @param reader Reader or buffer to decode from
|
|
989
|
+
* @param [length] Message length if known beforehand
|
|
990
|
+
* @returns AvroFormat
|
|
991
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
992
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
993
|
+
*/
|
|
994
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat;
|
|
995
|
+
|
|
996
|
+
/**
|
|
997
|
+
* Decodes an AvroFormat message from the specified reader or buffer, length delimited.
|
|
998
|
+
* @param reader Reader or buffer to decode from
|
|
999
|
+
* @returns AvroFormat
|
|
1000
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1001
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1002
|
+
*/
|
|
1003
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat;
|
|
1004
|
+
|
|
1005
|
+
/**
|
|
1006
|
+
* Verifies an AvroFormat message.
|
|
1007
|
+
* @param message Plain object to verify
|
|
1008
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
1009
|
+
*/
|
|
1010
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
1011
|
+
|
|
1012
|
+
/**
|
|
1013
|
+
* Creates an AvroFormat message from a plain object. Also converts values to their respective internal types.
|
|
1014
|
+
* @param object Plain object
|
|
1015
|
+
* @returns AvroFormat
|
|
1016
|
+
*/
|
|
1017
|
+
public static fromObject(object: { [k: string]: any }): google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat;
|
|
1018
|
+
|
|
1019
|
+
/**
|
|
1020
|
+
* Creates a plain object from an AvroFormat message. Also converts values to other types if specified.
|
|
1021
|
+
* @param message AvroFormat
|
|
1022
|
+
* @param [options] Conversion options
|
|
1023
|
+
* @returns Plain object
|
|
1024
|
+
*/
|
|
1025
|
+
public static toObject(message: google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.AvroFormat, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
1026
|
+
|
|
1027
|
+
/**
|
|
1028
|
+
* Converts this AvroFormat to JSON.
|
|
1029
|
+
* @returns JSON object
|
|
1030
|
+
*/
|
|
1031
|
+
public toJSON(): { [k: string]: any };
|
|
1032
|
+
|
|
1033
|
+
/**
|
|
1034
|
+
* Gets the default type url for AvroFormat
|
|
1035
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
1036
|
+
* @returns The default type url
|
|
1037
|
+
*/
|
|
1038
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
1039
|
+
}
|
|
1040
|
+
|
|
1041
|
+
/** Properties of a PubSubAvroFormat. */
|
|
1042
|
+
interface IPubSubAvroFormat {
|
|
1043
|
+
}
|
|
1044
|
+
|
|
1045
|
+
/** Represents a PubSubAvroFormat. */
|
|
1046
|
+
class PubSubAvroFormat implements IPubSubAvroFormat {
|
|
1047
|
+
|
|
1048
|
+
/**
|
|
1049
|
+
* Constructs a new PubSubAvroFormat.
|
|
1050
|
+
* @param [properties] Properties to set
|
|
1051
|
+
*/
|
|
1052
|
+
constructor(properties?: google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.IPubSubAvroFormat);
|
|
1053
|
+
|
|
1054
|
+
/**
|
|
1055
|
+
* Creates a new PubSubAvroFormat instance using the specified properties.
|
|
1056
|
+
* @param [properties] Properties to set
|
|
1057
|
+
* @returns PubSubAvroFormat instance
|
|
1058
|
+
*/
|
|
1059
|
+
public static create(properties?: google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.IPubSubAvroFormat): google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat;
|
|
1060
|
+
|
|
1061
|
+
/**
|
|
1062
|
+
* Encodes the specified PubSubAvroFormat message. Does not implicitly {@link google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat.verify|verify} messages.
|
|
1063
|
+
* @param message PubSubAvroFormat message or plain object to encode
|
|
1064
|
+
* @param [writer] Writer to encode to
|
|
1065
|
+
* @returns Writer
|
|
1066
|
+
*/
|
|
1067
|
+
public static encode(message: google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.IPubSubAvroFormat, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
1068
|
+
|
|
1069
|
+
/**
|
|
1070
|
+
* Encodes the specified PubSubAvroFormat message, length delimited. Does not implicitly {@link google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat.verify|verify} messages.
|
|
1071
|
+
* @param message PubSubAvroFormat message or plain object to encode
|
|
1072
|
+
* @param [writer] Writer to encode to
|
|
1073
|
+
* @returns Writer
|
|
1074
|
+
*/
|
|
1075
|
+
public static encodeDelimited(message: google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.IPubSubAvroFormat, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
1076
|
+
|
|
1077
|
+
/**
|
|
1078
|
+
* Decodes a PubSubAvroFormat message from the specified reader or buffer.
|
|
1079
|
+
* @param reader Reader or buffer to decode from
|
|
1080
|
+
* @param [length] Message length if known beforehand
|
|
1081
|
+
* @returns PubSubAvroFormat
|
|
1082
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1083
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1084
|
+
*/
|
|
1085
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat;
|
|
1086
|
+
|
|
1087
|
+
/**
|
|
1088
|
+
* Decodes a PubSubAvroFormat message from the specified reader or buffer, length delimited.
|
|
1089
|
+
* @param reader Reader or buffer to decode from
|
|
1090
|
+
* @returns PubSubAvroFormat
|
|
1091
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1092
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1093
|
+
*/
|
|
1094
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat;
|
|
1095
|
+
|
|
1096
|
+
/**
|
|
1097
|
+
* Verifies a PubSubAvroFormat message.
|
|
1098
|
+
* @param message Plain object to verify
|
|
1099
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
1100
|
+
*/
|
|
1101
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
1102
|
+
|
|
1103
|
+
/**
|
|
1104
|
+
* Creates a PubSubAvroFormat message from a plain object. Also converts values to their respective internal types.
|
|
1105
|
+
* @param object Plain object
|
|
1106
|
+
* @returns PubSubAvroFormat
|
|
1107
|
+
*/
|
|
1108
|
+
public static fromObject(object: { [k: string]: any }): google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat;
|
|
1109
|
+
|
|
1110
|
+
/**
|
|
1111
|
+
* Creates a plain object from a PubSubAvroFormat message. Also converts values to other types if specified.
|
|
1112
|
+
* @param message PubSubAvroFormat
|
|
1113
|
+
* @param [options] Conversion options
|
|
1114
|
+
* @returns Plain object
|
|
1115
|
+
*/
|
|
1116
|
+
public static toObject(message: google.pubsub.v1.IngestionDataSourceSettings.CloudStorage.PubSubAvroFormat, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
1117
|
+
|
|
1118
|
+
/**
|
|
1119
|
+
* Converts this PubSubAvroFormat to JSON.
|
|
1120
|
+
* @returns JSON object
|
|
1121
|
+
*/
|
|
1122
|
+
public toJSON(): { [k: string]: any };
|
|
1123
|
+
|
|
1124
|
+
/**
|
|
1125
|
+
* Gets the default type url for PubSubAvroFormat
|
|
1126
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
1127
|
+
* @returns The default type url
|
|
1128
|
+
*/
|
|
1129
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
1130
|
+
}
|
|
1131
|
+
}
|
|
1132
|
+
}
|
|
1133
|
+
|
|
1134
|
+
/** Properties of a PlatformLogsSettings. */
|
|
1135
|
+
interface IPlatformLogsSettings {
|
|
1136
|
+
|
|
1137
|
+
/** PlatformLogsSettings severity */
|
|
1138
|
+
severity?: (google.pubsub.v1.PlatformLogsSettings.Severity|keyof typeof google.pubsub.v1.PlatformLogsSettings.Severity|null);
|
|
1139
|
+
}
|
|
1140
|
+
|
|
1141
|
+
/** Represents a PlatformLogsSettings. */
|
|
1142
|
+
class PlatformLogsSettings implements IPlatformLogsSettings {
|
|
1143
|
+
|
|
1144
|
+
/**
|
|
1145
|
+
* Constructs a new PlatformLogsSettings.
|
|
1146
|
+
* @param [properties] Properties to set
|
|
1147
|
+
*/
|
|
1148
|
+
constructor(properties?: google.pubsub.v1.IPlatformLogsSettings);
|
|
1149
|
+
|
|
1150
|
+
/** PlatformLogsSettings severity. */
|
|
1151
|
+
public severity: (google.pubsub.v1.PlatformLogsSettings.Severity|keyof typeof google.pubsub.v1.PlatformLogsSettings.Severity);
|
|
1152
|
+
|
|
1153
|
+
/**
|
|
1154
|
+
* Creates a new PlatformLogsSettings instance using the specified properties.
|
|
1155
|
+
* @param [properties] Properties to set
|
|
1156
|
+
* @returns PlatformLogsSettings instance
|
|
1157
|
+
*/
|
|
1158
|
+
public static create(properties?: google.pubsub.v1.IPlatformLogsSettings): google.pubsub.v1.PlatformLogsSettings;
|
|
1159
|
+
|
|
1160
|
+
/**
|
|
1161
|
+
* Encodes the specified PlatformLogsSettings message. Does not implicitly {@link google.pubsub.v1.PlatformLogsSettings.verify|verify} messages.
|
|
1162
|
+
* @param message PlatformLogsSettings message or plain object to encode
|
|
1163
|
+
* @param [writer] Writer to encode to
|
|
1164
|
+
* @returns Writer
|
|
1165
|
+
*/
|
|
1166
|
+
public static encode(message: google.pubsub.v1.IPlatformLogsSettings, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
1167
|
+
|
|
1168
|
+
/**
|
|
1169
|
+
* Encodes the specified PlatformLogsSettings message, length delimited. Does not implicitly {@link google.pubsub.v1.PlatformLogsSettings.verify|verify} messages.
|
|
1170
|
+
* @param message PlatformLogsSettings message or plain object to encode
|
|
1171
|
+
* @param [writer] Writer to encode to
|
|
1172
|
+
* @returns Writer
|
|
1173
|
+
*/
|
|
1174
|
+
public static encodeDelimited(message: google.pubsub.v1.IPlatformLogsSettings, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
1175
|
+
|
|
1176
|
+
/**
|
|
1177
|
+
* Decodes a PlatformLogsSettings message from the specified reader or buffer.
|
|
1178
|
+
* @param reader Reader or buffer to decode from
|
|
1179
|
+
* @param [length] Message length if known beforehand
|
|
1180
|
+
* @returns PlatformLogsSettings
|
|
1181
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1182
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1183
|
+
*/
|
|
1184
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.pubsub.v1.PlatformLogsSettings;
|
|
1185
|
+
|
|
1186
|
+
/**
|
|
1187
|
+
* Decodes a PlatformLogsSettings message from the specified reader or buffer, length delimited.
|
|
1188
|
+
* @param reader Reader or buffer to decode from
|
|
1189
|
+
* @returns PlatformLogsSettings
|
|
1190
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
1191
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
1192
|
+
*/
|
|
1193
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.pubsub.v1.PlatformLogsSettings;
|
|
1194
|
+
|
|
1195
|
+
/**
|
|
1196
|
+
* Verifies a PlatformLogsSettings message.
|
|
1197
|
+
* @param message Plain object to verify
|
|
1198
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
1199
|
+
*/
|
|
1200
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
1201
|
+
|
|
1202
|
+
/**
|
|
1203
|
+
* Creates a PlatformLogsSettings message from a plain object. Also converts values to their respective internal types.
|
|
1204
|
+
* @param object Plain object
|
|
1205
|
+
* @returns PlatformLogsSettings
|
|
1206
|
+
*/
|
|
1207
|
+
public static fromObject(object: { [k: string]: any }): google.pubsub.v1.PlatformLogsSettings;
|
|
1208
|
+
|
|
1209
|
+
/**
|
|
1210
|
+
* Creates a plain object from a PlatformLogsSettings message. Also converts values to other types if specified.
|
|
1211
|
+
* @param message PlatformLogsSettings
|
|
1212
|
+
* @param [options] Conversion options
|
|
1213
|
+
* @returns Plain object
|
|
1214
|
+
*/
|
|
1215
|
+
public static toObject(message: google.pubsub.v1.PlatformLogsSettings, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
1216
|
+
|
|
1217
|
+
/**
|
|
1218
|
+
* Converts this PlatformLogsSettings to JSON.
|
|
1219
|
+
* @returns JSON object
|
|
1220
|
+
*/
|
|
1221
|
+
public toJSON(): { [k: string]: any };
|
|
1222
|
+
|
|
1223
|
+
/**
|
|
1224
|
+
* Gets the default type url for PlatformLogsSettings
|
|
1225
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
1226
|
+
* @returns The default type url
|
|
1227
|
+
*/
|
|
1228
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
1229
|
+
}
|
|
1230
|
+
|
|
1231
|
+
namespace PlatformLogsSettings {
|
|
1232
|
+
|
|
1233
|
+
/** Severity enum. */
|
|
1234
|
+
enum Severity {
|
|
1235
|
+
SEVERITY_UNSPECIFIED = 0,
|
|
1236
|
+
DISABLED = 1,
|
|
1237
|
+
DEBUG = 2,
|
|
1238
|
+
INFO = 3,
|
|
1239
|
+
WARNING = 4,
|
|
1240
|
+
ERROR = 5
|
|
1241
|
+
}
|
|
692
1242
|
}
|
|
693
1243
|
|
|
694
1244
|
/** Properties of a Topic. */
|
|
@@ -2704,6 +3254,9 @@ export namespace google {
|
|
|
2704
3254
|
|
|
2705
3255
|
/** Subscription state */
|
|
2706
3256
|
state?: (google.pubsub.v1.Subscription.State|keyof typeof google.pubsub.v1.Subscription.State|null);
|
|
3257
|
+
|
|
3258
|
+
/** Subscription analyticsHubSubscriptionInfo */
|
|
3259
|
+
analyticsHubSubscriptionInfo?: (google.pubsub.v1.Subscription.IAnalyticsHubSubscriptionInfo|null);
|
|
2707
3260
|
}
|
|
2708
3261
|
|
|
2709
3262
|
/** Represents a Subscription. */
|
|
@@ -2769,6 +3322,9 @@ export namespace google {
|
|
|
2769
3322
|
/** Subscription state. */
|
|
2770
3323
|
public state: (google.pubsub.v1.Subscription.State|keyof typeof google.pubsub.v1.Subscription.State);
|
|
2771
3324
|
|
|
3325
|
+
/** Subscription analyticsHubSubscriptionInfo. */
|
|
3326
|
+
public analyticsHubSubscriptionInfo?: (google.pubsub.v1.Subscription.IAnalyticsHubSubscriptionInfo|null);
|
|
3327
|
+
|
|
2772
3328
|
/**
|
|
2773
3329
|
* Creates a new Subscription instance using the specified properties.
|
|
2774
3330
|
* @param [properties] Properties to set
|
|
@@ -2855,6 +3411,109 @@ export namespace google {
|
|
|
2855
3411
|
ACTIVE = 1,
|
|
2856
3412
|
RESOURCE_ERROR = 2
|
|
2857
3413
|
}
|
|
3414
|
+
|
|
3415
|
+
/** Properties of an AnalyticsHubSubscriptionInfo. */
|
|
3416
|
+
interface IAnalyticsHubSubscriptionInfo {
|
|
3417
|
+
|
|
3418
|
+
/** AnalyticsHubSubscriptionInfo listing */
|
|
3419
|
+
listing?: (string|null);
|
|
3420
|
+
|
|
3421
|
+
/** AnalyticsHubSubscriptionInfo subscription */
|
|
3422
|
+
subscription?: (string|null);
|
|
3423
|
+
}
|
|
3424
|
+
|
|
3425
|
+
/** Represents an AnalyticsHubSubscriptionInfo. */
|
|
3426
|
+
class AnalyticsHubSubscriptionInfo implements IAnalyticsHubSubscriptionInfo {
|
|
3427
|
+
|
|
3428
|
+
/**
|
|
3429
|
+
* Constructs a new AnalyticsHubSubscriptionInfo.
|
|
3430
|
+
* @param [properties] Properties to set
|
|
3431
|
+
*/
|
|
3432
|
+
constructor(properties?: google.pubsub.v1.Subscription.IAnalyticsHubSubscriptionInfo);
|
|
3433
|
+
|
|
3434
|
+
/** AnalyticsHubSubscriptionInfo listing. */
|
|
3435
|
+
public listing: string;
|
|
3436
|
+
|
|
3437
|
+
/** AnalyticsHubSubscriptionInfo subscription. */
|
|
3438
|
+
public subscription: string;
|
|
3439
|
+
|
|
3440
|
+
/**
|
|
3441
|
+
* Creates a new AnalyticsHubSubscriptionInfo instance using the specified properties.
|
|
3442
|
+
* @param [properties] Properties to set
|
|
3443
|
+
* @returns AnalyticsHubSubscriptionInfo instance
|
|
3444
|
+
*/
|
|
3445
|
+
public static create(properties?: google.pubsub.v1.Subscription.IAnalyticsHubSubscriptionInfo): google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo;
|
|
3446
|
+
|
|
3447
|
+
/**
|
|
3448
|
+
* Encodes the specified AnalyticsHubSubscriptionInfo message. Does not implicitly {@link google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo.verify|verify} messages.
|
|
3449
|
+
* @param message AnalyticsHubSubscriptionInfo message or plain object to encode
|
|
3450
|
+
* @param [writer] Writer to encode to
|
|
3451
|
+
* @returns Writer
|
|
3452
|
+
*/
|
|
3453
|
+
public static encode(message: google.pubsub.v1.Subscription.IAnalyticsHubSubscriptionInfo, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
3454
|
+
|
|
3455
|
+
/**
|
|
3456
|
+
* Encodes the specified AnalyticsHubSubscriptionInfo message, length delimited. Does not implicitly {@link google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo.verify|verify} messages.
|
|
3457
|
+
* @param message AnalyticsHubSubscriptionInfo message or plain object to encode
|
|
3458
|
+
* @param [writer] Writer to encode to
|
|
3459
|
+
* @returns Writer
|
|
3460
|
+
*/
|
|
3461
|
+
public static encodeDelimited(message: google.pubsub.v1.Subscription.IAnalyticsHubSubscriptionInfo, writer?: $protobuf.Writer): $protobuf.Writer;
|
|
3462
|
+
|
|
3463
|
+
/**
|
|
3464
|
+
* Decodes an AnalyticsHubSubscriptionInfo message from the specified reader or buffer.
|
|
3465
|
+
* @param reader Reader or buffer to decode from
|
|
3466
|
+
* @param [length] Message length if known beforehand
|
|
3467
|
+
* @returns AnalyticsHubSubscriptionInfo
|
|
3468
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
3469
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
3470
|
+
*/
|
|
3471
|
+
public static decode(reader: ($protobuf.Reader|Uint8Array), length?: number): google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo;
|
|
3472
|
+
|
|
3473
|
+
/**
|
|
3474
|
+
* Decodes an AnalyticsHubSubscriptionInfo message from the specified reader or buffer, length delimited.
|
|
3475
|
+
* @param reader Reader or buffer to decode from
|
|
3476
|
+
* @returns AnalyticsHubSubscriptionInfo
|
|
3477
|
+
* @throws {Error} If the payload is not a reader or valid buffer
|
|
3478
|
+
* @throws {$protobuf.util.ProtocolError} If required fields are missing
|
|
3479
|
+
*/
|
|
3480
|
+
public static decodeDelimited(reader: ($protobuf.Reader|Uint8Array)): google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo;
|
|
3481
|
+
|
|
3482
|
+
/**
|
|
3483
|
+
* Verifies an AnalyticsHubSubscriptionInfo message.
|
|
3484
|
+
* @param message Plain object to verify
|
|
3485
|
+
* @returns `null` if valid, otherwise the reason why it is not
|
|
3486
|
+
*/
|
|
3487
|
+
public static verify(message: { [k: string]: any }): (string|null);
|
|
3488
|
+
|
|
3489
|
+
/**
|
|
3490
|
+
* Creates an AnalyticsHubSubscriptionInfo message from a plain object. Also converts values to their respective internal types.
|
|
3491
|
+
* @param object Plain object
|
|
3492
|
+
* @returns AnalyticsHubSubscriptionInfo
|
|
3493
|
+
*/
|
|
3494
|
+
public static fromObject(object: { [k: string]: any }): google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo;
|
|
3495
|
+
|
|
3496
|
+
/**
|
|
3497
|
+
* Creates a plain object from an AnalyticsHubSubscriptionInfo message. Also converts values to other types if specified.
|
|
3498
|
+
* @param message AnalyticsHubSubscriptionInfo
|
|
3499
|
+
* @param [options] Conversion options
|
|
3500
|
+
* @returns Plain object
|
|
3501
|
+
*/
|
|
3502
|
+
public static toObject(message: google.pubsub.v1.Subscription.AnalyticsHubSubscriptionInfo, options?: $protobuf.IConversionOptions): { [k: string]: any };
|
|
3503
|
+
|
|
3504
|
+
/**
|
|
3505
|
+
* Converts this AnalyticsHubSubscriptionInfo to JSON.
|
|
3506
|
+
* @returns JSON object
|
|
3507
|
+
*/
|
|
3508
|
+
public toJSON(): { [k: string]: any };
|
|
3509
|
+
|
|
3510
|
+
/**
|
|
3511
|
+
* Gets the default type url for AnalyticsHubSubscriptionInfo
|
|
3512
|
+
* @param [typeUrlPrefix] your custom typeUrlPrefix(default "type.googleapis.com")
|
|
3513
|
+
* @returns The default type url
|
|
3514
|
+
*/
|
|
3515
|
+
public static getTypeUrl(typeUrlPrefix?: string): string;
|
|
3516
|
+
}
|
|
2858
3517
|
}
|
|
2859
3518
|
|
|
2860
3519
|
/** Properties of a RetryPolicy. */
|