
wechat.protobuf.UploadVoiceRequest Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: wechat.proto
package wechat.protobuf;
/**
* Protobuf type {@code wechat_proto.UploadVoiceRequest}
*/
public final class UploadVoiceRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:wechat_proto.UploadVoiceRequest)
UploadVoiceRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use UploadVoiceRequest.newBuilder() to construct.
private UploadVoiceRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private UploadVoiceRequest() {
fromUserName_ = "";
toUserName_ = "";
clientMsgId_ = "";
msgSource_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new UploadVoiceRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private UploadVoiceRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
fromUserName_ = bs;
break;
}
case 18: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000002;
toUserName_ = bs;
break;
}
case 24: {
bitField0_ |= 0x00000004;
offset_ = input.readUInt32();
break;
}
case 32: {
bitField0_ |= 0x00000008;
length_ = input.readUInt32();
break;
}
case 42: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000010;
clientMsgId_ = bs;
break;
}
case 48: {
bitField0_ |= 0x00000020;
msgId_ = input.readUInt32();
break;
}
case 56: {
bitField0_ |= 0x00000040;
voiceLength_ = input.readUInt32();
break;
}
case 66: {
wechat.protobuf.SKBuiltinString_.Builder subBuilder = null;
if (((bitField0_ & 0x00000080) != 0)) {
subBuilder = data_.toBuilder();
}
data_ = input.readMessage(wechat.protobuf.SKBuiltinString_.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(data_);
data_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000080;
break;
}
case 72: {
bitField0_ |= 0x00000100;
endFlag_ = input.readUInt32();
break;
}
case 82: {
wechat.protobuf.BaseRequest.Builder subBuilder = null;
if (((bitField0_ & 0x00000200) != 0)) {
subBuilder = baseRequest_.toBuilder();
}
baseRequest_ = input.readMessage(wechat.protobuf.BaseRequest.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(baseRequest_);
baseRequest_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000200;
break;
}
case 88: {
bitField0_ |= 0x00000400;
cancelFlag_ = input.readUInt32();
break;
}
case 98: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000800;
msgSource_ = bs;
break;
}
case 104: {
bitField0_ |= 0x00001000;
voiceFormat_ = input.readUInt32();
break;
}
case 112: {
bitField0_ |= 0x00002000;
uicreateTime_ = input.readUInt32();
break;
}
case 120: {
bitField0_ |= 0x00004000;
forwardFlag_ = input.readUInt32();
break;
}
case 128: {
bitField0_ |= 0x00008000;
newMsgId_ = input.readUInt64();
break;
}
case 136: {
bitField0_ |= 0x00010000;
reqTime_ = input.readUInt32();
break;
}
case 146: {
wechat.protobuf.SKBuiltinString_.Builder subBuilder = null;
if (((bitField0_ & 0x00020000) != 0)) {
subBuilder = voiceId_.toBuilder();
}
voiceId_ = input.readMessage(wechat.protobuf.SKBuiltinString_.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(voiceId_);
voiceId_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00020000;
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 wechat.protobuf.Wechat.internal_static_wechat_proto_UploadVoiceRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return wechat.protobuf.Wechat.internal_static_wechat_proto_UploadVoiceRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
wechat.protobuf.UploadVoiceRequest.class, wechat.protobuf.UploadVoiceRequest.Builder.class);
}
private int bitField0_;
public static final int FROMUSERNAME_FIELD_NUMBER = 1;
private volatile java.lang.Object fromUserName_;
/**
* optional string fromUserName = 1;
* @return Whether the fromUserName field is set.
*/
@java.lang.Override
public boolean hasFromUserName() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional string fromUserName = 1;
* @return The fromUserName.
*/
@java.lang.Override
public java.lang.String getFromUserName() {
java.lang.Object ref = fromUserName_;
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();
if (bs.isValidUtf8()) {
fromUserName_ = s;
}
return s;
}
}
/**
* optional string fromUserName = 1;
* @return The bytes for fromUserName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getFromUserNameBytes() {
java.lang.Object ref = fromUserName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
fromUserName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int TOUSERNAME_FIELD_NUMBER = 2;
private volatile java.lang.Object toUserName_;
/**
* optional string toUserName = 2;
* @return Whether the toUserName field is set.
*/
@java.lang.Override
public boolean hasToUserName() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional string toUserName = 2;
* @return The toUserName.
*/
@java.lang.Override
public java.lang.String getToUserName() {
java.lang.Object ref = toUserName_;
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();
if (bs.isValidUtf8()) {
toUserName_ = s;
}
return s;
}
}
/**
* optional string toUserName = 2;
* @return The bytes for toUserName.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getToUserNameBytes() {
java.lang.Object ref = toUserName_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
toUserName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int OFFSET_FIELD_NUMBER = 3;
private int offset_;
/**
* optional uint32 offset = 3;
* @return Whether the offset field is set.
*/
@java.lang.Override
public boolean hasOffset() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional uint32 offset = 3;
* @return The offset.
*/
@java.lang.Override
public int getOffset() {
return offset_;
}
public static final int LENGTH_FIELD_NUMBER = 4;
private int length_;
/**
* optional uint32 length = 4;
* @return Whether the length field is set.
*/
@java.lang.Override
public boolean hasLength() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional uint32 length = 4;
* @return The length.
*/
@java.lang.Override
public int getLength() {
return length_;
}
public static final int CLIENTMSGID_FIELD_NUMBER = 5;
private volatile java.lang.Object clientMsgId_;
/**
* optional string clientMsgId = 5;
* @return Whether the clientMsgId field is set.
*/
@java.lang.Override
public boolean hasClientMsgId() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* optional string clientMsgId = 5;
* @return The clientMsgId.
*/
@java.lang.Override
public java.lang.String getClientMsgId() {
java.lang.Object ref = clientMsgId_;
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();
if (bs.isValidUtf8()) {
clientMsgId_ = s;
}
return s;
}
}
/**
* optional string clientMsgId = 5;
* @return The bytes for clientMsgId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getClientMsgIdBytes() {
java.lang.Object ref = clientMsgId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
clientMsgId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int MSGID_FIELD_NUMBER = 6;
private int msgId_;
/**
* optional uint32 msgId = 6;
* @return Whether the msgId field is set.
*/
@java.lang.Override
public boolean hasMsgId() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
* optional uint32 msgId = 6;
* @return The msgId.
*/
@java.lang.Override
public int getMsgId() {
return msgId_;
}
public static final int VOICELENGTH_FIELD_NUMBER = 7;
private int voiceLength_;
/**
* optional uint32 voiceLength = 7;
* @return Whether the voiceLength field is set.
*/
@java.lang.Override
public boolean hasVoiceLength() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
* optional uint32 voiceLength = 7;
* @return The voiceLength.
*/
@java.lang.Override
public int getVoiceLength() {
return voiceLength_;
}
public static final int DATA_FIELD_NUMBER = 8;
private wechat.protobuf.SKBuiltinString_ data_;
/**
* optional .wechat_proto.SKBuiltinString_ data = 8;
* @return Whether the data field is set.
*/
@java.lang.Override
public boolean hasData() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
* optional .wechat_proto.SKBuiltinString_ data = 8;
* @return The data.
*/
@java.lang.Override
public wechat.protobuf.SKBuiltinString_ getData() {
return data_ == null ? wechat.protobuf.SKBuiltinString_.getDefaultInstance() : data_;
}
/**
* optional .wechat_proto.SKBuiltinString_ data = 8;
*/
@java.lang.Override
public wechat.protobuf.SKBuiltinString_OrBuilder getDataOrBuilder() {
return data_ == null ? wechat.protobuf.SKBuiltinString_.getDefaultInstance() : data_;
}
public static final int ENDFLAG_FIELD_NUMBER = 9;
private int endFlag_;
/**
* optional uint32 endFlag = 9;
* @return Whether the endFlag field is set.
*/
@java.lang.Override
public boolean hasEndFlag() {
return ((bitField0_ & 0x00000100) != 0);
}
/**
* optional uint32 endFlag = 9;
* @return The endFlag.
*/
@java.lang.Override
public int getEndFlag() {
return endFlag_;
}
public static final int BASEREQUEST_FIELD_NUMBER = 10;
private wechat.protobuf.BaseRequest baseRequest_;
/**
* optional .wechat_proto.BaseRequest baseRequest = 10;
* @return Whether the baseRequest field is set.
*/
@java.lang.Override
public boolean hasBaseRequest() {
return ((bitField0_ & 0x00000200) != 0);
}
/**
* optional .wechat_proto.BaseRequest baseRequest = 10;
* @return The baseRequest.
*/
@java.lang.Override
public wechat.protobuf.BaseRequest getBaseRequest() {
return baseRequest_ == null ? wechat.protobuf.BaseRequest.getDefaultInstance() : baseRequest_;
}
/**
* optional .wechat_proto.BaseRequest baseRequest = 10;
*/
@java.lang.Override
public wechat.protobuf.BaseRequestOrBuilder getBaseRequestOrBuilder() {
return baseRequest_ == null ? wechat.protobuf.BaseRequest.getDefaultInstance() : baseRequest_;
}
public static final int CANCELFLAG_FIELD_NUMBER = 11;
private int cancelFlag_;
/**
* optional uint32 cancelFlag = 11;
* @return Whether the cancelFlag field is set.
*/
@java.lang.Override
public boolean hasCancelFlag() {
return ((bitField0_ & 0x00000400) != 0);
}
/**
* optional uint32 cancelFlag = 11;
* @return The cancelFlag.
*/
@java.lang.Override
public int getCancelFlag() {
return cancelFlag_;
}
public static final int MSGSOURCE_FIELD_NUMBER = 12;
private volatile java.lang.Object msgSource_;
/**
* optional string msgSource = 12;
* @return Whether the msgSource field is set.
*/
@java.lang.Override
public boolean hasMsgSource() {
return ((bitField0_ & 0x00000800) != 0);
}
/**
* optional string msgSource = 12;
* @return The msgSource.
*/
@java.lang.Override
public java.lang.String getMsgSource() {
java.lang.Object ref = msgSource_;
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();
if (bs.isValidUtf8()) {
msgSource_ = s;
}
return s;
}
}
/**
* optional string msgSource = 12;
* @return The bytes for msgSource.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getMsgSourceBytes() {
java.lang.Object ref = msgSource_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
msgSource_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int VOICEFORMAT_FIELD_NUMBER = 13;
private int voiceFormat_;
/**
* optional uint32 voiceFormat = 13;
* @return Whether the voiceFormat field is set.
*/
@java.lang.Override
public boolean hasVoiceFormat() {
return ((bitField0_ & 0x00001000) != 0);
}
/**
* optional uint32 voiceFormat = 13;
* @return The voiceFormat.
*/
@java.lang.Override
public int getVoiceFormat() {
return voiceFormat_;
}
public static final int UICREATETIME_FIELD_NUMBER = 14;
private int uicreateTime_;
/**
* optional uint32 uicreateTime = 14;
* @return Whether the uicreateTime field is set.
*/
@java.lang.Override
public boolean hasUicreateTime() {
return ((bitField0_ & 0x00002000) != 0);
}
/**
* optional uint32 uicreateTime = 14;
* @return The uicreateTime.
*/
@java.lang.Override
public int getUicreateTime() {
return uicreateTime_;
}
public static final int FORWARDFLAG_FIELD_NUMBER = 15;
private int forwardFlag_;
/**
* optional uint32 forwardFlag = 15;
* @return Whether the forwardFlag field is set.
*/
@java.lang.Override
public boolean hasForwardFlag() {
return ((bitField0_ & 0x00004000) != 0);
}
/**
* optional uint32 forwardFlag = 15;
* @return The forwardFlag.
*/
@java.lang.Override
public int getForwardFlag() {
return forwardFlag_;
}
public static final int NEWMSGID_FIELD_NUMBER = 16;
private long newMsgId_;
/**
* optional uint64 newMsgId = 16;
* @return Whether the newMsgId field is set.
*/
@java.lang.Override
public boolean hasNewMsgId() {
return ((bitField0_ & 0x00008000) != 0);
}
/**
* optional uint64 newMsgId = 16;
* @return The newMsgId.
*/
@java.lang.Override
public long getNewMsgId() {
return newMsgId_;
}
public static final int REQTIME_FIELD_NUMBER = 17;
private int reqTime_;
/**
* optional uint32 reqTime = 17;
* @return Whether the reqTime field is set.
*/
@java.lang.Override
public boolean hasReqTime() {
return ((bitField0_ & 0x00010000) != 0);
}
/**
* optional uint32 reqTime = 17;
* @return The reqTime.
*/
@java.lang.Override
public int getReqTime() {
return reqTime_;
}
public static final int VOICEID_FIELD_NUMBER = 18;
private wechat.protobuf.SKBuiltinString_ voiceId_;
/**
* optional .wechat_proto.SKBuiltinString_ voiceId = 18;
* @return Whether the voiceId field is set.
*/
@java.lang.Override
public boolean hasVoiceId() {
return ((bitField0_ & 0x00020000) != 0);
}
/**
* optional .wechat_proto.SKBuiltinString_ voiceId = 18;
* @return The voiceId.
*/
@java.lang.Override
public wechat.protobuf.SKBuiltinString_ getVoiceId() {
return voiceId_ == null ? wechat.protobuf.SKBuiltinString_.getDefaultInstance() : voiceId_;
}
/**
* optional .wechat_proto.SKBuiltinString_ voiceId = 18;
*/
@java.lang.Override
public wechat.protobuf.SKBuiltinString_OrBuilder getVoiceIdOrBuilder() {
return voiceId_ == null ? wechat.protobuf.SKBuiltinString_.getDefaultInstance() : voiceId_;
}
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 (((bitField0_ & 0x00000001) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, fromUserName_);
}
if (((bitField0_ & 0x00000002) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, toUserName_);
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeUInt32(3, offset_);
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeUInt32(4, length_);
}
if (((bitField0_ & 0x00000010) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, clientMsgId_);
}
if (((bitField0_ & 0x00000020) != 0)) {
output.writeUInt32(6, msgId_);
}
if (((bitField0_ & 0x00000040) != 0)) {
output.writeUInt32(7, voiceLength_);
}
if (((bitField0_ & 0x00000080) != 0)) {
output.writeMessage(8, getData());
}
if (((bitField0_ & 0x00000100) != 0)) {
output.writeUInt32(9, endFlag_);
}
if (((bitField0_ & 0x00000200) != 0)) {
output.writeMessage(10, getBaseRequest());
}
if (((bitField0_ & 0x00000400) != 0)) {
output.writeUInt32(11, cancelFlag_);
}
if (((bitField0_ & 0x00000800) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 12, msgSource_);
}
if (((bitField0_ & 0x00001000) != 0)) {
output.writeUInt32(13, voiceFormat_);
}
if (((bitField0_ & 0x00002000) != 0)) {
output.writeUInt32(14, uicreateTime_);
}
if (((bitField0_ & 0x00004000) != 0)) {
output.writeUInt32(15, forwardFlag_);
}
if (((bitField0_ & 0x00008000) != 0)) {
output.writeUInt64(16, newMsgId_);
}
if (((bitField0_ & 0x00010000) != 0)) {
output.writeUInt32(17, reqTime_);
}
if (((bitField0_ & 0x00020000) != 0)) {
output.writeMessage(18, getVoiceId());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, fromUserName_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, toUserName_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(3, offset_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(4, length_);
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, clientMsgId_);
}
if (((bitField0_ & 0x00000020) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(6, msgId_);
}
if (((bitField0_ & 0x00000040) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(7, voiceLength_);
}
if (((bitField0_ & 0x00000080) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, getData());
}
if (((bitField0_ & 0x00000100) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(9, endFlag_);
}
if (((bitField0_ & 0x00000200) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(10, getBaseRequest());
}
if (((bitField0_ & 0x00000400) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(11, cancelFlag_);
}
if (((bitField0_ & 0x00000800) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, msgSource_);
}
if (((bitField0_ & 0x00001000) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(13, voiceFormat_);
}
if (((bitField0_ & 0x00002000) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(14, uicreateTime_);
}
if (((bitField0_ & 0x00004000) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(15, forwardFlag_);
}
if (((bitField0_ & 0x00008000) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(16, newMsgId_);
}
if (((bitField0_ & 0x00010000) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(17, reqTime_);
}
if (((bitField0_ & 0x00020000) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(18, getVoiceId());
}
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 wechat.protobuf.UploadVoiceRequest)) {
return super.equals(obj);
}
wechat.protobuf.UploadVoiceRequest other = (wechat.protobuf.UploadVoiceRequest) obj;
if (hasFromUserName() != other.hasFromUserName()) return false;
if (hasFromUserName()) {
if (!getFromUserName()
.equals(other.getFromUserName())) return false;
}
if (hasToUserName() != other.hasToUserName()) return false;
if (hasToUserName()) {
if (!getToUserName()
.equals(other.getToUserName())) return false;
}
if (hasOffset() != other.hasOffset()) return false;
if (hasOffset()) {
if (getOffset()
!= other.getOffset()) return false;
}
if (hasLength() != other.hasLength()) return false;
if (hasLength()) {
if (getLength()
!= other.getLength()) return false;
}
if (hasClientMsgId() != other.hasClientMsgId()) return false;
if (hasClientMsgId()) {
if (!getClientMsgId()
.equals(other.getClientMsgId())) return false;
}
if (hasMsgId() != other.hasMsgId()) return false;
if (hasMsgId()) {
if (getMsgId()
!= other.getMsgId()) return false;
}
if (hasVoiceLength() != other.hasVoiceLength()) return false;
if (hasVoiceLength()) {
if (getVoiceLength()
!= other.getVoiceLength()) return false;
}
if (hasData() != other.hasData()) return false;
if (hasData()) {
if (!getData()
.equals(other.getData())) return false;
}
if (hasEndFlag() != other.hasEndFlag()) return false;
if (hasEndFlag()) {
if (getEndFlag()
!= other.getEndFlag()) return false;
}
if (hasBaseRequest() != other.hasBaseRequest()) return false;
if (hasBaseRequest()) {
if (!getBaseRequest()
.equals(other.getBaseRequest())) return false;
}
if (hasCancelFlag() != other.hasCancelFlag()) return false;
if (hasCancelFlag()) {
if (getCancelFlag()
!= other.getCancelFlag()) return false;
}
if (hasMsgSource() != other.hasMsgSource()) return false;
if (hasMsgSource()) {
if (!getMsgSource()
.equals(other.getMsgSource())) return false;
}
if (hasVoiceFormat() != other.hasVoiceFormat()) return false;
if (hasVoiceFormat()) {
if (getVoiceFormat()
!= other.getVoiceFormat()) return false;
}
if (hasUicreateTime() != other.hasUicreateTime()) return false;
if (hasUicreateTime()) {
if (getUicreateTime()
!= other.getUicreateTime()) return false;
}
if (hasForwardFlag() != other.hasForwardFlag()) return false;
if (hasForwardFlag()) {
if (getForwardFlag()
!= other.getForwardFlag()) return false;
}
if (hasNewMsgId() != other.hasNewMsgId()) return false;
if (hasNewMsgId()) {
if (getNewMsgId()
!= other.getNewMsgId()) return false;
}
if (hasReqTime() != other.hasReqTime()) return false;
if (hasReqTime()) {
if (getReqTime()
!= other.getReqTime()) return false;
}
if (hasVoiceId() != other.hasVoiceId()) return false;
if (hasVoiceId()) {
if (!getVoiceId()
.equals(other.getVoiceId())) 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();
if (hasFromUserName()) {
hash = (37 * hash) + FROMUSERNAME_FIELD_NUMBER;
hash = (53 * hash) + getFromUserName().hashCode();
}
if (hasToUserName()) {
hash = (37 * hash) + TOUSERNAME_FIELD_NUMBER;
hash = (53 * hash) + getToUserName().hashCode();
}
if (hasOffset()) {
hash = (37 * hash) + OFFSET_FIELD_NUMBER;
hash = (53 * hash) + getOffset();
}
if (hasLength()) {
hash = (37 * hash) + LENGTH_FIELD_NUMBER;
hash = (53 * hash) + getLength();
}
if (hasClientMsgId()) {
hash = (37 * hash) + CLIENTMSGID_FIELD_NUMBER;
hash = (53 * hash) + getClientMsgId().hashCode();
}
if (hasMsgId()) {
hash = (37 * hash) + MSGID_FIELD_NUMBER;
hash = (53 * hash) + getMsgId();
}
if (hasVoiceLength()) {
hash = (37 * hash) + VOICELENGTH_FIELD_NUMBER;
hash = (53 * hash) + getVoiceLength();
}
if (hasData()) {
hash = (37 * hash) + DATA_FIELD_NUMBER;
hash = (53 * hash) + getData().hashCode();
}
if (hasEndFlag()) {
hash = (37 * hash) + ENDFLAG_FIELD_NUMBER;
hash = (53 * hash) + getEndFlag();
}
if (hasBaseRequest()) {
hash = (37 * hash) + BASEREQUEST_FIELD_NUMBER;
hash = (53 * hash) + getBaseRequest().hashCode();
}
if (hasCancelFlag()) {
hash = (37 * hash) + CANCELFLAG_FIELD_NUMBER;
hash = (53 * hash) + getCancelFlag();
}
if (hasMsgSource()) {
hash = (37 * hash) + MSGSOURCE_FIELD_NUMBER;
hash = (53 * hash) + getMsgSource().hashCode();
}
if (hasVoiceFormat()) {
hash = (37 * hash) + VOICEFORMAT_FIELD_NUMBER;
hash = (53 * hash) + getVoiceFormat();
}
if (hasUicreateTime()) {
hash = (37 * hash) + UICREATETIME_FIELD_NUMBER;
hash = (53 * hash) + getUicreateTime();
}
if (hasForwardFlag()) {
hash = (37 * hash) + FORWARDFLAG_FIELD_NUMBER;
hash = (53 * hash) + getForwardFlag();
}
if (hasNewMsgId()) {
hash = (37 * hash) + NEWMSGID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getNewMsgId());
}
if (hasReqTime()) {
hash = (37 * hash) + REQTIME_FIELD_NUMBER;
hash = (53 * hash) + getReqTime();
}
if (hasVoiceId()) {
hash = (37 * hash) + VOICEID_FIELD_NUMBER;
hash = (53 * hash) + getVoiceId().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static wechat.protobuf.UploadVoiceRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static wechat.protobuf.UploadVoiceRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static wechat.protobuf.UploadVoiceRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static wechat.protobuf.UploadVoiceRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static wechat.protobuf.UploadVoiceRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static wechat.protobuf.UploadVoiceRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static wechat.protobuf.UploadVoiceRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static wechat.protobuf.UploadVoiceRequest 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 wechat.protobuf.UploadVoiceRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static wechat.protobuf.UploadVoiceRequest 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 wechat.protobuf.UploadVoiceRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static wechat.protobuf.UploadVoiceRequest 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(wechat.protobuf.UploadVoiceRequest 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 wechat_proto.UploadVoiceRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:wechat_proto.UploadVoiceRequest)
wechat.protobuf.UploadVoiceRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return wechat.protobuf.Wechat.internal_static_wechat_proto_UploadVoiceRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return wechat.protobuf.Wechat.internal_static_wechat_proto_UploadVoiceRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
wechat.protobuf.UploadVoiceRequest.class, wechat.protobuf.UploadVoiceRequest.Builder.class);
}
// Construct using wechat.protobuf.UploadVoiceRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getDataFieldBuilder();
getBaseRequestFieldBuilder();
getVoiceIdFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
fromUserName_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
toUserName_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
offset_ = 0;
bitField0_ = (bitField0_ & ~0x00000004);
length_ = 0;
bitField0_ = (bitField0_ & ~0x00000008);
clientMsgId_ = "";
bitField0_ = (bitField0_ & ~0x00000010);
msgId_ = 0;
bitField0_ = (bitField0_ & ~0x00000020);
voiceLength_ = 0;
bitField0_ = (bitField0_ & ~0x00000040);
if (dataBuilder_ == null) {
data_ = null;
} else {
dataBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000080);
endFlag_ = 0;
bitField0_ = (bitField0_ & ~0x00000100);
if (baseRequestBuilder_ == null) {
baseRequest_ = null;
} else {
baseRequestBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000200);
cancelFlag_ = 0;
bitField0_ = (bitField0_ & ~0x00000400);
msgSource_ = "";
bitField0_ = (bitField0_ & ~0x00000800);
voiceFormat_ = 0;
bitField0_ = (bitField0_ & ~0x00001000);
uicreateTime_ = 0;
bitField0_ = (bitField0_ & ~0x00002000);
forwardFlag_ = 0;
bitField0_ = (bitField0_ & ~0x00004000);
newMsgId_ = 0L;
bitField0_ = (bitField0_ & ~0x00008000);
reqTime_ = 0;
bitField0_ = (bitField0_ & ~0x00010000);
if (voiceIdBuilder_ == null) {
voiceId_ = null;
} else {
voiceIdBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00020000);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return wechat.protobuf.Wechat.internal_static_wechat_proto_UploadVoiceRequest_descriptor;
}
@java.lang.Override
public wechat.protobuf.UploadVoiceRequest getDefaultInstanceForType() {
return wechat.protobuf.UploadVoiceRequest.getDefaultInstance();
}
@java.lang.Override
public wechat.protobuf.UploadVoiceRequest build() {
wechat.protobuf.UploadVoiceRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public wechat.protobuf.UploadVoiceRequest buildPartial() {
wechat.protobuf.UploadVoiceRequest result = new wechat.protobuf.UploadVoiceRequest(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
to_bitField0_ |= 0x00000001;
}
result.fromUserName_ = fromUserName_;
if (((from_bitField0_ & 0x00000002) != 0)) {
to_bitField0_ |= 0x00000002;
}
result.toUserName_ = toUserName_;
if (((from_bitField0_ & 0x00000004) != 0)) {
result.offset_ = offset_;
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.length_ = length_;
to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
to_bitField0_ |= 0x00000010;
}
result.clientMsgId_ = clientMsgId_;
if (((from_bitField0_ & 0x00000020) != 0)) {
result.msgId_ = msgId_;
to_bitField0_ |= 0x00000020;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.voiceLength_ = voiceLength_;
to_bitField0_ |= 0x00000040;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
if (dataBuilder_ == null) {
result.data_ = data_;
} else {
result.data_ = dataBuilder_.build();
}
to_bitField0_ |= 0x00000080;
}
if (((from_bitField0_ & 0x00000100) != 0)) {
result.endFlag_ = endFlag_;
to_bitField0_ |= 0x00000100;
}
if (((from_bitField0_ & 0x00000200) != 0)) {
if (baseRequestBuilder_ == null) {
result.baseRequest_ = baseRequest_;
} else {
result.baseRequest_ = baseRequestBuilder_.build();
}
to_bitField0_ |= 0x00000200;
}
if (((from_bitField0_ & 0x00000400) != 0)) {
result.cancelFlag_ = cancelFlag_;
to_bitField0_ |= 0x00000400;
}
if (((from_bitField0_ & 0x00000800) != 0)) {
to_bitField0_ |= 0x00000800;
}
result.msgSource_ = msgSource_;
if (((from_bitField0_ & 0x00001000) != 0)) {
result.voiceFormat_ = voiceFormat_;
to_bitField0_ |= 0x00001000;
}
if (((from_bitField0_ & 0x00002000) != 0)) {
result.uicreateTime_ = uicreateTime_;
to_bitField0_ |= 0x00002000;
}
if (((from_bitField0_ & 0x00004000) != 0)) {
result.forwardFlag_ = forwardFlag_;
to_bitField0_ |= 0x00004000;
}
if (((from_bitField0_ & 0x00008000) != 0)) {
result.newMsgId_ = newMsgId_;
to_bitField0_ |= 0x00008000;
}
if (((from_bitField0_ & 0x00010000) != 0)) {
result.reqTime_ = reqTime_;
to_bitField0_ |= 0x00010000;
}
if (((from_bitField0_ & 0x00020000) != 0)) {
if (voiceIdBuilder_ == null) {
result.voiceId_ = voiceId_;
} else {
result.voiceId_ = voiceIdBuilder_.build();
}
to_bitField0_ |= 0x00020000;
}
result.bitField0_ = to_bitField0_;
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 wechat.protobuf.UploadVoiceRequest) {
return mergeFrom((wechat.protobuf.UploadVoiceRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(wechat.protobuf.UploadVoiceRequest other) {
if (other == wechat.protobuf.UploadVoiceRequest.getDefaultInstance()) return this;
if (other.hasFromUserName()) {
bitField0_ |= 0x00000001;
fromUserName_ = other.fromUserName_;
onChanged();
}
if (other.hasToUserName()) {
bitField0_ |= 0x00000002;
toUserName_ = other.toUserName_;
onChanged();
}
if (other.hasOffset()) {
setOffset(other.getOffset());
}
if (other.hasLength()) {
setLength(other.getLength());
}
if (other.hasClientMsgId()) {
bitField0_ |= 0x00000010;
clientMsgId_ = other.clientMsgId_;
onChanged();
}
if (other.hasMsgId()) {
setMsgId(other.getMsgId());
}
if (other.hasVoiceLength()) {
setVoiceLength(other.getVoiceLength());
}
if (other.hasData()) {
mergeData(other.getData());
}
if (other.hasEndFlag()) {
setEndFlag(other.getEndFlag());
}
if (other.hasBaseRequest()) {
mergeBaseRequest(other.getBaseRequest());
}
if (other.hasCancelFlag()) {
setCancelFlag(other.getCancelFlag());
}
if (other.hasMsgSource()) {
bitField0_ |= 0x00000800;
msgSource_ = other.msgSource_;
onChanged();
}
if (other.hasVoiceFormat()) {
setVoiceFormat(other.getVoiceFormat());
}
if (other.hasUicreateTime()) {
setUicreateTime(other.getUicreateTime());
}
if (other.hasForwardFlag()) {
setForwardFlag(other.getForwardFlag());
}
if (other.hasNewMsgId()) {
setNewMsgId(other.getNewMsgId());
}
if (other.hasReqTime()) {
setReqTime(other.getReqTime());
}
if (other.hasVoiceId()) {
mergeVoiceId(other.getVoiceId());
}
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 {
wechat.protobuf.UploadVoiceRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (wechat.protobuf.UploadVoiceRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object fromUserName_ = "";
/**
* optional string fromUserName = 1;
* @return Whether the fromUserName field is set.
*/
public boolean hasFromUserName() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional string fromUserName = 1;
* @return The fromUserName.
*/
public java.lang.String getFromUserName() {
java.lang.Object ref = fromUserName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
fromUserName_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string fromUserName = 1;
* @return The bytes for fromUserName.
*/
public com.google.protobuf.ByteString
getFromUserNameBytes() {
java.lang.Object ref = fromUserName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
fromUserName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string fromUserName = 1;
* @param value The fromUserName to set.
* @return This builder for chaining.
*/
public Builder setFromUserName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
fromUserName_ = value;
onChanged();
return this;
}
/**
* optional string fromUserName = 1;
* @return This builder for chaining.
*/
public Builder clearFromUserName() {
bitField0_ = (bitField0_ & ~0x00000001);
fromUserName_ = getDefaultInstance().getFromUserName();
onChanged();
return this;
}
/**
* optional string fromUserName = 1;
* @param value The bytes for fromUserName to set.
* @return This builder for chaining.
*/
public Builder setFromUserNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
fromUserName_ = value;
onChanged();
return this;
}
private java.lang.Object toUserName_ = "";
/**
* optional string toUserName = 2;
* @return Whether the toUserName field is set.
*/
public boolean hasToUserName() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional string toUserName = 2;
* @return The toUserName.
*/
public java.lang.String getToUserName() {
java.lang.Object ref = toUserName_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
toUserName_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string toUserName = 2;
* @return The bytes for toUserName.
*/
public com.google.protobuf.ByteString
getToUserNameBytes() {
java.lang.Object ref = toUserName_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
toUserName_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string toUserName = 2;
* @param value The toUserName to set.
* @return This builder for chaining.
*/
public Builder setToUserName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
toUserName_ = value;
onChanged();
return this;
}
/**
* optional string toUserName = 2;
* @return This builder for chaining.
*/
public Builder clearToUserName() {
bitField0_ = (bitField0_ & ~0x00000002);
toUserName_ = getDefaultInstance().getToUserName();
onChanged();
return this;
}
/**
* optional string toUserName = 2;
* @param value The bytes for toUserName to set.
* @return This builder for chaining.
*/
public Builder setToUserNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
toUserName_ = value;
onChanged();
return this;
}
private int offset_ ;
/**
* optional uint32 offset = 3;
* @return Whether the offset field is set.
*/
@java.lang.Override
public boolean hasOffset() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional uint32 offset = 3;
* @return The offset.
*/
@java.lang.Override
public int getOffset() {
return offset_;
}
/**
* optional uint32 offset = 3;
* @param value The offset to set.
* @return This builder for chaining.
*/
public Builder setOffset(int value) {
bitField0_ |= 0x00000004;
offset_ = value;
onChanged();
return this;
}
/**
* optional uint32 offset = 3;
* @return This builder for chaining.
*/
public Builder clearOffset() {
bitField0_ = (bitField0_ & ~0x00000004);
offset_ = 0;
onChanged();
return this;
}
private int length_ ;
/**
* optional uint32 length = 4;
* @return Whether the length field is set.
*/
@java.lang.Override
public boolean hasLength() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional uint32 length = 4;
* @return The length.
*/
@java.lang.Override
public int getLength() {
return length_;
}
/**
* optional uint32 length = 4;
* @param value The length to set.
* @return This builder for chaining.
*/
public Builder setLength(int value) {
bitField0_ |= 0x00000008;
length_ = value;
onChanged();
return this;
}
/**
* optional uint32 length = 4;
* @return This builder for chaining.
*/
public Builder clearLength() {
bitField0_ = (bitField0_ & ~0x00000008);
length_ = 0;
onChanged();
return this;
}
private java.lang.Object clientMsgId_ = "";
/**
* optional string clientMsgId = 5;
* @return Whether the clientMsgId field is set.
*/
public boolean hasClientMsgId() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* optional string clientMsgId = 5;
* @return The clientMsgId.
*/
public java.lang.String getClientMsgId() {
java.lang.Object ref = clientMsgId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
clientMsgId_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string clientMsgId = 5;
* @return The bytes for clientMsgId.
*/
public com.google.protobuf.ByteString
getClientMsgIdBytes() {
java.lang.Object ref = clientMsgId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
clientMsgId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string clientMsgId = 5;
* @param value The clientMsgId to set.
* @return This builder for chaining.
*/
public Builder setClientMsgId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000010;
clientMsgId_ = value;
onChanged();
return this;
}
/**
* optional string clientMsgId = 5;
* @return This builder for chaining.
*/
public Builder clearClientMsgId() {
bitField0_ = (bitField0_ & ~0x00000010);
clientMsgId_ = getDefaultInstance().getClientMsgId();
onChanged();
return this;
}
/**
* optional string clientMsgId = 5;
* @param value The bytes for clientMsgId to set.
* @return This builder for chaining.
*/
public Builder setClientMsgIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000010;
clientMsgId_ = value;
onChanged();
return this;
}
private int msgId_ ;
/**
* optional uint32 msgId = 6;
* @return Whether the msgId field is set.
*/
@java.lang.Override
public boolean hasMsgId() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
* optional uint32 msgId = 6;
* @return The msgId.
*/
@java.lang.Override
public int getMsgId() {
return msgId_;
}
/**
* optional uint32 msgId = 6;
* @param value The msgId to set.
* @return This builder for chaining.
*/
public Builder setMsgId(int value) {
bitField0_ |= 0x00000020;
msgId_ = value;
onChanged();
return this;
}
/**
* optional uint32 msgId = 6;
* @return This builder for chaining.
*/
public Builder clearMsgId() {
bitField0_ = (bitField0_ & ~0x00000020);
msgId_ = 0;
onChanged();
return this;
}
private int voiceLength_ ;
/**
* optional uint32 voiceLength = 7;
* @return Whether the voiceLength field is set.
*/
@java.lang.Override
public boolean hasVoiceLength() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
* optional uint32 voiceLength = 7;
* @return The voiceLength.
*/
@java.lang.Override
public int getVoiceLength() {
return voiceLength_;
}
/**
* optional uint32 voiceLength = 7;
* @param value The voiceLength to set.
* @return This builder for chaining.
*/
public Builder setVoiceLength(int value) {
bitField0_ |= 0x00000040;
voiceLength_ = value;
onChanged();
return this;
}
/**
* optional uint32 voiceLength = 7;
* @return This builder for chaining.
*/
public Builder clearVoiceLength() {
bitField0_ = (bitField0_ & ~0x00000040);
voiceLength_ = 0;
onChanged();
return this;
}
private wechat.protobuf.SKBuiltinString_ data_;
private com.google.protobuf.SingleFieldBuilderV3<
wechat.protobuf.SKBuiltinString_, wechat.protobuf.SKBuiltinString_.Builder, wechat.protobuf.SKBuiltinString_OrBuilder> dataBuilder_;
/**
* optional .wechat_proto.SKBuiltinString_ data = 8;
* @return Whether the data field is set.
*/
public boolean hasData() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
* optional .wechat_proto.SKBuiltinString_ data = 8;
* @return The data.
*/
public wechat.protobuf.SKBuiltinString_ getData() {
if (dataBuilder_ == null) {
return data_ == null ? wechat.protobuf.SKBuiltinString_.getDefaultInstance() : data_;
} else {
return dataBuilder_.getMessage();
}
}
/**
* optional .wechat_proto.SKBuiltinString_ data = 8;
*/
public Builder setData(wechat.protobuf.SKBuiltinString_ value) {
if (dataBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
data_ = value;
onChanged();
} else {
dataBuilder_.setMessage(value);
}
bitField0_ |= 0x00000080;
return this;
}
/**
* optional .wechat_proto.SKBuiltinString_ data = 8;
*/
public Builder setData(
wechat.protobuf.SKBuiltinString_.Builder builderForValue) {
if (dataBuilder_ == null) {
data_ = builderForValue.build();
onChanged();
} else {
dataBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000080;
return this;
}
/**
* optional .wechat_proto.SKBuiltinString_ data = 8;
*/
public Builder mergeData(wechat.protobuf.SKBuiltinString_ value) {
if (dataBuilder_ == null) {
if (((bitField0_ & 0x00000080) != 0) &&
data_ != null &&
data_ != wechat.protobuf.SKBuiltinString_.getDefaultInstance()) {
data_ =
wechat.protobuf.SKBuiltinString_.newBuilder(data_).mergeFrom(value).buildPartial();
} else {
data_ = value;
}
onChanged();
} else {
dataBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000080;
return this;
}
/**
* optional .wechat_proto.SKBuiltinString_ data = 8;
*/
public Builder clearData() {
if (dataBuilder_ == null) {
data_ = null;
onChanged();
} else {
dataBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000080);
return this;
}
/**
* optional .wechat_proto.SKBuiltinString_ data = 8;
*/
public wechat.protobuf.SKBuiltinString_.Builder getDataBuilder() {
bitField0_ |= 0x00000080;
onChanged();
return getDataFieldBuilder().getBuilder();
}
/**
* optional .wechat_proto.SKBuiltinString_ data = 8;
*/
public wechat.protobuf.SKBuiltinString_OrBuilder getDataOrBuilder() {
if (dataBuilder_ != null) {
return dataBuilder_.getMessageOrBuilder();
} else {
return data_ == null ?
wechat.protobuf.SKBuiltinString_.getDefaultInstance() : data_;
}
}
/**
* optional .wechat_proto.SKBuiltinString_ data = 8;
*/
private com.google.protobuf.SingleFieldBuilderV3<
wechat.protobuf.SKBuiltinString_, wechat.protobuf.SKBuiltinString_.Builder, wechat.protobuf.SKBuiltinString_OrBuilder>
getDataFieldBuilder() {
if (dataBuilder_ == null) {
dataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
wechat.protobuf.SKBuiltinString_, wechat.protobuf.SKBuiltinString_.Builder, wechat.protobuf.SKBuiltinString_OrBuilder>(
getData(),
getParentForChildren(),
isClean());
data_ = null;
}
return dataBuilder_;
}
private int endFlag_ ;
/**
* optional uint32 endFlag = 9;
* @return Whether the endFlag field is set.
*/
@java.lang.Override
public boolean hasEndFlag() {
return ((bitField0_ & 0x00000100) != 0);
}
/**
* optional uint32 endFlag = 9;
* @return The endFlag.
*/
@java.lang.Override
public int getEndFlag() {
return endFlag_;
}
/**
* optional uint32 endFlag = 9;
* @param value The endFlag to set.
* @return This builder for chaining.
*/
public Builder setEndFlag(int value) {
bitField0_ |= 0x00000100;
endFlag_ = value;
onChanged();
return this;
}
/**
* optional uint32 endFlag = 9;
* @return This builder for chaining.
*/
public Builder clearEndFlag() {
bitField0_ = (bitField0_ & ~0x00000100);
endFlag_ = 0;
onChanged();
return this;
}
private wechat.protobuf.BaseRequest baseRequest_;
private com.google.protobuf.SingleFieldBuilderV3<
wechat.protobuf.BaseRequest, wechat.protobuf.BaseRequest.Builder, wechat.protobuf.BaseRequestOrBuilder> baseRequestBuilder_;
/**
* optional .wechat_proto.BaseRequest baseRequest = 10;
* @return Whether the baseRequest field is set.
*/
public boolean hasBaseRequest() {
return ((bitField0_ & 0x00000200) != 0);
}
/**
* optional .wechat_proto.BaseRequest baseRequest = 10;
* @return The baseRequest.
*/
public wechat.protobuf.BaseRequest getBaseRequest() {
if (baseRequestBuilder_ == null) {
return baseRequest_ == null ? wechat.protobuf.BaseRequest.getDefaultInstance() : baseRequest_;
} else {
return baseRequestBuilder_.getMessage();
}
}
/**
* optional .wechat_proto.BaseRequest baseRequest = 10;
*/
public Builder setBaseRequest(wechat.protobuf.BaseRequest value) {
if (baseRequestBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
baseRequest_ = value;
onChanged();
} else {
baseRequestBuilder_.setMessage(value);
}
bitField0_ |= 0x00000200;
return this;
}
/**
* optional .wechat_proto.BaseRequest baseRequest = 10;
*/
public Builder setBaseRequest(
wechat.protobuf.BaseRequest.Builder builderForValue) {
if (baseRequestBuilder_ == null) {
baseRequest_ = builderForValue.build();
onChanged();
} else {
baseRequestBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000200;
return this;
}
/**
* optional .wechat_proto.BaseRequest baseRequest = 10;
*/
public Builder mergeBaseRequest(wechat.protobuf.BaseRequest value) {
if (baseRequestBuilder_ == null) {
if (((bitField0_ & 0x00000200) != 0) &&
baseRequest_ != null &&
baseRequest_ != wechat.protobuf.BaseRequest.getDefaultInstance()) {
baseRequest_ =
wechat.protobuf.BaseRequest.newBuilder(baseRequest_).mergeFrom(value).buildPartial();
} else {
baseRequest_ = value;
}
onChanged();
} else {
baseRequestBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000200;
return this;
}
/**
* optional .wechat_proto.BaseRequest baseRequest = 10;
*/
public Builder clearBaseRequest() {
if (baseRequestBuilder_ == null) {
baseRequest_ = null;
onChanged();
} else {
baseRequestBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000200);
return this;
}
/**
* optional .wechat_proto.BaseRequest baseRequest = 10;
*/
public wechat.protobuf.BaseRequest.Builder getBaseRequestBuilder() {
bitField0_ |= 0x00000200;
onChanged();
return getBaseRequestFieldBuilder().getBuilder();
}
/**
* optional .wechat_proto.BaseRequest baseRequest = 10;
*/
public wechat.protobuf.BaseRequestOrBuilder getBaseRequestOrBuilder() {
if (baseRequestBuilder_ != null) {
return baseRequestBuilder_.getMessageOrBuilder();
} else {
return baseRequest_ == null ?
wechat.protobuf.BaseRequest.getDefaultInstance() : baseRequest_;
}
}
/**
* optional .wechat_proto.BaseRequest baseRequest = 10;
*/
private com.google.protobuf.SingleFieldBuilderV3<
wechat.protobuf.BaseRequest, wechat.protobuf.BaseRequest.Builder, wechat.protobuf.BaseRequestOrBuilder>
getBaseRequestFieldBuilder() {
if (baseRequestBuilder_ == null) {
baseRequestBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
wechat.protobuf.BaseRequest, wechat.protobuf.BaseRequest.Builder, wechat.protobuf.BaseRequestOrBuilder>(
getBaseRequest(),
getParentForChildren(),
isClean());
baseRequest_ = null;
}
return baseRequestBuilder_;
}
private int cancelFlag_ ;
/**
* optional uint32 cancelFlag = 11;
* @return Whether the cancelFlag field is set.
*/
@java.lang.Override
public boolean hasCancelFlag() {
return ((bitField0_ & 0x00000400) != 0);
}
/**
* optional uint32 cancelFlag = 11;
* @return The cancelFlag.
*/
@java.lang.Override
public int getCancelFlag() {
return cancelFlag_;
}
/**
* optional uint32 cancelFlag = 11;
* @param value The cancelFlag to set.
* @return This builder for chaining.
*/
public Builder setCancelFlag(int value) {
bitField0_ |= 0x00000400;
cancelFlag_ = value;
onChanged();
return this;
}
/**
* optional uint32 cancelFlag = 11;
* @return This builder for chaining.
*/
public Builder clearCancelFlag() {
bitField0_ = (bitField0_ & ~0x00000400);
cancelFlag_ = 0;
onChanged();
return this;
}
private java.lang.Object msgSource_ = "";
/**
* optional string msgSource = 12;
* @return Whether the msgSource field is set.
*/
public boolean hasMsgSource() {
return ((bitField0_ & 0x00000800) != 0);
}
/**
* optional string msgSource = 12;
* @return The msgSource.
*/
public java.lang.String getMsgSource() {
java.lang.Object ref = msgSource_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
msgSource_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string msgSource = 12;
* @return The bytes for msgSource.
*/
public com.google.protobuf.ByteString
getMsgSourceBytes() {
java.lang.Object ref = msgSource_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
msgSource_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string msgSource = 12;
* @param value The msgSource to set.
* @return This builder for chaining.
*/
public Builder setMsgSource(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000800;
msgSource_ = value;
onChanged();
return this;
}
/**
* optional string msgSource = 12;
* @return This builder for chaining.
*/
public Builder clearMsgSource() {
bitField0_ = (bitField0_ & ~0x00000800);
msgSource_ = getDefaultInstance().getMsgSource();
onChanged();
return this;
}
/**
* optional string msgSource = 12;
* @param value The bytes for msgSource to set.
* @return This builder for chaining.
*/
public Builder setMsgSourceBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000800;
msgSource_ = value;
onChanged();
return this;
}
private int voiceFormat_ ;
/**
* optional uint32 voiceFormat = 13;
* @return Whether the voiceFormat field is set.
*/
@java.lang.Override
public boolean hasVoiceFormat() {
return ((bitField0_ & 0x00001000) != 0);
}
/**
* optional uint32 voiceFormat = 13;
* @return The voiceFormat.
*/
@java.lang.Override
public int getVoiceFormat() {
return voiceFormat_;
}
/**
* optional uint32 voiceFormat = 13;
* @param value The voiceFormat to set.
* @return This builder for chaining.
*/
public Builder setVoiceFormat(int value) {
bitField0_ |= 0x00001000;
voiceFormat_ = value;
onChanged();
return this;
}
/**
* optional uint32 voiceFormat = 13;
* @return This builder for chaining.
*/
public Builder clearVoiceFormat() {
bitField0_ = (bitField0_ & ~0x00001000);
voiceFormat_ = 0;
onChanged();
return this;
}
private int uicreateTime_ ;
/**
* optional uint32 uicreateTime = 14;
* @return Whether the uicreateTime field is set.
*/
@java.lang.Override
public boolean hasUicreateTime() {
return ((bitField0_ & 0x00002000) != 0);
}
/**
* optional uint32 uicreateTime = 14;
* @return The uicreateTime.
*/
@java.lang.Override
public int getUicreateTime() {
return uicreateTime_;
}
/**
* optional uint32 uicreateTime = 14;
* @param value The uicreateTime to set.
* @return This builder for chaining.
*/
public Builder setUicreateTime(int value) {
bitField0_ |= 0x00002000;
uicreateTime_ = value;
onChanged();
return this;
}
/**
* optional uint32 uicreateTime = 14;
* @return This builder for chaining.
*/
public Builder clearUicreateTime() {
bitField0_ = (bitField0_ & ~0x00002000);
uicreateTime_ = 0;
onChanged();
return this;
}
private int forwardFlag_ ;
/**
* optional uint32 forwardFlag = 15;
* @return Whether the forwardFlag field is set.
*/
@java.lang.Override
public boolean hasForwardFlag() {
return ((bitField0_ & 0x00004000) != 0);
}
/**
* optional uint32 forwardFlag = 15;
* @return The forwardFlag.
*/
@java.lang.Override
public int getForwardFlag() {
return forwardFlag_;
}
/**
* optional uint32 forwardFlag = 15;
* @param value The forwardFlag to set.
* @return This builder for chaining.
*/
public Builder setForwardFlag(int value) {
bitField0_ |= 0x00004000;
forwardFlag_ = value;
onChanged();
return this;
}
/**
* optional uint32 forwardFlag = 15;
* @return This builder for chaining.
*/
public Builder clearForwardFlag() {
bitField0_ = (bitField0_ & ~0x00004000);
forwardFlag_ = 0;
onChanged();
return this;
}
private long newMsgId_ ;
/**
* optional uint64 newMsgId = 16;
* @return Whether the newMsgId field is set.
*/
@java.lang.Override
public boolean hasNewMsgId() {
return ((bitField0_ & 0x00008000) != 0);
}
/**
* optional uint64 newMsgId = 16;
* @return The newMsgId.
*/
@java.lang.Override
public long getNewMsgId() {
return newMsgId_;
}
/**
* optional uint64 newMsgId = 16;
* @param value The newMsgId to set.
* @return This builder for chaining.
*/
public Builder setNewMsgId(long value) {
bitField0_ |= 0x00008000;
newMsgId_ = value;
onChanged();
return this;
}
/**
* optional uint64 newMsgId = 16;
* @return This builder for chaining.
*/
public Builder clearNewMsgId() {
bitField0_ = (bitField0_ & ~0x00008000);
newMsgId_ = 0L;
onChanged();
return this;
}
private int reqTime_ ;
/**
* optional uint32 reqTime = 17;
* @return Whether the reqTime field is set.
*/
@java.lang.Override
public boolean hasReqTime() {
return ((bitField0_ & 0x00010000) != 0);
}
/**
* optional uint32 reqTime = 17;
* @return The reqTime.
*/
@java.lang.Override
public int getReqTime() {
return reqTime_;
}
/**
* optional uint32 reqTime = 17;
* @param value The reqTime to set.
* @return This builder for chaining.
*/
public Builder setReqTime(int value) {
bitField0_ |= 0x00010000;
reqTime_ = value;
onChanged();
return this;
}
/**
* optional uint32 reqTime = 17;
* @return This builder for chaining.
*/
public Builder clearReqTime() {
bitField0_ = (bitField0_ & ~0x00010000);
reqTime_ = 0;
onChanged();
return this;
}
private wechat.protobuf.SKBuiltinString_ voiceId_;
private com.google.protobuf.SingleFieldBuilderV3<
wechat.protobuf.SKBuiltinString_, wechat.protobuf.SKBuiltinString_.Builder, wechat.protobuf.SKBuiltinString_OrBuilder> voiceIdBuilder_;
/**
* optional .wechat_proto.SKBuiltinString_ voiceId = 18;
* @return Whether the voiceId field is set.
*/
public boolean hasVoiceId() {
return ((bitField0_ & 0x00020000) != 0);
}
/**
* optional .wechat_proto.SKBuiltinString_ voiceId = 18;
* @return The voiceId.
*/
public wechat.protobuf.SKBuiltinString_ getVoiceId() {
if (voiceIdBuilder_ == null) {
return voiceId_ == null ? wechat.protobuf.SKBuiltinString_.getDefaultInstance() : voiceId_;
} else {
return voiceIdBuilder_.getMessage();
}
}
/**
* optional .wechat_proto.SKBuiltinString_ voiceId = 18;
*/
public Builder setVoiceId(wechat.protobuf.SKBuiltinString_ value) {
if (voiceIdBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
voiceId_ = value;
onChanged();
} else {
voiceIdBuilder_.setMessage(value);
}
bitField0_ |= 0x00020000;
return this;
}
/**
* optional .wechat_proto.SKBuiltinString_ voiceId = 18;
*/
public Builder setVoiceId(
wechat.protobuf.SKBuiltinString_.Builder builderForValue) {
if (voiceIdBuilder_ == null) {
voiceId_ = builderForValue.build();
onChanged();
} else {
voiceIdBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00020000;
return this;
}
/**
* optional .wechat_proto.SKBuiltinString_ voiceId = 18;
*/
public Builder mergeVoiceId(wechat.protobuf.SKBuiltinString_ value) {
if (voiceIdBuilder_ == null) {
if (((bitField0_ & 0x00020000) != 0) &&
voiceId_ != null &&
voiceId_ != wechat.protobuf.SKBuiltinString_.getDefaultInstance()) {
voiceId_ =
wechat.protobuf.SKBuiltinString_.newBuilder(voiceId_).mergeFrom(value).buildPartial();
} else {
voiceId_ = value;
}
onChanged();
} else {
voiceIdBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00020000;
return this;
}
/**
* optional .wechat_proto.SKBuiltinString_ voiceId = 18;
*/
public Builder clearVoiceId() {
if (voiceIdBuilder_ == null) {
voiceId_ = null;
onChanged();
} else {
voiceIdBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00020000);
return this;
}
/**
* optional .wechat_proto.SKBuiltinString_ voiceId = 18;
*/
public wechat.protobuf.SKBuiltinString_.Builder getVoiceIdBuilder() {
bitField0_ |= 0x00020000;
onChanged();
return getVoiceIdFieldBuilder().getBuilder();
}
/**
* optional .wechat_proto.SKBuiltinString_ voiceId = 18;
*/
public wechat.protobuf.SKBuiltinString_OrBuilder getVoiceIdOrBuilder() {
if (voiceIdBuilder_ != null) {
return voiceIdBuilder_.getMessageOrBuilder();
} else {
return voiceId_ == null ?
wechat.protobuf.SKBuiltinString_.getDefaultInstance() : voiceId_;
}
}
/**
* optional .wechat_proto.SKBuiltinString_ voiceId = 18;
*/
private com.google.protobuf.SingleFieldBuilderV3<
wechat.protobuf.SKBuiltinString_, wechat.protobuf.SKBuiltinString_.Builder, wechat.protobuf.SKBuiltinString_OrBuilder>
getVoiceIdFieldBuilder() {
if (voiceIdBuilder_ == null) {
voiceIdBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
wechat.protobuf.SKBuiltinString_, wechat.protobuf.SKBuiltinString_.Builder, wechat.protobuf.SKBuiltinString_OrBuilder>(
getVoiceId(),
getParentForChildren(),
isClean());
voiceId_ = null;
}
return voiceIdBuilder_;
}
@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:wechat_proto.UploadVoiceRequest)
}
// @@protoc_insertion_point(class_scope:wechat_proto.UploadVoiceRequest)
private static final wechat.protobuf.UploadVoiceRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new wechat.protobuf.UploadVoiceRequest();
}
public static wechat.protobuf.UploadVoiceRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public UploadVoiceRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new UploadVoiceRequest(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 wechat.protobuf.UploadVoiceRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy