// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: roster.proto
package com.carter.roster.proto;
public final class Roster {
private Roster() {
}
public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) {
}
public static final class Student extends com.google.protobuf.GeneratedMessage {
// Use Student.newBuilder() to construct.
private Student() {
initFields();
}
private Student(boolean noInit) {
}
private static final Student defaultInstance;
public static Student getDefaultInstance() {
return defaultInstance;
}
public Student getDefaultInstanceForType() {
return defaultInstance;
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return com.carter.roster.proto.Roster.internal_static_Student_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() {
return com.carter.roster.proto.Roster.internal_static_Student_fieldAccessorTable;
}
public enum Sex implements com.google.protobuf.ProtocolMessageEnum {
MALE(0, 0), FEMALE(1, 1), ;
public final int getNumber() {
return value;
}
public static Sex valueOf(int value) {
switch (value) {
case 0:
return MALE;
case 1:
return FEMALE;
default:
return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap<Sex> internalGetValueMap() {
return internalValueMap;
}
private static com.google.protobuf.Internal.EnumLiteMap<Sex> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap<Sex>() {
public Sex findValueByNumber(int number) {
return Sex.valueOf(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() {
return getDescriptor().getValues().get(index);
}
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() {
return com.carter.roster.proto.Roster.Student.getDescriptor().getEnumTypes().get(0);
}
private static final Sex[] VALUES = { MALE, FEMALE, };
public static Sex valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException("EnumValueDescriptor is not for this type.");
}
return VALUES[desc.getIndex()];
}
private final int index;
private final int value;
private Sex(int index, int value) {
this.index = index;
this.value = value;
}
static {
com.carter.roster.proto.Roster.getDescriptor();
}
// @@protoc_insertion_point(enum_scope:Student.Sex)
}
// required int32 id = 1;
public static final int ID_FIELD_NUMBER = 1;
private boolean hasId;
private int id_ = 0;
public boolean hasId() {
return hasId;
}
public int getId() {
return id_;
}
// required string name = 2;
public static final int NAME_FIELD_NUMBER = 2;
private boolean hasName;
private java.lang.String name_ = "";
public boolean hasName() {
return hasName;
}
public java.lang.String getName() {
return name_;
}
// required .Student.Sex sex = 3;
public static final int SEX_FIELD_NUMBER = 3;
private boolean hasSex;
private com.carter.roster.proto.Roster.Student.Sex sex_;
public boolean hasSex() {
return hasSex;
}
public com.carter.roster.proto.Roster.Student.Sex getSex() {
return sex_;
}
private void initFields() {
sex_ = com.carter.roster.proto.Roster.Student.Sex.MALE;
}
public final boolean isInitialized() {
if (!hasId)
return false;
if (!hasName)
return false;
if (!hasSex)
return false;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException {
getSerializedSize();
if (hasId()) {
output.writeInt32(1, getId());
}
if (hasName()) {
output.writeString(2, getName());
}
if (hasSex()) {
output.writeEnum(3, getSex().getNumber());
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1)
return size;
size = 0;
if (hasId()) {
size += com.google.protobuf.CodedOutputStream.computeInt32Size(1, getId());
}
if (hasName()) {
size += com.google.protobuf.CodedOutputStream.computeStringSize(2, getName());
}
if (hasSex()) {
size += com.google.protobuf.CodedOutputStream.computeEnumSize(3, getSex().getNumber());
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
public static com.carter.roster.proto.Roster.Student parseFrom(com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data).buildParsed();
}
public static com.carter.roster.proto.Roster.Student parseFrom(com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data, extensionRegistry).buildParsed();
}
public static com.carter.roster.proto.Roster.Student parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data).buildParsed();
}
public static com.carter.roster.proto.Roster.Student parseFrom(byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return newBuilder().mergeFrom(data, extensionRegistry).buildParsed();
}
public static com.carter.roster.proto.Roster.Student parseFrom(java.io.InputStream input)
throws java.io.IOException {
return newBuilder().mergeFrom(input).buildParsed();
}
public static com.carter.roster.proto.Roster.Student parseFrom(java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException {
return newBuilder().mergeFrom(input, extensionRegistry).buildParsed();
}
public static com.carter.roster.proto.Roster.Student parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
Builder builder = newBuilder();
if (builder.mergeDel
没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
收起资源包目录
Roster.rar (44个子文件)
Roster
.project 842B
project.properties 360B
proguard.cfg 1KB
src
com
carter
roster
proto
Roster.java 34KB
InfoHelper.java 3KB
StudentInfo.java 543B
RosterActivity.java 4KB
roster.proto 815B
AndroidManifest.xml 816B
res
drawable-ldpi
ic_launcher.png 2KB
drawable-hdpi
ic_launcher.png 4KB
drawable-mdpi
ic_launcher.png 3KB
layout
adpater_item.xml 1002B
main.xml 3KB
values
strings.xml 178B
assets
gen
com
carter
roster
R.java 1KB
.classpath 446B
bin
resources.ap_ 12KB
classes
com
carter
roster
R$layout.class 427B
proto
Roster$StudentRoster$Builder.class 10KB
Roster$StudentRoster.class 8KB
Roster$1.class 2KB
Roster$Student$Sex.class 4KB
Roster$Student$Sex$1.class 1KB
Roster$Student.class 9KB
Roster$Student$Builder.class 9KB
Roster.class 3KB
R$drawable.class 404B
R$attr.class 337B
InfoHelper.class 4KB
R$id.class 685B
StudentInfo.class 916B
RosterActivity$MyAdapter$ViewHolder.class 703B
R.class 524B
R$string.class 424B
RosterActivity$MyOnClickListener.class 2KB
RosterActivity$MyAdapter.class 3KB
RosterActivity.class 2KB
roster.proto 815B
res
drawable-ldpi
ic_launcher.png 2KB
drawable-hdpi
ic_launcher.png 4KB
drawable-mdpi
ic_launcher.png 2KB
Roster.apk 151KB
classes.dex 379KB
共 44 条
- 1
vampirecarter
- 粉丝: 81
- 资源: 60
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
- 1
- 2
前往页