
wechat.protobuf.HeartBeatRequest Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: wechat.proto
package wechat.protobuf;
/**
* Protobuf type {@code wechat_proto.HeartBeatRequest}
*/
public final class HeartBeatRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:wechat_proto.HeartBeatRequest)
HeartBeatRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use HeartBeatRequest.newBuilder() to construct.
private HeartBeatRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private HeartBeatRequest() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new HeartBeatRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private HeartBeatRequest(
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 16: {
bitField0_ |= 0x00000002;
timeStamp_ = 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 34: {
wechat.protobuf.SKBuiltinString_.Builder subBuilder = null;
if (((bitField0_ & 0x00000008) != 0)) {
subBuilder = blueToothBroadCastContent_.toBuilder();
}
blueToothBroadCastContent_ = input.readMessage(wechat.protobuf.SKBuiltinString_.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(blueToothBroadCastContent_);
blueToothBroadCastContent_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000008;
break;
}
case 40: {
bitField0_ |= 0x00000010;
scene_ = 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_HeartBeatRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return wechat.protobuf.Wechat.internal_static_wechat_proto_HeartBeatRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
wechat.protobuf.HeartBeatRequest.class, wechat.protobuf.HeartBeatRequest.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 TIMESTAMP_FIELD_NUMBER = 2;
private int timeStamp_;
/**
* optional uint32 timeStamp = 2;
* @return Whether the timeStamp field is set.
*/
@java.lang.Override
public boolean hasTimeStamp() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional uint32 timeStamp = 2;
* @return The timeStamp.
*/
@java.lang.Override
public int getTimeStamp() {
return timeStamp_;
}
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 BLUETOOTHBROADCASTCONTENT_FIELD_NUMBER = 4;
private wechat.protobuf.SKBuiltinString_ blueToothBroadCastContent_;
/**
* optional .wechat_proto.SKBuiltinString_ blueToothBroadCastContent = 4;
* @return Whether the blueToothBroadCastContent field is set.
*/
@java.lang.Override
public boolean hasBlueToothBroadCastContent() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional .wechat_proto.SKBuiltinString_ blueToothBroadCastContent = 4;
* @return The blueToothBroadCastContent.
*/
@java.lang.Override
public wechat.protobuf.SKBuiltinString_ getBlueToothBroadCastContent() {
return blueToothBroadCastContent_ == null ? wechat.protobuf.SKBuiltinString_.getDefaultInstance() : blueToothBroadCastContent_;
}
/**
* optional .wechat_proto.SKBuiltinString_ blueToothBroadCastContent = 4;
*/
@java.lang.Override
public wechat.protobuf.SKBuiltinString_OrBuilder getBlueToothBroadCastContentOrBuilder() {
return blueToothBroadCastContent_ == null ? wechat.protobuf.SKBuiltinString_.getDefaultInstance() : blueToothBroadCastContent_;
}
public static final int SCENE_FIELD_NUMBER = 5;
private int scene_;
/**
* optional uint32 scene = 5;
* @return Whether the scene field is set.
*/
@java.lang.Override
public boolean hasScene() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* optional uint32 scene = 5;
* @return The scene.
*/
@java.lang.Override
public int getScene() {
return scene_;
}
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)) {
output.writeUInt32(2, timeStamp_);
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeMessage(3, getKeyBuf());
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeMessage(4, getBlueToothBroadCastContent());
}
if (((bitField0_ & 0x00000010) != 0)) {
output.writeUInt32(5, scene_);
}
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.CodedOutputStream
.computeUInt32Size(2, timeStamp_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getKeyBuf());
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getBlueToothBroadCastContent());
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(5, scene_);
}
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.HeartBeatRequest)) {
return super.equals(obj);
}
wechat.protobuf.HeartBeatRequest other = (wechat.protobuf.HeartBeatRequest) obj;
if (hasBaseRequest() != other.hasBaseRequest()) return false;
if (hasBaseRequest()) {
if (!getBaseRequest()
.equals(other.getBaseRequest())) return false;
}
if (hasTimeStamp() != other.hasTimeStamp()) return false;
if (hasTimeStamp()) {
if (getTimeStamp()
!= other.getTimeStamp()) return false;
}
if (hasKeyBuf() != other.hasKeyBuf()) return false;
if (hasKeyBuf()) {
if (!getKeyBuf()
.equals(other.getKeyBuf())) return false;
}
if (hasBlueToothBroadCastContent() != other.hasBlueToothBroadCastContent()) return false;
if (hasBlueToothBroadCastContent()) {
if (!getBlueToothBroadCastContent()
.equals(other.getBlueToothBroadCastContent())) return false;
}
if (hasScene() != other.hasScene()) return false;
if (hasScene()) {
if (getScene()
!= other.getScene()) 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 (hasTimeStamp()) {
hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER;
hash = (53 * hash) + getTimeStamp();
}
if (hasKeyBuf()) {
hash = (37 * hash) + KEYBUF_FIELD_NUMBER;
hash = (53 * hash) + getKeyBuf().hashCode();
}
if (hasBlueToothBroadCastContent()) {
hash = (37 * hash) + BLUETOOTHBROADCASTCONTENT_FIELD_NUMBER;
hash = (53 * hash) + getBlueToothBroadCastContent().hashCode();
}
if (hasScene()) {
hash = (37 * hash) + SCENE_FIELD_NUMBER;
hash = (53 * hash) + getScene();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static wechat.protobuf.HeartBeatRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static wechat.protobuf.HeartBeatRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static wechat.protobuf.HeartBeatRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static wechat.protobuf.HeartBeatRequest 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.HeartBeatRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static wechat.protobuf.HeartBeatRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static wechat.protobuf.HeartBeatRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static wechat.protobuf.HeartBeatRequest 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.HeartBeatRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static wechat.protobuf.HeartBeatRequest 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.HeartBeatRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static wechat.protobuf.HeartBeatRequest 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.HeartBeatRequest 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.HeartBeatRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:wechat_proto.HeartBeatRequest)
wechat.protobuf.HeartBeatRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return wechat.protobuf.Wechat.internal_static_wechat_proto_HeartBeatRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return wechat.protobuf.Wechat.internal_static_wechat_proto_HeartBeatRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
wechat.protobuf.HeartBeatRequest.class, wechat.protobuf.HeartBeatRequest.Builder.class);
}
// Construct using wechat.protobuf.HeartBeatRequest.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();
getKeyBufFieldBuilder();
getBlueToothBroadCastContentFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (baseRequestBuilder_ == null) {
baseRequest_ = null;
} else {
baseRequestBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
timeStamp_ = 0;
bitField0_ = (bitField0_ & ~0x00000002);
if (keyBufBuilder_ == null) {
keyBuf_ = null;
} else {
keyBufBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
if (blueToothBroadCastContentBuilder_ == null) {
blueToothBroadCastContent_ = null;
} else {
blueToothBroadCastContentBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000008);
scene_ = 0;
bitField0_ = (bitField0_ & ~0x00000010);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return wechat.protobuf.Wechat.internal_static_wechat_proto_HeartBeatRequest_descriptor;
}
@java.lang.Override
public wechat.protobuf.HeartBeatRequest getDefaultInstanceForType() {
return wechat.protobuf.HeartBeatRequest.getDefaultInstance();
}
@java.lang.Override
public wechat.protobuf.HeartBeatRequest build() {
wechat.protobuf.HeartBeatRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public wechat.protobuf.HeartBeatRequest buildPartial() {
wechat.protobuf.HeartBeatRequest result = new wechat.protobuf.HeartBeatRequest(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)) {
result.timeStamp_ = timeStamp_;
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)) {
if (blueToothBroadCastContentBuilder_ == null) {
result.blueToothBroadCastContent_ = blueToothBroadCastContent_;
} else {
result.blueToothBroadCastContent_ = blueToothBroadCastContentBuilder_.build();
}
to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.scene_ = scene_;
to_bitField0_ |= 0x00000010;
}
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.HeartBeatRequest) {
return mergeFrom((wechat.protobuf.HeartBeatRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(wechat.protobuf.HeartBeatRequest other) {
if (other == wechat.protobuf.HeartBeatRequest.getDefaultInstance()) return this;
if (other.hasBaseRequest()) {
mergeBaseRequest(other.getBaseRequest());
}
if (other.hasTimeStamp()) {
setTimeStamp(other.getTimeStamp());
}
if (other.hasKeyBuf()) {
mergeKeyBuf(other.getKeyBuf());
}
if (other.hasBlueToothBroadCastContent()) {
mergeBlueToothBroadCastContent(other.getBlueToothBroadCastContent());
}
if (other.hasScene()) {
setScene(other.getScene());
}
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.HeartBeatRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (wechat.protobuf.HeartBeatRequest) 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 int timeStamp_ ;
/**
* optional uint32 timeStamp = 2;
* @return Whether the timeStamp field is set.
*/
@java.lang.Override
public boolean hasTimeStamp() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional uint32 timeStamp = 2;
* @return The timeStamp.
*/
@java.lang.Override
public int getTimeStamp() {
return timeStamp_;
}
/**
* optional uint32 timeStamp = 2;
* @param value The timeStamp to set.
* @return This builder for chaining.
*/
public Builder setTimeStamp(int value) {
bitField0_ |= 0x00000002;
timeStamp_ = value;
onChanged();
return this;
}
/**
* optional uint32 timeStamp = 2;
* @return This builder for chaining.
*/
public Builder clearTimeStamp() {
bitField0_ = (bitField0_ & ~0x00000002);
timeStamp_ = 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 wechat.protobuf.SKBuiltinString_ blueToothBroadCastContent_;
private com.google.protobuf.SingleFieldBuilderV3<
wechat.protobuf.SKBuiltinString_, wechat.protobuf.SKBuiltinString_.Builder, wechat.protobuf.SKBuiltinString_OrBuilder> blueToothBroadCastContentBuilder_;
/**
* optional .wechat_proto.SKBuiltinString_ blueToothBroadCastContent = 4;
* @return Whether the blueToothBroadCastContent field is set.
*/
public boolean hasBlueToothBroadCastContent() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional .wechat_proto.SKBuiltinString_ blueToothBroadCastContent = 4;
* @return The blueToothBroadCastContent.
*/
public wechat.protobuf.SKBuiltinString_ getBlueToothBroadCastContent() {
if (blueToothBroadCastContentBuilder_ == null) {
return blueToothBroadCastContent_ == null ? wechat.protobuf.SKBuiltinString_.getDefaultInstance() : blueToothBroadCastContent_;
} else {
return blueToothBroadCastContentBuilder_.getMessage();
}
}
/**
* optional .wechat_proto.SKBuiltinString_ blueToothBroadCastContent = 4;
*/
public Builder setBlueToothBroadCastContent(wechat.protobuf.SKBuiltinString_ value) {
if (blueToothBroadCastContentBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
blueToothBroadCastContent_ = value;
onChanged();
} else {
blueToothBroadCastContentBuilder_.setMessage(value);
}
bitField0_ |= 0x00000008;
return this;
}
/**
* optional .wechat_proto.SKBuiltinString_ blueToothBroadCastContent = 4;
*/
public Builder setBlueToothBroadCastContent(
wechat.protobuf.SKBuiltinString_.Builder builderForValue) {
if (blueToothBroadCastContentBuilder_ == null) {
blueToothBroadCastContent_ = builderForValue.build();
onChanged();
} else {
blueToothBroadCastContentBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000008;
return this;
}
/**
* optional .wechat_proto.SKBuiltinString_ blueToothBroadCastContent = 4;
*/
public Builder mergeBlueToothBroadCastContent(wechat.protobuf.SKBuiltinString_ value) {
if (blueToothBroadCastContentBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0) &&
blueToothBroadCastContent_ != null &&
blueToothBroadCastContent_ != wechat.protobuf.SKBuiltinString_.getDefaultInstance()) {
blueToothBroadCastContent_ =
wechat.protobuf.SKBuiltinString_.newBuilder(blueToothBroadCastContent_).mergeFrom(value).buildPartial();
} else {
blueToothBroadCastContent_ = value;
}
onChanged();
} else {
blueToothBroadCastContentBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000008;
return this;
}
/**
* optional .wechat_proto.SKBuiltinString_ blueToothBroadCastContent = 4;
*/
public Builder clearBlueToothBroadCastContent() {
if (blueToothBroadCastContentBuilder_ == null) {
blueToothBroadCastContent_ = null;
onChanged();
} else {
blueToothBroadCastContentBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
/**
* optional .wechat_proto.SKBuiltinString_ blueToothBroadCastContent = 4;
*/
public wechat.protobuf.SKBuiltinString_.Builder getBlueToothBroadCastContentBuilder() {
bitField0_ |= 0x00000008;
onChanged();
return getBlueToothBroadCastContentFieldBuilder().getBuilder();
}
/**
* optional .wechat_proto.SKBuiltinString_ blueToothBroadCastContent = 4;
*/
public wechat.protobuf.SKBuiltinString_OrBuilder getBlueToothBroadCastContentOrBuilder() {
if (blueToothBroadCastContentBuilder_ != null) {
return blueToothBroadCastContentBuilder_.getMessageOrBuilder();
} else {
return blueToothBroadCastContent_ == null ?
wechat.protobuf.SKBuiltinString_.getDefaultInstance() : blueToothBroadCastContent_;
}
}
/**
* optional .wechat_proto.SKBuiltinString_ blueToothBroadCastContent = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
wechat.protobuf.SKBuiltinString_, wechat.protobuf.SKBuiltinString_.Builder, wechat.protobuf.SKBuiltinString_OrBuilder>
getBlueToothBroadCastContentFieldBuilder() {
if (blueToothBroadCastContentBuilder_ == null) {
blueToothBroadCastContentBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
wechat.protobuf.SKBuiltinString_, wechat.protobuf.SKBuiltinString_.Builder, wechat.protobuf.SKBuiltinString_OrBuilder>(
getBlueToothBroadCastContent(),
getParentForChildren(),
isClean());
blueToothBroadCastContent_ = null;
}
return blueToothBroadCastContentBuilder_;
}
private int scene_ ;
/**
* optional uint32 scene = 5;
* @return Whether the scene field is set.
*/
@java.lang.Override
public boolean hasScene() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* optional uint32 scene = 5;
* @return The scene.
*/
@java.lang.Override
public int getScene() {
return scene_;
}
/**
* optional uint32 scene = 5;
* @param value The scene to set.
* @return This builder for chaining.
*/
public Builder setScene(int value) {
bitField0_ |= 0x00000010;
scene_ = value;
onChanged();
return this;
}
/**
* optional uint32 scene = 5;
* @return This builder for chaining.
*/
public Builder clearScene() {
bitField0_ = (bitField0_ & ~0x00000010);
scene_ = 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.HeartBeatRequest)
}
// @@protoc_insertion_point(class_scope:wechat_proto.HeartBeatRequest)
private static final wechat.protobuf.HeartBeatRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new wechat.protobuf.HeartBeatRequest();
}
public static wechat.protobuf.HeartBeatRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public HeartBeatRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new HeartBeatRequest(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.HeartBeatRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy