
wechat.protobuf.GetVideoRequest Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: wechat.proto
package wechat.protobuf;
/**
* Protobuf type {@code wechat_proto.GetVideoRequest}
*/
public final class GetVideoRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:wechat_proto.GetVideoRequest)
GetVideoRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use GetVideoRequest.newBuilder() to construct.
private GetVideoRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GetVideoRequest() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new GetVideoRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private GetVideoRequest(
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;
msgId_ = input.readUInt32();
break;
}
case 24: {
bitField0_ |= 0x00000004;
totalLength_ = input.readUInt32();
break;
}
case 32: {
bitField0_ |= 0x00000008;
startPos_ = input.readUInt32();
break;
}
case 40: {
bitField0_ |= 0x00000010;
networkEnv_ = input.readUInt32();
break;
}
case 48: {
bitField0_ |= 0x00000020;
mxPackSize_ = input.readUInt32();
break;
}
case 56: {
bitField0_ |= 0x00000040;
newMsgId_ = input.readUInt64();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return wechat.protobuf.Wechat.internal_static_wechat_proto_GetVideoRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return wechat.protobuf.Wechat.internal_static_wechat_proto_GetVideoRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
wechat.protobuf.GetVideoRequest.class, wechat.protobuf.GetVideoRequest.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 MSGID_FIELD_NUMBER = 2;
private int msgId_;
/**
* optional uint32 msgId = 2;
* @return Whether the msgId field is set.
*/
@java.lang.Override
public boolean hasMsgId() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional uint32 msgId = 2;
* @return The msgId.
*/
@java.lang.Override
public int getMsgId() {
return msgId_;
}
public static final int TOTALLENGTH_FIELD_NUMBER = 3;
private int totalLength_;
/**
* optional uint32 totalLength = 3;
* @return Whether the totalLength field is set.
*/
@java.lang.Override
public boolean hasTotalLength() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional uint32 totalLength = 3;
* @return The totalLength.
*/
@java.lang.Override
public int getTotalLength() {
return totalLength_;
}
public static final int STARTPOS_FIELD_NUMBER = 4;
private int startPos_;
/**
* optional uint32 StartPos = 4;
* @return Whether the startPos field is set.
*/
@java.lang.Override
public boolean hasStartPos() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional uint32 StartPos = 4;
* @return The startPos.
*/
@java.lang.Override
public int getStartPos() {
return startPos_;
}
public static final int NETWORKENV_FIELD_NUMBER = 5;
private int networkEnv_;
/**
* optional uint32 NetworkEnv = 5;
* @return Whether the networkEnv field is set.
*/
@java.lang.Override
public boolean hasNetworkEnv() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* optional uint32 NetworkEnv = 5;
* @return The networkEnv.
*/
@java.lang.Override
public int getNetworkEnv() {
return networkEnv_;
}
public static final int MXPACKSIZE_FIELD_NUMBER = 6;
private int mxPackSize_;
/**
* optional uint32 MxPackSize = 6;
* @return Whether the mxPackSize field is set.
*/
@java.lang.Override
public boolean hasMxPackSize() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
* optional uint32 MxPackSize = 6;
* @return The mxPackSize.
*/
@java.lang.Override
public int getMxPackSize() {
return mxPackSize_;
}
public static final int NEWMSGID_FIELD_NUMBER = 7;
private long newMsgId_;
/**
* optional uint64 NewMsgId = 7;
* @return Whether the newMsgId field is set.
*/
@java.lang.Override
public boolean hasNewMsgId() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
* optional uint64 NewMsgId = 7;
* @return The newMsgId.
*/
@java.lang.Override
public long getNewMsgId() {
return newMsgId_;
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getBaseRequest());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeUInt32(2, msgId_);
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeUInt32(3, totalLength_);
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeUInt32(4, startPos_);
}
if (((bitField0_ & 0x00000010) != 0)) {
output.writeUInt32(5, networkEnv_);
}
if (((bitField0_ & 0x00000020) != 0)) {
output.writeUInt32(6, mxPackSize_);
}
if (((bitField0_ & 0x00000040) != 0)) {
output.writeUInt64(7, newMsgId_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getBaseRequest());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(2, msgId_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(3, totalLength_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(4, startPos_);
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(5, networkEnv_);
}
if (((bitField0_ & 0x00000020) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(6, mxPackSize_);
}
if (((bitField0_ & 0x00000040) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(7, newMsgId_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof wechat.protobuf.GetVideoRequest)) {
return super.equals(obj);
}
wechat.protobuf.GetVideoRequest other = (wechat.protobuf.GetVideoRequest) obj;
if (hasBaseRequest() != other.hasBaseRequest()) return false;
if (hasBaseRequest()) {
if (!getBaseRequest()
.equals(other.getBaseRequest())) return false;
}
if (hasMsgId() != other.hasMsgId()) return false;
if (hasMsgId()) {
if (getMsgId()
!= other.getMsgId()) return false;
}
if (hasTotalLength() != other.hasTotalLength()) return false;
if (hasTotalLength()) {
if (getTotalLength()
!= other.getTotalLength()) return false;
}
if (hasStartPos() != other.hasStartPos()) return false;
if (hasStartPos()) {
if (getStartPos()
!= other.getStartPos()) return false;
}
if (hasNetworkEnv() != other.hasNetworkEnv()) return false;
if (hasNetworkEnv()) {
if (getNetworkEnv()
!= other.getNetworkEnv()) return false;
}
if (hasMxPackSize() != other.hasMxPackSize()) return false;
if (hasMxPackSize()) {
if (getMxPackSize()
!= other.getMxPackSize()) return false;
}
if (hasNewMsgId() != other.hasNewMsgId()) return false;
if (hasNewMsgId()) {
if (getNewMsgId()
!= other.getNewMsgId()) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasBaseRequest()) {
hash = (37 * hash) + BASEREQUEST_FIELD_NUMBER;
hash = (53 * hash) + getBaseRequest().hashCode();
}
if (hasMsgId()) {
hash = (37 * hash) + MSGID_FIELD_NUMBER;
hash = (53 * hash) + getMsgId();
}
if (hasTotalLength()) {
hash = (37 * hash) + TOTALLENGTH_FIELD_NUMBER;
hash = (53 * hash) + getTotalLength();
}
if (hasStartPos()) {
hash = (37 * hash) + STARTPOS_FIELD_NUMBER;
hash = (53 * hash) + getStartPos();
}
if (hasNetworkEnv()) {
hash = (37 * hash) + NETWORKENV_FIELD_NUMBER;
hash = (53 * hash) + getNetworkEnv();
}
if (hasMxPackSize()) {
hash = (37 * hash) + MXPACKSIZE_FIELD_NUMBER;
hash = (53 * hash) + getMxPackSize();
}
if (hasNewMsgId()) {
hash = (37 * hash) + NEWMSGID_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
getNewMsgId());
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static wechat.protobuf.GetVideoRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static wechat.protobuf.GetVideoRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static wechat.protobuf.GetVideoRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static wechat.protobuf.GetVideoRequest 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.GetVideoRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static wechat.protobuf.GetVideoRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static wechat.protobuf.GetVideoRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static wechat.protobuf.GetVideoRequest 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.GetVideoRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static wechat.protobuf.GetVideoRequest 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.GetVideoRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static wechat.protobuf.GetVideoRequest 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.GetVideoRequest 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.GetVideoRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:wechat_proto.GetVideoRequest)
wechat.protobuf.GetVideoRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return wechat.protobuf.Wechat.internal_static_wechat_proto_GetVideoRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return wechat.protobuf.Wechat.internal_static_wechat_proto_GetVideoRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
wechat.protobuf.GetVideoRequest.class, wechat.protobuf.GetVideoRequest.Builder.class);
}
// Construct using wechat.protobuf.GetVideoRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getBaseRequestFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (baseRequestBuilder_ == null) {
baseRequest_ = null;
} else {
baseRequestBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
msgId_ = 0;
bitField0_ = (bitField0_ & ~0x00000002);
totalLength_ = 0;
bitField0_ = (bitField0_ & ~0x00000004);
startPos_ = 0;
bitField0_ = (bitField0_ & ~0x00000008);
networkEnv_ = 0;
bitField0_ = (bitField0_ & ~0x00000010);
mxPackSize_ = 0;
bitField0_ = (bitField0_ & ~0x00000020);
newMsgId_ = 0L;
bitField0_ = (bitField0_ & ~0x00000040);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return wechat.protobuf.Wechat.internal_static_wechat_proto_GetVideoRequest_descriptor;
}
@java.lang.Override
public wechat.protobuf.GetVideoRequest getDefaultInstanceForType() {
return wechat.protobuf.GetVideoRequest.getDefaultInstance();
}
@java.lang.Override
public wechat.protobuf.GetVideoRequest build() {
wechat.protobuf.GetVideoRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public wechat.protobuf.GetVideoRequest buildPartial() {
wechat.protobuf.GetVideoRequest result = new wechat.protobuf.GetVideoRequest(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.msgId_ = msgId_;
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.totalLength_ = totalLength_;
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
result.startPos_ = startPos_;
to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
result.networkEnv_ = networkEnv_;
to_bitField0_ |= 0x00000010;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.mxPackSize_ = mxPackSize_;
to_bitField0_ |= 0x00000020;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.newMsgId_ = newMsgId_;
to_bitField0_ |= 0x00000040;
}
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.GetVideoRequest) {
return mergeFrom((wechat.protobuf.GetVideoRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(wechat.protobuf.GetVideoRequest other) {
if (other == wechat.protobuf.GetVideoRequest.getDefaultInstance()) return this;
if (other.hasBaseRequest()) {
mergeBaseRequest(other.getBaseRequest());
}
if (other.hasMsgId()) {
setMsgId(other.getMsgId());
}
if (other.hasTotalLength()) {
setTotalLength(other.getTotalLength());
}
if (other.hasStartPos()) {
setStartPos(other.getStartPos());
}
if (other.hasNetworkEnv()) {
setNetworkEnv(other.getNetworkEnv());
}
if (other.hasMxPackSize()) {
setMxPackSize(other.getMxPackSize());
}
if (other.hasNewMsgId()) {
setNewMsgId(other.getNewMsgId());
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
wechat.protobuf.GetVideoRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (wechat.protobuf.GetVideoRequest) 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 msgId_ ;
/**
* optional uint32 msgId = 2;
* @return Whether the msgId field is set.
*/
@java.lang.Override
public boolean hasMsgId() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional uint32 msgId = 2;
* @return The msgId.
*/
@java.lang.Override
public int getMsgId() {
return msgId_;
}
/**
* optional uint32 msgId = 2;
* @param value The msgId to set.
* @return This builder for chaining.
*/
public Builder setMsgId(int value) {
bitField0_ |= 0x00000002;
msgId_ = value;
onChanged();
return this;
}
/**
* optional uint32 msgId = 2;
* @return This builder for chaining.
*/
public Builder clearMsgId() {
bitField0_ = (bitField0_ & ~0x00000002);
msgId_ = 0;
onChanged();
return this;
}
private int totalLength_ ;
/**
* optional uint32 totalLength = 3;
* @return Whether the totalLength field is set.
*/
@java.lang.Override
public boolean hasTotalLength() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional uint32 totalLength = 3;
* @return The totalLength.
*/
@java.lang.Override
public int getTotalLength() {
return totalLength_;
}
/**
* optional uint32 totalLength = 3;
* @param value The totalLength to set.
* @return This builder for chaining.
*/
public Builder setTotalLength(int value) {
bitField0_ |= 0x00000004;
totalLength_ = value;
onChanged();
return this;
}
/**
* optional uint32 totalLength = 3;
* @return This builder for chaining.
*/
public Builder clearTotalLength() {
bitField0_ = (bitField0_ & ~0x00000004);
totalLength_ = 0;
onChanged();
return this;
}
private int startPos_ ;
/**
* optional uint32 StartPos = 4;
* @return Whether the startPos field is set.
*/
@java.lang.Override
public boolean hasStartPos() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional uint32 StartPos = 4;
* @return The startPos.
*/
@java.lang.Override
public int getStartPos() {
return startPos_;
}
/**
* optional uint32 StartPos = 4;
* @param value The startPos to set.
* @return This builder for chaining.
*/
public Builder setStartPos(int value) {
bitField0_ |= 0x00000008;
startPos_ = value;
onChanged();
return this;
}
/**
* optional uint32 StartPos = 4;
* @return This builder for chaining.
*/
public Builder clearStartPos() {
bitField0_ = (bitField0_ & ~0x00000008);
startPos_ = 0;
onChanged();
return this;
}
private int networkEnv_ ;
/**
* optional uint32 NetworkEnv = 5;
* @return Whether the networkEnv field is set.
*/
@java.lang.Override
public boolean hasNetworkEnv() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* optional uint32 NetworkEnv = 5;
* @return The networkEnv.
*/
@java.lang.Override
public int getNetworkEnv() {
return networkEnv_;
}
/**
* optional uint32 NetworkEnv = 5;
* @param value The networkEnv to set.
* @return This builder for chaining.
*/
public Builder setNetworkEnv(int value) {
bitField0_ |= 0x00000010;
networkEnv_ = value;
onChanged();
return this;
}
/**
* optional uint32 NetworkEnv = 5;
* @return This builder for chaining.
*/
public Builder clearNetworkEnv() {
bitField0_ = (bitField0_ & ~0x00000010);
networkEnv_ = 0;
onChanged();
return this;
}
private int mxPackSize_ ;
/**
* optional uint32 MxPackSize = 6;
* @return Whether the mxPackSize field is set.
*/
@java.lang.Override
public boolean hasMxPackSize() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
* optional uint32 MxPackSize = 6;
* @return The mxPackSize.
*/
@java.lang.Override
public int getMxPackSize() {
return mxPackSize_;
}
/**
* optional uint32 MxPackSize = 6;
* @param value The mxPackSize to set.
* @return This builder for chaining.
*/
public Builder setMxPackSize(int value) {
bitField0_ |= 0x00000020;
mxPackSize_ = value;
onChanged();
return this;
}
/**
* optional uint32 MxPackSize = 6;
* @return This builder for chaining.
*/
public Builder clearMxPackSize() {
bitField0_ = (bitField0_ & ~0x00000020);
mxPackSize_ = 0;
onChanged();
return this;
}
private long newMsgId_ ;
/**
* optional uint64 NewMsgId = 7;
* @return Whether the newMsgId field is set.
*/
@java.lang.Override
public boolean hasNewMsgId() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
* optional uint64 NewMsgId = 7;
* @return The newMsgId.
*/
@java.lang.Override
public long getNewMsgId() {
return newMsgId_;
}
/**
* optional uint64 NewMsgId = 7;
* @param value The newMsgId to set.
* @return This builder for chaining.
*/
public Builder setNewMsgId(long value) {
bitField0_ |= 0x00000040;
newMsgId_ = value;
onChanged();
return this;
}
/**
* optional uint64 NewMsgId = 7;
* @return This builder for chaining.
*/
public Builder clearNewMsgId() {
bitField0_ = (bitField0_ & ~0x00000040);
newMsgId_ = 0L;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:wechat_proto.GetVideoRequest)
}
// @@protoc_insertion_point(class_scope:wechat_proto.GetVideoRequest)
private static final wechat.protobuf.GetVideoRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new wechat.protobuf.GetVideoRequest();
}
public static wechat.protobuf.GetVideoRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public GetVideoRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new GetVideoRequest(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.GetVideoRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy