// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: student.proto
package com.topsec.trd;
public final class StudentProto {
private StudentProto() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
}
public interface StudentOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// required string name = 1;
/**
* <code>required string name = 1;</code>
*/
boolean hasName();
/**
* <code>required string name = 1;</code>
*/
java.lang.String getName();
/**
* <code>required string name = 1;</code>
*/
com.google.protobuf.ByteString
getNameBytes();
// required int32 age = 2;
/**
* <code>required int32 age = 2;</code>
*/
boolean hasAge();
/**
* <code>required int32 age = 2;</code>
*/
int getAge();
// required int32 sex = 3;
/**
* <code>required int32 sex = 3;</code>
*/
boolean hasSex();
/**
* <code>required int32 sex = 3;</code>
*/
int getSex();
// optional string alias = 4;
/**
* <code>optional string alias = 4;</code>
*/
boolean hasAlias();
/**
* <code>optional string alias = 4;</code>
*/
java.lang.String getAlias();
/**
* <code>optional string alias = 4;</code>
*/
com.google.protobuf.ByteString
getAliasBytes();
// repeated string interest = 5;
/**
* <code>repeated string interest = 5;</code>
*/
java.util.List<java.lang.String>
getInterestList();
/**
* <code>repeated string interest = 5;</code>
*/
int getInterestCount();
/**
* <code>repeated string interest = 5;</code>
*/
java.lang.String getInterest(int index);
/**
* <code>repeated string interest = 5;</code>
*/
com.google.protobuf.ByteString
getInterestBytes(int index);
}
/**
* Protobuf type {@code protobuf.Student}
*/
public static final class Student extends
com.google.protobuf.GeneratedMessage
implements StudentOrBuilder {
// Use Student.newBuilder() to construct.
private Student(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private Student(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final Student defaultInstance;
public static Student getDefaultInstance() {
return defaultInstance;
}
public Student getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Student(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
bitField0_ |= 0x00000001;
name_ = input.readBytes();
break;
}
case 16: {
bitField0_ |= 0x00000002;
age_ = input.readInt32();
break;
}
case 24: {
bitField0_ |= 0x00000004;
sex_ = input.readInt32();
break;
}
case 34: {
bitField0_ |= 0x00000008;
alias_ = input.readBytes();
break;
}
case 42: {
if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) {
interest_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000010;
}
interest_.add(input.readBytes());
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) {
interest_ = new com.google.protobuf.UnmodifiableLazyStringList(interest_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.topsec.trd.StudentProto.internal_static_protobuf_Student_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.topsec.trd.StudentProto.internal_static_protobuf_Student_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.topsec.trd.StudentProto.Student.class, com.topsec.trd.StudentProto.Student.Builder.class);
}
public static com.google.protobuf.Parser<Student> PARSER =
new com.google.protobuf.AbstractParser<Student>() {
public Student parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Student(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser<Student> getParserForType() {
return PARSER;
}
private int bitField0_;
// required string name = 1;
public static final int NAME_FIELD_NUMBER = 1;
private java.lang.Object name_;
/**
* <code>required string name = 1;</code>
*/
public boolean hasName() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>required string name = 1;</code>
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
name_ = s;
}
return s;
}
}
/**
* <code>required string name = 1;</code>
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// required int32 age = 2;
public static final int AGE_FIELD_NUMBER = 2;
private int age_;
/**
* <code>required int32 age = 2;</code>
*/
public boolean hasAge() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>required int32 age = 2;</code>
*/
public int getAge() {
return age_;
}
// required int32 sex = 3;
public static final int SEX_FIELD_NUMBER = 3;
private int sex_;
/**
* <code>required int32
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
rpc-protocal.zip (56个子文件)
rpc-protocal
.project 564B
src
test
java
com
topsec
trd
main
resource
student.avsc 365B
student.proto 280B
student.thrift 165B
java
com
topsec
trd
Thrift.java 1KB
StudentThrift.java 27KB
ProtoBuf.java 2KB
AVRO.java 4KB
Main.java 107B
StudentAvro.java 11KB
StudentProto.java 32KB
lib
protobuf-2.5.0.tar.gz 2.29MB
avro-tools-1.7.7.jar 11.95MB
thrift-0.10.0.exe 5.38MB
target
classes
student.avsc 365B
com
topsec
trd
StudentThrift$_Fields.class 3KB
StudentThrift$StudentThriftStandardSchemeFactory.class 1KB
StudentProto$Student$Builder.class 14KB
Main.class 385B
StudentProto$StudentOrBuilder.class 771B
StudentProto$Student$1.class 1KB
StudentProto.class 3KB
StudentProto$1.class 2KB
Thrift.class 2KB
StudentThrift.class 16KB
StudentThrift$StudentThriftTupleScheme.class 3KB
StudentThrift$StudentThriftStandardScheme.class 4KB
StudentProto$Student.class 15KB
StudentAvro$Builder.class 6KB
ProtoBuf.class 3KB
AVRO.class 5KB
StudentThrift$StudentThriftTupleSchemeFactory.class 1KB
StudentAvro.class 4KB
META-INF
MANIFEST.MF 111B
maven
com.topsec.trd
rpc-protocal
pom.properties 229B
pom.xml 2KB
student.proto 280B
student.thrift 165B
test-classes
com
topsec
trd
student
student0.avro 250B
student8.avro 250B
student3.avro 250B
student9.avro 250B
student5.avro 250B
student2.avro 250B
student4.avro 250B
student1.avro 250B
student6.avro 250B
student7.avro 250B
doc
tutorial.thrift 5KB
thrift 152B
summary 512B
.settings
org.eclipse.m2e.core.prefs 90B
org.eclipse.jdt.core.prefs 736B
org.eclipse.core.resources.prefs 119B
pom.xml 2KB
.classpath 1KB
共 56 条
- 1
资源评论
- TOTTI-102017-12-22好像不能修改。。。皮蛋-L2019-03-15应该是可以的
皮蛋-L
- 粉丝: 17
- 资源: 11
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功