// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: GCGMsgDiceReroll.proto
package emu.grasscutter.net.proto;
public final class GCGMsgDiceRerollOuterClass {
private GCGMsgDiceRerollOuterClass() {}
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 GCGMsgDiceRerollOrBuilder extends
// @@protoc_insertion_point(interface_extends:GCGMsgDiceReroll)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .GCGDiceSideType dice_side_list = 1;
* @return A list containing the diceSideList.
*/
java.util.List getDiceSideListList();
/**
* repeated .GCGDiceSideType dice_side_list = 1;
* @return The count of diceSideList.
*/
int getDiceSideListCount();
/**
* repeated .GCGDiceSideType dice_side_list = 1;
* @param index The index of the element to return.
* @return The diceSideList at the given index.
*/
emu.grasscutter.net.proto.GCGDiceSideTypeOuterClass.GCGDiceSideType getDiceSideList(int index);
/**
* repeated .GCGDiceSideType dice_side_list = 1;
* @return A list containing the enum numeric values on the wire for diceSideList.
*/
java.util.List
getDiceSideListValueList();
/**
* repeated .GCGDiceSideType dice_side_list = 1;
* @param index The index of the value to return.
* @return The enum numeric value on the wire of diceSideList at the given index.
*/
int getDiceSideListValue(int index);
/**
* repeated uint32 select_dice_index_list = 8;
* @return A list containing the selectDiceIndexList.
*/
java.util.List getSelectDiceIndexListList();
/**
* repeated uint32 select_dice_index_list = 8;
* @return The count of selectDiceIndexList.
*/
int getSelectDiceIndexListCount();
/**
* repeated uint32 select_dice_index_list = 8;
* @param index The index of the element to return.
* @return The selectDiceIndexList at the given index.
*/
int getSelectDiceIndexList(int index);
/**
* uint32 controller_id = 15;
* @return The controllerId.
*/
int getControllerId();
}
/**
*
* Obf: DBHOHKMKEPA
*
*
* Protobuf type {@code GCGMsgDiceReroll}
*/
public static final class GCGMsgDiceReroll extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:GCGMsgDiceReroll)
GCGMsgDiceRerollOrBuilder {
private static final long serialVersionUID = 0L;
// Use GCGMsgDiceReroll.newBuilder() to construct.
private GCGMsgDiceReroll(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private GCGMsgDiceReroll() {
diceSideList_ = java.util.Collections.emptyList();
selectDiceIndexList_ = emptyIntList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new GCGMsgDiceReroll();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private GCGMsgDiceReroll(
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 8: {
int rawValue = input.readEnum();
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
diceSideList_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
diceSideList_.add(rawValue);
break;
}
case 10: {
int length = input.readRawVarint32();
int oldLimit = input.pushLimit(length);
while(input.getBytesUntilLimit() > 0) {
int rawValue = input.readEnum();
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
diceSideList_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
diceSideList_.add(rawValue);
}
input.popLimit(oldLimit);
break;
}
case 64: {
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
selectDiceIndexList_ = newIntList();
mutable_bitField0_ |= 0x00000002;
}
selectDiceIndexList_.addInt(input.readUInt32());
break;
}
case 66: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000002) != 0) && input.getBytesUntilLimit() > 0) {
selectDiceIndexList_ = newIntList();
mutable_bitField0_ |= 0x00000002;
}
while (input.getBytesUntilLimit() > 0) {
selectDiceIndexList_.addInt(input.readUInt32());
}
input.popLimit(limit);
break;
}
case 120: {
controllerId_ = 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)) {
diceSideList_ = java.util.Collections.unmodifiableList(diceSideList_);
}
if (((mutable_bitField0_ & 0x00000002) != 0)) {
selectDiceIndexList_.makeImmutable(); // C
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return emu.grasscutter.net.proto.GCGMsgDiceRerollOuterClass.internal_static_GCGMsgDiceReroll_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return emu.grasscutter.net.proto.GCGMsgDiceRerollOuterClass.internal_static_GCGMsgDiceReroll_fieldAccessorTable
.ensureFieldAccessorsInitialized(
emu.grasscutter.net.proto.GCGMsgDiceRerollOuterClass.GCGMsgDiceReroll.class, emu.grasscutter.net.proto.GCGMsgDiceRerollOuterClass.GCGMsgDiceReroll.Builder.class);
}
public static final int DICE_SIDE_LIST_FIELD_NUMBER = 1;
private java.util.List diceSideList_;
private static final com.google.protobuf.Internal.ListAdapter.Converter<
java.lang.Integer, emu.grasscutter.net.proto.GCGDiceSideTypeOuterClass.GCGDiceSideType> diceSideList_converter_ =
new com.google.protobuf.Internal.ListAdapter.Converter<
java.lang.Integer, emu.grasscutter.net.proto.GCGDiceSideTypeOuterClass.GCGDiceSideType>() {
public emu.grasscutter.net.proto.GCGDiceSideTypeOuterClass.GCGDiceSideType convert(java.lang.Integer from) {
@SuppressWarnings("deprecation")
emu.grasscutter.net.proto.GCGDiceSideTypeOuterClass.GCGDiceSideType result = emu.grasscutter.net.proto.GCGDiceSideTypeOuterClass.GCGDiceSideType.valueOf(from);
return result == null ? emu.grasscutter.net.proto.GCGDiceSideTypeOuterClass.GCGDiceSideType.UNRECOGNIZED : result;
}
};
/**
* repeated .GCGDiceSideType dice_side_list = 1;
* @return A list containing the diceSideList.
*/
@java.lang.Override
public java.util.List getDiceSideListList() {
return new com.google.protobuf.Internal.ListAdapter<
java.lang.Integer, emu.grasscutter.net.proto.GCGDiceSideTypeOuterClass.GCGDiceSideType>(diceSideList_, diceSideList_converter_);
}
/**
* repeated .GCGDiceSideType dice_side_list = 1;
* @return The count of diceSideList.
*/
@java.lang.Override
public int getDiceSideListCount() {
return diceSideList_.size();
}
/**
* repeated .GCGDiceSideType dice_side_list = 1;
* @param index The index of the element to return.
* @return The diceSideList at the given index.
*/
@java.lang.Override
public emu.grasscutter.net.proto.GCGDiceSideTypeOuterClass.GCGDiceSideType getDiceSideList(int index) {
return diceSideList_converter_.convert(diceSideList_.get(index));
}
/**
* repeated .GCGDiceSideType dice_side_list = 1;
* @return A list containing the enum numeric values on the wire for diceSideList.
*/
@java.lang.Override
public java.util.List
getDiceSideListValueList() {
return diceSideList_;
}
/**
* repeated .GCGDiceSideType dice_side_list = 1;
* @param index The index of the value to return.
* @return The enum numeric value on the wire of diceSideList at the given index.
*/
@java.lang.Override
public int getDiceSideListValue(int index) {
return diceSideList_.get(index);
}
private int diceSideListMemoizedSerializedSize;
public static final int SELECT_DICE_INDEX_LIST_FIELD_NUMBER = 8;
private com.google.protobuf.Internal.IntList selectDiceIndexList_;
/**
* repeated uint32 select_dice_index_list = 8;
* @return A list containing the selectDiceIndexList.
*/
@java.lang.Override
public java.util.List
getSelectDiceIndexListList() {
return selectDiceIndexList_;
}
/**
* repeated uint32 select_dice_index_list = 8;
* @return The count of selectDiceIndexList.
*/
public int getSelectDiceIndexListCount() {
return selectDiceIndexList_.size();
}
/**
* repeated uint32 select_dice_index_list = 8;
* @param index The index of the element to return.
* @return The selectDiceIndexList at the given index.
*/
public int getSelectDiceIndexList(int index) {
return selectDiceIndexList_.getInt(index);
}
private int selectDiceIndexListMemoizedSerializedSize = -1;
public static final int CONTROLLER_ID_FIELD_NUMBER = 15;
private int controllerId_;
/**
* uint32 controller_id = 15;
* @return The controllerId.
*/
@java.lang.Override
public int getControllerId() {
return controllerId_;
}
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 {
getSerializedSize();
if (getDiceSideListList().size() > 0) {
output.writeUInt32NoTag(10);
output.writeUInt32NoTag(diceSideListMemoizedSerializedSize);
}
for (int i = 0; i < diceSideList_.size(); i++) {
output.writeEnumNoTag(diceSideList_.get(i));
}
if (getSelectDiceIndexListList().size() > 0) {
output.writeUInt32NoTag(66);
output.writeUInt32NoTag(selectDiceIndexListMemoizedSerializedSize);
}
for (int i = 0; i < selectDiceIndexList_.size(); i++) {
output.writeUInt32NoTag(selectDiceIndexList_.getInt(i));
}
if (controllerId_ != 0) {
output.writeUInt32(15, controllerId_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
{
int dataSize = 0;
for (int i = 0; i < diceSideList_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeEnumSizeNoTag(diceSideList_.get(i));
}
size += dataSize;
if (!getDiceSideListList().isEmpty()) { size += 1;
size += com.google.protobuf.CodedOutputStream
.computeUInt32SizeNoTag(dataSize);
}diceSideListMemoizedSerializedSize = dataSize;
}
{
int dataSize = 0;
for (int i = 0; i < selectDiceIndexList_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeUInt32SizeNoTag(selectDiceIndexList_.getInt(i));
}
size += dataSize;
if (!getSelectDiceIndexListList().isEmpty()) {
size += 1;
size += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
selectDiceIndexListMemoizedSerializedSize = dataSize;
}
if (controllerId_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(15, controllerId_);
}
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.GCGMsgDiceRerollOuterClass.GCGMsgDiceReroll)) {
return super.equals(obj);
}
emu.grasscutter.net.proto.GCGMsgDiceRerollOuterClass.GCGMsgDiceReroll other = (emu.grasscutter.net.proto.GCGMsgDiceRerollOuterClass.GCGMsgDiceReroll) obj;
if (!diceSideList_.equals(other.diceSideList_)) return false;
if (!getSelectDiceIndexListList()
.equals(other.getSelectDiceIndexListList())) return false;
if (getControllerId()
!= other.getControllerId()) 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 (getDiceSideListCount() > 0) {
hash = (37 * hash) + DICE_SIDE_LIST_FIELD_NUMBER;
hash = (53 * hash) + diceSideList_.hashCode();
}
if (getSelectDiceIndexListCount() > 0) {
hash = (37 * hash) + SELECT_DICE_INDEX_LIST_FIELD_NUMBER;
hash = (53 * hash) + getSelectDiceIndexListList().hashCode();
}
hash = (37 * hash) + CONTROLLER_ID_FIELD_NUMBER;
hash = (53 * hash) + getControllerId();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static emu.grasscutter.net.proto.GCGMsgDiceRerollOuterClass.GCGMsgDiceReroll parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.GCGMsgDiceRerollOuterClass.GCGMsgDiceReroll 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.GCGMsgDiceRerollOuterClass.GCGMsgDiceReroll parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.GCGMsgDiceRerollOuterClass.GCGMsgDiceReroll 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.GCGMsgDiceRerollOuterClass.GCGMsgDiceReroll parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.GCGMsgDiceRerollOuterClass.GCGMsgDiceReroll parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static emu.grasscutter.net.proto.GCGMsgDiceRerollOuterClass.GCGMsgDiceReroll parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.GCGMsgDiceRerollOuterClass.GCGMsgDiceReroll 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.GCGMsgDiceRerollOuterClass.GCGMsgDiceReroll parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.GCGMsgDiceRerollOuterClass.GCGMsgDiceReroll 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.GCGMsgDiceRerollOuterClass.GCGMsgDiceReroll parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.GCGMsgDiceRerollOuterClass.GCGMsgDiceReroll 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.GCGMsgDiceRerollOuterClass.GCGMsgDiceReroll 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: DBHOHKMKEPA
*
*
* Protobuf type {@code GCGMsgDiceReroll}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:GCGMsgDiceReroll)
emu.grasscutter.net.proto.GCGMsgDiceRerollOuterClass.GCGMsgDiceRerollOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return emu.grasscutter.net.proto.GCGMsgDiceRerollOuterClass.internal_static_GCGMsgDiceReroll_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return emu.grasscutter.net.proto.GCGMsgDiceRerollOuterClass.internal_static_GCGMsgDiceReroll_fieldAccessorTable
.ensureFieldAccessorsInitialized(
emu.grasscutter.net.proto.GCGMsgDiceRerollOuterClass.GCGMsgDiceReroll.class, emu.grasscutter.net.proto.GCGMsgDiceRerollOuterClass.GCGMsgDiceReroll.Builder.class);
}
// Construct using emu.grasscutter.net.proto.GCGMsgDiceRerollOuterClass.GCGMsgDiceReroll.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
diceSideList_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
selectDiceIndexList_ = emptyIntList();
bitField0_ = (bitField0_ & ~0x00000002);
controllerId_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return emu.grasscutter.net.proto.GCGMsgDiceRerollOuterClass.internal_static_GCGMsgDiceReroll_descriptor;
}
@java.lang.Override
public emu.grasscutter.net.proto.GCGMsgDiceRerollOuterClass.GCGMsgDiceReroll getDefaultInstanceForType() {
return emu.grasscutter.net.proto.GCGMsgDiceRerollOuterClass.GCGMsgDiceReroll.getDefaultInstance();
}
@java.lang.Override
public emu.grasscutter.net.proto.GCGMsgDiceRerollOuterClass.GCGMsgDiceReroll build() {
emu.grasscutter.net.proto.GCGMsgDiceRerollOuterClass.GCGMsgDiceReroll result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public emu.grasscutter.net.proto.GCGMsgDiceRerollOuterClass.GCGMsgDiceReroll buildPartial() {
emu.grasscutter.net.proto.GCGMsgDiceRerollOuterClass.GCGMsgDiceReroll result = new emu.grasscutter.net.proto.GCGMsgDiceRerollOuterClass.GCGMsgDiceReroll(this);
int from_bitField0_ = bitField0_;
if (((bitField0_ & 0x00000001) != 0)) {
diceSideList_ = java.util.Collections.unmodifiableList(diceSideList_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.diceSideList_ = diceSideList_;
if (((bitField0_ & 0x00000002) != 0)) {
selectDiceIndexList_.makeImmutable();
bitField0_ = (bitField0_ & ~0x00000002);
}
result.selectDiceIndexList_ = selectDiceIndexList_;
result.controllerId_ = controllerId_;
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.GCGMsgDiceRerollOuterClass.GCGMsgDiceReroll) {
return mergeFrom((emu.grasscutter.net.proto.GCGMsgDiceRerollOuterClass.GCGMsgDiceReroll)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(emu.grasscutter.net.proto.GCGMsgDiceRerollOuterClass.GCGMsgDiceReroll other) {
if (other == emu.grasscutter.net.proto.GCGMsgDiceRerollOuterClass.GCGMsgDiceReroll.getDefaultInstance()) return this;
if (!other.diceSideList_.isEmpty()) {
if (diceSideList_.isEmpty()) {
diceSideList_ = other.diceSideList_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureDiceSideListIsMutable();
diceSideList_.addAll(other.diceSideList_);
}
onChanged();
}
if (!other.selectDiceIndexList_.isEmpty()) {
if (selectDiceIndexList_.isEmpty()) {
selectDiceIndexList_ = other.selectDiceIndexList_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureSelectDiceIndexListIsMutable();
selectDiceIndexList_.addAll(other.selectDiceIndexList_);
}
onChanged();
}
if (other.getControllerId() != 0) {
setControllerId(other.getControllerId());
}
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.GCGMsgDiceRerollOuterClass.GCGMsgDiceReroll parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (emu.grasscutter.net.proto.GCGMsgDiceRerollOuterClass.GCGMsgDiceReroll) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List diceSideList_ =
java.util.Collections.emptyList();
private void ensureDiceSideListIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
diceSideList_ = new java.util.ArrayList(diceSideList_);
bitField0_ |= 0x00000001;
}
}
/**
* repeated .GCGDiceSideType dice_side_list = 1;
* @return A list containing the diceSideList.
*/
public java.util.List getDiceSideListList() {
return new com.google.protobuf.Internal.ListAdapter<
java.lang.Integer, emu.grasscutter.net.proto.GCGDiceSideTypeOuterClass.GCGDiceSideType>(diceSideList_, diceSideList_converter_);
}
/**
* repeated .GCGDiceSideType dice_side_list = 1;
* @return The count of diceSideList.
*/
public int getDiceSideListCount() {
return diceSideList_.size();
}
/**
* repeated .GCGDiceSideType dice_side_list = 1;
* @param index The index of the element to return.
* @return The diceSideList at the given index.
*/
public emu.grasscutter.net.proto.GCGDiceSideTypeOuterClass.GCGDiceSideType getDiceSideList(int index) {
return diceSideList_converter_.convert(diceSideList_.get(index));
}
/**
* repeated .GCGDiceSideType dice_side_list = 1;
* @param index The index to set the value at.
* @param value The diceSideList to set.
* @return This builder for chaining.
*/
public Builder setDiceSideList(
int index, emu.grasscutter.net.proto.GCGDiceSideTypeOuterClass.GCGDiceSideType value) {
if (value == null) {
throw new NullPointerException();
}
ensureDiceSideListIsMutable();
diceSideList_.set(index, value.getNumber());
onChanged();
return this;
}
/**
* repeated .GCGDiceSideType dice_side_list = 1;
* @param value The diceSideList to add.
* @return This builder for chaining.
*/
public Builder addDiceSideList(emu.grasscutter.net.proto.GCGDiceSideTypeOuterClass.GCGDiceSideType value) {
if (value == null) {
throw new NullPointerException();
}
ensureDiceSideListIsMutable();
diceSideList_.add(value.getNumber());
onChanged();
return this;
}
/**
* repeated .GCGDiceSideType dice_side_list = 1;
* @param values The diceSideList to add.
* @return This builder for chaining.
*/
public Builder addAllDiceSideList(
java.lang.Iterable extends emu.grasscutter.net.proto.GCGDiceSideTypeOuterClass.GCGDiceSideType> values) {
ensureDiceSideListIsMutable();
for (emu.grasscutter.net.proto.GCGDiceSideTypeOuterClass.GCGDiceSideType value : values) {
diceSideList_.add(value.getNumber());
}
onChanged();
return this;
}
/**
* repeated .GCGDiceSideType dice_side_list = 1;
* @return This builder for chaining.
*/
public Builder clearDiceSideList() {
diceSideList_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
/**
* repeated .GCGDiceSideType dice_side_list = 1;
* @return A list containing the enum numeric values on the wire for diceSideList.
*/
public java.util.List
getDiceSideListValueList() {
return java.util.Collections.unmodifiableList(diceSideList_);
}
/**
* repeated .GCGDiceSideType dice_side_list = 1;
* @param index The index of the value to return.
* @return The enum numeric value on the wire of diceSideList at the given index.
*/
public int getDiceSideListValue(int index) {
return diceSideList_.get(index);
}
/**
* repeated .GCGDiceSideType dice_side_list = 1;
* @param index The index of the value to return.
* @return The enum numeric value on the wire of diceSideList at the given index.
* @return This builder for chaining.
*/
public Builder setDiceSideListValue(
int index, int value) {
ensureDiceSideListIsMutable();
diceSideList_.set(index, value);
onChanged();
return this;
}
/**
* repeated .GCGDiceSideType dice_side_list = 1;
* @param value The enum numeric value on the wire for diceSideList to add.
* @return This builder for chaining.
*/
public Builder addDiceSideListValue(int value) {
ensureDiceSideListIsMutable();
diceSideList_.add(value);
onChanged();
return this;
}
/**
* repeated .GCGDiceSideType dice_side_list = 1;
* @param values The enum numeric values on the wire for diceSideList to add.
* @return This builder for chaining.
*/
public Builder addAllDiceSideListValue(
java.lang.Iterable values) {
ensureDiceSideListIsMutable();
for (int value : values) {
diceSideList_.add(value);
}
onChanged();
return this;
}
private com.google.protobuf.Internal.IntList selectDiceIndexList_ = emptyIntList();
private void ensureSelectDiceIndexListIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
selectDiceIndexList_ = mutableCopy(selectDiceIndexList_);
bitField0_ |= 0x00000002;
}
}
/**
* repeated uint32 select_dice_index_list = 8;
* @return A list containing the selectDiceIndexList.
*/
public java.util.List
getSelectDiceIndexListList() {
return ((bitField0_ & 0x00000002) != 0) ?
java.util.Collections.unmodifiableList(selectDiceIndexList_) : selectDiceIndexList_;
}
/**
* repeated uint32 select_dice_index_list = 8;
* @return The count of selectDiceIndexList.
*/
public int getSelectDiceIndexListCount() {
return selectDiceIndexList_.size();
}
/**
* repeated uint32 select_dice_index_list = 8;
* @param index The index of the element to return.
* @return The selectDiceIndexList at the given index.
*/
public int getSelectDiceIndexList(int index) {
return selectDiceIndexList_.getInt(index);
}
/**
* repeated uint32 select_dice_index_list = 8;
* @param index The index to set the value at.
* @param value The selectDiceIndexList to set.
* @return This builder for chaining.
*/
public Builder setSelectDiceIndexList(
int index, int value) {
ensureSelectDiceIndexListIsMutable();
selectDiceIndexList_.setInt(index, value);
onChanged();
return this;
}
/**
* repeated uint32 select_dice_index_list = 8;
* @param value The selectDiceIndexList to add.
* @return This builder for chaining.
*/
public Builder addSelectDiceIndexList(int value) {
ensureSelectDiceIndexListIsMutable();
selectDiceIndexList_.addInt(value);
onChanged();
return this;
}
/**
* repeated uint32 select_dice_index_list = 8;
* @param values The selectDiceIndexList to add.
* @return This builder for chaining.
*/
public Builder addAllSelectDiceIndexList(
java.lang.Iterable extends java.lang.Integer> values) {
ensureSelectDiceIndexListIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, selectDiceIndexList_);
onChanged();
return this;
}
/**
* repeated uint32 select_dice_index_list = 8;
* @return This builder for chaining.
*/
public Builder clearSelectDiceIndexList() {
selectDiceIndexList_ = emptyIntList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
private int controllerId_ ;
/**
* uint32 controller_id = 15;
* @return The controllerId.
*/
@java.lang.Override
public int getControllerId() {
return controllerId_;
}
/**
* uint32 controller_id = 15;
* @param value The controllerId to set.
* @return This builder for chaining.
*/
public Builder setControllerId(int value) {
controllerId_ = value;
onChanged();
return this;
}
/**
* uint32 controller_id = 15;
* @return This builder for chaining.
*/
public Builder clearControllerId() {
controllerId_ = 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:GCGMsgDiceReroll)
}
// @@protoc_insertion_point(class_scope:GCGMsgDiceReroll)
private static final emu.grasscutter.net.proto.GCGMsgDiceRerollOuterClass.GCGMsgDiceReroll DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new emu.grasscutter.net.proto.GCGMsgDiceRerollOuterClass.GCGMsgDiceReroll();
}
public static emu.grasscutter.net.proto.GCGMsgDiceRerollOuterClass.GCGMsgDiceReroll getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public GCGMsgDiceReroll parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new GCGMsgDiceReroll(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.GCGMsgDiceRerollOuterClass.GCGMsgDiceReroll getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_GCGMsgDiceReroll_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_GCGMsgDiceReroll_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\026GCGMsgDiceReroll.proto\032\025GCGDiceSideTyp" +
"e.proto\"s\n\020GCGMsgDiceReroll\022(\n\016dice_side" +
"_list\030\001 \003(\0162\020.GCGDiceSideType\022\036\n\026select_" +
"dice_index_list\030\010 \003(\r\022\025\n\rcontroller_id\030\017" +
" \001(\rB\033\n\031emu.grasscutter.net.protob\006proto" +
"3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
emu.grasscutter.net.proto.GCGDiceSideTypeOuterClass.getDescriptor(),
});
internal_static_GCGMsgDiceReroll_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_GCGMsgDiceReroll_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_GCGMsgDiceReroll_descriptor,
new java.lang.String[] { "DiceSideList", "SelectDiceIndexList", "ControllerId", });
emu.grasscutter.net.proto.GCGDiceSideTypeOuterClass.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}