// Generated by the protocol buffer compiler. DO NOT EDIT! // source: WDownloadFileByUrlTask.proto package Im.Scrm.Ww.Proto; public final class WDownloadFileByUrlTask { private WDownloadFileByUrlTask() {} 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 DownloadFileByUrlTaskMessageOrBuilder extends // @@protoc_insertion_point(interface_extends:Im.Scrm.Ww.Proto.DownloadFileByUrlTaskMessage) com.google.protobuf.MessageOrBuilder { /** *
     * 
* * int64 WxId = 1; * @return The wxId. */ long getWxId(); /** *
     * url或FileId
     * 
* * string Url = 2; * @return The url. */ java.lang.String getUrl(); /** *
     * url或FileId
     * 
* * string Url = 2; * @return The bytes for url. */ com.google.protobuf.ByteString getUrlBytes(); /** *
     * 
* * string AesKey = 3; * @return The aesKey. */ java.lang.String getAesKey(); /** *
     * 
* * string AesKey = 3; * @return The bytes for aesKey. */ com.google.protobuf.ByteString getAesKeyBytes(); /** *
     * 微信CDN AuthKey
     * 
* * string AuthKey = 4; * @return The authKey. */ java.lang.String getAuthKey(); /** *
     * 微信CDN AuthKey
     * 
* * string AuthKey = 4; * @return The bytes for authKey. */ com.google.protobuf.ByteString getAuthKeyBytes(); /** *
     * 文件名(一般文件消息才有)
     * 
* * string FileName = 5; * @return The fileName. */ java.lang.String getFileName(); /** *
     * 文件名(一般文件消息才有)
     * 
* * string FileName = 5; * @return The bytes for fileName. */ com.google.protobuf.ByteString getFileNameBytes(); /** *
     * 消息类型
     * 
* * int32 MsgType = 6; * @return The msgType. */ int getMsgType(); /** *
     * 下载文件的类型 0 原始文件(原图,视频,音频,文件) 1 大图, 2 缩率图(预览图)
     * 
* * int32 FileType = 7; * @return The fileType. */ int getFileType(); /** * int64 TaskId = 8; * @return The taskId. */ long getTaskId(); /** *
     * 重新上传文件
     * 
* * bool ReSend = 9; * @return The reSend. */ boolean getReSend(); } /** * Protobuf type {@code Im.Scrm.Ww.Proto.DownloadFileByUrlTaskMessage} */ public static final class DownloadFileByUrlTaskMessage extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:Im.Scrm.Ww.Proto.DownloadFileByUrlTaskMessage) DownloadFileByUrlTaskMessageOrBuilder { private static final long serialVersionUID = 0L; // Use DownloadFileByUrlTaskMessage.newBuilder() to construct. private DownloadFileByUrlTaskMessage(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DownloadFileByUrlTaskMessage() { url_ = ""; aesKey_ = ""; authKey_ = ""; fileName_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DownloadFileByUrlTaskMessage(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private DownloadFileByUrlTaskMessage( 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 18: { java.lang.String s = input.readStringRequireUtf8(); url_ = s; break; } case 26: { java.lang.String s = input.readStringRequireUtf8(); aesKey_ = s; break; } case 34: { java.lang.String s = input.readStringRequireUtf8(); authKey_ = s; break; } case 42: { java.lang.String s = input.readStringRequireUtf8(); fileName_ = s; break; } case 48: { msgType_ = input.readInt32(); break; } case 56: { fileType_ = input.readInt32(); break; } case 64: { taskId_ = input.readInt64(); break; } case 72: { reSend_ = input.readBool(); 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.WDownloadFileByUrlTask.internal_static_Im_Scrm_Ww_Proto_DownloadFileByUrlTaskMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Im.Scrm.Ww.Proto.WDownloadFileByUrlTask.internal_static_Im_Scrm_Ww_Proto_DownloadFileByUrlTaskMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( Im.Scrm.Ww.Proto.WDownloadFileByUrlTask.DownloadFileByUrlTaskMessage.class, Im.Scrm.Ww.Proto.WDownloadFileByUrlTask.DownloadFileByUrlTaskMessage.Builder.class); } public static final int WXID_FIELD_NUMBER = 1; private long wxId_; /** *
     * 
* * int64 WxId = 1; * @return The wxId. */ public long getWxId() { return wxId_; } public static final int URL_FIELD_NUMBER = 2; private volatile java.lang.Object url_; /** *
     * url或FileId
     * 
* * string Url = 2; * @return The url. */ public java.lang.String getUrl() { java.lang.Object ref = url_; 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(); url_ = s; return s; } } /** *
     * url或FileId
     * 
* * string Url = 2; * @return The bytes for url. */ public com.google.protobuf.ByteString getUrlBytes() { java.lang.Object ref = url_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); url_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int AESKEY_FIELD_NUMBER = 3; private volatile java.lang.Object aesKey_; /** *
     * 
* * string AesKey = 3; * @return The aesKey. */ public java.lang.String getAesKey() { java.lang.Object ref = aesKey_; 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(); aesKey_ = s; return s; } } /** *
     * 
* * string AesKey = 3; * @return The bytes for aesKey. */ public com.google.protobuf.ByteString getAesKeyBytes() { java.lang.Object ref = aesKey_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); aesKey_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int AUTHKEY_FIELD_NUMBER = 4; private volatile java.lang.Object authKey_; /** *
     * 微信CDN AuthKey
     * 
* * string AuthKey = 4; * @return The authKey. */ public java.lang.String getAuthKey() { java.lang.Object ref = authKey_; 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(); authKey_ = s; return s; } } /** *
     * 微信CDN AuthKey
     * 
* * string AuthKey = 4; * @return The bytes for authKey. */ public com.google.protobuf.ByteString getAuthKeyBytes() { java.lang.Object ref = authKey_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); authKey_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int FILENAME_FIELD_NUMBER = 5; private volatile java.lang.Object fileName_; /** *
     * 文件名(一般文件消息才有)
     * 
* * string FileName = 5; * @return The fileName. */ public java.lang.String getFileName() { java.lang.Object ref = fileName_; 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(); fileName_ = s; return s; } } /** *
     * 文件名(一般文件消息才有)
     * 
* * string FileName = 5; * @return The bytes for fileName. */ public com.google.protobuf.ByteString getFileNameBytes() { java.lang.Object ref = fileName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); fileName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int MSGTYPE_FIELD_NUMBER = 6; private int msgType_; /** *
     * 消息类型
     * 
* * int32 MsgType = 6; * @return The msgType. */ public int getMsgType() { return msgType_; } public static final int FILETYPE_FIELD_NUMBER = 7; private int fileType_; /** *
     * 下载文件的类型 0 原始文件(原图,视频,音频,文件) 1 大图, 2 缩率图(预览图)
     * 
* * int32 FileType = 7; * @return The fileType. */ public int getFileType() { return fileType_; } public static final int TASKID_FIELD_NUMBER = 8; private long taskId_; /** * int64 TaskId = 8; * @return The taskId. */ public long getTaskId() { return taskId_; } public static final int RESEND_FIELD_NUMBER = 9; private boolean reSend_; /** *
     * 重新上传文件
     * 
* * bool ReSend = 9; * @return The reSend. */ public boolean getReSend() { return reSend_; } 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 (!getUrlBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, url_); } if (!getAesKeyBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, aesKey_); } if (!getAuthKeyBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, authKey_); } if (!getFileNameBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, fileName_); } if (msgType_ != 0) { output.writeInt32(6, msgType_); } if (fileType_ != 0) { output.writeInt32(7, fileType_); } if (taskId_ != 0L) { output.writeInt64(8, taskId_); } if (reSend_ != false) { output.writeBool(9, reSend_); } 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 (!getUrlBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, url_); } if (!getAesKeyBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, aesKey_); } if (!getAuthKeyBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, authKey_); } if (!getFileNameBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, fileName_); } if (msgType_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(6, msgType_); } if (fileType_ != 0) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(7, fileType_); } if (taskId_ != 0L) { size += com.google.protobuf.CodedOutputStream .computeInt64Size(8, taskId_); } if (reSend_ != false) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(9, reSend_); } 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.WDownloadFileByUrlTask.DownloadFileByUrlTaskMessage)) { return super.equals(obj); } Im.Scrm.Ww.Proto.WDownloadFileByUrlTask.DownloadFileByUrlTaskMessage other = (Im.Scrm.Ww.Proto.WDownloadFileByUrlTask.DownloadFileByUrlTaskMessage) obj; if (getWxId() != other.getWxId()) return false; if (!getUrl() .equals(other.getUrl())) return false; if (!getAesKey() .equals(other.getAesKey())) return false; if (!getAuthKey() .equals(other.getAuthKey())) return false; if (!getFileName() .equals(other.getFileName())) return false; if (getMsgType() != other.getMsgType()) return false; if (getFileType() != other.getFileType()) return false; if (getTaskId() != other.getTaskId()) return false; if (getReSend() != other.getReSend()) 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) + URL_FIELD_NUMBER; hash = (53 * hash) + getUrl().hashCode(); hash = (37 * hash) + AESKEY_FIELD_NUMBER; hash = (53 * hash) + getAesKey().hashCode(); hash = (37 * hash) + AUTHKEY_FIELD_NUMBER; hash = (53 * hash) + getAuthKey().hashCode(); hash = (37 * hash) + FILENAME_FIELD_NUMBER; hash = (53 * hash) + getFileName().hashCode(); hash = (37 * hash) + MSGTYPE_FIELD_NUMBER; hash = (53 * hash) + getMsgType(); hash = (37 * hash) + FILETYPE_FIELD_NUMBER; hash = (53 * hash) + getFileType(); hash = (37 * hash) + TASKID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTaskId()); hash = (37 * hash) + RESEND_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getReSend()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static Im.Scrm.Ww.Proto.WDownloadFileByUrlTask.DownloadFileByUrlTaskMessage parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static Im.Scrm.Ww.Proto.WDownloadFileByUrlTask.DownloadFileByUrlTaskMessage 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.WDownloadFileByUrlTask.DownloadFileByUrlTaskMessage parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static Im.Scrm.Ww.Proto.WDownloadFileByUrlTask.DownloadFileByUrlTaskMessage 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.WDownloadFileByUrlTask.DownloadFileByUrlTaskMessage parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static Im.Scrm.Ww.Proto.WDownloadFileByUrlTask.DownloadFileByUrlTaskMessage parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static Im.Scrm.Ww.Proto.WDownloadFileByUrlTask.DownloadFileByUrlTaskMessage parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static Im.Scrm.Ww.Proto.WDownloadFileByUrlTask.DownloadFileByUrlTaskMessage 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.WDownloadFileByUrlTask.DownloadFileByUrlTaskMessage parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static Im.Scrm.Ww.Proto.WDownloadFileByUrlTask.DownloadFileByUrlTaskMessage 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.WDownloadFileByUrlTask.DownloadFileByUrlTaskMessage parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static Im.Scrm.Ww.Proto.WDownloadFileByUrlTask.DownloadFileByUrlTaskMessage 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.WDownloadFileByUrlTask.DownloadFileByUrlTaskMessage 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.DownloadFileByUrlTaskMessage} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:Im.Scrm.Ww.Proto.DownloadFileByUrlTaskMessage) Im.Scrm.Ww.Proto.WDownloadFileByUrlTask.DownloadFileByUrlTaskMessageOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return Im.Scrm.Ww.Proto.WDownloadFileByUrlTask.internal_static_Im_Scrm_Ww_Proto_DownloadFileByUrlTaskMessage_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return Im.Scrm.Ww.Proto.WDownloadFileByUrlTask.internal_static_Im_Scrm_Ww_Proto_DownloadFileByUrlTaskMessage_fieldAccessorTable .ensureFieldAccessorsInitialized( Im.Scrm.Ww.Proto.WDownloadFileByUrlTask.DownloadFileByUrlTaskMessage.class, Im.Scrm.Ww.Proto.WDownloadFileByUrlTask.DownloadFileByUrlTaskMessage.Builder.class); } // Construct using Im.Scrm.Ww.Proto.WDownloadFileByUrlTask.DownloadFileByUrlTaskMessage.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; url_ = ""; aesKey_ = ""; authKey_ = ""; fileName_ = ""; msgType_ = 0; fileType_ = 0; taskId_ = 0L; reSend_ = false; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return Im.Scrm.Ww.Proto.WDownloadFileByUrlTask.internal_static_Im_Scrm_Ww_Proto_DownloadFileByUrlTaskMessage_descriptor; } @java.lang.Override public Im.Scrm.Ww.Proto.WDownloadFileByUrlTask.DownloadFileByUrlTaskMessage getDefaultInstanceForType() { return Im.Scrm.Ww.Proto.WDownloadFileByUrlTask.DownloadFileByUrlTaskMessage.getDefaultInstance(); } @java.lang.Override public Im.Scrm.Ww.Proto.WDownloadFileByUrlTask.DownloadFileByUrlTaskMessage build() { Im.Scrm.Ww.Proto.WDownloadFileByUrlTask.DownloadFileByUrlTaskMessage result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public Im.Scrm.Ww.Proto.WDownloadFileByUrlTask.DownloadFileByUrlTaskMessage buildPartial() { Im.Scrm.Ww.Proto.WDownloadFileByUrlTask.DownloadFileByUrlTaskMessage result = new Im.Scrm.Ww.Proto.WDownloadFileByUrlTask.DownloadFileByUrlTaskMessage(this); result.wxId_ = wxId_; result.url_ = url_; result.aesKey_ = aesKey_; result.authKey_ = authKey_; result.fileName_ = fileName_; result.msgType_ = msgType_; result.fileType_ = fileType_; result.taskId_ = taskId_; result.reSend_ = reSend_; 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.WDownloadFileByUrlTask.DownloadFileByUrlTaskMessage) { return mergeFrom((Im.Scrm.Ww.Proto.WDownloadFileByUrlTask.DownloadFileByUrlTaskMessage)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(Im.Scrm.Ww.Proto.WDownloadFileByUrlTask.DownloadFileByUrlTaskMessage other) { if (other == Im.Scrm.Ww.Proto.WDownloadFileByUrlTask.DownloadFileByUrlTaskMessage.getDefaultInstance()) return this; if (other.getWxId() != 0L) { setWxId(other.getWxId()); } if (!other.getUrl().isEmpty()) { url_ = other.url_; onChanged(); } if (!other.getAesKey().isEmpty()) { aesKey_ = other.aesKey_; onChanged(); } if (!other.getAuthKey().isEmpty()) { authKey_ = other.authKey_; onChanged(); } if (!other.getFileName().isEmpty()) { fileName_ = other.fileName_; onChanged(); } if (other.getMsgType() != 0) { setMsgType(other.getMsgType()); } if (other.getFileType() != 0) { setFileType(other.getFileType()); } if (other.getTaskId() != 0L) { setTaskId(other.getTaskId()); } if (other.getReSend() != false) { setReSend(other.getReSend()); } 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.WDownloadFileByUrlTask.DownloadFileByUrlTaskMessage parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (Im.Scrm.Ww.Proto.WDownloadFileByUrlTask.DownloadFileByUrlTaskMessage) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private long wxId_ ; /** *
       * 
* * int64 WxId = 1; * @return The wxId. */ public long getWxId() { return wxId_; } /** *
       * 
* * int64 WxId = 1; * @param value The wxId to set. * @return This builder for chaining. */ public Builder setWxId(long value) { wxId_ = value; onChanged(); return this; } /** *
       * 
* * int64 WxId = 1; * @return This builder for chaining. */ public Builder clearWxId() { wxId_ = 0L; onChanged(); return this; } private java.lang.Object url_ = ""; /** *
       * url或FileId
       * 
* * string Url = 2; * @return The url. */ public java.lang.String getUrl() { java.lang.Object ref = url_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); url_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * url或FileId
       * 
* * string Url = 2; * @return The bytes for url. */ public com.google.protobuf.ByteString getUrlBytes() { java.lang.Object ref = url_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); url_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * url或FileId
       * 
* * string Url = 2; * @param value The url to set. * @return This builder for chaining. */ public Builder setUrl( java.lang.String value) { if (value == null) { throw new NullPointerException(); } url_ = value; onChanged(); return this; } /** *
       * url或FileId
       * 
* * string Url = 2; * @return This builder for chaining. */ public Builder clearUrl() { url_ = getDefaultInstance().getUrl(); onChanged(); return this; } /** *
       * url或FileId
       * 
* * string Url = 2; * @param value The bytes for url to set. * @return This builder for chaining. */ public Builder setUrlBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); url_ = value; onChanged(); return this; } private java.lang.Object aesKey_ = ""; /** *
       * 
* * string AesKey = 3; * @return The aesKey. */ public java.lang.String getAesKey() { java.lang.Object ref = aesKey_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); aesKey_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * 
* * string AesKey = 3; * @return The bytes for aesKey. */ public com.google.protobuf.ByteString getAesKeyBytes() { java.lang.Object ref = aesKey_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); aesKey_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * 
* * string AesKey = 3; * @param value The aesKey to set. * @return This builder for chaining. */ public Builder setAesKey( java.lang.String value) { if (value == null) { throw new NullPointerException(); } aesKey_ = value; onChanged(); return this; } /** *
       * 
* * string AesKey = 3; * @return This builder for chaining. */ public Builder clearAesKey() { aesKey_ = getDefaultInstance().getAesKey(); onChanged(); return this; } /** *
       * 
* * string AesKey = 3; * @param value The bytes for aesKey to set. * @return This builder for chaining. */ public Builder setAesKeyBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); aesKey_ = value; onChanged(); return this; } private java.lang.Object authKey_ = ""; /** *
       * 微信CDN AuthKey
       * 
* * string AuthKey = 4; * @return The authKey. */ public java.lang.String getAuthKey() { java.lang.Object ref = authKey_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); authKey_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * 微信CDN AuthKey
       * 
* * string AuthKey = 4; * @return The bytes for authKey. */ public com.google.protobuf.ByteString getAuthKeyBytes() { java.lang.Object ref = authKey_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); authKey_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * 微信CDN AuthKey
       * 
* * string AuthKey = 4; * @param value The authKey to set. * @return This builder for chaining. */ public Builder setAuthKey( java.lang.String value) { if (value == null) { throw new NullPointerException(); } authKey_ = value; onChanged(); return this; } /** *
       * 微信CDN AuthKey
       * 
* * string AuthKey = 4; * @return This builder for chaining. */ public Builder clearAuthKey() { authKey_ = getDefaultInstance().getAuthKey(); onChanged(); return this; } /** *
       * 微信CDN AuthKey
       * 
* * string AuthKey = 4; * @param value The bytes for authKey to set. * @return This builder for chaining. */ public Builder setAuthKeyBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); authKey_ = value; onChanged(); return this; } private java.lang.Object fileName_ = ""; /** *
       * 文件名(一般文件消息才有)
       * 
* * string FileName = 5; * @return The fileName. */ public java.lang.String getFileName() { java.lang.Object ref = fileName_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); fileName_ = s; return s; } else { return (java.lang.String) ref; } } /** *
       * 文件名(一般文件消息才有)
       * 
* * string FileName = 5; * @return The bytes for fileName. */ public com.google.protobuf.ByteString getFileNameBytes() { java.lang.Object ref = fileName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); fileName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * 文件名(一般文件消息才有)
       * 
* * string FileName = 5; * @param value The fileName to set. * @return This builder for chaining. */ public Builder setFileName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } fileName_ = value; onChanged(); return this; } /** *
       * 文件名(一般文件消息才有)
       * 
* * string FileName = 5; * @return This builder for chaining. */ public Builder clearFileName() { fileName_ = getDefaultInstance().getFileName(); onChanged(); return this; } /** *
       * 文件名(一般文件消息才有)
       * 
* * string FileName = 5; * @param value The bytes for fileName to set. * @return This builder for chaining. */ public Builder setFileNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } checkByteStringIsUtf8(value); fileName_ = value; onChanged(); return this; } private int msgType_ ; /** *
       * 消息类型
       * 
* * int32 MsgType = 6; * @return The msgType. */ public int getMsgType() { return msgType_; } /** *
       * 消息类型
       * 
* * int32 MsgType = 6; * @param value The msgType to set. * @return This builder for chaining. */ public Builder setMsgType(int value) { msgType_ = value; onChanged(); return this; } /** *
       * 消息类型
       * 
* * int32 MsgType = 6; * @return This builder for chaining. */ public Builder clearMsgType() { msgType_ = 0; onChanged(); return this; } private int fileType_ ; /** *
       * 下载文件的类型 0 原始文件(原图,视频,音频,文件) 1 大图, 2 缩率图(预览图)
       * 
* * int32 FileType = 7; * @return The fileType. */ public int getFileType() { return fileType_; } /** *
       * 下载文件的类型 0 原始文件(原图,视频,音频,文件) 1 大图, 2 缩率图(预览图)
       * 
* * int32 FileType = 7; * @param value The fileType to set. * @return This builder for chaining. */ public Builder setFileType(int value) { fileType_ = value; onChanged(); return this; } /** *
       * 下载文件的类型 0 原始文件(原图,视频,音频,文件) 1 大图, 2 缩率图(预览图)
       * 
* * int32 FileType = 7; * @return This builder for chaining. */ public Builder clearFileType() { fileType_ = 0; onChanged(); return this; } private long taskId_ ; /** * int64 TaskId = 8; * @return The taskId. */ public long getTaskId() { return taskId_; } /** * int64 TaskId = 8; * @param value The taskId to set. * @return This builder for chaining. */ public Builder setTaskId(long value) { taskId_ = value; onChanged(); return this; } /** * int64 TaskId = 8; * @return This builder for chaining. */ public Builder clearTaskId() { taskId_ = 0L; onChanged(); return this; } private boolean reSend_ ; /** *
       * 重新上传文件
       * 
* * bool ReSend = 9; * @return The reSend. */ public boolean getReSend() { return reSend_; } /** *
       * 重新上传文件
       * 
* * bool ReSend = 9; * @param value The reSend to set. * @return This builder for chaining. */ public Builder setReSend(boolean value) { reSend_ = value; onChanged(); return this; } /** *
       * 重新上传文件
       * 
* * bool ReSend = 9; * @return This builder for chaining. */ public Builder clearReSend() { reSend_ = false; 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.DownloadFileByUrlTaskMessage) } // @@protoc_insertion_point(class_scope:Im.Scrm.Ww.Proto.DownloadFileByUrlTaskMessage) private static final Im.Scrm.Ww.Proto.WDownloadFileByUrlTask.DownloadFileByUrlTaskMessage DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new Im.Scrm.Ww.Proto.WDownloadFileByUrlTask.DownloadFileByUrlTaskMessage(); } public static Im.Scrm.Ww.Proto.WDownloadFileByUrlTask.DownloadFileByUrlTaskMessage getDefaultInstance() { return DEFAULT_INSTANCE; } private static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DownloadFileByUrlTaskMessage parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new DownloadFileByUrlTaskMessage(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.WDownloadFileByUrlTask.DownloadFileByUrlTaskMessage getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_Im_Scrm_Ww_Proto_DownloadFileByUrlTaskMessage_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_Im_Scrm_Ww_Proto_DownloadFileByUrlTaskMessage_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\034WDownloadFileByUrlTask.proto\022\020Im.Scrm." + "Ww.Proto\"\257\001\n\034DownloadFileByUrlTaskMessag" + "e\022\014\n\004WxId\030\001 \001(\003\022\013\n\003Url\030\002 \001(\t\022\016\n\006AesKey\030\003" + " \001(\t\022\017\n\007AuthKey\030\004 \001(\t\022\020\n\010FileName\030\005 \001(\t\022" + "\017\n\007MsgType\030\006 \001(\005\022\020\n\010FileType\030\007 \001(\005\022\016\n\006Ta" + "skId\030\010 \001(\003\022\016\n\006ReSend\030\t \001(\010b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { }); internal_static_Im_Scrm_Ww_Proto_DownloadFileByUrlTaskMessage_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_Im_Scrm_Ww_Proto_DownloadFileByUrlTaskMessage_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_Im_Scrm_Ww_Proto_DownloadFileByUrlTaskMessage_descriptor, new java.lang.String[] { "WxId", "Url", "AesKey", "AuthKey", "FileName", "MsgType", "FileType", "TaskId", "ReSend", }); } // @@protoc_insertion_point(outer_class_scope) }