// Generated by the protocol buffer compiler. DO NOT EDIT! // source: WCommonResult.proto package Im.Scrm.Ww.Proto; public final class WCommonResult { private WCommonResult() {} public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { registerAllExtensions( (com.google.protobuf.ExtensionRegistryLite) registry); } public interface CommonResultMessageOrBuilder extends // @@protoc_insertion_point(interface_extends:Im.Scrm.Ww.Proto.CommonResultMessage) com.google.protobuf.MessageOrBuilder { /** *
     * 设备企业WX号
     * 
* * int64 WxId = 1; * @return The wxId. */ long getWxId(); /** *
     * 是否成功
     * 
* * bool Success = 2; * @return The success. */ boolean getSuccess(); /** *
     * 错误码 Success = true 忽略
     * 
* * int32 Code = 3; * @return The code. */ int getCode(); /** *
     * 错误内容描述
     * 
* * string ErrMsg = 4; * @return The errMsg. */ java.lang.String getErrMsg(); /** *
     * 错误内容描述
     * 
* * string ErrMsg = 4; * @return The bytes for errMsg. */ com.google.protobuf.ByteString getErrMsgBytes(); } /** * Protobuf type {@code Im.Scrm.Ww.Proto.CommonResultMessage} */ public static final class CommonResultMessage extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Im.Scrm.Ww.Proto.CommonResultMessage) CommonResultMessageOrBuilder { private static final long serialVersionUID = 0L; // Use CommonResultMessage.newBuilder() to construct. private CommonResultMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private CommonResultMessage() { errMsg_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new CommonResultMessage(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private CommonResultMessage( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { wxId_ = input.readInt64(); break; } case 16: { success_ = input.readBool(); break; } case 24: { code_ = input.readInt32(); break; } case 34: { java.lang.String s = input.readStringRequireUtf8(); errMsg_ = s; break; } default: { if (!parseUnknownField( input, unknownFields, extensionRegistry, tag)) { done = true; } break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return Im.Scrm.Ww.Proto.WCommonResult.internal_static_Im_Scrm_Ww_Proto_CommonResultMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Im.Scrm.Ww.Proto.WCommonResult.internal_static_Im_Scrm_Ww_Proto_CommonResultMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( Im.Scrm.Ww.Proto.WCommonResult.CommonResultMessage.class, Im.Scrm.Ww.Proto.WCommonResult.CommonResultMessage.Builder.class); } public static final int WXID_FIELD_NUMBER = 1; private long wxId_; /** *
     * 设备企业WX号
     * 
* * int64 WxId = 1; * @return The wxId. */ public long getWxId() { return wxId_; } public static final int SUCCESS_FIELD_NUMBER = 2; private boolean success_; /** *
     * 是否成功
     * 
* * bool Success = 2; * @return The success. */ public boolean getSuccess() { return success_; } public static final int CODE_FIELD_NUMBER = 3; private int code_; /** *
     * 错误码 Success = true 忽略
     * 
* * int32 Code = 3; * @return The code. */ public int getCode() { return code_; } public static final int ERRMSG_FIELD_NUMBER = 4; private volatile java.lang.Object errMsg_; /** *
     * 错误内容描述
     * 
* * string ErrMsg = 4; * @return The errMsg. */ public java.lang.String getErrMsg() { java.lang.Object ref = errMsg_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); errMsg_ = s; return s; } } /** *
     * 错误内容描述
     * 
* * string ErrMsg = 4; * @return The bytes for errMsg. */ public com.google.protobuf.ByteString getErrMsgBytes() { java.lang.Object ref = errMsg_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); errMsg_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (wxId_ != 0L) { output.writeInt64(1, wxId_); } if (success_ != false) { output.writeBool(2, success_); } if (code_ != 0) { output.writeInt32(3, code_); } if (!getErrMsgBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, errMsg_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (wxId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(1, wxId_); } if (success_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(2, success_); } if (code_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(3, code_); } if (!getErrMsgBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, errMsg_); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof Im.Scrm.Ww.Proto.WCommonResult.CommonResultMessage)) { return super.equals(obj); } Im.Scrm.Ww.Proto.WCommonResult.CommonResultMessage other = (Im.Scrm.Ww.Proto.WCommonResult.CommonResultMessage) obj; if (getWxId() != other.getWxId()) return false; if (getSuccess() != other.getSuccess()) return false; if (getCode() != other.getCode()) return false; if (!getErrMsg() .equals(other.getErrMsg())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + WXID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getWxId()); hash = (37 * hash) + SUCCESS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getSuccess()); hash = (37 * hash) + CODE_FIELD_NUMBER; hash = (53 * hash) + getCode(); hash = (37 * hash) + ERRMSG_FIELD_NUMBER; hash = (53 * hash) + getErrMsg().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static Im.Scrm.Ww.Proto.WCommonResult.CommonResultMessage parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static Im.Scrm.Ww.Proto.WCommonResult.CommonResultMessage parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static Im.Scrm.Ww.Proto.WCommonResult.CommonResultMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static Im.Scrm.Ww.Proto.WCommonResult.CommonResultMessage parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static Im.Scrm.Ww.Proto.WCommonResult.CommonResultMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static Im.Scrm.Ww.Proto.WCommonResult.CommonResultMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static Im.Scrm.Ww.Proto.WCommonResult.CommonResultMessage parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static Im.Scrm.Ww.Proto.WCommonResult.CommonResultMessage parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } public static Im.Scrm.Ww.Proto.WCommonResult.CommonResultMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static Im.Scrm.Ww.Proto.WCommonResult.CommonResultMessage parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input, extensionRegistry); } public static Im.Scrm.Ww.Proto.WCommonResult.CommonResultMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static Im.Scrm.Ww.Proto.WCommonResult.CommonResultMessage parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input, extensionRegistry); } @java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(Im.Scrm.Ww.Proto.WCommonResult.CommonResultMessage prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override public Builder toBuilder() { return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code Im.Scrm.Ww.Proto.CommonResultMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Im.Scrm.Ww.Proto.CommonResultMessage) Im.Scrm.Ww.Proto.WCommonResult.CommonResultMessageOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return Im.Scrm.Ww.Proto.WCommonResult.internal_static_Im_Scrm_Ww_Proto_CommonResultMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Im.Scrm.Ww.Proto.WCommonResult.internal_static_Im_Scrm_Ww_Proto_CommonResultMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( Im.Scrm.Ww.Proto.WCommonResult.CommonResultMessage.class, Im.Scrm.Ww.Proto.WCommonResult.CommonResultMessage.Builder.class); } // Construct using Im.Scrm.Ww.Proto.WCommonResult.CommonResultMessage.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); wxId_ = 0L; success_ = false; code_ = 0; errMsg_ = ""; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Im.Scrm.Ww.Proto.WCommonResult.internal_static_Im_Scrm_Ww_Proto_CommonResultMessage_descriptor; } @java.lang.Override public Im.Scrm.Ww.Proto.WCommonResult.CommonResultMessage getDefaultInstanceForType() { return Im.Scrm.Ww.Proto.WCommonResult.CommonResultMessage.getDefaultInstance(); } @java.lang.Override public Im.Scrm.Ww.Proto.WCommonResult.CommonResultMessage build() { Im.Scrm.Ww.Proto.WCommonResult.CommonResultMessage result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public Im.Scrm.Ww.Proto.WCommonResult.CommonResultMessage buildPartial() { Im.Scrm.Ww.Proto.WCommonResult.CommonResultMessage result = new Im.Scrm.Ww.Proto.WCommonResult.CommonResultMessage(this); result.wxId_ = wxId_; result.success_ = success_; result.code_ = code_; result.errMsg_ = errMsg_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof Im.Scrm.Ww.Proto.WCommonResult.CommonResultMessage) { return mergeFrom((Im.Scrm.Ww.Proto.WCommonResult.CommonResultMessage)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(Im.Scrm.Ww.Proto.WCommonResult.CommonResultMessage other) { if (other == Im.Scrm.Ww.Proto.WCommonResult.CommonResultMessage.getDefaultInstance()) return this; if (other.getWxId() != 0L) { setWxId(other.getWxId()); } if (other.getSuccess() != false) { setSuccess(other.getSuccess()); } if (other.getCode() != 0) { setCode(other.getCode()); } if (!other.getErrMsg().isEmpty()) { errMsg_ = other.errMsg_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { Im.Scrm.Ww.Proto.WCommonResult.CommonResultMessage parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (Im.Scrm.Ww.Proto.WCommonResult.CommonResultMessage) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private long wxId_ ; /** *
       * 设备企业WX号
       * 
* * int64 WxId = 1; * @return The wxId. */ public long getWxId() { return wxId_; } /** *
       * 设备企业WX号
       * 
* * int64 WxId = 1; * @param value The wxId to set. * @return This builder for chaining. */ public Builder setWxId(long value) { wxId_ = value; onChanged(); return this; } /** *
       * 设备企业WX号
       * 
* * int64 WxId = 1; * @return This builder for chaining. */ public Builder clearWxId() { wxId_ = 0L; onChanged(); return this; } private boolean success_ ; /** *
       * 是否成功
       * 
* * bool Success = 2; * @return The success. */ public boolean getSuccess() { return success_; } /** *
       * 是否成功
       * 
* * bool Success = 2; * @param value The success to set. * @return This builder for chaining. */ public Builder setSuccess(boolean value) { success_ = value; onChanged(); return this; } /** *
       * 是否成功
       * 
* * bool Success = 2; * @return This builder for chaining. */ public Builder clearSuccess() { success_ = false; onChanged(); return this; } private int code_ ; /** *
       * 错误码 Success = true 忽略
       * 
* * int32 Code = 3; * @return The code. */ public int getCode() { return code_; } /** *
       * 错误码 Success = true 忽略
       * 
* * int32 Code = 3; * @param value The code to set. * @return This builder for chaining. */ public Builder setCode(int value) { code_ = value; onChanged(); return this; } /** *
       * 错误码 Success = true 忽略
       * 
* * int32 Code = 3; * @return This builder for chaining. */ public Builder clearCode() { code_ = 0; onChanged(); return this; } private java.lang.Object errMsg_ = ""; /** *
       * 错误内容描述
       * 
* * string ErrMsg = 4; * @return The errMsg. */ public java.lang.String getErrMsg() { java.lang.Object ref = errMsg_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); errMsg_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * 错误内容描述
       * 
* * string ErrMsg = 4; * @return The bytes for errMsg. */ public com.google.protobuf.ByteString getErrMsgBytes() { java.lang.Object ref = errMsg_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); errMsg_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * 错误内容描述
       * 
* * string ErrMsg = 4; * @param value The errMsg to set. * @return This builder for chaining. */ public Builder setErrMsg( java.lang.String value) { if (value == null) { throw new NullPointerException(); } errMsg_ = value; onChanged(); return this; } /** *
       * 错误内容描述
       * 
* * string ErrMsg = 4; * @return This builder for chaining. */ public Builder clearErrMsg() { errMsg_ = getDefaultInstance().getErrMsg(); onChanged(); return this; } /** *
       * 错误内容描述
       * 
* * string ErrMsg = 4; * @param value The bytes for errMsg to set. * @return This builder for chaining. */ public Builder setErrMsgBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); errMsg_ = value; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:Im.Scrm.Ww.Proto.CommonResultMessage) } // @@protoc_insertion_point(class_scope:Im.Scrm.Ww.Proto.CommonResultMessage) private static final Im.Scrm.Ww.Proto.WCommonResult.CommonResultMessage DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new Im.Scrm.Ww.Proto.WCommonResult.CommonResultMessage(); } public static Im.Scrm.Ww.Proto.WCommonResult.CommonResultMessage getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public CommonResultMessage parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new CommonResultMessage(input, extensionRegistry); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public Im.Scrm.Ww.Proto.WCommonResult.CommonResultMessage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_Im_Scrm_Ww_Proto_CommonResultMessage_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Im_Scrm_Ww_Proto_CommonResultMessage_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\023WCommonResult.proto\022\020Im.Scrm.Ww.Proto\032" + "\020WTransport.proto\"R\n\023CommonResultMessage" + "\022\014\n\004WxId\030\001 \001(\003\022\017\n\007Success\030\002 \001(\010\022\014\n\004Code\030" + "\003 \001(\005\022\016\n\006ErrMsg\030\004 \001(\tb\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { Im.Scrm.Ww.Proto.WTransport.getDescriptor(), }); internal_static_Im_Scrm_Ww_Proto_CommonResultMessage_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_Im_Scrm_Ww_Proto_CommonResultMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Im_Scrm_Ww_Proto_CommonResultMessage_descriptor, new java.lang.String[] { "WxId", "Success", "Code", "ErrMsg", }); Im.Scrm.Ww.Proto.WTransport.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }