wechat.protobuf.TenPayResponse Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: wechat.proto
package wechat.protobuf;
/**
* Protobuf type {@code wechat_proto.TenPayResponse}
*/
public final class TenPayResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:wechat_proto.TenPayResponse)
TenPayResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use TenPayResponse.newBuilder() to construct.
private TenPayResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private TenPayResponse() {
platMsg_ = "";
tenpayErrMsg_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new TenPayResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private TenPayResponse(
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.BaseResponse.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) != 0)) {
subBuilder = baseResponse_.toBuilder();
}
baseResponse_ = input.readMessage(wechat.protobuf.BaseResponse.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(baseResponse_);
baseResponse_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
break;
}
case 18: {
wechat.protobuf.SKBuiltinString_.Builder subBuilder = null;
if (((bitField0_ & 0x00000002) != 0)) {
subBuilder = retText_.toBuilder();
}
retText_ = input.readMessage(wechat.protobuf.SKBuiltinString_.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(retText_);
retText_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000002;
break;
}
case 24: {
bitField0_ |= 0x00000004;
platRet_ = input.readInt32();
break;
}
case 34: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000008;
platMsg_ = bs;
break;
}
case 40: {
bitField0_ |= 0x00000010;
cgiCmdid_ = input.readInt32();
break;
}
case 48: {
bitField0_ |= 0x00000020;
tenpayErrType_ = input.readInt32();
break;
}
case 58: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000040;
tenpayErrMsg_ = 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_TenPayResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return wechat.protobuf.Wechat.internal_static_wechat_proto_TenPayResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
wechat.protobuf.TenPayResponse.class, wechat.protobuf.TenPayResponse.Builder.class);
}
private int bitField0_;
public static final int BASERESPONSE_FIELD_NUMBER = 1;
private wechat.protobuf.BaseResponse baseResponse_;
/**
* optional .wechat_proto.BaseResponse baseResponse = 1;
* @return Whether the baseResponse field is set.
*/
@java.lang.Override
public boolean hasBaseResponse() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional .wechat_proto.BaseResponse baseResponse = 1;
* @return The baseResponse.
*/
@java.lang.Override
public wechat.protobuf.BaseResponse getBaseResponse() {
return baseResponse_ == null ? wechat.protobuf.BaseResponse.getDefaultInstance() : baseResponse_;
}
/**
* optional .wechat_proto.BaseResponse baseResponse = 1;
*/
@java.lang.Override
public wechat.protobuf.BaseResponseOrBuilder getBaseResponseOrBuilder() {
return baseResponse_ == null ? wechat.protobuf.BaseResponse.getDefaultInstance() : baseResponse_;
}
public static final int RETTEXT_FIELD_NUMBER = 2;
private wechat.protobuf.SKBuiltinString_ retText_;
/**
* optional .wechat_proto.SKBuiltinString_ retText = 2;
* @return Whether the retText field is set.
*/
@java.lang.Override
public boolean hasRetText() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional .wechat_proto.SKBuiltinString_ retText = 2;
* @return The retText.
*/
@java.lang.Override
public wechat.protobuf.SKBuiltinString_ getRetText() {
return retText_ == null ? wechat.protobuf.SKBuiltinString_.getDefaultInstance() : retText_;
}
/**
* optional .wechat_proto.SKBuiltinString_ retText = 2;
*/
@java.lang.Override
public wechat.protobuf.SKBuiltinString_OrBuilder getRetTextOrBuilder() {
return retText_ == null ? wechat.protobuf.SKBuiltinString_.getDefaultInstance() : retText_;
}
public static final int PLATRET_FIELD_NUMBER = 3;
private int platRet_;
/**
* optional int32 platRet = 3;
* @return Whether the platRet field is set.
*/
@java.lang.Override
public boolean hasPlatRet() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional int32 platRet = 3;
* @return The platRet.
*/
@java.lang.Override
public int getPlatRet() {
return platRet_;
}
public static final int PLATMSG_FIELD_NUMBER = 4;
private volatile java.lang.Object platMsg_;
/**
* optional string platMsg = 4;
* @return Whether the platMsg field is set.
*/
@java.lang.Override
public boolean hasPlatMsg() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional string platMsg = 4;
* @return The platMsg.
*/
@java.lang.Override
public java.lang.String getPlatMsg() {
java.lang.Object ref = platMsg_;
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()) {
platMsg_ = s;
}
return s;
}
}
/**
* optional string platMsg = 4;
* @return The bytes for platMsg.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getPlatMsgBytes() {
java.lang.Object ref = platMsg_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
platMsg_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int CGICMDID_FIELD_NUMBER = 5;
private int cgiCmdid_;
/**
* optional int32 cgiCmdid = 5;
* @return Whether the cgiCmdid field is set.
*/
@java.lang.Override
public boolean hasCgiCmdid() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* optional int32 cgiCmdid = 5;
* @return The cgiCmdid.
*/
@java.lang.Override
public int getCgiCmdid() {
return cgiCmdid_;
}
public static final int TENPAYERRTYPE_FIELD_NUMBER = 6;
private int tenpayErrType_;
/**
* optional int32 tenpayErrType = 6;
* @return Whether the tenpayErrType field is set.
*/
@java.lang.Override
public boolean hasTenpayErrType() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
* optional int32 tenpayErrType = 6;
* @return The tenpayErrType.
*/
@java.lang.Override
public int getTenpayErrType() {
return tenpayErrType_;
}
public static final int TENPAYERRMSG_FIELD_NUMBER = 7;
private volatile java.lang.Object tenpayErrMsg_;
/**
* optional string tenpayErrMsg = 7;
* @return Whether the tenpayErrMsg field is set.
*/
@java.lang.Override
public boolean hasTenpayErrMsg() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
* optional string tenpayErrMsg = 7;
* @return The tenpayErrMsg.
*/
@java.lang.Override
public java.lang.String getTenpayErrMsg() {
java.lang.Object ref = tenpayErrMsg_;
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()) {
tenpayErrMsg_ = s;
}
return s;
}
}
/**
* optional string tenpayErrMsg = 7;
* @return The bytes for tenpayErrMsg.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getTenpayErrMsgBytes() {
java.lang.Object ref = tenpayErrMsg_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
tenpayErrMsg_ = 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, getBaseResponse());
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(2, getRetText());
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeInt32(3, platRet_);
}
if (((bitField0_ & 0x00000008) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, platMsg_);
}
if (((bitField0_ & 0x00000010) != 0)) {
output.writeInt32(5, cgiCmdid_);
}
if (((bitField0_ & 0x00000020) != 0)) {
output.writeInt32(6, tenpayErrType_);
}
if (((bitField0_ & 0x00000040) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, tenpayErrMsg_);
}
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, getBaseResponse());
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getRetText());
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(3, platRet_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, platMsg_);
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(5, cgiCmdid_);
}
if (((bitField0_ & 0x00000020) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(6, tenpayErrType_);
}
if (((bitField0_ & 0x00000040) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, tenpayErrMsg_);
}
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.TenPayResponse)) {
return super.equals(obj);
}
wechat.protobuf.TenPayResponse other = (wechat.protobuf.TenPayResponse) obj;
if (hasBaseResponse() != other.hasBaseResponse()) return false;
if (hasBaseResponse()) {
if (!getBaseResponse()
.equals(other.getBaseResponse())) return false;
}
if (hasRetText() != other.hasRetText()) return false;
if (hasRetText()) {
if (!getRetText()
.equals(other.getRetText())) return false;
}
if (hasPlatRet() != other.hasPlatRet()) return false;
if (hasPlatRet()) {
if (getPlatRet()
!= other.getPlatRet()) return false;
}
if (hasPlatMsg() != other.hasPlatMsg()) return false;
if (hasPlatMsg()) {
if (!getPlatMsg()
.equals(other.getPlatMsg())) return false;
}
if (hasCgiCmdid() != other.hasCgiCmdid()) return false;
if (hasCgiCmdid()) {
if (getCgiCmdid()
!= other.getCgiCmdid()) return false;
}
if (hasTenpayErrType() != other.hasTenpayErrType()) return false;
if (hasTenpayErrType()) {
if (getTenpayErrType()
!= other.getTenpayErrType()) return false;
}
if (hasTenpayErrMsg() != other.hasTenpayErrMsg()) return false;
if (hasTenpayErrMsg()) {
if (!getTenpayErrMsg()
.equals(other.getTenpayErrMsg())) 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 (hasBaseResponse()) {
hash = (37 * hash) + BASERESPONSE_FIELD_NUMBER;
hash = (53 * hash) + getBaseResponse().hashCode();
}
if (hasRetText()) {
hash = (37 * hash) + RETTEXT_FIELD_NUMBER;
hash = (53 * hash) + getRetText().hashCode();
}
if (hasPlatRet()) {
hash = (37 * hash) + PLATRET_FIELD_NUMBER;
hash = (53 * hash) + getPlatRet();
}
if (hasPlatMsg()) {
hash = (37 * hash) + PLATMSG_FIELD_NUMBER;
hash = (53 * hash) + getPlatMsg().hashCode();
}
if (hasCgiCmdid()) {
hash = (37 * hash) + CGICMDID_FIELD_NUMBER;
hash = (53 * hash) + getCgiCmdid();
}
if (hasTenpayErrType()) {
hash = (37 * hash) + TENPAYERRTYPE_FIELD_NUMBER;
hash = (53 * hash) + getTenpayErrType();
}
if (hasTenpayErrMsg()) {
hash = (37 * hash) + TENPAYERRMSG_FIELD_NUMBER;
hash = (53 * hash) + getTenpayErrMsg().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static wechat.protobuf.TenPayResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static wechat.protobuf.TenPayResponse parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static wechat.protobuf.TenPayResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static wechat.protobuf.TenPayResponse 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.TenPayResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static wechat.protobuf.TenPayResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static wechat.protobuf.TenPayResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static wechat.protobuf.TenPayResponse 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.TenPayResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static wechat.protobuf.TenPayResponse 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.TenPayResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static wechat.protobuf.TenPayResponse 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.TenPayResponse 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.TenPayResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:wechat_proto.TenPayResponse)
wechat.protobuf.TenPayResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return wechat.protobuf.Wechat.internal_static_wechat_proto_TenPayResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return wechat.protobuf.Wechat.internal_static_wechat_proto_TenPayResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
wechat.protobuf.TenPayResponse.class, wechat.protobuf.TenPayResponse.Builder.class);
}
// Construct using wechat.protobuf.TenPayResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getBaseResponseFieldBuilder();
getRetTextFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (baseResponseBuilder_ == null) {
baseResponse_ = null;
} else {
baseResponseBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
if (retTextBuilder_ == null) {
retText_ = null;
} else {
retTextBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
platRet_ = 0;
bitField0_ = (bitField0_ & ~0x00000004);
platMsg_ = "";
bitField0_ = (bitField0_ & ~0x00000008);
cgiCmdid_ = 0;
bitField0_ = (bitField0_ & ~0x00000010);
tenpayErrType_ = 0;
bitField0_ = (bitField0_ & ~0x00000020);
tenpayErrMsg_ = "";
bitField0_ = (bitField0_ & ~0x00000040);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return wechat.protobuf.Wechat.internal_static_wechat_proto_TenPayResponse_descriptor;
}
@java.lang.Override
public wechat.protobuf.TenPayResponse getDefaultInstanceForType() {
return wechat.protobuf.TenPayResponse.getDefaultInstance();
}
@java.lang.Override
public wechat.protobuf.TenPayResponse build() {
wechat.protobuf.TenPayResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public wechat.protobuf.TenPayResponse buildPartial() {
wechat.protobuf.TenPayResponse result = new wechat.protobuf.TenPayResponse(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
if (baseResponseBuilder_ == null) {
result.baseResponse_ = baseResponse_;
} else {
result.baseResponse_ = baseResponseBuilder_.build();
}
to_bitField0_ |= 0x00000001;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
if (retTextBuilder_ == null) {
result.retText_ = retText_;
} else {
result.retText_ = retTextBuilder_.build();
}
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
result.platRet_ = platRet_;
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
to_bitField0_ |= 0x00000008;
}
result.platMsg_ = platMsg_;
if (((from_bitField0_ & 0x00000010) != 0)) {
result.cgiCmdid_ = cgiCmdid_;
to_bitField0_ |= 0x00000010;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
result.tenpayErrType_ = tenpayErrType_;
to_bitField0_ |= 0x00000020;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
to_bitField0_ |= 0x00000040;
}
result.tenpayErrMsg_ = tenpayErrMsg_;
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.TenPayResponse) {
return mergeFrom((wechat.protobuf.TenPayResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(wechat.protobuf.TenPayResponse other) {
if (other == wechat.protobuf.TenPayResponse.getDefaultInstance()) return this;
if (other.hasBaseResponse()) {
mergeBaseResponse(other.getBaseResponse());
}
if (other.hasRetText()) {
mergeRetText(other.getRetText());
}
if (other.hasPlatRet()) {
setPlatRet(other.getPlatRet());
}
if (other.hasPlatMsg()) {
bitField0_ |= 0x00000008;
platMsg_ = other.platMsg_;
onChanged();
}
if (other.hasCgiCmdid()) {
setCgiCmdid(other.getCgiCmdid());
}
if (other.hasTenpayErrType()) {
setTenpayErrType(other.getTenpayErrType());
}
if (other.hasTenpayErrMsg()) {
bitField0_ |= 0x00000040;
tenpayErrMsg_ = other.tenpayErrMsg_;
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.TenPayResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (wechat.protobuf.TenPayResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private wechat.protobuf.BaseResponse baseResponse_;
private com.google.protobuf.SingleFieldBuilderV3<
wechat.protobuf.BaseResponse, wechat.protobuf.BaseResponse.Builder, wechat.protobuf.BaseResponseOrBuilder> baseResponseBuilder_;
/**
* optional .wechat_proto.BaseResponse baseResponse = 1;
* @return Whether the baseResponse field is set.
*/
public boolean hasBaseResponse() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional .wechat_proto.BaseResponse baseResponse = 1;
* @return The baseResponse.
*/
public wechat.protobuf.BaseResponse getBaseResponse() {
if (baseResponseBuilder_ == null) {
return baseResponse_ == null ? wechat.protobuf.BaseResponse.getDefaultInstance() : baseResponse_;
} else {
return baseResponseBuilder_.getMessage();
}
}
/**
* optional .wechat_proto.BaseResponse baseResponse = 1;
*/
public Builder setBaseResponse(wechat.protobuf.BaseResponse value) {
if (baseResponseBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
baseResponse_ = value;
onChanged();
} else {
baseResponseBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .wechat_proto.BaseResponse baseResponse = 1;
*/
public Builder setBaseResponse(
wechat.protobuf.BaseResponse.Builder builderForValue) {
if (baseResponseBuilder_ == null) {
baseResponse_ = builderForValue.build();
onChanged();
} else {
baseResponseBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .wechat_proto.BaseResponse baseResponse = 1;
*/
public Builder mergeBaseResponse(wechat.protobuf.BaseResponse value) {
if (baseResponseBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
baseResponse_ != null &&
baseResponse_ != wechat.protobuf.BaseResponse.getDefaultInstance()) {
baseResponse_ =
wechat.protobuf.BaseResponse.newBuilder(baseResponse_).mergeFrom(value).buildPartial();
} else {
baseResponse_ = value;
}
onChanged();
} else {
baseResponseBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .wechat_proto.BaseResponse baseResponse = 1;
*/
public Builder clearBaseResponse() {
if (baseResponseBuilder_ == null) {
baseResponse_ = null;
onChanged();
} else {
baseResponseBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
/**
* optional .wechat_proto.BaseResponse baseResponse = 1;
*/
public wechat.protobuf.BaseResponse.Builder getBaseResponseBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getBaseResponseFieldBuilder().getBuilder();
}
/**
* optional .wechat_proto.BaseResponse baseResponse = 1;
*/
public wechat.protobuf.BaseResponseOrBuilder getBaseResponseOrBuilder() {
if (baseResponseBuilder_ != null) {
return baseResponseBuilder_.getMessageOrBuilder();
} else {
return baseResponse_ == null ?
wechat.protobuf.BaseResponse.getDefaultInstance() : baseResponse_;
}
}
/**
* optional .wechat_proto.BaseResponse baseResponse = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
wechat.protobuf.BaseResponse, wechat.protobuf.BaseResponse.Builder, wechat.protobuf.BaseResponseOrBuilder>
getBaseResponseFieldBuilder() {
if (baseResponseBuilder_ == null) {
baseResponseBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
wechat.protobuf.BaseResponse, wechat.protobuf.BaseResponse.Builder, wechat.protobuf.BaseResponseOrBuilder>(
getBaseResponse(),
getParentForChildren(),
isClean());
baseResponse_ = null;
}
return baseResponseBuilder_;
}
private wechat.protobuf.SKBuiltinString_ retText_;
private com.google.protobuf.SingleFieldBuilderV3<
wechat.protobuf.SKBuiltinString_, wechat.protobuf.SKBuiltinString_.Builder, wechat.protobuf.SKBuiltinString_OrBuilder> retTextBuilder_;
/**
* optional .wechat_proto.SKBuiltinString_ retText = 2;
* @return Whether the retText field is set.
*/
public boolean hasRetText() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional .wechat_proto.SKBuiltinString_ retText = 2;
* @return The retText.
*/
public wechat.protobuf.SKBuiltinString_ getRetText() {
if (retTextBuilder_ == null) {
return retText_ == null ? wechat.protobuf.SKBuiltinString_.getDefaultInstance() : retText_;
} else {
return retTextBuilder_.getMessage();
}
}
/**
* optional .wechat_proto.SKBuiltinString_ retText = 2;
*/
public Builder setRetText(wechat.protobuf.SKBuiltinString_ value) {
if (retTextBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
retText_ = value;
onChanged();
} else {
retTextBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .wechat_proto.SKBuiltinString_ retText = 2;
*/
public Builder setRetText(
wechat.protobuf.SKBuiltinString_.Builder builderForValue) {
if (retTextBuilder_ == null) {
retText_ = builderForValue.build();
onChanged();
} else {
retTextBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .wechat_proto.SKBuiltinString_ retText = 2;
*/
public Builder mergeRetText(wechat.protobuf.SKBuiltinString_ value) {
if (retTextBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
retText_ != null &&
retText_ != wechat.protobuf.SKBuiltinString_.getDefaultInstance()) {
retText_ =
wechat.protobuf.SKBuiltinString_.newBuilder(retText_).mergeFrom(value).buildPartial();
} else {
retText_ = value;
}
onChanged();
} else {
retTextBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .wechat_proto.SKBuiltinString_ retText = 2;
*/
public Builder clearRetText() {
if (retTextBuilder_ == null) {
retText_ = null;
onChanged();
} else {
retTextBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
/**
* optional .wechat_proto.SKBuiltinString_ retText = 2;
*/
public wechat.protobuf.SKBuiltinString_.Builder getRetTextBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getRetTextFieldBuilder().getBuilder();
}
/**
* optional .wechat_proto.SKBuiltinString_ retText = 2;
*/
public wechat.protobuf.SKBuiltinString_OrBuilder getRetTextOrBuilder() {
if (retTextBuilder_ != null) {
return retTextBuilder_.getMessageOrBuilder();
} else {
return retText_ == null ?
wechat.protobuf.SKBuiltinString_.getDefaultInstance() : retText_;
}
}
/**
* optional .wechat_proto.SKBuiltinString_ retText = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
wechat.protobuf.SKBuiltinString_, wechat.protobuf.SKBuiltinString_.Builder, wechat.protobuf.SKBuiltinString_OrBuilder>
getRetTextFieldBuilder() {
if (retTextBuilder_ == null) {
retTextBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
wechat.protobuf.SKBuiltinString_, wechat.protobuf.SKBuiltinString_.Builder, wechat.protobuf.SKBuiltinString_OrBuilder>(
getRetText(),
getParentForChildren(),
isClean());
retText_ = null;
}
return retTextBuilder_;
}
private int platRet_ ;
/**
* optional int32 platRet = 3;
* @return Whether the platRet field is set.
*/
@java.lang.Override
public boolean hasPlatRet() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional int32 platRet = 3;
* @return The platRet.
*/
@java.lang.Override
public int getPlatRet() {
return platRet_;
}
/**
* optional int32 platRet = 3;
* @param value The platRet to set.
* @return This builder for chaining.
*/
public Builder setPlatRet(int value) {
bitField0_ |= 0x00000004;
platRet_ = value;
onChanged();
return this;
}
/**
* optional int32 platRet = 3;
* @return This builder for chaining.
*/
public Builder clearPlatRet() {
bitField0_ = (bitField0_ & ~0x00000004);
platRet_ = 0;
onChanged();
return this;
}
private java.lang.Object platMsg_ = "";
/**
* optional string platMsg = 4;
* @return Whether the platMsg field is set.
*/
public boolean hasPlatMsg() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional string platMsg = 4;
* @return The platMsg.
*/
public java.lang.String getPlatMsg() {
java.lang.Object ref = platMsg_;
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()) {
platMsg_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string platMsg = 4;
* @return The bytes for platMsg.
*/
public com.google.protobuf.ByteString
getPlatMsgBytes() {
java.lang.Object ref = platMsg_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
platMsg_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string platMsg = 4;
* @param value The platMsg to set.
* @return This builder for chaining.
*/
public Builder setPlatMsg(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
platMsg_ = value;
onChanged();
return this;
}
/**
* optional string platMsg = 4;
* @return This builder for chaining.
*/
public Builder clearPlatMsg() {
bitField0_ = (bitField0_ & ~0x00000008);
platMsg_ = getDefaultInstance().getPlatMsg();
onChanged();
return this;
}
/**
* optional string platMsg = 4;
* @param value The bytes for platMsg to set.
* @return This builder for chaining.
*/
public Builder setPlatMsgBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
platMsg_ = value;
onChanged();
return this;
}
private int cgiCmdid_ ;
/**
* optional int32 cgiCmdid = 5;
* @return Whether the cgiCmdid field is set.
*/
@java.lang.Override
public boolean hasCgiCmdid() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* optional int32 cgiCmdid = 5;
* @return The cgiCmdid.
*/
@java.lang.Override
public int getCgiCmdid() {
return cgiCmdid_;
}
/**
* optional int32 cgiCmdid = 5;
* @param value The cgiCmdid to set.
* @return This builder for chaining.
*/
public Builder setCgiCmdid(int value) {
bitField0_ |= 0x00000010;
cgiCmdid_ = value;
onChanged();
return this;
}
/**
* optional int32 cgiCmdid = 5;
* @return This builder for chaining.
*/
public Builder clearCgiCmdid() {
bitField0_ = (bitField0_ & ~0x00000010);
cgiCmdid_ = 0;
onChanged();
return this;
}
private int tenpayErrType_ ;
/**
* optional int32 tenpayErrType = 6;
* @return Whether the tenpayErrType field is set.
*/
@java.lang.Override
public boolean hasTenpayErrType() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
* optional int32 tenpayErrType = 6;
* @return The tenpayErrType.
*/
@java.lang.Override
public int getTenpayErrType() {
return tenpayErrType_;
}
/**
* optional int32 tenpayErrType = 6;
* @param value The tenpayErrType to set.
* @return This builder for chaining.
*/
public Builder setTenpayErrType(int value) {
bitField0_ |= 0x00000020;
tenpayErrType_ = value;
onChanged();
return this;
}
/**
* optional int32 tenpayErrType = 6;
* @return This builder for chaining.
*/
public Builder clearTenpayErrType() {
bitField0_ = (bitField0_ & ~0x00000020);
tenpayErrType_ = 0;
onChanged();
return this;
}
private java.lang.Object tenpayErrMsg_ = "";
/**
* optional string tenpayErrMsg = 7;
* @return Whether the tenpayErrMsg field is set.
*/
public boolean hasTenpayErrMsg() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
* optional string tenpayErrMsg = 7;
* @return The tenpayErrMsg.
*/
public java.lang.String getTenpayErrMsg() {
java.lang.Object ref = tenpayErrMsg_;
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()) {
tenpayErrMsg_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string tenpayErrMsg = 7;
* @return The bytes for tenpayErrMsg.
*/
public com.google.protobuf.ByteString
getTenpayErrMsgBytes() {
java.lang.Object ref = tenpayErrMsg_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
tenpayErrMsg_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string tenpayErrMsg = 7;
* @param value The tenpayErrMsg to set.
* @return This builder for chaining.
*/
public Builder setTenpayErrMsg(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000040;
tenpayErrMsg_ = value;
onChanged();
return this;
}
/**
* optional string tenpayErrMsg = 7;
* @return This builder for chaining.
*/
public Builder clearTenpayErrMsg() {
bitField0_ = (bitField0_ & ~0x00000040);
tenpayErrMsg_ = getDefaultInstance().getTenpayErrMsg();
onChanged();
return this;
}
/**
* optional string tenpayErrMsg = 7;
* @param value The bytes for tenpayErrMsg to set.
* @return This builder for chaining.
*/
public Builder setTenpayErrMsgBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000040;
tenpayErrMsg_ = 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.TenPayResponse)
}
// @@protoc_insertion_point(class_scope:wechat_proto.TenPayResponse)
private static final wechat.protobuf.TenPayResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new wechat.protobuf.TenPayResponse();
}
public static wechat.protobuf.TenPayResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public TenPayResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new TenPayResponse(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.TenPayResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy