mirror of
https://github.com/chirpstack/chirpstack.git
synced 2025-06-12 20:48:09 +00:00
api: Re-generate API code.
This commit is contained in:
4
api/grpc-web/api/application_pb.d.ts
vendored
4
api/grpc-web/api/application_pb.d.ts
vendored
@ -18,6 +18,9 @@ export class Application extends jspb.Message {
|
||||
getTenantId(): string;
|
||||
setTenantId(value: string): Application;
|
||||
|
||||
getTagsMap(): jspb.Map<string, string>;
|
||||
clearTagsMap(): Application;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): Application.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: Application): Application.AsObject;
|
||||
@ -32,6 +35,7 @@ export namespace Application {
|
||||
name: string,
|
||||
description: string,
|
||||
tenantId: string,
|
||||
tagsMap: Array<[string, string]>,
|
||||
}
|
||||
}
|
||||
|
||||
|
35
api/grpc-web/api/application_pb.js
vendored
35
api/grpc-web/api/application_pb.js
vendored
@ -1729,7 +1729,8 @@ proto.api.Application.toObject = function(includeInstance, msg) {
|
||||
id: jspb.Message.getFieldWithDefault(msg, 1, ""),
|
||||
name: jspb.Message.getFieldWithDefault(msg, 2, ""),
|
||||
description: jspb.Message.getFieldWithDefault(msg, 3, ""),
|
||||
tenantId: jspb.Message.getFieldWithDefault(msg, 4, "")
|
||||
tenantId: jspb.Message.getFieldWithDefault(msg, 4, ""),
|
||||
tagsMap: (f = msg.getTagsMap()) ? f.toObject(includeInstance, undefined) : []
|
||||
};
|
||||
|
||||
if (includeInstance) {
|
||||
@ -1782,6 +1783,12 @@ proto.api.Application.deserializeBinaryFromReader = function(msg, reader) {
|
||||
var value = /** @type {string} */ (reader.readString());
|
||||
msg.setTenantId(value);
|
||||
break;
|
||||
case 5:
|
||||
var value = msg.getTagsMap();
|
||||
reader.readMessage(value, function(message, reader) {
|
||||
jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", "");
|
||||
});
|
||||
break;
|
||||
default:
|
||||
reader.skipField();
|
||||
break;
|
||||
@ -1839,6 +1846,10 @@ proto.api.Application.serializeBinaryToWriter = function(message, writer) {
|
||||
f
|
||||
);
|
||||
}
|
||||
f = message.getTagsMap(true);
|
||||
if (f && f.getLength() > 0) {
|
||||
f.serializeBinary(5, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@ -1914,6 +1925,28 @@ proto.api.Application.prototype.setTenantId = function(value) {
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* map<string, string> tags = 5;
|
||||
* @param {boolean=} opt_noLazyCreate Do not create the map if
|
||||
* empty, instead returning `undefined`
|
||||
* @return {!jspb.Map<string,string>}
|
||||
*/
|
||||
proto.api.Application.prototype.getTagsMap = function(opt_noLazyCreate) {
|
||||
return /** @type {!jspb.Map<string,string>} */ (
|
||||
jspb.Message.getMapField(this, 5, opt_noLazyCreate,
|
||||
null));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Clears values from the map. The map will be non-null.
|
||||
* @return {!proto.api.Application} returns this
|
||||
*/
|
||||
proto.api.Application.prototype.clearTagsMap = function() {
|
||||
this.getTagsMap().clear();
|
||||
return this;};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
4
api/grpc-web/api/tenant_pb.d.ts
vendored
4
api/grpc-web/api/tenant_pb.d.ts
vendored
@ -30,6 +30,9 @@ export class Tenant extends jspb.Message {
|
||||
getPrivateGatewaysDown(): boolean;
|
||||
setPrivateGatewaysDown(value: boolean): Tenant;
|
||||
|
||||
getTagsMap(): jspb.Map<string, string>;
|
||||
clearTagsMap(): Tenant;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): Tenant.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: Tenant): Tenant.AsObject;
|
||||
@ -48,6 +51,7 @@ export namespace Tenant {
|
||||
maxDeviceCount: number,
|
||||
privateGatewaysUp: boolean,
|
||||
privateGatewaysDown: boolean,
|
||||
tagsMap: Array<[string, string]>,
|
||||
}
|
||||
}
|
||||
|
||||
|
35
api/grpc-web/api/tenant_pb.js
vendored
35
api/grpc-web/api/tenant_pb.js
vendored
@ -475,7 +475,8 @@ proto.api.Tenant.toObject = function(includeInstance, msg) {
|
||||
maxGatewayCount: jspb.Message.getFieldWithDefault(msg, 5, 0),
|
||||
maxDeviceCount: jspb.Message.getFieldWithDefault(msg, 6, 0),
|
||||
privateGatewaysUp: jspb.Message.getBooleanFieldWithDefault(msg, 7, false),
|
||||
privateGatewaysDown: jspb.Message.getBooleanFieldWithDefault(msg, 8, false)
|
||||
privateGatewaysDown: jspb.Message.getBooleanFieldWithDefault(msg, 8, false),
|
||||
tagsMap: (f = msg.getTagsMap()) ? f.toObject(includeInstance, undefined) : []
|
||||
};
|
||||
|
||||
if (includeInstance) {
|
||||
@ -544,6 +545,12 @@ proto.api.Tenant.deserializeBinaryFromReader = function(msg, reader) {
|
||||
var value = /** @type {boolean} */ (reader.readBool());
|
||||
msg.setPrivateGatewaysDown(value);
|
||||
break;
|
||||
case 9:
|
||||
var value = msg.getTagsMap();
|
||||
reader.readMessage(value, function(message, reader) {
|
||||
jspb.Map.deserializeBinary(message, reader, jspb.BinaryReader.prototype.readString, jspb.BinaryReader.prototype.readString, null, "", "");
|
||||
});
|
||||
break;
|
||||
default:
|
||||
reader.skipField();
|
||||
break;
|
||||
@ -629,6 +636,10 @@ proto.api.Tenant.serializeBinaryToWriter = function(message, writer) {
|
||||
f
|
||||
);
|
||||
}
|
||||
f = message.getTagsMap(true);
|
||||
if (f && f.getLength() > 0) {
|
||||
f.serializeBinary(9, writer, jspb.BinaryWriter.prototype.writeString, jspb.BinaryWriter.prototype.writeString);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@ -776,6 +787,28 @@ proto.api.Tenant.prototype.setPrivateGatewaysDown = function(value) {
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* map<string, string> tags = 9;
|
||||
* @param {boolean=} opt_noLazyCreate Do not create the map if
|
||||
* empty, instead returning `undefined`
|
||||
* @return {!jspb.Map<string,string>}
|
||||
*/
|
||||
proto.api.Tenant.prototype.getTagsMap = function(opt_noLazyCreate) {
|
||||
return /** @type {!jspb.Map<string,string>} */ (
|
||||
jspb.Message.getMapField(this, 9, opt_noLazyCreate,
|
||||
null));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Clears values from the map. The map will be non-null.
|
||||
* @return {!proto.api.Tenant} returns this
|
||||
*/
|
||||
proto.api.Tenant.prototype.clearTagsMap = function() {
|
||||
this.getTagsMap().clear();
|
||||
return this;};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user