// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: BargainOfferPriceRsp.proto
package emu.grasscutter.net.proto;
public final class BargainOfferPriceRspOuterClass {
private BargainOfferPriceRspOuterClass() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
registerAllExtensions(
(com.google.protobuf.ExtensionRegistryLite) registry);
}
public interface BargainOfferPriceRspOrBuilder extends
// @@protoc_insertion_point(interface_extends:BargainOfferPriceRsp)
com.google.protobuf.MessageOrBuilder {
/**
* int32 cur_mood = 6;
* @return The curMood.
*/
int getCurMood();
/**
* int32 retcode = 5;
* @return The retcode.
*/
int getRetcode();
/**
* .BargainResultType bargain_result = 15;
* @return The enum numeric value on the wire for bargainResult.
*/
int getBargainResultValue();
/**
* .BargainResultType bargain_result = 15;
* @return The bargainResult.
*/
emu.grasscutter.net.proto.BargainResultTypeOuterClass.BargainResultType getBargainResult();
/**
* uint32 result_param = 11;
* @return The resultParam.
*/
int getResultParam();
}
/**
*
* CmdId: 476 * Obf: LDAHLOOJGPD ** * Protobuf type {@code BargainOfferPriceRsp} */ public static final class BargainOfferPriceRsp extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:BargainOfferPriceRsp) BargainOfferPriceRspOrBuilder { private static final long serialVersionUID = 0L; // Use BargainOfferPriceRsp.newBuilder() to construct. private BargainOfferPriceRsp(com.google.protobuf.GeneratedMessageV3.Builder> builder) { super(builder); } private BargainOfferPriceRsp() { bargainResult_ = 0; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new BargainOfferPriceRsp(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private BargainOfferPriceRsp( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { this(); if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } 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 40: { retcode_ = input.readInt32(); break; } case 48: { curMood_ = input.readInt32(); break; } case 88: { resultParam_ = input.readUInt32(); break; } case 120: { int rawValue = input.readEnum(); bargainResult_ = rawValue; 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 emu.grasscutter.net.proto.BargainOfferPriceRspOuterClass.internal_static_BargainOfferPriceRsp_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return emu.grasscutter.net.proto.BargainOfferPriceRspOuterClass.internal_static_BargainOfferPriceRsp_fieldAccessorTable .ensureFieldAccessorsInitialized( emu.grasscutter.net.proto.BargainOfferPriceRspOuterClass.BargainOfferPriceRsp.class, emu.grasscutter.net.proto.BargainOfferPriceRspOuterClass.BargainOfferPriceRsp.Builder.class); } public static final int CUR_MOOD_FIELD_NUMBER = 6; private int curMood_; /** *
int32 cur_mood = 6;
* @return The curMood.
*/
@java.lang.Override
public int getCurMood() {
return curMood_;
}
public static final int RETCODE_FIELD_NUMBER = 5;
private int retcode_;
/**
* int32 retcode = 5;
* @return The retcode.
*/
@java.lang.Override
public int getRetcode() {
return retcode_;
}
public static final int BARGAIN_RESULT_FIELD_NUMBER = 15;
private int bargainResult_;
/**
* .BargainResultType bargain_result = 15;
* @return The enum numeric value on the wire for bargainResult.
*/
@java.lang.Override public int getBargainResultValue() {
return bargainResult_;
}
/**
* .BargainResultType bargain_result = 15;
* @return The bargainResult.
*/
@java.lang.Override public emu.grasscutter.net.proto.BargainResultTypeOuterClass.BargainResultType getBargainResult() {
@SuppressWarnings("deprecation")
emu.grasscutter.net.proto.BargainResultTypeOuterClass.BargainResultType result = emu.grasscutter.net.proto.BargainResultTypeOuterClass.BargainResultType.valueOf(bargainResult_);
return result == null ? emu.grasscutter.net.proto.BargainResultTypeOuterClass.BargainResultType.UNRECOGNIZED : result;
}
public static final int RESULT_PARAM_FIELD_NUMBER = 11;
private int resultParam_;
/**
* uint32 result_param = 11;
* @return The resultParam.
*/
@java.lang.Override
public int getResultParam() {
return resultParam_;
}
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 (retcode_ != 0) {
output.writeInt32(5, retcode_);
}
if (curMood_ != 0) {
output.writeInt32(6, curMood_);
}
if (resultParam_ != 0) {
output.writeUInt32(11, resultParam_);
}
if (bargainResult_ != emu.grasscutter.net.proto.BargainResultTypeOuterClass.BargainResultType.BARGAIN_COMPLETE_SUCC.getNumber()) {
output.writeEnum(15, bargainResult_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (retcode_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(5, retcode_);
}
if (curMood_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(6, curMood_);
}
if (resultParam_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(11, resultParam_);
}
if (bargainResult_ != emu.grasscutter.net.proto.BargainResultTypeOuterClass.BargainResultType.BARGAIN_COMPLETE_SUCC.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(15, bargainResult_);
}
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 emu.grasscutter.net.proto.BargainOfferPriceRspOuterClass.BargainOfferPriceRsp)) {
return super.equals(obj);
}
emu.grasscutter.net.proto.BargainOfferPriceRspOuterClass.BargainOfferPriceRsp other = (emu.grasscutter.net.proto.BargainOfferPriceRspOuterClass.BargainOfferPriceRsp) obj;
if (getCurMood()
!= other.getCurMood()) return false;
if (getRetcode()
!= other.getRetcode()) return false;
if (bargainResult_ != other.bargainResult_) return false;
if (getResultParam()
!= other.getResultParam()) 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();
hash = (37 * hash) + CUR_MOOD_FIELD_NUMBER;
hash = (53 * hash) + getCurMood();
hash = (37 * hash) + RETCODE_FIELD_NUMBER;
hash = (53 * hash) + getRetcode();
hash = (37 * hash) + BARGAIN_RESULT_FIELD_NUMBER;
hash = (53 * hash) + bargainResult_;
hash = (37 * hash) + RESULT_PARAM_FIELD_NUMBER;
hash = (53 * hash) + getResultParam();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static emu.grasscutter.net.proto.BargainOfferPriceRspOuterClass.BargainOfferPriceRsp parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.BargainOfferPriceRspOuterClass.BargainOfferPriceRsp parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static emu.grasscutter.net.proto.BargainOfferPriceRspOuterClass.BargainOfferPriceRsp parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.BargainOfferPriceRspOuterClass.BargainOfferPriceRsp parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static emu.grasscutter.net.proto.BargainOfferPriceRspOuterClass.BargainOfferPriceRsp parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.BargainOfferPriceRspOuterClass.BargainOfferPriceRsp parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static emu.grasscutter.net.proto.BargainOfferPriceRspOuterClass.BargainOfferPriceRsp parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.BargainOfferPriceRspOuterClass.BargainOfferPriceRsp 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 emu.grasscutter.net.proto.BargainOfferPriceRspOuterClass.BargainOfferPriceRsp parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.BargainOfferPriceRspOuterClass.BargainOfferPriceRsp 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 emu.grasscutter.net.proto.BargainOfferPriceRspOuterClass.BargainOfferPriceRsp parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.BargainOfferPriceRspOuterClass.BargainOfferPriceRsp 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(emu.grasscutter.net.proto.BargainOfferPriceRspOuterClass.BargainOfferPriceRsp 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;
}
/**
* * CmdId: 476 * Obf: LDAHLOOJGPD ** * Protobuf type {@code BargainOfferPriceRsp} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder
int32 cur_mood = 6;
* @return The curMood.
*/
@java.lang.Override
public int getCurMood() {
return curMood_;
}
/**
* int32 cur_mood = 6;
* @param value The curMood to set.
* @return This builder for chaining.
*/
public Builder setCurMood(int value) {
curMood_ = value;
onChanged();
return this;
}
/**
* int32 cur_mood = 6;
* @return This builder for chaining.
*/
public Builder clearCurMood() {
curMood_ = 0;
onChanged();
return this;
}
private int retcode_ ;
/**
* int32 retcode = 5;
* @return The retcode.
*/
@java.lang.Override
public int getRetcode() {
return retcode_;
}
/**
* int32 retcode = 5;
* @param value The retcode to set.
* @return This builder for chaining.
*/
public Builder setRetcode(int value) {
retcode_ = value;
onChanged();
return this;
}
/**
* int32 retcode = 5;
* @return This builder for chaining.
*/
public Builder clearRetcode() {
retcode_ = 0;
onChanged();
return this;
}
private int bargainResult_ = 0;
/**
* .BargainResultType bargain_result = 15;
* @return The enum numeric value on the wire for bargainResult.
*/
@java.lang.Override public int getBargainResultValue() {
return bargainResult_;
}
/**
* .BargainResultType bargain_result = 15;
* @param value The enum numeric value on the wire for bargainResult to set.
* @return This builder for chaining.
*/
public Builder setBargainResultValue(int value) {
bargainResult_ = value;
onChanged();
return this;
}
/**
* .BargainResultType bargain_result = 15;
* @return The bargainResult.
*/
@java.lang.Override
public emu.grasscutter.net.proto.BargainResultTypeOuterClass.BargainResultType getBargainResult() {
@SuppressWarnings("deprecation")
emu.grasscutter.net.proto.BargainResultTypeOuterClass.BargainResultType result = emu.grasscutter.net.proto.BargainResultTypeOuterClass.BargainResultType.valueOf(bargainResult_);
return result == null ? emu.grasscutter.net.proto.BargainResultTypeOuterClass.BargainResultType.UNRECOGNIZED : result;
}
/**
* .BargainResultType bargain_result = 15;
* @param value The bargainResult to set.
* @return This builder for chaining.
*/
public Builder setBargainResult(emu.grasscutter.net.proto.BargainResultTypeOuterClass.BargainResultType value) {
if (value == null) {
throw new NullPointerException();
}
bargainResult_ = value.getNumber();
onChanged();
return this;
}
/**
* .BargainResultType bargain_result = 15;
* @return This builder for chaining.
*/
public Builder clearBargainResult() {
bargainResult_ = 0;
onChanged();
return this;
}
private int resultParam_ ;
/**
* uint32 result_param = 11;
* @return The resultParam.
*/
@java.lang.Override
public int getResultParam() {
return resultParam_;
}
/**
* uint32 result_param = 11;
* @param value The resultParam to set.
* @return This builder for chaining.
*/
public Builder setResultParam(int value) {
resultParam_ = value;
onChanged();
return this;
}
/**
* uint32 result_param = 11;
* @return This builder for chaining.
*/
public Builder clearResultParam() {
resultParam_ = 0;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:BargainOfferPriceRsp)
}
// @@protoc_insertion_point(class_scope:BargainOfferPriceRsp)
private static final emu.grasscutter.net.proto.BargainOfferPriceRspOuterClass.BargainOfferPriceRsp DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new emu.grasscutter.net.proto.BargainOfferPriceRspOuterClass.BargainOfferPriceRsp();
}
public static emu.grasscutter.net.proto.BargainOfferPriceRspOuterClass.BargainOfferPriceRsp getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser