
wechat.protobuf.UploadVoiceResponse Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: wechat.proto
package wechat.protobuf;
/**
* Protobuf type {@code wechat_proto.UploadVoiceResponse}
*/
public final class UploadVoiceResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:wechat_proto.UploadVoiceResponse)
UploadVoiceResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use UploadVoiceResponse.newBuilder() to construct.
private UploadVoiceResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private UploadVoiceResponse() {
fromUserName_ = "";
toUserName_ = "";
clientMsgId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new UploadVoiceResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private UploadVoiceResponse(
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 40: {
bitField0_ |= 0x00000010;
createTime_ = input.readUInt32();
break;
}
case 50: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000020;
clientMsgId_ = bs;
break;
}
case 56: {
bitField0_ |= 0x00000040;
msgId_ = input.readUInt32();
break;
}
case 64: {
bitField0_ |= 0x00000080;
voiceLength_ = input.readUInt32();
break;
}
case 72: {
bitField0_ |= 0x00000100;
endFlag_ = input.readUInt32();
break;
}
case 82: {
wechat.protobuf.BaseResponse.Builder subBuilder = null;
if (((bitField0_ & 0x00000200) != 0)) {
subBuilder = baseResponse_.toBuilder();
}
baseResponse_ = input.readMessage(wechat.protobuf.BaseResponse.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(baseResponse_);
baseResponse_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000200;
break;
}
case 88: {
bitField0_ |= 0x00000400;
cancelFlag_ = input.readUInt32();
break;
}
case 96: {
bitField0_ |= 0x00000800;
newMsgId_ = input.readUInt64();
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_UploadVoiceResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return wechat.protobuf.Wechat.internal_static_wechat_proto_UploadVoiceResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
wechat.protobuf.UploadVoiceResponse.class, wechat.protobuf.UploadVoiceResponse.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 CREATETIME_FIELD_NUMBER = 5;
private int createTime_;
/**
* optional uint32 createTime = 5;
* @return Whether the createTime field is set.
*/
@java.lang.Override
public boolean hasCreateTime() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* optional uint32 createTime = 5;
* @return The createTime.
*/
@java.lang.Override
public int getCreateTime() {
return createTime_;
}
public static final int CLIENTMSGID_FIELD_NUMBER = 6;
private volatile java.lang.Object clientMsgId_;
/**
* optional string clientMsgId = 6;
* @return Whether the clientMsgId field is set.
*/
@java.lang.Override
public boolean hasClientMsgId() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
* optional string clientMsgId = 6;
* @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 = 6;
* @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 = 7;
private int msgId_;
/**
* optional uint32 msgId = 7;
* @return Whether the msgId field is set.
*/
@java.lang.Override
public boolean hasMsgId() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
* optional uint32 msgId = 7;
* @return The msgId.
*/
@java.lang.Override
public int getMsgId() {
return msgId_;
}
public static final int VOICELENGTH_FIELD_NUMBER = 8;
private int voiceLength_;
/**
* optional uint32 voiceLength = 8;
* @return Whether the voiceLength field is set.
*/
@java.lang.Override
public boolean hasVoiceLength() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
* optional uint32 voiceLength = 8;
* @return The voiceLength.
*/
@java.lang.Override
public int getVoiceLength() {
return voiceLength_;
}
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 BASERESPONSE_FIELD_NUMBER = 10;
private wechat.protobuf.BaseResponse baseResponse_;
/**
* optional .wechat_proto.BaseResponse baseResponse = 10;
* @return Whether the baseResponse field is set.
*/
@java.lang.Override
public boolean hasBaseResponse() {
return ((bitField0_ & 0x00000200) != 0);
}
/**
* optional .wechat_proto.BaseResponse baseResponse = 10;
* @return The baseResponse.
*/
@java.lang.Override
public wechat.protobuf.BaseResponse getBaseResponse() {
return baseResponse_ == null ? wechat.protobuf.BaseResponse.getDefaultInstance() : baseResponse_;
}
/**
* optional .wechat_proto.BaseResponse baseResponse = 10;
*/
@java.lang.Override
public wechat.protobuf.BaseResponseOrBuilder getBaseResponseOrBuilder() {
return baseResponse_ == null ? wechat.protobuf.BaseResponse.getDefaultInstance() : baseResponse_;
}
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 NEWMSGID_FIELD_NUMBER = 12;
private long newMsgId_;
/**
* optional uint64 newMsgId = 12;
* @return Whether the newMsgId field is set.
*/
@java.lang.Override
public boolean hasNewMsgId() {
return ((bitField0_ & 0x00000800) != 0);
}
/**
* optional uint64 newMsgId = 12;
* @return The newMsgId.
*/
@java.lang.Override
public long getNewMsgId() {
return newMsgId_;
}
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)) {
output.writeUInt32(5, createTime_);
}
if (((bitField0_ & 0x00000020) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, clientMsgId_);
}
if (((bitField0_ & 0x00000040) != 0)) {
output.writeUInt32(7, msgId_);
}
if (((bitField0_ & 0x00000080) != 0)) {
output.writeUInt32(8, voiceLength_);
}
if (((bitField0_ & 0x00000100) != 0)) {
output.writeUInt32(9, endFlag_);
}
if (((bitField0_ & 0x00000200) != 0)) {
output.writeMessage(10, getBaseResponse());
}
if (((bitField0_ & 0x00000400) != 0)) {
output.writeUInt32(11, cancelFlag_);
}
if (((bitField0_ & 0x00000800) != 0)) {
output.writeUInt64(12, newMsgId_);
}
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.CodedOutputStream
.computeUInt32Size(5, createTime_);
}
if (((bitField0_ & 0x00000020) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, clientMsgId_);
}
if (((bitField0_ & 0x00000040) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(7, msgId_);
}
if (((bitField0_ & 0x00000080) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(8, voiceLength_);
}
if (((bitField0_ & 0x00000100) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(9, endFlag_);
}
if (((bitField0_ & 0x00000200) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(10, getBaseResponse());
}
if (((bitField0_ & 0x00000400) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(11, cancelFlag_);
}
if (((bitField0_ & 0x00000800) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(12, newMsgId_);
}
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.UploadVoiceResponse)) {
return super.equals(obj);
}
wechat.protobuf.UploadVoiceResponse other = (wechat.protobuf.UploadVoiceResponse) 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 (hasCreateTime() != other.hasCreateTime()) return false;
if (hasCreateTime()) {
if (getCreateTime()
!= other.getCreateTime()) 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 (hasEndFlag() != other.hasEndFlag()) return false;
if (hasEndFlag()) {
if (getEndFlag()
!= other.getEndFlag()) return false;
}
if (hasBaseResponse() != other.hasBaseResponse()) return false;
if (hasBaseResponse()) {
if (!getBaseResponse()
.equals(other.getBaseResponse())) return false;
}
if (hasCancelFlag() != other.hasCancelFlag()) return false;
if (hasCancelFlag()) {
if (getCancelFlag()
!= other.getCancelFlag()) return false;
}
if (hasNewMsgId() != other.hasNewMsgId()) return false;
if (hasNewMsgId()) {
if (getNewMsgId()
!= other.getNewMsgId()) 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 (hasCreateTime()) {
hash = (37 * hash) + CREATETIME_FIELD_NUMBER;
hash = (53 * hash) + getCreateTime();
}
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 (hasEndFlag()) {
hash = (37 * hash) + ENDFLAG_FIELD_NUMBER;
hash = (53 * hash) + getEndFlag();
}
if (hasBaseResponse()) {
hash = (37 * hash) + BASERESPONSE_FIELD_NUMBER;
hash = (53 * hash) + getBaseResponse().hashCode();
}
if (hasCancelFlag()) {
hash = (37 * hash) + CANCELFLAG_FIELD_NUMBER;
hash = (53 * hash) + getCancelFlag();
}
if (hasNewMsgId()) {
hash = (37 * hash) + NEWMSGID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getNewMsgId());
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static wechat.protobuf.UploadVoiceResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static wechat.protobuf.UploadVoiceResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static wechat.protobuf.UploadVoiceResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static wechat.protobuf.UploadVoiceResponse 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.UploadVoiceResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static wechat.protobuf.UploadVoiceResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static wechat.protobuf.UploadVoiceResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static wechat.protobuf.UploadVoiceResponse 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.UploadVoiceResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static wechat.protobuf.UploadVoiceResponse 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.UploadVoiceResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static wechat.protobuf.UploadVoiceResponse 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.UploadVoiceResponse 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.UploadVoiceResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:wechat_proto.UploadVoiceResponse)
wechat.protobuf.UploadVoiceResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return wechat.protobuf.Wechat.internal_static_wechat_proto_UploadVoiceResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return wechat.protobuf.Wechat.internal_static_wechat_proto_UploadVoiceResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
wechat.protobuf.UploadVoiceResponse.class, wechat.protobuf.UploadVoiceResponse.Builder.class);
}
// Construct using wechat.protobuf.UploadVoiceResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getBaseResponseFieldBuilder();
}
}
@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);
createTime_ = 0;
bitField0_ = (bitField0_ & ~0x00000010);
clientMsgId_ = "";
bitField0_ = (bitField0_ & ~0x00000020);
msgId_ = 0;
bitField0_ = (bitField0_ & ~0x00000040);
voiceLength_ = 0;
bitField0_ = (bitField0_ & ~0x00000080);
endFlag_ = 0;
bitField0_ = (bitField0_ & ~0x00000100);
if (baseResponseBuilder_ == null) {
baseResponse_ = null;
} else {
baseResponseBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000200);
cancelFlag_ = 0;
bitField0_ = (bitField0_ & ~0x00000400);
newMsgId_ = 0L;
bitField0_ = (bitField0_ & ~0x00000800);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return wechat.protobuf.Wechat.internal_static_wechat_proto_UploadVoiceResponse_descriptor;
}
@java.lang.Override
public wechat.protobuf.UploadVoiceResponse getDefaultInstanceForType() {
return wechat.protobuf.UploadVoiceResponse.getDefaultInstance();
}
@java.lang.Override
public wechat.protobuf.UploadVoiceResponse build() {
wechat.protobuf.UploadVoiceResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public wechat.protobuf.UploadVoiceResponse buildPartial() {
wechat.protobuf.UploadVoiceResponse result = new wechat.protobuf.UploadVoiceResponse(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)) {
result.createTime_ = createTime_;
to_bitField0_ |= 0x00000010;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
to_bitField0_ |= 0x00000020;
}
result.clientMsgId_ = clientMsgId_;
if (((from_bitField0_ & 0x00000040) != 0)) {
result.msgId_ = msgId_;
to_bitField0_ |= 0x00000040;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
result.voiceLength_ = voiceLength_;
to_bitField0_ |= 0x00000080;
}
if (((from_bitField0_ & 0x00000100) != 0)) {
result.endFlag_ = endFlag_;
to_bitField0_ |= 0x00000100;
}
if (((from_bitField0_ & 0x00000200) != 0)) {
if (baseResponseBuilder_ == null) {
result.baseResponse_ = baseResponse_;
} else {
result.baseResponse_ = baseResponseBuilder_.build();
}
to_bitField0_ |= 0x00000200;
}
if (((from_bitField0_ & 0x00000400) != 0)) {
result.cancelFlag_ = cancelFlag_;
to_bitField0_ |= 0x00000400;
}
if (((from_bitField0_ & 0x00000800) != 0)) {
result.newMsgId_ = newMsgId_;
to_bitField0_ |= 0x00000800;
}
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.UploadVoiceResponse) {
return mergeFrom((wechat.protobuf.UploadVoiceResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(wechat.protobuf.UploadVoiceResponse other) {
if (other == wechat.protobuf.UploadVoiceResponse.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.hasCreateTime()) {
setCreateTime(other.getCreateTime());
}
if (other.hasClientMsgId()) {
bitField0_ |= 0x00000020;
clientMsgId_ = other.clientMsgId_;
onChanged();
}
if (other.hasMsgId()) {
setMsgId(other.getMsgId());
}
if (other.hasVoiceLength()) {
setVoiceLength(other.getVoiceLength());
}
if (other.hasEndFlag()) {
setEndFlag(other.getEndFlag());
}
if (other.hasBaseResponse()) {
mergeBaseResponse(other.getBaseResponse());
}
if (other.hasCancelFlag()) {
setCancelFlag(other.getCancelFlag());
}
if (other.hasNewMsgId()) {
setNewMsgId(other.getNewMsgId());
}
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.UploadVoiceResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (wechat.protobuf.UploadVoiceResponse) 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 int createTime_ ;
/**
* optional uint32 createTime = 5;
* @return Whether the createTime field is set.
*/
@java.lang.Override
public boolean hasCreateTime() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* optional uint32 createTime = 5;
* @return The createTime.
*/
@java.lang.Override
public int getCreateTime() {
return createTime_;
}
/**
* optional uint32 createTime = 5;
* @param value The createTime to set.
* @return This builder for chaining.
*/
public Builder setCreateTime(int value) {
bitField0_ |= 0x00000010;
createTime_ = value;
onChanged();
return this;
}
/**
* optional uint32 createTime = 5;
* @return This builder for chaining.
*/
public Builder clearCreateTime() {
bitField0_ = (bitField0_ & ~0x00000010);
createTime_ = 0;
onChanged();
return this;
}
private java.lang.Object clientMsgId_ = "";
/**
* optional string clientMsgId = 6;
* @return Whether the clientMsgId field is set.
*/
public boolean hasClientMsgId() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
* optional string clientMsgId = 6;
* @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 = 6;
* @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 = 6;
* @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_ |= 0x00000020;
clientMsgId_ = value;
onChanged();
return this;
}
/**
* optional string clientMsgId = 6;
* @return This builder for chaining.
*/
public Builder clearClientMsgId() {
bitField0_ = (bitField0_ & ~0x00000020);
clientMsgId_ = getDefaultInstance().getClientMsgId();
onChanged();
return this;
}
/**
* optional string clientMsgId = 6;
* @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_ |= 0x00000020;
clientMsgId_ = value;
onChanged();
return this;
}
private int msgId_ ;
/**
* optional uint32 msgId = 7;
* @return Whether the msgId field is set.
*/
@java.lang.Override
public boolean hasMsgId() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
* optional uint32 msgId = 7;
* @return The msgId.
*/
@java.lang.Override
public int getMsgId() {
return msgId_;
}
/**
* optional uint32 msgId = 7;
* @param value The msgId to set.
* @return This builder for chaining.
*/
public Builder setMsgId(int value) {
bitField0_ |= 0x00000040;
msgId_ = value;
onChanged();
return this;
}
/**
* optional uint32 msgId = 7;
* @return This builder for chaining.
*/
public Builder clearMsgId() {
bitField0_ = (bitField0_ & ~0x00000040);
msgId_ = 0;
onChanged();
return this;
}
private int voiceLength_ ;
/**
* optional uint32 voiceLength = 8;
* @return Whether the voiceLength field is set.
*/
@java.lang.Override
public boolean hasVoiceLength() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
* optional uint32 voiceLength = 8;
* @return The voiceLength.
*/
@java.lang.Override
public int getVoiceLength() {
return voiceLength_;
}
/**
* optional uint32 voiceLength = 8;
* @param value The voiceLength to set.
* @return This builder for chaining.
*/
public Builder setVoiceLength(int value) {
bitField0_ |= 0x00000080;
voiceLength_ = value;
onChanged();
return this;
}
/**
* optional uint32 voiceLength = 8;
* @return This builder for chaining.
*/
public Builder clearVoiceLength() {
bitField0_ = (bitField0_ & ~0x00000080);
voiceLength_ = 0;
onChanged();
return this;
}
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.BaseResponse baseResponse_;
private com.google.protobuf.SingleFieldBuilderV3<
wechat.protobuf.BaseResponse, wechat.protobuf.BaseResponse.Builder, wechat.protobuf.BaseResponseOrBuilder> baseResponseBuilder_;
/**
* optional .wechat_proto.BaseResponse baseResponse = 10;
* @return Whether the baseResponse field is set.
*/
public boolean hasBaseResponse() {
return ((bitField0_ & 0x00000200) != 0);
}
/**
* optional .wechat_proto.BaseResponse baseResponse = 10;
* @return The baseResponse.
*/
public wechat.protobuf.BaseResponse getBaseResponse() {
if (baseResponseBuilder_ == null) {
return baseResponse_ == null ? wechat.protobuf.BaseResponse.getDefaultInstance() : baseResponse_;
} else {
return baseResponseBuilder_.getMessage();
}
}
/**
* optional .wechat_proto.BaseResponse baseResponse = 10;
*/
public Builder setBaseResponse(wechat.protobuf.BaseResponse value) {
if (baseResponseBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
baseResponse_ = value;
onChanged();
} else {
baseResponseBuilder_.setMessage(value);
}
bitField0_ |= 0x00000200;
return this;
}
/**
* optional .wechat_proto.BaseResponse baseResponse = 10;
*/
public Builder setBaseResponse(
wechat.protobuf.BaseResponse.Builder builderForValue) {
if (baseResponseBuilder_ == null) {
baseResponse_ = builderForValue.build();
onChanged();
} else {
baseResponseBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000200;
return this;
}
/**
* optional .wechat_proto.BaseResponse baseResponse = 10;
*/
public Builder mergeBaseResponse(wechat.protobuf.BaseResponse value) {
if (baseResponseBuilder_ == null) {
if (((bitField0_ & 0x00000200) != 0) &&
baseResponse_ != null &&
baseResponse_ != wechat.protobuf.BaseResponse.getDefaultInstance()) {
baseResponse_ =
wechat.protobuf.BaseResponse.newBuilder(baseResponse_).mergeFrom(value).buildPartial();
} else {
baseResponse_ = value;
}
onChanged();
} else {
baseResponseBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000200;
return this;
}
/**
* optional .wechat_proto.BaseResponse baseResponse = 10;
*/
public Builder clearBaseResponse() {
if (baseResponseBuilder_ == null) {
baseResponse_ = null;
onChanged();
} else {
baseResponseBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000200);
return this;
}
/**
* optional .wechat_proto.BaseResponse baseResponse = 10;
*/
public wechat.protobuf.BaseResponse.Builder getBaseResponseBuilder() {
bitField0_ |= 0x00000200;
onChanged();
return getBaseResponseFieldBuilder().getBuilder();
}
/**
* optional .wechat_proto.BaseResponse baseResponse = 10;
*/
public wechat.protobuf.BaseResponseOrBuilder getBaseResponseOrBuilder() {
if (baseResponseBuilder_ != null) {
return baseResponseBuilder_.getMessageOrBuilder();
} else {
return baseResponse_ == null ?
wechat.protobuf.BaseResponse.getDefaultInstance() : baseResponse_;
}
}
/**
* optional .wechat_proto.BaseResponse baseResponse = 10;
*/
private com.google.protobuf.SingleFieldBuilderV3<
wechat.protobuf.BaseResponse, wechat.protobuf.BaseResponse.Builder, wechat.protobuf.BaseResponseOrBuilder>
getBaseResponseFieldBuilder() {
if (baseResponseBuilder_ == null) {
baseResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
wechat.protobuf.BaseResponse, wechat.protobuf.BaseResponse.Builder, wechat.protobuf.BaseResponseOrBuilder>(
getBaseResponse(),
getParentForChildren(),
isClean());
baseResponse_ = null;
}
return baseResponseBuilder_;
}
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 long newMsgId_ ;
/**
* optional uint64 newMsgId = 12;
* @return Whether the newMsgId field is set.
*/
@java.lang.Override
public boolean hasNewMsgId() {
return ((bitField0_ & 0x00000800) != 0);
}
/**
* optional uint64 newMsgId = 12;
* @return The newMsgId.
*/
@java.lang.Override
public long getNewMsgId() {
return newMsgId_;
}
/**
* optional uint64 newMsgId = 12;
* @param value The newMsgId to set.
* @return This builder for chaining.
*/
public Builder setNewMsgId(long value) {
bitField0_ |= 0x00000800;
newMsgId_ = value;
onChanged();
return this;
}
/**
* optional uint64 newMsgId = 12;
* @return This builder for chaining.
*/
public Builder clearNewMsgId() {
bitField0_ = (bitField0_ & ~0x00000800);
newMsgId_ = 0L;
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:wechat_proto.UploadVoiceResponse)
}
// @@protoc_insertion_point(class_scope:wechat_proto.UploadVoiceResponse)
private static final wechat.protobuf.UploadVoiceResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new wechat.protobuf.UploadVoiceResponse();
}
public static wechat.protobuf.UploadVoiceResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public UploadVoiceResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new UploadVoiceResponse(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.UploadVoiceResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy