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:
3
api/js/api/application_pb.d.ts
vendored
3
api/js/api/application_pb.d.ts
vendored
@ -19,6 +19,8 @@ export class Application extends jspb.Message {
|
||||
getTenantId(): string;
|
||||
setTenantId(value: string): void;
|
||||
|
||||
getTagsMap(): jspb.Map<string, string>;
|
||||
clearTagsMap(): void;
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): Application.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: Application): Application.AsObject;
|
||||
@ -35,6 +37,7 @@ export namespace Application {
|
||||
name: string,
|
||||
description: string,
|
||||
tenantId: string,
|
||||
tagsMap: Array<[string, string]>,
|
||||
}
|
||||
}
|
||||
|
||||
|
35
api/js/api/application_pb.js
vendored
35
api/js/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;};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
3
api/js/api/device_profile_grpc_pb.js
vendored
3
api/js/api/device_profile_grpc_pb.js
vendored
@ -119,7 +119,8 @@ function deserialize_google_protobuf_Empty(buffer_arg) {
|
||||
}
|
||||
|
||||
|
||||
// DeviceProfileService is the service providing API methods for managing device-profiles.
|
||||
// DeviceProfileService is the service providing API methods for managing
|
||||
// device-profiles.
|
||||
var DeviceProfileServiceService = exports.DeviceProfileServiceService = {
|
||||
// Create the given device-profile.
|
||||
create: {
|
||||
|
3
api/js/api/tenant_pb.d.ts
vendored
3
api/js/api/tenant_pb.d.ts
vendored
@ -31,6 +31,8 @@ export class Tenant extends jspb.Message {
|
||||
getPrivateGatewaysDown(): boolean;
|
||||
setPrivateGatewaysDown(value: boolean): void;
|
||||
|
||||
getTagsMap(): jspb.Map<string, string>;
|
||||
clearTagsMap(): void;
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): Tenant.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: Tenant): Tenant.AsObject;
|
||||
@ -51,6 +53,7 @@ export namespace Tenant {
|
||||
maxDeviceCount: number,
|
||||
privateGatewaysUp: boolean,
|
||||
privateGatewaysDown: boolean,
|
||||
tagsMap: Array<[string, string]>,
|
||||
}
|
||||
}
|
||||
|
||||
|
35
api/js/api/tenant_pb.js
vendored
35
api/js/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