<commit_before>package com.geeksville.dapi;

option java_package = "com.geeksville.dapi";


message LoginMsg {
	required string username = 1;
	required string password = 2;
}

message MavlinkMsg {
	required sint32 srcInterface = 1;
	repeated bytes packet = 2;
}

// Enums used to decode the super large envelope variant (not using a variant record is also an option but this made for an easy experiment similar 
// to how I've used protobufs in the past)
enum EnvelopeMsgCode {
	LoginMsgCode = 10;
	MavlinkMsgCode = 11;
}

// Envelope to contain all the messages. At any time, ONLY 1 of the optional fields can be used.
message Envelope {
  	// Identifies which field is filled in.
  	required EnvelopeMsgCode type = 3;

	// Payloads
	optional LoginMsg login = 10;
	optional MavlinkMsg mavlink = 11;
}<commit_msg>doc update<commit_after>package com.geeksville.dapi;

option java_package = "com.geeksville.dapi";


message LoginMsg {
	required string username = 1;
	required string password = 2;
}

message MavlinkMsg {
	required sint32 srcInterface = 1;
	repeated bytes packet = 2;
}

// Enums used to decode the super large envelope variant (not using a variant record is also an option but this made for an easy experiment similar 
// to how I've used protobufs in the past)
enum EnvelopeMsgCode {
	LoginMsgCode = 10;
	MavlinkMsgCode = 11;
}

// Envelope to contain all the messages. At any time, ONLY 1 of the optional fields can be used.
message Envelope {
  	// Identifies which field is filled in.  If not specified receiver will need to check each optional payload below
  	optional EnvelopeMsgCode type = 3;

	// Payloads
	optional LoginMsg login = 10;
	optional MavlinkMsg mavlink = 11;
}
{'fraction_non_alphanumeric': 0.0648202710665881, 'fraction_numerical': 0.01885680612846199, 'mean_word_length': 3.893371757925072, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1857861', 'n_tokens_mistral': 543, 'n_tokens_neox': 505, 'n_words': 221}