emu.grasscutter.net.proto.GCGPlayCardCostInfoOuterClass Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of grasscutter Show documentation
Show all versions of grasscutter Show documentation
A server software reimplementation for an anime game.
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: GCGPlayCardCostInfo.proto
package emu.grasscutter.net.proto;
public final class GCGPlayCardCostInfoOuterClass {
private GCGPlayCardCostInfoOuterClass() {}
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 GCGPlayCardCostInfoOrBuilder extends
// @@protoc_insertion_point(interface_extends:GCGPlayCardCostInfo)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .Uint32Pair cost_map = 7;
*/
java.util.List
getCostMapList();
/**
* repeated .Uint32Pair cost_map = 7;
*/
emu.grasscutter.net.proto.Uint32PairOuterClass.Uint32Pair getCostMap(int index);
/**
* repeated .Uint32Pair cost_map = 7;
*/
int getCostMapCount();
/**
* repeated .Uint32Pair cost_map = 7;
*/
java.util.List extends emu.grasscutter.net.proto.Uint32PairOuterClass.Uint32PairOrBuilder>
getCostMapOrBuilderList();
/**
* repeated .Uint32Pair cost_map = 7;
*/
emu.grasscutter.net.proto.Uint32PairOuterClass.Uint32PairOrBuilder getCostMapOrBuilder(
int index);
/**
* uint32 card_id = 11;
* @return The cardId.
*/
int getCardId();
}
/**
*
* Obf: COFFEJPLHGB
*
*
* Protobuf type {@code GCGPlayCardCostInfo}
*/
public static final class GCGPlayCardCostInfo extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:GCGPlayCardCostInfo)
GCGPlayCardCostInfoOrBuilder {
private static final long serialVersionUID = 0L;
// Use GCGPlayCardCostInfo.newBuilder() to construct.
private GCGPlayCardCostInfo(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GCGPlayCardCostInfo() {
costMap_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new GCGPlayCardCostInfo();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private GCGPlayCardCostInfo(
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 58: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
costMap_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
costMap_.add(
input.readMessage(emu.grasscutter.net.proto.Uint32PairOuterClass.Uint32Pair.parser(), extensionRegistry));
break;
}
case 88: {
cardId_ = input.readUInt32();
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) != 0)) {
costMap_ = java.util.Collections.unmodifiableList(costMap_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return emu.grasscutter.net.proto.GCGPlayCardCostInfoOuterClass.internal_static_GCGPlayCardCostInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return emu.grasscutter.net.proto.GCGPlayCardCostInfoOuterClass.internal_static_GCGPlayCardCostInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
emu.grasscutter.net.proto.GCGPlayCardCostInfoOuterClass.GCGPlayCardCostInfo.class, emu.grasscutter.net.proto.GCGPlayCardCostInfoOuterClass.GCGPlayCardCostInfo.Builder.class);
}
public static final int COST_MAP_FIELD_NUMBER = 7;
private java.util.List costMap_;
/**
* repeated .Uint32Pair cost_map = 7;
*/
@java.lang.Override
public java.util.List getCostMapList() {
return costMap_;
}
/**
* repeated .Uint32Pair cost_map = 7;
*/
@java.lang.Override
public java.util.List extends emu.grasscutter.net.proto.Uint32PairOuterClass.Uint32PairOrBuilder>
getCostMapOrBuilderList() {
return costMap_;
}
/**
* repeated .Uint32Pair cost_map = 7;
*/
@java.lang.Override
public int getCostMapCount() {
return costMap_.size();
}
/**
* repeated .Uint32Pair cost_map = 7;
*/
@java.lang.Override
public emu.grasscutter.net.proto.Uint32PairOuterClass.Uint32Pair getCostMap(int index) {
return costMap_.get(index);
}
/**
* repeated .Uint32Pair cost_map = 7;
*/
@java.lang.Override
public emu.grasscutter.net.proto.Uint32PairOuterClass.Uint32PairOrBuilder getCostMapOrBuilder(
int index) {
return costMap_.get(index);
}
public static final int CARD_ID_FIELD_NUMBER = 11;
private int cardId_;
/**
* uint32 card_id = 11;
* @return The cardId.
*/
@java.lang.Override
public int getCardId() {
return cardId_;
}
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 {
for (int i = 0; i < costMap_.size(); i++) {
output.writeMessage(7, costMap_.get(i));
}
if (cardId_ != 0) {
output.writeUInt32(11, cardId_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < costMap_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(7, costMap_.get(i));
}
if (cardId_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(11, cardId_);
}
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.GCGPlayCardCostInfoOuterClass.GCGPlayCardCostInfo)) {
return super.equals(obj);
}
emu.grasscutter.net.proto.GCGPlayCardCostInfoOuterClass.GCGPlayCardCostInfo other = (emu.grasscutter.net.proto.GCGPlayCardCostInfoOuterClass.GCGPlayCardCostInfo) obj;
if (!getCostMapList()
.equals(other.getCostMapList())) return false;
if (getCardId()
!= other.getCardId()) 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 (getCostMapCount() > 0) {
hash = (37 * hash) + COST_MAP_FIELD_NUMBER;
hash = (53 * hash) + getCostMapList().hashCode();
}
hash = (37 * hash) + CARD_ID_FIELD_NUMBER;
hash = (53 * hash) + getCardId();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static emu.grasscutter.net.proto.GCGPlayCardCostInfoOuterClass.GCGPlayCardCostInfo parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.GCGPlayCardCostInfoOuterClass.GCGPlayCardCostInfo 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.GCGPlayCardCostInfoOuterClass.GCGPlayCardCostInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.GCGPlayCardCostInfoOuterClass.GCGPlayCardCostInfo 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.GCGPlayCardCostInfoOuterClass.GCGPlayCardCostInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.GCGPlayCardCostInfoOuterClass.GCGPlayCardCostInfo parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static emu.grasscutter.net.proto.GCGPlayCardCostInfoOuterClass.GCGPlayCardCostInfo parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.GCGPlayCardCostInfoOuterClass.GCGPlayCardCostInfo 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.GCGPlayCardCostInfoOuterClass.GCGPlayCardCostInfo parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.GCGPlayCardCostInfoOuterClass.GCGPlayCardCostInfo 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.GCGPlayCardCostInfoOuterClass.GCGPlayCardCostInfo parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.GCGPlayCardCostInfoOuterClass.GCGPlayCardCostInfo 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.GCGPlayCardCostInfoOuterClass.GCGPlayCardCostInfo 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;
}
/**
*
* Obf: COFFEJPLHGB
*
*
* Protobuf type {@code GCGPlayCardCostInfo}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:GCGPlayCardCostInfo)
emu.grasscutter.net.proto.GCGPlayCardCostInfoOuterClass.GCGPlayCardCostInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return emu.grasscutter.net.proto.GCGPlayCardCostInfoOuterClass.internal_static_GCGPlayCardCostInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return emu.grasscutter.net.proto.GCGPlayCardCostInfoOuterClass.internal_static_GCGPlayCardCostInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
emu.grasscutter.net.proto.GCGPlayCardCostInfoOuterClass.GCGPlayCardCostInfo.class, emu.grasscutter.net.proto.GCGPlayCardCostInfoOuterClass.GCGPlayCardCostInfo.Builder.class);
}
// Construct using emu.grasscutter.net.proto.GCGPlayCardCostInfoOuterClass.GCGPlayCardCostInfo.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getCostMapFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (costMapBuilder_ == null) {
costMap_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
costMapBuilder_.clear();
}
cardId_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return emu.grasscutter.net.proto.GCGPlayCardCostInfoOuterClass.internal_static_GCGPlayCardCostInfo_descriptor;
}
@java.lang.Override
public emu.grasscutter.net.proto.GCGPlayCardCostInfoOuterClass.GCGPlayCardCostInfo getDefaultInstanceForType() {
return emu.grasscutter.net.proto.GCGPlayCardCostInfoOuterClass.GCGPlayCardCostInfo.getDefaultInstance();
}
@java.lang.Override
public emu.grasscutter.net.proto.GCGPlayCardCostInfoOuterClass.GCGPlayCardCostInfo build() {
emu.grasscutter.net.proto.GCGPlayCardCostInfoOuterClass.GCGPlayCardCostInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public emu.grasscutter.net.proto.GCGPlayCardCostInfoOuterClass.GCGPlayCardCostInfo buildPartial() {
emu.grasscutter.net.proto.GCGPlayCardCostInfoOuterClass.GCGPlayCardCostInfo result = new emu.grasscutter.net.proto.GCGPlayCardCostInfoOuterClass.GCGPlayCardCostInfo(this);
int from_bitField0_ = bitField0_;
if (costMapBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
costMap_ = java.util.Collections.unmodifiableList(costMap_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.costMap_ = costMap_;
} else {
result.costMap_ = costMapBuilder_.build();
}
result.cardId_ = cardId_;
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 emu.grasscutter.net.proto.GCGPlayCardCostInfoOuterClass.GCGPlayCardCostInfo) {
return mergeFrom((emu.grasscutter.net.proto.GCGPlayCardCostInfoOuterClass.GCGPlayCardCostInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(emu.grasscutter.net.proto.GCGPlayCardCostInfoOuterClass.GCGPlayCardCostInfo other) {
if (other == emu.grasscutter.net.proto.GCGPlayCardCostInfoOuterClass.GCGPlayCardCostInfo.getDefaultInstance()) return this;
if (costMapBuilder_ == null) {
if (!other.costMap_.isEmpty()) {
if (costMap_.isEmpty()) {
costMap_ = other.costMap_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureCostMapIsMutable();
costMap_.addAll(other.costMap_);
}
onChanged();
}
} else {
if (!other.costMap_.isEmpty()) {
if (costMapBuilder_.isEmpty()) {
costMapBuilder_.dispose();
costMapBuilder_ = null;
costMap_ = other.costMap_;
bitField0_ = (bitField0_ & ~0x00000001);
costMapBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getCostMapFieldBuilder() : null;
} else {
costMapBuilder_.addAllMessages(other.costMap_);
}
}
}
if (other.getCardId() != 0) {
setCardId(other.getCardId());
}
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 {
emu.grasscutter.net.proto.GCGPlayCardCostInfoOuterClass.GCGPlayCardCostInfo parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (emu.grasscutter.net.proto.GCGPlayCardCostInfoOuterClass.GCGPlayCardCostInfo) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List costMap_ =
java.util.Collections.emptyList();
private void ensureCostMapIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
costMap_ = new java.util.ArrayList(costMap_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
emu.grasscutter.net.proto.Uint32PairOuterClass.Uint32Pair, emu.grasscutter.net.proto.Uint32PairOuterClass.Uint32Pair.Builder, emu.grasscutter.net.proto.Uint32PairOuterClass.Uint32PairOrBuilder> costMapBuilder_;
/**
* repeated .Uint32Pair cost_map = 7;
*/
public java.util.List getCostMapList() {
if (costMapBuilder_ == null) {
return java.util.Collections.unmodifiableList(costMap_);
} else {
return costMapBuilder_.getMessageList();
}
}
/**
* repeated .Uint32Pair cost_map = 7;
*/
public int getCostMapCount() {
if (costMapBuilder_ == null) {
return costMap_.size();
} else {
return costMapBuilder_.getCount();
}
}
/**
* repeated .Uint32Pair cost_map = 7;
*/
public emu.grasscutter.net.proto.Uint32PairOuterClass.Uint32Pair getCostMap(int index) {
if (costMapBuilder_ == null) {
return costMap_.get(index);
} else {
return costMapBuilder_.getMessage(index);
}
}
/**
* repeated .Uint32Pair cost_map = 7;
*/
public Builder setCostMap(
int index, emu.grasscutter.net.proto.Uint32PairOuterClass.Uint32Pair value) {
if (costMapBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCostMapIsMutable();
costMap_.set(index, value);
onChanged();
} else {
costMapBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .Uint32Pair cost_map = 7;
*/
public Builder setCostMap(
int index, emu.grasscutter.net.proto.Uint32PairOuterClass.Uint32Pair.Builder builderForValue) {
if (costMapBuilder_ == null) {
ensureCostMapIsMutable();
costMap_.set(index, builderForValue.build());
onChanged();
} else {
costMapBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .Uint32Pair cost_map = 7;
*/
public Builder addCostMap(emu.grasscutter.net.proto.Uint32PairOuterClass.Uint32Pair value) {
if (costMapBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCostMapIsMutable();
costMap_.add(value);
onChanged();
} else {
costMapBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .Uint32Pair cost_map = 7;
*/
public Builder addCostMap(
int index, emu.grasscutter.net.proto.Uint32PairOuterClass.Uint32Pair value) {
if (costMapBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCostMapIsMutable();
costMap_.add(index, value);
onChanged();
} else {
costMapBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .Uint32Pair cost_map = 7;
*/
public Builder addCostMap(
emu.grasscutter.net.proto.Uint32PairOuterClass.Uint32Pair.Builder builderForValue) {
if (costMapBuilder_ == null) {
ensureCostMapIsMutable();
costMap_.add(builderForValue.build());
onChanged();
} else {
costMapBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .Uint32Pair cost_map = 7;
*/
public Builder addCostMap(
int index, emu.grasscutter.net.proto.Uint32PairOuterClass.Uint32Pair.Builder builderForValue) {
if (costMapBuilder_ == null) {
ensureCostMapIsMutable();
costMap_.add(index, builderForValue.build());
onChanged();
} else {
costMapBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .Uint32Pair cost_map = 7;
*/
public Builder addAllCostMap(
java.lang.Iterable extends emu.grasscutter.net.proto.Uint32PairOuterClass.Uint32Pair> values) {
if (costMapBuilder_ == null) {
ensureCostMapIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, costMap_);
onChanged();
} else {
costMapBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .Uint32Pair cost_map = 7;
*/
public Builder clearCostMap() {
if (costMapBuilder_ == null) {
costMap_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
costMapBuilder_.clear();
}
return this;
}
/**
* repeated .Uint32Pair cost_map = 7;
*/
public Builder removeCostMap(int index) {
if (costMapBuilder_ == null) {
ensureCostMapIsMutable();
costMap_.remove(index);
onChanged();
} else {
costMapBuilder_.remove(index);
}
return this;
}
/**
* repeated .Uint32Pair cost_map = 7;
*/
public emu.grasscutter.net.proto.Uint32PairOuterClass.Uint32Pair.Builder getCostMapBuilder(
int index) {
return getCostMapFieldBuilder().getBuilder(index);
}
/**
* repeated .Uint32Pair cost_map = 7;
*/
public emu.grasscutter.net.proto.Uint32PairOuterClass.Uint32PairOrBuilder getCostMapOrBuilder(
int index) {
if (costMapBuilder_ == null) {
return costMap_.get(index); } else {
return costMapBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .Uint32Pair cost_map = 7;
*/
public java.util.List extends emu.grasscutter.net.proto.Uint32PairOuterClass.Uint32PairOrBuilder>
getCostMapOrBuilderList() {
if (costMapBuilder_ != null) {
return costMapBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(costMap_);
}
}
/**
* repeated .Uint32Pair cost_map = 7;
*/
public emu.grasscutter.net.proto.Uint32PairOuterClass.Uint32Pair.Builder addCostMapBuilder() {
return getCostMapFieldBuilder().addBuilder(
emu.grasscutter.net.proto.Uint32PairOuterClass.Uint32Pair.getDefaultInstance());
}
/**
* repeated .Uint32Pair cost_map = 7;
*/
public emu.grasscutter.net.proto.Uint32PairOuterClass.Uint32Pair.Builder addCostMapBuilder(
int index) {
return getCostMapFieldBuilder().addBuilder(
index, emu.grasscutter.net.proto.Uint32PairOuterClass.Uint32Pair.getDefaultInstance());
}
/**
* repeated .Uint32Pair cost_map = 7;
*/
public java.util.List
getCostMapBuilderList() {
return getCostMapFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
emu.grasscutter.net.proto.Uint32PairOuterClass.Uint32Pair, emu.grasscutter.net.proto.Uint32PairOuterClass.Uint32Pair.Builder, emu.grasscutter.net.proto.Uint32PairOuterClass.Uint32PairOrBuilder>
getCostMapFieldBuilder() {
if (costMapBuilder_ == null) {
costMapBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
emu.grasscutter.net.proto.Uint32PairOuterClass.Uint32Pair, emu.grasscutter.net.proto.Uint32PairOuterClass.Uint32Pair.Builder, emu.grasscutter.net.proto.Uint32PairOuterClass.Uint32PairOrBuilder>(
costMap_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
costMap_ = null;
}
return costMapBuilder_;
}
private int cardId_ ;
/**
* uint32 card_id = 11;
* @return The cardId.
*/
@java.lang.Override
public int getCardId() {
return cardId_;
}
/**
* uint32 card_id = 11;
* @param value The cardId to set.
* @return This builder for chaining.
*/
public Builder setCardId(int value) {
cardId_ = value;
onChanged();
return this;
}
/**
* uint32 card_id = 11;
* @return This builder for chaining.
*/
public Builder clearCardId() {
cardId_ = 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:GCGPlayCardCostInfo)
}
// @@protoc_insertion_point(class_scope:GCGPlayCardCostInfo)
private static final emu.grasscutter.net.proto.GCGPlayCardCostInfoOuterClass.GCGPlayCardCostInfo DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new emu.grasscutter.net.proto.GCGPlayCardCostInfoOuterClass.GCGPlayCardCostInfo();
}
public static emu.grasscutter.net.proto.GCGPlayCardCostInfoOuterClass.GCGPlayCardCostInfo getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public GCGPlayCardCostInfo parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new GCGPlayCardCostInfo(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 emu.grasscutter.net.proto.GCGPlayCardCostInfoOuterClass.GCGPlayCardCostInfo getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_GCGPlayCardCostInfo_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_GCGPlayCardCostInfo_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\031GCGPlayCardCostInfo.proto\032\020Uint32Pair." +
"proto\"E\n\023GCGPlayCardCostInfo\022\035\n\010cost_map" +
"\030\007 \003(\0132\013.Uint32Pair\022\017\n\007card_id\030\013 \001(\rB\033\n\031" +
"emu.grasscutter.net.protob\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
emu.grasscutter.net.proto.Uint32PairOuterClass.getDescriptor(),
});
internal_static_GCGPlayCardCostInfo_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_GCGPlayCardCostInfo_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_GCGPlayCardCostInfo_descriptor,
new java.lang.String[] { "CostMap", "CardId", });
emu.grasscutter.net.proto.Uint32PairOuterClass.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}