
wechat.protobuf.RevokeMsgRequest Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: wechat.proto
package wechat.protobuf;
/**
* Protobuf type {@code wechat_proto.RevokeMsgRequest}
*/
public final class RevokeMsgRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:wechat_proto.RevokeMsgRequest)
RevokeMsgRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use RevokeMsgRequest.newBuilder() to construct.
private RevokeMsgRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private RevokeMsgRequest() {
clientMsgId_ = "";
fromUserName_ = "";
toUserName_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new RevokeMsgRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private RevokeMsgRequest(
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: {
wechat.protobuf.BaseRequest.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) != 0)) {
subBuilder = baseRequest_.toBuilder();
}
baseRequest_ = input.readMessage(wechat.protobuf.BaseRequest.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(baseRequest_);
baseRequest_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
break;
}
case 18: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000002;
clientMsgId_ = bs;
break;
}
case 24: {
bitField0_ |= 0x00000004;
newClientMsgId_ = input.readUInt32();
break;
}
case 32: {
bitField0_ |= 0x00000008;
createTime_ = input.readUInt32();
break;
}
case 40: {
bitField0_ |= 0x00000010;
svrMsgId_ = input.readUInt32();
break;
}
case 50: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000020;
fromUserName_ = bs;
break;
}
case 58: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000040;
toUserName_ = bs;
break;
}
case 64: {
bitField0_ |= 0x00000080;
indexOfRequest_ = input.readUInt32();
break;
}
case 72: {
bitField0_ |= 0x00000100;
svrNewMsgId_ = 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_RevokeMsgRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return wechat.protobuf.Wechat.internal_static_wechat_proto_RevokeMsgRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
wechat.protobuf.RevokeMsgRequest.class, wechat.protobuf.RevokeMsgRequest.Builder.class);
}
private int bitField0_;
public static final int BASEREQUEST_FIELD_NUMBER = 1;
private wechat.protobuf.BaseRequest baseRequest_;
/**
* optional .wechat_proto.BaseRequest baseRequest = 1;
* @return Whether the baseRequest field is set.
*/
@java.lang.Override
public boolean hasBaseRequest() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional .wechat_proto.BaseRequest baseRequest = 1;
* @return The baseRequest.
*/
@java.lang.Override
public wechat.protobuf.BaseRequest getBaseRequest() {
return baseRequest_ == null ? wechat.protobuf.BaseRequest.getDefaultInstance() : baseRequest_;
}
/**
* optional .wechat_proto.BaseRequest baseRequest = 1;
*/
@java.lang.Override
public wechat.protobuf.BaseRequestOrBuilder getBaseRequestOrBuilder() {
return baseRequest_ == null ? wechat.protobuf.BaseRequest.getDefaultInstance() : baseRequest_;
}
public static final int CLIENTMSGID_FIELD_NUMBER = 2;
private volatile java.lang.Object clientMsgId_;
/**
* optional string clientMsgId = 2;
* @return Whether the clientMsgId field is set.
*/
@java.lang.Override
public boolean hasClientMsgId() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional string clientMsgId = 2;
* @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 = 2;
* @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 NEWCLIENTMSGID_FIELD_NUMBER = 3;
private int newClientMsgId_;
/**
* optional uint32 newClientMsgId = 3;
* @return Whether the newClientMsgId field is set.
*/
@java.lang.Override
public boolean hasNewClientMsgId() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional uint32 newClientMsgId = 3;
* @return The newClientMsgId.
*/
@java.lang.Override
public int getNewClientMsgId() {
return newClientMsgId_;
}
public static final int CREATETIME_FIELD_NUMBER = 4;
private int createTime_;
/**
* optional uint32 createTime = 4;
* @return Whether the createTime field is set.
*/
@java.lang.Override
public boolean hasCreateTime() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional uint32 createTime = 4;
* @return The createTime.
*/
@java.lang.Override
public int getCreateTime() {
return createTime_;
}
public static final int SVRMSGID_FIELD_NUMBER = 5;
private int svrMsgId_;
/**
* optional uint32 svrMsgId = 5;
* @return Whether the svrMsgId field is set.
*/
@java.lang.Override
public boolean hasSvrMsgId() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* optional uint32 svrMsgId = 5;
* @return The svrMsgId.
*/
@java.lang.Override
public int getSvrMsgId() {
return svrMsgId_;
}
public static final int FROMUSERNAME_FIELD_NUMBER = 6;
private volatile java.lang.Object fromUserName_;
/**
* optional string fromUserName = 6;
* @return Whether the fromUserName field is set.
*/
@java.lang.Override
public boolean hasFromUserName() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
* optional string fromUserName = 6;
* @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 = 6;
* @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 = 7;
private volatile java.lang.Object toUserName_;
/**
* optional string toUserName = 7;
* @return Whether the toUserName field is set.
*/
@java.lang.Override
public boolean hasToUserName() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
* optional string toUserName = 7;
* @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 = 7;
* @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 INDEXOFREQUEST_FIELD_NUMBER = 8;
private int indexOfRequest_;
/**
* optional uint32 indexOfRequest = 8;
* @return Whether the indexOfRequest field is set.
*/
@java.lang.Override
public boolean hasIndexOfRequest() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
* optional uint32 indexOfRequest = 8;
* @return The indexOfRequest.
*/
@java.lang.Override
public int getIndexOfRequest() {
return indexOfRequest_;
}
public static final int SVRNEWMSGID_FIELD_NUMBER = 9;
private long svrNewMsgId_;
/**
* optional uint64 svrNewMsgId = 9;
* @return Whether the svrNewMsgId field is set.
*/
@java.lang.Override
public boolean hasSvrNewMsgId() {
return ((bitField0_ & 0x00000100) != 0);
}
/**
* optional uint64 svrNewMsgId = 9;
* @return The svrNewMsgId.
*/
@java.lang.Override
public long getSvrNewMsgId() {
return svrNewMsgId_;
}
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)) {
output.writeMessage(1, getBaseRequest());
}
if (((bitField0_ & 0x00000002) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, clientMsgId_);
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeUInt32(3, newClientMsgId_);
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeUInt32(4, createTime_);
}
if (((bitField0_ & 0x00000010) != 0)) {
output.writeUInt32(5, svrMsgId_);
}
if (((bitField0_ & 0x00000020) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, fromUserName_);
}
if (((bitField0_ & 0x00000040) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, toUserName_);
}
if (((bitField0_ & 0x00000080) != 0)) {
output.writeUInt32(8, indexOfRequest_);
}
if (((bitField0_ & 0x00000100) != 0)) {
output.writeUInt64(9, svrNewMsgId_);
}
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.CodedOutputStream
.computeMessageSize(1, getBaseRequest());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, clientMsgId_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(3, newClientMsgId_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(4, createTime_);
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(5, svrMsgId_);
}
if (((bitField0_ & 0x00000020) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, fromUserName_);
}
if (((bitField0_ & 0x00000040) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, toUserName_);
}
if (((bitField0_ & 0x00000080) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(8, indexOfRequest_);
}
if (((bitField0_ & 0x00000100) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(9, svrNewMsgId_);
}
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.RevokeMsgRequest)) {
return super.equals(obj);
}
wechat.protobuf.RevokeMsgRequest other = (wechat.protobuf.RevokeMsgRequest) obj;
if (hasBaseRequest() != other.hasBaseRequest()) return false;
if (hasBaseRequest()) {
if (!getBaseRequest()
.equals(other.getBaseRequest())) return false;
}
if (hasClientMsgId() != other.hasClientMsgId()) return false;
if (hasClientMsgId()) {
if (!getClientMsgId()
.equals(other.getClientMsgId())) return false;
}
if (hasNewClientMsgId() != other.hasNewClientMsgId()) return false;
if (hasNewClientMsgId()) {
if (getNewClientMsgId()
!= other.getNewClientMsgId()) return false;
}
if (hasCreateTime() != other.hasCreateTime()) return false;
if (hasCreateTime()) {
if (getCreateTime()
!= other.getCreateTime()) return false;
}
if (hasSvrMsgId() != other.hasSvrMsgId()) return false;
if (hasSvrMsgId()) {
if (getSvrMsgId()
!= other.getSvrMsgId()) return false;
}
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 (hasIndexOfRequest() != other.hasIndexOfRequest()) return false;
if (hasIndexOfRequest()) {
if (getIndexOfRequest()
!= other.getIndexOfRequest()) return false;
}
if (hasSvrNewMsgId() != other.hasSvrNewMsgId()) return false;
if (hasSvrNewMsgId()) {
if (getSvrNewMsgId()
!= other.getSvrNewMsgId()) 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 (hasBaseRequest()) {
hash = (37 * hash) + BASEREQUEST_FIELD_NUMBER;
hash = (53 * hash) + getBaseRequest().hashCode();
}
if (hasClientMsgId()) {
hash = (37 * hash) + CLIENTMSGID_FIELD_NUMBER;
hash = (53 * hash) + getClientMsgId().hashCode();
}
if (hasNewClientMsgId()) {
hash = (37 * hash) + NEWCLIENTMSGID_FIELD_NUMBER;
hash = (53 * hash) + getNewClientMsgId();
}
if (hasCreateTime()) {
hash = (37 * hash) + CREATETIME_FIELD_NUMBER;
hash = (53 * hash) + getCreateTime();
}
if (hasSvrMsgId()) {
hash = (37 * hash) + SVRMSGID_FIELD_NUMBER;
hash = (53 * hash) + getSvrMsgId();
}
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 (hasIndexOfRequest()) {
hash = (37 * hash) + INDEXOFREQUEST_FIELD_NUMBER;
hash = (53 * hash) + getIndexOfRequest();
}
if (hasSvrNewMsgId()) {
hash = (37 * hash) + SVRNEWMSGID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getSvrNewMsgId());
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static wechat.protobuf.RevokeMsgRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static wechat.protobuf.RevokeMsgRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static wechat.protobuf.RevokeMsgRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static wechat.protobuf.RevokeMsgRequest 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.RevokeMsgRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static wechat.protobuf.RevokeMsgRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static wechat.protobuf.RevokeMsgRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static wechat.protobuf.RevokeMsgRequest 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.RevokeMsgRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static wechat.protobuf.RevokeMsgRequest 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.RevokeMsgRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static wechat.protobuf.RevokeMsgRequest 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.RevokeMsgRequest 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.RevokeMsgRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:wechat_proto.RevokeMsgRequest)
wechat.protobuf.RevokeMsgRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return wechat.protobuf.Wechat.internal_static_wechat_proto_RevokeMsgRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return wechat.protobuf.Wechat.internal_static_wechat_proto_RevokeMsgRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
wechat.protobuf.RevokeMsgRequest.class, wechat.protobuf.RevokeMsgRequest.Builder.class);
}
// Construct using wechat.protobuf.RevokeMsgRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getBaseRequestFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (baseRequestBuilder_ == null) {
baseRequest_ = null;
} else {
baseRequestBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
clientMsgId_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
newClientMsgId_ = 0;
bitField0_ = (bitField0_ & ~0x00000004);
createTime_ = 0;
bitField0_ = (bitField0_ & ~0x00000008);
svrMsgId_ = 0;
bitField0_ = (bitField0_ & ~0x00000010);
fromUserName_ = "";
bitField0_ = (bitField0_ & ~0x00000020);
toUserName_ = "";
bitField0_ = (bitField0_ & ~0x00000040);
indexOfRequest_ = 0;
bitField0_ = (bitField0_ & ~0x00000080);
svrNewMsgId_ = 0L;
bitField0_ = (bitField0_ & ~0x00000100);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return wechat.protobuf.Wechat.internal_static_wechat_proto_RevokeMsgRequest_descriptor;
}
@java.lang.Override
public wechat.protobuf.RevokeMsgRequest getDefaultInstanceForType() {
return wechat.protobuf.RevokeMsgRequest.getDefaultInstance();
}
@java.lang.Override
public wechat.protobuf.RevokeMsgRequest build() {
wechat.protobuf.RevokeMsgRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public wechat.protobuf.RevokeMsgRequest buildPartial() {
wechat.protobuf.RevokeMsgRequest result = new wechat.protobuf.RevokeMsgRequest(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
if (baseRequestBuilder_ == null) {
result.baseRequest_ = baseRequest_;
} else {
result.baseRequest_ = baseRequestBuilder_.build();
}
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
to_bitField0_ |= 0x00000002;
}
result.clientMsgId_ = clientMsgId_;
if (((from_bitField0_ & 0x00000004) != 0)) {
result.newClientMsgId_ = newClientMsgId_;
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.createTime_ = createTime_;
to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.svrMsgId_ = svrMsgId_;
to_bitField0_ |= 0x00000010;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
to_bitField0_ |= 0x00000020;
}
result.fromUserName_ = fromUserName_;
if (((from_bitField0_ & 0x00000040) != 0)) {
to_bitField0_ |= 0x00000040;
}
result.toUserName_ = toUserName_;
if (((from_bitField0_ & 0x00000080) != 0)) {
result.indexOfRequest_ = indexOfRequest_;
to_bitField0_ |= 0x00000080;
}
if (((from_bitField0_ & 0x00000100) != 0)) {
result.svrNewMsgId_ = svrNewMsgId_;
to_bitField0_ |= 0x00000100;
}
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.RevokeMsgRequest) {
return mergeFrom((wechat.protobuf.RevokeMsgRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(wechat.protobuf.RevokeMsgRequest other) {
if (other == wechat.protobuf.RevokeMsgRequest.getDefaultInstance()) return this;
if (other.hasBaseRequest()) {
mergeBaseRequest(other.getBaseRequest());
}
if (other.hasClientMsgId()) {
bitField0_ |= 0x00000002;
clientMsgId_ = other.clientMsgId_;
onChanged();
}
if (other.hasNewClientMsgId()) {
setNewClientMsgId(other.getNewClientMsgId());
}
if (other.hasCreateTime()) {
setCreateTime(other.getCreateTime());
}
if (other.hasSvrMsgId()) {
setSvrMsgId(other.getSvrMsgId());
}
if (other.hasFromUserName()) {
bitField0_ |= 0x00000020;
fromUserName_ = other.fromUserName_;
onChanged();
}
if (other.hasToUserName()) {
bitField0_ |= 0x00000040;
toUserName_ = other.toUserName_;
onChanged();
}
if (other.hasIndexOfRequest()) {
setIndexOfRequest(other.getIndexOfRequest());
}
if (other.hasSvrNewMsgId()) {
setSvrNewMsgId(other.getSvrNewMsgId());
}
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.RevokeMsgRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (wechat.protobuf.RevokeMsgRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
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 = 1;
* @return Whether the baseRequest field is set.
*/
public boolean hasBaseRequest() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional .wechat_proto.BaseRequest baseRequest = 1;
* @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 = 1;
*/
public Builder setBaseRequest(wechat.protobuf.BaseRequest value) {
if (baseRequestBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
baseRequest_ = value;
onChanged();
} else {
baseRequestBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .wechat_proto.BaseRequest baseRequest = 1;
*/
public Builder setBaseRequest(
wechat.protobuf.BaseRequest.Builder builderForValue) {
if (baseRequestBuilder_ == null) {
baseRequest_ = builderForValue.build();
onChanged();
} else {
baseRequestBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .wechat_proto.BaseRequest baseRequest = 1;
*/
public Builder mergeBaseRequest(wechat.protobuf.BaseRequest value) {
if (baseRequestBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 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_ |= 0x00000001;
return this;
}
/**
* optional .wechat_proto.BaseRequest baseRequest = 1;
*/
public Builder clearBaseRequest() {
if (baseRequestBuilder_ == null) {
baseRequest_ = null;
onChanged();
} else {
baseRequestBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
/**
* optional .wechat_proto.BaseRequest baseRequest = 1;
*/
public wechat.protobuf.BaseRequest.Builder getBaseRequestBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getBaseRequestFieldBuilder().getBuilder();
}
/**
* optional .wechat_proto.BaseRequest baseRequest = 1;
*/
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 = 1;
*/
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 java.lang.Object clientMsgId_ = "";
/**
* optional string clientMsgId = 2;
* @return Whether the clientMsgId field is set.
*/
public boolean hasClientMsgId() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional string clientMsgId = 2;
* @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 = 2;
* @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 = 2;
* @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_ |= 0x00000002;
clientMsgId_ = value;
onChanged();
return this;
}
/**
* optional string clientMsgId = 2;
* @return This builder for chaining.
*/
public Builder clearClientMsgId() {
bitField0_ = (bitField0_ & ~0x00000002);
clientMsgId_ = getDefaultInstance().getClientMsgId();
onChanged();
return this;
}
/**
* optional string clientMsgId = 2;
* @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_ |= 0x00000002;
clientMsgId_ = value;
onChanged();
return this;
}
private int newClientMsgId_ ;
/**
* optional uint32 newClientMsgId = 3;
* @return Whether the newClientMsgId field is set.
*/
@java.lang.Override
public boolean hasNewClientMsgId() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional uint32 newClientMsgId = 3;
* @return The newClientMsgId.
*/
@java.lang.Override
public int getNewClientMsgId() {
return newClientMsgId_;
}
/**
* optional uint32 newClientMsgId = 3;
* @param value The newClientMsgId to set.
* @return This builder for chaining.
*/
public Builder setNewClientMsgId(int value) {
bitField0_ |= 0x00000004;
newClientMsgId_ = value;
onChanged();
return this;
}
/**
* optional uint32 newClientMsgId = 3;
* @return This builder for chaining.
*/
public Builder clearNewClientMsgId() {
bitField0_ = (bitField0_ & ~0x00000004);
newClientMsgId_ = 0;
onChanged();
return this;
}
private int createTime_ ;
/**
* optional uint32 createTime = 4;
* @return Whether the createTime field is set.
*/
@java.lang.Override
public boolean hasCreateTime() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional uint32 createTime = 4;
* @return The createTime.
*/
@java.lang.Override
public int getCreateTime() {
return createTime_;
}
/**
* optional uint32 createTime = 4;
* @param value The createTime to set.
* @return This builder for chaining.
*/
public Builder setCreateTime(int value) {
bitField0_ |= 0x00000008;
createTime_ = value;
onChanged();
return this;
}
/**
* optional uint32 createTime = 4;
* @return This builder for chaining.
*/
public Builder clearCreateTime() {
bitField0_ = (bitField0_ & ~0x00000008);
createTime_ = 0;
onChanged();
return this;
}
private int svrMsgId_ ;
/**
* optional uint32 svrMsgId = 5;
* @return Whether the svrMsgId field is set.
*/
@java.lang.Override
public boolean hasSvrMsgId() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* optional uint32 svrMsgId = 5;
* @return The svrMsgId.
*/
@java.lang.Override
public int getSvrMsgId() {
return svrMsgId_;
}
/**
* optional uint32 svrMsgId = 5;
* @param value The svrMsgId to set.
* @return This builder for chaining.
*/
public Builder setSvrMsgId(int value) {
bitField0_ |= 0x00000010;
svrMsgId_ = value;
onChanged();
return this;
}
/**
* optional uint32 svrMsgId = 5;
* @return This builder for chaining.
*/
public Builder clearSvrMsgId() {
bitField0_ = (bitField0_ & ~0x00000010);
svrMsgId_ = 0;
onChanged();
return this;
}
private java.lang.Object fromUserName_ = "";
/**
* optional string fromUserName = 6;
* @return Whether the fromUserName field is set.
*/
public boolean hasFromUserName() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
* optional string fromUserName = 6;
* @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 = 6;
* @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 = 6;
* @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_ |= 0x00000020;
fromUserName_ = value;
onChanged();
return this;
}
/**
* optional string fromUserName = 6;
* @return This builder for chaining.
*/
public Builder clearFromUserName() {
bitField0_ = (bitField0_ & ~0x00000020);
fromUserName_ = getDefaultInstance().getFromUserName();
onChanged();
return this;
}
/**
* optional string fromUserName = 6;
* @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_ |= 0x00000020;
fromUserName_ = value;
onChanged();
return this;
}
private java.lang.Object toUserName_ = "";
/**
* optional string toUserName = 7;
* @return Whether the toUserName field is set.
*/
public boolean hasToUserName() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
* optional string toUserName = 7;
* @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 = 7;
* @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 = 7;
* @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_ |= 0x00000040;
toUserName_ = value;
onChanged();
return this;
}
/**
* optional string toUserName = 7;
* @return This builder for chaining.
*/
public Builder clearToUserName() {
bitField0_ = (bitField0_ & ~0x00000040);
toUserName_ = getDefaultInstance().getToUserName();
onChanged();
return this;
}
/**
* optional string toUserName = 7;
* @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_ |= 0x00000040;
toUserName_ = value;
onChanged();
return this;
}
private int indexOfRequest_ ;
/**
* optional uint32 indexOfRequest = 8;
* @return Whether the indexOfRequest field is set.
*/
@java.lang.Override
public boolean hasIndexOfRequest() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
* optional uint32 indexOfRequest = 8;
* @return The indexOfRequest.
*/
@java.lang.Override
public int getIndexOfRequest() {
return indexOfRequest_;
}
/**
* optional uint32 indexOfRequest = 8;
* @param value The indexOfRequest to set.
* @return This builder for chaining.
*/
public Builder setIndexOfRequest(int value) {
bitField0_ |= 0x00000080;
indexOfRequest_ = value;
onChanged();
return this;
}
/**
* optional uint32 indexOfRequest = 8;
* @return This builder for chaining.
*/
public Builder clearIndexOfRequest() {
bitField0_ = (bitField0_ & ~0x00000080);
indexOfRequest_ = 0;
onChanged();
return this;
}
private long svrNewMsgId_ ;
/**
* optional uint64 svrNewMsgId = 9;
* @return Whether the svrNewMsgId field is set.
*/
@java.lang.Override
public boolean hasSvrNewMsgId() {
return ((bitField0_ & 0x00000100) != 0);
}
/**
* optional uint64 svrNewMsgId = 9;
* @return The svrNewMsgId.
*/
@java.lang.Override
public long getSvrNewMsgId() {
return svrNewMsgId_;
}
/**
* optional uint64 svrNewMsgId = 9;
* @param value The svrNewMsgId to set.
* @return This builder for chaining.
*/
public Builder setSvrNewMsgId(long value) {
bitField0_ |= 0x00000100;
svrNewMsgId_ = value;
onChanged();
return this;
}
/**
* optional uint64 svrNewMsgId = 9;
* @return This builder for chaining.
*/
public Builder clearSvrNewMsgId() {
bitField0_ = (bitField0_ & ~0x00000100);
svrNewMsgId_ = 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.RevokeMsgRequest)
}
// @@protoc_insertion_point(class_scope:wechat_proto.RevokeMsgRequest)
private static final wechat.protobuf.RevokeMsgRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new wechat.protobuf.RevokeMsgRequest();
}
public static wechat.protobuf.RevokeMsgRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public RevokeMsgRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new RevokeMsgRequest(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.RevokeMsgRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy