
wechat.protobuf.NewSyncRequest Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: wechat.proto
package wechat.protobuf;
/**
* Protobuf type {@code wechat_proto.NewSyncRequest}
*/
public final class NewSyncRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:wechat_proto.NewSyncRequest)
NewSyncRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use NewSyncRequest.newBuilder() to construct.
private NewSyncRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private NewSyncRequest() {
deviceType_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new NewSyncRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private NewSyncRequest(
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.CmdList.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) != 0)) {
subBuilder = oplog_.toBuilder();
}
oplog_ = input.readMessage(wechat.protobuf.CmdList.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(oplog_);
oplog_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
break;
}
case 16: {
bitField0_ |= 0x00000002;
selector_ = input.readUInt32();
break;
}
case 26: {
wechat.protobuf.SKBuiltinString_.Builder subBuilder = null;
if (((bitField0_ & 0x00000004) != 0)) {
subBuilder = keyBuf_.toBuilder();
}
keyBuf_ = input.readMessage(wechat.protobuf.SKBuiltinString_.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(keyBuf_);
keyBuf_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000004;
break;
}
case 32: {
bitField0_ |= 0x00000008;
scene_ = input.readUInt32();
break;
}
case 42: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000010;
deviceType_ = bs;
break;
}
case 48: {
bitField0_ |= 0x00000020;
syncMsgDigest_ = input.readUInt32();
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_NewSyncRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return wechat.protobuf.Wechat.internal_static_wechat_proto_NewSyncRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
wechat.protobuf.NewSyncRequest.class, wechat.protobuf.NewSyncRequest.Builder.class);
}
private int bitField0_;
public static final int OPLOG_FIELD_NUMBER = 1;
private wechat.protobuf.CmdList oplog_;
/**
* optional .wechat_proto.CmdList oplog = 1;
* @return Whether the oplog field is set.
*/
@java.lang.Override
public boolean hasOplog() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional .wechat_proto.CmdList oplog = 1;
* @return The oplog.
*/
@java.lang.Override
public wechat.protobuf.CmdList getOplog() {
return oplog_ == null ? wechat.protobuf.CmdList.getDefaultInstance() : oplog_;
}
/**
* optional .wechat_proto.CmdList oplog = 1;
*/
@java.lang.Override
public wechat.protobuf.CmdListOrBuilder getOplogOrBuilder() {
return oplog_ == null ? wechat.protobuf.CmdList.getDefaultInstance() : oplog_;
}
public static final int SELECTOR_FIELD_NUMBER = 2;
private int selector_;
/**
* optional uint32 selector = 2;
* @return Whether the selector field is set.
*/
@java.lang.Override
public boolean hasSelector() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional uint32 selector = 2;
* @return The selector.
*/
@java.lang.Override
public int getSelector() {
return selector_;
}
public static final int KEYBUF_FIELD_NUMBER = 3;
private wechat.protobuf.SKBuiltinString_ keyBuf_;
/**
* optional .wechat_proto.SKBuiltinString_ keyBuf = 3;
* @return Whether the keyBuf field is set.
*/
@java.lang.Override
public boolean hasKeyBuf() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional .wechat_proto.SKBuiltinString_ keyBuf = 3;
* @return The keyBuf.
*/
@java.lang.Override
public wechat.protobuf.SKBuiltinString_ getKeyBuf() {
return keyBuf_ == null ? wechat.protobuf.SKBuiltinString_.getDefaultInstance() : keyBuf_;
}
/**
* optional .wechat_proto.SKBuiltinString_ keyBuf = 3;
*/
@java.lang.Override
public wechat.protobuf.SKBuiltinString_OrBuilder getKeyBufOrBuilder() {
return keyBuf_ == null ? wechat.protobuf.SKBuiltinString_.getDefaultInstance() : keyBuf_;
}
public static final int SCENE_FIELD_NUMBER = 4;
private int scene_;
/**
* optional uint32 scene = 4;
* @return Whether the scene field is set.
*/
@java.lang.Override
public boolean hasScene() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional uint32 scene = 4;
* @return The scene.
*/
@java.lang.Override
public int getScene() {
return scene_;
}
public static final int DEVICETYPE_FIELD_NUMBER = 5;
private volatile java.lang.Object deviceType_;
/**
* optional string deviceType = 5;
* @return Whether the deviceType field is set.
*/
@java.lang.Override
public boolean hasDeviceType() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* optional string deviceType = 5;
* @return The deviceType.
*/
@java.lang.Override
public java.lang.String getDeviceType() {
java.lang.Object ref = deviceType_;
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()) {
deviceType_ = s;
}
return s;
}
}
/**
* optional string deviceType = 5;
* @return The bytes for deviceType.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDeviceTypeBytes() {
java.lang.Object ref = deviceType_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
deviceType_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SYNCMSGDIGEST_FIELD_NUMBER = 6;
private int syncMsgDigest_;
/**
* optional uint32 syncMsgDigest = 6;
* @return Whether the syncMsgDigest field is set.
*/
@java.lang.Override
public boolean hasSyncMsgDigest() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
* optional uint32 syncMsgDigest = 6;
* @return The syncMsgDigest.
*/
@java.lang.Override
public int getSyncMsgDigest() {
return syncMsgDigest_;
}
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, getOplog());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeUInt32(2, selector_);
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeMessage(3, getKeyBuf());
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeUInt32(4, scene_);
}
if (((bitField0_ & 0x00000010) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, deviceType_);
}
if (((bitField0_ & 0x00000020) != 0)) {
output.writeUInt32(6, syncMsgDigest_);
}
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, getOplog());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(2, selector_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getKeyBuf());
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(4, scene_);
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, deviceType_);
}
if (((bitField0_ & 0x00000020) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(6, syncMsgDigest_);
}
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.NewSyncRequest)) {
return super.equals(obj);
}
wechat.protobuf.NewSyncRequest other = (wechat.protobuf.NewSyncRequest) obj;
if (hasOplog() != other.hasOplog()) return false;
if (hasOplog()) {
if (!getOplog()
.equals(other.getOplog())) return false;
}
if (hasSelector() != other.hasSelector()) return false;
if (hasSelector()) {
if (getSelector()
!= other.getSelector()) return false;
}
if (hasKeyBuf() != other.hasKeyBuf()) return false;
if (hasKeyBuf()) {
if (!getKeyBuf()
.equals(other.getKeyBuf())) return false;
}
if (hasScene() != other.hasScene()) return false;
if (hasScene()) {
if (getScene()
!= other.getScene()) return false;
}
if (hasDeviceType() != other.hasDeviceType()) return false;
if (hasDeviceType()) {
if (!getDeviceType()
.equals(other.getDeviceType())) return false;
}
if (hasSyncMsgDigest() != other.hasSyncMsgDigest()) return false;
if (hasSyncMsgDigest()) {
if (getSyncMsgDigest()
!= other.getSyncMsgDigest()) 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 (hasOplog()) {
hash = (37 * hash) + OPLOG_FIELD_NUMBER;
hash = (53 * hash) + getOplog().hashCode();
}
if (hasSelector()) {
hash = (37 * hash) + SELECTOR_FIELD_NUMBER;
hash = (53 * hash) + getSelector();
}
if (hasKeyBuf()) {
hash = (37 * hash) + KEYBUF_FIELD_NUMBER;
hash = (53 * hash) + getKeyBuf().hashCode();
}
if (hasScene()) {
hash = (37 * hash) + SCENE_FIELD_NUMBER;
hash = (53 * hash) + getScene();
}
if (hasDeviceType()) {
hash = (37 * hash) + DEVICETYPE_FIELD_NUMBER;
hash = (53 * hash) + getDeviceType().hashCode();
}
if (hasSyncMsgDigest()) {
hash = (37 * hash) + SYNCMSGDIGEST_FIELD_NUMBER;
hash = (53 * hash) + getSyncMsgDigest();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static wechat.protobuf.NewSyncRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static wechat.protobuf.NewSyncRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static wechat.protobuf.NewSyncRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static wechat.protobuf.NewSyncRequest 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.NewSyncRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static wechat.protobuf.NewSyncRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static wechat.protobuf.NewSyncRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static wechat.protobuf.NewSyncRequest 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.NewSyncRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static wechat.protobuf.NewSyncRequest 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.NewSyncRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static wechat.protobuf.NewSyncRequest 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.NewSyncRequest 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.NewSyncRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:wechat_proto.NewSyncRequest)
wechat.protobuf.NewSyncRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return wechat.protobuf.Wechat.internal_static_wechat_proto_NewSyncRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return wechat.protobuf.Wechat.internal_static_wechat_proto_NewSyncRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
wechat.protobuf.NewSyncRequest.class, wechat.protobuf.NewSyncRequest.Builder.class);
}
// Construct using wechat.protobuf.NewSyncRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getOplogFieldBuilder();
getKeyBufFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (oplogBuilder_ == null) {
oplog_ = null;
} else {
oplogBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
selector_ = 0;
bitField0_ = (bitField0_ & ~0x00000002);
if (keyBufBuilder_ == null) {
keyBuf_ = null;
} else {
keyBufBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
scene_ = 0;
bitField0_ = (bitField0_ & ~0x00000008);
deviceType_ = "";
bitField0_ = (bitField0_ & ~0x00000010);
syncMsgDigest_ = 0;
bitField0_ = (bitField0_ & ~0x00000020);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return wechat.protobuf.Wechat.internal_static_wechat_proto_NewSyncRequest_descriptor;
}
@java.lang.Override
public wechat.protobuf.NewSyncRequest getDefaultInstanceForType() {
return wechat.protobuf.NewSyncRequest.getDefaultInstance();
}
@java.lang.Override
public wechat.protobuf.NewSyncRequest build() {
wechat.protobuf.NewSyncRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public wechat.protobuf.NewSyncRequest buildPartial() {
wechat.protobuf.NewSyncRequest result = new wechat.protobuf.NewSyncRequest(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
if (oplogBuilder_ == null) {
result.oplog_ = oplog_;
} else {
result.oplog_ = oplogBuilder_.build();
}
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.selector_ = selector_;
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
if (keyBufBuilder_ == null) {
result.keyBuf_ = keyBuf_;
} else {
result.keyBuf_ = keyBufBuilder_.build();
}
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.scene_ = scene_;
to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
to_bitField0_ |= 0x00000010;
}
result.deviceType_ = deviceType_;
if (((from_bitField0_ & 0x00000020) != 0)) {
result.syncMsgDigest_ = syncMsgDigest_;
to_bitField0_ |= 0x00000020;
}
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.NewSyncRequest) {
return mergeFrom((wechat.protobuf.NewSyncRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(wechat.protobuf.NewSyncRequest other) {
if (other == wechat.protobuf.NewSyncRequest.getDefaultInstance()) return this;
if (other.hasOplog()) {
mergeOplog(other.getOplog());
}
if (other.hasSelector()) {
setSelector(other.getSelector());
}
if (other.hasKeyBuf()) {
mergeKeyBuf(other.getKeyBuf());
}
if (other.hasScene()) {
setScene(other.getScene());
}
if (other.hasDeviceType()) {
bitField0_ |= 0x00000010;
deviceType_ = other.deviceType_;
onChanged();
}
if (other.hasSyncMsgDigest()) {
setSyncMsgDigest(other.getSyncMsgDigest());
}
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.NewSyncRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (wechat.protobuf.NewSyncRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private wechat.protobuf.CmdList oplog_;
private com.google.protobuf.SingleFieldBuilderV3<
wechat.protobuf.CmdList, wechat.protobuf.CmdList.Builder, wechat.protobuf.CmdListOrBuilder> oplogBuilder_;
/**
* optional .wechat_proto.CmdList oplog = 1;
* @return Whether the oplog field is set.
*/
public boolean hasOplog() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional .wechat_proto.CmdList oplog = 1;
* @return The oplog.
*/
public wechat.protobuf.CmdList getOplog() {
if (oplogBuilder_ == null) {
return oplog_ == null ? wechat.protobuf.CmdList.getDefaultInstance() : oplog_;
} else {
return oplogBuilder_.getMessage();
}
}
/**
* optional .wechat_proto.CmdList oplog = 1;
*/
public Builder setOplog(wechat.protobuf.CmdList value) {
if (oplogBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
oplog_ = value;
onChanged();
} else {
oplogBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .wechat_proto.CmdList oplog = 1;
*/
public Builder setOplog(
wechat.protobuf.CmdList.Builder builderForValue) {
if (oplogBuilder_ == null) {
oplog_ = builderForValue.build();
onChanged();
} else {
oplogBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .wechat_proto.CmdList oplog = 1;
*/
public Builder mergeOplog(wechat.protobuf.CmdList value) {
if (oplogBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
oplog_ != null &&
oplog_ != wechat.protobuf.CmdList.getDefaultInstance()) {
oplog_ =
wechat.protobuf.CmdList.newBuilder(oplog_).mergeFrom(value).buildPartial();
} else {
oplog_ = value;
}
onChanged();
} else {
oplogBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .wechat_proto.CmdList oplog = 1;
*/
public Builder clearOplog() {
if (oplogBuilder_ == null) {
oplog_ = null;
onChanged();
} else {
oplogBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
/**
* optional .wechat_proto.CmdList oplog = 1;
*/
public wechat.protobuf.CmdList.Builder getOplogBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getOplogFieldBuilder().getBuilder();
}
/**
* optional .wechat_proto.CmdList oplog = 1;
*/
public wechat.protobuf.CmdListOrBuilder getOplogOrBuilder() {
if (oplogBuilder_ != null) {
return oplogBuilder_.getMessageOrBuilder();
} else {
return oplog_ == null ?
wechat.protobuf.CmdList.getDefaultInstance() : oplog_;
}
}
/**
* optional .wechat_proto.CmdList oplog = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
wechat.protobuf.CmdList, wechat.protobuf.CmdList.Builder, wechat.protobuf.CmdListOrBuilder>
getOplogFieldBuilder() {
if (oplogBuilder_ == null) {
oplogBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
wechat.protobuf.CmdList, wechat.protobuf.CmdList.Builder, wechat.protobuf.CmdListOrBuilder>(
getOplog(),
getParentForChildren(),
isClean());
oplog_ = null;
}
return oplogBuilder_;
}
private int selector_ ;
/**
* optional uint32 selector = 2;
* @return Whether the selector field is set.
*/
@java.lang.Override
public boolean hasSelector() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional uint32 selector = 2;
* @return The selector.
*/
@java.lang.Override
public int getSelector() {
return selector_;
}
/**
* optional uint32 selector = 2;
* @param value The selector to set.
* @return This builder for chaining.
*/
public Builder setSelector(int value) {
bitField0_ |= 0x00000002;
selector_ = value;
onChanged();
return this;
}
/**
* optional uint32 selector = 2;
* @return This builder for chaining.
*/
public Builder clearSelector() {
bitField0_ = (bitField0_ & ~0x00000002);
selector_ = 0;
onChanged();
return this;
}
private wechat.protobuf.SKBuiltinString_ keyBuf_;
private com.google.protobuf.SingleFieldBuilderV3<
wechat.protobuf.SKBuiltinString_, wechat.protobuf.SKBuiltinString_.Builder, wechat.protobuf.SKBuiltinString_OrBuilder> keyBufBuilder_;
/**
* optional .wechat_proto.SKBuiltinString_ keyBuf = 3;
* @return Whether the keyBuf field is set.
*/
public boolean hasKeyBuf() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional .wechat_proto.SKBuiltinString_ keyBuf = 3;
* @return The keyBuf.
*/
public wechat.protobuf.SKBuiltinString_ getKeyBuf() {
if (keyBufBuilder_ == null) {
return keyBuf_ == null ? wechat.protobuf.SKBuiltinString_.getDefaultInstance() : keyBuf_;
} else {
return keyBufBuilder_.getMessage();
}
}
/**
* optional .wechat_proto.SKBuiltinString_ keyBuf = 3;
*/
public Builder setKeyBuf(wechat.protobuf.SKBuiltinString_ value) {
if (keyBufBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
keyBuf_ = value;
onChanged();
} else {
keyBufBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
return this;
}
/**
* optional .wechat_proto.SKBuiltinString_ keyBuf = 3;
*/
public Builder setKeyBuf(
wechat.protobuf.SKBuiltinString_.Builder builderForValue) {
if (keyBufBuilder_ == null) {
keyBuf_ = builderForValue.build();
onChanged();
} else {
keyBufBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
return this;
}
/**
* optional .wechat_proto.SKBuiltinString_ keyBuf = 3;
*/
public Builder mergeKeyBuf(wechat.protobuf.SKBuiltinString_ value) {
if (keyBufBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0) &&
keyBuf_ != null &&
keyBuf_ != wechat.protobuf.SKBuiltinString_.getDefaultInstance()) {
keyBuf_ =
wechat.protobuf.SKBuiltinString_.newBuilder(keyBuf_).mergeFrom(value).buildPartial();
} else {
keyBuf_ = value;
}
onChanged();
} else {
keyBufBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000004;
return this;
}
/**
* optional .wechat_proto.SKBuiltinString_ keyBuf = 3;
*/
public Builder clearKeyBuf() {
if (keyBufBuilder_ == null) {
keyBuf_ = null;
onChanged();
} else {
keyBufBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
/**
* optional .wechat_proto.SKBuiltinString_ keyBuf = 3;
*/
public wechat.protobuf.SKBuiltinString_.Builder getKeyBufBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getKeyBufFieldBuilder().getBuilder();
}
/**
* optional .wechat_proto.SKBuiltinString_ keyBuf = 3;
*/
public wechat.protobuf.SKBuiltinString_OrBuilder getKeyBufOrBuilder() {
if (keyBufBuilder_ != null) {
return keyBufBuilder_.getMessageOrBuilder();
} else {
return keyBuf_ == null ?
wechat.protobuf.SKBuiltinString_.getDefaultInstance() : keyBuf_;
}
}
/**
* optional .wechat_proto.SKBuiltinString_ keyBuf = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
wechat.protobuf.SKBuiltinString_, wechat.protobuf.SKBuiltinString_.Builder, wechat.protobuf.SKBuiltinString_OrBuilder>
getKeyBufFieldBuilder() {
if (keyBufBuilder_ == null) {
keyBufBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
wechat.protobuf.SKBuiltinString_, wechat.protobuf.SKBuiltinString_.Builder, wechat.protobuf.SKBuiltinString_OrBuilder>(
getKeyBuf(),
getParentForChildren(),
isClean());
keyBuf_ = null;
}
return keyBufBuilder_;
}
private int scene_ ;
/**
* optional uint32 scene = 4;
* @return Whether the scene field is set.
*/
@java.lang.Override
public boolean hasScene() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional uint32 scene = 4;
* @return The scene.
*/
@java.lang.Override
public int getScene() {
return scene_;
}
/**
* optional uint32 scene = 4;
* @param value The scene to set.
* @return This builder for chaining.
*/
public Builder setScene(int value) {
bitField0_ |= 0x00000008;
scene_ = value;
onChanged();
return this;
}
/**
* optional uint32 scene = 4;
* @return This builder for chaining.
*/
public Builder clearScene() {
bitField0_ = (bitField0_ & ~0x00000008);
scene_ = 0;
onChanged();
return this;
}
private java.lang.Object deviceType_ = "";
/**
* optional string deviceType = 5;
* @return Whether the deviceType field is set.
*/
public boolean hasDeviceType() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* optional string deviceType = 5;
* @return The deviceType.
*/
public java.lang.String getDeviceType() {
java.lang.Object ref = deviceType_;
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()) {
deviceType_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string deviceType = 5;
* @return The bytes for deviceType.
*/
public com.google.protobuf.ByteString
getDeviceTypeBytes() {
java.lang.Object ref = deviceType_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
deviceType_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string deviceType = 5;
* @param value The deviceType to set.
* @return This builder for chaining.
*/
public Builder setDeviceType(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000010;
deviceType_ = value;
onChanged();
return this;
}
/**
* optional string deviceType = 5;
* @return This builder for chaining.
*/
public Builder clearDeviceType() {
bitField0_ = (bitField0_ & ~0x00000010);
deviceType_ = getDefaultInstance().getDeviceType();
onChanged();
return this;
}
/**
* optional string deviceType = 5;
* @param value The bytes for deviceType to set.
* @return This builder for chaining.
*/
public Builder setDeviceTypeBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000010;
deviceType_ = value;
onChanged();
return this;
}
private int syncMsgDigest_ ;
/**
* optional uint32 syncMsgDigest = 6;
* @return Whether the syncMsgDigest field is set.
*/
@java.lang.Override
public boolean hasSyncMsgDigest() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
* optional uint32 syncMsgDigest = 6;
* @return The syncMsgDigest.
*/
@java.lang.Override
public int getSyncMsgDigest() {
return syncMsgDigest_;
}
/**
* optional uint32 syncMsgDigest = 6;
* @param value The syncMsgDigest to set.
* @return This builder for chaining.
*/
public Builder setSyncMsgDigest(int value) {
bitField0_ |= 0x00000020;
syncMsgDigest_ = value;
onChanged();
return this;
}
/**
* optional uint32 syncMsgDigest = 6;
* @return This builder for chaining.
*/
public Builder clearSyncMsgDigest() {
bitField0_ = (bitField0_ & ~0x00000020);
syncMsgDigest_ = 0;
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.NewSyncRequest)
}
// @@protoc_insertion_point(class_scope:wechat_proto.NewSyncRequest)
private static final wechat.protobuf.NewSyncRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new wechat.protobuf.NewSyncRequest();
}
public static wechat.protobuf.NewSyncRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public NewSyncRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new NewSyncRequest(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.NewSyncRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy