Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature/gps epoch interface #1

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
163 changes: 109 additions & 54 deletions api/csharp/Chirpstack/api/MulticastGroup.cs

Large diffs are not rendered by default.

286 changes: 149 additions & 137 deletions api/go/api/multicast_group.pb.go

Large diffs are not rendered by default.

4 changes: 4 additions & 0 deletions api/grpc-web/api/multicast_group_pb.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -401,6 +401,9 @@ export class MulticastGroupQueueItem extends jspb.Message {
getData_asB64(): string;
setData(value: Uint8Array | string): MulticastGroupQueueItem;

getEmitAt(): number;
setEmitAt(value: number): MulticastGroupQueueItem;

serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): MulticastGroupQueueItem.AsObject;
static toObject(includeInstance: boolean, msg: MulticastGroupQueueItem): MulticastGroupQueueItem.AsObject;
Expand All @@ -415,6 +418,7 @@ export namespace MulticastGroupQueueItem {
fCnt: number,
fPort: number,
data: Uint8Array | string,
emitAt: number,
}
}

Expand Down
32 changes: 31 additions & 1 deletion api/grpc-web/api/multicast_group_pb.js
Original file line number Diff line number Diff line change
Expand Up @@ -3334,7 +3334,8 @@ proto.api.MulticastGroupQueueItem.toObject = function(includeInstance, msg) {
multicastGroupId: jspb.Message.getFieldWithDefault(msg, 1, ""),
fCnt: jspb.Message.getFieldWithDefault(msg, 2, 0),
fPort: jspb.Message.getFieldWithDefault(msg, 3, 0),
data: msg.getData_asB64()
data: msg.getData_asB64(),
emitAt: jspb.Message.getFieldWithDefault(msg, 5, 0)
};

if (includeInstance) {
Expand Down Expand Up @@ -3387,6 +3388,10 @@ proto.api.MulticastGroupQueueItem.deserializeBinaryFromReader = function(msg, re
var value = /** @type {!Uint8Array} */ (reader.readBytes());
msg.setData(value);
break;
case 5:
var value = /** @type {number} */ (reader.readInt64());
msg.setEmitAt(value);
break;
default:
reader.skipField();
break;
Expand Down Expand Up @@ -3444,6 +3449,13 @@ proto.api.MulticastGroupQueueItem.serializeBinaryToWriter = function(message, wr
f
);
}
f = message.getEmitAt();
if (f !== 0) {
writer.writeInt64(
5,
f
);
}
};


Expand Down Expand Up @@ -3543,6 +3555,24 @@ proto.api.MulticastGroupQueueItem.prototype.setData = function(value) {
};


/**
* optional int64 emit_at = 5;
* @return {number}
*/
proto.api.MulticastGroupQueueItem.prototype.getEmitAt = function() {
return /** @type {number} */ (jspb.Message.getFieldWithDefault(this, 5, 0));
};


/**
* @param {number} value
* @return {!proto.api.MulticastGroupQueueItem} returns this
*/
proto.api.MulticastGroupQueueItem.prototype.setEmitAt = function(value) {
return jspb.Message.setProto3IntField(this, 5, value);
};





Expand Down
10 changes: 10 additions & 0 deletions api/grpc-web/google/api/client_pb.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,6 +140,9 @@ export class Publishing extends jspb.Message {
getProtoReferenceDocumentationUri(): string;
setProtoReferenceDocumentationUri(value: string): Publishing;

getRestReferenceDocumentationUri(): string;
setRestReferenceDocumentationUri(value: string): Publishing;

serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): Publishing.AsObject;
static toObject(includeInstance: boolean, msg: Publishing): Publishing.AsObject;
Expand All @@ -160,6 +163,7 @@ export namespace Publishing {
organization: ClientLibraryOrganization,
librarySettingsList: Array<ClientLibrarySettings.AsObject>,
protoReferenceDocumentationUri: string,
restReferenceDocumentationUri: string,
}
}

Expand Down Expand Up @@ -366,6 +370,11 @@ export class MethodSettings extends jspb.Message {
hasLongRunning(): boolean;
clearLongRunning(): MethodSettings;

getAutoPopulatedFieldsList(): Array<string>;
setAutoPopulatedFieldsList(value: Array<string>): MethodSettings;
clearAutoPopulatedFieldsList(): MethodSettings;
addAutoPopulatedFields(value: string, index?: number): MethodSettings;

serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): MethodSettings.AsObject;
static toObject(includeInstance: boolean, msg: MethodSettings): MethodSettings.AsObject;
Expand All @@ -378,6 +387,7 @@ export namespace MethodSettings {
export type AsObject = {
selector: string,
longRunning?: MethodSettings.LongRunning.AsObject,
autoPopulatedFieldsList: Array<string>,
}

export class LongRunning extends jspb.Message {
Expand Down
118 changes: 115 additions & 3 deletions api/grpc-web/google/api/client_pb.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,7 @@ goog.exportSymbol('proto.google.api.PhpSettings', null, global);
goog.exportSymbol('proto.google.api.Publishing', null, global);
goog.exportSymbol('proto.google.api.PythonSettings', null, global);
goog.exportSymbol('proto.google.api.RubySettings', null, global);
goog.exportSymbol('proto.google.api.apiVersion', null, global);
goog.exportSymbol('proto.google.api.defaultHost', null, global);
goog.exportSymbol('proto.google.api.methodSignatureList', null, global);
goog.exportSymbol('proto.google.api.oauthScopes', null, global);
Expand Down Expand Up @@ -278,7 +279,7 @@ if (goog.DEBUG && !COMPILED) {
* @constructor
*/
proto.google.api.MethodSettings = function(opt_data) {
jspb.Message.initialize(this, opt_data, 0, -1, null, null);
jspb.Message.initialize(this, opt_data, 0, -1, proto.google.api.MethodSettings.repeatedFields_, null);
};
goog.inherits(proto.google.api.MethodSettings, jspb.Message);
if (goog.DEBUG && !COMPILED) {
Expand Down Expand Up @@ -1143,7 +1144,8 @@ proto.google.api.Publishing.toObject = function(includeInstance, msg) {
organization: jspb.Message.getFieldWithDefault(msg, 107, 0),
librarySettingsList: jspb.Message.toObjectList(msg.getLibrarySettingsList(),
proto.google.api.ClientLibrarySettings.toObject, includeInstance),
protoReferenceDocumentationUri: jspb.Message.getFieldWithDefault(msg, 110, "")
protoReferenceDocumentationUri: jspb.Message.getFieldWithDefault(msg, 110, ""),
restReferenceDocumentationUri: jspb.Message.getFieldWithDefault(msg, 111, "")
};

if (includeInstance) {
Expand Down Expand Up @@ -1222,6 +1224,10 @@ proto.google.api.Publishing.deserializeBinaryFromReader = function(msg, reader)
var value = /** @type {string} */ (reader.readString());
msg.setProtoReferenceDocumentationUri(value);
break;
case 111:
var value = /** @type {string} */ (reader.readString());
msg.setRestReferenceDocumentationUri(value);
break;
default:
reader.skipField();
break;
Expand Down Expand Up @@ -1323,6 +1329,13 @@ proto.google.api.Publishing.serializeBinaryToWriter = function(message, writer)
f
);
}
f = message.getRestReferenceDocumentationUri();
if (f.length > 0) {
writer.writeString(
111,
f
);
}
};


Expand Down Expand Up @@ -1565,6 +1578,24 @@ proto.google.api.Publishing.prototype.setProtoReferenceDocumentationUri = functi
};


/**
* optional string rest_reference_documentation_uri = 111;
* @return {string}
*/
proto.google.api.Publishing.prototype.getRestReferenceDocumentationUri = function() {
return /** @type {string} */ (jspb.Message.getFieldWithDefault(this, 111, ""));
};


/**
* @param {string} value
* @return {!proto.google.api.Publishing} returns this
*/
proto.google.api.Publishing.prototype.setRestReferenceDocumentationUri = function(value) {
return jspb.Message.setProto3StringField(this, 111, value);
};





Expand Down Expand Up @@ -3057,6 +3088,13 @@ proto.google.api.GoSettings.prototype.hasCommon = function() {



/**
* List of repeated fields within this message type.
* @private {!Array<number>}
* @const
*/
proto.google.api.MethodSettings.repeatedFields_ = [3];



if (jspb.Message.GENERATE_TO_OBJECT) {
Expand Down Expand Up @@ -3089,7 +3127,8 @@ proto.google.api.MethodSettings.prototype.toObject = function(opt_includeInstanc
proto.google.api.MethodSettings.toObject = function(includeInstance, msg) {
var f, obj = {
selector: jspb.Message.getFieldWithDefault(msg, 1, ""),
longRunning: (f = msg.getLongRunning()) && proto.google.api.MethodSettings.LongRunning.toObject(includeInstance, f)
longRunning: (f = msg.getLongRunning()) && proto.google.api.MethodSettings.LongRunning.toObject(includeInstance, f),
autoPopulatedFieldsList: (f = jspb.Message.getRepeatedField(msg, 3)) == null ? undefined : f
};

if (includeInstance) {
Expand Down Expand Up @@ -3135,6 +3174,10 @@ proto.google.api.MethodSettings.deserializeBinaryFromReader = function(msg, read
reader.readMessage(value,proto.google.api.MethodSettings.LongRunning.deserializeBinaryFromReader);
msg.setLongRunning(value);
break;
case 3:
var value = /** @type {string} */ (reader.readString());
msg.addAutoPopulatedFields(value);
break;
default:
reader.skipField();
break;
Expand Down Expand Up @@ -3179,6 +3222,13 @@ proto.google.api.MethodSettings.serializeBinaryToWriter = function(message, writ
proto.google.api.MethodSettings.LongRunning.serializeBinaryToWriter
);
}
f = message.getAutoPopulatedFieldsList();
if (f.length > 0) {
writer.writeRepeatedString(
3,
f
);
}
};


Expand Down Expand Up @@ -3520,6 +3570,43 @@ proto.google.api.MethodSettings.prototype.hasLongRunning = function() {
};


/**
* repeated string auto_populated_fields = 3;
* @return {!Array<string>}
*/
proto.google.api.MethodSettings.prototype.getAutoPopulatedFieldsList = function() {
return /** @type {!Array<string>} */ (jspb.Message.getRepeatedField(this, 3));
};


/**
* @param {!Array<string>} value
* @return {!proto.google.api.MethodSettings} returns this
*/
proto.google.api.MethodSettings.prototype.setAutoPopulatedFieldsList = function(value) {
return jspb.Message.setField(this, 3, value || []);
};


/**
* @param {string} value
* @param {number=} opt_index
* @return {!proto.google.api.MethodSettings} returns this
*/
proto.google.api.MethodSettings.prototype.addAutoPopulatedFields = function(value, opt_index) {
return jspb.Message.addToRepeatedField(this, 3, value, opt_index);
};


/**
* Clears the list making it empty but non-null.
* @return {!proto.google.api.MethodSettings} returns this
*/
proto.google.api.MethodSettings.prototype.clearAutoPopulatedFieldsList = function() {
return this.setAutoPopulatedFieldsList([]);
};


/**
* @enum {number}
*/
Expand Down Expand Up @@ -3618,4 +3705,29 @@ google_protobuf_descriptor_pb.ServiceOptions.extensionsBinary[1050] = new jspb.E
// toObject() will function correctly.
google_protobuf_descriptor_pb.ServiceOptions.extensions[1050] = proto.google.api.oauthScopes;


/**
* A tuple of {field number, class constructor} for the extension
* field named `apiVersion`.
* @type {!jspb.ExtensionFieldInfo<string>}
*/
proto.google.api.apiVersion = new jspb.ExtensionFieldInfo(
525000001,
{apiVersion: 0},
null,
/** @type {?function((boolean|undefined),!jspb.Message=): !Object} */ (
null),
0);

google_protobuf_descriptor_pb.ServiceOptions.extensionsBinary[525000001] = new jspb.ExtensionFieldBinaryInfo(
proto.google.api.apiVersion,
jspb.BinaryReader.prototype.readString,
jspb.BinaryWriter.prototype.writeString,
undefined,
undefined,
false);
// This registers the extension field with the extended class, so that
// toObject() will function correctly.
google_protobuf_descriptor_pb.ServiceOptions.extensions[525000001] = proto.google.api.apiVersion;

goog.object.extend(exports, proto.google.api);
7 changes: 7 additions & 0 deletions api/grpc-web/google/api/control_pb.d.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,17 @@
import * as jspb from 'google-protobuf'

import * as google_api_policy_pb from '../../google/api/policy_pb';


export class Control extends jspb.Message {
getEnvironment(): string;
setEnvironment(value: string): Control;

getMethodPoliciesList(): Array<google_api_policy_pb.MethodPolicy>;
setMethodPoliciesList(value: Array<google_api_policy_pb.MethodPolicy>): Control;
clearMethodPoliciesList(): Control;
addMethodPolicies(value?: google_api_policy_pb.MethodPolicy, index?: number): google_api_policy_pb.MethodPolicy;

serializeBinary(): Uint8Array;
toObject(includeInstance?: boolean): Control.AsObject;
static toObject(includeInstance: boolean, msg: Control): Control.AsObject;
Expand All @@ -17,6 +23,7 @@ export class Control extends jspb.Message {
export namespace Control {
export type AsObject = {
environment: string,
methodPoliciesList: Array<google_api_policy_pb.MethodPolicy.AsObject>,
}
}

Loading