/*
* Licensed to the Apache Software Foundation (ASF) under one
* or more contributor license agreements. See the NOTICE file
* distributed with this work for additional information
* regarding copyright ownership. The ASF licenses this file
* to you under the Apache License, Version 2.0 (the
* "License"); you may not use this file except in compliance
* with the License. You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing,
* software distributed under the License is distributed on an
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
* KIND, either express or implied. See the License for the
* specific language governing permissions and limitations
* under the License.
*
*/
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: src/test/protobuf/addressbook.proto
package org.apache.mina.generated.protoc;
public final class AddressBookProtos {
private AddressBookProtos() {
}
public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) {
}
public interface PersonOrBuilder 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 id = 2;
/**
* <code>required int32 id = 2;</code>
*
* <pre>
* Unique ID number for this person.
* </pre>
*/
boolean hasId();
/**
* <code>required int32 id = 2;</code>
*
* <pre>
* Unique ID number for this person.
* </pre>
*/
int getId();
// optional string email = 3;
/**
* <code>optional string email = 3;</code>
*/
boolean hasEmail();
/**
* <code>optional string email = 3;</code>
*/
java.lang.String getEmail();
/**
* <code>optional string email = 3;</code>
*/
com.google.protobuf.ByteString getEmailBytes();
// repeated .tutorial.Person.PhoneNumber phone = 4;
/**
* <code>repeated .tutorial.Person.PhoneNumber phone = 4;</code>
*/
java.util.List<org.apache.mina.generated.protoc.AddressBookProtos.Person.PhoneNumber> getPhoneList();
/**
* <code>repeated .tutorial.Person.PhoneNumber phone = 4;</code>
*/
org.apache.mina.generated.protoc.AddressBookProtos.Person.PhoneNumber getPhone(int index);
/**
* <code>repeated .tutorial.Person.PhoneNumber phone = 4;</code>
*/
int getPhoneCount();
/**
* <code>repeated .tutorial.Person.PhoneNumber phone = 4;</code>
*/
java.util.List<? extends org.apache.mina.generated.protoc.AddressBookProtos.Person.PhoneNumberOrBuilder> getPhoneOrBuilderList();
/**
* <code>repeated .tutorial.Person.PhoneNumber phone = 4;</code>
*/
org.apache.mina.generated.protoc.AddressBookProtos.Person.PhoneNumberOrBuilder getPhoneOrBuilder(int index);
}
/**
* Protobuf type {@code tutorial.Person}
*/
public static final class Person extends com.google.protobuf.GeneratedMessage implements PersonOrBuilder {
// Use Person.newBuilder() to construct.
private Person(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private Person(boolean noInit) {
this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance();
}
private static final Person defaultInstance;
public static Person getDefaultInstance() {
return defaultInstance;
}
public Person getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet getUnknownFields() {
return this.unknownFields;
}
private Person(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;
id_ = input.readInt32();
break;
}
case 26: {
bitField0_ |= 0x00000004;
email_ = input.readBytes();
break;
}
case 34: {
if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
phone_ = new java.util.ArrayList<org.apache.mina.generated.protoc.AddressBookProtos.Person.PhoneNumber>();
mutable_bitField0_ |= 0x00000008;
}
phone_.add(input.readMessage(
org.apache.mina.generated.protoc.AddressBookProtos.Person.PhoneNumber.PARSER,
extensionRegistry));
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_ & 0x00000008) == 0x00000008)) {
phone_ = java.util.Collections.unmodifiableList(phone_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
return org.apache.mina.generated.protoc.AddressBookProtos.internal_static_tutorial_Person_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() {
return org.apache.mina.generated.protoc.AddressBookProtos.internal_static_tutorial_Person_fieldAccessorTable
.ensureFieldAccessorsInitialized(org.apache.mina.generated.protoc.AddressBookProtos.Person.class,
org.apache.mina.generated.protoc.AddressBookProtos.Person.Builder.class);
}
public static com.google.protobuf.Parser<Person> PARSER = new com.g
没有合适的资源?快使用搜索试试~ 我知道了~
资源详情
资源评论
资源推荐
收起资源包目录
apache-mina-3.0.0-M2-src.zip (1105个子文件)
keystore.cert 937B
bogus.cert 937B
stylesheet.css 11KB
stylesheet.css 2KB
stylesheet.css 2KB
titlebar.gif 10KB
background.gif 2KB
titlebar_end.gif 849B
tab.gif 291B
index-all.html 437KB
AddressBookProtos.html 341KB
UserStorage.html 226KB
Calc.html 154KB
IoBuffer.html 122KB
IoBufferTest.html 119KB
AbstractIoSession.html 103KB
UserProfile.html 78KB
AbstractIoSession.html 66KB
IoBuffer.html 65KB
IoSession.html 65KB
overview-tree.html 52KB
CoapMessage.html 48KB
TextLineDecoder.html 46KB
IoSession.html 46KB
NioTcpServer.html 46KB
NioTcpSession.html 46KB
IoSession.html 45KB
ProxyTcpSessionConfig.html 44KB
AbstractIoFutureTest.html 43KB
AbstractNioSession.html 43KB
NioSelectorLoop.html 41KB
NioUdpServer.html 40KB
ProxyTcpSessionConfig.html 40KB
HttpStatus.html 39KB
LoggingFilter.html 39KB
NioTcpServer.html 39KB
SslHelper.html 38KB
package-use.html 38KB
NioUdpSession.html 37KB
ProxySocketSessionConfigTest.html 36KB
IndexedIdleChecker.html 36KB
LoggingFilter.html 36KB
NioUdpServer.html 35KB
NioTcpClient.html 35KB
NioTcpSession.html 35KB
NioUdpSession.html 34KB
IoHandlerExecutor.html 34KB
AbstractIoFuture.html 34KB
CoapMessage.html 33KB
IoBuffer.html 32KB
IoFuture.html 32KB
AbstractNioSession.html 32KB
HttpRequestImpl.html 32KB
AbstractIoService.html 31KB
AbstractIoFuture.html 30KB
NioTcpServerFilterEventTest.html 30KB
DefaultTcpSessionConfig.html 30KB
TextLineDecoder.html 29KB
AbstractIoSessionConfig.html 29KB
CoapCode.html 29KB
WriteRequest.html 29KB
BioUdpSession.html 28KB
AbstractIoService.html 28KB
AbstractIoSessionTest.html 28KB
AttributeContainerTest.html 27KB
NioTcpServerHandlerTest.html 27KB
BioUdpServer.html 26KB
SslTest.html 26KB
HttpStatus.html 26KB
IoService.html 26KB
TextLineEncoder.html 26KB
Netty3TcpBenchmarkServer.html 26KB
BioUdpServer.html 25KB
NioUdpClientFilterEventTest.html 25KB
VarInt.html 25KB
Netty3UdpBenchmarkServer.html 25KB
HttpServerDecoder.html 25KB
DefaultHttpResponse.html 25KB
BioUdpServerFilterEventTest.html 25KB
AbstractUdpServer.html 24KB
AbstractIoHandler.html 24KB
allclasses-frame.html 24KB
RawInt32.html 24KB
NioTcpClient.html 24KB
NioTcpClientFilterEventTest.html 24KB
CoapServer.html 24KB
ProtocolCodecFilter.html 23KB
NioUdpServerFilterEventTest.html 23KB
CoapOptionType.html 23KB
HttpServerDecoder.html 23KB
AbstractTcpServer.html 23KB
RequestFilter.html 23KB
IndexedIdleChekerTest.html 23KB
ByteBufferEncoder.html 22KB
IoSessionConfig.html 22KB
AbstractIoFilter.html 22KB
NioUdpClient.html 22KB
IoBufferDecoder.html 22KB
SizePrefixedDecoder.html 22KB
DefaultAttributeContainer.html 22KB
共 1105 条
- 1
- 2
- 3
- 4
- 5
- 6
- 12
Mr_Leem
- 粉丝: 4
- 资源: 9
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功
评论0