diff --git a/.gitignore b/.gitignore index 18d2ca6cdc..3efe79aad7 100644 --- a/.gitignore +++ b/.gitignore @@ -2,3 +2,4 @@ target/ .classpath .project .settings/ +.idea/ diff --git a/examples/cls/v20210818/Demo.java b/examples/cls/v20210818/Demo.java new file mode 100644 index 0000000000..e8919777c0 --- /dev/null +++ b/examples/cls/v20210818/Demo.java @@ -0,0 +1,180 @@ +package com.tencentcloudapi; + +import cls.Cls; +import com.google.protobuf.InvalidProtocolBufferException; +import com.tencentcloudapi.common.CommonClient; +import com.tencentcloudapi.common.Credential; +import com.tencentcloudapi.common.exception.TencentCloudSDKException; +import com.tencentcloudapi.common.profile.ClientProfile; +import com.tencentcloudapi.common.profile.HttpProfile; +import com.tencentcloudapi.common.profile.Region; +import net.jpountz.lz4.LZ4Compressor; +import net.jpountz.lz4.LZ4Factory; +import net.jpountz.lz4.LZ4FastDecompressor; + +import java.util.HashMap; + +/** + * Hello world! + * + */ +public class Demo { + + //腾讯云账户密钥 secretId. TODO 修改为自己账户的secretId + public static final String SECRET_ID = ""; + //腾讯云账户密钥 secretKey. TODO 修改为自己账户的secretKey + public static final String SECRET_KEY = ""; + + public static final String ENDPOINT = "cls.tencentcloudapi.com"; + public static final String ROOT_DOMAIN = "tencentcloudapi.com"; + public static final String X_CLS_TOPIC_ID = "X-CLS-TopicId"; + public static final String X_CLS_HASH_KEY = "X-CLS-HashKey"; + public static final String X_CLS_COMPRESS_TYPE = "X-CLS-CompressType"; + public static final String LZ_4 = "lz4"; + //TODO 替换为自己业务的 topic + public static final String TOPIC = ""; + public static final String PRODUCT_NAME_CLS = "cls"; + public static final String UPLOAD_LOG_URL = "UploadLog"; + public static final String VERSION = "2020-10-16"; + + + /** + * java 调用 云api 上传日志 demo + * @param args + */ + public static void main( String[] args ) { + //TODO 入参需要传入腾讯云账户密钥 secretId,secretKey + Credential cred = new Credential(SECRET_ID, SECRET_KEY); + + //region 设置http选项中的参数 + HttpProfile httpProfile = new HttpProfile(); + // post请求 (默认为post请求) + httpProfile.setReqMethod(HttpProfile.REQ_POST); + // 指定接入地域域名(默认就近接入) + httpProfile.setEndpoint(ENDPOINT); + httpProfile.setRootDomain(ROOT_DOMAIN); + // 在外网互通的网络环境下支持http协议(默认是https协议),请选择(https:// or http://) + httpProfile.setProtocol(HttpProfile.REQ_HTTPS); + // 设置读取超时时间,单位为秒(默认0秒) + httpProfile.setReadTimeout(0); + // 设置写入超时时间,单位为秒(默认0秒) + httpProfile.setWriteTimeout(0); + // 请求连接超时时间,单位为秒(默认60秒) + httpProfile.setConnTimeout(HttpProfile.TM_MINUTE); + //endregion + + //region 设置client选项中的参数 + ClientProfile clientProfile = new ClientProfile(); + clientProfile.setHttpProfile(httpProfile); + // 指定签名算法默认("TC3-HMAC-SHA256"),它更安全但是会轻微降低性能。 + clientProfile.setSignMethod(ClientProfile.SIGN_TC3_256); + //打印日志,默认是false + clientProfile.setDebug(false); + //endregion + + //region headers 和 body 信息 + HashMap headers = new HashMap(); + headers.put(X_CLS_TOPIC_ID, TOPIC); + headers.put(X_CLS_HASH_KEY, ""); + // body lz4 压缩 + headers.put(X_CLS_COMPRESS_TYPE, LZ_4); + byte[] body = compressedByte(getBodyInfo()); + //endregion + + try { + CommonClient client = new CommonClient(PRODUCT_NAME_CLS, VERSION, cred, Region.GuangzhouOpen.getValue(), clientProfile); + String resp = client.callOctetStream(UPLOAD_LOG_URL, headers, body); + System.out.println(resp); + } catch (TencentCloudSDKException te) { + System.out.println(te.getMessage()); + } + } + + + /** + * pom依赖: + * + * net.jpountz.lz4 + * lz4 + * 1.3.0 + * + * + * 进行lz4压缩 + * @param srcByte + * @return + */ + public static byte[] compressedByte(byte[] srcByte) { + LZ4Factory factory = LZ4Factory.fastestInstance(); + LZ4Compressor compressor = factory.fastCompressor(); + return compressor.compress(srcByte); + } + + /** + * 自测 + * lz4 解压缩 + * @param srcByte 压缩后的数据 + * @param srcLength 压缩之前的数据长度 + * @return + */ + public static byte[] reCompressedByte(byte[] srcByte, int srcLength) { + LZ4Factory factory = LZ4Factory.fastestInstance(); + LZ4FastDecompressor lz4FastDecompressor = factory.fastDecompressor(); + return lz4FastDecompressor.decompress(srcByte, srcLength); + } + + /** + * pom依赖: + * + * com.google.protobuf + * protobuf-java + * 3.15.3 + * required int64 time = 1; + * + *
+     * 时间戳,UNIX时间格式
+     * 
+ */ + boolean hasTime(); + /** + * required int64 time = 1; + * + *
+     * 时间戳,UNIX时间格式
+     * 
+ */ + long getTime(); + + /** + * repeated .cls.Log.Content contents = 2; + * + *
+     * 一条日志里的多个kv组合
+     * 
+ */ + java.util.List + getContentsList(); + /** + * repeated .cls.Log.Content contents = 2; + * + *
+     * 一条日志里的多个kv组合
+     * 
+ */ + Log.Content getContents(int index); + /** + * repeated .cls.Log.Content contents = 2; + * + *
+     * 一条日志里的多个kv组合
+     * 
+ */ + int getContentsCount(); + /** + * repeated .cls.Log.Content contents = 2; + * + *
+     * 一条日志里的多个kv组合
+     * 
+ */ + java.util.List + getContentsOrBuilderList(); + /** + * repeated .cls.Log.Content contents = 2; + * + *
+     * 一条日志里的多个kv组合
+     * 
+ */ + Log.ContentOrBuilder getContentsOrBuilder( + int index); + } + /** + * Protobuf type {@code cls.Log} + */ + public static final class Log extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:cls.Log) + LogOrBuilder { + // Use Log.newBuilder() to construct. + private Log(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + this.unknownFields = builder.getUnknownFields(); + } + private Log(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + + private static final Log defaultInstance; + public static Log getDefaultInstance() { + return defaultInstance; + } + + public Log getDefaultInstanceForType() { + return defaultInstance; + } + + private final com.google.protobuf.UnknownFieldSet unknownFields; + @Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Log( + 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 8: { + bitField0_ |= 0x00000001; + time_ = input.readInt64(); + break; + } + case 18: { + if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) { + contents_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000002; + } + contents_.add(input.readMessage(Content.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_ & 0x00000002) == 0x00000002)) { + contents_ = java.util.Collections.unmodifiableList(contents_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return Cls.internal_static_cls_Log_descriptor; + } + + protected FieldAccessorTable + internalGetFieldAccessorTable() { + return Cls.internal_static_cls_Log_fieldAccessorTable + .ensureFieldAccessorsInitialized( + Log.class, Builder.class); + } + + public static com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public Log parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Log(input, extensionRegistry); + } + }; + + @Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public interface ContentOrBuilder extends + // @@protoc_insertion_point(interface_extends:cls.Log.Content) + com.google.protobuf.MessageOrBuilder { + + /** + * required string key = 1; + * + *
+       * 每组字段的 key
+       * 
+ */ + boolean hasKey(); + /** + * required string key = 1; + * + *
+       * 每组字段的 key
+       * 
+ */ + String getKey(); + /** + * required string key = 1; + * + *
+       * 每组字段的 key
+       * 
+ */ + com.google.protobuf.ByteString + getKeyBytes(); + + /** + * required string value = 2; + * + *
+       * 每组字段的 value
+       * 
+ */ + boolean hasValue(); + /** + * required string value = 2; + * + *
+       * 每组字段的 value
+       * 
+ */ + String getValue(); + /** + * required string value = 2; + * + *
+       * 每组字段的 value
+       * 
+ */ + com.google.protobuf.ByteString + getValueBytes(); + } + /** + * Protobuf type {@code cls.Log.Content} + */ + public static final class Content extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:cls.Log.Content) + ContentOrBuilder { + // Use Content.newBuilder() to construct. + private Content(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + this.unknownFields = builder.getUnknownFields(); + } + private Content(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + + private static final Content defaultInstance; + public static Content getDefaultInstance() { + return defaultInstance; + } + + public Content getDefaultInstanceForType() { + return defaultInstance; + } + + private final com.google.protobuf.UnknownFieldSet unknownFields; + @Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private Content( + 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: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000001; + key_ = bs; + break; + } + case 18: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000002; + value_ = bs; + 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 { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return Cls.internal_static_cls_Log_Content_descriptor; + } + + protected FieldAccessorTable + internalGetFieldAccessorTable() { + return Cls.internal_static_cls_Log_Content_fieldAccessorTable + .ensureFieldAccessorsInitialized( + Content.class, Builder.class); + } + + public static com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public Content parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new Content(input, extensionRegistry); + } + }; + + @Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + private int bitField0_; + public static final int KEY_FIELD_NUMBER = 1; + private Object key_; + /** + * required string key = 1; + * + *
+       * 每组字段的 key
+       * 
+ */ + public boolean hasKey() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * required string key = 1; + * + *
+       * 每组字段的 key
+       * 
+ */ + public String getKey() { + Object ref = key_; + if (ref instanceof String) { + return (String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + key_ = s; + } + return s; + } + } + /** + * required string key = 1; + * + *
+       * 每组字段的 key
+       * 
+ */ + public com.google.protobuf.ByteString + getKeyBytes() { + Object ref = key_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + key_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VALUE_FIELD_NUMBER = 2; + private Object value_; + /** + * required string value = 2; + * + *
+       * 每组字段的 value
+       * 
+ */ + public boolean hasValue() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * required string value = 2; + * + *
+       * 每组字段的 value
+       * 
+ */ + public String getValue() { + Object ref = value_; + if (ref instanceof String) { + return (String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + value_ = s; + } + return s; + } + } + /** + * required string value = 2; + * + *
+       * 每组字段的 value
+       * 
+ */ + public com.google.protobuf.ByteString + getValueBytes() { + Object ref = value_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private void initFields() { + key_ = ""; + value_ = ""; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + if (!hasKey()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasValue()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeBytes(1, getKeyBytes()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeBytes(2, getValueBytes()); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, getKeyBytes()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(2, getValueBytes()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @Override + protected Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static Content parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Content parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static Content parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Content parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static Content parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static Content parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static Content parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static Content parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static Content parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static Content parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(Content prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @Override + protected Builder newBuilderForType( + BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code cls.Log.Content} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:cls.Log.Content) + ContentOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return Cls.internal_static_cls_Log_Content_descriptor; + } + + protected FieldAccessorTable + internalGetFieldAccessorTable() { + return Cls.internal_static_cls_Log_Content_fieldAccessorTable + .ensureFieldAccessorsInitialized( + Content.class, Builder.class); + } + + // Construct using cls.Cls.Log.Content.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + key_ = ""; + bitField0_ = (bitField0_ & ~0x00000001); + value_ = ""; + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return Cls.internal_static_cls_Log_Content_descriptor; + } + + public Content getDefaultInstanceForType() { + return Content.getDefaultInstance(); + } + + public Content build() { + Content result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public Content buildPartial() { + Content result = new Content(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.key_ = key_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.value_ = value_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof Content) { + return mergeFrom((Content)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(Content other) { + if (other == Content.getDefaultInstance()) return this; + if (other.hasKey()) { + bitField0_ |= 0x00000001; + key_ = other.key_; + onChanged(); + } + if (other.hasValue()) { + bitField0_ |= 0x00000002; + value_ = other.value_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + if (!hasKey()) { + + return false; + } + if (!hasValue()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + Content parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (Content) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private Object key_ = ""; + /** + * required string key = 1; + * + *
+         * 每组字段的 key
+         * 
+ */ + public boolean hasKey() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * required string key = 1; + * + *
+         * 每组字段的 key
+         * 
+ */ + public String getKey() { + Object ref = key_; + if (!(ref instanceof String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + key_ = s; + } + return s; + } else { + return (String) ref; + } + } + /** + * required string key = 1; + * + *
+         * 每组字段的 key
+         * 
+ */ + public com.google.protobuf.ByteString + getKeyBytes() { + Object ref = key_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + key_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * required string key = 1; + * + *
+         * 每组字段的 key
+         * 
+ */ + public Builder setKey( + String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + key_ = value; + onChanged(); + return this; + } + /** + * required string key = 1; + * + *
+         * 每组字段的 key
+         * 
+ */ + public Builder clearKey() { + bitField0_ = (bitField0_ & ~0x00000001); + key_ = getDefaultInstance().getKey(); + onChanged(); + return this; + } + /** + * required string key = 1; + * + *
+         * 每组字段的 key
+         * 
+ */ + public Builder setKeyBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + key_ = value; + onChanged(); + return this; + } + + private Object value_ = ""; + /** + * required string value = 2; + * + *
+         * 每组字段的 value
+         * 
+ */ + public boolean hasValue() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * required string value = 2; + * + *
+         * 每组字段的 value
+         * 
+ */ + public String getValue() { + Object ref = value_; + if (!(ref instanceof String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + value_ = s; + } + return s; + } else { + return (String) ref; + } + } + /** + * required string value = 2; + * + *
+         * 每组字段的 value
+         * 
+ */ + public com.google.protobuf.ByteString + getValueBytes() { + Object ref = value_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * required string value = 2; + * + *
+         * 每组字段的 value
+         * 
+ */ + public Builder setValue( + String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + value_ = value; + onChanged(); + return this; + } + /** + * required string value = 2; + * + *
+         * 每组字段的 value
+         * 
+ */ + public Builder clearValue() { + bitField0_ = (bitField0_ & ~0x00000002); + value_ = getDefaultInstance().getValue(); + onChanged(); + return this; + } + /** + * required string value = 2; + * + *
+         * 每组字段的 value
+         * 
+ */ + public Builder setValueBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + value_ = value; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:cls.Log.Content) + } + + static { + defaultInstance = new Content(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:cls.Log.Content) + } + + private int bitField0_; + public static final int TIME_FIELD_NUMBER = 1; + private long time_; + /** + * required int64 time = 1; + * + *
+     * 时间戳,UNIX时间格式
+     * 
+ */ + public boolean hasTime() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * required int64 time = 1; + * + *
+     * 时间戳,UNIX时间格式
+     * 
+ */ + public long getTime() { + return time_; + } + + public static final int CONTENTS_FIELD_NUMBER = 2; + private java.util.List contents_; + /** + * repeated .cls.Log.Content contents = 2; + * + *
+     * 一条日志里的多个kv组合
+     * 
+ */ + public java.util.List getContentsList() { + return contents_; + } + /** + * repeated .cls.Log.Content contents = 2; + * + *
+     * 一条日志里的多个kv组合
+     * 
+ */ + public java.util.List + getContentsOrBuilderList() { + return contents_; + } + /** + * repeated .cls.Log.Content contents = 2; + * + *
+     * 一条日志里的多个kv组合
+     * 
+ */ + public int getContentsCount() { + return contents_.size(); + } + /** + * repeated .cls.Log.Content contents = 2; + * + *
+     * 一条日志里的多个kv组合
+     * 
+ */ + public Content getContents(int index) { + return contents_.get(index); + } + /** + * repeated .cls.Log.Content contents = 2; + * + *
+     * 一条日志里的多个kv组合
+     * 
+ */ + public ContentOrBuilder getContentsOrBuilder( + int index) { + return contents_.get(index); + } + + private void initFields() { + time_ = 0L; + contents_ = java.util.Collections.emptyList(); + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + if (!hasTime()) { + memoizedIsInitialized = 0; + return false; + } + for (int i = 0; i < getContentsCount(); i++) { + if (!getContents(i).isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeInt64(1, time_); + } + for (int i = 0; i < contents_.size(); i++) { + output.writeMessage(2, contents_.get(i)); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeInt64Size(1, time_); + } + for (int i = 0; i < contents_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(2, contents_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @Override + protected Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static Log parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Log parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static Log parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static Log parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static Log parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static Log parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static Log parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static Log parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static Log parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static Log parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(Log prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @Override + protected Builder newBuilderForType( + BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code cls.Log} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:cls.Log) + LogOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return Cls.internal_static_cls_Log_descriptor; + } + + protected FieldAccessorTable + internalGetFieldAccessorTable() { + return Cls.internal_static_cls_Log_fieldAccessorTable + .ensureFieldAccessorsInitialized( + Log.class, Builder.class); + } + + // Construct using cls.Cls.Log.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + getContentsFieldBuilder(); + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + time_ = 0L; + bitField0_ = (bitField0_ & ~0x00000001); + if (contentsBuilder_ == null) { + contents_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + } else { + contentsBuilder_.clear(); + } + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return Cls.internal_static_cls_Log_descriptor; + } + + public Log getDefaultInstanceForType() { + return Log.getDefaultInstance(); + } + + public Log build() { + Log result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public Log buildPartial() { + Log result = new Log(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.time_ = time_; + if (contentsBuilder_ == null) { + if (((bitField0_ & 0x00000002) == 0x00000002)) { + contents_ = java.util.Collections.unmodifiableList(contents_); + bitField0_ = (bitField0_ & ~0x00000002); + } + result.contents_ = contents_; + } else { + result.contents_ = contentsBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof Log) { + return mergeFrom((Log)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(Log other) { + if (other == Log.getDefaultInstance()) return this; + if (other.hasTime()) { + setTime(other.getTime()); + } + if (contentsBuilder_ == null) { + if (!other.contents_.isEmpty()) { + if (contents_.isEmpty()) { + contents_ = other.contents_; + bitField0_ = (bitField0_ & ~0x00000002); + } else { + ensureContentsIsMutable(); + contents_.addAll(other.contents_); + } + onChanged(); + } + } else { + if (!other.contents_.isEmpty()) { + if (contentsBuilder_.isEmpty()) { + contentsBuilder_.dispose(); + contentsBuilder_ = null; + contents_ = other.contents_; + bitField0_ = (bitField0_ & ~0x00000002); + contentsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getContentsFieldBuilder() : null; + } else { + contentsBuilder_.addAllMessages(other.contents_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + if (!hasTime()) { + + return false; + } + for (int i = 0; i < getContentsCount(); i++) { + if (!getContents(i).isInitialized()) { + + return false; + } + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + Log parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (Log) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private long time_ ; + /** + * required int64 time = 1; + * + *
+       * 时间戳,UNIX时间格式
+       * 
+ */ + public boolean hasTime() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * required int64 time = 1; + * + *
+       * 时间戳,UNIX时间格式
+       * 
+ */ + public long getTime() { + return time_; + } + /** + * required int64 time = 1; + * + *
+       * 时间戳,UNIX时间格式
+       * 
+ */ + public Builder setTime(long value) { + bitField0_ |= 0x00000001; + time_ = value; + onChanged(); + return this; + } + /** + * required int64 time = 1; + * + *
+       * 时间戳,UNIX时间格式
+       * 
+ */ + public Builder clearTime() { + bitField0_ = (bitField0_ & ~0x00000001); + time_ = 0L; + onChanged(); + return this; + } + + private java.util.List contents_ = + java.util.Collections.emptyList(); + private void ensureContentsIsMutable() { + if (!((bitField0_ & 0x00000002) == 0x00000002)) { + contents_ = new java.util.ArrayList(contents_); + bitField0_ |= 0x00000002; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + Content, Content.Builder, ContentOrBuilder> contentsBuilder_; + + /** + * repeated .cls.Log.Content contents = 2; + * + *
+       * 一条日志里的多个kv组合
+       * 
+ */ + public java.util.List getContentsList() { + if (contentsBuilder_ == null) { + return java.util.Collections.unmodifiableList(contents_); + } else { + return contentsBuilder_.getMessageList(); + } + } + /** + * repeated .cls.Log.Content contents = 2; + * + *
+       * 一条日志里的多个kv组合
+       * 
+ */ + public int getContentsCount() { + if (contentsBuilder_ == null) { + return contents_.size(); + } else { + return contentsBuilder_.getCount(); + } + } + /** + * repeated .cls.Log.Content contents = 2; + * + *
+       * 一条日志里的多个kv组合
+       * 
+ */ + public Content getContents(int index) { + if (contentsBuilder_ == null) { + return contents_.get(index); + } else { + return contentsBuilder_.getMessage(index); + } + } + /** + * repeated .cls.Log.Content contents = 2; + * + *
+       * 一条日志里的多个kv组合
+       * 
+ */ + public Builder setContents( + int index, Content value) { + if (contentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureContentsIsMutable(); + contents_.set(index, value); + onChanged(); + } else { + contentsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .cls.Log.Content contents = 2; + * + *
+       * 一条日志里的多个kv组合
+       * 
+ */ + public Builder setContents( + int index, Content.Builder builderForValue) { + if (contentsBuilder_ == null) { + ensureContentsIsMutable(); + contents_.set(index, builderForValue.build()); + onChanged(); + } else { + contentsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .cls.Log.Content contents = 2; + * + *
+       * 一条日志里的多个kv组合
+       * 
+ */ + public Builder addContents(Content value) { + if (contentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureContentsIsMutable(); + contents_.add(value); + onChanged(); + } else { + contentsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .cls.Log.Content contents = 2; + * + *
+       * 一条日志里的多个kv组合
+       * 
+ */ + public Builder addContents( + int index, Content value) { + if (contentsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureContentsIsMutable(); + contents_.add(index, value); + onChanged(); + } else { + contentsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .cls.Log.Content contents = 2; + * + *
+       * 一条日志里的多个kv组合
+       * 
+ */ + public Builder addContents( + Content.Builder builderForValue) { + if (contentsBuilder_ == null) { + ensureContentsIsMutable(); + contents_.add(builderForValue.build()); + onChanged(); + } else { + contentsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .cls.Log.Content contents = 2; + * + *
+       * 一条日志里的多个kv组合
+       * 
+ */ + public Builder addContents( + int index, Content.Builder builderForValue) { + if (contentsBuilder_ == null) { + ensureContentsIsMutable(); + contents_.add(index, builderForValue.build()); + onChanged(); + } else { + contentsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .cls.Log.Content contents = 2; + * + *
+       * 一条日志里的多个kv组合
+       * 
+ */ + public Builder addAllContents( + Iterable values) { + if (contentsBuilder_ == null) { + ensureContentsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, contents_); + onChanged(); + } else { + contentsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .cls.Log.Content contents = 2; + * + *
+       * 一条日志里的多个kv组合
+       * 
+ */ + public Builder clearContents() { + if (contentsBuilder_ == null) { + contents_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + } else { + contentsBuilder_.clear(); + } + return this; + } + /** + * repeated .cls.Log.Content contents = 2; + * + *
+       * 一条日志里的多个kv组合
+       * 
+ */ + public Builder removeContents(int index) { + if (contentsBuilder_ == null) { + ensureContentsIsMutable(); + contents_.remove(index); + onChanged(); + } else { + contentsBuilder_.remove(index); + } + return this; + } + /** + * repeated .cls.Log.Content contents = 2; + * + *
+       * 一条日志里的多个kv组合
+       * 
+ */ + public Content.Builder getContentsBuilder( + int index) { + return getContentsFieldBuilder().getBuilder(index); + } + /** + * repeated .cls.Log.Content contents = 2; + * + *
+       * 一条日志里的多个kv组合
+       * 
+ */ + public ContentOrBuilder getContentsOrBuilder( + int index) { + if (contentsBuilder_ == null) { + return contents_.get(index); } else { + return contentsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .cls.Log.Content contents = 2; + * + *
+       * 一条日志里的多个kv组合
+       * 
+ */ + public java.util.List + getContentsOrBuilderList() { + if (contentsBuilder_ != null) { + return contentsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(contents_); + } + } + /** + * repeated .cls.Log.Content contents = 2; + * + *
+       * 一条日志里的多个kv组合
+       * 
+ */ + public Content.Builder addContentsBuilder() { + return getContentsFieldBuilder().addBuilder( + Content.getDefaultInstance()); + } + /** + * repeated .cls.Log.Content contents = 2; + * + *
+       * 一条日志里的多个kv组合
+       * 
+ */ + public Content.Builder addContentsBuilder( + int index) { + return getContentsFieldBuilder().addBuilder( + index, Content.getDefaultInstance()); + } + /** + * repeated .cls.Log.Content contents = 2; + * + *
+       * 一条日志里的多个kv组合
+       * 
+ */ + public java.util.List + getContentsBuilderList() { + return getContentsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + Content, Content.Builder, ContentOrBuilder> + getContentsFieldBuilder() { + if (contentsBuilder_ == null) { + contentsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + Content, Content.Builder, ContentOrBuilder>( + contents_, + ((bitField0_ & 0x00000002) == 0x00000002), + getParentForChildren(), + isClean()); + contents_ = null; + } + return contentsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:cls.Log) + } + + static { + defaultInstance = new Log(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:cls.Log) + } + + public interface LogTagOrBuilder extends + // @@protoc_insertion_point(interface_extends:cls.LogTag) + com.google.protobuf.MessageOrBuilder { + + /** + * required string key = 1; + */ + boolean hasKey(); + /** + * required string key = 1; + */ + String getKey(); + /** + * required string key = 1; + */ + com.google.protobuf.ByteString + getKeyBytes(); + + /** + * required string value = 2; + */ + boolean hasValue(); + /** + * required string value = 2; + */ + String getValue(); + /** + * required string value = 2; + */ + com.google.protobuf.ByteString + getValueBytes(); + } + /** + * Protobuf type {@code cls.LogTag} + */ + public static final class LogTag extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:cls.LogTag) + LogTagOrBuilder { + // Use LogTag.newBuilder() to construct. + private LogTag(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + this.unknownFields = builder.getUnknownFields(); + } + private LogTag(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + + private static final LogTag defaultInstance; + public static LogTag getDefaultInstance() { + return defaultInstance; + } + + public LogTag getDefaultInstanceForType() { + return defaultInstance; + } + + private final com.google.protobuf.UnknownFieldSet unknownFields; + @Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private LogTag( + 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: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000001; + key_ = bs; + break; + } + case 18: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000002; + value_ = bs; + 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 { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return Cls.internal_static_cls_LogTag_descriptor; + } + + protected FieldAccessorTable + internalGetFieldAccessorTable() { + return Cls.internal_static_cls_LogTag_fieldAccessorTable + .ensureFieldAccessorsInitialized( + LogTag.class, Builder.class); + } + + public static com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public LogTag parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LogTag(input, extensionRegistry); + } + }; + + @Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + private int bitField0_; + public static final int KEY_FIELD_NUMBER = 1; + private Object key_; + /** + * required string key = 1; + */ + public boolean hasKey() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * required string key = 1; + */ + public String getKey() { + Object ref = key_; + if (ref instanceof String) { + return (String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + key_ = s; + } + return s; + } + } + /** + * required string key = 1; + */ + public com.google.protobuf.ByteString + getKeyBytes() { + Object ref = key_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + key_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int VALUE_FIELD_NUMBER = 2; + private Object value_; + /** + * required string value = 2; + */ + public boolean hasValue() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * required string value = 2; + */ + public String getValue() { + Object ref = value_; + if (ref instanceof String) { + return (String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + value_ = s; + } + return s; + } + } + /** + * required string value = 2; + */ + public com.google.protobuf.ByteString + getValueBytes() { + Object ref = value_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private void initFields() { + key_ = ""; + value_ = ""; + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + if (!hasKey()) { + memoizedIsInitialized = 0; + return false; + } + if (!hasValue()) { + memoizedIsInitialized = 0; + return false; + } + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeBytes(1, getKeyBytes()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeBytes(2, getValueBytes()); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(1, getKeyBytes()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(2, getValueBytes()); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @Override + protected Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static LogTag parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static LogTag parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static LogTag parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static LogTag parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static LogTag parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static LogTag parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static LogTag parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static LogTag parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static LogTag parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static LogTag parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(LogTag prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @Override + protected Builder newBuilderForType( + BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code cls.LogTag} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:cls.LogTag) + LogTagOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return Cls.internal_static_cls_LogTag_descriptor; + } + + protected FieldAccessorTable + internalGetFieldAccessorTable() { + return Cls.internal_static_cls_LogTag_fieldAccessorTable + .ensureFieldAccessorsInitialized( + LogTag.class, Builder.class); + } + + // Construct using cls.Cls.LogTag.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + key_ = ""; + bitField0_ = (bitField0_ & ~0x00000001); + value_ = ""; + bitField0_ = (bitField0_ & ~0x00000002); + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return Cls.internal_static_cls_LogTag_descriptor; + } + + public LogTag getDefaultInstanceForType() { + return LogTag.getDefaultInstance(); + } + + public LogTag build() { + LogTag result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public LogTag buildPartial() { + LogTag result = new LogTag(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (((from_bitField0_ & 0x00000001) == 0x00000001)) { + to_bitField0_ |= 0x00000001; + } + result.key_ = key_; + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000002; + } + result.value_ = value_; + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof LogTag) { + return mergeFrom((LogTag)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(LogTag other) { + if (other == LogTag.getDefaultInstance()) return this; + if (other.hasKey()) { + bitField0_ |= 0x00000001; + key_ = other.key_; + onChanged(); + } + if (other.hasValue()) { + bitField0_ |= 0x00000002; + value_ = other.value_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + if (!hasKey()) { + + return false; + } + if (!hasValue()) { + + return false; + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + LogTag parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (LogTag) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private Object key_ = ""; + /** + * required string key = 1; + */ + public boolean hasKey() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * required string key = 1; + */ + public String getKey() { + Object ref = key_; + if (!(ref instanceof String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + key_ = s; + } + return s; + } else { + return (String) ref; + } + } + /** + * required string key = 1; + */ + public com.google.protobuf.ByteString + getKeyBytes() { + Object ref = key_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + key_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * required string key = 1; + */ + public Builder setKey( + String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + key_ = value; + onChanged(); + return this; + } + /** + * required string key = 1; + */ + public Builder clearKey() { + bitField0_ = (bitField0_ & ~0x00000001); + key_ = getDefaultInstance().getKey(); + onChanged(); + return this; + } + /** + * required string key = 1; + */ + public Builder setKeyBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000001; + key_ = value; + onChanged(); + return this; + } + + private Object value_ = ""; + /** + * required string value = 2; + */ + public boolean hasValue() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * required string value = 2; + */ + public String getValue() { + Object ref = value_; + if (!(ref instanceof String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + value_ = s; + } + return s; + } else { + return (String) ref; + } + } + /** + * required string value = 2; + */ + public com.google.protobuf.ByteString + getValueBytes() { + Object ref = value_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + value_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * required string value = 2; + */ + public Builder setValue( + String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + value_ = value; + onChanged(); + return this; + } + /** + * required string value = 2; + */ + public Builder clearValue() { + bitField0_ = (bitField0_ & ~0x00000002); + value_ = getDefaultInstance().getValue(); + onChanged(); + return this; + } + /** + * required string value = 2; + */ + public Builder setValueBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + value_ = value; + onChanged(); + return this; + } + + // @@protoc_insertion_point(builder_scope:cls.LogTag) + } + + static { + defaultInstance = new LogTag(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:cls.LogTag) + } + + public interface LogGroupOrBuilder extends + // @@protoc_insertion_point(interface_extends:cls.LogGroup) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .cls.Log logs = 1; + * + *
+     * 多条日志合成的日志数组
+     * 
+ */ + java.util.List + getLogsList(); + /** + * repeated .cls.Log logs = 1; + * + *
+     * 多条日志合成的日志数组
+     * 
+ */ + Log getLogs(int index); + /** + * repeated .cls.Log logs = 1; + * + *
+     * 多条日志合成的日志数组
+     * 
+ */ + int getLogsCount(); + /** + * repeated .cls.Log logs = 1; + * + *
+     * 多条日志合成的日志数组
+     * 
+ */ + java.util.List + getLogsOrBuilderList(); + /** + * repeated .cls.Log logs = 1; + * + *
+     * 多条日志合成的日志数组
+     * 
+ */ + LogOrBuilder getLogsOrBuilder( + int index); + + /** + * optional string contextFlow = 2; + * + *
+     * 目前暂无效用
+     * 
+ */ + boolean hasContextFlow(); + /** + * optional string contextFlow = 2; + * + *
+     * 目前暂无效用
+     * 
+ */ + String getContextFlow(); + /** + * optional string contextFlow = 2; + * + *
+     * 目前暂无效用
+     * 
+ */ + com.google.protobuf.ByteString + getContextFlowBytes(); + + /** + * optional string filename = 3; + * + *
+     * 日志文件名
+     * 
+ */ + boolean hasFilename(); + /** + * optional string filename = 3; + * + *
+     * 日志文件名
+     * 
+ */ + String getFilename(); + /** + * optional string filename = 3; + * + *
+     * 日志文件名
+     * 
+ */ + com.google.protobuf.ByteString + getFilenameBytes(); + + /** + * optional string source = 4; + * + *
+     * 日志来源,一般使用机器IP
+     * 
+ */ + boolean hasSource(); + /** + * optional string source = 4; + * + *
+     * 日志来源,一般使用机器IP
+     * 
+ */ + String getSource(); + /** + * optional string source = 4; + * + *
+     * 日志来源,一般使用机器IP
+     * 
+ */ + com.google.protobuf.ByteString + getSourceBytes(); + + /** + * repeated .cls.LogTag logTags = 5; + */ + java.util.List + getLogTagsList(); + /** + * repeated .cls.LogTag logTags = 5; + */ + LogTag getLogTags(int index); + /** + * repeated .cls.LogTag logTags = 5; + */ + int getLogTagsCount(); + /** + * repeated .cls.LogTag logTags = 5; + */ + java.util.List + getLogTagsOrBuilderList(); + /** + * repeated .cls.LogTag logTags = 5; + */ + LogTagOrBuilder getLogTagsOrBuilder( + int index); + } + /** + * Protobuf type {@code cls.LogGroup} + */ + public static final class LogGroup extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:cls.LogGroup) + LogGroupOrBuilder { + // Use LogGroup.newBuilder() to construct. + private LogGroup(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + this.unknownFields = builder.getUnknownFields(); + } + private LogGroup(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + + private static final LogGroup defaultInstance; + public static LogGroup getDefaultInstance() { + return defaultInstance; + } + + public LogGroup getDefaultInstanceForType() { + return defaultInstance; + } + + private final com.google.protobuf.UnknownFieldSet unknownFields; + @Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private LogGroup( + 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: { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + logs_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + logs_.add(input.readMessage(Log.PARSER, extensionRegistry)); + break; + } + case 18: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000001; + contextFlow_ = bs; + break; + } + case 26: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000002; + filename_ = bs; + break; + } + case 34: { + com.google.protobuf.ByteString bs = input.readBytes(); + bitField0_ |= 0x00000004; + source_ = bs; + break; + } + case 42: { + if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) { + logTags_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000010; + } + logTags_.add(input.readMessage(LogTag.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_ & 0x00000001) == 0x00000001)) { + logs_ = java.util.Collections.unmodifiableList(logs_); + } + if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) { + logTags_ = java.util.Collections.unmodifiableList(logTags_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return Cls.internal_static_cls_LogGroup_descriptor; + } + + protected FieldAccessorTable + internalGetFieldAccessorTable() { + return Cls.internal_static_cls_LogGroup_fieldAccessorTable + .ensureFieldAccessorsInitialized( + LogGroup.class, Builder.class); + } + + public static com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public LogGroup parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LogGroup(input, extensionRegistry); + } + }; + + @Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + private int bitField0_; + public static final int LOGS_FIELD_NUMBER = 1; + private java.util.List logs_; + /** + * repeated .cls.Log logs = 1; + * + *
+     * 多条日志合成的日志数组
+     * 
+ */ + public java.util.List getLogsList() { + return logs_; + } + /** + * repeated .cls.Log logs = 1; + * + *
+     * 多条日志合成的日志数组
+     * 
+ */ + public java.util.List + getLogsOrBuilderList() { + return logs_; + } + /** + * repeated .cls.Log logs = 1; + * + *
+     * 多条日志合成的日志数组
+     * 
+ */ + public int getLogsCount() { + return logs_.size(); + } + /** + * repeated .cls.Log logs = 1; + * + *
+     * 多条日志合成的日志数组
+     * 
+ */ + public Log getLogs(int index) { + return logs_.get(index); + } + /** + * repeated .cls.Log logs = 1; + * + *
+     * 多条日志合成的日志数组
+     * 
+ */ + public LogOrBuilder getLogsOrBuilder( + int index) { + return logs_.get(index); + } + + public static final int CONTEXTFLOW_FIELD_NUMBER = 2; + private Object contextFlow_; + /** + * optional string contextFlow = 2; + * + *
+     * 目前暂无效用
+     * 
+ */ + public boolean hasContextFlow() { + return ((bitField0_ & 0x00000001) == 0x00000001); + } + /** + * optional string contextFlow = 2; + * + *
+     * 目前暂无效用
+     * 
+ */ + public String getContextFlow() { + Object ref = contextFlow_; + if (ref instanceof String) { + return (String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + contextFlow_ = s; + } + return s; + } + } + /** + * optional string contextFlow = 2; + * + *
+     * 目前暂无效用
+     * 
+ */ + public com.google.protobuf.ByteString + getContextFlowBytes() { + Object ref = contextFlow_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + contextFlow_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int FILENAME_FIELD_NUMBER = 3; + private Object filename_; + /** + * optional string filename = 3; + * + *
+     * 日志文件名
+     * 
+ */ + public boolean hasFilename() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional string filename = 3; + * + *
+     * 日志文件名
+     * 
+ */ + public String getFilename() { + Object ref = filename_; + if (ref instanceof String) { + return (String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + filename_ = s; + } + return s; + } + } + /** + * optional string filename = 3; + * + *
+     * 日志文件名
+     * 
+ */ + public com.google.protobuf.ByteString + getFilenameBytes() { + Object ref = filename_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + filename_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SOURCE_FIELD_NUMBER = 4; + private Object source_; + /** + * optional string source = 4; + * + *
+     * 日志来源,一般使用机器IP
+     * 
+ */ + public boolean hasSource() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * optional string source = 4; + * + *
+     * 日志来源,一般使用机器IP
+     * 
+ */ + public String getSource() { + Object ref = source_; + if (ref instanceof String) { + return (String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + source_ = s; + } + return s; + } + } + /** + * optional string source = 4; + * + *
+     * 日志来源,一般使用机器IP
+     * 
+ */ + public com.google.protobuf.ByteString + getSourceBytes() { + Object ref = source_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + source_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int LOGTAGS_FIELD_NUMBER = 5; + private java.util.List logTags_; + /** + * repeated .cls.LogTag logTags = 5; + */ + public java.util.List getLogTagsList() { + return logTags_; + } + /** + * repeated .cls.LogTag logTags = 5; + */ + public java.util.List + getLogTagsOrBuilderList() { + return logTags_; + } + /** + * repeated .cls.LogTag logTags = 5; + */ + public int getLogTagsCount() { + return logTags_.size(); + } + /** + * repeated .cls.LogTag logTags = 5; + */ + public LogTag getLogTags(int index) { + return logTags_.get(index); + } + /** + * repeated .cls.LogTag logTags = 5; + */ + public LogTagOrBuilder getLogTagsOrBuilder( + int index) { + return logTags_.get(index); + } + + private void initFields() { + logs_ = java.util.Collections.emptyList(); + contextFlow_ = ""; + filename_ = ""; + source_ = ""; + logTags_ = java.util.Collections.emptyList(); + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + for (int i = 0; i < getLogsCount(); i++) { + if (!getLogs(i).isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + for (int i = 0; i < getLogTagsCount(); i++) { + if (!getLogTags(i).isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + for (int i = 0; i < logs_.size(); i++) { + output.writeMessage(1, logs_.get(i)); + } + if (((bitField0_ & 0x00000001) == 0x00000001)) { + output.writeBytes(2, getContextFlowBytes()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + output.writeBytes(3, getFilenameBytes()); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + output.writeBytes(4, getSourceBytes()); + } + for (int i = 0; i < logTags_.size(); i++) { + output.writeMessage(5, logTags_.get(i)); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < logs_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, logs_.get(i)); + } + if (((bitField0_ & 0x00000001) == 0x00000001)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(2, getContextFlowBytes()); + } + if (((bitField0_ & 0x00000002) == 0x00000002)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(3, getFilenameBytes()); + } + if (((bitField0_ & 0x00000004) == 0x00000004)) { + size += com.google.protobuf.CodedOutputStream + .computeBytesSize(4, getSourceBytes()); + } + for (int i = 0; i < logTags_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(5, logTags_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @Override + protected Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static LogGroup parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static LogGroup parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static LogGroup parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static LogGroup parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static LogGroup parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static LogGroup parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static LogGroup parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static LogGroup parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static LogGroup parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static LogGroup parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(LogGroup prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @Override + protected Builder newBuilderForType( + BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code cls.LogGroup} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:cls.LogGroup) + LogGroupOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return Cls.internal_static_cls_LogGroup_descriptor; + } + + protected FieldAccessorTable + internalGetFieldAccessorTable() { + return Cls.internal_static_cls_LogGroup_fieldAccessorTable + .ensureFieldAccessorsInitialized( + LogGroup.class, Builder.class); + } + + // Construct using cls.Cls.LogGroup.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + getLogsFieldBuilder(); + getLogTagsFieldBuilder(); + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + if (logsBuilder_ == null) { + logs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + logsBuilder_.clear(); + } + contextFlow_ = ""; + bitField0_ = (bitField0_ & ~0x00000002); + filename_ = ""; + bitField0_ = (bitField0_ & ~0x00000004); + source_ = ""; + bitField0_ = (bitField0_ & ~0x00000008); + if (logTagsBuilder_ == null) { + logTags_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + } else { + logTagsBuilder_.clear(); + } + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return Cls.internal_static_cls_LogGroup_descriptor; + } + + public LogGroup getDefaultInstanceForType() { + return LogGroup.getDefaultInstance(); + } + + public LogGroup build() { + LogGroup result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public LogGroup buildPartial() { + LogGroup result = new LogGroup(this); + int from_bitField0_ = bitField0_; + int to_bitField0_ = 0; + if (logsBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + logs_ = java.util.Collections.unmodifiableList(logs_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.logs_ = logs_; + } else { + result.logs_ = logsBuilder_.build(); + } + if (((from_bitField0_ & 0x00000002) == 0x00000002)) { + to_bitField0_ |= 0x00000001; + } + result.contextFlow_ = contextFlow_; + if (((from_bitField0_ & 0x00000004) == 0x00000004)) { + to_bitField0_ |= 0x00000002; + } + result.filename_ = filename_; + if (((from_bitField0_ & 0x00000008) == 0x00000008)) { + to_bitField0_ |= 0x00000004; + } + result.source_ = source_; + if (logTagsBuilder_ == null) { + if (((bitField0_ & 0x00000010) == 0x00000010)) { + logTags_ = java.util.Collections.unmodifiableList(logTags_); + bitField0_ = (bitField0_ & ~0x00000010); + } + result.logTags_ = logTags_; + } else { + result.logTags_ = logTagsBuilder_.build(); + } + result.bitField0_ = to_bitField0_; + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof LogGroup) { + return mergeFrom((LogGroup)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(LogGroup other) { + if (other == LogGroup.getDefaultInstance()) return this; + if (logsBuilder_ == null) { + if (!other.logs_.isEmpty()) { + if (logs_.isEmpty()) { + logs_ = other.logs_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureLogsIsMutable(); + logs_.addAll(other.logs_); + } + onChanged(); + } + } else { + if (!other.logs_.isEmpty()) { + if (logsBuilder_.isEmpty()) { + logsBuilder_.dispose(); + logsBuilder_ = null; + logs_ = other.logs_; + bitField0_ = (bitField0_ & ~0x00000001); + logsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getLogsFieldBuilder() : null; + } else { + logsBuilder_.addAllMessages(other.logs_); + } + } + } + if (other.hasContextFlow()) { + bitField0_ |= 0x00000002; + contextFlow_ = other.contextFlow_; + onChanged(); + } + if (other.hasFilename()) { + bitField0_ |= 0x00000004; + filename_ = other.filename_; + onChanged(); + } + if (other.hasSource()) { + bitField0_ |= 0x00000008; + source_ = other.source_; + onChanged(); + } + if (logTagsBuilder_ == null) { + if (!other.logTags_.isEmpty()) { + if (logTags_.isEmpty()) { + logTags_ = other.logTags_; + bitField0_ = (bitField0_ & ~0x00000010); + } else { + ensureLogTagsIsMutable(); + logTags_.addAll(other.logTags_); + } + onChanged(); + } + } else { + if (!other.logTags_.isEmpty()) { + if (logTagsBuilder_.isEmpty()) { + logTagsBuilder_.dispose(); + logTagsBuilder_ = null; + logTags_ = other.logTags_; + bitField0_ = (bitField0_ & ~0x00000010); + logTagsBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getLogTagsFieldBuilder() : null; + } else { + logTagsBuilder_.addAllMessages(other.logTags_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + for (int i = 0; i < getLogsCount(); i++) { + if (!getLogs(i).isInitialized()) { + + return false; + } + } + for (int i = 0; i < getLogTagsCount(); i++) { + if (!getLogTags(i).isInitialized()) { + + return false; + } + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + LogGroup parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (LogGroup) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List logs_ = + java.util.Collections.emptyList(); + private void ensureLogsIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + logs_ = new java.util.ArrayList(logs_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + Log, Log.Builder, LogOrBuilder> logsBuilder_; + + /** + * repeated .cls.Log logs = 1; + * + *
+       * 多条日志合成的日志数组
+       * 
+ */ + public java.util.List getLogsList() { + if (logsBuilder_ == null) { + return java.util.Collections.unmodifiableList(logs_); + } else { + return logsBuilder_.getMessageList(); + } + } + /** + * repeated .cls.Log logs = 1; + * + *
+       * 多条日志合成的日志数组
+       * 
+ */ + public int getLogsCount() { + if (logsBuilder_ == null) { + return logs_.size(); + } else { + return logsBuilder_.getCount(); + } + } + /** + * repeated .cls.Log logs = 1; + * + *
+       * 多条日志合成的日志数组
+       * 
+ */ + public Log getLogs(int index) { + if (logsBuilder_ == null) { + return logs_.get(index); + } else { + return logsBuilder_.getMessage(index); + } + } + /** + * repeated .cls.Log logs = 1; + * + *
+       * 多条日志合成的日志数组
+       * 
+ */ + public Builder setLogs( + int index, Log value) { + if (logsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLogsIsMutable(); + logs_.set(index, value); + onChanged(); + } else { + logsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .cls.Log logs = 1; + * + *
+       * 多条日志合成的日志数组
+       * 
+ */ + public Builder setLogs( + int index, Log.Builder builderForValue) { + if (logsBuilder_ == null) { + ensureLogsIsMutable(); + logs_.set(index, builderForValue.build()); + onChanged(); + } else { + logsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .cls.Log logs = 1; + * + *
+       * 多条日志合成的日志数组
+       * 
+ */ + public Builder addLogs(Log value) { + if (logsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLogsIsMutable(); + logs_.add(value); + onChanged(); + } else { + logsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .cls.Log logs = 1; + * + *
+       * 多条日志合成的日志数组
+       * 
+ */ + public Builder addLogs( + int index, Log value) { + if (logsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLogsIsMutable(); + logs_.add(index, value); + onChanged(); + } else { + logsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .cls.Log logs = 1; + * + *
+       * 多条日志合成的日志数组
+       * 
+ */ + public Builder addLogs( + Log.Builder builderForValue) { + if (logsBuilder_ == null) { + ensureLogsIsMutable(); + logs_.add(builderForValue.build()); + onChanged(); + } else { + logsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .cls.Log logs = 1; + * + *
+       * 多条日志合成的日志数组
+       * 
+ */ + public Builder addLogs( + int index, Log.Builder builderForValue) { + if (logsBuilder_ == null) { + ensureLogsIsMutable(); + logs_.add(index, builderForValue.build()); + onChanged(); + } else { + logsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .cls.Log logs = 1; + * + *
+       * 多条日志合成的日志数组
+       * 
+ */ + public Builder addAllLogs( + Iterable values) { + if (logsBuilder_ == null) { + ensureLogsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, logs_); + onChanged(); + } else { + logsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .cls.Log logs = 1; + * + *
+       * 多条日志合成的日志数组
+       * 
+ */ + public Builder clearLogs() { + if (logsBuilder_ == null) { + logs_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + logsBuilder_.clear(); + } + return this; + } + /** + * repeated .cls.Log logs = 1; + * + *
+       * 多条日志合成的日志数组
+       * 
+ */ + public Builder removeLogs(int index) { + if (logsBuilder_ == null) { + ensureLogsIsMutable(); + logs_.remove(index); + onChanged(); + } else { + logsBuilder_.remove(index); + } + return this; + } + /** + * repeated .cls.Log logs = 1; + * + *
+       * 多条日志合成的日志数组
+       * 
+ */ + public Log.Builder getLogsBuilder( + int index) { + return getLogsFieldBuilder().getBuilder(index); + } + /** + * repeated .cls.Log logs = 1; + * + *
+       * 多条日志合成的日志数组
+       * 
+ */ + public LogOrBuilder getLogsOrBuilder( + int index) { + if (logsBuilder_ == null) { + return logs_.get(index); } else { + return logsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .cls.Log logs = 1; + * + *
+       * 多条日志合成的日志数组
+       * 
+ */ + public java.util.List + getLogsOrBuilderList() { + if (logsBuilder_ != null) { + return logsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(logs_); + } + } + /** + * repeated .cls.Log logs = 1; + * + *
+       * 多条日志合成的日志数组
+       * 
+ */ + public Log.Builder addLogsBuilder() { + return getLogsFieldBuilder().addBuilder( + Log.getDefaultInstance()); + } + /** + * repeated .cls.Log logs = 1; + * + *
+       * 多条日志合成的日志数组
+       * 
+ */ + public Log.Builder addLogsBuilder( + int index) { + return getLogsFieldBuilder().addBuilder( + index, Log.getDefaultInstance()); + } + /** + * repeated .cls.Log logs = 1; + * + *
+       * 多条日志合成的日志数组
+       * 
+ */ + public java.util.List + getLogsBuilderList() { + return getLogsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + Log, Log.Builder, LogOrBuilder> + getLogsFieldBuilder() { + if (logsBuilder_ == null) { + logsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + Log, Log.Builder, LogOrBuilder>( + logs_, + ((bitField0_ & 0x00000001) == 0x00000001), + getParentForChildren(), + isClean()); + logs_ = null; + } + return logsBuilder_; + } + + private Object contextFlow_ = ""; + /** + * optional string contextFlow = 2; + * + *
+       * 目前暂无效用
+       * 
+ */ + public boolean hasContextFlow() { + return ((bitField0_ & 0x00000002) == 0x00000002); + } + /** + * optional string contextFlow = 2; + * + *
+       * 目前暂无效用
+       * 
+ */ + public String getContextFlow() { + Object ref = contextFlow_; + if (!(ref instanceof String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + contextFlow_ = s; + } + return s; + } else { + return (String) ref; + } + } + /** + * optional string contextFlow = 2; + * + *
+       * 目前暂无效用
+       * 
+ */ + public com.google.protobuf.ByteString + getContextFlowBytes() { + Object ref = contextFlow_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + contextFlow_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string contextFlow = 2; + * + *
+       * 目前暂无效用
+       * 
+ */ + public Builder setContextFlow( + String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + contextFlow_ = value; + onChanged(); + return this; + } + /** + * optional string contextFlow = 2; + * + *
+       * 目前暂无效用
+       * 
+ */ + public Builder clearContextFlow() { + bitField0_ = (bitField0_ & ~0x00000002); + contextFlow_ = getDefaultInstance().getContextFlow(); + onChanged(); + return this; + } + /** + * optional string contextFlow = 2; + * + *
+       * 目前暂无效用
+       * 
+ */ + public Builder setContextFlowBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000002; + contextFlow_ = value; + onChanged(); + return this; + } + + private Object filename_ = ""; + /** + * optional string filename = 3; + * + *
+       * 日志文件名
+       * 
+ */ + public boolean hasFilename() { + return ((bitField0_ & 0x00000004) == 0x00000004); + } + /** + * optional string filename = 3; + * + *
+       * 日志文件名
+       * 
+ */ + public String getFilename() { + Object ref = filename_; + if (!(ref instanceof String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + filename_ = s; + } + return s; + } else { + return (String) ref; + } + } + /** + * optional string filename = 3; + * + *
+       * 日志文件名
+       * 
+ */ + public com.google.protobuf.ByteString + getFilenameBytes() { + Object ref = filename_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + filename_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string filename = 3; + * + *
+       * 日志文件名
+       * 
+ */ + public Builder setFilename( + String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + filename_ = value; + onChanged(); + return this; + } + /** + * optional string filename = 3; + * + *
+       * 日志文件名
+       * 
+ */ + public Builder clearFilename() { + bitField0_ = (bitField0_ & ~0x00000004); + filename_ = getDefaultInstance().getFilename(); + onChanged(); + return this; + } + /** + * optional string filename = 3; + * + *
+       * 日志文件名
+       * 
+ */ + public Builder setFilenameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000004; + filename_ = value; + onChanged(); + return this; + } + + private Object source_ = ""; + /** + * optional string source = 4; + * + *
+       * 日志来源,一般使用机器IP
+       * 
+ */ + public boolean hasSource() { + return ((bitField0_ & 0x00000008) == 0x00000008); + } + /** + * optional string source = 4; + * + *
+       * 日志来源,一般使用机器IP
+       * 
+ */ + public String getSource() { + Object ref = source_; + if (!(ref instanceof String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + String s = bs.toStringUtf8(); + if (bs.isValidUtf8()) { + source_ = s; + } + return s; + } else { + return (String) ref; + } + } + /** + * optional string source = 4; + * + *
+       * 日志来源,一般使用机器IP
+       * 
+ */ + public com.google.protobuf.ByteString + getSourceBytes() { + Object ref = source_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (String) ref); + source_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * optional string source = 4; + * + *
+       * 日志来源,一般使用机器IP
+       * 
+ */ + public Builder setSource( + String value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + source_ = value; + onChanged(); + return this; + } + /** + * optional string source = 4; + * + *
+       * 日志来源,一般使用机器IP
+       * 
+ */ + public Builder clearSource() { + bitField0_ = (bitField0_ & ~0x00000008); + source_ = getDefaultInstance().getSource(); + onChanged(); + return this; + } + /** + * optional string source = 4; + * + *
+       * 日志来源,一般使用机器IP
+       * 
+ */ + public Builder setSourceBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + bitField0_ |= 0x00000008; + source_ = value; + onChanged(); + return this; + } + + private java.util.List logTags_ = + java.util.Collections.emptyList(); + private void ensureLogTagsIsMutable() { + if (!((bitField0_ & 0x00000010) == 0x00000010)) { + logTags_ = new java.util.ArrayList(logTags_); + bitField0_ |= 0x00000010; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + LogTag, LogTag.Builder, LogTagOrBuilder> logTagsBuilder_; + + /** + * repeated .cls.LogTag logTags = 5; + */ + public java.util.List getLogTagsList() { + if (logTagsBuilder_ == null) { + return java.util.Collections.unmodifiableList(logTags_); + } else { + return logTagsBuilder_.getMessageList(); + } + } + /** + * repeated .cls.LogTag logTags = 5; + */ + public int getLogTagsCount() { + if (logTagsBuilder_ == null) { + return logTags_.size(); + } else { + return logTagsBuilder_.getCount(); + } + } + /** + * repeated .cls.LogTag logTags = 5; + */ + public LogTag getLogTags(int index) { + if (logTagsBuilder_ == null) { + return logTags_.get(index); + } else { + return logTagsBuilder_.getMessage(index); + } + } + /** + * repeated .cls.LogTag logTags = 5; + */ + public Builder setLogTags( + int index, LogTag value) { + if (logTagsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLogTagsIsMutable(); + logTags_.set(index, value); + onChanged(); + } else { + logTagsBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .cls.LogTag logTags = 5; + */ + public Builder setLogTags( + int index, LogTag.Builder builderForValue) { + if (logTagsBuilder_ == null) { + ensureLogTagsIsMutable(); + logTags_.set(index, builderForValue.build()); + onChanged(); + } else { + logTagsBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .cls.LogTag logTags = 5; + */ + public Builder addLogTags(LogTag value) { + if (logTagsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLogTagsIsMutable(); + logTags_.add(value); + onChanged(); + } else { + logTagsBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .cls.LogTag logTags = 5; + */ + public Builder addLogTags( + int index, LogTag value) { + if (logTagsBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLogTagsIsMutable(); + logTags_.add(index, value); + onChanged(); + } else { + logTagsBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .cls.LogTag logTags = 5; + */ + public Builder addLogTags( + LogTag.Builder builderForValue) { + if (logTagsBuilder_ == null) { + ensureLogTagsIsMutable(); + logTags_.add(builderForValue.build()); + onChanged(); + } else { + logTagsBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .cls.LogTag logTags = 5; + */ + public Builder addLogTags( + int index, LogTag.Builder builderForValue) { + if (logTagsBuilder_ == null) { + ensureLogTagsIsMutable(); + logTags_.add(index, builderForValue.build()); + onChanged(); + } else { + logTagsBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .cls.LogTag logTags = 5; + */ + public Builder addAllLogTags( + Iterable values) { + if (logTagsBuilder_ == null) { + ensureLogTagsIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, logTags_); + onChanged(); + } else { + logTagsBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .cls.LogTag logTags = 5; + */ + public Builder clearLogTags() { + if (logTagsBuilder_ == null) { + logTags_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + } else { + logTagsBuilder_.clear(); + } + return this; + } + /** + * repeated .cls.LogTag logTags = 5; + */ + public Builder removeLogTags(int index) { + if (logTagsBuilder_ == null) { + ensureLogTagsIsMutable(); + logTags_.remove(index); + onChanged(); + } else { + logTagsBuilder_.remove(index); + } + return this; + } + /** + * repeated .cls.LogTag logTags = 5; + */ + public LogTag.Builder getLogTagsBuilder( + int index) { + return getLogTagsFieldBuilder().getBuilder(index); + } + /** + * repeated .cls.LogTag logTags = 5; + */ + public LogTagOrBuilder getLogTagsOrBuilder( + int index) { + if (logTagsBuilder_ == null) { + return logTags_.get(index); } else { + return logTagsBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .cls.LogTag logTags = 5; + */ + public java.util.List + getLogTagsOrBuilderList() { + if (logTagsBuilder_ != null) { + return logTagsBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(logTags_); + } + } + /** + * repeated .cls.LogTag logTags = 5; + */ + public LogTag.Builder addLogTagsBuilder() { + return getLogTagsFieldBuilder().addBuilder( + LogTag.getDefaultInstance()); + } + /** + * repeated .cls.LogTag logTags = 5; + */ + public LogTag.Builder addLogTagsBuilder( + int index) { + return getLogTagsFieldBuilder().addBuilder( + index, LogTag.getDefaultInstance()); + } + /** + * repeated .cls.LogTag logTags = 5; + */ + public java.util.List + getLogTagsBuilderList() { + return getLogTagsFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + LogTag, LogTag.Builder, LogTagOrBuilder> + getLogTagsFieldBuilder() { + if (logTagsBuilder_ == null) { + logTagsBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + LogTag, LogTag.Builder, LogTagOrBuilder>( + logTags_, + ((bitField0_ & 0x00000010) == 0x00000010), + getParentForChildren(), + isClean()); + logTags_ = null; + } + return logTagsBuilder_; + } + + // @@protoc_insertion_point(builder_scope:cls.LogGroup) + } + + static { + defaultInstance = new LogGroup(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:cls.LogGroup) + } + + public interface LogGroupListOrBuilder extends + // @@protoc_insertion_point(interface_extends:cls.LogGroupList) + com.google.protobuf.MessageOrBuilder { + + /** + * repeated .cls.LogGroup logGroupList = 1; + * + *
+     * 日志组列表
+     * 
+ */ + java.util.List + getLogGroupListList(); + /** + * repeated .cls.LogGroup logGroupList = 1; + * + *
+     * 日志组列表
+     * 
+ */ + LogGroup getLogGroupList(int index); + /** + * repeated .cls.LogGroup logGroupList = 1; + * + *
+     * 日志组列表
+     * 
+ */ + int getLogGroupListCount(); + /** + * repeated .cls.LogGroup logGroupList = 1; + * + *
+     * 日志组列表
+     * 
+ */ + java.util.List + getLogGroupListOrBuilderList(); + /** + * repeated .cls.LogGroup logGroupList = 1; + * + *
+     * 日志组列表
+     * 
+ */ + LogGroupOrBuilder getLogGroupListOrBuilder( + int index); + } + /** + * Protobuf type {@code cls.LogGroupList} + */ + public static final class LogGroupList extends + com.google.protobuf.GeneratedMessage implements + // @@protoc_insertion_point(message_implements:cls.LogGroupList) + LogGroupListOrBuilder { + // Use LogGroupList.newBuilder() to construct. + private LogGroupList(com.google.protobuf.GeneratedMessage.Builder builder) { + super(builder); + this.unknownFields = builder.getUnknownFields(); + } + private LogGroupList(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } + + private static final LogGroupList defaultInstance; + public static LogGroupList getDefaultInstance() { + return defaultInstance; + } + + public LogGroupList getDefaultInstanceForType() { + return defaultInstance; + } + + private final com.google.protobuf.UnknownFieldSet unknownFields; + @Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + private LogGroupList( + 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: { + if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) { + logGroupList_ = new java.util.ArrayList(); + mutable_bitField0_ |= 0x00000001; + } + logGroupList_.add(input.readMessage(LogGroup.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_ & 0x00000001) == 0x00000001)) { + logGroupList_ = java.util.Collections.unmodifiableList(logGroupList_); + } + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return Cls.internal_static_cls_LogGroupList_descriptor; + } + + protected FieldAccessorTable + internalGetFieldAccessorTable() { + return Cls.internal_static_cls_LogGroupList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + LogGroupList.class, Builder.class); + } + + public static com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + public LogGroupList parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new LogGroupList(input, extensionRegistry); + } + }; + + @Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + public static final int LOGGROUPLIST_FIELD_NUMBER = 1; + private java.util.List logGroupList_; + /** + * repeated .cls.LogGroup logGroupList = 1; + * + *
+     * 日志组列表
+     * 
+ */ + public java.util.List getLogGroupListList() { + return logGroupList_; + } + /** + * repeated .cls.LogGroup logGroupList = 1; + * + *
+     * 日志组列表
+     * 
+ */ + public java.util.List + getLogGroupListOrBuilderList() { + return logGroupList_; + } + /** + * repeated .cls.LogGroup logGroupList = 1; + * + *
+     * 日志组列表
+     * 
+ */ + public int getLogGroupListCount() { + return logGroupList_.size(); + } + /** + * repeated .cls.LogGroup logGroupList = 1; + * + *
+     * 日志组列表
+     * 
+ */ + public LogGroup getLogGroupList(int index) { + return logGroupList_.get(index); + } + /** + * repeated .cls.LogGroup logGroupList = 1; + * + *
+     * 日志组列表
+     * 
+ */ + public LogGroupOrBuilder getLogGroupListOrBuilder( + int index) { + return logGroupList_.get(index); + } + + private void initFields() { + logGroupList_ = java.util.Collections.emptyList(); + } + private byte memoizedIsInitialized = -1; + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + for (int i = 0; i < getLogGroupListCount(); i++) { + if (!getLogGroupList(i).isInitialized()) { + memoizedIsInitialized = 0; + return false; + } + } + memoizedIsInitialized = 1; + return true; + } + + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + getSerializedSize(); + for (int i = 0; i < logGroupList_.size(); i++) { + output.writeMessage(1, logGroupList_.get(i)); + } + getUnknownFields().writeTo(output); + } + + private int memoizedSerializedSize = -1; + public int getSerializedSize() { + int size = memoizedSerializedSize; + if (size != -1) return size; + + size = 0; + for (int i = 0; i < logGroupList_.size(); i++) { + size += com.google.protobuf.CodedOutputStream + .computeMessageSize(1, logGroupList_.get(i)); + } + size += getUnknownFields().getSerializedSize(); + memoizedSerializedSize = size; + return size; + } + + private static final long serialVersionUID = 0L; + @Override + protected Object writeReplace() + throws java.io.ObjectStreamException { + return super.writeReplace(); + } + + public static LogGroupList parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static LogGroupList parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static LogGroupList parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + public static LogGroupList parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + public static LogGroupList parseFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static LogGroupList parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + public static LogGroupList parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input); + } + public static LogGroupList parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseDelimitedFrom(input, extensionRegistry); + } + public static LogGroupList parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return PARSER.parseFrom(input); + } + public static LogGroupList parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return PARSER.parseFrom(input, extensionRegistry); + } + + public static Builder newBuilder() { return Builder.create(); } + public Builder newBuilderForType() { return newBuilder(); } + public static Builder newBuilder(LogGroupList prototype) { + return newBuilder().mergeFrom(prototype); + } + public Builder toBuilder() { return newBuilder(this); } + + @Override + protected Builder newBuilderForType( + BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * Protobuf type {@code cls.LogGroupList} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessage.Builder implements + // @@protoc_insertion_point(builder_implements:cls.LogGroupList) + LogGroupListOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return Cls.internal_static_cls_LogGroupList_descriptor; + } + + protected FieldAccessorTable + internalGetFieldAccessorTable() { + return Cls.internal_static_cls_LogGroupList_fieldAccessorTable + .ensureFieldAccessorsInitialized( + LogGroupList.class, Builder.class); + } + + // Construct using cls.Cls.LogGroupList.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder( + BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { + getLogGroupListFieldBuilder(); + } + } + private static Builder create() { + return new Builder(); + } + + public Builder clear() { + super.clear(); + if (logGroupListBuilder_ == null) { + logGroupList_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + } else { + logGroupListBuilder_.clear(); + } + return this; + } + + public Builder clone() { + return create().mergeFrom(buildPartial()); + } + + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return Cls.internal_static_cls_LogGroupList_descriptor; + } + + public LogGroupList getDefaultInstanceForType() { + return LogGroupList.getDefaultInstance(); + } + + public LogGroupList build() { + LogGroupList result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + public LogGroupList buildPartial() { + LogGroupList result = new LogGroupList(this); + int from_bitField0_ = bitField0_; + if (logGroupListBuilder_ == null) { + if (((bitField0_ & 0x00000001) == 0x00000001)) { + logGroupList_ = java.util.Collections.unmodifiableList(logGroupList_); + bitField0_ = (bitField0_ & ~0x00000001); + } + result.logGroupList_ = logGroupList_; + } else { + result.logGroupList_ = logGroupListBuilder_.build(); + } + onBuilt(); + return result; + } + + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof LogGroupList) { + return mergeFrom((LogGroupList)other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(LogGroupList other) { + if (other == LogGroupList.getDefaultInstance()) return this; + if (logGroupListBuilder_ == null) { + if (!other.logGroupList_.isEmpty()) { + if (logGroupList_.isEmpty()) { + logGroupList_ = other.logGroupList_; + bitField0_ = (bitField0_ & ~0x00000001); + } else { + ensureLogGroupListIsMutable(); + logGroupList_.addAll(other.logGroupList_); + } + onChanged(); + } + } else { + if (!other.logGroupList_.isEmpty()) { + if (logGroupListBuilder_.isEmpty()) { + logGroupListBuilder_.dispose(); + logGroupListBuilder_ = null; + logGroupList_ = other.logGroupList_; + bitField0_ = (bitField0_ & ~0x00000001); + logGroupListBuilder_ = + com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ? + getLogGroupListFieldBuilder() : null; + } else { + logGroupListBuilder_.addAllMessages(other.logGroupList_); + } + } + } + this.mergeUnknownFields(other.getUnknownFields()); + return this; + } + + public final boolean isInitialized() { + for (int i = 0; i < getLogGroupListCount(); i++) { + if (!getLogGroupList(i).isInitialized()) { + + return false; + } + } + return true; + } + + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + LogGroupList parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = (LogGroupList) e.getUnfinishedMessage(); + throw e; + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + private int bitField0_; + + private java.util.List logGroupList_ = + java.util.Collections.emptyList(); + private void ensureLogGroupListIsMutable() { + if (!((bitField0_ & 0x00000001) == 0x00000001)) { + logGroupList_ = new java.util.ArrayList(logGroupList_); + bitField0_ |= 0x00000001; + } + } + + private com.google.protobuf.RepeatedFieldBuilder< + LogGroup, LogGroup.Builder, LogGroupOrBuilder> logGroupListBuilder_; + + /** + * repeated .cls.LogGroup logGroupList = 1; + * + *
+       * 日志组列表
+       * 
+ */ + public java.util.List getLogGroupListList() { + if (logGroupListBuilder_ == null) { + return java.util.Collections.unmodifiableList(logGroupList_); + } else { + return logGroupListBuilder_.getMessageList(); + } + } + /** + * repeated .cls.LogGroup logGroupList = 1; + * + *
+       * 日志组列表
+       * 
+ */ + public int getLogGroupListCount() { + if (logGroupListBuilder_ == null) { + return logGroupList_.size(); + } else { + return logGroupListBuilder_.getCount(); + } + } + /** + * repeated .cls.LogGroup logGroupList = 1; + * + *
+       * 日志组列表
+       * 
+ */ + public LogGroup getLogGroupList(int index) { + if (logGroupListBuilder_ == null) { + return logGroupList_.get(index); + } else { + return logGroupListBuilder_.getMessage(index); + } + } + /** + * repeated .cls.LogGroup logGroupList = 1; + * + *
+       * 日志组列表
+       * 
+ */ + public Builder setLogGroupList( + int index, LogGroup value) { + if (logGroupListBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLogGroupListIsMutable(); + logGroupList_.set(index, value); + onChanged(); + } else { + logGroupListBuilder_.setMessage(index, value); + } + return this; + } + /** + * repeated .cls.LogGroup logGroupList = 1; + * + *
+       * 日志组列表
+       * 
+ */ + public Builder setLogGroupList( + int index, LogGroup.Builder builderForValue) { + if (logGroupListBuilder_ == null) { + ensureLogGroupListIsMutable(); + logGroupList_.set(index, builderForValue.build()); + onChanged(); + } else { + logGroupListBuilder_.setMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .cls.LogGroup logGroupList = 1; + * + *
+       * 日志组列表
+       * 
+ */ + public Builder addLogGroupList(LogGroup value) { + if (logGroupListBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLogGroupListIsMutable(); + logGroupList_.add(value); + onChanged(); + } else { + logGroupListBuilder_.addMessage(value); + } + return this; + } + /** + * repeated .cls.LogGroup logGroupList = 1; + * + *
+       * 日志组列表
+       * 
+ */ + public Builder addLogGroupList( + int index, LogGroup value) { + if (logGroupListBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + ensureLogGroupListIsMutable(); + logGroupList_.add(index, value); + onChanged(); + } else { + logGroupListBuilder_.addMessage(index, value); + } + return this; + } + /** + * repeated .cls.LogGroup logGroupList = 1; + * + *
+       * 日志组列表
+       * 
+ */ + public Builder addLogGroupList( + LogGroup.Builder builderForValue) { + if (logGroupListBuilder_ == null) { + ensureLogGroupListIsMutable(); + logGroupList_.add(builderForValue.build()); + onChanged(); + } else { + logGroupListBuilder_.addMessage(builderForValue.build()); + } + return this; + } + /** + * repeated .cls.LogGroup logGroupList = 1; + * + *
+       * 日志组列表
+       * 
+ */ + public Builder addLogGroupList( + int index, LogGroup.Builder builderForValue) { + if (logGroupListBuilder_ == null) { + ensureLogGroupListIsMutable(); + logGroupList_.add(index, builderForValue.build()); + onChanged(); + } else { + logGroupListBuilder_.addMessage(index, builderForValue.build()); + } + return this; + } + /** + * repeated .cls.LogGroup logGroupList = 1; + * + *
+       * 日志组列表
+       * 
+ */ + public Builder addAllLogGroupList( + Iterable values) { + if (logGroupListBuilder_ == null) { + ensureLogGroupListIsMutable(); + com.google.protobuf.AbstractMessageLite.Builder.addAll( + values, logGroupList_); + onChanged(); + } else { + logGroupListBuilder_.addAllMessages(values); + } + return this; + } + /** + * repeated .cls.LogGroup logGroupList = 1; + * + *
+       * 日志组列表
+       * 
+ */ + public Builder clearLogGroupList() { + if (logGroupListBuilder_ == null) { + logGroupList_ = java.util.Collections.emptyList(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + } else { + logGroupListBuilder_.clear(); + } + return this; + } + /** + * repeated .cls.LogGroup logGroupList = 1; + * + *
+       * 日志组列表
+       * 
+ */ + public Builder removeLogGroupList(int index) { + if (logGroupListBuilder_ == null) { + ensureLogGroupListIsMutable(); + logGroupList_.remove(index); + onChanged(); + } else { + logGroupListBuilder_.remove(index); + } + return this; + } + /** + * repeated .cls.LogGroup logGroupList = 1; + * + *
+       * 日志组列表
+       * 
+ */ + public LogGroup.Builder getLogGroupListBuilder( + int index) { + return getLogGroupListFieldBuilder().getBuilder(index); + } + /** + * repeated .cls.LogGroup logGroupList = 1; + * + *
+       * 日志组列表
+       * 
+ */ + public LogGroupOrBuilder getLogGroupListOrBuilder( + int index) { + if (logGroupListBuilder_ == null) { + return logGroupList_.get(index); } else { + return logGroupListBuilder_.getMessageOrBuilder(index); + } + } + /** + * repeated .cls.LogGroup logGroupList = 1; + * + *
+       * 日志组列表
+       * 
+ */ + public java.util.List + getLogGroupListOrBuilderList() { + if (logGroupListBuilder_ != null) { + return logGroupListBuilder_.getMessageOrBuilderList(); + } else { + return java.util.Collections.unmodifiableList(logGroupList_); + } + } + /** + * repeated .cls.LogGroup logGroupList = 1; + * + *
+       * 日志组列表
+       * 
+ */ + public LogGroup.Builder addLogGroupListBuilder() { + return getLogGroupListFieldBuilder().addBuilder( + LogGroup.getDefaultInstance()); + } + /** + * repeated .cls.LogGroup logGroupList = 1; + * + *
+       * 日志组列表
+       * 
+ */ + public LogGroup.Builder addLogGroupListBuilder( + int index) { + return getLogGroupListFieldBuilder().addBuilder( + index, LogGroup.getDefaultInstance()); + } + /** + * repeated .cls.LogGroup logGroupList = 1; + * + *
+       * 日志组列表
+       * 
+ */ + public java.util.List + getLogGroupListBuilderList() { + return getLogGroupListFieldBuilder().getBuilderList(); + } + private com.google.protobuf.RepeatedFieldBuilder< + LogGroup, LogGroup.Builder, LogGroupOrBuilder> + getLogGroupListFieldBuilder() { + if (logGroupListBuilder_ == null) { + logGroupListBuilder_ = new com.google.protobuf.RepeatedFieldBuilder< + LogGroup, LogGroup.Builder, LogGroupOrBuilder>( + logGroupList_, + ((bitField0_ & 0x00000001) == 0x00000001), + getParentForChildren(), + isClean()); + logGroupList_ = null; + } + return logGroupListBuilder_; + } + + // @@protoc_insertion_point(builder_scope:cls.LogGroupList) + } + + static { + defaultInstance = new LogGroupList(true); + defaultInstance.initFields(); + } + + // @@protoc_insertion_point(class_scope:cls.LogGroupList) + } + + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_cls_Log_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_cls_Log_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_cls_Log_Content_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_cls_Log_Content_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_cls_LogTag_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_cls_LogTag_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_cls_LogGroup_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_cls_LogGroup_fieldAccessorTable; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_cls_LogGroupList_descriptor; + private static + com.google.protobuf.GeneratedMessage.FieldAccessorTable + internal_static_cls_LogGroupList_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; + } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; + static { + String[] descriptorData = { + "\n\tcls.proto\022\003cls\"^\n\003Log\022\014\n\004time\030\001 \002(\003\022\"\n" + + "\010contents\030\002 \003(\0132\020.cls.Log.Content\032%\n\007Con" + + "tent\022\013\n\003key\030\001 \002(\t\022\r\n\005value\030\002 \002(\t\"$\n\006LogT" + + "ag\022\013\n\003key\030\001 \002(\t\022\r\n\005value\030\002 \002(\t\"w\n\010LogGro" + + "up\022\026\n\004logs\030\001 \003(\0132\010.cls.Log\022\023\n\013contextFlo" + + "w\030\002 \001(\t\022\020\n\010filename\030\003 \001(\t\022\016\n\006source\030\004 \001(" + + "\t\022\034\n\007logTags\030\005 \003(\0132\013.cls.LogTag\"3\n\014LogGr" + + "oupList\022#\n\014logGroupList\030\001 \003(\0132\r.cls.LogG" + + "roup" + }; + com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner = + new com.google.protobuf.Descriptors.FileDescriptor. InternalDescriptorAssigner() { + public com.google.protobuf.ExtensionRegistry assignDescriptors( + com.google.protobuf.Descriptors.FileDescriptor root) { + descriptor = root; + return null; + } + }; + com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + }, assigner); + internal_static_cls_Log_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_cls_Log_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_cls_Log_descriptor, + new String[] { "Time", "Contents", }); + internal_static_cls_Log_Content_descriptor = + internal_static_cls_Log_descriptor.getNestedTypes().get(0); + internal_static_cls_Log_Content_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_cls_Log_Content_descriptor, + new String[] { "Key", "Value", }); + internal_static_cls_LogTag_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_cls_LogTag_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_cls_LogTag_descriptor, + new String[] { "Key", "Value", }); + internal_static_cls_LogGroup_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_cls_LogGroup_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_cls_LogGroup_descriptor, + new String[] { "Logs", "ContextFlow", "Filename", "Source", "LogTags", }); + internal_static_cls_LogGroupList_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_cls_LogGroupList_fieldAccessorTable = new + com.google.protobuf.GeneratedMessage.FieldAccessorTable( + internal_static_cls_LogGroupList_descriptor, + new String[] { "LogGroupList", }); + } + + // @@protoc_insertion_point(outer_class_scope) +}