Commit 531f6fbe authored by Mohamad Bashar Desoki's avatar Mohamad Bashar Desoki

Compile and generate proto

parent c93bd754
File added
......@@ -5,3 +5,5 @@ public class Main {
System.out.println("Hello world!");
}
}
//./protoc --proto_path=src --java_out=.\src\main\java .\src\proto\student.proto
\ No newline at end of file
This diff is collapsed.
// Generated by the protocol buffer compiler. DO NOT EDIT!
// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/student.proto
// Protobuf Java Version: 4.28.2
package org.ds.proto;
public interface StudentOrBuilder extends
// @@protoc_insertion_point(interface_extends:Student)
com.google.protobuf.MessageOrBuilder {
/**
* <code>string name = 1;</code>
* @return The name.
*/
java.lang.String getName();
/**
* <code>string name = 1;</code>
* @return The bytes for name.
*/
com.google.protobuf.ByteString
getNameBytes();
/**
* <code>int32 age = 2;</code>
* @return The age.
*/
int getAge();
}
// Generated by the protocol buffer compiler. DO NOT EDIT!
// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/student.proto
// Protobuf Java Version: 4.28.2
package org.ds.proto;
public final class StudentOuterClass {
private StudentOuterClass() {}
static {
com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
/* major= */ 4,
/* minor= */ 28,
/* patch= */ 2,
/* suffix= */ "",
StudentOuterClass.class.getName());
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
static final com.google.protobuf.Descriptors.Descriptor
internal_static_Students_descriptor;
static final
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_Students_fieldAccessorTable;
static final com.google.protobuf.Descriptors.Descriptor
internal_static_Student_descriptor;
static final
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_Student_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\023proto/student.proto\"&\n\010Students\022\032\n\010stu" +
"dents\030\001 \003(\0132\010.Student\"$\n\007Student\022\014\n\004name" +
"\030\001 \001(\t\022\013\n\003age\030\002 \001(\005B\020\n\014org.ds.protoP\001b\006p" +
"roto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
});
internal_static_Students_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_Students_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_Students_descriptor,
new java.lang.String[] { "Students", });
internal_static_Student_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_Student_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_Student_descriptor,
new java.lang.String[] { "Name", "Age", });
descriptor.resolveAllFeaturesImmutable();
}
// @@protoc_insertion_point(outer_class_scope)
}
This diff is collapsed.
// Generated by the protocol buffer compiler. DO NOT EDIT!
// NO CHECKED-IN PROTOBUF GENCODE
// source: proto/student.proto
// Protobuf Java Version: 4.28.2
package org.ds.proto;
public interface StudentsOrBuilder extends
// @@protoc_insertion_point(interface_extends:Students)
com.google.protobuf.MessageOrBuilder {
/**
* <code>repeated .Student students = 1;</code>
*/
java.util.List<org.ds.proto.Student>
getStudentsList();
/**
* <code>repeated .Student students = 1;</code>
*/
org.ds.proto.Student getStudents(int index);
/**
* <code>repeated .Student students = 1;</code>
*/
int getStudentsCount();
/**
* <code>repeated .Student students = 1;</code>
*/
java.util.List<? extends org.ds.proto.StudentOrBuilder>
getStudentsOrBuilderList();
/**
* <code>repeated .Student students = 1;</code>
*/
org.ds.proto.StudentOrBuilder getStudentsOrBuilder(
int index);
}
syntax = "proto3";
option java_multiple_files= true;
option java_package = "org.ds.proto";
message Students{
repeated Student students=1;
}
message Student{
string name =1;
int32 age =2;
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment