
wechat.protobuf.TenPayRequest Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: wechat.proto
package wechat.protobuf;
/**
* Protobuf type {@code wechat_proto.TenPayRequest}
*/
public final class TenPayRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:wechat_proto.TenPayRequest)
TenPayRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use TenPayRequest.newBuilder() to construct.
private TenPayRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TenPayRequest() {
sign_ = "";
crtNo_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new TenPayRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private TenPayRequest(
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;
cgiCmd_ = input.readUInt32();
break;
}
case 24: {
bitField0_ |= 0x00000004;
outPutType_ = input.readUInt32();
break;
}
case 34: {
wechat.protobuf.SKBuiltinString_.Builder subBuilder = null;
if (((bitField0_ & 0x00000008) != 0)) {
subBuilder = reqText_.toBuilder();
}
reqText_ = input.readMessage(wechat.protobuf.SKBuiltinString_.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(reqText_);
reqText_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000008;
break;
}
case 42: {
wechat.protobuf.SKBuiltinString_.Builder subBuilder = null;
if (((bitField0_ & 0x00000010) != 0)) {
subBuilder = reqTextWx_.toBuilder();
}
reqTextWx_ = input.readMessage(wechat.protobuf.SKBuiltinString_.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(reqTextWx_);
reqTextWx_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000010;
break;
}
case 50: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000020;
sign_ = bs;
break;
}
case 58: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000040;
crtNo_ = bs;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return wechat.protobuf.Wechat.internal_static_wechat_proto_TenPayRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return wechat.protobuf.Wechat.internal_static_wechat_proto_TenPayRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
wechat.protobuf.TenPayRequest.class, wechat.protobuf.TenPayRequest.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 CGICMD_FIELD_NUMBER = 2;
private int cgiCmd_;
/**
* optional uint32 cgiCmd = 2;
* @return Whether the cgiCmd field is set.
*/
@java.lang.Override
public boolean hasCgiCmd() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional uint32 cgiCmd = 2;
* @return The cgiCmd.
*/
@java.lang.Override
public int getCgiCmd() {
return cgiCmd_;
}
public static final int OUTPUTTYPE_FIELD_NUMBER = 3;
private int outPutType_;
/**
* optional uint32 outPutType = 3;
* @return Whether the outPutType field is set.
*/
@java.lang.Override
public boolean hasOutPutType() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional uint32 outPutType = 3;
* @return The outPutType.
*/
@java.lang.Override
public int getOutPutType() {
return outPutType_;
}
public static final int REQTEXT_FIELD_NUMBER = 4;
private wechat.protobuf.SKBuiltinString_ reqText_;
/**
* optional .wechat_proto.SKBuiltinString_ reqText = 4;
* @return Whether the reqText field is set.
*/
@java.lang.Override
public boolean hasReqText() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional .wechat_proto.SKBuiltinString_ reqText = 4;
* @return The reqText.
*/
@java.lang.Override
public wechat.protobuf.SKBuiltinString_ getReqText() {
return reqText_ == null ? wechat.protobuf.SKBuiltinString_.getDefaultInstance() : reqText_;
}
/**
* optional .wechat_proto.SKBuiltinString_ reqText = 4;
*/
@java.lang.Override
public wechat.protobuf.SKBuiltinString_OrBuilder getReqTextOrBuilder() {
return reqText_ == null ? wechat.protobuf.SKBuiltinString_.getDefaultInstance() : reqText_;
}
public static final int REQTEXTWX_FIELD_NUMBER = 5;
private wechat.protobuf.SKBuiltinString_ reqTextWx_;
/**
* optional .wechat_proto.SKBuiltinString_ reqTextWx = 5;
* @return Whether the reqTextWx field is set.
*/
@java.lang.Override
public boolean hasReqTextWx() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* optional .wechat_proto.SKBuiltinString_ reqTextWx = 5;
* @return The reqTextWx.
*/
@java.lang.Override
public wechat.protobuf.SKBuiltinString_ getReqTextWx() {
return reqTextWx_ == null ? wechat.protobuf.SKBuiltinString_.getDefaultInstance() : reqTextWx_;
}
/**
* optional .wechat_proto.SKBuiltinString_ reqTextWx = 5;
*/
@java.lang.Override
public wechat.protobuf.SKBuiltinString_OrBuilder getReqTextWxOrBuilder() {
return reqTextWx_ == null ? wechat.protobuf.SKBuiltinString_.getDefaultInstance() : reqTextWx_;
}
public static final int SIGN_FIELD_NUMBER = 6;
private volatile java.lang.Object sign_;
/**
* optional string sign = 6;
* @return Whether the sign field is set.
*/
@java.lang.Override
public boolean hasSign() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
* optional string sign = 6;
* @return The sign.
*/
@java.lang.Override
public java.lang.String getSign() {
java.lang.Object ref = sign_;
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()) {
sign_ = s;
}
return s;
}
}
/**
* optional string sign = 6;
* @return The bytes for sign.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSignBytes() {
java.lang.Object ref = sign_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
sign_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CRTNO_FIELD_NUMBER = 7;
private volatile java.lang.Object crtNo_;
/**
* optional string crtNo = 7;
* @return Whether the crtNo field is set.
*/
@java.lang.Override
public boolean hasCrtNo() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
* optional string crtNo = 7;
* @return The crtNo.
*/
@java.lang.Override
public java.lang.String getCrtNo() {
java.lang.Object ref = crtNo_;
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()) {
crtNo_ = s;
}
return s;
}
}
/**
* optional string crtNo = 7;
* @return The bytes for crtNo.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getCrtNoBytes() {
java.lang.Object ref = crtNo_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
crtNo_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
output.writeMessage(1, getBaseRequest());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeUInt32(2, cgiCmd_);
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeUInt32(3, outPutType_);
}
if (((bitField0_ & 0x00000008) != 0)) {
output.writeMessage(4, getReqText());
}
if (((bitField0_ & 0x00000010) != 0)) {
output.writeMessage(5, getReqTextWx());
}
if (((bitField0_ & 0x00000020) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, sign_);
}
if (((bitField0_ & 0x00000040) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, crtNo_);
}
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, cgiCmd_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(3, outPutType_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, getReqText());
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getReqTextWx());
}
if (((bitField0_ & 0x00000020) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, sign_);
}
if (((bitField0_ & 0x00000040) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, crtNo_);
}
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.TenPayRequest)) {
return super.equals(obj);
}
wechat.protobuf.TenPayRequest other = (wechat.protobuf.TenPayRequest) obj;
if (hasBaseRequest() != other.hasBaseRequest()) return false;
if (hasBaseRequest()) {
if (!getBaseRequest()
.equals(other.getBaseRequest())) return false;
}
if (hasCgiCmd() != other.hasCgiCmd()) return false;
if (hasCgiCmd()) {
if (getCgiCmd()
!= other.getCgiCmd()) return false;
}
if (hasOutPutType() != other.hasOutPutType()) return false;
if (hasOutPutType()) {
if (getOutPutType()
!= other.getOutPutType()) return false;
}
if (hasReqText() != other.hasReqText()) return false;
if (hasReqText()) {
if (!getReqText()
.equals(other.getReqText())) return false;
}
if (hasReqTextWx() != other.hasReqTextWx()) return false;
if (hasReqTextWx()) {
if (!getReqTextWx()
.equals(other.getReqTextWx())) return false;
}
if (hasSign() != other.hasSign()) return false;
if (hasSign()) {
if (!getSign()
.equals(other.getSign())) return false;
}
if (hasCrtNo() != other.hasCrtNo()) return false;
if (hasCrtNo()) {
if (!getCrtNo()
.equals(other.getCrtNo())) 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 (hasCgiCmd()) {
hash = (37 * hash) + CGICMD_FIELD_NUMBER;
hash = (53 * hash) + getCgiCmd();
}
if (hasOutPutType()) {
hash = (37 * hash) + OUTPUTTYPE_FIELD_NUMBER;
hash = (53 * hash) + getOutPutType();
}
if (hasReqText()) {
hash = (37 * hash) + REQTEXT_FIELD_NUMBER;
hash = (53 * hash) + getReqText().hashCode();
}
if (hasReqTextWx()) {
hash = (37 * hash) + REQTEXTWX_FIELD_NUMBER;
hash = (53 * hash) + getReqTextWx().hashCode();
}
if (hasSign()) {
hash = (37 * hash) + SIGN_FIELD_NUMBER;
hash = (53 * hash) + getSign().hashCode();
}
if (hasCrtNo()) {
hash = (37 * hash) + CRTNO_FIELD_NUMBER;
hash = (53 * hash) + getCrtNo().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static wechat.protobuf.TenPayRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static wechat.protobuf.TenPayRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static wechat.protobuf.TenPayRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static wechat.protobuf.TenPayRequest 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.TenPayRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static wechat.protobuf.TenPayRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static wechat.protobuf.TenPayRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static wechat.protobuf.TenPayRequest 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.TenPayRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static wechat.protobuf.TenPayRequest 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.TenPayRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static wechat.protobuf.TenPayRequest 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.TenPayRequest 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.TenPayRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:wechat_proto.TenPayRequest)
wechat.protobuf.TenPayRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return wechat.protobuf.Wechat.internal_static_wechat_proto_TenPayRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return wechat.protobuf.Wechat.internal_static_wechat_proto_TenPayRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
wechat.protobuf.TenPayRequest.class, wechat.protobuf.TenPayRequest.Builder.class);
}
// Construct using wechat.protobuf.TenPayRequest.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();
getReqTextFieldBuilder();
getReqTextWxFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (baseRequestBuilder_ == null) {
baseRequest_ = null;
} else {
baseRequestBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
cgiCmd_ = 0;
bitField0_ = (bitField0_ & ~0x00000002);
outPutType_ = 0;
bitField0_ = (bitField0_ & ~0x00000004);
if (reqTextBuilder_ == null) {
reqText_ = null;
} else {
reqTextBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000008);
if (reqTextWxBuilder_ == null) {
reqTextWx_ = null;
} else {
reqTextWxBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000010);
sign_ = "";
bitField0_ = (bitField0_ & ~0x00000020);
crtNo_ = "";
bitField0_ = (bitField0_ & ~0x00000040);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return wechat.protobuf.Wechat.internal_static_wechat_proto_TenPayRequest_descriptor;
}
@java.lang.Override
public wechat.protobuf.TenPayRequest getDefaultInstanceForType() {
return wechat.protobuf.TenPayRequest.getDefaultInstance();
}
@java.lang.Override
public wechat.protobuf.TenPayRequest build() {
wechat.protobuf.TenPayRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public wechat.protobuf.TenPayRequest buildPartial() {
wechat.protobuf.TenPayRequest result = new wechat.protobuf.TenPayRequest(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.cgiCmd_ = cgiCmd_;
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.outPutType_ = outPutType_;
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
if (reqTextBuilder_ == null) {
result.reqText_ = reqText_;
} else {
result.reqText_ = reqTextBuilder_.build();
}
to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
if (reqTextWxBuilder_ == null) {
result.reqTextWx_ = reqTextWx_;
} else {
result.reqTextWx_ = reqTextWxBuilder_.build();
}
to_bitField0_ |= 0x00000010;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
to_bitField0_ |= 0x00000020;
}
result.sign_ = sign_;
if (((from_bitField0_ & 0x00000040) != 0)) {
to_bitField0_ |= 0x00000040;
}
result.crtNo_ = crtNo_;
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.TenPayRequest) {
return mergeFrom((wechat.protobuf.TenPayRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(wechat.protobuf.TenPayRequest other) {
if (other == wechat.protobuf.TenPayRequest.getDefaultInstance()) return this;
if (other.hasBaseRequest()) {
mergeBaseRequest(other.getBaseRequest());
}
if (other.hasCgiCmd()) {
setCgiCmd(other.getCgiCmd());
}
if (other.hasOutPutType()) {
setOutPutType(other.getOutPutType());
}
if (other.hasReqText()) {
mergeReqText(other.getReqText());
}
if (other.hasReqTextWx()) {
mergeReqTextWx(other.getReqTextWx());
}
if (other.hasSign()) {
bitField0_ |= 0x00000020;
sign_ = other.sign_;
onChanged();
}
if (other.hasCrtNo()) {
bitField0_ |= 0x00000040;
crtNo_ = other.crtNo_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
wechat.protobuf.TenPayRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (wechat.protobuf.TenPayRequest) 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 cgiCmd_ ;
/**
* optional uint32 cgiCmd = 2;
* @return Whether the cgiCmd field is set.
*/
@java.lang.Override
public boolean hasCgiCmd() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional uint32 cgiCmd = 2;
* @return The cgiCmd.
*/
@java.lang.Override
public int getCgiCmd() {
return cgiCmd_;
}
/**
* optional uint32 cgiCmd = 2;
* @param value The cgiCmd to set.
* @return This builder for chaining.
*/
public Builder setCgiCmd(int value) {
bitField0_ |= 0x00000002;
cgiCmd_ = value;
onChanged();
return this;
}
/**
* optional uint32 cgiCmd = 2;
* @return This builder for chaining.
*/
public Builder clearCgiCmd() {
bitField0_ = (bitField0_ & ~0x00000002);
cgiCmd_ = 0;
onChanged();
return this;
}
private int outPutType_ ;
/**
* optional uint32 outPutType = 3;
* @return Whether the outPutType field is set.
*/
@java.lang.Override
public boolean hasOutPutType() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional uint32 outPutType = 3;
* @return The outPutType.
*/
@java.lang.Override
public int getOutPutType() {
return outPutType_;
}
/**
* optional uint32 outPutType = 3;
* @param value The outPutType to set.
* @return This builder for chaining.
*/
public Builder setOutPutType(int value) {
bitField0_ |= 0x00000004;
outPutType_ = value;
onChanged();
return this;
}
/**
* optional uint32 outPutType = 3;
* @return This builder for chaining.
*/
public Builder clearOutPutType() {
bitField0_ = (bitField0_ & ~0x00000004);
outPutType_ = 0;
onChanged();
return this;
}
private wechat.protobuf.SKBuiltinString_ reqText_;
private com.google.protobuf.SingleFieldBuilderV3<
wechat.protobuf.SKBuiltinString_, wechat.protobuf.SKBuiltinString_.Builder, wechat.protobuf.SKBuiltinString_OrBuilder> reqTextBuilder_;
/**
* optional .wechat_proto.SKBuiltinString_ reqText = 4;
* @return Whether the reqText field is set.
*/
public boolean hasReqText() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional .wechat_proto.SKBuiltinString_ reqText = 4;
* @return The reqText.
*/
public wechat.protobuf.SKBuiltinString_ getReqText() {
if (reqTextBuilder_ == null) {
return reqText_ == null ? wechat.protobuf.SKBuiltinString_.getDefaultInstance() : reqText_;
} else {
return reqTextBuilder_.getMessage();
}
}
/**
* optional .wechat_proto.SKBuiltinString_ reqText = 4;
*/
public Builder setReqText(wechat.protobuf.SKBuiltinString_ value) {
if (reqTextBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
reqText_ = value;
onChanged();
} else {
reqTextBuilder_.setMessage(value);
}
bitField0_ |= 0x00000008;
return this;
}
/**
* optional .wechat_proto.SKBuiltinString_ reqText = 4;
*/
public Builder setReqText(
wechat.protobuf.SKBuiltinString_.Builder builderForValue) {
if (reqTextBuilder_ == null) {
reqText_ = builderForValue.build();
onChanged();
} else {
reqTextBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000008;
return this;
}
/**
* optional .wechat_proto.SKBuiltinString_ reqText = 4;
*/
public Builder mergeReqText(wechat.protobuf.SKBuiltinString_ value) {
if (reqTextBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0) &&
reqText_ != null &&
reqText_ != wechat.protobuf.SKBuiltinString_.getDefaultInstance()) {
reqText_ =
wechat.protobuf.SKBuiltinString_.newBuilder(reqText_).mergeFrom(value).buildPartial();
} else {
reqText_ = value;
}
onChanged();
} else {
reqTextBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000008;
return this;
}
/**
* optional .wechat_proto.SKBuiltinString_ reqText = 4;
*/
public Builder clearReqText() {
if (reqTextBuilder_ == null) {
reqText_ = null;
onChanged();
} else {
reqTextBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
/**
* optional .wechat_proto.SKBuiltinString_ reqText = 4;
*/
public wechat.protobuf.SKBuiltinString_.Builder getReqTextBuilder() {
bitField0_ |= 0x00000008;
onChanged();
return getReqTextFieldBuilder().getBuilder();
}
/**
* optional .wechat_proto.SKBuiltinString_ reqText = 4;
*/
public wechat.protobuf.SKBuiltinString_OrBuilder getReqTextOrBuilder() {
if (reqTextBuilder_ != null) {
return reqTextBuilder_.getMessageOrBuilder();
} else {
return reqText_ == null ?
wechat.protobuf.SKBuiltinString_.getDefaultInstance() : reqText_;
}
}
/**
* optional .wechat_proto.SKBuiltinString_ reqText = 4;
*/
private com.google.protobuf.SingleFieldBuilderV3<
wechat.protobuf.SKBuiltinString_, wechat.protobuf.SKBuiltinString_.Builder, wechat.protobuf.SKBuiltinString_OrBuilder>
getReqTextFieldBuilder() {
if (reqTextBuilder_ == null) {
reqTextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
wechat.protobuf.SKBuiltinString_, wechat.protobuf.SKBuiltinString_.Builder, wechat.protobuf.SKBuiltinString_OrBuilder>(
getReqText(),
getParentForChildren(),
isClean());
reqText_ = null;
}
return reqTextBuilder_;
}
private wechat.protobuf.SKBuiltinString_ reqTextWx_;
private com.google.protobuf.SingleFieldBuilderV3<
wechat.protobuf.SKBuiltinString_, wechat.protobuf.SKBuiltinString_.Builder, wechat.protobuf.SKBuiltinString_OrBuilder> reqTextWxBuilder_;
/**
* optional .wechat_proto.SKBuiltinString_ reqTextWx = 5;
* @return Whether the reqTextWx field is set.
*/
public boolean hasReqTextWx() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* optional .wechat_proto.SKBuiltinString_ reqTextWx = 5;
* @return The reqTextWx.
*/
public wechat.protobuf.SKBuiltinString_ getReqTextWx() {
if (reqTextWxBuilder_ == null) {
return reqTextWx_ == null ? wechat.protobuf.SKBuiltinString_.getDefaultInstance() : reqTextWx_;
} else {
return reqTextWxBuilder_.getMessage();
}
}
/**
* optional .wechat_proto.SKBuiltinString_ reqTextWx = 5;
*/
public Builder setReqTextWx(wechat.protobuf.SKBuiltinString_ value) {
if (reqTextWxBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
reqTextWx_ = value;
onChanged();
} else {
reqTextWxBuilder_.setMessage(value);
}
bitField0_ |= 0x00000010;
return this;
}
/**
* optional .wechat_proto.SKBuiltinString_ reqTextWx = 5;
*/
public Builder setReqTextWx(
wechat.protobuf.SKBuiltinString_.Builder builderForValue) {
if (reqTextWxBuilder_ == null) {
reqTextWx_ = builderForValue.build();
onChanged();
} else {
reqTextWxBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000010;
return this;
}
/**
* optional .wechat_proto.SKBuiltinString_ reqTextWx = 5;
*/
public Builder mergeReqTextWx(wechat.protobuf.SKBuiltinString_ value) {
if (reqTextWxBuilder_ == null) {
if (((bitField0_ & 0x00000010) != 0) &&
reqTextWx_ != null &&
reqTextWx_ != wechat.protobuf.SKBuiltinString_.getDefaultInstance()) {
reqTextWx_ =
wechat.protobuf.SKBuiltinString_.newBuilder(reqTextWx_).mergeFrom(value).buildPartial();
} else {
reqTextWx_ = value;
}
onChanged();
} else {
reqTextWxBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000010;
return this;
}
/**
* optional .wechat_proto.SKBuiltinString_ reqTextWx = 5;
*/
public Builder clearReqTextWx() {
if (reqTextWxBuilder_ == null) {
reqTextWx_ = null;
onChanged();
} else {
reqTextWxBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000010);
return this;
}
/**
* optional .wechat_proto.SKBuiltinString_ reqTextWx = 5;
*/
public wechat.protobuf.SKBuiltinString_.Builder getReqTextWxBuilder() {
bitField0_ |= 0x00000010;
onChanged();
return getReqTextWxFieldBuilder().getBuilder();
}
/**
* optional .wechat_proto.SKBuiltinString_ reqTextWx = 5;
*/
public wechat.protobuf.SKBuiltinString_OrBuilder getReqTextWxOrBuilder() {
if (reqTextWxBuilder_ != null) {
return reqTextWxBuilder_.getMessageOrBuilder();
} else {
return reqTextWx_ == null ?
wechat.protobuf.SKBuiltinString_.getDefaultInstance() : reqTextWx_;
}
}
/**
* optional .wechat_proto.SKBuiltinString_ reqTextWx = 5;
*/
private com.google.protobuf.SingleFieldBuilderV3<
wechat.protobuf.SKBuiltinString_, wechat.protobuf.SKBuiltinString_.Builder, wechat.protobuf.SKBuiltinString_OrBuilder>
getReqTextWxFieldBuilder() {
if (reqTextWxBuilder_ == null) {
reqTextWxBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
wechat.protobuf.SKBuiltinString_, wechat.protobuf.SKBuiltinString_.Builder, wechat.protobuf.SKBuiltinString_OrBuilder>(
getReqTextWx(),
getParentForChildren(),
isClean());
reqTextWx_ = null;
}
return reqTextWxBuilder_;
}
private java.lang.Object sign_ = "";
/**
* optional string sign = 6;
* @return Whether the sign field is set.
*/
public boolean hasSign() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
* optional string sign = 6;
* @return The sign.
*/
public java.lang.String getSign() {
java.lang.Object ref = sign_;
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()) {
sign_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string sign = 6;
* @return The bytes for sign.
*/
public com.google.protobuf.ByteString
getSignBytes() {
java.lang.Object ref = sign_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
sign_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string sign = 6;
* @param value The sign to set.
* @return This builder for chaining.
*/
public Builder setSign(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000020;
sign_ = value;
onChanged();
return this;
}
/**
* optional string sign = 6;
* @return This builder for chaining.
*/
public Builder clearSign() {
bitField0_ = (bitField0_ & ~0x00000020);
sign_ = getDefaultInstance().getSign();
onChanged();
return this;
}
/**
* optional string sign = 6;
* @param value The bytes for sign to set.
* @return This builder for chaining.
*/
public Builder setSignBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000020;
sign_ = value;
onChanged();
return this;
}
private java.lang.Object crtNo_ = "";
/**
* optional string crtNo = 7;
* @return Whether the crtNo field is set.
*/
public boolean hasCrtNo() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
* optional string crtNo = 7;
* @return The crtNo.
*/
public java.lang.String getCrtNo() {
java.lang.Object ref = crtNo_;
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()) {
crtNo_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string crtNo = 7;
* @return The bytes for crtNo.
*/
public com.google.protobuf.ByteString
getCrtNoBytes() {
java.lang.Object ref = crtNo_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
crtNo_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string crtNo = 7;
* @param value The crtNo to set.
* @return This builder for chaining.
*/
public Builder setCrtNo(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000040;
crtNo_ = value;
onChanged();
return this;
}
/**
* optional string crtNo = 7;
* @return This builder for chaining.
*/
public Builder clearCrtNo() {
bitField0_ = (bitField0_ & ~0x00000040);
crtNo_ = getDefaultInstance().getCrtNo();
onChanged();
return this;
}
/**
* optional string crtNo = 7;
* @param value The bytes for crtNo to set.
* @return This builder for chaining.
*/
public Builder setCrtNoBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000040;
crtNo_ = value;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:wechat_proto.TenPayRequest)
}
// @@protoc_insertion_point(class_scope:wechat_proto.TenPayRequest)
private static final wechat.protobuf.TenPayRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new wechat.protobuf.TenPayRequest();
}
public static wechat.protobuf.TenPayRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TenPayRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new TenPayRequest(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.TenPayRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy