mirror of
https://github.com/chirpstack/chirpstack.git
synced 2025-06-21 08:39:55 +00:00
Re-generate API code.
This commit is contained in:
4
api/grpc-web/api/device_pb.d.ts
vendored
4
api/grpc-web/api/device_pb.d.ts
vendored
@ -235,6 +235,9 @@ export class GetDeviceResponse extends jspb.Message {
|
||||
hasDeviceStatus(): boolean;
|
||||
clearDeviceStatus(): GetDeviceResponse;
|
||||
|
||||
getClassEnabled(): common_common_pb.DeviceClass;
|
||||
setClassEnabled(value: common_common_pb.DeviceClass): GetDeviceResponse;
|
||||
|
||||
serializeBinary(): Uint8Array;
|
||||
toObject(includeInstance?: boolean): GetDeviceResponse.AsObject;
|
||||
static toObject(includeInstance: boolean, msg: GetDeviceResponse): GetDeviceResponse.AsObject;
|
||||
@ -250,6 +253,7 @@ export namespace GetDeviceResponse {
|
||||
updatedAt?: google_protobuf_timestamp_pb.Timestamp.AsObject,
|
||||
lastSeenAt?: google_protobuf_timestamp_pb.Timestamp.AsObject,
|
||||
deviceStatus?: DeviceStatus.AsObject,
|
||||
classEnabled: common_common_pb.DeviceClass,
|
||||
}
|
||||
}
|
||||
|
||||
|
32
api/grpc-web/api/device_pb.js
vendored
32
api/grpc-web/api/device_pb.js
vendored
@ -2349,7 +2349,8 @@ proto.api.GetDeviceResponse.toObject = function(includeInstance, msg) {
|
||||
createdAt: (f = msg.getCreatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
||||
updatedAt: (f = msg.getUpdatedAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
||||
lastSeenAt: (f = msg.getLastSeenAt()) && google_protobuf_timestamp_pb.Timestamp.toObject(includeInstance, f),
|
||||
deviceStatus: (f = msg.getDeviceStatus()) && proto.api.DeviceStatus.toObject(includeInstance, f)
|
||||
deviceStatus: (f = msg.getDeviceStatus()) && proto.api.DeviceStatus.toObject(includeInstance, f),
|
||||
classEnabled: jspb.Message.getFieldWithDefault(msg, 6, 0)
|
||||
};
|
||||
|
||||
if (includeInstance) {
|
||||
@ -2411,6 +2412,10 @@ proto.api.GetDeviceResponse.deserializeBinaryFromReader = function(msg, reader)
|
||||
reader.readMessage(value,proto.api.DeviceStatus.deserializeBinaryFromReader);
|
||||
msg.setDeviceStatus(value);
|
||||
break;
|
||||
case 6:
|
||||
var value = /** @type {!proto.common.DeviceClass} */ (reader.readEnum());
|
||||
msg.setClassEnabled(value);
|
||||
break;
|
||||
default:
|
||||
reader.skipField();
|
||||
break;
|
||||
@ -2480,6 +2485,13 @@ proto.api.GetDeviceResponse.serializeBinaryToWriter = function(message, writer)
|
||||
proto.api.DeviceStatus.serializeBinaryToWriter
|
||||
);
|
||||
}
|
||||
f = message.getClassEnabled();
|
||||
if (f !== 0.0) {
|
||||
writer.writeEnum(
|
||||
6,
|
||||
f
|
||||
);
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@ -2668,6 +2680,24 @@ proto.api.GetDeviceResponse.prototype.hasDeviceStatus = function() {
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* optional common.DeviceClass class_enabled = 6;
|
||||
* @return {!proto.common.DeviceClass}
|
||||
*/
|
||||
proto.api.GetDeviceResponse.prototype.getClassEnabled = function() {
|
||||
return /** @type {!proto.common.DeviceClass} */ (jspb.Message.getFieldWithDefault(this, 6, 0));
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* @param {!proto.common.DeviceClass} value
|
||||
* @return {!proto.api.GetDeviceResponse} returns this
|
||||
*/
|
||||
proto.api.GetDeviceResponse.prototype.setClassEnabled = function(value) {
|
||||
return jspb.Message.setProto3EnumField(this, 6, value);
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user