@devvit/protos 0.10.20-next-2024-05-07-56d825067.0 → 0.10.20-next-2024-05-07-d3abfaea1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -739,6 +739,88 @@ export const GetAllWithInstallerRequest = {
739
739
  },
740
740
  };
741
741
  messageTypeRegistry.set(GetAllWithInstallerRequest.$type, GetAllWithInstallerRequest);
742
+ function createBaseGetAllWithAppRequest() {
743
+ return { id: "", take: undefined, skip: undefined };
744
+ }
745
+ export const GetAllWithAppRequest = {
746
+ $type: "devvit.dev_portal.installation.GetAllWithAppRequest",
747
+ encode(message, writer = _m0.Writer.create()) {
748
+ if (message.id !== "") {
749
+ writer.uint32(10).string(message.id);
750
+ }
751
+ if (message.take !== undefined) {
752
+ writer.uint32(16).uint32(message.take);
753
+ }
754
+ if (message.skip !== undefined) {
755
+ writer.uint32(24).uint32(message.skip);
756
+ }
757
+ return writer;
758
+ },
759
+ decode(input, length) {
760
+ const reader = input instanceof _m0.Reader ? input : _m0.Reader.create(input);
761
+ let end = length === undefined ? reader.len : reader.pos + length;
762
+ const message = createBaseGetAllWithAppRequest();
763
+ while (reader.pos < end) {
764
+ const tag = reader.uint32();
765
+ switch (tag >>> 3) {
766
+ case 1:
767
+ if (tag !== 10) {
768
+ break;
769
+ }
770
+ message.id = reader.string();
771
+ continue;
772
+ case 2:
773
+ if (tag !== 16) {
774
+ break;
775
+ }
776
+ message.take = reader.uint32();
777
+ continue;
778
+ case 3:
779
+ if (tag !== 24) {
780
+ break;
781
+ }
782
+ message.skip = reader.uint32();
783
+ continue;
784
+ }
785
+ if ((tag & 7) === 4 || tag === 0) {
786
+ break;
787
+ }
788
+ reader.skipType(tag & 7);
789
+ }
790
+ return message;
791
+ },
792
+ fromJSON(object) {
793
+ return {
794
+ id: isSet(object.id) ? globalThis.String(object.id) : "",
795
+ take: isSet(object.take) ? globalThis.Number(object.take) : undefined,
796
+ skip: isSet(object.skip) ? globalThis.Number(object.skip) : undefined,
797
+ };
798
+ },
799
+ toJSON(message) {
800
+ const obj = {};
801
+ if (message.id !== "") {
802
+ obj.id = message.id;
803
+ }
804
+ if (message.take !== undefined) {
805
+ obj.take = Math.round(message.take);
806
+ }
807
+ if (message.skip !== undefined) {
808
+ obj.skip = Math.round(message.skip);
809
+ }
810
+ return obj;
811
+ },
812
+ create(base) {
813
+ return GetAllWithAppRequest.fromPartial(base ?? {});
814
+ },
815
+ fromPartial(object) {
816
+ const message = createBaseGetAllWithAppRequest();
817
+ message.id = object.id ?? "";
818
+ message.take = object.take ?? undefined;
819
+ message.skip = object.skip ?? undefined;
820
+ return message;
821
+ },
822
+ };
823
+ messageTypeRegistry.set(GetAllWithAppRequest.$type, GetAllWithAppRequest);
742
824
  function createBaseGetInstallationHistoryRequest() {
743
825
  return { type: 0, location: "", slug: "", from: undefined, to: undefined, take: undefined, desc: undefined };
744
826
  }