<commit_before>syntax = "proto2";

import "messages/messages.proto";

package Communication;

enum MessageTarget_ {
	Robot = 0;
	Unity = 1;
	Vision = 2; // We probably won't need this
}

enum MessageType_ {
	// Unity -> Robot
	IdentificationRequest = 0;
	VelocityChange = 1;
	Indicate = 2;

	// Robot -> Unity
	IdentificationResponse = 3;
	LogError = 4;
	CustomEvent = 5;

	// Vision -> Unity
	ShapeUpdate = 6;
}

message Message {
	required int32 id = 1;
	required MessageTarget_ messageTarget = 2;
	required MessageType_ messageType = 3;

	// Unity -> Robot
	optional Messages.SetVelocity_ robotVelocity = 4;

	// Robot -> Unity
	optional Messages.IdentificationResponse_ identificationResponse = 5;
	optional Messages.Error_ error = 6;
	optional Messages.CustomMessage_ customMessage = 7;<commit_msg>[Unity] Consistent naming for protobuf definitions.<commit_after>syntax = "proto2";

import "messages/messages.proto";

package Communication;

enum MessageTarget_ {
	Robot = 0;
	Unity = 1;
	Vision = 2; // We probably won't need this
}

enum MessageType_ {
	// Unity -> Robot
	IdentificationRequest = 0;
	VelocityChange = 1;
	Indicate = 2;

	// Robot -> Unity
	IdentificationResponse = 3;
	LogError = 4;
	CustomMessage = 5;

	// Vision -> Unity
	ShapeUpdate = 6;
}

message Message {
	required int32 id = 1;
	required MessageTarget_ messageTarget = 2;
	required MessageType_ messageType = 3;

	// Unity -> Robot
	optional Messages.SetVelocity_ robotVelocity = 4;

	// Robot -> Unity
	optional Messages.IdentificationResponse_ identificationResponse = 5;
	optional Messages.Error_ error = 6;
	optional Messages.CustomMessage_ customMessage = 7;
{'fraction_non_alphanumeric': 0.09781287970838397, 'fraction_numerical': 0.024301336573511544, 'mean_word_length': 3.97583081570997, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 13, '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': '1334762', 'n_tokens_mistral': 580, 'n_tokens_neox': 512, 'n_words': 154}