@lansweeper/multitenant-api-grpc 0.2.3 → 0.2.5
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 +16 -0
- package/gen-proto/image.json +1 -1
- package/gen-proto/multitenant_grpc_pb.d.ts +17 -0
- package/gen-proto/multitenant_grpc_pb.js +33 -0
- package/gen-proto/multitenant_pb.d.ts +127 -0
- package/gen-proto/multitenant_pb.js +1040 -0
- package/package.json +3 -3
- package/proto/multitenant.proto +132 -107
|
@@ -31,6 +31,11 @@ goog.exportSymbol('proto.lansweeper.multitenant.v1.GetInstallsCountBySiteRequest
|
|
|
31
31
|
goog.exportSymbol('proto.lansweeper.multitenant.v1.GetInstallsCountResponse', null, global);
|
|
32
32
|
goog.exportSymbol('proto.lansweeper.multitenant.v1.GetPreviewAccountByIdRequest', null, global);
|
|
33
33
|
goog.exportSymbol('proto.lansweeper.multitenant.v1.GetPreviewAccountByIdResponse', null, global);
|
|
34
|
+
goog.exportSymbol('proto.lansweeper.multitenant.v1.GetUserPermissionsRequest', null, global);
|
|
35
|
+
goog.exportSymbol('proto.lansweeper.multitenant.v1.GetUserPermissionsResponse', null, global);
|
|
36
|
+
goog.exportSymbol('proto.lansweeper.multitenant.v1.GetUserPermissionsResponse.AuthorizationAction', null, global);
|
|
37
|
+
goog.exportSymbol('proto.lansweeper.multitenant.v1.GetUserPermissionsResponse.Role', null, global);
|
|
38
|
+
goog.exportSymbol('proto.lansweeper.multitenant.v1.GetUserPermissionsResponse.Scope', null, global);
|
|
34
39
|
goog.exportSymbol('proto.lansweeper.multitenant.v1.Install', null, global);
|
|
35
40
|
goog.exportSymbol('proto.lansweeper.multitenant.v1.Install.InstallState', null, global);
|
|
36
41
|
goog.exportSymbol('proto.lansweeper.multitenant.v1.InstallCredentials', null, global);
|
|
@@ -809,6 +814,111 @@ if (goog.DEBUG && !COMPILED) {
|
|
|
809
814
|
*/
|
|
810
815
|
proto.lansweeper.multitenant.v1.GetDuplicatedInstallsByGlobalIdResponse.displayName = 'proto.lansweeper.multitenant.v1.GetDuplicatedInstallsByGlobalIdResponse';
|
|
811
816
|
}
|
|
817
|
+
/**
|
|
818
|
+
* Generated by JsPbCodeGenerator.
|
|
819
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
820
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
821
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
822
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
823
|
+
* valid.
|
|
824
|
+
* @extends {jspb.Message}
|
|
825
|
+
* @constructor
|
|
826
|
+
*/
|
|
827
|
+
proto.lansweeper.multitenant.v1.GetUserPermissionsRequest = function(opt_data) {
|
|
828
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
829
|
+
};
|
|
830
|
+
goog.inherits(proto.lansweeper.multitenant.v1.GetUserPermissionsRequest, jspb.Message);
|
|
831
|
+
if (goog.DEBUG && !COMPILED) {
|
|
832
|
+
/**
|
|
833
|
+
* @public
|
|
834
|
+
* @override
|
|
835
|
+
*/
|
|
836
|
+
proto.lansweeper.multitenant.v1.GetUserPermissionsRequest.displayName = 'proto.lansweeper.multitenant.v1.GetUserPermissionsRequest';
|
|
837
|
+
}
|
|
838
|
+
/**
|
|
839
|
+
* Generated by JsPbCodeGenerator.
|
|
840
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
841
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
842
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
843
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
844
|
+
* valid.
|
|
845
|
+
* @extends {jspb.Message}
|
|
846
|
+
* @constructor
|
|
847
|
+
*/
|
|
848
|
+
proto.lansweeper.multitenant.v1.GetUserPermissionsResponse = function(opt_data) {
|
|
849
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.lansweeper.multitenant.v1.GetUserPermissionsResponse.repeatedFields_, null);
|
|
850
|
+
};
|
|
851
|
+
goog.inherits(proto.lansweeper.multitenant.v1.GetUserPermissionsResponse, jspb.Message);
|
|
852
|
+
if (goog.DEBUG && !COMPILED) {
|
|
853
|
+
/**
|
|
854
|
+
* @public
|
|
855
|
+
* @override
|
|
856
|
+
*/
|
|
857
|
+
proto.lansweeper.multitenant.v1.GetUserPermissionsResponse.displayName = 'proto.lansweeper.multitenant.v1.GetUserPermissionsResponse';
|
|
858
|
+
}
|
|
859
|
+
/**
|
|
860
|
+
* Generated by JsPbCodeGenerator.
|
|
861
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
862
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
863
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
864
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
865
|
+
* valid.
|
|
866
|
+
* @extends {jspb.Message}
|
|
867
|
+
* @constructor
|
|
868
|
+
*/
|
|
869
|
+
proto.lansweeper.multitenant.v1.GetUserPermissionsResponse.AuthorizationAction = function(opt_data) {
|
|
870
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
871
|
+
};
|
|
872
|
+
goog.inherits(proto.lansweeper.multitenant.v1.GetUserPermissionsResponse.AuthorizationAction, jspb.Message);
|
|
873
|
+
if (goog.DEBUG && !COMPILED) {
|
|
874
|
+
/**
|
|
875
|
+
* @public
|
|
876
|
+
* @override
|
|
877
|
+
*/
|
|
878
|
+
proto.lansweeper.multitenant.v1.GetUserPermissionsResponse.AuthorizationAction.displayName = 'proto.lansweeper.multitenant.v1.GetUserPermissionsResponse.AuthorizationAction';
|
|
879
|
+
}
|
|
880
|
+
/**
|
|
881
|
+
* Generated by JsPbCodeGenerator.
|
|
882
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
883
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
884
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
885
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
886
|
+
* valid.
|
|
887
|
+
* @extends {jspb.Message}
|
|
888
|
+
* @constructor
|
|
889
|
+
*/
|
|
890
|
+
proto.lansweeper.multitenant.v1.GetUserPermissionsResponse.Scope = function(opt_data) {
|
|
891
|
+
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
|
|
892
|
+
};
|
|
893
|
+
goog.inherits(proto.lansweeper.multitenant.v1.GetUserPermissionsResponse.Scope, jspb.Message);
|
|
894
|
+
if (goog.DEBUG && !COMPILED) {
|
|
895
|
+
/**
|
|
896
|
+
* @public
|
|
897
|
+
* @override
|
|
898
|
+
*/
|
|
899
|
+
proto.lansweeper.multitenant.v1.GetUserPermissionsResponse.Scope.displayName = 'proto.lansweeper.multitenant.v1.GetUserPermissionsResponse.Scope';
|
|
900
|
+
}
|
|
901
|
+
/**
|
|
902
|
+
* Generated by JsPbCodeGenerator.
|
|
903
|
+
* @param {Array=} opt_data Optional initial data array, typically from a
|
|
904
|
+
* server response, or constructed directly in Javascript. The array is used
|
|
905
|
+
* in place and becomes part of the constructed object. It is not cloned.
|
|
906
|
+
* If no data is provided, the constructed object will be empty, but still
|
|
907
|
+
* valid.
|
|
908
|
+
* @extends {jspb.Message}
|
|
909
|
+
* @constructor
|
|
910
|
+
*/
|
|
911
|
+
proto.lansweeper.multitenant.v1.GetUserPermissionsResponse.Role = function(opt_data) {
|
|
912
|
+
jspb.Message.initialize(this, opt_data, 0, -1, proto.lansweeper.multitenant.v1.GetUserPermissionsResponse.Role.repeatedFields_, null);
|
|
913
|
+
};
|
|
914
|
+
goog.inherits(proto.lansweeper.multitenant.v1.GetUserPermissionsResponse.Role, jspb.Message);
|
|
915
|
+
if (goog.DEBUG && !COMPILED) {
|
|
916
|
+
/**
|
|
917
|
+
* @public
|
|
918
|
+
* @override
|
|
919
|
+
*/
|
|
920
|
+
proto.lansweeper.multitenant.v1.GetUserPermissionsResponse.Role.displayName = 'proto.lansweeper.multitenant.v1.GetUserPermissionsResponse.Role';
|
|
921
|
+
}
|
|
812
922
|
|
|
813
923
|
|
|
814
924
|
|
|
@@ -7525,6 +7635,936 @@ proto.lansweeper.multitenant.v1.GetDuplicatedInstallsByGlobalIdResponse.prototyp
|
|
|
7525
7635
|
};
|
|
7526
7636
|
|
|
7527
7637
|
|
|
7638
|
+
|
|
7639
|
+
|
|
7640
|
+
|
|
7641
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
7642
|
+
/**
|
|
7643
|
+
* Creates an object representation of this proto.
|
|
7644
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
7645
|
+
* Optional fields that are not set will be set to undefined.
|
|
7646
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
7647
|
+
* For the list of reserved names please see:
|
|
7648
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
7649
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
7650
|
+
* JSPB instance for transitional soy proto support:
|
|
7651
|
+
* http://goto/soy-param-migration
|
|
7652
|
+
* @return {!Object}
|
|
7653
|
+
*/
|
|
7654
|
+
proto.lansweeper.multitenant.v1.GetUserPermissionsRequest.prototype.toObject = function(opt_includeInstance) {
|
|
7655
|
+
return proto.lansweeper.multitenant.v1.GetUserPermissionsRequest.toObject(opt_includeInstance, this);
|
|
7656
|
+
};
|
|
7657
|
+
|
|
7658
|
+
|
|
7659
|
+
/**
|
|
7660
|
+
* Static version of the {@see toObject} method.
|
|
7661
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
7662
|
+
* the JSPB instance for transitional soy proto support:
|
|
7663
|
+
* http://goto/soy-param-migration
|
|
7664
|
+
* @param {!proto.lansweeper.multitenant.v1.GetUserPermissionsRequest} msg The msg instance to transform.
|
|
7665
|
+
* @return {!Object}
|
|
7666
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
7667
|
+
*/
|
|
7668
|
+
proto.lansweeper.multitenant.v1.GetUserPermissionsRequest.toObject = function(includeInstance, msg) {
|
|
7669
|
+
var f, obj = {
|
|
7670
|
+
siteId: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
7671
|
+
accountId: jspb.Message.getFieldWithDefault(msg, 2, "")
|
|
7672
|
+
};
|
|
7673
|
+
|
|
7674
|
+
if (includeInstance) {
|
|
7675
|
+
obj.$jspbMessageInstance = msg;
|
|
7676
|
+
}
|
|
7677
|
+
return obj;
|
|
7678
|
+
};
|
|
7679
|
+
}
|
|
7680
|
+
|
|
7681
|
+
|
|
7682
|
+
/**
|
|
7683
|
+
* Deserializes binary data (in protobuf wire format).
|
|
7684
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
7685
|
+
* @return {!proto.lansweeper.multitenant.v1.GetUserPermissionsRequest}
|
|
7686
|
+
*/
|
|
7687
|
+
proto.lansweeper.multitenant.v1.GetUserPermissionsRequest.deserializeBinary = function(bytes) {
|
|
7688
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
7689
|
+
var msg = new proto.lansweeper.multitenant.v1.GetUserPermissionsRequest;
|
|
7690
|
+
return proto.lansweeper.multitenant.v1.GetUserPermissionsRequest.deserializeBinaryFromReader(msg, reader);
|
|
7691
|
+
};
|
|
7692
|
+
|
|
7693
|
+
|
|
7694
|
+
/**
|
|
7695
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
7696
|
+
* given reader into the given message object.
|
|
7697
|
+
* @param {!proto.lansweeper.multitenant.v1.GetUserPermissionsRequest} msg The message object to deserialize into.
|
|
7698
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
7699
|
+
* @return {!proto.lansweeper.multitenant.v1.GetUserPermissionsRequest}
|
|
7700
|
+
*/
|
|
7701
|
+
proto.lansweeper.multitenant.v1.GetUserPermissionsRequest.deserializeBinaryFromReader = function(msg, reader) {
|
|
7702
|
+
while (reader.nextField()) {
|
|
7703
|
+
if (reader.isEndGroup()) {
|
|
7704
|
+
break;
|
|
7705
|
+
}
|
|
7706
|
+
var field = reader.getFieldNumber();
|
|
7707
|
+
switch (field) {
|
|
7708
|
+
case 1:
|
|
7709
|
+
var value = /** @type {string} */ (reader.readString());
|
|
7710
|
+
msg.setSiteId(value);
|
|
7711
|
+
break;
|
|
7712
|
+
case 2:
|
|
7713
|
+
var value = /** @type {string} */ (reader.readString());
|
|
7714
|
+
msg.setAccountId(value);
|
|
7715
|
+
break;
|
|
7716
|
+
default:
|
|
7717
|
+
reader.skipField();
|
|
7718
|
+
break;
|
|
7719
|
+
}
|
|
7720
|
+
}
|
|
7721
|
+
return msg;
|
|
7722
|
+
};
|
|
7723
|
+
|
|
7724
|
+
|
|
7725
|
+
/**
|
|
7726
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
7727
|
+
* @return {!Uint8Array}
|
|
7728
|
+
*/
|
|
7729
|
+
proto.lansweeper.multitenant.v1.GetUserPermissionsRequest.prototype.serializeBinary = function() {
|
|
7730
|
+
var writer = new jspb.BinaryWriter();
|
|
7731
|
+
proto.lansweeper.multitenant.v1.GetUserPermissionsRequest.serializeBinaryToWriter(this, writer);
|
|
7732
|
+
return writer.getResultBuffer();
|
|
7733
|
+
};
|
|
7734
|
+
|
|
7735
|
+
|
|
7736
|
+
/**
|
|
7737
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
7738
|
+
* format), writing to the given BinaryWriter.
|
|
7739
|
+
* @param {!proto.lansweeper.multitenant.v1.GetUserPermissionsRequest} message
|
|
7740
|
+
* @param {!jspb.BinaryWriter} writer
|
|
7741
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
7742
|
+
*/
|
|
7743
|
+
proto.lansweeper.multitenant.v1.GetUserPermissionsRequest.serializeBinaryToWriter = function(message, writer) {
|
|
7744
|
+
var f = undefined;
|
|
7745
|
+
f = message.getSiteId();
|
|
7746
|
+
if (f.length > 0) {
|
|
7747
|
+
writer.writeString(
|
|
7748
|
+
1,
|
|
7749
|
+
f
|
|
7750
|
+
);
|
|
7751
|
+
}
|
|
7752
|
+
f = message.getAccountId();
|
|
7753
|
+
if (f.length > 0) {
|
|
7754
|
+
writer.writeString(
|
|
7755
|
+
2,
|
|
7756
|
+
f
|
|
7757
|
+
);
|
|
7758
|
+
}
|
|
7759
|
+
};
|
|
7760
|
+
|
|
7761
|
+
|
|
7762
|
+
/**
|
|
7763
|
+
* optional string site_id = 1;
|
|
7764
|
+
* @return {string}
|
|
7765
|
+
*/
|
|
7766
|
+
proto.lansweeper.multitenant.v1.GetUserPermissionsRequest.prototype.getSiteId = function() {
|
|
7767
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
7768
|
+
};
|
|
7769
|
+
|
|
7770
|
+
|
|
7771
|
+
/**
|
|
7772
|
+
* @param {string} value
|
|
7773
|
+
* @return {!proto.lansweeper.multitenant.v1.GetUserPermissionsRequest} returns this
|
|
7774
|
+
*/
|
|
7775
|
+
proto.lansweeper.multitenant.v1.GetUserPermissionsRequest.prototype.setSiteId = function(value) {
|
|
7776
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
7777
|
+
};
|
|
7778
|
+
|
|
7779
|
+
|
|
7780
|
+
/**
|
|
7781
|
+
* optional string account_id = 2;
|
|
7782
|
+
* @return {string}
|
|
7783
|
+
*/
|
|
7784
|
+
proto.lansweeper.multitenant.v1.GetUserPermissionsRequest.prototype.getAccountId = function() {
|
|
7785
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
7786
|
+
};
|
|
7787
|
+
|
|
7788
|
+
|
|
7789
|
+
/**
|
|
7790
|
+
* @param {string} value
|
|
7791
|
+
* @return {!proto.lansweeper.multitenant.v1.GetUserPermissionsRequest} returns this
|
|
7792
|
+
*/
|
|
7793
|
+
proto.lansweeper.multitenant.v1.GetUserPermissionsRequest.prototype.setAccountId = function(value) {
|
|
7794
|
+
return jspb.Message.setProto3StringField(this, 2, value);
|
|
7795
|
+
};
|
|
7796
|
+
|
|
7797
|
+
|
|
7798
|
+
|
|
7799
|
+
/**
|
|
7800
|
+
* List of repeated fields within this message type.
|
|
7801
|
+
* @private {!Array<number>}
|
|
7802
|
+
* @const
|
|
7803
|
+
*/
|
|
7804
|
+
proto.lansweeper.multitenant.v1.GetUserPermissionsResponse.repeatedFields_ = [1];
|
|
7805
|
+
|
|
7806
|
+
|
|
7807
|
+
|
|
7808
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
7809
|
+
/**
|
|
7810
|
+
* Creates an object representation of this proto.
|
|
7811
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
7812
|
+
* Optional fields that are not set will be set to undefined.
|
|
7813
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
7814
|
+
* For the list of reserved names please see:
|
|
7815
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
7816
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
7817
|
+
* JSPB instance for transitional soy proto support:
|
|
7818
|
+
* http://goto/soy-param-migration
|
|
7819
|
+
* @return {!Object}
|
|
7820
|
+
*/
|
|
7821
|
+
proto.lansweeper.multitenant.v1.GetUserPermissionsResponse.prototype.toObject = function(opt_includeInstance) {
|
|
7822
|
+
return proto.lansweeper.multitenant.v1.GetUserPermissionsResponse.toObject(opt_includeInstance, this);
|
|
7823
|
+
};
|
|
7824
|
+
|
|
7825
|
+
|
|
7826
|
+
/**
|
|
7827
|
+
* Static version of the {@see toObject} method.
|
|
7828
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
7829
|
+
* the JSPB instance for transitional soy proto support:
|
|
7830
|
+
* http://goto/soy-param-migration
|
|
7831
|
+
* @param {!proto.lansweeper.multitenant.v1.GetUserPermissionsResponse} msg The msg instance to transform.
|
|
7832
|
+
* @return {!Object}
|
|
7833
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
7834
|
+
*/
|
|
7835
|
+
proto.lansweeper.multitenant.v1.GetUserPermissionsResponse.toObject = function(includeInstance, msg) {
|
|
7836
|
+
var f, obj = {
|
|
7837
|
+
rolesList: jspb.Message.toObjectList(msg.getRolesList(),
|
|
7838
|
+
proto.lansweeper.multitenant.v1.GetUserPermissionsResponse.Role.toObject, includeInstance)
|
|
7839
|
+
};
|
|
7840
|
+
|
|
7841
|
+
if (includeInstance) {
|
|
7842
|
+
obj.$jspbMessageInstance = msg;
|
|
7843
|
+
}
|
|
7844
|
+
return obj;
|
|
7845
|
+
};
|
|
7846
|
+
}
|
|
7847
|
+
|
|
7848
|
+
|
|
7849
|
+
/**
|
|
7850
|
+
* Deserializes binary data (in protobuf wire format).
|
|
7851
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
7852
|
+
* @return {!proto.lansweeper.multitenant.v1.GetUserPermissionsResponse}
|
|
7853
|
+
*/
|
|
7854
|
+
proto.lansweeper.multitenant.v1.GetUserPermissionsResponse.deserializeBinary = function(bytes) {
|
|
7855
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
7856
|
+
var msg = new proto.lansweeper.multitenant.v1.GetUserPermissionsResponse;
|
|
7857
|
+
return proto.lansweeper.multitenant.v1.GetUserPermissionsResponse.deserializeBinaryFromReader(msg, reader);
|
|
7858
|
+
};
|
|
7859
|
+
|
|
7860
|
+
|
|
7861
|
+
/**
|
|
7862
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
7863
|
+
* given reader into the given message object.
|
|
7864
|
+
* @param {!proto.lansweeper.multitenant.v1.GetUserPermissionsResponse} msg The message object to deserialize into.
|
|
7865
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
7866
|
+
* @return {!proto.lansweeper.multitenant.v1.GetUserPermissionsResponse}
|
|
7867
|
+
*/
|
|
7868
|
+
proto.lansweeper.multitenant.v1.GetUserPermissionsResponse.deserializeBinaryFromReader = function(msg, reader) {
|
|
7869
|
+
while (reader.nextField()) {
|
|
7870
|
+
if (reader.isEndGroup()) {
|
|
7871
|
+
break;
|
|
7872
|
+
}
|
|
7873
|
+
var field = reader.getFieldNumber();
|
|
7874
|
+
switch (field) {
|
|
7875
|
+
case 1:
|
|
7876
|
+
var value = new proto.lansweeper.multitenant.v1.GetUserPermissionsResponse.Role;
|
|
7877
|
+
reader.readMessage(value,proto.lansweeper.multitenant.v1.GetUserPermissionsResponse.Role.deserializeBinaryFromReader);
|
|
7878
|
+
msg.addRoles(value);
|
|
7879
|
+
break;
|
|
7880
|
+
default:
|
|
7881
|
+
reader.skipField();
|
|
7882
|
+
break;
|
|
7883
|
+
}
|
|
7884
|
+
}
|
|
7885
|
+
return msg;
|
|
7886
|
+
};
|
|
7887
|
+
|
|
7888
|
+
|
|
7889
|
+
/**
|
|
7890
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
7891
|
+
* @return {!Uint8Array}
|
|
7892
|
+
*/
|
|
7893
|
+
proto.lansweeper.multitenant.v1.GetUserPermissionsResponse.prototype.serializeBinary = function() {
|
|
7894
|
+
var writer = new jspb.BinaryWriter();
|
|
7895
|
+
proto.lansweeper.multitenant.v1.GetUserPermissionsResponse.serializeBinaryToWriter(this, writer);
|
|
7896
|
+
return writer.getResultBuffer();
|
|
7897
|
+
};
|
|
7898
|
+
|
|
7899
|
+
|
|
7900
|
+
/**
|
|
7901
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
7902
|
+
* format), writing to the given BinaryWriter.
|
|
7903
|
+
* @param {!proto.lansweeper.multitenant.v1.GetUserPermissionsResponse} message
|
|
7904
|
+
* @param {!jspb.BinaryWriter} writer
|
|
7905
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
7906
|
+
*/
|
|
7907
|
+
proto.lansweeper.multitenant.v1.GetUserPermissionsResponse.serializeBinaryToWriter = function(message, writer) {
|
|
7908
|
+
var f = undefined;
|
|
7909
|
+
f = message.getRolesList();
|
|
7910
|
+
if (f.length > 0) {
|
|
7911
|
+
writer.writeRepeatedMessage(
|
|
7912
|
+
1,
|
|
7913
|
+
f,
|
|
7914
|
+
proto.lansweeper.multitenant.v1.GetUserPermissionsResponse.Role.serializeBinaryToWriter
|
|
7915
|
+
);
|
|
7916
|
+
}
|
|
7917
|
+
};
|
|
7918
|
+
|
|
7919
|
+
|
|
7920
|
+
|
|
7921
|
+
|
|
7922
|
+
|
|
7923
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
7924
|
+
/**
|
|
7925
|
+
* Creates an object representation of this proto.
|
|
7926
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
7927
|
+
* Optional fields that are not set will be set to undefined.
|
|
7928
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
7929
|
+
* For the list of reserved names please see:
|
|
7930
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
7931
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
7932
|
+
* JSPB instance for transitional soy proto support:
|
|
7933
|
+
* http://goto/soy-param-migration
|
|
7934
|
+
* @return {!Object}
|
|
7935
|
+
*/
|
|
7936
|
+
proto.lansweeper.multitenant.v1.GetUserPermissionsResponse.AuthorizationAction.prototype.toObject = function(opt_includeInstance) {
|
|
7937
|
+
return proto.lansweeper.multitenant.v1.GetUserPermissionsResponse.AuthorizationAction.toObject(opt_includeInstance, this);
|
|
7938
|
+
};
|
|
7939
|
+
|
|
7940
|
+
|
|
7941
|
+
/**
|
|
7942
|
+
* Static version of the {@see toObject} method.
|
|
7943
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
7944
|
+
* the JSPB instance for transitional soy proto support:
|
|
7945
|
+
* http://goto/soy-param-migration
|
|
7946
|
+
* @param {!proto.lansweeper.multitenant.v1.GetUserPermissionsResponse.AuthorizationAction} msg The msg instance to transform.
|
|
7947
|
+
* @return {!Object}
|
|
7948
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
7949
|
+
*/
|
|
7950
|
+
proto.lansweeper.multitenant.v1.GetUserPermissionsResponse.AuthorizationAction.toObject = function(includeInstance, msg) {
|
|
7951
|
+
var f, obj = {
|
|
7952
|
+
key: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
7953
|
+
derivedPermissions: msg.getDerivedPermissions_asB64()
|
|
7954
|
+
};
|
|
7955
|
+
|
|
7956
|
+
if (includeInstance) {
|
|
7957
|
+
obj.$jspbMessageInstance = msg;
|
|
7958
|
+
}
|
|
7959
|
+
return obj;
|
|
7960
|
+
};
|
|
7961
|
+
}
|
|
7962
|
+
|
|
7963
|
+
|
|
7964
|
+
/**
|
|
7965
|
+
* Deserializes binary data (in protobuf wire format).
|
|
7966
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
7967
|
+
* @return {!proto.lansweeper.multitenant.v1.GetUserPermissionsResponse.AuthorizationAction}
|
|
7968
|
+
*/
|
|
7969
|
+
proto.lansweeper.multitenant.v1.GetUserPermissionsResponse.AuthorizationAction.deserializeBinary = function(bytes) {
|
|
7970
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
7971
|
+
var msg = new proto.lansweeper.multitenant.v1.GetUserPermissionsResponse.AuthorizationAction;
|
|
7972
|
+
return proto.lansweeper.multitenant.v1.GetUserPermissionsResponse.AuthorizationAction.deserializeBinaryFromReader(msg, reader);
|
|
7973
|
+
};
|
|
7974
|
+
|
|
7975
|
+
|
|
7976
|
+
/**
|
|
7977
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
7978
|
+
* given reader into the given message object.
|
|
7979
|
+
* @param {!proto.lansweeper.multitenant.v1.GetUserPermissionsResponse.AuthorizationAction} msg The message object to deserialize into.
|
|
7980
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
7981
|
+
* @return {!proto.lansweeper.multitenant.v1.GetUserPermissionsResponse.AuthorizationAction}
|
|
7982
|
+
*/
|
|
7983
|
+
proto.lansweeper.multitenant.v1.GetUserPermissionsResponse.AuthorizationAction.deserializeBinaryFromReader = function(msg, reader) {
|
|
7984
|
+
while (reader.nextField()) {
|
|
7985
|
+
if (reader.isEndGroup()) {
|
|
7986
|
+
break;
|
|
7987
|
+
}
|
|
7988
|
+
var field = reader.getFieldNumber();
|
|
7989
|
+
switch (field) {
|
|
7990
|
+
case 1:
|
|
7991
|
+
var value = /** @type {string} */ (reader.readString());
|
|
7992
|
+
msg.setKey(value);
|
|
7993
|
+
break;
|
|
7994
|
+
case 2:
|
|
7995
|
+
var value = /** @type {!Uint8Array} */ (reader.readBytes());
|
|
7996
|
+
msg.setDerivedPermissions(value);
|
|
7997
|
+
break;
|
|
7998
|
+
default:
|
|
7999
|
+
reader.skipField();
|
|
8000
|
+
break;
|
|
8001
|
+
}
|
|
8002
|
+
}
|
|
8003
|
+
return msg;
|
|
8004
|
+
};
|
|
8005
|
+
|
|
8006
|
+
|
|
8007
|
+
/**
|
|
8008
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
8009
|
+
* @return {!Uint8Array}
|
|
8010
|
+
*/
|
|
8011
|
+
proto.lansweeper.multitenant.v1.GetUserPermissionsResponse.AuthorizationAction.prototype.serializeBinary = function() {
|
|
8012
|
+
var writer = new jspb.BinaryWriter();
|
|
8013
|
+
proto.lansweeper.multitenant.v1.GetUserPermissionsResponse.AuthorizationAction.serializeBinaryToWriter(this, writer);
|
|
8014
|
+
return writer.getResultBuffer();
|
|
8015
|
+
};
|
|
8016
|
+
|
|
8017
|
+
|
|
8018
|
+
/**
|
|
8019
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
8020
|
+
* format), writing to the given BinaryWriter.
|
|
8021
|
+
* @param {!proto.lansweeper.multitenant.v1.GetUserPermissionsResponse.AuthorizationAction} message
|
|
8022
|
+
* @param {!jspb.BinaryWriter} writer
|
|
8023
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
8024
|
+
*/
|
|
8025
|
+
proto.lansweeper.multitenant.v1.GetUserPermissionsResponse.AuthorizationAction.serializeBinaryToWriter = function(message, writer) {
|
|
8026
|
+
var f = undefined;
|
|
8027
|
+
f = message.getKey();
|
|
8028
|
+
if (f.length > 0) {
|
|
8029
|
+
writer.writeString(
|
|
8030
|
+
1,
|
|
8031
|
+
f
|
|
8032
|
+
);
|
|
8033
|
+
}
|
|
8034
|
+
f = message.getDerivedPermissions_asU8();
|
|
8035
|
+
if (f.length > 0) {
|
|
8036
|
+
writer.writeBytes(
|
|
8037
|
+
2,
|
|
8038
|
+
f
|
|
8039
|
+
);
|
|
8040
|
+
}
|
|
8041
|
+
};
|
|
8042
|
+
|
|
8043
|
+
|
|
8044
|
+
/**
|
|
8045
|
+
* optional string key = 1;
|
|
8046
|
+
* @return {string}
|
|
8047
|
+
*/
|
|
8048
|
+
proto.lansweeper.multitenant.v1.GetUserPermissionsResponse.AuthorizationAction.prototype.getKey = function() {
|
|
8049
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
8050
|
+
};
|
|
8051
|
+
|
|
8052
|
+
|
|
8053
|
+
/**
|
|
8054
|
+
* @param {string} value
|
|
8055
|
+
* @return {!proto.lansweeper.multitenant.v1.GetUserPermissionsResponse.AuthorizationAction} returns this
|
|
8056
|
+
*/
|
|
8057
|
+
proto.lansweeper.multitenant.v1.GetUserPermissionsResponse.AuthorizationAction.prototype.setKey = function(value) {
|
|
8058
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
8059
|
+
};
|
|
8060
|
+
|
|
8061
|
+
|
|
8062
|
+
/**
|
|
8063
|
+
* optional bytes derived_permissions = 2;
|
|
8064
|
+
* @return {!(string|Uint8Array)}
|
|
8065
|
+
*/
|
|
8066
|
+
proto.lansweeper.multitenant.v1.GetUserPermissionsResponse.AuthorizationAction.prototype.getDerivedPermissions = function() {
|
|
8067
|
+
return /** @type {!(string|Uint8Array)} */ (jspb.Message.getFieldWithDefault(this, 2, ""));
|
|
8068
|
+
};
|
|
8069
|
+
|
|
8070
|
+
|
|
8071
|
+
/**
|
|
8072
|
+
* optional bytes derived_permissions = 2;
|
|
8073
|
+
* This is a type-conversion wrapper around `getDerivedPermissions()`
|
|
8074
|
+
* @return {string}
|
|
8075
|
+
*/
|
|
8076
|
+
proto.lansweeper.multitenant.v1.GetUserPermissionsResponse.AuthorizationAction.prototype.getDerivedPermissions_asB64 = function() {
|
|
8077
|
+
return /** @type {string} */ (jspb.Message.bytesAsB64(
|
|
8078
|
+
this.getDerivedPermissions()));
|
|
8079
|
+
};
|
|
8080
|
+
|
|
8081
|
+
|
|
8082
|
+
/**
|
|
8083
|
+
* optional bytes derived_permissions = 2;
|
|
8084
|
+
* Note that Uint8Array is not supported on all browsers.
|
|
8085
|
+
* @see http://caniuse.com/Uint8Array
|
|
8086
|
+
* This is a type-conversion wrapper around `getDerivedPermissions()`
|
|
8087
|
+
* @return {!Uint8Array}
|
|
8088
|
+
*/
|
|
8089
|
+
proto.lansweeper.multitenant.v1.GetUserPermissionsResponse.AuthorizationAction.prototype.getDerivedPermissions_asU8 = function() {
|
|
8090
|
+
return /** @type {!Uint8Array} */ (jspb.Message.bytesAsU8(
|
|
8091
|
+
this.getDerivedPermissions()));
|
|
8092
|
+
};
|
|
8093
|
+
|
|
8094
|
+
|
|
8095
|
+
/**
|
|
8096
|
+
* @param {!(string|Uint8Array)} value
|
|
8097
|
+
* @return {!proto.lansweeper.multitenant.v1.GetUserPermissionsResponse.AuthorizationAction} returns this
|
|
8098
|
+
*/
|
|
8099
|
+
proto.lansweeper.multitenant.v1.GetUserPermissionsResponse.AuthorizationAction.prototype.setDerivedPermissions = function(value) {
|
|
8100
|
+
return jspb.Message.setProto3BytesField(this, 2, value);
|
|
8101
|
+
};
|
|
8102
|
+
|
|
8103
|
+
|
|
8104
|
+
|
|
8105
|
+
|
|
8106
|
+
|
|
8107
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
8108
|
+
/**
|
|
8109
|
+
* Creates an object representation of this proto.
|
|
8110
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
8111
|
+
* Optional fields that are not set will be set to undefined.
|
|
8112
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
8113
|
+
* For the list of reserved names please see:
|
|
8114
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
8115
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
8116
|
+
* JSPB instance for transitional soy proto support:
|
|
8117
|
+
* http://goto/soy-param-migration
|
|
8118
|
+
* @return {!Object}
|
|
8119
|
+
*/
|
|
8120
|
+
proto.lansweeper.multitenant.v1.GetUserPermissionsResponse.Scope.prototype.toObject = function(opt_includeInstance) {
|
|
8121
|
+
return proto.lansweeper.multitenant.v1.GetUserPermissionsResponse.Scope.toObject(opt_includeInstance, this);
|
|
8122
|
+
};
|
|
8123
|
+
|
|
8124
|
+
|
|
8125
|
+
/**
|
|
8126
|
+
* Static version of the {@see toObject} method.
|
|
8127
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
8128
|
+
* the JSPB instance for transitional soy proto support:
|
|
8129
|
+
* http://goto/soy-param-migration
|
|
8130
|
+
* @param {!proto.lansweeper.multitenant.v1.GetUserPermissionsResponse.Scope} msg The msg instance to transform.
|
|
8131
|
+
* @return {!Object}
|
|
8132
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
8133
|
+
*/
|
|
8134
|
+
proto.lansweeper.multitenant.v1.GetUserPermissionsResponse.Scope.toObject = function(includeInstance, msg) {
|
|
8135
|
+
var f, obj = {
|
|
8136
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, "")
|
|
8137
|
+
};
|
|
8138
|
+
|
|
8139
|
+
if (includeInstance) {
|
|
8140
|
+
obj.$jspbMessageInstance = msg;
|
|
8141
|
+
}
|
|
8142
|
+
return obj;
|
|
8143
|
+
};
|
|
8144
|
+
}
|
|
8145
|
+
|
|
8146
|
+
|
|
8147
|
+
/**
|
|
8148
|
+
* Deserializes binary data (in protobuf wire format).
|
|
8149
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
8150
|
+
* @return {!proto.lansweeper.multitenant.v1.GetUserPermissionsResponse.Scope}
|
|
8151
|
+
*/
|
|
8152
|
+
proto.lansweeper.multitenant.v1.GetUserPermissionsResponse.Scope.deserializeBinary = function(bytes) {
|
|
8153
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
8154
|
+
var msg = new proto.lansweeper.multitenant.v1.GetUserPermissionsResponse.Scope;
|
|
8155
|
+
return proto.lansweeper.multitenant.v1.GetUserPermissionsResponse.Scope.deserializeBinaryFromReader(msg, reader);
|
|
8156
|
+
};
|
|
8157
|
+
|
|
8158
|
+
|
|
8159
|
+
/**
|
|
8160
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
8161
|
+
* given reader into the given message object.
|
|
8162
|
+
* @param {!proto.lansweeper.multitenant.v1.GetUserPermissionsResponse.Scope} msg The message object to deserialize into.
|
|
8163
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
8164
|
+
* @return {!proto.lansweeper.multitenant.v1.GetUserPermissionsResponse.Scope}
|
|
8165
|
+
*/
|
|
8166
|
+
proto.lansweeper.multitenant.v1.GetUserPermissionsResponse.Scope.deserializeBinaryFromReader = function(msg, reader) {
|
|
8167
|
+
while (reader.nextField()) {
|
|
8168
|
+
if (reader.isEndGroup()) {
|
|
8169
|
+
break;
|
|
8170
|
+
}
|
|
8171
|
+
var field = reader.getFieldNumber();
|
|
8172
|
+
switch (field) {
|
|
8173
|
+
case 1:
|
|
8174
|
+
var value = /** @type {string} */ (reader.readString());
|
|
8175
|
+
msg.setId(value);
|
|
8176
|
+
break;
|
|
8177
|
+
default:
|
|
8178
|
+
reader.skipField();
|
|
8179
|
+
break;
|
|
8180
|
+
}
|
|
8181
|
+
}
|
|
8182
|
+
return msg;
|
|
8183
|
+
};
|
|
8184
|
+
|
|
8185
|
+
|
|
8186
|
+
/**
|
|
8187
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
8188
|
+
* @return {!Uint8Array}
|
|
8189
|
+
*/
|
|
8190
|
+
proto.lansweeper.multitenant.v1.GetUserPermissionsResponse.Scope.prototype.serializeBinary = function() {
|
|
8191
|
+
var writer = new jspb.BinaryWriter();
|
|
8192
|
+
proto.lansweeper.multitenant.v1.GetUserPermissionsResponse.Scope.serializeBinaryToWriter(this, writer);
|
|
8193
|
+
return writer.getResultBuffer();
|
|
8194
|
+
};
|
|
8195
|
+
|
|
8196
|
+
|
|
8197
|
+
/**
|
|
8198
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
8199
|
+
* format), writing to the given BinaryWriter.
|
|
8200
|
+
* @param {!proto.lansweeper.multitenant.v1.GetUserPermissionsResponse.Scope} message
|
|
8201
|
+
* @param {!jspb.BinaryWriter} writer
|
|
8202
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
8203
|
+
*/
|
|
8204
|
+
proto.lansweeper.multitenant.v1.GetUserPermissionsResponse.Scope.serializeBinaryToWriter = function(message, writer) {
|
|
8205
|
+
var f = undefined;
|
|
8206
|
+
f = message.getId();
|
|
8207
|
+
if (f.length > 0) {
|
|
8208
|
+
writer.writeString(
|
|
8209
|
+
1,
|
|
8210
|
+
f
|
|
8211
|
+
);
|
|
8212
|
+
}
|
|
8213
|
+
};
|
|
8214
|
+
|
|
8215
|
+
|
|
8216
|
+
/**
|
|
8217
|
+
* optional string id = 1;
|
|
8218
|
+
* @return {string}
|
|
8219
|
+
*/
|
|
8220
|
+
proto.lansweeper.multitenant.v1.GetUserPermissionsResponse.Scope.prototype.getId = function() {
|
|
8221
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
8222
|
+
};
|
|
8223
|
+
|
|
8224
|
+
|
|
8225
|
+
/**
|
|
8226
|
+
* @param {string} value
|
|
8227
|
+
* @return {!proto.lansweeper.multitenant.v1.GetUserPermissionsResponse.Scope} returns this
|
|
8228
|
+
*/
|
|
8229
|
+
proto.lansweeper.multitenant.v1.GetUserPermissionsResponse.Scope.prototype.setId = function(value) {
|
|
8230
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
8231
|
+
};
|
|
8232
|
+
|
|
8233
|
+
|
|
8234
|
+
|
|
8235
|
+
/**
|
|
8236
|
+
* List of repeated fields within this message type.
|
|
8237
|
+
* @private {!Array<number>}
|
|
8238
|
+
* @const
|
|
8239
|
+
*/
|
|
8240
|
+
proto.lansweeper.multitenant.v1.GetUserPermissionsResponse.Role.repeatedFields_ = [2,3,4];
|
|
8241
|
+
|
|
8242
|
+
|
|
8243
|
+
|
|
8244
|
+
if (jspb.Message.GENERATE_TO_OBJECT) {
|
|
8245
|
+
/**
|
|
8246
|
+
* Creates an object representation of this proto.
|
|
8247
|
+
* Field names that are reserved in JavaScript and will be renamed to pb_name.
|
|
8248
|
+
* Optional fields that are not set will be set to undefined.
|
|
8249
|
+
* To access a reserved field use, foo.pb_<name>, eg, foo.pb_default.
|
|
8250
|
+
* For the list of reserved names please see:
|
|
8251
|
+
* net/proto2/compiler/js/internal/generator.cc#kKeyword.
|
|
8252
|
+
* @param {boolean=} opt_includeInstance Deprecated. whether to include the
|
|
8253
|
+
* JSPB instance for transitional soy proto support:
|
|
8254
|
+
* http://goto/soy-param-migration
|
|
8255
|
+
* @return {!Object}
|
|
8256
|
+
*/
|
|
8257
|
+
proto.lansweeper.multitenant.v1.GetUserPermissionsResponse.Role.prototype.toObject = function(opt_includeInstance) {
|
|
8258
|
+
return proto.lansweeper.multitenant.v1.GetUserPermissionsResponse.Role.toObject(opt_includeInstance, this);
|
|
8259
|
+
};
|
|
8260
|
+
|
|
8261
|
+
|
|
8262
|
+
/**
|
|
8263
|
+
* Static version of the {@see toObject} method.
|
|
8264
|
+
* @param {boolean|undefined} includeInstance Deprecated. Whether to include
|
|
8265
|
+
* the JSPB instance for transitional soy proto support:
|
|
8266
|
+
* http://goto/soy-param-migration
|
|
8267
|
+
* @param {!proto.lansweeper.multitenant.v1.GetUserPermissionsResponse.Role} msg The msg instance to transform.
|
|
8268
|
+
* @return {!Object}
|
|
8269
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
8270
|
+
*/
|
|
8271
|
+
proto.lansweeper.multitenant.v1.GetUserPermissionsResponse.Role.toObject = function(includeInstance, msg) {
|
|
8272
|
+
var f, obj = {
|
|
8273
|
+
id: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
|
8274
|
+
actionsList: jspb.Message.toObjectList(msg.getActionsList(),
|
|
8275
|
+
proto.lansweeper.multitenant.v1.GetUserPermissionsResponse.AuthorizationAction.toObject, includeInstance),
|
|
8276
|
+
installationsList: jspb.Message.toObjectList(msg.getInstallationsList(),
|
|
8277
|
+
proto.lansweeper.multitenant.v1.Install.toObject, includeInstance),
|
|
8278
|
+
scopesList: jspb.Message.toObjectList(msg.getScopesList(),
|
|
8279
|
+
proto.lansweeper.multitenant.v1.GetUserPermissionsResponse.Scope.toObject, includeInstance)
|
|
8280
|
+
};
|
|
8281
|
+
|
|
8282
|
+
if (includeInstance) {
|
|
8283
|
+
obj.$jspbMessageInstance = msg;
|
|
8284
|
+
}
|
|
8285
|
+
return obj;
|
|
8286
|
+
};
|
|
8287
|
+
}
|
|
8288
|
+
|
|
8289
|
+
|
|
8290
|
+
/**
|
|
8291
|
+
* Deserializes binary data (in protobuf wire format).
|
|
8292
|
+
* @param {jspb.ByteSource} bytes The bytes to deserialize.
|
|
8293
|
+
* @return {!proto.lansweeper.multitenant.v1.GetUserPermissionsResponse.Role}
|
|
8294
|
+
*/
|
|
8295
|
+
proto.lansweeper.multitenant.v1.GetUserPermissionsResponse.Role.deserializeBinary = function(bytes) {
|
|
8296
|
+
var reader = new jspb.BinaryReader(bytes);
|
|
8297
|
+
var msg = new proto.lansweeper.multitenant.v1.GetUserPermissionsResponse.Role;
|
|
8298
|
+
return proto.lansweeper.multitenant.v1.GetUserPermissionsResponse.Role.deserializeBinaryFromReader(msg, reader);
|
|
8299
|
+
};
|
|
8300
|
+
|
|
8301
|
+
|
|
8302
|
+
/**
|
|
8303
|
+
* Deserializes binary data (in protobuf wire format) from the
|
|
8304
|
+
* given reader into the given message object.
|
|
8305
|
+
* @param {!proto.lansweeper.multitenant.v1.GetUserPermissionsResponse.Role} msg The message object to deserialize into.
|
|
8306
|
+
* @param {!jspb.BinaryReader} reader The BinaryReader to use.
|
|
8307
|
+
* @return {!proto.lansweeper.multitenant.v1.GetUserPermissionsResponse.Role}
|
|
8308
|
+
*/
|
|
8309
|
+
proto.lansweeper.multitenant.v1.GetUserPermissionsResponse.Role.deserializeBinaryFromReader = function(msg, reader) {
|
|
8310
|
+
while (reader.nextField()) {
|
|
8311
|
+
if (reader.isEndGroup()) {
|
|
8312
|
+
break;
|
|
8313
|
+
}
|
|
8314
|
+
var field = reader.getFieldNumber();
|
|
8315
|
+
switch (field) {
|
|
8316
|
+
case 1:
|
|
8317
|
+
var value = /** @type {string} */ (reader.readString());
|
|
8318
|
+
msg.setId(value);
|
|
8319
|
+
break;
|
|
8320
|
+
case 2:
|
|
8321
|
+
var value = new proto.lansweeper.multitenant.v1.GetUserPermissionsResponse.AuthorizationAction;
|
|
8322
|
+
reader.readMessage(value,proto.lansweeper.multitenant.v1.GetUserPermissionsResponse.AuthorizationAction.deserializeBinaryFromReader);
|
|
8323
|
+
msg.addActions(value);
|
|
8324
|
+
break;
|
|
8325
|
+
case 3:
|
|
8326
|
+
var value = new proto.lansweeper.multitenant.v1.Install;
|
|
8327
|
+
reader.readMessage(value,proto.lansweeper.multitenant.v1.Install.deserializeBinaryFromReader);
|
|
8328
|
+
msg.addInstallations(value);
|
|
8329
|
+
break;
|
|
8330
|
+
case 4:
|
|
8331
|
+
var value = new proto.lansweeper.multitenant.v1.GetUserPermissionsResponse.Scope;
|
|
8332
|
+
reader.readMessage(value,proto.lansweeper.multitenant.v1.GetUserPermissionsResponse.Scope.deserializeBinaryFromReader);
|
|
8333
|
+
msg.addScopes(value);
|
|
8334
|
+
break;
|
|
8335
|
+
default:
|
|
8336
|
+
reader.skipField();
|
|
8337
|
+
break;
|
|
8338
|
+
}
|
|
8339
|
+
}
|
|
8340
|
+
return msg;
|
|
8341
|
+
};
|
|
8342
|
+
|
|
8343
|
+
|
|
8344
|
+
/**
|
|
8345
|
+
* Serializes the message to binary data (in protobuf wire format).
|
|
8346
|
+
* @return {!Uint8Array}
|
|
8347
|
+
*/
|
|
8348
|
+
proto.lansweeper.multitenant.v1.GetUserPermissionsResponse.Role.prototype.serializeBinary = function() {
|
|
8349
|
+
var writer = new jspb.BinaryWriter();
|
|
8350
|
+
proto.lansweeper.multitenant.v1.GetUserPermissionsResponse.Role.serializeBinaryToWriter(this, writer);
|
|
8351
|
+
return writer.getResultBuffer();
|
|
8352
|
+
};
|
|
8353
|
+
|
|
8354
|
+
|
|
8355
|
+
/**
|
|
8356
|
+
* Serializes the given message to binary data (in protobuf wire
|
|
8357
|
+
* format), writing to the given BinaryWriter.
|
|
8358
|
+
* @param {!proto.lansweeper.multitenant.v1.GetUserPermissionsResponse.Role} message
|
|
8359
|
+
* @param {!jspb.BinaryWriter} writer
|
|
8360
|
+
* @suppress {unusedLocalVariables} f is only used for nested messages
|
|
8361
|
+
*/
|
|
8362
|
+
proto.lansweeper.multitenant.v1.GetUserPermissionsResponse.Role.serializeBinaryToWriter = function(message, writer) {
|
|
8363
|
+
var f = undefined;
|
|
8364
|
+
f = message.getId();
|
|
8365
|
+
if (f.length > 0) {
|
|
8366
|
+
writer.writeString(
|
|
8367
|
+
1,
|
|
8368
|
+
f
|
|
8369
|
+
);
|
|
8370
|
+
}
|
|
8371
|
+
f = message.getActionsList();
|
|
8372
|
+
if (f.length > 0) {
|
|
8373
|
+
writer.writeRepeatedMessage(
|
|
8374
|
+
2,
|
|
8375
|
+
f,
|
|
8376
|
+
proto.lansweeper.multitenant.v1.GetUserPermissionsResponse.AuthorizationAction.serializeBinaryToWriter
|
|
8377
|
+
);
|
|
8378
|
+
}
|
|
8379
|
+
f = message.getInstallationsList();
|
|
8380
|
+
if (f.length > 0) {
|
|
8381
|
+
writer.writeRepeatedMessage(
|
|
8382
|
+
3,
|
|
8383
|
+
f,
|
|
8384
|
+
proto.lansweeper.multitenant.v1.Install.serializeBinaryToWriter
|
|
8385
|
+
);
|
|
8386
|
+
}
|
|
8387
|
+
f = message.getScopesList();
|
|
8388
|
+
if (f.length > 0) {
|
|
8389
|
+
writer.writeRepeatedMessage(
|
|
8390
|
+
4,
|
|
8391
|
+
f,
|
|
8392
|
+
proto.lansweeper.multitenant.v1.GetUserPermissionsResponse.Scope.serializeBinaryToWriter
|
|
8393
|
+
);
|
|
8394
|
+
}
|
|
8395
|
+
};
|
|
8396
|
+
|
|
8397
|
+
|
|
8398
|
+
/**
|
|
8399
|
+
* optional string id = 1;
|
|
8400
|
+
* @return {string}
|
|
8401
|
+
*/
|
|
8402
|
+
proto.lansweeper.multitenant.v1.GetUserPermissionsResponse.Role.prototype.getId = function() {
|
|
8403
|
+
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 1, ""));
|
|
8404
|
+
};
|
|
8405
|
+
|
|
8406
|
+
|
|
8407
|
+
/**
|
|
8408
|
+
* @param {string} value
|
|
8409
|
+
* @return {!proto.lansweeper.multitenant.v1.GetUserPermissionsResponse.Role} returns this
|
|
8410
|
+
*/
|
|
8411
|
+
proto.lansweeper.multitenant.v1.GetUserPermissionsResponse.Role.prototype.setId = function(value) {
|
|
8412
|
+
return jspb.Message.setProto3StringField(this, 1, value);
|
|
8413
|
+
};
|
|
8414
|
+
|
|
8415
|
+
|
|
8416
|
+
/**
|
|
8417
|
+
* repeated AuthorizationAction actions = 2;
|
|
8418
|
+
* @return {!Array<!proto.lansweeper.multitenant.v1.GetUserPermissionsResponse.AuthorizationAction>}
|
|
8419
|
+
*/
|
|
8420
|
+
proto.lansweeper.multitenant.v1.GetUserPermissionsResponse.Role.prototype.getActionsList = function() {
|
|
8421
|
+
return /** @type{!Array<!proto.lansweeper.multitenant.v1.GetUserPermissionsResponse.AuthorizationAction>} */ (
|
|
8422
|
+
jspb.Message.getRepeatedWrapperField(this, proto.lansweeper.multitenant.v1.GetUserPermissionsResponse.AuthorizationAction, 2));
|
|
8423
|
+
};
|
|
8424
|
+
|
|
8425
|
+
|
|
8426
|
+
/**
|
|
8427
|
+
* @param {!Array<!proto.lansweeper.multitenant.v1.GetUserPermissionsResponse.AuthorizationAction>} value
|
|
8428
|
+
* @return {!proto.lansweeper.multitenant.v1.GetUserPermissionsResponse.Role} returns this
|
|
8429
|
+
*/
|
|
8430
|
+
proto.lansweeper.multitenant.v1.GetUserPermissionsResponse.Role.prototype.setActionsList = function(value) {
|
|
8431
|
+
return jspb.Message.setRepeatedWrapperField(this, 2, value);
|
|
8432
|
+
};
|
|
8433
|
+
|
|
8434
|
+
|
|
8435
|
+
/**
|
|
8436
|
+
* @param {!proto.lansweeper.multitenant.v1.GetUserPermissionsResponse.AuthorizationAction=} opt_value
|
|
8437
|
+
* @param {number=} opt_index
|
|
8438
|
+
* @return {!proto.lansweeper.multitenant.v1.GetUserPermissionsResponse.AuthorizationAction}
|
|
8439
|
+
*/
|
|
8440
|
+
proto.lansweeper.multitenant.v1.GetUserPermissionsResponse.Role.prototype.addActions = function(opt_value, opt_index) {
|
|
8441
|
+
return jspb.Message.addToRepeatedWrapperField(this, 2, opt_value, proto.lansweeper.multitenant.v1.GetUserPermissionsResponse.AuthorizationAction, opt_index);
|
|
8442
|
+
};
|
|
8443
|
+
|
|
8444
|
+
|
|
8445
|
+
/**
|
|
8446
|
+
* Clears the list making it empty but non-null.
|
|
8447
|
+
* @return {!proto.lansweeper.multitenant.v1.GetUserPermissionsResponse.Role} returns this
|
|
8448
|
+
*/
|
|
8449
|
+
proto.lansweeper.multitenant.v1.GetUserPermissionsResponse.Role.prototype.clearActionsList = function() {
|
|
8450
|
+
return this.setActionsList([]);
|
|
8451
|
+
};
|
|
8452
|
+
|
|
8453
|
+
|
|
8454
|
+
/**
|
|
8455
|
+
* repeated Install installations = 3;
|
|
8456
|
+
* @return {!Array<!proto.lansweeper.multitenant.v1.Install>}
|
|
8457
|
+
*/
|
|
8458
|
+
proto.lansweeper.multitenant.v1.GetUserPermissionsResponse.Role.prototype.getInstallationsList = function() {
|
|
8459
|
+
return /** @type{!Array<!proto.lansweeper.multitenant.v1.Install>} */ (
|
|
8460
|
+
jspb.Message.getRepeatedWrapperField(this, proto.lansweeper.multitenant.v1.Install, 3));
|
|
8461
|
+
};
|
|
8462
|
+
|
|
8463
|
+
|
|
8464
|
+
/**
|
|
8465
|
+
* @param {!Array<!proto.lansweeper.multitenant.v1.Install>} value
|
|
8466
|
+
* @return {!proto.lansweeper.multitenant.v1.GetUserPermissionsResponse.Role} returns this
|
|
8467
|
+
*/
|
|
8468
|
+
proto.lansweeper.multitenant.v1.GetUserPermissionsResponse.Role.prototype.setInstallationsList = function(value) {
|
|
8469
|
+
return jspb.Message.setRepeatedWrapperField(this, 3, value);
|
|
8470
|
+
};
|
|
8471
|
+
|
|
8472
|
+
|
|
8473
|
+
/**
|
|
8474
|
+
* @param {!proto.lansweeper.multitenant.v1.Install=} opt_value
|
|
8475
|
+
* @param {number=} opt_index
|
|
8476
|
+
* @return {!proto.lansweeper.multitenant.v1.Install}
|
|
8477
|
+
*/
|
|
8478
|
+
proto.lansweeper.multitenant.v1.GetUserPermissionsResponse.Role.prototype.addInstallations = function(opt_value, opt_index) {
|
|
8479
|
+
return jspb.Message.addToRepeatedWrapperField(this, 3, opt_value, proto.lansweeper.multitenant.v1.Install, opt_index);
|
|
8480
|
+
};
|
|
8481
|
+
|
|
8482
|
+
|
|
8483
|
+
/**
|
|
8484
|
+
* Clears the list making it empty but non-null.
|
|
8485
|
+
* @return {!proto.lansweeper.multitenant.v1.GetUserPermissionsResponse.Role} returns this
|
|
8486
|
+
*/
|
|
8487
|
+
proto.lansweeper.multitenant.v1.GetUserPermissionsResponse.Role.prototype.clearInstallationsList = function() {
|
|
8488
|
+
return this.setInstallationsList([]);
|
|
8489
|
+
};
|
|
8490
|
+
|
|
8491
|
+
|
|
8492
|
+
/**
|
|
8493
|
+
* repeated Scope scopes = 4;
|
|
8494
|
+
* @return {!Array<!proto.lansweeper.multitenant.v1.GetUserPermissionsResponse.Scope>}
|
|
8495
|
+
*/
|
|
8496
|
+
proto.lansweeper.multitenant.v1.GetUserPermissionsResponse.Role.prototype.getScopesList = function() {
|
|
8497
|
+
return /** @type{!Array<!proto.lansweeper.multitenant.v1.GetUserPermissionsResponse.Scope>} */ (
|
|
8498
|
+
jspb.Message.getRepeatedWrapperField(this, proto.lansweeper.multitenant.v1.GetUserPermissionsResponse.Scope, 4));
|
|
8499
|
+
};
|
|
8500
|
+
|
|
8501
|
+
|
|
8502
|
+
/**
|
|
8503
|
+
* @param {!Array<!proto.lansweeper.multitenant.v1.GetUserPermissionsResponse.Scope>} value
|
|
8504
|
+
* @return {!proto.lansweeper.multitenant.v1.GetUserPermissionsResponse.Role} returns this
|
|
8505
|
+
*/
|
|
8506
|
+
proto.lansweeper.multitenant.v1.GetUserPermissionsResponse.Role.prototype.setScopesList = function(value) {
|
|
8507
|
+
return jspb.Message.setRepeatedWrapperField(this, 4, value);
|
|
8508
|
+
};
|
|
8509
|
+
|
|
8510
|
+
|
|
8511
|
+
/**
|
|
8512
|
+
* @param {!proto.lansweeper.multitenant.v1.GetUserPermissionsResponse.Scope=} opt_value
|
|
8513
|
+
* @param {number=} opt_index
|
|
8514
|
+
* @return {!proto.lansweeper.multitenant.v1.GetUserPermissionsResponse.Scope}
|
|
8515
|
+
*/
|
|
8516
|
+
proto.lansweeper.multitenant.v1.GetUserPermissionsResponse.Role.prototype.addScopes = function(opt_value, opt_index) {
|
|
8517
|
+
return jspb.Message.addToRepeatedWrapperField(this, 4, opt_value, proto.lansweeper.multitenant.v1.GetUserPermissionsResponse.Scope, opt_index);
|
|
8518
|
+
};
|
|
8519
|
+
|
|
8520
|
+
|
|
8521
|
+
/**
|
|
8522
|
+
* Clears the list making it empty but non-null.
|
|
8523
|
+
* @return {!proto.lansweeper.multitenant.v1.GetUserPermissionsResponse.Role} returns this
|
|
8524
|
+
*/
|
|
8525
|
+
proto.lansweeper.multitenant.v1.GetUserPermissionsResponse.Role.prototype.clearScopesList = function() {
|
|
8526
|
+
return this.setScopesList([]);
|
|
8527
|
+
};
|
|
8528
|
+
|
|
8529
|
+
|
|
8530
|
+
/**
|
|
8531
|
+
* repeated Role roles = 1;
|
|
8532
|
+
* @return {!Array<!proto.lansweeper.multitenant.v1.GetUserPermissionsResponse.Role>}
|
|
8533
|
+
*/
|
|
8534
|
+
proto.lansweeper.multitenant.v1.GetUserPermissionsResponse.prototype.getRolesList = function() {
|
|
8535
|
+
return /** @type{!Array<!proto.lansweeper.multitenant.v1.GetUserPermissionsResponse.Role>} */ (
|
|
8536
|
+
jspb.Message.getRepeatedWrapperField(this, proto.lansweeper.multitenant.v1.GetUserPermissionsResponse.Role, 1));
|
|
8537
|
+
};
|
|
8538
|
+
|
|
8539
|
+
|
|
8540
|
+
/**
|
|
8541
|
+
* @param {!Array<!proto.lansweeper.multitenant.v1.GetUserPermissionsResponse.Role>} value
|
|
8542
|
+
* @return {!proto.lansweeper.multitenant.v1.GetUserPermissionsResponse} returns this
|
|
8543
|
+
*/
|
|
8544
|
+
proto.lansweeper.multitenant.v1.GetUserPermissionsResponse.prototype.setRolesList = function(value) {
|
|
8545
|
+
return jspb.Message.setRepeatedWrapperField(this, 1, value);
|
|
8546
|
+
};
|
|
8547
|
+
|
|
8548
|
+
|
|
8549
|
+
/**
|
|
8550
|
+
* @param {!proto.lansweeper.multitenant.v1.GetUserPermissionsResponse.Role=} opt_value
|
|
8551
|
+
* @param {number=} opt_index
|
|
8552
|
+
* @return {!proto.lansweeper.multitenant.v1.GetUserPermissionsResponse.Role}
|
|
8553
|
+
*/
|
|
8554
|
+
proto.lansweeper.multitenant.v1.GetUserPermissionsResponse.prototype.addRoles = function(opt_value, opt_index) {
|
|
8555
|
+
return jspb.Message.addToRepeatedWrapperField(this, 1, opt_value, proto.lansweeper.multitenant.v1.GetUserPermissionsResponse.Role, opt_index);
|
|
8556
|
+
};
|
|
8557
|
+
|
|
8558
|
+
|
|
8559
|
+
/**
|
|
8560
|
+
* Clears the list making it empty but non-null.
|
|
8561
|
+
* @return {!proto.lansweeper.multitenant.v1.GetUserPermissionsResponse} returns this
|
|
8562
|
+
*/
|
|
8563
|
+
proto.lansweeper.multitenant.v1.GetUserPermissionsResponse.prototype.clearRolesList = function() {
|
|
8564
|
+
return this.setRolesList([]);
|
|
8565
|
+
};
|
|
8566
|
+
|
|
8567
|
+
|
|
7528
8568
|
/**
|
|
7529
8569
|
* @enum {number}
|
|
7530
8570
|
*/
|