emu.grasscutter.net.proto.RegionSearchInfoOuterClass 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: RegionSearchInfo.proto
package emu.grasscutter.net.proto;
public final class RegionSearchInfoOuterClass {
private RegionSearchInfoOuterClass() {}
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 RegionSearchInfoOrBuilder extends
// @@protoc_insertion_point(interface_extends:RegionSearchInfo)
com.google.protobuf.MessageOrBuilder {
/**
* uint32 id = 10;
* @return The id.
*/
int getId();
/**
* bool is_entered = 2;
* @return The isEntered.
*/
boolean getIsEntered();
/**
* repeated .RegionSearch region_search_list = 9;
*/
java.util.List
getRegionSearchListList();
/**
* repeated .RegionSearch region_search_list = 9;
*/
emu.grasscutter.net.proto.RegionSearchOuterClass.RegionSearch getRegionSearchList(int index);
/**
* repeated .RegionSearch region_search_list = 9;
*/
int getRegionSearchListCount();
/**
* repeated .RegionSearch region_search_list = 9;
*/
java.util.List extends emu.grasscutter.net.proto.RegionSearchOuterClass.RegionSearchOrBuilder>
getRegionSearchListOrBuilderList();
/**
* repeated .RegionSearch region_search_list = 9;
*/
emu.grasscutter.net.proto.RegionSearchOuterClass.RegionSearchOrBuilder getRegionSearchListOrBuilder(
int index);
}
/**
*
* Obf: DHHDMABOCLM
*
*
* Protobuf type {@code RegionSearchInfo}
*/
public static final class RegionSearchInfo extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:RegionSearchInfo)
RegionSearchInfoOrBuilder {
private static final long serialVersionUID = 0L;
// Use RegionSearchInfo.newBuilder() to construct.
private RegionSearchInfo(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private RegionSearchInfo() {
regionSearchList_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new RegionSearchInfo();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private RegionSearchInfo(
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 16: {
isEntered_ = input.readBool();
break;
}
case 74: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
regionSearchList_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
regionSearchList_.add(
input.readMessage(emu.grasscutter.net.proto.RegionSearchOuterClass.RegionSearch.parser(), extensionRegistry));
break;
}
case 80: {
id_ = 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)) {
regionSearchList_ = java.util.Collections.unmodifiableList(regionSearchList_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return emu.grasscutter.net.proto.RegionSearchInfoOuterClass.internal_static_RegionSearchInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return emu.grasscutter.net.proto.RegionSearchInfoOuterClass.internal_static_RegionSearchInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
emu.grasscutter.net.proto.RegionSearchInfoOuterClass.RegionSearchInfo.class, emu.grasscutter.net.proto.RegionSearchInfoOuterClass.RegionSearchInfo.Builder.class);
}
public static final int ID_FIELD_NUMBER = 10;
private int id_;
/**
* uint32 id = 10;
* @return The id.
*/
@java.lang.Override
public int getId() {
return id_;
}
public static final int IS_ENTERED_FIELD_NUMBER = 2;
private boolean isEntered_;
/**
* bool is_entered = 2;
* @return The isEntered.
*/
@java.lang.Override
public boolean getIsEntered() {
return isEntered_;
}
public static final int REGION_SEARCH_LIST_FIELD_NUMBER = 9;
private java.util.List regionSearchList_;
/**
* repeated .RegionSearch region_search_list = 9;
*/
@java.lang.Override
public java.util.List getRegionSearchListList() {
return regionSearchList_;
}
/**
* repeated .RegionSearch region_search_list = 9;
*/
@java.lang.Override
public java.util.List extends emu.grasscutter.net.proto.RegionSearchOuterClass.RegionSearchOrBuilder>
getRegionSearchListOrBuilderList() {
return regionSearchList_;
}
/**
* repeated .RegionSearch region_search_list = 9;
*/
@java.lang.Override
public int getRegionSearchListCount() {
return regionSearchList_.size();
}
/**
* repeated .RegionSearch region_search_list = 9;
*/
@java.lang.Override
public emu.grasscutter.net.proto.RegionSearchOuterClass.RegionSearch getRegionSearchList(int index) {
return regionSearchList_.get(index);
}
/**
* repeated .RegionSearch region_search_list = 9;
*/
@java.lang.Override
public emu.grasscutter.net.proto.RegionSearchOuterClass.RegionSearchOrBuilder getRegionSearchListOrBuilder(
int index) {
return regionSearchList_.get(index);
}
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 (isEntered_ != false) {
output.writeBool(2, isEntered_);
}
for (int i = 0; i < regionSearchList_.size(); i++) {
output.writeMessage(9, regionSearchList_.get(i));
}
if (id_ != 0) {
output.writeUInt32(10, id_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (isEntered_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(2, isEntered_);
}
for (int i = 0; i < regionSearchList_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(9, regionSearchList_.get(i));
}
if (id_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(10, id_);
}
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.RegionSearchInfoOuterClass.RegionSearchInfo)) {
return super.equals(obj);
}
emu.grasscutter.net.proto.RegionSearchInfoOuterClass.RegionSearchInfo other = (emu.grasscutter.net.proto.RegionSearchInfoOuterClass.RegionSearchInfo) obj;
if (getId()
!= other.getId()) return false;
if (getIsEntered()
!= other.getIsEntered()) return false;
if (!getRegionSearchListList()
.equals(other.getRegionSearchListList())) 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) + ID_FIELD_NUMBER;
hash = (53 * hash) + getId();
hash = (37 * hash) + IS_ENTERED_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getIsEntered());
if (getRegionSearchListCount() > 0) {
hash = (37 * hash) + REGION_SEARCH_LIST_FIELD_NUMBER;
hash = (53 * hash) + getRegionSearchListList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static emu.grasscutter.net.proto.RegionSearchInfoOuterClass.RegionSearchInfo parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.RegionSearchInfoOuterClass.RegionSearchInfo 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.RegionSearchInfoOuterClass.RegionSearchInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.RegionSearchInfoOuterClass.RegionSearchInfo 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.RegionSearchInfoOuterClass.RegionSearchInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.RegionSearchInfoOuterClass.RegionSearchInfo parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static emu.grasscutter.net.proto.RegionSearchInfoOuterClass.RegionSearchInfo parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.RegionSearchInfoOuterClass.RegionSearchInfo 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.RegionSearchInfoOuterClass.RegionSearchInfo parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.RegionSearchInfoOuterClass.RegionSearchInfo 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.RegionSearchInfoOuterClass.RegionSearchInfo parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.RegionSearchInfoOuterClass.RegionSearchInfo 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.RegionSearchInfoOuterClass.RegionSearchInfo 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: DHHDMABOCLM
*
*
* Protobuf type {@code RegionSearchInfo}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:RegionSearchInfo)
emu.grasscutter.net.proto.RegionSearchInfoOuterClass.RegionSearchInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return emu.grasscutter.net.proto.RegionSearchInfoOuterClass.internal_static_RegionSearchInfo_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return emu.grasscutter.net.proto.RegionSearchInfoOuterClass.internal_static_RegionSearchInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
emu.grasscutter.net.proto.RegionSearchInfoOuterClass.RegionSearchInfo.class, emu.grasscutter.net.proto.RegionSearchInfoOuterClass.RegionSearchInfo.Builder.class);
}
// Construct using emu.grasscutter.net.proto.RegionSearchInfoOuterClass.RegionSearchInfo.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getRegionSearchListFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
id_ = 0;
isEntered_ = false;
if (regionSearchListBuilder_ == null) {
regionSearchList_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
regionSearchListBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return emu.grasscutter.net.proto.RegionSearchInfoOuterClass.internal_static_RegionSearchInfo_descriptor;
}
@java.lang.Override
public emu.grasscutter.net.proto.RegionSearchInfoOuterClass.RegionSearchInfo getDefaultInstanceForType() {
return emu.grasscutter.net.proto.RegionSearchInfoOuterClass.RegionSearchInfo.getDefaultInstance();
}
@java.lang.Override
public emu.grasscutter.net.proto.RegionSearchInfoOuterClass.RegionSearchInfo build() {
emu.grasscutter.net.proto.RegionSearchInfoOuterClass.RegionSearchInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public emu.grasscutter.net.proto.RegionSearchInfoOuterClass.RegionSearchInfo buildPartial() {
emu.grasscutter.net.proto.RegionSearchInfoOuterClass.RegionSearchInfo result = new emu.grasscutter.net.proto.RegionSearchInfoOuterClass.RegionSearchInfo(this);
int from_bitField0_ = bitField0_;
result.id_ = id_;
result.isEntered_ = isEntered_;
if (regionSearchListBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
regionSearchList_ = java.util.Collections.unmodifiableList(regionSearchList_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.regionSearchList_ = regionSearchList_;
} else {
result.regionSearchList_ = regionSearchListBuilder_.build();
}
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.RegionSearchInfoOuterClass.RegionSearchInfo) {
return mergeFrom((emu.grasscutter.net.proto.RegionSearchInfoOuterClass.RegionSearchInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(emu.grasscutter.net.proto.RegionSearchInfoOuterClass.RegionSearchInfo other) {
if (other == emu.grasscutter.net.proto.RegionSearchInfoOuterClass.RegionSearchInfo.getDefaultInstance()) return this;
if (other.getId() != 0) {
setId(other.getId());
}
if (other.getIsEntered() != false) {
setIsEntered(other.getIsEntered());
}
if (regionSearchListBuilder_ == null) {
if (!other.regionSearchList_.isEmpty()) {
if (regionSearchList_.isEmpty()) {
regionSearchList_ = other.regionSearchList_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureRegionSearchListIsMutable();
regionSearchList_.addAll(other.regionSearchList_);
}
onChanged();
}
} else {
if (!other.regionSearchList_.isEmpty()) {
if (regionSearchListBuilder_.isEmpty()) {
regionSearchListBuilder_.dispose();
regionSearchListBuilder_ = null;
regionSearchList_ = other.regionSearchList_;
bitField0_ = (bitField0_ & ~0x00000001);
regionSearchListBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getRegionSearchListFieldBuilder() : null;
} else {
regionSearchListBuilder_.addAllMessages(other.regionSearchList_);
}
}
}
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.RegionSearchInfoOuterClass.RegionSearchInfo parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (emu.grasscutter.net.proto.RegionSearchInfoOuterClass.RegionSearchInfo) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private int id_ ;
/**
* uint32 id = 10;
* @return The id.
*/
@java.lang.Override
public int getId() {
return id_;
}
/**
* uint32 id = 10;
* @param value The id to set.
* @return This builder for chaining.
*/
public Builder setId(int value) {
id_ = value;
onChanged();
return this;
}
/**
* uint32 id = 10;
* @return This builder for chaining.
*/
public Builder clearId() {
id_ = 0;
onChanged();
return this;
}
private boolean isEntered_ ;
/**
* bool is_entered = 2;
* @return The isEntered.
*/
@java.lang.Override
public boolean getIsEntered() {
return isEntered_;
}
/**
* bool is_entered = 2;
* @param value The isEntered to set.
* @return This builder for chaining.
*/
public Builder setIsEntered(boolean value) {
isEntered_ = value;
onChanged();
return this;
}
/**
* bool is_entered = 2;
* @return This builder for chaining.
*/
public Builder clearIsEntered() {
isEntered_ = false;
onChanged();
return this;
}
private java.util.List regionSearchList_ =
java.util.Collections.emptyList();
private void ensureRegionSearchListIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
regionSearchList_ = new java.util.ArrayList(regionSearchList_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
emu.grasscutter.net.proto.RegionSearchOuterClass.RegionSearch, emu.grasscutter.net.proto.RegionSearchOuterClass.RegionSearch.Builder, emu.grasscutter.net.proto.RegionSearchOuterClass.RegionSearchOrBuilder> regionSearchListBuilder_;
/**
* repeated .RegionSearch region_search_list = 9;
*/
public java.util.List getRegionSearchListList() {
if (regionSearchListBuilder_ == null) {
return java.util.Collections.unmodifiableList(regionSearchList_);
} else {
return regionSearchListBuilder_.getMessageList();
}
}
/**
* repeated .RegionSearch region_search_list = 9;
*/
public int getRegionSearchListCount() {
if (regionSearchListBuilder_ == null) {
return regionSearchList_.size();
} else {
return regionSearchListBuilder_.getCount();
}
}
/**
* repeated .RegionSearch region_search_list = 9;
*/
public emu.grasscutter.net.proto.RegionSearchOuterClass.RegionSearch getRegionSearchList(int index) {
if (regionSearchListBuilder_ == null) {
return regionSearchList_.get(index);
} else {
return regionSearchListBuilder_.getMessage(index);
}
}
/**
* repeated .RegionSearch region_search_list = 9;
*/
public Builder setRegionSearchList(
int index, emu.grasscutter.net.proto.RegionSearchOuterClass.RegionSearch value) {
if (regionSearchListBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRegionSearchListIsMutable();
regionSearchList_.set(index, value);
onChanged();
} else {
regionSearchListBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .RegionSearch region_search_list = 9;
*/
public Builder setRegionSearchList(
int index, emu.grasscutter.net.proto.RegionSearchOuterClass.RegionSearch.Builder builderForValue) {
if (regionSearchListBuilder_ == null) {
ensureRegionSearchListIsMutable();
regionSearchList_.set(index, builderForValue.build());
onChanged();
} else {
regionSearchListBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .RegionSearch region_search_list = 9;
*/
public Builder addRegionSearchList(emu.grasscutter.net.proto.RegionSearchOuterClass.RegionSearch value) {
if (regionSearchListBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRegionSearchListIsMutable();
regionSearchList_.add(value);
onChanged();
} else {
regionSearchListBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .RegionSearch region_search_list = 9;
*/
public Builder addRegionSearchList(
int index, emu.grasscutter.net.proto.RegionSearchOuterClass.RegionSearch value) {
if (regionSearchListBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRegionSearchListIsMutable();
regionSearchList_.add(index, value);
onChanged();
} else {
regionSearchListBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .RegionSearch region_search_list = 9;
*/
public Builder addRegionSearchList(
emu.grasscutter.net.proto.RegionSearchOuterClass.RegionSearch.Builder builderForValue) {
if (regionSearchListBuilder_ == null) {
ensureRegionSearchListIsMutable();
regionSearchList_.add(builderForValue.build());
onChanged();
} else {
regionSearchListBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .RegionSearch region_search_list = 9;
*/
public Builder addRegionSearchList(
int index, emu.grasscutter.net.proto.RegionSearchOuterClass.RegionSearch.Builder builderForValue) {
if (regionSearchListBuilder_ == null) {
ensureRegionSearchListIsMutable();
regionSearchList_.add(index, builderForValue.build());
onChanged();
} else {
regionSearchListBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .RegionSearch region_search_list = 9;
*/
public Builder addAllRegionSearchList(
java.lang.Iterable extends emu.grasscutter.net.proto.RegionSearchOuterClass.RegionSearch> values) {
if (regionSearchListBuilder_ == null) {
ensureRegionSearchListIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, regionSearchList_);
onChanged();
} else {
regionSearchListBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .RegionSearch region_search_list = 9;
*/
public Builder clearRegionSearchList() {
if (regionSearchListBuilder_ == null) {
regionSearchList_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
regionSearchListBuilder_.clear();
}
return this;
}
/**
* repeated .RegionSearch region_search_list = 9;
*/
public Builder removeRegionSearchList(int index) {
if (regionSearchListBuilder_ == null) {
ensureRegionSearchListIsMutable();
regionSearchList_.remove(index);
onChanged();
} else {
regionSearchListBuilder_.remove(index);
}
return this;
}
/**
* repeated .RegionSearch region_search_list = 9;
*/
public emu.grasscutter.net.proto.RegionSearchOuterClass.RegionSearch.Builder getRegionSearchListBuilder(
int index) {
return getRegionSearchListFieldBuilder().getBuilder(index);
}
/**
* repeated .RegionSearch region_search_list = 9;
*/
public emu.grasscutter.net.proto.RegionSearchOuterClass.RegionSearchOrBuilder getRegionSearchListOrBuilder(
int index) {
if (regionSearchListBuilder_ == null) {
return regionSearchList_.get(index); } else {
return regionSearchListBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .RegionSearch region_search_list = 9;
*/
public java.util.List extends emu.grasscutter.net.proto.RegionSearchOuterClass.RegionSearchOrBuilder>
getRegionSearchListOrBuilderList() {
if (regionSearchListBuilder_ != null) {
return regionSearchListBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(regionSearchList_);
}
}
/**
* repeated .RegionSearch region_search_list = 9;
*/
public emu.grasscutter.net.proto.RegionSearchOuterClass.RegionSearch.Builder addRegionSearchListBuilder() {
return getRegionSearchListFieldBuilder().addBuilder(
emu.grasscutter.net.proto.RegionSearchOuterClass.RegionSearch.getDefaultInstance());
}
/**
* repeated .RegionSearch region_search_list = 9;
*/
public emu.grasscutter.net.proto.RegionSearchOuterClass.RegionSearch.Builder addRegionSearchListBuilder(
int index) {
return getRegionSearchListFieldBuilder().addBuilder(
index, emu.grasscutter.net.proto.RegionSearchOuterClass.RegionSearch.getDefaultInstance());
}
/**
* repeated .RegionSearch region_search_list = 9;
*/
public java.util.List
getRegionSearchListBuilderList() {
return getRegionSearchListFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
emu.grasscutter.net.proto.RegionSearchOuterClass.RegionSearch, emu.grasscutter.net.proto.RegionSearchOuterClass.RegionSearch.Builder, emu.grasscutter.net.proto.RegionSearchOuterClass.RegionSearchOrBuilder>
getRegionSearchListFieldBuilder() {
if (regionSearchListBuilder_ == null) {
regionSearchListBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
emu.grasscutter.net.proto.RegionSearchOuterClass.RegionSearch, emu.grasscutter.net.proto.RegionSearchOuterClass.RegionSearch.Builder, emu.grasscutter.net.proto.RegionSearchOuterClass.RegionSearchOrBuilder>(
regionSearchList_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
regionSearchList_ = null;
}
return regionSearchListBuilder_;
}
@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:RegionSearchInfo)
}
// @@protoc_insertion_point(class_scope:RegionSearchInfo)
private static final emu.grasscutter.net.proto.RegionSearchInfoOuterClass.RegionSearchInfo DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new emu.grasscutter.net.proto.RegionSearchInfoOuterClass.RegionSearchInfo();
}
public static emu.grasscutter.net.proto.RegionSearchInfoOuterClass.RegionSearchInfo getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public RegionSearchInfo parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new RegionSearchInfo(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.RegionSearchInfoOuterClass.RegionSearchInfo getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_RegionSearchInfo_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_RegionSearchInfo_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\026RegionSearchInfo.proto\032\022RegionSearch.p" +
"roto\"]\n\020RegionSearchInfo\022\n\n\002id\030\n \001(\r\022\022\n\n" +
"is_entered\030\002 \001(\010\022)\n\022region_search_list\030\t" +
" \003(\0132\r.RegionSearchB\033\n\031emu.grasscutter.n" +
"et.protob\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
emu.grasscutter.net.proto.RegionSearchOuterClass.getDescriptor(),
});
internal_static_RegionSearchInfo_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_RegionSearchInfo_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_RegionSearchInfo_descriptor,
new java.lang.String[] { "Id", "IsEntered", "RegionSearchList", });
emu.grasscutter.net.proto.RegionSearchOuterClass.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}