Grasscutter/src/generated/main/java/emu/grasscutter/net/proto/ObstacleModifyNotifyOuterClass.java
Magix 71f6198361
Upgrade to REL3.7 (#2164)
* Remove hardcoded quest data

* Remove deprecated fields

* Try to fix packet

* Apply fix for token exchange

* Upgrade to REL3.7

* Add obfuscated protocol definitions

* Add missing enum (other protos too maybe)

* Re-add field setters and add note on removal
2023-05-27 00:29:02 -04:00

1120 lines
42 KiB
Java

// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: ObstacleModifyNotify.proto
package emu.grasscutter.net.proto;
public final class ObstacleModifyNotifyOuterClass {
private ObstacleModifyNotifyOuterClass() {}
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 ObstacleModifyNotifyOrBuilder extends
// @@protoc_insertion_point(interface_extends:ObstacleModifyNotify)
com.google.protobuf.MessageOrBuilder {
/**
* <code>repeated int32 remove_obstacle_ids = 1;</code>
* @return A list containing the removeObstacleIds.
*/
java.util.List<java.lang.Integer> getRemoveObstacleIdsList();
/**
* <code>repeated int32 remove_obstacle_ids = 1;</code>
* @return The count of removeObstacleIds.
*/
int getRemoveObstacleIdsCount();
/**
* <code>repeated int32 remove_obstacle_ids = 1;</code>
* @param index The index of the element to return.
* @return The removeObstacleIds at the given index.
*/
int getRemoveObstacleIds(int index);
/**
* <code>repeated .ObstacleInfo add_obstacles = 5;</code>
*/
java.util.List<emu.grasscutter.net.proto.ObstacleInfoOuterClass.ObstacleInfo>
getAddObstaclesList();
/**
* <code>repeated .ObstacleInfo add_obstacles = 5;</code>
*/
emu.grasscutter.net.proto.ObstacleInfoOuterClass.ObstacleInfo getAddObstacles(int index);
/**
* <code>repeated .ObstacleInfo add_obstacles = 5;</code>
*/
int getAddObstaclesCount();
/**
* <code>repeated .ObstacleInfo add_obstacles = 5;</code>
*/
java.util.List<? extends emu.grasscutter.net.proto.ObstacleInfoOuterClass.ObstacleInfoOrBuilder>
getAddObstaclesOrBuilderList();
/**
* <code>repeated .ObstacleInfo add_obstacles = 5;</code>
*/
emu.grasscutter.net.proto.ObstacleInfoOuterClass.ObstacleInfoOrBuilder getAddObstaclesOrBuilder(
int index);
/**
* <code>uint32 scene_id = 8;</code>
* @return The sceneId.
*/
int getSceneId();
}
/**
* <pre>
* CmdId: 2302
* Obf: JJMONLNMKPP
* </pre>
*
* Protobuf type {@code ObstacleModifyNotify}
*/
public static final class ObstacleModifyNotify extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:ObstacleModifyNotify)
ObstacleModifyNotifyOrBuilder {
private static final long serialVersionUID = 0L;
// Use ObstacleModifyNotify.newBuilder() to construct.
private ObstacleModifyNotify(com.google.protobuf.GeneratedMessageV3.Builder<?> builder) {
super(builder);
}
private ObstacleModifyNotify() {
removeObstacleIds_ = emptyIntList();
addObstacles_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ObstacleModifyNotify();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ObstacleModifyNotify(
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: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
removeObstacleIds_ = newIntList();
mutable_bitField0_ |= 0x00000001;
}
removeObstacleIds_.addInt(input.readInt32());
break;
}
case 10: {
int length = input.readRawVarint32();
int limit = input.pushLimit(length);
if (!((mutable_bitField0_ & 0x00000001) != 0) && input.getBytesUntilLimit() > 0) {
removeObstacleIds_ = newIntList();
mutable_bitField0_ |= 0x00000001;
}
while (input.getBytesUntilLimit() > 0) {
removeObstacleIds_.addInt(input.readInt32());
}
input.popLimit(limit);
break;
}
case 42: {
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
addObstacles_ = new java.util.ArrayList<emu.grasscutter.net.proto.ObstacleInfoOuterClass.ObstacleInfo>();
mutable_bitField0_ |= 0x00000002;
}
addObstacles_.add(
input.readMessage(emu.grasscutter.net.proto.ObstacleInfoOuterClass.ObstacleInfo.parser(), extensionRegistry));
break;
}
case 64: {
sceneId_ = 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)) {
removeObstacleIds_.makeImmutable(); // C
}
if (((mutable_bitField0_ & 0x00000002) != 0)) {
addObstacles_ = java.util.Collections.unmodifiableList(addObstacles_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return emu.grasscutter.net.proto.ObstacleModifyNotifyOuterClass.internal_static_ObstacleModifyNotify_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return emu.grasscutter.net.proto.ObstacleModifyNotifyOuterClass.internal_static_ObstacleModifyNotify_fieldAccessorTable
.ensureFieldAccessorsInitialized(
emu.grasscutter.net.proto.ObstacleModifyNotifyOuterClass.ObstacleModifyNotify.class, emu.grasscutter.net.proto.ObstacleModifyNotifyOuterClass.ObstacleModifyNotify.Builder.class);
}
public static final int REMOVE_OBSTACLE_IDS_FIELD_NUMBER = 1;
private com.google.protobuf.Internal.IntList removeObstacleIds_;
/**
* <code>repeated int32 remove_obstacle_ids = 1;</code>
* @return A list containing the removeObstacleIds.
*/
@java.lang.Override
public java.util.List<java.lang.Integer>
getRemoveObstacleIdsList() {
return removeObstacleIds_;
}
/**
* <code>repeated int32 remove_obstacle_ids = 1;</code>
* @return The count of removeObstacleIds.
*/
public int getRemoveObstacleIdsCount() {
return removeObstacleIds_.size();
}
/**
* <code>repeated int32 remove_obstacle_ids = 1;</code>
* @param index The index of the element to return.
* @return The removeObstacleIds at the given index.
*/
public int getRemoveObstacleIds(int index) {
return removeObstacleIds_.getInt(index);
}
private int removeObstacleIdsMemoizedSerializedSize = -1;
public static final int ADD_OBSTACLES_FIELD_NUMBER = 5;
private java.util.List<emu.grasscutter.net.proto.ObstacleInfoOuterClass.ObstacleInfo> addObstacles_;
/**
* <code>repeated .ObstacleInfo add_obstacles = 5;</code>
*/
@java.lang.Override
public java.util.List<emu.grasscutter.net.proto.ObstacleInfoOuterClass.ObstacleInfo> getAddObstaclesList() {
return addObstacles_;
}
/**
* <code>repeated .ObstacleInfo add_obstacles = 5;</code>
*/
@java.lang.Override
public java.util.List<? extends emu.grasscutter.net.proto.ObstacleInfoOuterClass.ObstacleInfoOrBuilder>
getAddObstaclesOrBuilderList() {
return addObstacles_;
}
/**
* <code>repeated .ObstacleInfo add_obstacles = 5;</code>
*/
@java.lang.Override
public int getAddObstaclesCount() {
return addObstacles_.size();
}
/**
* <code>repeated .ObstacleInfo add_obstacles = 5;</code>
*/
@java.lang.Override
public emu.grasscutter.net.proto.ObstacleInfoOuterClass.ObstacleInfo getAddObstacles(int index) {
return addObstacles_.get(index);
}
/**
* <code>repeated .ObstacleInfo add_obstacles = 5;</code>
*/
@java.lang.Override
public emu.grasscutter.net.proto.ObstacleInfoOuterClass.ObstacleInfoOrBuilder getAddObstaclesOrBuilder(
int index) {
return addObstacles_.get(index);
}
public static final int SCENE_ID_FIELD_NUMBER = 8;
private int sceneId_;
/**
* <code>uint32 scene_id = 8;</code>
* @return The sceneId.
*/
@java.lang.Override
public int getSceneId() {
return sceneId_;
}
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 (getRemoveObstacleIdsList().size() > 0) {
output.writeUInt32NoTag(10);
output.writeUInt32NoTag(removeObstacleIdsMemoizedSerializedSize);
}
for (int i = 0; i < removeObstacleIds_.size(); i++) {
output.writeInt32NoTag(removeObstacleIds_.getInt(i));
}
for (int i = 0; i < addObstacles_.size(); i++) {
output.writeMessage(5, addObstacles_.get(i));
}
if (sceneId_ != 0) {
output.writeUInt32(8, sceneId_);
}
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 < removeObstacleIds_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(removeObstacleIds_.getInt(i));
}
size += dataSize;
if (!getRemoveObstacleIdsList().isEmpty()) {
size += 1;
size += com.google.protobuf.CodedOutputStream
.computeInt32SizeNoTag(dataSize);
}
removeObstacleIdsMemoizedSerializedSize = dataSize;
}
for (int i = 0; i < addObstacles_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, addObstacles_.get(i));
}
if (sceneId_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeUInt32Size(8, sceneId_);
}
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.ObstacleModifyNotifyOuterClass.ObstacleModifyNotify)) {
return super.equals(obj);
}
emu.grasscutter.net.proto.ObstacleModifyNotifyOuterClass.ObstacleModifyNotify other = (emu.grasscutter.net.proto.ObstacleModifyNotifyOuterClass.ObstacleModifyNotify) obj;
if (!getRemoveObstacleIdsList()
.equals(other.getRemoveObstacleIdsList())) return false;
if (!getAddObstaclesList()
.equals(other.getAddObstaclesList())) return false;
if (getSceneId()
!= other.getSceneId()) 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 (getRemoveObstacleIdsCount() > 0) {
hash = (37 * hash) + REMOVE_OBSTACLE_IDS_FIELD_NUMBER;
hash = (53 * hash) + getRemoveObstacleIdsList().hashCode();
}
if (getAddObstaclesCount() > 0) {
hash = (37 * hash) + ADD_OBSTACLES_FIELD_NUMBER;
hash = (53 * hash) + getAddObstaclesList().hashCode();
}
hash = (37 * hash) + SCENE_ID_FIELD_NUMBER;
hash = (53 * hash) + getSceneId();
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static emu.grasscutter.net.proto.ObstacleModifyNotifyOuterClass.ObstacleModifyNotify parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.ObstacleModifyNotifyOuterClass.ObstacleModifyNotify 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.ObstacleModifyNotifyOuterClass.ObstacleModifyNotify parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.ObstacleModifyNotifyOuterClass.ObstacleModifyNotify 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.ObstacleModifyNotifyOuterClass.ObstacleModifyNotify parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static emu.grasscutter.net.proto.ObstacleModifyNotifyOuterClass.ObstacleModifyNotify parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static emu.grasscutter.net.proto.ObstacleModifyNotifyOuterClass.ObstacleModifyNotify parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.ObstacleModifyNotifyOuterClass.ObstacleModifyNotify 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.ObstacleModifyNotifyOuterClass.ObstacleModifyNotify parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.ObstacleModifyNotifyOuterClass.ObstacleModifyNotify 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.ObstacleModifyNotifyOuterClass.ObstacleModifyNotify parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static emu.grasscutter.net.proto.ObstacleModifyNotifyOuterClass.ObstacleModifyNotify 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.ObstacleModifyNotifyOuterClass.ObstacleModifyNotify 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;
}
/**
* <pre>
* CmdId: 2302
* Obf: JJMONLNMKPP
* </pre>
*
* Protobuf type {@code ObstacleModifyNotify}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:ObstacleModifyNotify)
emu.grasscutter.net.proto.ObstacleModifyNotifyOuterClass.ObstacleModifyNotifyOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return emu.grasscutter.net.proto.ObstacleModifyNotifyOuterClass.internal_static_ObstacleModifyNotify_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return emu.grasscutter.net.proto.ObstacleModifyNotifyOuterClass.internal_static_ObstacleModifyNotify_fieldAccessorTable
.ensureFieldAccessorsInitialized(
emu.grasscutter.net.proto.ObstacleModifyNotifyOuterClass.ObstacleModifyNotify.class, emu.grasscutter.net.proto.ObstacleModifyNotifyOuterClass.ObstacleModifyNotify.Builder.class);
}
// Construct using emu.grasscutter.net.proto.ObstacleModifyNotifyOuterClass.ObstacleModifyNotify.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getAddObstaclesFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
removeObstacleIds_ = emptyIntList();
bitField0_ = (bitField0_ & ~0x00000001);
if (addObstaclesBuilder_ == null) {
addObstacles_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
addObstaclesBuilder_.clear();
}
sceneId_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return emu.grasscutter.net.proto.ObstacleModifyNotifyOuterClass.internal_static_ObstacleModifyNotify_descriptor;
}
@java.lang.Override
public emu.grasscutter.net.proto.ObstacleModifyNotifyOuterClass.ObstacleModifyNotify getDefaultInstanceForType() {
return emu.grasscutter.net.proto.ObstacleModifyNotifyOuterClass.ObstacleModifyNotify.getDefaultInstance();
}
@java.lang.Override
public emu.grasscutter.net.proto.ObstacleModifyNotifyOuterClass.ObstacleModifyNotify build() {
emu.grasscutter.net.proto.ObstacleModifyNotifyOuterClass.ObstacleModifyNotify result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public emu.grasscutter.net.proto.ObstacleModifyNotifyOuterClass.ObstacleModifyNotify buildPartial() {
emu.grasscutter.net.proto.ObstacleModifyNotifyOuterClass.ObstacleModifyNotify result = new emu.grasscutter.net.proto.ObstacleModifyNotifyOuterClass.ObstacleModifyNotify(this);
int from_bitField0_ = bitField0_;
if (((bitField0_ & 0x00000001) != 0)) {
removeObstacleIds_.makeImmutable();
bitField0_ = (bitField0_ & ~0x00000001);
}
result.removeObstacleIds_ = removeObstacleIds_;
if (addObstaclesBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
addObstacles_ = java.util.Collections.unmodifiableList(addObstacles_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.addObstacles_ = addObstacles_;
} else {
result.addObstacles_ = addObstaclesBuilder_.build();
}
result.sceneId_ = sceneId_;
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.ObstacleModifyNotifyOuterClass.ObstacleModifyNotify) {
return mergeFrom((emu.grasscutter.net.proto.ObstacleModifyNotifyOuterClass.ObstacleModifyNotify)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(emu.grasscutter.net.proto.ObstacleModifyNotifyOuterClass.ObstacleModifyNotify other) {
if (other == emu.grasscutter.net.proto.ObstacleModifyNotifyOuterClass.ObstacleModifyNotify.getDefaultInstance()) return this;
if (!other.removeObstacleIds_.isEmpty()) {
if (removeObstacleIds_.isEmpty()) {
removeObstacleIds_ = other.removeObstacleIds_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureRemoveObstacleIdsIsMutable();
removeObstacleIds_.addAll(other.removeObstacleIds_);
}
onChanged();
}
if (addObstaclesBuilder_ == null) {
if (!other.addObstacles_.isEmpty()) {
if (addObstacles_.isEmpty()) {
addObstacles_ = other.addObstacles_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureAddObstaclesIsMutable();
addObstacles_.addAll(other.addObstacles_);
}
onChanged();
}
} else {
if (!other.addObstacles_.isEmpty()) {
if (addObstaclesBuilder_.isEmpty()) {
addObstaclesBuilder_.dispose();
addObstaclesBuilder_ = null;
addObstacles_ = other.addObstacles_;
bitField0_ = (bitField0_ & ~0x00000002);
addObstaclesBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getAddObstaclesFieldBuilder() : null;
} else {
addObstaclesBuilder_.addAllMessages(other.addObstacles_);
}
}
}
if (other.getSceneId() != 0) {
setSceneId(other.getSceneId());
}
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.ObstacleModifyNotifyOuterClass.ObstacleModifyNotify parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (emu.grasscutter.net.proto.ObstacleModifyNotifyOuterClass.ObstacleModifyNotify) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private com.google.protobuf.Internal.IntList removeObstacleIds_ = emptyIntList();
private void ensureRemoveObstacleIdsIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
removeObstacleIds_ = mutableCopy(removeObstacleIds_);
bitField0_ |= 0x00000001;
}
}
/**
* <code>repeated int32 remove_obstacle_ids = 1;</code>
* @return A list containing the removeObstacleIds.
*/
public java.util.List<java.lang.Integer>
getRemoveObstacleIdsList() {
return ((bitField0_ & 0x00000001) != 0) ?
java.util.Collections.unmodifiableList(removeObstacleIds_) : removeObstacleIds_;
}
/**
* <code>repeated int32 remove_obstacle_ids = 1;</code>
* @return The count of removeObstacleIds.
*/
public int getRemoveObstacleIdsCount() {
return removeObstacleIds_.size();
}
/**
* <code>repeated int32 remove_obstacle_ids = 1;</code>
* @param index The index of the element to return.
* @return The removeObstacleIds at the given index.
*/
public int getRemoveObstacleIds(int index) {
return removeObstacleIds_.getInt(index);
}
/**
* <code>repeated int32 remove_obstacle_ids = 1;</code>
* @param index The index to set the value at.
* @param value The removeObstacleIds to set.
* @return This builder for chaining.
*/
public Builder setRemoveObstacleIds(
int index, int value) {
ensureRemoveObstacleIdsIsMutable();
removeObstacleIds_.setInt(index, value);
onChanged();
return this;
}
/**
* <code>repeated int32 remove_obstacle_ids = 1;</code>
* @param value The removeObstacleIds to add.
* @return This builder for chaining.
*/
public Builder addRemoveObstacleIds(int value) {
ensureRemoveObstacleIdsIsMutable();
removeObstacleIds_.addInt(value);
onChanged();
return this;
}
/**
* <code>repeated int32 remove_obstacle_ids = 1;</code>
* @param values The removeObstacleIds to add.
* @return This builder for chaining.
*/
public Builder addAllRemoveObstacleIds(
java.lang.Iterable<? extends java.lang.Integer> values) {
ensureRemoveObstacleIdsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, removeObstacleIds_);
onChanged();
return this;
}
/**
* <code>repeated int32 remove_obstacle_ids = 1;</code>
* @return This builder for chaining.
*/
public Builder clearRemoveObstacleIds() {
removeObstacleIds_ = emptyIntList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
return this;
}
private java.util.List<emu.grasscutter.net.proto.ObstacleInfoOuterClass.ObstacleInfo> addObstacles_ =
java.util.Collections.emptyList();
private void ensureAddObstaclesIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
addObstacles_ = new java.util.ArrayList<emu.grasscutter.net.proto.ObstacleInfoOuterClass.ObstacleInfo>(addObstacles_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
emu.grasscutter.net.proto.ObstacleInfoOuterClass.ObstacleInfo, emu.grasscutter.net.proto.ObstacleInfoOuterClass.ObstacleInfo.Builder, emu.grasscutter.net.proto.ObstacleInfoOuterClass.ObstacleInfoOrBuilder> addObstaclesBuilder_;
/**
* <code>repeated .ObstacleInfo add_obstacles = 5;</code>
*/
public java.util.List<emu.grasscutter.net.proto.ObstacleInfoOuterClass.ObstacleInfo> getAddObstaclesList() {
if (addObstaclesBuilder_ == null) {
return java.util.Collections.unmodifiableList(addObstacles_);
} else {
return addObstaclesBuilder_.getMessageList();
}
}
/**
* <code>repeated .ObstacleInfo add_obstacles = 5;</code>
*/
public int getAddObstaclesCount() {
if (addObstaclesBuilder_ == null) {
return addObstacles_.size();
} else {
return addObstaclesBuilder_.getCount();
}
}
/**
* <code>repeated .ObstacleInfo add_obstacles = 5;</code>
*/
public emu.grasscutter.net.proto.ObstacleInfoOuterClass.ObstacleInfo getAddObstacles(int index) {
if (addObstaclesBuilder_ == null) {
return addObstacles_.get(index);
} else {
return addObstaclesBuilder_.getMessage(index);
}
}
/**
* <code>repeated .ObstacleInfo add_obstacles = 5;</code>
*/
public Builder setAddObstacles(
int index, emu.grasscutter.net.proto.ObstacleInfoOuterClass.ObstacleInfo value) {
if (addObstaclesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAddObstaclesIsMutable();
addObstacles_.set(index, value);
onChanged();
} else {
addObstaclesBuilder_.setMessage(index, value);
}
return this;
}
/**
* <code>repeated .ObstacleInfo add_obstacles = 5;</code>
*/
public Builder setAddObstacles(
int index, emu.grasscutter.net.proto.ObstacleInfoOuterClass.ObstacleInfo.Builder builderForValue) {
if (addObstaclesBuilder_ == null) {
ensureAddObstaclesIsMutable();
addObstacles_.set(index, builderForValue.build());
onChanged();
} else {
addObstaclesBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* <code>repeated .ObstacleInfo add_obstacles = 5;</code>
*/
public Builder addAddObstacles(emu.grasscutter.net.proto.ObstacleInfoOuterClass.ObstacleInfo value) {
if (addObstaclesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAddObstaclesIsMutable();
addObstacles_.add(value);
onChanged();
} else {
addObstaclesBuilder_.addMessage(value);
}
return this;
}
/**
* <code>repeated .ObstacleInfo add_obstacles = 5;</code>
*/
public Builder addAddObstacles(
int index, emu.grasscutter.net.proto.ObstacleInfoOuterClass.ObstacleInfo value) {
if (addObstaclesBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAddObstaclesIsMutable();
addObstacles_.add(index, value);
onChanged();
} else {
addObstaclesBuilder_.addMessage(index, value);
}
return this;
}
/**
* <code>repeated .ObstacleInfo add_obstacles = 5;</code>
*/
public Builder addAddObstacles(
emu.grasscutter.net.proto.ObstacleInfoOuterClass.ObstacleInfo.Builder builderForValue) {
if (addObstaclesBuilder_ == null) {
ensureAddObstaclesIsMutable();
addObstacles_.add(builderForValue.build());
onChanged();
} else {
addObstaclesBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* <code>repeated .ObstacleInfo add_obstacles = 5;</code>
*/
public Builder addAddObstacles(
int index, emu.grasscutter.net.proto.ObstacleInfoOuterClass.ObstacleInfo.Builder builderForValue) {
if (addObstaclesBuilder_ == null) {
ensureAddObstaclesIsMutable();
addObstacles_.add(index, builderForValue.build());
onChanged();
} else {
addObstaclesBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* <code>repeated .ObstacleInfo add_obstacles = 5;</code>
*/
public Builder addAllAddObstacles(
java.lang.Iterable<? extends emu.grasscutter.net.proto.ObstacleInfoOuterClass.ObstacleInfo> values) {
if (addObstaclesBuilder_ == null) {
ensureAddObstaclesIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, addObstacles_);
onChanged();
} else {
addObstaclesBuilder_.addAllMessages(values);
}
return this;
}
/**
* <code>repeated .ObstacleInfo add_obstacles = 5;</code>
*/
public Builder clearAddObstacles() {
if (addObstaclesBuilder_ == null) {
addObstacles_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
addObstaclesBuilder_.clear();
}
return this;
}
/**
* <code>repeated .ObstacleInfo add_obstacles = 5;</code>
*/
public Builder removeAddObstacles(int index) {
if (addObstaclesBuilder_ == null) {
ensureAddObstaclesIsMutable();
addObstacles_.remove(index);
onChanged();
} else {
addObstaclesBuilder_.remove(index);
}
return this;
}
/**
* <code>repeated .ObstacleInfo add_obstacles = 5;</code>
*/
public emu.grasscutter.net.proto.ObstacleInfoOuterClass.ObstacleInfo.Builder getAddObstaclesBuilder(
int index) {
return getAddObstaclesFieldBuilder().getBuilder(index);
}
/**
* <code>repeated .ObstacleInfo add_obstacles = 5;</code>
*/
public emu.grasscutter.net.proto.ObstacleInfoOuterClass.ObstacleInfoOrBuilder getAddObstaclesOrBuilder(
int index) {
if (addObstaclesBuilder_ == null) {
return addObstacles_.get(index); } else {
return addObstaclesBuilder_.getMessageOrBuilder(index);
}
}
/**
* <code>repeated .ObstacleInfo add_obstacles = 5;</code>
*/
public java.util.List<? extends emu.grasscutter.net.proto.ObstacleInfoOuterClass.ObstacleInfoOrBuilder>
getAddObstaclesOrBuilderList() {
if (addObstaclesBuilder_ != null) {
return addObstaclesBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(addObstacles_);
}
}
/**
* <code>repeated .ObstacleInfo add_obstacles = 5;</code>
*/
public emu.grasscutter.net.proto.ObstacleInfoOuterClass.ObstacleInfo.Builder addAddObstaclesBuilder() {
return getAddObstaclesFieldBuilder().addBuilder(
emu.grasscutter.net.proto.ObstacleInfoOuterClass.ObstacleInfo.getDefaultInstance());
}
/**
* <code>repeated .ObstacleInfo add_obstacles = 5;</code>
*/
public emu.grasscutter.net.proto.ObstacleInfoOuterClass.ObstacleInfo.Builder addAddObstaclesBuilder(
int index) {
return getAddObstaclesFieldBuilder().addBuilder(
index, emu.grasscutter.net.proto.ObstacleInfoOuterClass.ObstacleInfo.getDefaultInstance());
}
/**
* <code>repeated .ObstacleInfo add_obstacles = 5;</code>
*/
public java.util.List<emu.grasscutter.net.proto.ObstacleInfoOuterClass.ObstacleInfo.Builder>
getAddObstaclesBuilderList() {
return getAddObstaclesFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
emu.grasscutter.net.proto.ObstacleInfoOuterClass.ObstacleInfo, emu.grasscutter.net.proto.ObstacleInfoOuterClass.ObstacleInfo.Builder, emu.grasscutter.net.proto.ObstacleInfoOuterClass.ObstacleInfoOrBuilder>
getAddObstaclesFieldBuilder() {
if (addObstaclesBuilder_ == null) {
addObstaclesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
emu.grasscutter.net.proto.ObstacleInfoOuterClass.ObstacleInfo, emu.grasscutter.net.proto.ObstacleInfoOuterClass.ObstacleInfo.Builder, emu.grasscutter.net.proto.ObstacleInfoOuterClass.ObstacleInfoOrBuilder>(
addObstacles_,
((bitField0_ & 0x00000002) != 0),
getParentForChildren(),
isClean());
addObstacles_ = null;
}
return addObstaclesBuilder_;
}
private int sceneId_ ;
/**
* <code>uint32 scene_id = 8;</code>
* @return The sceneId.
*/
@java.lang.Override
public int getSceneId() {
return sceneId_;
}
/**
* <code>uint32 scene_id = 8;</code>
* @param value The sceneId to set.
* @return This builder for chaining.
*/
public Builder setSceneId(int value) {
sceneId_ = value;
onChanged();
return this;
}
/**
* <code>uint32 scene_id = 8;</code>
* @return This builder for chaining.
*/
public Builder clearSceneId() {
sceneId_ = 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:ObstacleModifyNotify)
}
// @@protoc_insertion_point(class_scope:ObstacleModifyNotify)
private static final emu.grasscutter.net.proto.ObstacleModifyNotifyOuterClass.ObstacleModifyNotify DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new emu.grasscutter.net.proto.ObstacleModifyNotifyOuterClass.ObstacleModifyNotify();
}
public static emu.grasscutter.net.proto.ObstacleModifyNotifyOuterClass.ObstacleModifyNotify getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<ObstacleModifyNotify>
PARSER = new com.google.protobuf.AbstractParser<ObstacleModifyNotify>() {
@java.lang.Override
public ObstacleModifyNotify parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ObstacleModifyNotify(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser<ObstacleModifyNotify> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<ObstacleModifyNotify> getParserForType() {
return PARSER;
}
@java.lang.Override
public emu.grasscutter.net.proto.ObstacleModifyNotifyOuterClass.ObstacleModifyNotify getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_ObstacleModifyNotify_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_ObstacleModifyNotify_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\032ObstacleModifyNotify.proto\032\022ObstacleIn" +
"fo.proto\"k\n\024ObstacleModifyNotify\022\033\n\023remo" +
"ve_obstacle_ids\030\001 \003(\005\022$\n\radd_obstacles\030\005" +
" \003(\0132\r.ObstacleInfo\022\020\n\010scene_id\030\010 \001(\rB\033\n" +
"\031emu.grasscutter.net.protob\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
emu.grasscutter.net.proto.ObstacleInfoOuterClass.getDescriptor(),
});
internal_static_ObstacleModifyNotify_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_ObstacleModifyNotify_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_ObstacleModifyNotify_descriptor,
new java.lang.String[] { "RemoveObstacleIds", "AddObstacles", "SceneId", });
emu.grasscutter.net.proto.ObstacleInfoOuterClass.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}