
wechat.protobuf.MicroMsgResponseNew Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: wechat.proto
package wechat.protobuf;
/**
* Protobuf type {@code wechat_proto.MicroMsgResponseNew}
*/
public final class MicroMsgResponseNew extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:wechat_proto.MicroMsgResponseNew)
MicroMsgResponseNewOrBuilder {
private static final long serialVersionUID = 0L;
// Use MicroMsgResponseNew.newBuilder() to construct.
private MicroMsgResponseNew(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private MicroMsgResponseNew() {
msgSource_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new MicroMsgResponseNew();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private MicroMsgResponseNew(
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 8: {
bitField0_ |= 0x00000001;
ret_ = input.readUInt32();
break;
}
case 18: {
wechat.protobuf.SKBuiltinString.Builder subBuilder = null;
if (((bitField0_ & 0x00000002) != 0)) {
subBuilder = toUserName_.toBuilder();
}
toUserName_ = input.readMessage(wechat.protobuf.SKBuiltinString.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(toUserName_);
toUserName_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000002;
break;
}
case 24: {
bitField0_ |= 0x00000004;
msgId_ = input.readUInt32();
break;
}
case 32: {
bitField0_ |= 0x00000008;
clientMsgId_ = input.readUInt32();
break;
}
case 40: {
bitField0_ |= 0x00000010;
createTime_ = input.readUInt32();
break;
}
case 48: {
bitField0_ |= 0x00000020;
serverTime_ = input.readUInt32();
break;
}
case 56: {
bitField0_ |= 0x00000040;
type_ = input.readUInt32();
break;
}
case 64: {
bitField0_ |= 0x00000080;
newMsgId_ = input.readUInt64();
break;
}
case 74: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000100;
msgSource_ = bs;
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_MicroMsgResponseNew_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return wechat.protobuf.Wechat.internal_static_wechat_proto_MicroMsgResponseNew_fieldAccessorTable
.ensureFieldAccessorsInitialized(
wechat.protobuf.MicroMsgResponseNew.class, wechat.protobuf.MicroMsgResponseNew.Builder.class);
}
private int bitField0_;
public static final int RET_FIELD_NUMBER = 1;
private int ret_;
/**
* optional uint32 ret = 1;
* @return Whether the ret field is set.
*/
@java.lang.Override
public boolean hasRet() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional uint32 ret = 1;
* @return The ret.
*/
@java.lang.Override
public int getRet() {
return ret_;
}
public static final int TOUSERNAME_FIELD_NUMBER = 2;
private wechat.protobuf.SKBuiltinString toUserName_;
/**
* optional .wechat_proto.SKBuiltinString toUserName = 2;
* @return Whether the toUserName field is set.
*/
@java.lang.Override
public boolean hasToUserName() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional .wechat_proto.SKBuiltinString toUserName = 2;
* @return The toUserName.
*/
@java.lang.Override
public wechat.protobuf.SKBuiltinString getToUserName() {
return toUserName_ == null ? wechat.protobuf.SKBuiltinString.getDefaultInstance() : toUserName_;
}
/**
* optional .wechat_proto.SKBuiltinString toUserName = 2;
*/
@java.lang.Override
public wechat.protobuf.SKBuiltinStringOrBuilder getToUserNameOrBuilder() {
return toUserName_ == null ? wechat.protobuf.SKBuiltinString.getDefaultInstance() : toUserName_;
}
public static final int MSGID_FIELD_NUMBER = 3;
private int msgId_;
/**
* optional uint32 msgId = 3;
* @return Whether the msgId field is set.
*/
@java.lang.Override
public boolean hasMsgId() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional uint32 msgId = 3;
* @return The msgId.
*/
@java.lang.Override
public int getMsgId() {
return msgId_;
}
public static final int CLIENTMSGID_FIELD_NUMBER = 4;
private int clientMsgId_;
/**
* optional uint32 clientMsgId = 4;
* @return Whether the clientMsgId field is set.
*/
@java.lang.Override
public boolean hasClientMsgId() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional uint32 clientMsgId = 4;
* @return The clientMsgId.
*/
@java.lang.Override
public int getClientMsgId() {
return clientMsgId_;
}
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 SERVERTIME_FIELD_NUMBER = 6;
private int serverTime_;
/**
* optional uint32 serverTime = 6;
* @return Whether the serverTime field is set.
*/
@java.lang.Override
public boolean hasServerTime() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
* optional uint32 serverTime = 6;
* @return The serverTime.
*/
@java.lang.Override
public int getServerTime() {
return serverTime_;
}
public static final int TYPE_FIELD_NUMBER = 7;
private int type_;
/**
* optional uint32 type = 7;
* @return Whether the type field is set.
*/
@java.lang.Override
public boolean hasType() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
* optional uint32 type = 7;
* @return The type.
*/
@java.lang.Override
public int getType() {
return type_;
}
public static final int NEWMSGID_FIELD_NUMBER = 8;
private long newMsgId_;
/**
* optional uint64 newMsgId = 8;
* @return Whether the newMsgId field is set.
*/
@java.lang.Override
public boolean hasNewMsgId() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
* optional uint64 newMsgId = 8;
* @return The newMsgId.
*/
@java.lang.Override
public long getNewMsgId() {
return newMsgId_;
}
public static final int MSGSOURCE_FIELD_NUMBER = 9;
private volatile java.lang.Object msgSource_;
/**
* optional string msgSource = 9;
* @return Whether the msgSource field is set.
*/
@java.lang.Override
public boolean hasMsgSource() {
return ((bitField0_ & 0x00000100) != 0);
}
/**
* optional string msgSource = 9;
* @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 = 9;
* @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;
}
}
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.writeUInt32(1, ret_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(2, getToUserName());
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeUInt32(3, msgId_);
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeUInt32(4, clientMsgId_);
}
if (((bitField0_ & 0x00000010) != 0)) {
output.writeUInt32(5, createTime_);
}
if (((bitField0_ & 0x00000020) != 0)) {
output.writeUInt32(6, serverTime_);
}
if (((bitField0_ & 0x00000040) != 0)) {
output.writeUInt32(7, type_);
}
if (((bitField0_ & 0x00000080) != 0)) {
output.writeUInt64(8, newMsgId_);
}
if (((bitField0_ & 0x00000100) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 9, msgSource_);
}
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
.computeUInt32Size(1, ret_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getToUserName());
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(3, msgId_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(4, clientMsgId_);
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(5, createTime_);
}
if (((bitField0_ & 0x00000020) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(6, serverTime_);
}
if (((bitField0_ & 0x00000040) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(7, type_);
}
if (((bitField0_ & 0x00000080) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(8, newMsgId_);
}
if (((bitField0_ & 0x00000100) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, msgSource_);
}
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.MicroMsgResponseNew)) {
return super.equals(obj);
}
wechat.protobuf.MicroMsgResponseNew other = (wechat.protobuf.MicroMsgResponseNew) obj;
if (hasRet() != other.hasRet()) return false;
if (hasRet()) {
if (getRet()
!= other.getRet()) return false;
}
if (hasToUserName() != other.hasToUserName()) return false;
if (hasToUserName()) {
if (!getToUserName()
.equals(other.getToUserName())) return false;
}
if (hasMsgId() != other.hasMsgId()) return false;
if (hasMsgId()) {
if (getMsgId()
!= other.getMsgId()) return false;
}
if (hasClientMsgId() != other.hasClientMsgId()) return false;
if (hasClientMsgId()) {
if (getClientMsgId()
!= other.getClientMsgId()) return false;
}
if (hasCreateTime() != other.hasCreateTime()) return false;
if (hasCreateTime()) {
if (getCreateTime()
!= other.getCreateTime()) return false;
}
if (hasServerTime() != other.hasServerTime()) return false;
if (hasServerTime()) {
if (getServerTime()
!= other.getServerTime()) return false;
}
if (hasType() != other.hasType()) return false;
if (hasType()) {
if (getType()
!= other.getType()) return false;
}
if (hasNewMsgId() != other.hasNewMsgId()) return false;
if (hasNewMsgId()) {
if (getNewMsgId()
!= other.getNewMsgId()) return false;
}
if (hasMsgSource() != other.hasMsgSource()) return false;
if (hasMsgSource()) {
if (!getMsgSource()
.equals(other.getMsgSource())) 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 (hasRet()) {
hash = (37 * hash) + RET_FIELD_NUMBER;
hash = (53 * hash) + getRet();
}
if (hasToUserName()) {
hash = (37 * hash) + TOUSERNAME_FIELD_NUMBER;
hash = (53 * hash) + getToUserName().hashCode();
}
if (hasMsgId()) {
hash = (37 * hash) + MSGID_FIELD_NUMBER;
hash = (53 * hash) + getMsgId();
}
if (hasClientMsgId()) {
hash = (37 * hash) + CLIENTMSGID_FIELD_NUMBER;
hash = (53 * hash) + getClientMsgId();
}
if (hasCreateTime()) {
hash = (37 * hash) + CREATETIME_FIELD_NUMBER;
hash = (53 * hash) + getCreateTime();
}
if (hasServerTime()) {
hash = (37 * hash) + SERVERTIME_FIELD_NUMBER;
hash = (53 * hash) + getServerTime();
}
if (hasType()) {
hash = (37 * hash) + TYPE_FIELD_NUMBER;
hash = (53 * hash) + getType();
}
if (hasNewMsgId()) {
hash = (37 * hash) + NEWMSGID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getNewMsgId());
}
if (hasMsgSource()) {
hash = (37 * hash) + MSGSOURCE_FIELD_NUMBER;
hash = (53 * hash) + getMsgSource().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static wechat.protobuf.MicroMsgResponseNew parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static wechat.protobuf.MicroMsgResponseNew parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static wechat.protobuf.MicroMsgResponseNew parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static wechat.protobuf.MicroMsgResponseNew 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.MicroMsgResponseNew parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static wechat.protobuf.MicroMsgResponseNew parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static wechat.protobuf.MicroMsgResponseNew parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static wechat.protobuf.MicroMsgResponseNew 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.MicroMsgResponseNew parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static wechat.protobuf.MicroMsgResponseNew 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.MicroMsgResponseNew parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static wechat.protobuf.MicroMsgResponseNew 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.MicroMsgResponseNew 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.MicroMsgResponseNew}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:wechat_proto.MicroMsgResponseNew)
wechat.protobuf.MicroMsgResponseNewOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return wechat.protobuf.Wechat.internal_static_wechat_proto_MicroMsgResponseNew_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return wechat.protobuf.Wechat.internal_static_wechat_proto_MicroMsgResponseNew_fieldAccessorTable
.ensureFieldAccessorsInitialized(
wechat.protobuf.MicroMsgResponseNew.class, wechat.protobuf.MicroMsgResponseNew.Builder.class);
}
// Construct using wechat.protobuf.MicroMsgResponseNew.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getToUserNameFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
ret_ = 0;
bitField0_ = (bitField0_ & ~0x00000001);
if (toUserNameBuilder_ == null) {
toUserName_ = null;
} else {
toUserNameBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
msgId_ = 0;
bitField0_ = (bitField0_ & ~0x00000004);
clientMsgId_ = 0;
bitField0_ = (bitField0_ & ~0x00000008);
createTime_ = 0;
bitField0_ = (bitField0_ & ~0x00000010);
serverTime_ = 0;
bitField0_ = (bitField0_ & ~0x00000020);
type_ = 0;
bitField0_ = (bitField0_ & ~0x00000040);
newMsgId_ = 0L;
bitField0_ = (bitField0_ & ~0x00000080);
msgSource_ = "";
bitField0_ = (bitField0_ & ~0x00000100);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return wechat.protobuf.Wechat.internal_static_wechat_proto_MicroMsgResponseNew_descriptor;
}
@java.lang.Override
public wechat.protobuf.MicroMsgResponseNew getDefaultInstanceForType() {
return wechat.protobuf.MicroMsgResponseNew.getDefaultInstance();
}
@java.lang.Override
public wechat.protobuf.MicroMsgResponseNew build() {
wechat.protobuf.MicroMsgResponseNew result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public wechat.protobuf.MicroMsgResponseNew buildPartial() {
wechat.protobuf.MicroMsgResponseNew result = new wechat.protobuf.MicroMsgResponseNew(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.ret_ = ret_;
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
if (toUserNameBuilder_ == null) {
result.toUserName_ = toUserName_;
} else {
result.toUserName_ = toUserNameBuilder_.build();
}
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.msgId_ = msgId_;
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.clientMsgId_ = clientMsgId_;
to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.createTime_ = createTime_;
to_bitField0_ |= 0x00000010;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.serverTime_ = serverTime_;
to_bitField0_ |= 0x00000020;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.type_ = type_;
to_bitField0_ |= 0x00000040;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
result.newMsgId_ = newMsgId_;
to_bitField0_ |= 0x00000080;
}
if (((from_bitField0_ & 0x00000100) != 0)) {
to_bitField0_ |= 0x00000100;
}
result.msgSource_ = msgSource_;
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.MicroMsgResponseNew) {
return mergeFrom((wechat.protobuf.MicroMsgResponseNew)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(wechat.protobuf.MicroMsgResponseNew other) {
if (other == wechat.protobuf.MicroMsgResponseNew.getDefaultInstance()) return this;
if (other.hasRet()) {
setRet(other.getRet());
}
if (other.hasToUserName()) {
mergeToUserName(other.getToUserName());
}
if (other.hasMsgId()) {
setMsgId(other.getMsgId());
}
if (other.hasClientMsgId()) {
setClientMsgId(other.getClientMsgId());
}
if (other.hasCreateTime()) {
setCreateTime(other.getCreateTime());
}
if (other.hasServerTime()) {
setServerTime(other.getServerTime());
}
if (other.hasType()) {
setType(other.getType());
}
if (other.hasNewMsgId()) {
setNewMsgId(other.getNewMsgId());
}
if (other.hasMsgSource()) {
bitField0_ |= 0x00000100;
msgSource_ = other.msgSource_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
wechat.protobuf.MicroMsgResponseNew parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (wechat.protobuf.MicroMsgResponseNew) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private int ret_ ;
/**
* optional uint32 ret = 1;
* @return Whether the ret field is set.
*/
@java.lang.Override
public boolean hasRet() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional uint32 ret = 1;
* @return The ret.
*/
@java.lang.Override
public int getRet() {
return ret_;
}
/**
* optional uint32 ret = 1;
* @param value The ret to set.
* @return This builder for chaining.
*/
public Builder setRet(int value) {
bitField0_ |= 0x00000001;
ret_ = value;
onChanged();
return this;
}
/**
* optional uint32 ret = 1;
* @return This builder for chaining.
*/
public Builder clearRet() {
bitField0_ = (bitField0_ & ~0x00000001);
ret_ = 0;
onChanged();
return this;
}
private wechat.protobuf.SKBuiltinString toUserName_;
private com.google.protobuf.SingleFieldBuilderV3<
wechat.protobuf.SKBuiltinString, wechat.protobuf.SKBuiltinString.Builder, wechat.protobuf.SKBuiltinStringOrBuilder> toUserNameBuilder_;
/**
* optional .wechat_proto.SKBuiltinString toUserName = 2;
* @return Whether the toUserName field is set.
*/
public boolean hasToUserName() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional .wechat_proto.SKBuiltinString toUserName = 2;
* @return The toUserName.
*/
public wechat.protobuf.SKBuiltinString getToUserName() {
if (toUserNameBuilder_ == null) {
return toUserName_ == null ? wechat.protobuf.SKBuiltinString.getDefaultInstance() : toUserName_;
} else {
return toUserNameBuilder_.getMessage();
}
}
/**
* optional .wechat_proto.SKBuiltinString toUserName = 2;
*/
public Builder setToUserName(wechat.protobuf.SKBuiltinString value) {
if (toUserNameBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
toUserName_ = value;
onChanged();
} else {
toUserNameBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .wechat_proto.SKBuiltinString toUserName = 2;
*/
public Builder setToUserName(
wechat.protobuf.SKBuiltinString.Builder builderForValue) {
if (toUserNameBuilder_ == null) {
toUserName_ = builderForValue.build();
onChanged();
} else {
toUserNameBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .wechat_proto.SKBuiltinString toUserName = 2;
*/
public Builder mergeToUserName(wechat.protobuf.SKBuiltinString value) {
if (toUserNameBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
toUserName_ != null &&
toUserName_ != wechat.protobuf.SKBuiltinString.getDefaultInstance()) {
toUserName_ =
wechat.protobuf.SKBuiltinString.newBuilder(toUserName_).mergeFrom(value).buildPartial();
} else {
toUserName_ = value;
}
onChanged();
} else {
toUserNameBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .wechat_proto.SKBuiltinString toUserName = 2;
*/
public Builder clearToUserName() {
if (toUserNameBuilder_ == null) {
toUserName_ = null;
onChanged();
} else {
toUserNameBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
/**
* optional .wechat_proto.SKBuiltinString toUserName = 2;
*/
public wechat.protobuf.SKBuiltinString.Builder getToUserNameBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getToUserNameFieldBuilder().getBuilder();
}
/**
* optional .wechat_proto.SKBuiltinString toUserName = 2;
*/
public wechat.protobuf.SKBuiltinStringOrBuilder getToUserNameOrBuilder() {
if (toUserNameBuilder_ != null) {
return toUserNameBuilder_.getMessageOrBuilder();
} else {
return toUserName_ == null ?
wechat.protobuf.SKBuiltinString.getDefaultInstance() : toUserName_;
}
}
/**
* optional .wechat_proto.SKBuiltinString toUserName = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
wechat.protobuf.SKBuiltinString, wechat.protobuf.SKBuiltinString.Builder, wechat.protobuf.SKBuiltinStringOrBuilder>
getToUserNameFieldBuilder() {
if (toUserNameBuilder_ == null) {
toUserNameBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
wechat.protobuf.SKBuiltinString, wechat.protobuf.SKBuiltinString.Builder, wechat.protobuf.SKBuiltinStringOrBuilder>(
getToUserName(),
getParentForChildren(),
isClean());
toUserName_ = null;
}
return toUserNameBuilder_;
}
private int msgId_ ;
/**
* optional uint32 msgId = 3;
* @return Whether the msgId field is set.
*/
@java.lang.Override
public boolean hasMsgId() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional uint32 msgId = 3;
* @return The msgId.
*/
@java.lang.Override
public int getMsgId() {
return msgId_;
}
/**
* optional uint32 msgId = 3;
* @param value The msgId to set.
* @return This builder for chaining.
*/
public Builder setMsgId(int value) {
bitField0_ |= 0x00000004;
msgId_ = value;
onChanged();
return this;
}
/**
* optional uint32 msgId = 3;
* @return This builder for chaining.
*/
public Builder clearMsgId() {
bitField0_ = (bitField0_ & ~0x00000004);
msgId_ = 0;
onChanged();
return this;
}
private int clientMsgId_ ;
/**
* optional uint32 clientMsgId = 4;
* @return Whether the clientMsgId field is set.
*/
@java.lang.Override
public boolean hasClientMsgId() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional uint32 clientMsgId = 4;
* @return The clientMsgId.
*/
@java.lang.Override
public int getClientMsgId() {
return clientMsgId_;
}
/**
* optional uint32 clientMsgId = 4;
* @param value The clientMsgId to set.
* @return This builder for chaining.
*/
public Builder setClientMsgId(int value) {
bitField0_ |= 0x00000008;
clientMsgId_ = value;
onChanged();
return this;
}
/**
* optional uint32 clientMsgId = 4;
* @return This builder for chaining.
*/
public Builder clearClientMsgId() {
bitField0_ = (bitField0_ & ~0x00000008);
clientMsgId_ = 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 int serverTime_ ;
/**
* optional uint32 serverTime = 6;
* @return Whether the serverTime field is set.
*/
@java.lang.Override
public boolean hasServerTime() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
* optional uint32 serverTime = 6;
* @return The serverTime.
*/
@java.lang.Override
public int getServerTime() {
return serverTime_;
}
/**
* optional uint32 serverTime = 6;
* @param value The serverTime to set.
* @return This builder for chaining.
*/
public Builder setServerTime(int value) {
bitField0_ |= 0x00000020;
serverTime_ = value;
onChanged();
return this;
}
/**
* optional uint32 serverTime = 6;
* @return This builder for chaining.
*/
public Builder clearServerTime() {
bitField0_ = (bitField0_ & ~0x00000020);
serverTime_ = 0;
onChanged();
return this;
}
private int type_ ;
/**
* optional uint32 type = 7;
* @return Whether the type field is set.
*/
@java.lang.Override
public boolean hasType() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
* optional uint32 type = 7;
* @return The type.
*/
@java.lang.Override
public int getType() {
return type_;
}
/**
* optional uint32 type = 7;
* @param value The type to set.
* @return This builder for chaining.
*/
public Builder setType(int value) {
bitField0_ |= 0x00000040;
type_ = value;
onChanged();
return this;
}
/**
* optional uint32 type = 7;
* @return This builder for chaining.
*/
public Builder clearType() {
bitField0_ = (bitField0_ & ~0x00000040);
type_ = 0;
onChanged();
return this;
}
private long newMsgId_ ;
/**
* optional uint64 newMsgId = 8;
* @return Whether the newMsgId field is set.
*/
@java.lang.Override
public boolean hasNewMsgId() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
* optional uint64 newMsgId = 8;
* @return The newMsgId.
*/
@java.lang.Override
public long getNewMsgId() {
return newMsgId_;
}
/**
* optional uint64 newMsgId = 8;
* @param value The newMsgId to set.
* @return This builder for chaining.
*/
public Builder setNewMsgId(long value) {
bitField0_ |= 0x00000080;
newMsgId_ = value;
onChanged();
return this;
}
/**
* optional uint64 newMsgId = 8;
* @return This builder for chaining.
*/
public Builder clearNewMsgId() {
bitField0_ = (bitField0_ & ~0x00000080);
newMsgId_ = 0L;
onChanged();
return this;
}
private java.lang.Object msgSource_ = "";
/**
* optional string msgSource = 9;
* @return Whether the msgSource field is set.
*/
public boolean hasMsgSource() {
return ((bitField0_ & 0x00000100) != 0);
}
/**
* optional string msgSource = 9;
* @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 = 9;
* @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 = 9;
* @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_ |= 0x00000100;
msgSource_ = value;
onChanged();
return this;
}
/**
* optional string msgSource = 9;
* @return This builder for chaining.
*/
public Builder clearMsgSource() {
bitField0_ = (bitField0_ & ~0x00000100);
msgSource_ = getDefaultInstance().getMsgSource();
onChanged();
return this;
}
/**
* optional string msgSource = 9;
* @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_ |= 0x00000100;
msgSource_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:wechat_proto.MicroMsgResponseNew)
}
// @@protoc_insertion_point(class_scope:wechat_proto.MicroMsgResponseNew)
private static final wechat.protobuf.MicroMsgResponseNew DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new wechat.protobuf.MicroMsgResponseNew();
}
public static wechat.protobuf.MicroMsgResponseNew getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public MicroMsgResponseNew parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new MicroMsgResponseNew(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.MicroMsgResponseNew getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy