From f9d7b4b1ce1b02f27d987cdcd8fabfff74e4cf6e Mon Sep 17 00:00:00 2001 From: Vladimir Eliezer Tokarev Date: Fri, 8 Jan 2016 07:41:26 -0800 Subject: [PATCH] Changed the location of the protobufs file The location have been changed to create order in the packages --- voter-registry/src/main/java/meerkat/Registry.java | 13 +++++++++++++ .../java/meerkat}/protobuf/ProtobufsMessages.java | 3 ++- .../java/meerkat}/protobuf/ProtobufsMessages.proto | 2 +- 3 files changed, 16 insertions(+), 2 deletions(-) create mode 100644 voter-registry/src/main/java/meerkat/Registry.java rename voter-registry/src/{ => main/java/meerkat}/protobuf/ProtobufsMessages.java (99%) rename voter-registry/src/{ => main/java/meerkat}/protobuf/ProtobufsMessages.proto (82%) diff --git a/voter-registry/src/main/java/meerkat/Registry.java b/voter-registry/src/main/java/meerkat/Registry.java new file mode 100644 index 0000000..a6ef5b7 --- /dev/null +++ b/voter-registry/src/main/java/meerkat/Registry.java @@ -0,0 +1,13 @@ +package meerkat; + + +/** + * Created by Vladimir Eliezer Tokarev on 1/8/2016. + * + */ +public class Registry { + + public boolean TryAddVoter(String voterID, String personalData) throws IllegalArgumentException{ + private + } +} diff --git a/voter-registry/src/protobuf/ProtobufsMessages.java b/voter-registry/src/main/java/meerkat/protobuf/ProtobufsMessages.java similarity index 99% rename from voter-registry/src/protobuf/ProtobufsMessages.java rename to voter-registry/src/main/java/meerkat/protobuf/ProtobufsMessages.java index ab43b20..36d1092 100644 --- a/voter-registry/src/protobuf/ProtobufsMessages.java +++ b/voter-registry/src/main/java/meerkat/protobuf/ProtobufsMessages.java @@ -2267,7 +2267,8 @@ public final class ProtobufsMessages { "ent\030\001 \002(\t\"/\n\014BasicMessage\022\021\n\003tag\030\001 \003(\0132\004" + ".Tag\022\014\n\004data\030\002 \001(\014\"b\n\024BulletinBoardMessa" + "ge\022\021\n\003tag\030\001 \003(\0132\004.Tag\022#\n\014basicMessage\030\002 " + - "\002(\0132\r.BasicMessage\022\022\n\nsignatures\030\003 \001(\014" + "\002(\0132\r.BasicMessage\022\022\n\nsignatures\030\003 \001(\014B\023" + + "B\021ProtobufsMessages" }; com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { diff --git a/voter-registry/src/protobuf/ProtobufsMessages.proto b/voter-registry/src/main/java/meerkat/protobuf/ProtobufsMessages.proto similarity index 82% rename from voter-registry/src/protobuf/ProtobufsMessages.proto rename to voter-registry/src/main/java/meerkat/protobuf/ProtobufsMessages.proto index c91982c..ff40474 100644 --- a/voter-registry/src/protobuf/ProtobufsMessages.proto +++ b/voter-registry/src/main/java/meerkat/protobuf/ProtobufsMessages.proto @@ -1,4 +1,4 @@ - +option java_outer_classname = "ProtobufsMessages"; message Tag { required string content = 1;