// Generated by the protocol buffer compiler. DO NOT EDIT! // source: SocketProtocol.proto package com.taobao.zeus.socket.protocol; public final class Protocol { private Protocol() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { } public enum Status implements com.google.protobuf.ProtocolMessageEnum { OK(0, 0), ERROR(1, 1), ; public static final int OK_VALUE = 0; public static final int ERROR_VALUE = 1; public final int getNumber() { return value; } public static Status valueOf(int value) { switch (value) { case 0: return OK; case 1: return ERROR; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap<Status> internalGetValueMap() { return internalValueMap; } private static com.google.protobuf.Internal.EnumLiteMap<Status> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap<Status>() { public Status findValueByNumber(int number) { return Status.valueOf(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(index); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.taobao.zeus.socket.protocol.Protocol.getDescriptor().getEnumTypes().get(0); } private static final Status[] VALUES = { OK, ERROR, }; public static Status valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } return VALUES[desc.getIndex()]; } private final int index; private final int value; private Status(int index, int value) { this.index = index; this.value = value; } // @@protoc_insertion_point(enum_scope:com.taobao.zeus.socket.protocol.Status) } public enum ExecuteKind implements com.google.protobuf.ProtocolMessageEnum { ScheduleKind(0, 0), ManualKind(1, 1), DebugKind(2, 2), ; public static final int ScheduleKind_VALUE = 0; public static final int ManualKind_VALUE = 1; public static final int DebugKind_VALUE = 2; public final int getNumber() { return value; } public static ExecuteKind valueOf(int value) { switch (value) { case 0: return ScheduleKind; case 1: return ManualKind; case 2: return DebugKind; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap<ExecuteKind> internalGetValueMap() { return internalValueMap; } private static com.google.protobuf.Internal.EnumLiteMap<ExecuteKind> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap<ExecuteKind>() { public ExecuteKind findValueByNumber(int number) { return ExecuteKind.valueOf(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(index); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.taobao.zeus.socket.protocol.Protocol.getDescriptor().getEnumTypes().get(1); } private static final ExecuteKind[] VALUES = { ScheduleKind, ManualKind, DebugKind, }; public static ExecuteKind valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } return VALUES[desc.getIndex()]; } private final int index; private final int value; private ExecuteKind(int index, int value) { this.index = index; this.value = value; } // @@protoc_insertion_point(enum_scope:com.taobao.zeus.socket.protocol.ExecuteKind) } public enum WebOperate implements com.google.protobuf.ProtocolMessageEnum { UpdateJob(0, 1), ExecuteJob(1, 2), CancelJob(2, 3), ExecuteDebug(3, 4), ; public static final int UpdateJob_VALUE = 1; public static final int ExecuteJob_VALUE = 2; public static final int CancelJob_VALUE = 3; public static final int ExecuteDebug_VALUE = 4; public final int getNumber() { return value; } public static WebOperate valueOf(int value) { switch (value) { case 1: return UpdateJob; case 2: return ExecuteJob; case 3: return CancelJob; case 4: return ExecuteDebug; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap<WebOperate> internalGetValueMap() { return internalValueMap; } private static com.google.protobuf.Internal.EnumLiteMap<WebOperate> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap<WebOperate>() { public WebOperate findValueByNumber(int number) { return WebOperate.valueOf(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(index); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.taobao.zeus.socket.protocol.Protocol.getDescriptor().getEnumTypes().get(2); } private static final WebOperate[] VALUES = { UpdateJob, ExecuteJob, CancelJob, ExecuteDebug, }; public static WebOperate valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } return VALUES[desc.getIndex()]; } private final int index; private final int value; private WebOperate(int index, int value) { this.index = index; this.value = value; } // @@protoc_insertion_point(enum_scope:com.taobao.zeus.socket.protocol.WebOperate) } public enum Operate implements com.google.protobuf.ProtocolMessageEnum { HeartBeat(0, 0), Schedule(1, 1), Cancel(2, 2), Debug(3, 3), Manual(4, 4), ; public static final int HeartBeat_VALUE = 0; public static final int Schedule_VALUE = 1; public static final int Cancel_VALUE = 2; public static final int Debug_VALUE = 3; public static final int Manual_VALUE = 4; public final int getNumber() { return value; } public static Operate valueOf(int value) { switch (value) { case 0: return HeartBeat; case 1: return Schedule; case 2: return Cancel; case 3: return Debug; case 4: return Manual; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap<Operate> internalGetValueMap() { return internalValueMap; } private static com.google.protobuf.Internal.EnumLiteMap<Operate> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap<Operate>() { public Operate findValueByNumber(int number) { return Operate.valueOf(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(index); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.taobao.zeus.socket.protocol.Protocol.getDescriptor().getEnumTypes().get(3); } private static final Operate[] VALUES = { HeartBeat, Schedule, Cancel, Debug, Manual, }; public static Operate valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } return VALUES[desc.getIndex()]; } private final int index; private final int value; private Operate(int index, int value) { this.index = index; this.value = value; } // @@protoc_insertion_point(enum_scope:com.taobao.zeus.socket.protocol.Operate) } public interface SocketMessageOrBuilder extends com.google.protobuf.MessageOrBuilder { // required .com.taobao.zeus.socket.protocol.SocketMessage.Kind kind = 1; boolean hasKind(); com.taobao.zeus.socket.protocol.Protocol.SocketMessage.Kind getKind(); // optional bytes body = 2; boolean hasBody(); com.google.protobuf.ByteString getBody(); } public static final class SocketMessage extends com.google.protobuf.GeneratedMessage implements SocketMessageOrBuilder { // Use SocketMessage.newBuilder() to construct. private SocketMessage(Builder builder) { super(builder); } private SocketMessage(boolean noInit) {} private static final SocketMessage defaultInstance; public static SocketMessage getDefaultInstance() { return defaultInstance; } public SocketMessage getDefaultInstanceForType() { return defaultInstance; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.taobao.zeus.socket.protocol.Protocol.internal_static_com_taobao_zeus_socket_protocol_SocketMessage_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.taobao.zeus.socket.protocol.Protocol.internal_static_com_taobao_zeus_socket_protocol_SocketMessage_fieldAccessorTable; } public enum Kind implements com.google.protobuf.ProtocolMessageEnum { REQUEST(0, 0), RESPONSE(1, 1), WEB_REUQEST(2, 2), WEB_RESPONSE(3, 3), ; public static final int REQUEST_VALUE = 0; public static final int RESPONSE_VALUE = 1; public static final int WEB_REUQEST_VALUE = 2; public static final int WEB_RESPONSE_VALUE = 3; public final int getNumber() { return value; } public static Kind valueOf(int value) { switch (value) { case 0: return REQUEST; case 1: return RESPONSE; case 2: return WEB_REUQEST; case 3: return WEB_RESPONSE; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap<Kind> internalGetValueMap() { return internalValueMap; } private static com.google.protobuf.Internal.EnumLiteMap<Kind> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap<Kind>() { public Kind findValueByNumber(int number) { return Kind.valueOf(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(index); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.taobao.zeus.socket.protocol.Protocol.SocketMessage.getDescriptor().getEnumTypes().get(0); } private static final Kind[] VALUES = { REQUEST, RESPONSE, WEB_REUQEST, WEB_RESPONSE, }; public static Kind valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } return VALUES[desc.getIndex()]; } private final int index; private final int value; private Kind(int index, int value) { this.index = index; this.value = value; } // @@protoc_insertion_point(enum_scope:com.taobao.zeus.socket.protocol.SocketMessage.Kind) } private int bitField0_; // required .com.taobao.zeus.socket.protocol.SocketMessage.Kind kind = 1; public static final int KIND_FIELD_NUMBER = 1; private com.taobao.zeus.socket.protocol.Protocol.SocketMessage.Kind kind_; public boolean hasKind() { return ((bitField0_ & 0x00000001) == 0x00000001); } public com.taobao.zeus.socket.protocol.Protocol.SocketMessage.Kind getKind() { return kind_; } // optional bytes body = 2; public static final int BODY_FIELD_NUMBER = 2; private com.google.protobuf.ByteString body_; public boolean hasBody() { return ((bitField0_ & 0x00000002) == 0x00000002); } public com.google.protobuf.ByteString getBody() { return body_; } private void initFields() { kind_ = com.taobao.zeus.socket.protocol.Protocol.SocketMessage.Kind.REQUEST; body_ = com.google.protobuf.ByteString.EMPTY; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (!hasKind()) { 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.writeEnum(1, kind_.getNumber()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(2, body_); } 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 .computeEnumSize(1, kind_.getNumber()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, body_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } @java.lang.Override protected Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static com.taobao.zeus.socket.protocol.Protocol.SocketMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static com.taobao.zeus.socket.protocol.Protocol.SocketMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static com.taobao.zeus.socket.protocol.Protocol.SocketMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static com.taobao.zeus.socket.protocol.Protocol.SocketMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static com.taobao.zeus.socket.protocol.Protocol.SocketMessage parseFrom(java.io.InputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static com.taobao.zeus.socket.protocol.Protocol.SocketMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static com.taobao.zeus.socket.protocol.Protocol.SocketMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input)) { return builder.buildParsed(); } else { return null; } } public static com.taobao.zeus.socket.protocol.Protocol.SocketMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input, extensionRegistry)) { return builder.buildParsed(); } else { return null; } } public static com.taobao.zeus.socket.protocol.Protocol.SocketMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static com.taobao.zeus.socket.protocol.Protocol.SocketMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.taobao.zeus.socket.protocol.Protocol.SocketMessage prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements com.taobao.zeus.socket.protocol.Protocol.SocketMessageOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.taobao.zeus.socket.protocol.Protocol.internal_static_com_taobao_zeus_socket_protocol_SocketMessage_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.taobao.zeus.socket.protocol.Protocol.internal_static_com_taobao_zeus_socket_protocol_SocketMessage_fieldAccessorTable; } // Construct using com.taobao.zeus.socket.protocol.Protocol.SocketMessage.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(); kind_ = com.taobao.zeus.socket.protocol.Protocol.SocketMessage.Kind.REQUEST; bitField0_ = (bitField0_ & ~0x00000001); body_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.taobao.zeus.socket.protocol.Protocol.SocketMessage.getDescriptor(); } public com.taobao.zeus.socket.protocol.Protocol.SocketMessage getDefaultInstanceForType() { return com.taobao.zeus.socket.protocol.Protocol.SocketMessage.getDefaultInstance(); } public com.taobao.zeus.socket.protocol.Protocol.SocketMessage build() { com.taobao.zeus.socket.protocol.Protocol.SocketMessage result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } private com.taobao.zeus.socket.protocol.Protocol.SocketMessage buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { com.taobao.zeus.socket.protocol.Protocol.SocketMessage result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } return result; } public com.taobao.zeus.socket.protocol.Protocol.SocketMessage buildPartial() { com.taobao.zeus.socket.protocol.Protocol.SocketMessage result = new com.taobao.zeus.socket.protocol.Protocol.SocketMessage(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.kind_ = kind_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.body_ = body_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.taobao.zeus.socket.protocol.Protocol.SocketMessage) { return mergeFrom((com.taobao.zeus.socket.protocol.Protocol.SocketMessage)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.taobao.zeus.socket.protocol.Protocol.SocketMessage other) { if (other == com.taobao.zeus.socket.protocol.Protocol.SocketMessage.getDefaultInstance()) return this; if (other.hasKind()) { setKind(other.getKind()); } if (other.hasBody()) { setBody(other.getBody()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasKind()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder( this.getUnknownFields()); while (true) { int tag = input.readTag(); switch (tag) { case 0: this.setUnknownFields(unknownFields.build()); onChanged(); return this; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { this.setUnknownFields(unknownFields.build()); onChanged(); return this; } break; } case 8: { int rawValue = input.readEnum(); com.taobao.zeus.socket.protocol.Protocol.SocketMessage.Kind value = com.taobao.zeus.socket.protocol.Protocol.SocketMessage.Kind.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(1, rawValue); } else { bitField0_ |= 0x00000001; kind_ = value; } break; } case 18: { bitField0_ |= 0x00000002; body_ = input.readBytes(); break; } } } } private int bitField0_; // required .com.taobao.zeus.socket.protocol.SocketMessage.Kind kind = 1; private com.taobao.zeus.socket.protocol.Protocol.SocketMessage.Kind kind_ = com.taobao.zeus.socket.protocol.Protocol.SocketMessage.Kind.REQUEST; public boolean hasKind() { return ((bitField0_ & 0x00000001) == 0x00000001); } public com.taobao.zeus.socket.protocol.Protocol.SocketMessage.Kind getKind() { return kind_; } public Builder setKind(com.taobao.zeus.socket.protocol.Protocol.SocketMessage.Kind value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; kind_ = value; onChanged(); return this; } public Builder clearKind() { bitField0_ = (bitField0_ & ~0x00000001); kind_ = com.taobao.zeus.socket.protocol.Protocol.SocketMessage.Kind.REQUEST; onChanged(); return this; } // optional bytes body = 2; private com.google.protobuf.ByteString body_ = com.google.protobuf.ByteString.EMPTY; public boolean hasBody() { return ((bitField0_ & 0x00000002) == 0x00000002); } public com.google.protobuf.ByteString getBody() { return body_; } public Builder setBody(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; body_ = value; onChanged(); return this; } public Builder clearBody() { bitField0_ = (bitField0_ & ~0x00000002); body_ = getDefaultInstance().getBody(); onChanged(); return this; } // @@protoc_insertion_point(builder_scope:com.taobao.zeus.socket.protocol.SocketMessage) } static { defaultInstance = new SocketMessage(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:com.taobao.zeus.socket.protocol.SocketMessage) } public interface WebRequestOrBuilder extends com.google.protobuf.MessageOrBuilder { // required sint32 rid = 1; boolean hasRid(); int getRid(); // required .com.taobao.zeus.socket.protocol.WebOperate operate = 2; boolean hasOperate(); com.taobao.zeus.socket.protocol.Protocol.WebOperate getOperate(); // required .com.taobao.zeus.socket.protocol.ExecuteKind ek = 3; boolean hasEk(); com.taobao.zeus.socket.protocol.Protocol.ExecuteKind getEk(); // required string id = 4; boolean hasId(); String getId(); // optional string executor = 5; boolean hasExecutor(); String getExecutor(); // optional bytes body = 6; boolean hasBody(); com.google.protobuf.ByteString getBody(); } public static final class WebRequest extends com.google.protobuf.GeneratedMessage implements WebRequestOrBuilder { // Use WebRequest.newBuilder() to construct. private WebRequest(Builder builder) { super(builder); } private WebRequest(boolean noInit) {} private static final WebRequest defaultInstance; public static WebRequest getDefaultInstance() { return defaultInstance; } public WebRequest getDefaultInstanceForType() { return defaultInstance; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.taobao.zeus.socket.protocol.Protocol.internal_static_com_taobao_zeus_socket_protocol_WebRequest_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.taobao.zeus.socket.protocol.Protocol.internal_static_com_taobao_zeus_socket_protocol_WebRequest_fieldAccessorTable; } public enum Trigger implements com.google.protobuf.ProtocolMessageEnum { MANUAL(0, 0), MANUAL_RECOVER(1, 1), ; public static final int MANUAL_VALUE = 0; public static final int MANUAL_RECOVER_VALUE = 1; public final int getNumber() { return value; } public static Trigger valueOf(int value) { switch (value) { case 0: return MANUAL; case 1: return MANUAL_RECOVER; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap<Trigger> internalGetValueMap() { return internalValueMap; } private static com.google.protobuf.Internal.EnumLiteMap<Trigger> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap<Trigger>() { public Trigger findValueByNumber(int number) { return Trigger.valueOf(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(index); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return com.taobao.zeus.socket.protocol.Protocol.WebRequest.getDescriptor().getEnumTypes().get(0); } private static final Trigger[] VALUES = { MANUAL, MANUAL_RECOVER, }; public static Trigger valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } return VALUES[desc.getIndex()]; } private final int index; private final int value; private Trigger(int index, int value) { this.index = index; this.value = value; } // @@protoc_insertion_point(enum_scope:com.taobao.zeus.socket.protocol.WebRequest.Trigger) } private int bitField0_; // required sint32 rid = 1; public static final int RID_FIELD_NUMBER = 1; private int rid_; public boolean hasRid() { return ((bitField0_ & 0x00000001) == 0x00000001); } public int getRid() { return rid_; } // required .com.taobao.zeus.socket.protocol.WebOperate operate = 2; public static final int OPERATE_FIELD_NUMBER = 2; private com.taobao.zeus.socket.protocol.Protocol.WebOperate operate_; public boolean hasOperate() { return ((bitField0_ & 0x00000002) == 0x00000002); } public com.taobao.zeus.socket.protocol.Protocol.WebOperate getOperate() { return operate_; } // required .com.taobao.zeus.socket.protocol.ExecuteKind ek = 3; public static final int EK_FIELD_NUMBER = 3; private com.taobao.zeus.socket.protocol.Protocol.ExecuteKind ek_; public boolean hasEk() { return ((bitField0_ & 0x00000004) == 0x00000004); } public com.taobao.zeus.socket.protocol.Protocol.ExecuteKind getEk() { return ek_; } // required string id = 4; public static final int ID_FIELD_NUMBER = 4; private Object id_; public boolean hasId() { return ((bitField0_ & 0x00000008) == 0x00000008); } public String getId() { Object ref = id_; if (ref instanceof String) { return (String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; String s = bs.toStringUtf8(); if (com.google.protobuf.Internal.isValidUtf8(bs)) { id_ = s; } return s; } } private com.google.protobuf.ByteString getIdBytes() { Object ref = id_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((String) ref); id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional string executor = 5; public static final int EXECUTOR_FIELD_NUMBER = 5; private Object executor_; public boolean hasExecutor() { return ((bitField0_ & 0x00000010) == 0x00000010); } public String getExecutor() { Object ref = executor_; if (ref instanceof String) { return (String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; String s = bs.toStringUtf8(); if (com.google.protobuf.Internal.isValidUtf8(bs)) { executor_ = s; } return s; } } private com.google.protobuf.ByteString getExecutorBytes() { Object ref = executor_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((String) ref); executor_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional bytes body = 6; public static final int BODY_FIELD_NUMBER = 6; private com.google.protobuf.ByteString body_; public boolean hasBody() { return ((bitField0_ & 0x00000020) == 0x00000020); } public com.google.protobuf.ByteString getBody() { return body_; } private void initFields() { rid_ = 0; operate_ = com.taobao.zeus.socket.protocol.Protocol.WebOperate.UpdateJob; ek_ = com.taobao.zeus.socket.protocol.Protocol.ExecuteKind.ScheduleKind; id_ = ""; executor_ = ""; body_ = com.google.protobuf.ByteString.EMPTY; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (!hasRid()) { memoizedIsInitialized = 0; return false; } if (!hasOperate()) { memoizedIsInitialized = 0; return false; } if (!hasEk()) { memoizedIsInitialized = 0; return false; } if (!hasId()) { 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.writeSInt32(1, rid_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeEnum(2, operate_.getNumber()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeEnum(3, ek_.getNumber()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeBytes(4, getIdBytes()); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeBytes(5, getExecutorBytes()); } if (((bitField0_ & 0x00000020) == 0x00000020)) { output.writeBytes(6, body_); } 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 .computeSInt32Size(1, rid_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, operate_.getNumber()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(3, ek_.getNumber()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(4, getIdBytes()); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(5, getExecutorBytes()); } if (((bitField0_ & 0x00000020) == 0x00000020)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(6, body_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } @java.lang.Override protected Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static com.taobao.zeus.socket.protocol.Protocol.WebRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static com.taobao.zeus.socket.protocol.Protocol.WebRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static com.taobao.zeus.socket.protocol.Protocol.WebRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static com.taobao.zeus.socket.protocol.Protocol.WebRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static com.taobao.zeus.socket.protocol.Protocol.WebRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static com.taobao.zeus.socket.protocol.Protocol.WebRequest parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static com.taobao.zeus.socket.protocol.Protocol.WebRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input)) { return builder.buildParsed(); } else { return null; } } public static com.taobao.zeus.socket.protocol.Protocol.WebRequest parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input, extensionRegistry)) { return builder.buildParsed(); } else { return null; } } public static com.taobao.zeus.socket.protocol.Protocol.WebRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static com.taobao.zeus.socket.protocol.Protocol.WebRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.taobao.zeus.socket.protocol.Protocol.WebRequest prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements com.taobao.zeus.socket.protocol.Protocol.WebRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.taobao.zeus.socket.protocol.Protocol.internal_static_com_taobao_zeus_socket_protocol_WebRequest_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.taobao.zeus.socket.protocol.Protocol.internal_static_com_taobao_zeus_socket_protocol_WebRequest_fieldAccessorTable; } // Construct using com.taobao.zeus.socket.protocol.Protocol.WebRequest.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(); rid_ = 0; bitField0_ = (bitField0_ & ~0x00000001); operate_ = com.taobao.zeus.socket.protocol.Protocol.WebOperate.UpdateJob; bitField0_ = (bitField0_ & ~0x00000002); ek_ = com.taobao.zeus.socket.protocol.Protocol.ExecuteKind.ScheduleKind; bitField0_ = (bitField0_ & ~0x00000004); id_ = ""; bitField0_ = (bitField0_ & ~0x00000008); executor_ = ""; bitField0_ = (bitField0_ & ~0x00000010); body_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000020); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.taobao.zeus.socket.protocol.Protocol.WebRequest.getDescriptor(); } public com.taobao.zeus.socket.protocol.Protocol.WebRequest getDefaultInstanceForType() { return com.taobao.zeus.socket.protocol.Protocol.WebRequest.getDefaultInstance(); } public com.taobao.zeus.socket.protocol.Protocol.WebRequest build() { com.taobao.zeus.socket.protocol.Protocol.WebRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } private com.taobao.zeus.socket.protocol.Protocol.WebRequest buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { com.taobao.zeus.socket.protocol.Protocol.WebRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } return result; } public com.taobao.zeus.socket.protocol.Protocol.WebRequest buildPartial() { com.taobao.zeus.socket.protocol.Protocol.WebRequest result = new com.taobao.zeus.socket.protocol.Protocol.WebRequest(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.rid_ = rid_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.operate_ = operate_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.ek_ = ek_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.id_ = id_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } result.executor_ = executor_; if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000020; } result.body_ = body_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.taobao.zeus.socket.protocol.Protocol.WebRequest) { return mergeFrom((com.taobao.zeus.socket.protocol.Protocol.WebRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.taobao.zeus.socket.protocol.Protocol.WebRequest other) { if (other == com.taobao.zeus.socket.protocol.Protocol.WebRequest.getDefaultInstance()) return this; if (other.hasRid()) { setRid(other.getRid()); } if (other.hasOperate()) { setOperate(other.getOperate()); } if (other.hasEk()) { setEk(other.getEk()); } if (other.hasId()) { setId(other.getId()); } if (other.hasExecutor()) { setExecutor(other.getExecutor()); } if (other.hasBody()) { setBody(other.getBody()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasRid()) { return false; } if (!hasOperate()) { return false; } if (!hasEk()) { return false; } if (!hasId()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder( this.getUnknownFields()); while (true) { int tag = input.readTag(); switch (tag) { case 0: this.setUnknownFields(unknownFields.build()); onChanged(); return this; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { this.setUnknownFields(unknownFields.build()); onChanged(); return this; } break; } case 8: { bitField0_ |= 0x00000001; rid_ = input.readSInt32(); break; } case 16: { int rawValue = input.readEnum(); com.taobao.zeus.socket.protocol.Protocol.WebOperate value = com.taobao.zeus.socket.protocol.Protocol.WebOperate.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(2, rawValue); } else { bitField0_ |= 0x00000002; operate_ = value; } break; } case 24: { int rawValue = input.readEnum(); com.taobao.zeus.socket.protocol.Protocol.ExecuteKind value = com.taobao.zeus.socket.protocol.Protocol.ExecuteKind.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(3, rawValue); } else { bitField0_ |= 0x00000004; ek_ = value; } break; } case 34: { bitField0_ |= 0x00000008; id_ = input.readBytes(); break; } case 42: { bitField0_ |= 0x00000010; executor_ = input.readBytes(); break; } case 50: { bitField0_ |= 0x00000020; body_ = input.readBytes(); break; } } } } private int bitField0_; // required sint32 rid = 1; private int rid_ ; public boolean hasRid() { return ((bitField0_ & 0x00000001) == 0x00000001); } public int getRid() { return rid_; } public Builder setRid(int value) { bitField0_ |= 0x00000001; rid_ = value; onChanged(); return this; } public Builder clearRid() { bitField0_ = (bitField0_ & ~0x00000001); rid_ = 0; onChanged(); return this; } // required .com.taobao.zeus.socket.protocol.WebOperate operate = 2; private com.taobao.zeus.socket.protocol.Protocol.WebOperate operate_ = com.taobao.zeus.socket.protocol.Protocol.WebOperate.UpdateJob; public boolean hasOperate() { return ((bitField0_ & 0x00000002) == 0x00000002); } public com.taobao.zeus.socket.protocol.Protocol.WebOperate getOperate() { return operate_; } public Builder setOperate(com.taobao.zeus.socket.protocol.Protocol.WebOperate value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; operate_ = value; onChanged(); return this; } public Builder clearOperate() { bitField0_ = (bitField0_ & ~0x00000002); operate_ = com.taobao.zeus.socket.protocol.Protocol.WebOperate.UpdateJob; onChanged(); return this; } // required .com.taobao.zeus.socket.protocol.ExecuteKind ek = 3; private com.taobao.zeus.socket.protocol.Protocol.ExecuteKind ek_ = com.taobao.zeus.socket.protocol.Protocol.ExecuteKind.ScheduleKind; public boolean hasEk() { return ((bitField0_ & 0x00000004) == 0x00000004); } public com.taobao.zeus.socket.protocol.Protocol.ExecuteKind getEk() { return ek_; } public Builder setEk(com.taobao.zeus.socket.protocol.Protocol.ExecuteKind value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; ek_ = value; onChanged(); return this; } public Builder clearEk() { bitField0_ = (bitField0_ & ~0x00000004); ek_ = com.taobao.zeus.socket.protocol.Protocol.ExecuteKind.ScheduleKind; onChanged(); return this; } // required string id = 4; private Object id_ = ""; public boolean hasId() { return ((bitField0_ & 0x00000008) == 0x00000008); } public String getId() { Object ref = id_; if (!(ref instanceof String)) { String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); id_ = s; return s; } else { return (String) ref; } } public Builder setId(String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; id_ = value; onChanged(); return this; } public Builder clearId() { bitField0_ = (bitField0_ & ~0x00000008); id_ = getDefaultInstance().getId(); onChanged(); return this; } void setId(com.google.protobuf.ByteString value) { bitField0_ |= 0x00000008; id_ = value; onChanged(); } // optional string executor = 5; private Object executor_ = ""; public boolean hasExecutor() { return ((bitField0_ & 0x00000010) == 0x00000010); } public String getExecutor() { Object ref = executor_; if (!(ref instanceof String)) { String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); executor_ = s; return s; } else { return (String) ref; } } public Builder setExecutor(String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; executor_ = value; onChanged(); return this; } public Builder clearExecutor() { bitField0_ = (bitField0_ & ~0x00000010); executor_ = getDefaultInstance().getExecutor(); onChanged(); return this; } void setExecutor(com.google.protobuf.ByteString value) { bitField0_ |= 0x00000010; executor_ = value; onChanged(); } // optional bytes body = 6; private com.google.protobuf.ByteString body_ = com.google.protobuf.ByteString.EMPTY; public boolean hasBody() { return ((bitField0_ & 0x00000020) == 0x00000020); } public com.google.protobuf.ByteString getBody() { return body_; } public Builder setBody(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; body_ = value; onChanged(); return this; } public Builder clearBody() { bitField0_ = (bitField0_ & ~0x00000020); body_ = getDefaultInstance().getBody(); onChanged(); return this; } // @@protoc_insertion_point(builder_scope:com.taobao.zeus.socket.protocol.WebRequest) } static { defaultInstance = new WebRequest(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:com.taobao.zeus.socket.protocol.WebRequest) } public interface WebResponseOrBuilder extends com.google.protobuf.MessageOrBuilder { // required .com.taobao.zeus.socket.protocol.Status status = 1; boolean hasStatus(); com.taobao.zeus.socket.protocol.Protocol.Status getStatus(); // required sint32 rid = 2; boolean hasRid(); int getRid(); // required .com.taobao.zeus.socket.protocol.WebOperate operate = 3; boolean hasOperate(); com.taobao.zeus.socket.protocol.Protocol.WebOperate getOperate(); // optional string errorText = 4; boolean hasErrorText(); String getErrorText(); // optional bytes body = 5; boolean hasBody(); com.google.protobuf.ByteString getBody(); } public static final class WebResponse extends com.google.protobuf.GeneratedMessage implements WebResponseOrBuilder { // Use WebResponse.newBuilder() to construct. private WebResponse(Builder builder) { super(builder); } private WebResponse(boolean noInit) {} private static final WebResponse defaultInstance; public static WebResponse getDefaultInstance() { return defaultInstance; } public WebResponse getDefaultInstanceForType() { return defaultInstance; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.taobao.zeus.socket.protocol.Protocol.internal_static_com_taobao_zeus_socket_protocol_WebResponse_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.taobao.zeus.socket.protocol.Protocol.internal_static_com_taobao_zeus_socket_protocol_WebResponse_fieldAccessorTable; } private int bitField0_; // required .com.taobao.zeus.socket.protocol.Status status = 1; public static final int STATUS_FIELD_NUMBER = 1; private com.taobao.zeus.socket.protocol.Protocol.Status status_; public boolean hasStatus() { return ((bitField0_ & 0x00000001) == 0x00000001); } public com.taobao.zeus.socket.protocol.Protocol.Status getStatus() { return status_; } // required sint32 rid = 2; public static final int RID_FIELD_NUMBER = 2; private int rid_; public boolean hasRid() { return ((bitField0_ & 0x00000002) == 0x00000002); } public int getRid() { return rid_; } // required .com.taobao.zeus.socket.protocol.WebOperate operate = 3; public static final int OPERATE_FIELD_NUMBER = 3; private com.taobao.zeus.socket.protocol.Protocol.WebOperate operate_; public boolean hasOperate() { return ((bitField0_ & 0x00000004) == 0x00000004); } public com.taobao.zeus.socket.protocol.Protocol.WebOperate getOperate() { return operate_; } // optional string errorText = 4; public static final int ERRORTEXT_FIELD_NUMBER = 4; private Object errorText_; public boolean hasErrorText() { return ((bitField0_ & 0x00000008) == 0x00000008); } public String getErrorText() { Object ref = errorText_; if (ref instanceof String) { return (String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; String s = bs.toStringUtf8(); if (com.google.protobuf.Internal.isValidUtf8(bs)) { errorText_ = s; } return s; } } private com.google.protobuf.ByteString getErrorTextBytes() { Object ref = errorText_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((String) ref); errorText_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional bytes body = 5; public static final int BODY_FIELD_NUMBER = 5; private com.google.protobuf.ByteString body_; public boolean hasBody() { return ((bitField0_ & 0x00000010) == 0x00000010); } public com.google.protobuf.ByteString getBody() { return body_; } private void initFields() { status_ = com.taobao.zeus.socket.protocol.Protocol.Status.OK; rid_ = 0; operate_ = com.taobao.zeus.socket.protocol.Protocol.WebOperate.UpdateJob; errorText_ = ""; body_ = com.google.protobuf.ByteString.EMPTY; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (!hasStatus()) { memoizedIsInitialized = 0; return false; } if (!hasRid()) { memoizedIsInitialized = 0; return false; } if (!hasOperate()) { 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.writeEnum(1, status_.getNumber()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeSInt32(2, rid_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeEnum(3, operate_.getNumber()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeBytes(4, getErrorTextBytes()); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeBytes(5, body_); } 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 .computeEnumSize(1, status_.getNumber()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeSInt32Size(2, rid_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(3, operate_.getNumber()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(4, getErrorTextBytes()); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(5, body_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } @java.lang.Override protected Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static com.taobao.zeus.socket.protocol.Protocol.WebResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static com.taobao.zeus.socket.protocol.Protocol.WebResponse parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static com.taobao.zeus.socket.protocol.Protocol.WebResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static com.taobao.zeus.socket.protocol.Protocol.WebResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static com.taobao.zeus.socket.protocol.Protocol.WebResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static com.taobao.zeus.socket.protocol.Protocol.WebResponse parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static com.taobao.zeus.socket.protocol.Protocol.WebResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input)) { return builder.buildParsed(); } else { return null; } } public static com.taobao.zeus.socket.protocol.Protocol.WebResponse parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input, extensionRegistry)) { return builder.buildParsed(); } else { return null; } } public static com.taobao.zeus.socket.protocol.Protocol.WebResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static com.taobao.zeus.socket.protocol.Protocol.WebResponse parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.taobao.zeus.socket.protocol.Protocol.WebResponse prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements com.taobao.zeus.socket.protocol.Protocol.WebResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.taobao.zeus.socket.protocol.Protocol.internal_static_com_taobao_zeus_socket_protocol_WebResponse_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.taobao.zeus.socket.protocol.Protocol.internal_static_com_taobao_zeus_socket_protocol_WebResponse_fieldAccessorTable; } // Construct using com.taobao.zeus.socket.protocol.Protocol.WebResponse.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(); status_ = com.taobao.zeus.socket.protocol.Protocol.Status.OK; bitField0_ = (bitField0_ & ~0x00000001); rid_ = 0; bitField0_ = (bitField0_ & ~0x00000002); operate_ = com.taobao.zeus.socket.protocol.Protocol.WebOperate.UpdateJob; bitField0_ = (bitField0_ & ~0x00000004); errorText_ = ""; bitField0_ = (bitField0_ & ~0x00000008); body_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000010); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.taobao.zeus.socket.protocol.Protocol.WebResponse.getDescriptor(); } public com.taobao.zeus.socket.protocol.Protocol.WebResponse getDefaultInstanceForType() { return com.taobao.zeus.socket.protocol.Protocol.WebResponse.getDefaultInstance(); } public com.taobao.zeus.socket.protocol.Protocol.WebResponse build() { com.taobao.zeus.socket.protocol.Protocol.WebResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } private com.taobao.zeus.socket.protocol.Protocol.WebResponse buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { com.taobao.zeus.socket.protocol.Protocol.WebResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } return result; } public com.taobao.zeus.socket.protocol.Protocol.WebResponse buildPartial() { com.taobao.zeus.socket.protocol.Protocol.WebResponse result = new com.taobao.zeus.socket.protocol.Protocol.WebResponse(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.status_ = status_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.rid_ = rid_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.operate_ = operate_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.errorText_ = errorText_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } result.body_ = body_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.taobao.zeus.socket.protocol.Protocol.WebResponse) { return mergeFrom((com.taobao.zeus.socket.protocol.Protocol.WebResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.taobao.zeus.socket.protocol.Protocol.WebResponse other) { if (other == com.taobao.zeus.socket.protocol.Protocol.WebResponse.getDefaultInstance()) return this; if (other.hasStatus()) { setStatus(other.getStatus()); } if (other.hasRid()) { setRid(other.getRid()); } if (other.hasOperate()) { setOperate(other.getOperate()); } if (other.hasErrorText()) { setErrorText(other.getErrorText()); } if (other.hasBody()) { setBody(other.getBody()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasStatus()) { return false; } if (!hasRid()) { return false; } if (!hasOperate()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder( this.getUnknownFields()); while (true) { int tag = input.readTag(); switch (tag) { case 0: this.setUnknownFields(unknownFields.build()); onChanged(); return this; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { this.setUnknownFields(unknownFields.build()); onChanged(); return this; } break; } case 8: { int rawValue = input.readEnum(); com.taobao.zeus.socket.protocol.Protocol.Status value = com.taobao.zeus.socket.protocol.Protocol.Status.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(1, rawValue); } else { bitField0_ |= 0x00000001; status_ = value; } break; } case 16: { bitField0_ |= 0x00000002; rid_ = input.readSInt32(); break; } case 24: { int rawValue = input.readEnum(); com.taobao.zeus.socket.protocol.Protocol.WebOperate value = com.taobao.zeus.socket.protocol.Protocol.WebOperate.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(3, rawValue); } else { bitField0_ |= 0x00000004; operate_ = value; } break; } case 34: { bitField0_ |= 0x00000008; errorText_ = input.readBytes(); break; } case 42: { bitField0_ |= 0x00000010; body_ = input.readBytes(); break; } } } } private int bitField0_; // required .com.taobao.zeus.socket.protocol.Status status = 1; private com.taobao.zeus.socket.protocol.Protocol.Status status_ = com.taobao.zeus.socket.protocol.Protocol.Status.OK; public boolean hasStatus() { return ((bitField0_ & 0x00000001) == 0x00000001); } public com.taobao.zeus.socket.protocol.Protocol.Status getStatus() { return status_; } public Builder setStatus(com.taobao.zeus.socket.protocol.Protocol.Status value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; status_ = value; onChanged(); return this; } public Builder clearStatus() { bitField0_ = (bitField0_ & ~0x00000001); status_ = com.taobao.zeus.socket.protocol.Protocol.Status.OK; onChanged(); return this; } // required sint32 rid = 2; private int rid_ ; public boolean hasRid() { return ((bitField0_ & 0x00000002) == 0x00000002); } public int getRid() { return rid_; } public Builder setRid(int value) { bitField0_ |= 0x00000002; rid_ = value; onChanged(); return this; } public Builder clearRid() { bitField0_ = (bitField0_ & ~0x00000002); rid_ = 0; onChanged(); return this; } // required .com.taobao.zeus.socket.protocol.WebOperate operate = 3; private com.taobao.zeus.socket.protocol.Protocol.WebOperate operate_ = com.taobao.zeus.socket.protocol.Protocol.WebOperate.UpdateJob; public boolean hasOperate() { return ((bitField0_ & 0x00000004) == 0x00000004); } public com.taobao.zeus.socket.protocol.Protocol.WebOperate getOperate() { return operate_; } public Builder setOperate(com.taobao.zeus.socket.protocol.Protocol.WebOperate value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; operate_ = value; onChanged(); return this; } public Builder clearOperate() { bitField0_ = (bitField0_ & ~0x00000004); operate_ = com.taobao.zeus.socket.protocol.Protocol.WebOperate.UpdateJob; onChanged(); return this; } // optional string errorText = 4; private Object errorText_ = ""; public boolean hasErrorText() { return ((bitField0_ & 0x00000008) == 0x00000008); } public String getErrorText() { Object ref = errorText_; if (!(ref instanceof String)) { String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); errorText_ = s; return s; } else { return (String) ref; } } public Builder setErrorText(String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; errorText_ = value; onChanged(); return this; } public Builder clearErrorText() { bitField0_ = (bitField0_ & ~0x00000008); errorText_ = getDefaultInstance().getErrorText(); onChanged(); return this; } void setErrorText(com.google.protobuf.ByteString value) { bitField0_ |= 0x00000008; errorText_ = value; onChanged(); } // optional bytes body = 5; private com.google.protobuf.ByteString body_ = com.google.protobuf.ByteString.EMPTY; public boolean hasBody() { return ((bitField0_ & 0x00000010) == 0x00000010); } public com.google.protobuf.ByteString getBody() { return body_; } public Builder setBody(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; body_ = value; onChanged(); return this; } public Builder clearBody() { bitField0_ = (bitField0_ & ~0x00000010); body_ = getDefaultInstance().getBody(); onChanged(); return this; } // @@protoc_insertion_point(builder_scope:com.taobao.zeus.socket.protocol.WebResponse) } static { defaultInstance = new WebResponse(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:com.taobao.zeus.socket.protocol.WebResponse) } public interface RequestOrBuilder extends com.google.protobuf.MessageOrBuilder { // required sint32 rid = 1; boolean hasRid(); int getRid(); // required .com.taobao.zeus.socket.protocol.Operate operate = 2; boolean hasOperate(); com.taobao.zeus.socket.protocol.Protocol.Operate getOperate(); // optional bytes body = 3; boolean hasBody(); com.google.protobuf.ByteString getBody(); } public static final class Request extends com.google.protobuf.GeneratedMessage implements RequestOrBuilder { // Use Request.newBuilder() to construct. private Request(Builder builder) { super(builder); } private Request(boolean noInit) {} private static final Request defaultInstance; public static Request getDefaultInstance() { return defaultInstance; } public Request getDefaultInstanceForType() { return defaultInstance; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.taobao.zeus.socket.protocol.Protocol.internal_static_com_taobao_zeus_socket_protocol_Request_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.taobao.zeus.socket.protocol.Protocol.internal_static_com_taobao_zeus_socket_protocol_Request_fieldAccessorTable; } private int bitField0_; // required sint32 rid = 1; public static final int RID_FIELD_NUMBER = 1; private int rid_; public boolean hasRid() { return ((bitField0_ & 0x00000001) == 0x00000001); } public int getRid() { return rid_; } // required .com.taobao.zeus.socket.protocol.Operate operate = 2; public static final int OPERATE_FIELD_NUMBER = 2; private com.taobao.zeus.socket.protocol.Protocol.Operate operate_; public boolean hasOperate() { return ((bitField0_ & 0x00000002) == 0x00000002); } public com.taobao.zeus.socket.protocol.Protocol.Operate getOperate() { return operate_; } // optional bytes body = 3; public static final int BODY_FIELD_NUMBER = 3; private com.google.protobuf.ByteString body_; public boolean hasBody() { return ((bitField0_ & 0x00000004) == 0x00000004); } public com.google.protobuf.ByteString getBody() { return body_; } private void initFields() { rid_ = 0; operate_ = com.taobao.zeus.socket.protocol.Protocol.Operate.HeartBeat; body_ = com.google.protobuf.ByteString.EMPTY; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (!hasRid()) { memoizedIsInitialized = 0; return false; } if (!hasOperate()) { 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.writeSInt32(1, rid_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeEnum(2, operate_.getNumber()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBytes(3, body_); } 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 .computeSInt32Size(1, rid_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, operate_.getNumber()); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(3, body_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } @java.lang.Override protected Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static com.taobao.zeus.socket.protocol.Protocol.Request parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static com.taobao.zeus.socket.protocol.Protocol.Request parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static com.taobao.zeus.socket.protocol.Protocol.Request parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static com.taobao.zeus.socket.protocol.Protocol.Request parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static com.taobao.zeus.socket.protocol.Protocol.Request parseFrom(java.io.InputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static com.taobao.zeus.socket.protocol.Protocol.Request parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static com.taobao.zeus.socket.protocol.Protocol.Request parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input)) { return builder.buildParsed(); } else { return null; } } public static com.taobao.zeus.socket.protocol.Protocol.Request parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input, extensionRegistry)) { return builder.buildParsed(); } else { return null; } } public static com.taobao.zeus.socket.protocol.Protocol.Request parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static com.taobao.zeus.socket.protocol.Protocol.Request parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.taobao.zeus.socket.protocol.Protocol.Request prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements com.taobao.zeus.socket.protocol.Protocol.RequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.taobao.zeus.socket.protocol.Protocol.internal_static_com_taobao_zeus_socket_protocol_Request_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.taobao.zeus.socket.protocol.Protocol.internal_static_com_taobao_zeus_socket_protocol_Request_fieldAccessorTable; } // Construct using com.taobao.zeus.socket.protocol.Protocol.Request.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(); rid_ = 0; bitField0_ = (bitField0_ & ~0x00000001); operate_ = com.taobao.zeus.socket.protocol.Protocol.Operate.HeartBeat; bitField0_ = (bitField0_ & ~0x00000002); body_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000004); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.taobao.zeus.socket.protocol.Protocol.Request.getDescriptor(); } public com.taobao.zeus.socket.protocol.Protocol.Request getDefaultInstanceForType() { return com.taobao.zeus.socket.protocol.Protocol.Request.getDefaultInstance(); } public com.taobao.zeus.socket.protocol.Protocol.Request build() { com.taobao.zeus.socket.protocol.Protocol.Request result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } private com.taobao.zeus.socket.protocol.Protocol.Request buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { com.taobao.zeus.socket.protocol.Protocol.Request result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } return result; } public com.taobao.zeus.socket.protocol.Protocol.Request buildPartial() { com.taobao.zeus.socket.protocol.Protocol.Request result = new com.taobao.zeus.socket.protocol.Protocol.Request(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.rid_ = rid_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.operate_ = operate_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.body_ = body_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.taobao.zeus.socket.protocol.Protocol.Request) { return mergeFrom((com.taobao.zeus.socket.protocol.Protocol.Request)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.taobao.zeus.socket.protocol.Protocol.Request other) { if (other == com.taobao.zeus.socket.protocol.Protocol.Request.getDefaultInstance()) return this; if (other.hasRid()) { setRid(other.getRid()); } if (other.hasOperate()) { setOperate(other.getOperate()); } if (other.hasBody()) { setBody(other.getBody()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasRid()) { return false; } if (!hasOperate()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder( this.getUnknownFields()); while (true) { int tag = input.readTag(); switch (tag) { case 0: this.setUnknownFields(unknownFields.build()); onChanged(); return this; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { this.setUnknownFields(unknownFields.build()); onChanged(); return this; } break; } case 8: { bitField0_ |= 0x00000001; rid_ = input.readSInt32(); break; } case 16: { int rawValue = input.readEnum(); com.taobao.zeus.socket.protocol.Protocol.Operate value = com.taobao.zeus.socket.protocol.Protocol.Operate.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(2, rawValue); } else { bitField0_ |= 0x00000002; operate_ = value; } break; } case 26: { bitField0_ |= 0x00000004; body_ = input.readBytes(); break; } } } } private int bitField0_; // required sint32 rid = 1; private int rid_ ; public boolean hasRid() { return ((bitField0_ & 0x00000001) == 0x00000001); } public int getRid() { return rid_; } public Builder setRid(int value) { bitField0_ |= 0x00000001; rid_ = value; onChanged(); return this; } public Builder clearRid() { bitField0_ = (bitField0_ & ~0x00000001); rid_ = 0; onChanged(); return this; } // required .com.taobao.zeus.socket.protocol.Operate operate = 2; private com.taobao.zeus.socket.protocol.Protocol.Operate operate_ = com.taobao.zeus.socket.protocol.Protocol.Operate.HeartBeat; public boolean hasOperate() { return ((bitField0_ & 0x00000002) == 0x00000002); } public com.taobao.zeus.socket.protocol.Protocol.Operate getOperate() { return operate_; } public Builder setOperate(com.taobao.zeus.socket.protocol.Protocol.Operate value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; operate_ = value; onChanged(); return this; } public Builder clearOperate() { bitField0_ = (bitField0_ & ~0x00000002); operate_ = com.taobao.zeus.socket.protocol.Protocol.Operate.HeartBeat; onChanged(); return this; } // optional bytes body = 3; private com.google.protobuf.ByteString body_ = com.google.protobuf.ByteString.EMPTY; public boolean hasBody() { return ((bitField0_ & 0x00000004) == 0x00000004); } public com.google.protobuf.ByteString getBody() { return body_; } public Builder setBody(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; body_ = value; onChanged(); return this; } public Builder clearBody() { bitField0_ = (bitField0_ & ~0x00000004); body_ = getDefaultInstance().getBody(); onChanged(); return this; } // @@protoc_insertion_point(builder_scope:com.taobao.zeus.socket.protocol.Request) } static { defaultInstance = new Request(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:com.taobao.zeus.socket.protocol.Request) } public interface ResponseOrBuilder extends com.google.protobuf.MessageOrBuilder { // required .com.taobao.zeus.socket.protocol.Status status = 1; boolean hasStatus(); com.taobao.zeus.socket.protocol.Protocol.Status getStatus(); // required sint32 rid = 2; boolean hasRid(); int getRid(); // required .com.taobao.zeus.socket.protocol.Operate operate = 3; boolean hasOperate(); com.taobao.zeus.socket.protocol.Protocol.Operate getOperate(); // optional string errorText = 4; boolean hasErrorText(); String getErrorText(); // optional bytes body = 5; boolean hasBody(); com.google.protobuf.ByteString getBody(); } public static final class Response extends com.google.protobuf.GeneratedMessage implements ResponseOrBuilder { // Use Response.newBuilder() to construct. private Response(Builder builder) { super(builder); } private Response(boolean noInit) {} private static final Response defaultInstance; public static Response getDefaultInstance() { return defaultInstance; } public Response getDefaultInstanceForType() { return defaultInstance; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.taobao.zeus.socket.protocol.Protocol.internal_static_com_taobao_zeus_socket_protocol_Response_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.taobao.zeus.socket.protocol.Protocol.internal_static_com_taobao_zeus_socket_protocol_Response_fieldAccessorTable; } private int bitField0_; // required .com.taobao.zeus.socket.protocol.Status status = 1; public static final int STATUS_FIELD_NUMBER = 1; private com.taobao.zeus.socket.protocol.Protocol.Status status_; public boolean hasStatus() { return ((bitField0_ & 0x00000001) == 0x00000001); } public com.taobao.zeus.socket.protocol.Protocol.Status getStatus() { return status_; } // required sint32 rid = 2; public static final int RID_FIELD_NUMBER = 2; private int rid_; public boolean hasRid() { return ((bitField0_ & 0x00000002) == 0x00000002); } public int getRid() { return rid_; } // required .com.taobao.zeus.socket.protocol.Operate operate = 3; public static final int OPERATE_FIELD_NUMBER = 3; private com.taobao.zeus.socket.protocol.Protocol.Operate operate_; public boolean hasOperate() { return ((bitField0_ & 0x00000004) == 0x00000004); } public com.taobao.zeus.socket.protocol.Protocol.Operate getOperate() { return operate_; } // optional string errorText = 4; public static final int ERRORTEXT_FIELD_NUMBER = 4; private Object errorText_; public boolean hasErrorText() { return ((bitField0_ & 0x00000008) == 0x00000008); } public String getErrorText() { Object ref = errorText_; if (ref instanceof String) { return (String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; String s = bs.toStringUtf8(); if (com.google.protobuf.Internal.isValidUtf8(bs)) { errorText_ = s; } return s; } } private com.google.protobuf.ByteString getErrorTextBytes() { Object ref = errorText_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((String) ref); errorText_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional bytes body = 5; public static final int BODY_FIELD_NUMBER = 5; private com.google.protobuf.ByteString body_; public boolean hasBody() { return ((bitField0_ & 0x00000010) == 0x00000010); } public com.google.protobuf.ByteString getBody() { return body_; } private void initFields() { status_ = com.taobao.zeus.socket.protocol.Protocol.Status.OK; rid_ = 0; operate_ = com.taobao.zeus.socket.protocol.Protocol.Operate.HeartBeat; errorText_ = ""; body_ = com.google.protobuf.ByteString.EMPTY; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (!hasStatus()) { memoizedIsInitialized = 0; return false; } if (!hasRid()) { memoizedIsInitialized = 0; return false; } if (!hasOperate()) { 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.writeEnum(1, status_.getNumber()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeSInt32(2, rid_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeEnum(3, operate_.getNumber()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeBytes(4, getErrorTextBytes()); } if (((bitField0_ & 0x00000010) == 0x00000010)) { output.writeBytes(5, body_); } 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 .computeEnumSize(1, status_.getNumber()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeSInt32Size(2, rid_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(3, operate_.getNumber()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(4, getErrorTextBytes()); } if (((bitField0_ & 0x00000010) == 0x00000010)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(5, body_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } @java.lang.Override protected Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static com.taobao.zeus.socket.protocol.Protocol.Response parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static com.taobao.zeus.socket.protocol.Protocol.Response parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static com.taobao.zeus.socket.protocol.Protocol.Response parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static com.taobao.zeus.socket.protocol.Protocol.Response parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static com.taobao.zeus.socket.protocol.Protocol.Response parseFrom(java.io.InputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static com.taobao.zeus.socket.protocol.Protocol.Response parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static com.taobao.zeus.socket.protocol.Protocol.Response parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input)) { return builder.buildParsed(); } else { return null; } } public static com.taobao.zeus.socket.protocol.Protocol.Response parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input, extensionRegistry)) { return builder.buildParsed(); } else { return null; } } public static com.taobao.zeus.socket.protocol.Protocol.Response parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static com.taobao.zeus.socket.protocol.Protocol.Response parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.taobao.zeus.socket.protocol.Protocol.Response prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements com.taobao.zeus.socket.protocol.Protocol.ResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.taobao.zeus.socket.protocol.Protocol.internal_static_com_taobao_zeus_socket_protocol_Response_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.taobao.zeus.socket.protocol.Protocol.internal_static_com_taobao_zeus_socket_protocol_Response_fieldAccessorTable; } // Construct using com.taobao.zeus.socket.protocol.Protocol.Response.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(); status_ = com.taobao.zeus.socket.protocol.Protocol.Status.OK; bitField0_ = (bitField0_ & ~0x00000001); rid_ = 0; bitField0_ = (bitField0_ & ~0x00000002); operate_ = com.taobao.zeus.socket.protocol.Protocol.Operate.HeartBeat; bitField0_ = (bitField0_ & ~0x00000004); errorText_ = ""; bitField0_ = (bitField0_ & ~0x00000008); body_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000010); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.taobao.zeus.socket.protocol.Protocol.Response.getDescriptor(); } public com.taobao.zeus.socket.protocol.Protocol.Response getDefaultInstanceForType() { return com.taobao.zeus.socket.protocol.Protocol.Response.getDefaultInstance(); } public com.taobao.zeus.socket.protocol.Protocol.Response build() { com.taobao.zeus.socket.protocol.Protocol.Response result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } private com.taobao.zeus.socket.protocol.Protocol.Response buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { com.taobao.zeus.socket.protocol.Protocol.Response result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } return result; } public com.taobao.zeus.socket.protocol.Protocol.Response buildPartial() { com.taobao.zeus.socket.protocol.Protocol.Response result = new com.taobao.zeus.socket.protocol.Protocol.Response(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.status_ = status_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.rid_ = rid_; if (((from_bitField0_ & 0x00000004) == 0x00000004)) { to_bitField0_ |= 0x00000004; } result.operate_ = operate_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000008; } result.errorText_ = errorText_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000010; } result.body_ = body_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.taobao.zeus.socket.protocol.Protocol.Response) { return mergeFrom((com.taobao.zeus.socket.protocol.Protocol.Response)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.taobao.zeus.socket.protocol.Protocol.Response other) { if (other == com.taobao.zeus.socket.protocol.Protocol.Response.getDefaultInstance()) return this; if (other.hasStatus()) { setStatus(other.getStatus()); } if (other.hasRid()) { setRid(other.getRid()); } if (other.hasOperate()) { setOperate(other.getOperate()); } if (other.hasErrorText()) { setErrorText(other.getErrorText()); } if (other.hasBody()) { setBody(other.getBody()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasStatus()) { return false; } if (!hasRid()) { return false; } if (!hasOperate()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder( this.getUnknownFields()); while (true) { int tag = input.readTag(); switch (tag) { case 0: this.setUnknownFields(unknownFields.build()); onChanged(); return this; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { this.setUnknownFields(unknownFields.build()); onChanged(); return this; } break; } case 8: { int rawValue = input.readEnum(); com.taobao.zeus.socket.protocol.Protocol.Status value = com.taobao.zeus.socket.protocol.Protocol.Status.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(1, rawValue); } else { bitField0_ |= 0x00000001; status_ = value; } break; } case 16: { bitField0_ |= 0x00000002; rid_ = input.readSInt32(); break; } case 24: { int rawValue = input.readEnum(); com.taobao.zeus.socket.protocol.Protocol.Operate value = com.taobao.zeus.socket.protocol.Protocol.Operate.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(3, rawValue); } else { bitField0_ |= 0x00000004; operate_ = value; } break; } case 34: { bitField0_ |= 0x00000008; errorText_ = input.readBytes(); break; } case 42: { bitField0_ |= 0x00000010; body_ = input.readBytes(); break; } } } } private int bitField0_; // required .com.taobao.zeus.socket.protocol.Status status = 1; private com.taobao.zeus.socket.protocol.Protocol.Status status_ = com.taobao.zeus.socket.protocol.Protocol.Status.OK; public boolean hasStatus() { return ((bitField0_ & 0x00000001) == 0x00000001); } public com.taobao.zeus.socket.protocol.Protocol.Status getStatus() { return status_; } public Builder setStatus(com.taobao.zeus.socket.protocol.Protocol.Status value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; status_ = value; onChanged(); return this; } public Builder clearStatus() { bitField0_ = (bitField0_ & ~0x00000001); status_ = com.taobao.zeus.socket.protocol.Protocol.Status.OK; onChanged(); return this; } // required sint32 rid = 2; private int rid_ ; public boolean hasRid() { return ((bitField0_ & 0x00000002) == 0x00000002); } public int getRid() { return rid_; } public Builder setRid(int value) { bitField0_ |= 0x00000002; rid_ = value; onChanged(); return this; } public Builder clearRid() { bitField0_ = (bitField0_ & ~0x00000002); rid_ = 0; onChanged(); return this; } // required .com.taobao.zeus.socket.protocol.Operate operate = 3; private com.taobao.zeus.socket.protocol.Protocol.Operate operate_ = com.taobao.zeus.socket.protocol.Protocol.Operate.HeartBeat; public boolean hasOperate() { return ((bitField0_ & 0x00000004) == 0x00000004); } public com.taobao.zeus.socket.protocol.Protocol.Operate getOperate() { return operate_; } public Builder setOperate(com.taobao.zeus.socket.protocol.Protocol.Operate value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; operate_ = value; onChanged(); return this; } public Builder clearOperate() { bitField0_ = (bitField0_ & ~0x00000004); operate_ = com.taobao.zeus.socket.protocol.Protocol.Operate.HeartBeat; onChanged(); return this; } // optional string errorText = 4; private Object errorText_ = ""; public boolean hasErrorText() { return ((bitField0_ & 0x00000008) == 0x00000008); } public String getErrorText() { Object ref = errorText_; if (!(ref instanceof String)) { String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); errorText_ = s; return s; } else { return (String) ref; } } public Builder setErrorText(String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; errorText_ = value; onChanged(); return this; } public Builder clearErrorText() { bitField0_ = (bitField0_ & ~0x00000008); errorText_ = getDefaultInstance().getErrorText(); onChanged(); return this; } void setErrorText(com.google.protobuf.ByteString value) { bitField0_ |= 0x00000008; errorText_ = value; onChanged(); } // optional bytes body = 5; private com.google.protobuf.ByteString body_ = com.google.protobuf.ByteString.EMPTY; public boolean hasBody() { return ((bitField0_ & 0x00000010) == 0x00000010); } public com.google.protobuf.ByteString getBody() { return body_; } public Builder setBody(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; body_ = value; onChanged(); return this; } public Builder clearBody() { bitField0_ = (bitField0_ & ~0x00000010); body_ = getDefaultInstance().getBody(); onChanged(); return this; } // @@protoc_insertion_point(builder_scope:com.taobao.zeus.socket.protocol.Response) } static { defaultInstance = new Response(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:com.taobao.zeus.socket.protocol.Response) } public interface HeartBeatMessageOrBuilder extends com.google.protobuf.MessageOrBuilder { // repeated string runnings = 1; java.util.List<String> getRunningsList(); int getRunningsCount(); String getRunnings(int index); // repeated string debugRunnings = 2; java.util.List<String> getDebugRunningsList(); int getDebugRunningsCount(); String getDebugRunnings(int index); // repeated string manualRunnings = 3; java.util.List<String> getManualRunningsList(); int getManualRunningsCount(); String getManualRunnings(int index); // optional int64 timestamp = 4; boolean hasTimestamp(); long getTimestamp(); // optional float mem_rate = 5; boolean hasMemRate(); float getMemRate(); // optional string host = 6; boolean hasHost(); String getHost(); // optional float cpu_load_per_core = 7; boolean hasCpuLoadPerCore(); float getCpuLoadPerCore(); } public static final class HeartBeatMessage extends com.google.protobuf.GeneratedMessage implements HeartBeatMessageOrBuilder { // Use HeartBeatMessage.newBuilder() to construct. private HeartBeatMessage(Builder builder) { super(builder); } private HeartBeatMessage(boolean noInit) {} private static final HeartBeatMessage defaultInstance; public static HeartBeatMessage getDefaultInstance() { return defaultInstance; } public HeartBeatMessage getDefaultInstanceForType() { return defaultInstance; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.taobao.zeus.socket.protocol.Protocol.internal_static_com_taobao_zeus_socket_protocol_HeartBeatMessage_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.taobao.zeus.socket.protocol.Protocol.internal_static_com_taobao_zeus_socket_protocol_HeartBeatMessage_fieldAccessorTable; } private int bitField0_; // repeated string runnings = 1; public static final int RUNNINGS_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList runnings_; public java.util.List<String> getRunningsList() { return runnings_; } public int getRunningsCount() { return runnings_.size(); } public String getRunnings(int index) { return runnings_.get(index); } // repeated string debugRunnings = 2; public static final int DEBUGRUNNINGS_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList debugRunnings_; public java.util.List<String> getDebugRunningsList() { return debugRunnings_; } public int getDebugRunningsCount() { return debugRunnings_.size(); } public String getDebugRunnings(int index) { return debugRunnings_.get(index); } // repeated string manualRunnings = 3; public static final int MANUALRUNNINGS_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList manualRunnings_; public java.util.List<String> getManualRunningsList() { return manualRunnings_; } public int getManualRunningsCount() { return manualRunnings_.size(); } public String getManualRunnings(int index) { return manualRunnings_.get(index); } // optional int64 timestamp = 4; public static final int TIMESTAMP_FIELD_NUMBER = 4; private long timestamp_; public boolean hasTimestamp() { return ((bitField0_ & 0x00000001) == 0x00000001); } public long getTimestamp() { return timestamp_; } // optional float mem_rate = 5; public static final int MEM_RATE_FIELD_NUMBER = 5; private float memRate_; public boolean hasMemRate() { return ((bitField0_ & 0x00000002) == 0x00000002); } public float getMemRate() { return memRate_; } // optional string host = 6; public static final int HOST_FIELD_NUMBER = 6; private Object host_; public boolean hasHost() { return ((bitField0_ & 0x00000004) == 0x00000004); } public String getHost() { Object ref = host_; if (ref instanceof String) { return (String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; String s = bs.toStringUtf8(); if (com.google.protobuf.Internal.isValidUtf8(bs)) { host_ = s; } return s; } } private com.google.protobuf.ByteString getHostBytes() { Object ref = host_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((String) ref); host_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional float cpu_load_per_core = 7; public static final int CPU_LOAD_PER_CORE_FIELD_NUMBER = 7; private float cpuLoadPerCore_; public boolean hasCpuLoadPerCore() { return ((bitField0_ & 0x00000008) == 0x00000008); } public float getCpuLoadPerCore() { return cpuLoadPerCore_; } private void initFields() { runnings_ = com.google.protobuf.LazyStringArrayList.EMPTY; debugRunnings_ = com.google.protobuf.LazyStringArrayList.EMPTY; manualRunnings_ = com.google.protobuf.LazyStringArrayList.EMPTY; timestamp_ = 0L; memRate_ = 0F; host_ = ""; cpuLoadPerCore_ = 0F; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); for (int i = 0; i < runnings_.size(); i++) { output.writeBytes(1, runnings_.getByteString(i)); } for (int i = 0; i < debugRunnings_.size(); i++) { output.writeBytes(2, debugRunnings_.getByteString(i)); } for (int i = 0; i < manualRunnings_.size(); i++) { output.writeBytes(3, manualRunnings_.getByteString(i)); } if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeInt64(4, timestamp_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeFloat(5, memRate_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { output.writeBytes(6, getHostBytes()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { output.writeFloat(7, cpuLoadPerCore_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; { int dataSize = 0; for (int i = 0; i < runnings_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(runnings_.getByteString(i)); } size += dataSize; size += 1 * getRunningsList().size(); } { int dataSize = 0; for (int i = 0; i < debugRunnings_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(debugRunnings_.getByteString(i)); } size += dataSize; size += 1 * getDebugRunningsList().size(); } { int dataSize = 0; for (int i = 0; i < manualRunnings_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeBytesSizeNoTag(manualRunnings_.getByteString(i)); } size += dataSize; size += 1 * getManualRunningsList().size(); } if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(4, timestamp_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeFloatSize(5, memRate_); } if (((bitField0_ & 0x00000004) == 0x00000004)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(6, getHostBytes()); } if (((bitField0_ & 0x00000008) == 0x00000008)) { size += com.google.protobuf.CodedOutputStream .computeFloatSize(7, cpuLoadPerCore_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } @java.lang.Override protected Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static com.taobao.zeus.socket.protocol.Protocol.HeartBeatMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static com.taobao.zeus.socket.protocol.Protocol.HeartBeatMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static com.taobao.zeus.socket.protocol.Protocol.HeartBeatMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static com.taobao.zeus.socket.protocol.Protocol.HeartBeatMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static com.taobao.zeus.socket.protocol.Protocol.HeartBeatMessage parseFrom(java.io.InputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static com.taobao.zeus.socket.protocol.Protocol.HeartBeatMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static com.taobao.zeus.socket.protocol.Protocol.HeartBeatMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input)) { return builder.buildParsed(); } else { return null; } } public static com.taobao.zeus.socket.protocol.Protocol.HeartBeatMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input, extensionRegistry)) { return builder.buildParsed(); } else { return null; } } public static com.taobao.zeus.socket.protocol.Protocol.HeartBeatMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static com.taobao.zeus.socket.protocol.Protocol.HeartBeatMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.taobao.zeus.socket.protocol.Protocol.HeartBeatMessage prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements com.taobao.zeus.socket.protocol.Protocol.HeartBeatMessageOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.taobao.zeus.socket.protocol.Protocol.internal_static_com_taobao_zeus_socket_protocol_HeartBeatMessage_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.taobao.zeus.socket.protocol.Protocol.internal_static_com_taobao_zeus_socket_protocol_HeartBeatMessage_fieldAccessorTable; } // Construct using com.taobao.zeus.socket.protocol.Protocol.HeartBeatMessage.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(); runnings_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); debugRunnings_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); manualRunnings_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000004); timestamp_ = 0L; bitField0_ = (bitField0_ & ~0x00000008); memRate_ = 0F; bitField0_ = (bitField0_ & ~0x00000010); host_ = ""; bitField0_ = (bitField0_ & ~0x00000020); cpuLoadPerCore_ = 0F; bitField0_ = (bitField0_ & ~0x00000040); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.taobao.zeus.socket.protocol.Protocol.HeartBeatMessage.getDescriptor(); } public com.taobao.zeus.socket.protocol.Protocol.HeartBeatMessage getDefaultInstanceForType() { return com.taobao.zeus.socket.protocol.Protocol.HeartBeatMessage.getDefaultInstance(); } public com.taobao.zeus.socket.protocol.Protocol.HeartBeatMessage build() { com.taobao.zeus.socket.protocol.Protocol.HeartBeatMessage result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } private com.taobao.zeus.socket.protocol.Protocol.HeartBeatMessage buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { com.taobao.zeus.socket.protocol.Protocol.HeartBeatMessage result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } return result; } public com.taobao.zeus.socket.protocol.Protocol.HeartBeatMessage buildPartial() { com.taobao.zeus.socket.protocol.Protocol.HeartBeatMessage result = new com.taobao.zeus.socket.protocol.Protocol.HeartBeatMessage(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { runnings_ = new com.google.protobuf.UnmodifiableLazyStringList( runnings_); bitField0_ = (bitField0_ & ~0x00000001); } result.runnings_ = runnings_; if (((bitField0_ & 0x00000002) == 0x00000002)) { debugRunnings_ = new com.google.protobuf.UnmodifiableLazyStringList( debugRunnings_); bitField0_ = (bitField0_ & ~0x00000002); } result.debugRunnings_ = debugRunnings_; if (((bitField0_ & 0x00000004) == 0x00000004)) { manualRunnings_ = new com.google.protobuf.UnmodifiableLazyStringList( manualRunnings_); bitField0_ = (bitField0_ & ~0x00000004); } result.manualRunnings_ = manualRunnings_; if (((from_bitField0_ & 0x00000008) == 0x00000008)) { to_bitField0_ |= 0x00000001; } result.timestamp_ = timestamp_; if (((from_bitField0_ & 0x00000010) == 0x00000010)) { to_bitField0_ |= 0x00000002; } result.memRate_ = memRate_; if (((from_bitField0_ & 0x00000020) == 0x00000020)) { to_bitField0_ |= 0x00000004; } result.host_ = host_; if (((from_bitField0_ & 0x00000040) == 0x00000040)) { to_bitField0_ |= 0x00000008; } result.cpuLoadPerCore_ = cpuLoadPerCore_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.taobao.zeus.socket.protocol.Protocol.HeartBeatMessage) { return mergeFrom((com.taobao.zeus.socket.protocol.Protocol.HeartBeatMessage)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.taobao.zeus.socket.protocol.Protocol.HeartBeatMessage other) { if (other == com.taobao.zeus.socket.protocol.Protocol.HeartBeatMessage.getDefaultInstance()) return this; if (!other.runnings_.isEmpty()) { if (runnings_.isEmpty()) { runnings_ = other.runnings_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureRunningsIsMutable(); runnings_.addAll(other.runnings_); } onChanged(); } if (!other.debugRunnings_.isEmpty()) { if (debugRunnings_.isEmpty()) { debugRunnings_ = other.debugRunnings_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureDebugRunningsIsMutable(); debugRunnings_.addAll(other.debugRunnings_); } onChanged(); } if (!other.manualRunnings_.isEmpty()) { if (manualRunnings_.isEmpty()) { manualRunnings_ = other.manualRunnings_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureManualRunningsIsMutable(); manualRunnings_.addAll(other.manualRunnings_); } onChanged(); } if (other.hasTimestamp()) { setTimestamp(other.getTimestamp()); } if (other.hasMemRate()) { setMemRate(other.getMemRate()); } if (other.hasHost()) { setHost(other.getHost()); } if (other.hasCpuLoadPerCore()) { setCpuLoadPerCore(other.getCpuLoadPerCore()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder( this.getUnknownFields()); while (true) { int tag = input.readTag(); switch (tag) { case 0: this.setUnknownFields(unknownFields.build()); onChanged(); return this; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { this.setUnknownFields(unknownFields.build()); onChanged(); return this; } break; } case 10: { ensureRunningsIsMutable(); runnings_.add(input.readBytes()); break; } case 18: { ensureDebugRunningsIsMutable(); debugRunnings_.add(input.readBytes()); break; } case 26: { ensureManualRunningsIsMutable(); manualRunnings_.add(input.readBytes()); break; } case 32: { bitField0_ |= 0x00000008; timestamp_ = input.readInt64(); break; } case 45: { bitField0_ |= 0x00000010; memRate_ = input.readFloat(); break; } case 50: { bitField0_ |= 0x00000020; host_ = input.readBytes(); break; } case 61: { bitField0_ |= 0x00000040; cpuLoadPerCore_ = input.readFloat(); break; } } } } private int bitField0_; // repeated string runnings = 1; private com.google.protobuf.LazyStringList runnings_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureRunningsIsMutable() { if (!((bitField0_ & 0x00000001) == 0x00000001)) { runnings_ = new com.google.protobuf.LazyStringArrayList(runnings_); bitField0_ |= 0x00000001; } } public java.util.List<String> getRunningsList() { return java.util.Collections.unmodifiableList(runnings_); } public int getRunningsCount() { return runnings_.size(); } public String getRunnings(int index) { return runnings_.get(index); } public Builder setRunnings( int index, String value) { if (value == null) { throw new NullPointerException(); } ensureRunningsIsMutable(); runnings_.set(index, value); onChanged(); return this; } public Builder addRunnings(String value) { if (value == null) { throw new NullPointerException(); } ensureRunningsIsMutable(); runnings_.add(value); onChanged(); return this; } public Builder addAllRunnings( java.lang.Iterable<String> values) { ensureRunningsIsMutable(); super.addAll(values, runnings_); onChanged(); return this; } public Builder clearRunnings() { runnings_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } void addRunnings(com.google.protobuf.ByteString value) { ensureRunningsIsMutable(); runnings_.add(value); onChanged(); } // repeated string debugRunnings = 2; private com.google.protobuf.LazyStringList debugRunnings_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureDebugRunningsIsMutable() { if (!((bitField0_ & 0x00000002) == 0x00000002)) { debugRunnings_ = new com.google.protobuf.LazyStringArrayList(debugRunnings_); bitField0_ |= 0x00000002; } } public java.util.List<String> getDebugRunningsList() { return java.util.Collections.unmodifiableList(debugRunnings_); } public int getDebugRunningsCount() { return debugRunnings_.size(); } public String getDebugRunnings(int index) { return debugRunnings_.get(index); } public Builder setDebugRunnings( int index, String value) { if (value == null) { throw new NullPointerException(); } ensureDebugRunningsIsMutable(); debugRunnings_.set(index, value); onChanged(); return this; } public Builder addDebugRunnings(String value) { if (value == null) { throw new NullPointerException(); } ensureDebugRunningsIsMutable(); debugRunnings_.add(value); onChanged(); return this; } public Builder addAllDebugRunnings( java.lang.Iterable<String> values) { ensureDebugRunningsIsMutable(); super.addAll(values, debugRunnings_); onChanged(); return this; } public Builder clearDebugRunnings() { debugRunnings_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } void addDebugRunnings(com.google.protobuf.ByteString value) { ensureDebugRunningsIsMutable(); debugRunnings_.add(value); onChanged(); } // repeated string manualRunnings = 3; private com.google.protobuf.LazyStringList manualRunnings_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureManualRunningsIsMutable() { if (!((bitField0_ & 0x00000004) == 0x00000004)) { manualRunnings_ = new com.google.protobuf.LazyStringArrayList(manualRunnings_); bitField0_ |= 0x00000004; } } public java.util.List<String> getManualRunningsList() { return java.util.Collections.unmodifiableList(manualRunnings_); } public int getManualRunningsCount() { return manualRunnings_.size(); } public String getManualRunnings(int index) { return manualRunnings_.get(index); } public Builder setManualRunnings( int index, String value) { if (value == null) { throw new NullPointerException(); } ensureManualRunningsIsMutable(); manualRunnings_.set(index, value); onChanged(); return this; } public Builder addManualRunnings(String value) { if (value == null) { throw new NullPointerException(); } ensureManualRunningsIsMutable(); manualRunnings_.add(value); onChanged(); return this; } public Builder addAllManualRunnings( java.lang.Iterable<String> values) { ensureManualRunningsIsMutable(); super.addAll(values, manualRunnings_); onChanged(); return this; } public Builder clearManualRunnings() { manualRunnings_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } void addManualRunnings(com.google.protobuf.ByteString value) { ensureManualRunningsIsMutable(); manualRunnings_.add(value); onChanged(); } // optional int64 timestamp = 4; private long timestamp_ ; public boolean hasTimestamp() { return ((bitField0_ & 0x00000008) == 0x00000008); } public long getTimestamp() { return timestamp_; } public Builder setTimestamp(long value) { bitField0_ |= 0x00000008; timestamp_ = value; onChanged(); return this; } public Builder clearTimestamp() { bitField0_ = (bitField0_ & ~0x00000008); timestamp_ = 0L; onChanged(); return this; } // optional float mem_rate = 5; private float memRate_ ; public boolean hasMemRate() { return ((bitField0_ & 0x00000010) == 0x00000010); } public float getMemRate() { return memRate_; } public Builder setMemRate(float value) { bitField0_ |= 0x00000010; memRate_ = value; onChanged(); return this; } public Builder clearMemRate() { bitField0_ = (bitField0_ & ~0x00000010); memRate_ = 0F; onChanged(); return this; } // optional string host = 6; private Object host_ = ""; public boolean hasHost() { return ((bitField0_ & 0x00000020) == 0x00000020); } public String getHost() { Object ref = host_; if (!(ref instanceof String)) { String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); host_ = s; return s; } else { return (String) ref; } } public Builder setHost(String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; host_ = value; onChanged(); return this; } public Builder clearHost() { bitField0_ = (bitField0_ & ~0x00000020); host_ = getDefaultInstance().getHost(); onChanged(); return this; } void setHost(com.google.protobuf.ByteString value) { bitField0_ |= 0x00000020; host_ = value; onChanged(); } // optional float cpu_load_per_core = 7; private float cpuLoadPerCore_ ; public boolean hasCpuLoadPerCore() { return ((bitField0_ & 0x00000040) == 0x00000040); } public float getCpuLoadPerCore() { return cpuLoadPerCore_; } public Builder setCpuLoadPerCore(float value) { bitField0_ |= 0x00000040; cpuLoadPerCore_ = value; onChanged(); return this; } public Builder clearCpuLoadPerCore() { bitField0_ = (bitField0_ & ~0x00000040); cpuLoadPerCore_ = 0F; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:com.taobao.zeus.socket.protocol.HeartBeatMessage) } static { defaultInstance = new HeartBeatMessage(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:com.taobao.zeus.socket.protocol.HeartBeatMessage) } public interface ExecuteMessageOrBuilder extends com.google.protobuf.MessageOrBuilder { // required string jobId = 1; boolean hasJobId(); String getJobId(); // optional sint32 exitCode = 2; boolean hasExitCode(); int getExitCode(); } public static final class ExecuteMessage extends com.google.protobuf.GeneratedMessage implements ExecuteMessageOrBuilder { // Use ExecuteMessage.newBuilder() to construct. private ExecuteMessage(Builder builder) { super(builder); } private ExecuteMessage(boolean noInit) {} private static final ExecuteMessage defaultInstance; public static ExecuteMessage getDefaultInstance() { return defaultInstance; } public ExecuteMessage getDefaultInstanceForType() { return defaultInstance; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.taobao.zeus.socket.protocol.Protocol.internal_static_com_taobao_zeus_socket_protocol_ExecuteMessage_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.taobao.zeus.socket.protocol.Protocol.internal_static_com_taobao_zeus_socket_protocol_ExecuteMessage_fieldAccessorTable; } private int bitField0_; // required string jobId = 1; public static final int JOBID_FIELD_NUMBER = 1; private Object jobId_; public boolean hasJobId() { return ((bitField0_ & 0x00000001) == 0x00000001); } public String getJobId() { Object ref = jobId_; if (ref instanceof String) { return (String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; String s = bs.toStringUtf8(); if (com.google.protobuf.Internal.isValidUtf8(bs)) { jobId_ = s; } return s; } } private com.google.protobuf.ByteString getJobIdBytes() { Object ref = jobId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((String) ref); jobId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional sint32 exitCode = 2; public static final int EXITCODE_FIELD_NUMBER = 2; private int exitCode_; public boolean hasExitCode() { return ((bitField0_ & 0x00000002) == 0x00000002); } public int getExitCode() { return exitCode_; } private void initFields() { jobId_ = ""; exitCode_ = 0; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (!hasJobId()) { 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, getJobIdBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeSInt32(2, exitCode_); } 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, getJobIdBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeSInt32Size(2, exitCode_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } @java.lang.Override protected Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static com.taobao.zeus.socket.protocol.Protocol.ExecuteMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static com.taobao.zeus.socket.protocol.Protocol.ExecuteMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static com.taobao.zeus.socket.protocol.Protocol.ExecuteMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static com.taobao.zeus.socket.protocol.Protocol.ExecuteMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static com.taobao.zeus.socket.protocol.Protocol.ExecuteMessage parseFrom(java.io.InputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static com.taobao.zeus.socket.protocol.Protocol.ExecuteMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static com.taobao.zeus.socket.protocol.Protocol.ExecuteMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input)) { return builder.buildParsed(); } else { return null; } } public static com.taobao.zeus.socket.protocol.Protocol.ExecuteMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input, extensionRegistry)) { return builder.buildParsed(); } else { return null; } } public static com.taobao.zeus.socket.protocol.Protocol.ExecuteMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static com.taobao.zeus.socket.protocol.Protocol.ExecuteMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.taobao.zeus.socket.protocol.Protocol.ExecuteMessage prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements com.taobao.zeus.socket.protocol.Protocol.ExecuteMessageOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.taobao.zeus.socket.protocol.Protocol.internal_static_com_taobao_zeus_socket_protocol_ExecuteMessage_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.taobao.zeus.socket.protocol.Protocol.internal_static_com_taobao_zeus_socket_protocol_ExecuteMessage_fieldAccessorTable; } // Construct using com.taobao.zeus.socket.protocol.Protocol.ExecuteMessage.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(); jobId_ = ""; bitField0_ = (bitField0_ & ~0x00000001); exitCode_ = 0; bitField0_ = (bitField0_ & ~0x00000002); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.taobao.zeus.socket.protocol.Protocol.ExecuteMessage.getDescriptor(); } public com.taobao.zeus.socket.protocol.Protocol.ExecuteMessage getDefaultInstanceForType() { return com.taobao.zeus.socket.protocol.Protocol.ExecuteMessage.getDefaultInstance(); } public com.taobao.zeus.socket.protocol.Protocol.ExecuteMessage build() { com.taobao.zeus.socket.protocol.Protocol.ExecuteMessage result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } private com.taobao.zeus.socket.protocol.Protocol.ExecuteMessage buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { com.taobao.zeus.socket.protocol.Protocol.ExecuteMessage result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } return result; } public com.taobao.zeus.socket.protocol.Protocol.ExecuteMessage buildPartial() { com.taobao.zeus.socket.protocol.Protocol.ExecuteMessage result = new com.taobao.zeus.socket.protocol.Protocol.ExecuteMessage(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.jobId_ = jobId_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.exitCode_ = exitCode_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.taobao.zeus.socket.protocol.Protocol.ExecuteMessage) { return mergeFrom((com.taobao.zeus.socket.protocol.Protocol.ExecuteMessage)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.taobao.zeus.socket.protocol.Protocol.ExecuteMessage other) { if (other == com.taobao.zeus.socket.protocol.Protocol.ExecuteMessage.getDefaultInstance()) return this; if (other.hasJobId()) { setJobId(other.getJobId()); } if (other.hasExitCode()) { setExitCode(other.getExitCode()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasJobId()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder( this.getUnknownFields()); while (true) { int tag = input.readTag(); switch (tag) { case 0: this.setUnknownFields(unknownFields.build()); onChanged(); return this; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { this.setUnknownFields(unknownFields.build()); onChanged(); return this; } break; } case 10: { bitField0_ |= 0x00000001; jobId_ = input.readBytes(); break; } case 16: { bitField0_ |= 0x00000002; exitCode_ = input.readSInt32(); break; } } } } private int bitField0_; // required string jobId = 1; private Object jobId_ = ""; public boolean hasJobId() { return ((bitField0_ & 0x00000001) == 0x00000001); } public String getJobId() { Object ref = jobId_; if (!(ref instanceof String)) { String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); jobId_ = s; return s; } else { return (String) ref; } } public Builder setJobId(String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; jobId_ = value; onChanged(); return this; } public Builder clearJobId() { bitField0_ = (bitField0_ & ~0x00000001); jobId_ = getDefaultInstance().getJobId(); onChanged(); return this; } void setJobId(com.google.protobuf.ByteString value) { bitField0_ |= 0x00000001; jobId_ = value; onChanged(); } // optional sint32 exitCode = 2; private int exitCode_ ; public boolean hasExitCode() { return ((bitField0_ & 0x00000002) == 0x00000002); } public int getExitCode() { return exitCode_; } public Builder setExitCode(int value) { bitField0_ |= 0x00000002; exitCode_ = value; onChanged(); return this; } public Builder clearExitCode() { bitField0_ = (bitField0_ & ~0x00000002); exitCode_ = 0; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:com.taobao.zeus.socket.protocol.ExecuteMessage) } static { defaultInstance = new ExecuteMessage(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:com.taobao.zeus.socket.protocol.ExecuteMessage) } public interface CancelMessageOrBuilder extends com.google.protobuf.MessageOrBuilder { // required .com.taobao.zeus.socket.protocol.ExecuteKind ek = 1; boolean hasEk(); com.taobao.zeus.socket.protocol.Protocol.ExecuteKind getEk(); // required string id = 2; boolean hasId(); String getId(); } public static final class CancelMessage extends com.google.protobuf.GeneratedMessage implements CancelMessageOrBuilder { // Use CancelMessage.newBuilder() to construct. private CancelMessage(Builder builder) { super(builder); } private CancelMessage(boolean noInit) {} private static final CancelMessage defaultInstance; public static CancelMessage getDefaultInstance() { return defaultInstance; } public CancelMessage getDefaultInstanceForType() { return defaultInstance; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.taobao.zeus.socket.protocol.Protocol.internal_static_com_taobao_zeus_socket_protocol_CancelMessage_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.taobao.zeus.socket.protocol.Protocol.internal_static_com_taobao_zeus_socket_protocol_CancelMessage_fieldAccessorTable; } private int bitField0_; // required .com.taobao.zeus.socket.protocol.ExecuteKind ek = 1; public static final int EK_FIELD_NUMBER = 1; private com.taobao.zeus.socket.protocol.Protocol.ExecuteKind ek_; public boolean hasEk() { return ((bitField0_ & 0x00000001) == 0x00000001); } public com.taobao.zeus.socket.protocol.Protocol.ExecuteKind getEk() { return ek_; } // required string id = 2; public static final int ID_FIELD_NUMBER = 2; private Object id_; public boolean hasId() { return ((bitField0_ & 0x00000002) == 0x00000002); } public String getId() { Object ref = id_; if (ref instanceof String) { return (String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; String s = bs.toStringUtf8(); if (com.google.protobuf.Internal.isValidUtf8(bs)) { id_ = s; } return s; } } private com.google.protobuf.ByteString getIdBytes() { Object ref = id_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((String) ref); id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private void initFields() { ek_ = com.taobao.zeus.socket.protocol.Protocol.ExecuteKind.ScheduleKind; id_ = ""; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (!hasEk()) { memoizedIsInitialized = 0; return false; } if (!hasId()) { 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.writeEnum(1, ek_.getNumber()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeBytes(2, getIdBytes()); } 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 .computeEnumSize(1, ek_.getNumber()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, getIdBytes()); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } @java.lang.Override protected Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static com.taobao.zeus.socket.protocol.Protocol.CancelMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static com.taobao.zeus.socket.protocol.Protocol.CancelMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static com.taobao.zeus.socket.protocol.Protocol.CancelMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static com.taobao.zeus.socket.protocol.Protocol.CancelMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static com.taobao.zeus.socket.protocol.Protocol.CancelMessage parseFrom(java.io.InputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static com.taobao.zeus.socket.protocol.Protocol.CancelMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static com.taobao.zeus.socket.protocol.Protocol.CancelMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input)) { return builder.buildParsed(); } else { return null; } } public static com.taobao.zeus.socket.protocol.Protocol.CancelMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input, extensionRegistry)) { return builder.buildParsed(); } else { return null; } } public static com.taobao.zeus.socket.protocol.Protocol.CancelMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static com.taobao.zeus.socket.protocol.Protocol.CancelMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.taobao.zeus.socket.protocol.Protocol.CancelMessage prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements com.taobao.zeus.socket.protocol.Protocol.CancelMessageOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.taobao.zeus.socket.protocol.Protocol.internal_static_com_taobao_zeus_socket_protocol_CancelMessage_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.taobao.zeus.socket.protocol.Protocol.internal_static_com_taobao_zeus_socket_protocol_CancelMessage_fieldAccessorTable; } // Construct using com.taobao.zeus.socket.protocol.Protocol.CancelMessage.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(); ek_ = com.taobao.zeus.socket.protocol.Protocol.ExecuteKind.ScheduleKind; bitField0_ = (bitField0_ & ~0x00000001); id_ = ""; bitField0_ = (bitField0_ & ~0x00000002); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.taobao.zeus.socket.protocol.Protocol.CancelMessage.getDescriptor(); } public com.taobao.zeus.socket.protocol.Protocol.CancelMessage getDefaultInstanceForType() { return com.taobao.zeus.socket.protocol.Protocol.CancelMessage.getDefaultInstance(); } public com.taobao.zeus.socket.protocol.Protocol.CancelMessage build() { com.taobao.zeus.socket.protocol.Protocol.CancelMessage result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } private com.taobao.zeus.socket.protocol.Protocol.CancelMessage buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { com.taobao.zeus.socket.protocol.Protocol.CancelMessage result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } return result; } public com.taobao.zeus.socket.protocol.Protocol.CancelMessage buildPartial() { com.taobao.zeus.socket.protocol.Protocol.CancelMessage result = new com.taobao.zeus.socket.protocol.Protocol.CancelMessage(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.ek_ = ek_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.id_ = id_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.taobao.zeus.socket.protocol.Protocol.CancelMessage) { return mergeFrom((com.taobao.zeus.socket.protocol.Protocol.CancelMessage)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.taobao.zeus.socket.protocol.Protocol.CancelMessage other) { if (other == com.taobao.zeus.socket.protocol.Protocol.CancelMessage.getDefaultInstance()) return this; if (other.hasEk()) { setEk(other.getEk()); } if (other.hasId()) { setId(other.getId()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasEk()) { return false; } if (!hasId()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder( this.getUnknownFields()); while (true) { int tag = input.readTag(); switch (tag) { case 0: this.setUnknownFields(unknownFields.build()); onChanged(); return this; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { this.setUnknownFields(unknownFields.build()); onChanged(); return this; } break; } case 8: { int rawValue = input.readEnum(); com.taobao.zeus.socket.protocol.Protocol.ExecuteKind value = com.taobao.zeus.socket.protocol.Protocol.ExecuteKind.valueOf(rawValue); if (value == null) { unknownFields.mergeVarintField(1, rawValue); } else { bitField0_ |= 0x00000001; ek_ = value; } break; } case 18: { bitField0_ |= 0x00000002; id_ = input.readBytes(); break; } } } } private int bitField0_; // required .com.taobao.zeus.socket.protocol.ExecuteKind ek = 1; private com.taobao.zeus.socket.protocol.Protocol.ExecuteKind ek_ = com.taobao.zeus.socket.protocol.Protocol.ExecuteKind.ScheduleKind; public boolean hasEk() { return ((bitField0_ & 0x00000001) == 0x00000001); } public com.taobao.zeus.socket.protocol.Protocol.ExecuteKind getEk() { return ek_; } public Builder setEk(com.taobao.zeus.socket.protocol.Protocol.ExecuteKind value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; ek_ = value; onChanged(); return this; } public Builder clearEk() { bitField0_ = (bitField0_ & ~0x00000001); ek_ = com.taobao.zeus.socket.protocol.Protocol.ExecuteKind.ScheduleKind; onChanged(); return this; } // required string id = 2; private Object id_ = ""; public boolean hasId() { return ((bitField0_ & 0x00000002) == 0x00000002); } public String getId() { Object ref = id_; if (!(ref instanceof String)) { String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); id_ = s; return s; } else { return (String) ref; } } public Builder setId(String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; id_ = value; onChanged(); return this; } public Builder clearId() { bitField0_ = (bitField0_ & ~0x00000002); id_ = getDefaultInstance().getId(); onChanged(); return this; } void setId(com.google.protobuf.ByteString value) { bitField0_ |= 0x00000002; id_ = value; onChanged(); } // @@protoc_insertion_point(builder_scope:com.taobao.zeus.socket.protocol.CancelMessage) } static { defaultInstance = new CancelMessage(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:com.taobao.zeus.socket.protocol.CancelMessage) } public interface DebugMessageOrBuilder extends com.google.protobuf.MessageOrBuilder { // required string debugId = 1; boolean hasDebugId(); String getDebugId(); // optional sint32 exitCode = 2; boolean hasExitCode(); int getExitCode(); } public static final class DebugMessage extends com.google.protobuf.GeneratedMessage implements DebugMessageOrBuilder { // Use DebugMessage.newBuilder() to construct. private DebugMessage(Builder builder) { super(builder); } private DebugMessage(boolean noInit) {} private static final DebugMessage defaultInstance; public static DebugMessage getDefaultInstance() { return defaultInstance; } public DebugMessage getDefaultInstanceForType() { return defaultInstance; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.taobao.zeus.socket.protocol.Protocol.internal_static_com_taobao_zeus_socket_protocol_DebugMessage_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.taobao.zeus.socket.protocol.Protocol.internal_static_com_taobao_zeus_socket_protocol_DebugMessage_fieldAccessorTable; } private int bitField0_; // required string debugId = 1; public static final int DEBUGID_FIELD_NUMBER = 1; private Object debugId_; public boolean hasDebugId() { return ((bitField0_ & 0x00000001) == 0x00000001); } public String getDebugId() { Object ref = debugId_; if (ref instanceof String) { return (String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; String s = bs.toStringUtf8(); if (com.google.protobuf.Internal.isValidUtf8(bs)) { debugId_ = s; } return s; } } private com.google.protobuf.ByteString getDebugIdBytes() { Object ref = debugId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((String) ref); debugId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional sint32 exitCode = 2; public static final int EXITCODE_FIELD_NUMBER = 2; private int exitCode_; public boolean hasExitCode() { return ((bitField0_ & 0x00000002) == 0x00000002); } public int getExitCode() { return exitCode_; } private void initFields() { debugId_ = ""; exitCode_ = 0; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (!hasDebugId()) { 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, getDebugIdBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeSInt32(2, exitCode_); } 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, getDebugIdBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeSInt32Size(2, exitCode_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } @java.lang.Override protected Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static com.taobao.zeus.socket.protocol.Protocol.DebugMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static com.taobao.zeus.socket.protocol.Protocol.DebugMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static com.taobao.zeus.socket.protocol.Protocol.DebugMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static com.taobao.zeus.socket.protocol.Protocol.DebugMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static com.taobao.zeus.socket.protocol.Protocol.DebugMessage parseFrom(java.io.InputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static com.taobao.zeus.socket.protocol.Protocol.DebugMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static com.taobao.zeus.socket.protocol.Protocol.DebugMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input)) { return builder.buildParsed(); } else { return null; } } public static com.taobao.zeus.socket.protocol.Protocol.DebugMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input, extensionRegistry)) { return builder.buildParsed(); } else { return null; } } public static com.taobao.zeus.socket.protocol.Protocol.DebugMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static com.taobao.zeus.socket.protocol.Protocol.DebugMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.taobao.zeus.socket.protocol.Protocol.DebugMessage prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements com.taobao.zeus.socket.protocol.Protocol.DebugMessageOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.taobao.zeus.socket.protocol.Protocol.internal_static_com_taobao_zeus_socket_protocol_DebugMessage_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.taobao.zeus.socket.protocol.Protocol.internal_static_com_taobao_zeus_socket_protocol_DebugMessage_fieldAccessorTable; } // Construct using com.taobao.zeus.socket.protocol.Protocol.DebugMessage.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(); debugId_ = ""; bitField0_ = (bitField0_ & ~0x00000001); exitCode_ = 0; bitField0_ = (bitField0_ & ~0x00000002); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.taobao.zeus.socket.protocol.Protocol.DebugMessage.getDescriptor(); } public com.taobao.zeus.socket.protocol.Protocol.DebugMessage getDefaultInstanceForType() { return com.taobao.zeus.socket.protocol.Protocol.DebugMessage.getDefaultInstance(); } public com.taobao.zeus.socket.protocol.Protocol.DebugMessage build() { com.taobao.zeus.socket.protocol.Protocol.DebugMessage result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } private com.taobao.zeus.socket.protocol.Protocol.DebugMessage buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { com.taobao.zeus.socket.protocol.Protocol.DebugMessage result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } return result; } public com.taobao.zeus.socket.protocol.Protocol.DebugMessage buildPartial() { com.taobao.zeus.socket.protocol.Protocol.DebugMessage result = new com.taobao.zeus.socket.protocol.Protocol.DebugMessage(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.debugId_ = debugId_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.exitCode_ = exitCode_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.taobao.zeus.socket.protocol.Protocol.DebugMessage) { return mergeFrom((com.taobao.zeus.socket.protocol.Protocol.DebugMessage)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.taobao.zeus.socket.protocol.Protocol.DebugMessage other) { if (other == com.taobao.zeus.socket.protocol.Protocol.DebugMessage.getDefaultInstance()) return this; if (other.hasDebugId()) { setDebugId(other.getDebugId()); } if (other.hasExitCode()) { setExitCode(other.getExitCode()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasDebugId()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder( this.getUnknownFields()); while (true) { int tag = input.readTag(); switch (tag) { case 0: this.setUnknownFields(unknownFields.build()); onChanged(); return this; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { this.setUnknownFields(unknownFields.build()); onChanged(); return this; } break; } case 10: { bitField0_ |= 0x00000001; debugId_ = input.readBytes(); break; } case 16: { bitField0_ |= 0x00000002; exitCode_ = input.readSInt32(); break; } } } } private int bitField0_; // required string debugId = 1; private Object debugId_ = ""; public boolean hasDebugId() { return ((bitField0_ & 0x00000001) == 0x00000001); } public String getDebugId() { Object ref = debugId_; if (!(ref instanceof String)) { String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); debugId_ = s; return s; } else { return (String) ref; } } public Builder setDebugId(String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; debugId_ = value; onChanged(); return this; } public Builder clearDebugId() { bitField0_ = (bitField0_ & ~0x00000001); debugId_ = getDefaultInstance().getDebugId(); onChanged(); return this; } void setDebugId(com.google.protobuf.ByteString value) { bitField0_ |= 0x00000001; debugId_ = value; onChanged(); } // optional sint32 exitCode = 2; private int exitCode_ ; public boolean hasExitCode() { return ((bitField0_ & 0x00000002) == 0x00000002); } public int getExitCode() { return exitCode_; } public Builder setExitCode(int value) { bitField0_ |= 0x00000002; exitCode_ = value; onChanged(); return this; } public Builder clearExitCode() { bitField0_ = (bitField0_ & ~0x00000002); exitCode_ = 0; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:com.taobao.zeus.socket.protocol.DebugMessage) } static { defaultInstance = new DebugMessage(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:com.taobao.zeus.socket.protocol.DebugMessage) } public interface ManualMessageOrBuilder extends com.google.protobuf.MessageOrBuilder { // required string historyId = 1; boolean hasHistoryId(); String getHistoryId(); // optional sint32 exitCode = 2; boolean hasExitCode(); int getExitCode(); } public static final class ManualMessage extends com.google.protobuf.GeneratedMessage implements ManualMessageOrBuilder { // Use ManualMessage.newBuilder() to construct. private ManualMessage(Builder builder) { super(builder); } private ManualMessage(boolean noInit) {} private static final ManualMessage defaultInstance; public static ManualMessage getDefaultInstance() { return defaultInstance; } public ManualMessage getDefaultInstanceForType() { return defaultInstance; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.taobao.zeus.socket.protocol.Protocol.internal_static_com_taobao_zeus_socket_protocol_ManualMessage_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.taobao.zeus.socket.protocol.Protocol.internal_static_com_taobao_zeus_socket_protocol_ManualMessage_fieldAccessorTable; } private int bitField0_; // required string historyId = 1; public static final int HISTORYID_FIELD_NUMBER = 1; private Object historyId_; public boolean hasHistoryId() { return ((bitField0_ & 0x00000001) == 0x00000001); } public String getHistoryId() { Object ref = historyId_; if (ref instanceof String) { return (String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; String s = bs.toStringUtf8(); if (com.google.protobuf.Internal.isValidUtf8(bs)) { historyId_ = s; } return s; } } private com.google.protobuf.ByteString getHistoryIdBytes() { Object ref = historyId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8((String) ref); historyId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } // optional sint32 exitCode = 2; public static final int EXITCODE_FIELD_NUMBER = 2; private int exitCode_; public boolean hasExitCode() { return ((bitField0_ & 0x00000002) == 0x00000002); } public int getExitCode() { return exitCode_; } private void initFields() { historyId_ = ""; exitCode_ = 0; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; if (!hasHistoryId()) { 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, getHistoryIdBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeSInt32(2, exitCode_); } 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, getHistoryIdBytes()); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeSInt32Size(2, exitCode_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } @java.lang.Override protected Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static com.taobao.zeus.socket.protocol.Protocol.ManualMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static com.taobao.zeus.socket.protocol.Protocol.ManualMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static com.taobao.zeus.socket.protocol.Protocol.ManualMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data).buildParsed(); } public static com.taobao.zeus.socket.protocol.Protocol.ManualMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return newBuilder().mergeFrom(data, extensionRegistry) .buildParsed(); } public static com.taobao.zeus.socket.protocol.Protocol.ManualMessage parseFrom(java.io.InputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static com.taobao.zeus.socket.protocol.Protocol.ManualMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static com.taobao.zeus.socket.protocol.Protocol.ManualMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input)) { return builder.buildParsed(); } else { return null; } } public static com.taobao.zeus.socket.protocol.Protocol.ManualMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { Builder builder = newBuilder(); if (builder.mergeDelimitedFrom(input, extensionRegistry)) { return builder.buildParsed(); } else { return null; } } public static com.taobao.zeus.socket.protocol.Protocol.ManualMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return newBuilder().mergeFrom(input).buildParsed(); } public static com.taobao.zeus.socket.protocol.Protocol.ManualMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return newBuilder().mergeFrom(input, extensionRegistry) .buildParsed(); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(com.taobao.zeus.socket.protocol.Protocol.ManualMessage prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements com.taobao.zeus.socket.protocol.Protocol.ManualMessageOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.taobao.zeus.socket.protocol.Protocol.internal_static_com_taobao_zeus_socket_protocol_ManualMessage_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.taobao.zeus.socket.protocol.Protocol.internal_static_com_taobao_zeus_socket_protocol_ManualMessage_fieldAccessorTable; } // Construct using com.taobao.zeus.socket.protocol.Protocol.ManualMessage.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(); historyId_ = ""; bitField0_ = (bitField0_ & ~0x00000001); exitCode_ = 0; bitField0_ = (bitField0_ & ~0x00000002); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return com.taobao.zeus.socket.protocol.Protocol.ManualMessage.getDescriptor(); } public com.taobao.zeus.socket.protocol.Protocol.ManualMessage getDefaultInstanceForType() { return com.taobao.zeus.socket.protocol.Protocol.ManualMessage.getDefaultInstance(); } public com.taobao.zeus.socket.protocol.Protocol.ManualMessage build() { com.taobao.zeus.socket.protocol.Protocol.ManualMessage result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } private com.taobao.zeus.socket.protocol.Protocol.ManualMessage buildParsed() throws com.google.protobuf.InvalidProtocolBufferException { com.taobao.zeus.socket.protocol.Protocol.ManualMessage result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException( result).asInvalidProtocolBufferException(); } return result; } public com.taobao.zeus.socket.protocol.Protocol.ManualMessage buildPartial() { com.taobao.zeus.socket.protocol.Protocol.ManualMessage result = new com.taobao.zeus.socket.protocol.Protocol.ManualMessage(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.historyId_ = historyId_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.exitCode_ = exitCode_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.taobao.zeus.socket.protocol.Protocol.ManualMessage) { return mergeFrom((com.taobao.zeus.socket.protocol.Protocol.ManualMessage)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(com.taobao.zeus.socket.protocol.Protocol.ManualMessage other) { if (other == com.taobao.zeus.socket.protocol.Protocol.ManualMessage.getDefaultInstance()) return this; if (other.hasHistoryId()) { setHistoryId(other.getHistoryId()); } if (other.hasExitCode()) { setExitCode(other.getExitCode()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { if (!hasHistoryId()) { return false; } return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder( this.getUnknownFields()); while (true) { int tag = input.readTag(); switch (tag) { case 0: this.setUnknownFields(unknownFields.build()); onChanged(); return this; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { this.setUnknownFields(unknownFields.build()); onChanged(); return this; } break; } case 10: { bitField0_ |= 0x00000001; historyId_ = input.readBytes(); break; } case 16: { bitField0_ |= 0x00000002; exitCode_ = input.readSInt32(); break; } } } } private int bitField0_; // required string historyId = 1; private Object historyId_ = ""; public boolean hasHistoryId() { return ((bitField0_ & 0x00000001) == 0x00000001); } public String getHistoryId() { Object ref = historyId_; if (!(ref instanceof String)) { String s = ((com.google.protobuf.ByteString) ref).toStringUtf8(); historyId_ = s; return s; } else { return (String) ref; } } public Builder setHistoryId(String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; historyId_ = value; onChanged(); return this; } public Builder clearHistoryId() { bitField0_ = (bitField0_ & ~0x00000001); historyId_ = getDefaultInstance().getHistoryId(); onChanged(); return this; } void setHistoryId(com.google.protobuf.ByteString value) { bitField0_ |= 0x00000001; historyId_ = value; onChanged(); } // optional sint32 exitCode = 2; private int exitCode_ ; public boolean hasExitCode() { return ((bitField0_ & 0x00000002) == 0x00000002); } public int getExitCode() { return exitCode_; } public Builder setExitCode(int value) { bitField0_ |= 0x00000002; exitCode_ = value; onChanged(); return this; } public Builder clearExitCode() { bitField0_ = (bitField0_ & ~0x00000002); exitCode_ = 0; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:com.taobao.zeus.socket.protocol.ManualMessage) } static { defaultInstance = new ManualMessage(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:com.taobao.zeus.socket.protocol.ManualMessage) } private static com.google.protobuf.Descriptors.Descriptor internal_static_com_taobao_zeus_socket_protocol_SocketMessage_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_com_taobao_zeus_socket_protocol_SocketMessage_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_com_taobao_zeus_socket_protocol_WebRequest_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_com_taobao_zeus_socket_protocol_WebRequest_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_com_taobao_zeus_socket_protocol_WebResponse_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_com_taobao_zeus_socket_protocol_WebResponse_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_com_taobao_zeus_socket_protocol_Request_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_com_taobao_zeus_socket_protocol_Request_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_com_taobao_zeus_socket_protocol_Response_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_com_taobao_zeus_socket_protocol_Response_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_com_taobao_zeus_socket_protocol_HeartBeatMessage_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_com_taobao_zeus_socket_protocol_HeartBeatMessage_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_com_taobao_zeus_socket_protocol_ExecuteMessage_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_com_taobao_zeus_socket_protocol_ExecuteMessage_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_com_taobao_zeus_socket_protocol_CancelMessage_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_com_taobao_zeus_socket_protocol_CancelMessage_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_com_taobao_zeus_socket_protocol_DebugMessage_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_com_taobao_zeus_socket_protocol_DebugMessage_fieldAccessorTable; private static com.google.protobuf.Descriptors.Descriptor internal_static_com_taobao_zeus_socket_protocol_ManualMessage_descriptor; private static com.google.protobuf.GeneratedMessage.FieldAccessorTable internal_static_com_taobao_zeus_socket_protocol_ManualMessage_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; } private static com.google.protobuf.Descriptors.FileDescriptor descriptor; static { java.lang.String[] descriptorData = { "\n\024SocketProtocol.proto\022\037com.taobao.zeus." + "socket.protocol\"\246\001\n\rSocketMessage\022A\n\004kin" + "d\030\001 \002(\01623.com.taobao.zeus.socket.protoco" + "l.SocketMessage.Kind\022\014\n\004body\030\002 \001(\014\"D\n\004Ki" + "nd\022\013\n\007REQUEST\020\000\022\014\n\010RESPONSE\020\001\022\017\n\013WEB_REU" + "QEST\020\002\022\020\n\014WEB_RESPONSE\020\003\"\350\001\n\nWebRequest\022" + "\013\n\003rid\030\001 \002(\021\022<\n\007operate\030\002 \002(\0162+.com.taob" + "ao.zeus.socket.protocol.WebOperate\0228\n\002ek" + "\030\003 \002(\0162,.com.taobao.zeus.socket.protocol" + ".ExecuteKind\022\n\n\002id\030\004 \002(\t\022\020\n\010executor\030\005 \001", "(\t\022\014\n\004body\030\006 \001(\014\")\n\007Trigger\022\n\n\006MANUAL\020\000\022" + "\022\n\016MANUAL_RECOVER\020\001\"\262\001\n\013WebResponse\0227\n\006s" + "tatus\030\001 \002(\0162\'.com.taobao.zeus.socket.pro" + "tocol.Status\022\013\n\003rid\030\002 \002(\021\022<\n\007operate\030\003 \002" + "(\0162+.com.taobao.zeus.socket.protocol.Web" + "Operate\022\021\n\terrorText\030\004 \001(\t\022\014\n\004body\030\005 \001(\014" + "\"_\n\007Request\022\013\n\003rid\030\001 \002(\021\0229\n\007operate\030\002 \002(" + "\0162(.com.taobao.zeus.socket.protocol.Oper" + "ate\022\014\n\004body\030\003 \001(\014\"\254\001\n\010Response\0227\n\006status" + "\030\001 \002(\0162\'.com.taobao.zeus.socket.protocol", ".Status\022\013\n\003rid\030\002 \002(\021\0229\n\007operate\030\003 \002(\0162(." + "com.taobao.zeus.socket.protocol.Operate\022" + "\021\n\terrorText\030\004 \001(\t\022\014\n\004body\030\005 \001(\014\"\241\001\n\020Hea" + "rtBeatMessage\022\020\n\010runnings\030\001 \003(\t\022\025\n\rdebug" + "Runnings\030\002 \003(\t\022\026\n\016manualRunnings\030\003 \003(\t\022\021" + "\n\ttimestamp\030\004 \001(\003\022\020\n\010mem_rate\030\005 \001(\002\022\014\n\004h" + "ost\030\006 \001(\t\022\031\n\021cpu_load_per_core\030\007 \001(\002\"1\n\016" + "ExecuteMessage\022\r\n\005jobId\030\001 \002(\t\022\020\n\010exitCod" + "e\030\002 \001(\021\"U\n\rCancelMessage\0228\n\002ek\030\001 \002(\0162,.c" + "om.taobao.zeus.socket.protocol.ExecuteKi", "nd\022\n\n\002id\030\002 \002(\t\"1\n\014DebugMessage\022\017\n\007debugI" + "d\030\001 \002(\t\022\020\n\010exitCode\030\002 \001(\021\"4\n\rManualMessa" + "ge\022\021\n\thistoryId\030\001 \002(\t\022\020\n\010exitCode\030\002 \001(\021*" + "\033\n\006Status\022\006\n\002OK\020\000\022\t\n\005ERROR\020\001*>\n\013ExecuteK" + "ind\022\020\n\014ScheduleKind\020\000\022\016\n\nManualKind\020\001\022\r\n" + "\tDebugKind\020\002*L\n\nWebOperate\022\r\n\tUpdateJob\020" + "\001\022\016\n\nExecuteJob\020\002\022\r\n\tCancelJob\020\003\022\020\n\014Exec" + "uteDebug\020\004*I\n\007Operate\022\r\n\tHeartBeat\020\000\022\014\n\010" + "Schedule\020\001\022\n\n\006Cancel\020\002\022\t\n\005Debug\020\003\022\n\n\006Man" + "ual\020\004B-\n\037com.taobao.zeus.socket.protocol", "B\010ProtocolH\001" }; 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; internal_static_com_taobao_zeus_socket_protocol_SocketMessage_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_com_taobao_zeus_socket_protocol_SocketMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_com_taobao_zeus_socket_protocol_SocketMessage_descriptor, new java.lang.String[] { "Kind", "Body", }, com.taobao.zeus.socket.protocol.Protocol.SocketMessage.class, com.taobao.zeus.socket.protocol.Protocol.SocketMessage.Builder.class); internal_static_com_taobao_zeus_socket_protocol_WebRequest_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_com_taobao_zeus_socket_protocol_WebRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_com_taobao_zeus_socket_protocol_WebRequest_descriptor, new java.lang.String[] { "Rid", "Operate", "Ek", "Id", "Executor", "Body", }, com.taobao.zeus.socket.protocol.Protocol.WebRequest.class, com.taobao.zeus.socket.protocol.Protocol.WebRequest.Builder.class); internal_static_com_taobao_zeus_socket_protocol_WebResponse_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_com_taobao_zeus_socket_protocol_WebResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_com_taobao_zeus_socket_protocol_WebResponse_descriptor, new java.lang.String[] { "Status", "Rid", "Operate", "ErrorText", "Body", }, com.taobao.zeus.socket.protocol.Protocol.WebResponse.class, com.taobao.zeus.socket.protocol.Protocol.WebResponse.Builder.class); internal_static_com_taobao_zeus_socket_protocol_Request_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_com_taobao_zeus_socket_protocol_Request_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_com_taobao_zeus_socket_protocol_Request_descriptor, new java.lang.String[] { "Rid", "Operate", "Body", }, com.taobao.zeus.socket.protocol.Protocol.Request.class, com.taobao.zeus.socket.protocol.Protocol.Request.Builder.class); internal_static_com_taobao_zeus_socket_protocol_Response_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_com_taobao_zeus_socket_protocol_Response_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_com_taobao_zeus_socket_protocol_Response_descriptor, new java.lang.String[] { "Status", "Rid", "Operate", "ErrorText", "Body", }, com.taobao.zeus.socket.protocol.Protocol.Response.class, com.taobao.zeus.socket.protocol.Protocol.Response.Builder.class); internal_static_com_taobao_zeus_socket_protocol_HeartBeatMessage_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_com_taobao_zeus_socket_protocol_HeartBeatMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_com_taobao_zeus_socket_protocol_HeartBeatMessage_descriptor, new java.lang.String[] { "Runnings", "DebugRunnings", "ManualRunnings", "Timestamp", "MemRate", "Host", "CpuLoadPerCore", }, com.taobao.zeus.socket.protocol.Protocol.HeartBeatMessage.class, com.taobao.zeus.socket.protocol.Protocol.HeartBeatMessage.Builder.class); internal_static_com_taobao_zeus_socket_protocol_ExecuteMessage_descriptor = getDescriptor().getMessageTypes().get(6); internal_static_com_taobao_zeus_socket_protocol_ExecuteMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_com_taobao_zeus_socket_protocol_ExecuteMessage_descriptor, new java.lang.String[] { "JobId", "ExitCode", }, com.taobao.zeus.socket.protocol.Protocol.ExecuteMessage.class, com.taobao.zeus.socket.protocol.Protocol.ExecuteMessage.Builder.class); internal_static_com_taobao_zeus_socket_protocol_CancelMessage_descriptor = getDescriptor().getMessageTypes().get(7); internal_static_com_taobao_zeus_socket_protocol_CancelMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_com_taobao_zeus_socket_protocol_CancelMessage_descriptor, new java.lang.String[] { "Ek", "Id", }, com.taobao.zeus.socket.protocol.Protocol.CancelMessage.class, com.taobao.zeus.socket.protocol.Protocol.CancelMessage.Builder.class); internal_static_com_taobao_zeus_socket_protocol_DebugMessage_descriptor = getDescriptor().getMessageTypes().get(8); internal_static_com_taobao_zeus_socket_protocol_DebugMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_com_taobao_zeus_socket_protocol_DebugMessage_descriptor, new java.lang.String[] { "DebugId", "ExitCode", }, com.taobao.zeus.socket.protocol.Protocol.DebugMessage.class, com.taobao.zeus.socket.protocol.Protocol.DebugMessage.Builder.class); internal_static_com_taobao_zeus_socket_protocol_ManualMessage_descriptor = getDescriptor().getMessageTypes().get(9); internal_static_com_taobao_zeus_socket_protocol_ManualMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessage.FieldAccessorTable( internal_static_com_taobao_zeus_socket_protocol_ManualMessage_descriptor, new java.lang.String[] { "HistoryId", "ExitCode", }, com.taobao.zeus.socket.protocol.Protocol.ManualMessage.class, com.taobao.zeus.socket.protocol.Protocol.ManualMessage.Builder.class); return null; } }; com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { }, assigner); } // @@protoc_insertion_point(outer_class_scope) }