All Downloads are FREE. Search and download functionalities are using the official Maven repository.

SC2APIProtocol.Debug Maven / Gradle / Ivy

The newest version!
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: s2clientprotocol/debug.proto

package SC2APIProtocol;

public final class Debug {
  private Debug() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistryLite registry) {
  }

  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
    registerAllExtensions(
        (com.google.protobuf.ExtensionRegistryLite) registry);
  }
  /**
   * Protobuf enum {@code SC2APIProtocol.DebugGameState}
   */
  public enum DebugGameState
      implements com.google.protobuf.ProtocolMessageEnum {
    /**
     * show_map = 1;
     */
    show_map(1),
    /**
     * control_enemy = 2;
     */
    control_enemy(2),
    /**
     * food = 3;
     */
    food(3),
    /**
     * free = 4;
     */
    free(4),
    /**
     * all_resources = 5;
     */
    all_resources(5),
    /**
     * god = 6;
     */
    god(6),
    /**
     * minerals = 7;
     */
    minerals(7),
    /**
     * gas = 8;
     */
    gas(8),
    /**
     * cooldown = 9;
     */
    cooldown(9),
    /**
     * tech_tree = 10;
     */
    tech_tree(10),
    /**
     * upgrade = 11;
     */
    upgrade(11),
    /**
     * fast_build = 12;
     */
    fast_build(12),
    ;

    /**
     * show_map = 1;
     */
    public static final int show_map_VALUE = 1;
    /**
     * control_enemy = 2;
     */
    public static final int control_enemy_VALUE = 2;
    /**
     * food = 3;
     */
    public static final int food_VALUE = 3;
    /**
     * free = 4;
     */
    public static final int free_VALUE = 4;
    /**
     * all_resources = 5;
     */
    public static final int all_resources_VALUE = 5;
    /**
     * god = 6;
     */
    public static final int god_VALUE = 6;
    /**
     * minerals = 7;
     */
    public static final int minerals_VALUE = 7;
    /**
     * gas = 8;
     */
    public static final int gas_VALUE = 8;
    /**
     * cooldown = 9;
     */
    public static final int cooldown_VALUE = 9;
    /**
     * tech_tree = 10;
     */
    public static final int tech_tree_VALUE = 10;
    /**
     * upgrade = 11;
     */
    public static final int upgrade_VALUE = 11;
    /**
     * fast_build = 12;
     */
    public static final int fast_build_VALUE = 12;


    public final int getNumber() {
      return value;
    }

    /**
     * @param value The numeric wire value of the corresponding enum entry.
     * @return The enum associated with the given numeric wire value.
     * @deprecated Use {@link #forNumber(int)} instead.
     */
    @java.lang.Deprecated
    public static DebugGameState valueOf(int value) {
      return forNumber(value);
    }

    /**
     * @param value The numeric wire value of the corresponding enum entry.
     * @return The enum associated with the given numeric wire value.
     */
    public static DebugGameState forNumber(int value) {
      switch (value) {
        case 1: return show_map;
        case 2: return control_enemy;
        case 3: return food;
        case 4: return free;
        case 5: return all_resources;
        case 6: return god;
        case 7: return minerals;
        case 8: return gas;
        case 9: return cooldown;
        case 10: return tech_tree;
        case 11: return upgrade;
        case 12: return fast_build;
        default: return null;
      }
    }

    public static com.google.protobuf.Internal.EnumLiteMap
        internalGetValueMap() {
      return internalValueMap;
    }
    private static final com.google.protobuf.Internal.EnumLiteMap<
        DebugGameState> internalValueMap =
          new com.google.protobuf.Internal.EnumLiteMap() {
            public DebugGameState findValueByNumber(int number) {
              return DebugGameState.forNumber(number);
            }
          };

    public final com.google.protobuf.Descriptors.EnumValueDescriptor
        getValueDescriptor() {
      return getDescriptor().getValues().get(ordinal());
    }
    public final com.google.protobuf.Descriptors.EnumDescriptor
        getDescriptorForType() {
      return getDescriptor();
    }
    public static final com.google.protobuf.Descriptors.EnumDescriptor
        getDescriptor() {
      return SC2APIProtocol.Debug.getDescriptor().getEnumTypes().get(0);
    }

    private static final DebugGameState[] VALUES = values();

    public static DebugGameState valueOf(
        com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
      if (desc.getType() != getDescriptor()) {
        throw new java.lang.IllegalArgumentException(
          "EnumValueDescriptor is not for this type.");
      }
      return VALUES[desc.getIndex()];
    }

    private final int value;

    private DebugGameState(int value) {
      this.value = value;
    }

    // @@protoc_insertion_point(enum_scope:SC2APIProtocol.DebugGameState)
  }

  public interface DebugCommandOrBuilder extends
      // @@protoc_insertion_point(interface_extends:SC2APIProtocol.DebugCommand)
      com.google.protobuf.MessageOrBuilder {

    /**
     * .SC2APIProtocol.DebugDraw draw = 1;
     * @return Whether the draw field is set.
     */
    boolean hasDraw();
    /**
     * .SC2APIProtocol.DebugDraw draw = 1;
     * @return The draw.
     */
    SC2APIProtocol.Debug.DebugDraw getDraw();
    /**
     * .SC2APIProtocol.DebugDraw draw = 1;
     */
    SC2APIProtocol.Debug.DebugDrawOrBuilder getDrawOrBuilder();

    /**
     * .SC2APIProtocol.DebugGameState game_state = 2;
     * @return Whether the gameState field is set.
     */
    boolean hasGameState();
    /**
     * .SC2APIProtocol.DebugGameState game_state = 2;
     * @return The gameState.
     */
    SC2APIProtocol.Debug.DebugGameState getGameState();

    /**
     * .SC2APIProtocol.DebugCreateUnit create_unit = 3;
     * @return Whether the createUnit field is set.
     */
    boolean hasCreateUnit();
    /**
     * .SC2APIProtocol.DebugCreateUnit create_unit = 3;
     * @return The createUnit.
     */
    SC2APIProtocol.Debug.DebugCreateUnit getCreateUnit();
    /**
     * .SC2APIProtocol.DebugCreateUnit create_unit = 3;
     */
    SC2APIProtocol.Debug.DebugCreateUnitOrBuilder getCreateUnitOrBuilder();

    /**
     * .SC2APIProtocol.DebugKillUnit kill_unit = 4;
     * @return Whether the killUnit field is set.
     */
    boolean hasKillUnit();
    /**
     * .SC2APIProtocol.DebugKillUnit kill_unit = 4;
     * @return The killUnit.
     */
    SC2APIProtocol.Debug.DebugKillUnit getKillUnit();
    /**
     * .SC2APIProtocol.DebugKillUnit kill_unit = 4;
     */
    SC2APIProtocol.Debug.DebugKillUnitOrBuilder getKillUnitOrBuilder();

    /**
     * .SC2APIProtocol.DebugTestProcess test_process = 5;
     * @return Whether the testProcess field is set.
     */
    boolean hasTestProcess();
    /**
     * .SC2APIProtocol.DebugTestProcess test_process = 5;
     * @return The testProcess.
     */
    SC2APIProtocol.Debug.DebugTestProcess getTestProcess();
    /**
     * .SC2APIProtocol.DebugTestProcess test_process = 5;
     */
    SC2APIProtocol.Debug.DebugTestProcessOrBuilder getTestProcessOrBuilder();

    /**
     * 
     * Useful only for single-player "curriculum" maps.
     * 
* * .SC2APIProtocol.DebugSetScore score = 6; * @return Whether the score field is set. */ boolean hasScore(); /** *
     * Useful only for single-player "curriculum" maps.
     * 
* * .SC2APIProtocol.DebugSetScore score = 6; * @return The score. */ SC2APIProtocol.Debug.DebugSetScore getScore(); /** *
     * Useful only for single-player "curriculum" maps.
     * 
* * .SC2APIProtocol.DebugSetScore score = 6; */ SC2APIProtocol.Debug.DebugSetScoreOrBuilder getScoreOrBuilder(); /** * .SC2APIProtocol.DebugEndGame end_game = 7; * @return Whether the endGame field is set. */ boolean hasEndGame(); /** * .SC2APIProtocol.DebugEndGame end_game = 7; * @return The endGame. */ SC2APIProtocol.Debug.DebugEndGame getEndGame(); /** * .SC2APIProtocol.DebugEndGame end_game = 7; */ SC2APIProtocol.Debug.DebugEndGameOrBuilder getEndGameOrBuilder(); /** * .SC2APIProtocol.DebugSetUnitValue unit_value = 8; * @return Whether the unitValue field is set. */ boolean hasUnitValue(); /** * .SC2APIProtocol.DebugSetUnitValue unit_value = 8; * @return The unitValue. */ SC2APIProtocol.Debug.DebugSetUnitValue getUnitValue(); /** * .SC2APIProtocol.DebugSetUnitValue unit_value = 8; */ SC2APIProtocol.Debug.DebugSetUnitValueOrBuilder getUnitValueOrBuilder(); public SC2APIProtocol.Debug.DebugCommand.CommandCase getCommandCase(); } /** *
   * Issue various useful commands to the game engine.
   * 
* * Protobuf type {@code SC2APIProtocol.DebugCommand} */ public static final class DebugCommand extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:SC2APIProtocol.DebugCommand) DebugCommandOrBuilder { private static final long serialVersionUID = 0L; // Use DebugCommand.newBuilder() to construct. private DebugCommand(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DebugCommand() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DebugCommand(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Debug.internal_static_SC2APIProtocol_DebugCommand_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Debug.internal_static_SC2APIProtocol_DebugCommand_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Debug.DebugCommand.class, SC2APIProtocol.Debug.DebugCommand.Builder.class); } private int bitField0_; private int commandCase_ = 0; private java.lang.Object command_; public enum CommandCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { DRAW(1), GAME_STATE(2), CREATE_UNIT(3), KILL_UNIT(4), TEST_PROCESS(5), SCORE(6), END_GAME(7), UNIT_VALUE(8), COMMAND_NOT_SET(0); private final int value; private CommandCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static CommandCase valueOf(int value) { return forNumber(value); } public static CommandCase forNumber(int value) { switch (value) { case 1: return DRAW; case 2: return GAME_STATE; case 3: return CREATE_UNIT; case 4: return KILL_UNIT; case 5: return TEST_PROCESS; case 6: return SCORE; case 7: return END_GAME; case 8: return UNIT_VALUE; case 0: return COMMAND_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public CommandCase getCommandCase() { return CommandCase.forNumber( commandCase_); } public static final int DRAW_FIELD_NUMBER = 1; /** * .SC2APIProtocol.DebugDraw draw = 1; * @return Whether the draw field is set. */ @java.lang.Override public boolean hasDraw() { return commandCase_ == 1; } /** * .SC2APIProtocol.DebugDraw draw = 1; * @return The draw. */ @java.lang.Override public SC2APIProtocol.Debug.DebugDraw getDraw() { if (commandCase_ == 1) { return (SC2APIProtocol.Debug.DebugDraw) command_; } return SC2APIProtocol.Debug.DebugDraw.getDefaultInstance(); } /** * .SC2APIProtocol.DebugDraw draw = 1; */ @java.lang.Override public SC2APIProtocol.Debug.DebugDrawOrBuilder getDrawOrBuilder() { if (commandCase_ == 1) { return (SC2APIProtocol.Debug.DebugDraw) command_; } return SC2APIProtocol.Debug.DebugDraw.getDefaultInstance(); } public static final int GAME_STATE_FIELD_NUMBER = 2; /** * .SC2APIProtocol.DebugGameState game_state = 2; * @return Whether the gameState field is set. */ public boolean hasGameState() { return commandCase_ == 2; } /** * .SC2APIProtocol.DebugGameState game_state = 2; * @return The gameState. */ public SC2APIProtocol.Debug.DebugGameState getGameState() { if (commandCase_ == 2) { @SuppressWarnings("deprecation") SC2APIProtocol.Debug.DebugGameState result = SC2APIProtocol.Debug.DebugGameState.valueOf( (java.lang.Integer) command_); return result == null ? SC2APIProtocol.Debug.DebugGameState.show_map : result; } return SC2APIProtocol.Debug.DebugGameState.show_map; } public static final int CREATE_UNIT_FIELD_NUMBER = 3; /** * .SC2APIProtocol.DebugCreateUnit create_unit = 3; * @return Whether the createUnit field is set. */ @java.lang.Override public boolean hasCreateUnit() { return commandCase_ == 3; } /** * .SC2APIProtocol.DebugCreateUnit create_unit = 3; * @return The createUnit. */ @java.lang.Override public SC2APIProtocol.Debug.DebugCreateUnit getCreateUnit() { if (commandCase_ == 3) { return (SC2APIProtocol.Debug.DebugCreateUnit) command_; } return SC2APIProtocol.Debug.DebugCreateUnit.getDefaultInstance(); } /** * .SC2APIProtocol.DebugCreateUnit create_unit = 3; */ @java.lang.Override public SC2APIProtocol.Debug.DebugCreateUnitOrBuilder getCreateUnitOrBuilder() { if (commandCase_ == 3) { return (SC2APIProtocol.Debug.DebugCreateUnit) command_; } return SC2APIProtocol.Debug.DebugCreateUnit.getDefaultInstance(); } public static final int KILL_UNIT_FIELD_NUMBER = 4; /** * .SC2APIProtocol.DebugKillUnit kill_unit = 4; * @return Whether the killUnit field is set. */ @java.lang.Override public boolean hasKillUnit() { return commandCase_ == 4; } /** * .SC2APIProtocol.DebugKillUnit kill_unit = 4; * @return The killUnit. */ @java.lang.Override public SC2APIProtocol.Debug.DebugKillUnit getKillUnit() { if (commandCase_ == 4) { return (SC2APIProtocol.Debug.DebugKillUnit) command_; } return SC2APIProtocol.Debug.DebugKillUnit.getDefaultInstance(); } /** * .SC2APIProtocol.DebugKillUnit kill_unit = 4; */ @java.lang.Override public SC2APIProtocol.Debug.DebugKillUnitOrBuilder getKillUnitOrBuilder() { if (commandCase_ == 4) { return (SC2APIProtocol.Debug.DebugKillUnit) command_; } return SC2APIProtocol.Debug.DebugKillUnit.getDefaultInstance(); } public static final int TEST_PROCESS_FIELD_NUMBER = 5; /** * .SC2APIProtocol.DebugTestProcess test_process = 5; * @return Whether the testProcess field is set. */ @java.lang.Override public boolean hasTestProcess() { return commandCase_ == 5; } /** * .SC2APIProtocol.DebugTestProcess test_process = 5; * @return The testProcess. */ @java.lang.Override public SC2APIProtocol.Debug.DebugTestProcess getTestProcess() { if (commandCase_ == 5) { return (SC2APIProtocol.Debug.DebugTestProcess) command_; } return SC2APIProtocol.Debug.DebugTestProcess.getDefaultInstance(); } /** * .SC2APIProtocol.DebugTestProcess test_process = 5; */ @java.lang.Override public SC2APIProtocol.Debug.DebugTestProcessOrBuilder getTestProcessOrBuilder() { if (commandCase_ == 5) { return (SC2APIProtocol.Debug.DebugTestProcess) command_; } return SC2APIProtocol.Debug.DebugTestProcess.getDefaultInstance(); } public static final int SCORE_FIELD_NUMBER = 6; /** *
     * Useful only for single-player "curriculum" maps.
     * 
* * .SC2APIProtocol.DebugSetScore score = 6; * @return Whether the score field is set. */ @java.lang.Override public boolean hasScore() { return commandCase_ == 6; } /** *
     * Useful only for single-player "curriculum" maps.
     * 
* * .SC2APIProtocol.DebugSetScore score = 6; * @return The score. */ @java.lang.Override public SC2APIProtocol.Debug.DebugSetScore getScore() { if (commandCase_ == 6) { return (SC2APIProtocol.Debug.DebugSetScore) command_; } return SC2APIProtocol.Debug.DebugSetScore.getDefaultInstance(); } /** *
     * Useful only for single-player "curriculum" maps.
     * 
* * .SC2APIProtocol.DebugSetScore score = 6; */ @java.lang.Override public SC2APIProtocol.Debug.DebugSetScoreOrBuilder getScoreOrBuilder() { if (commandCase_ == 6) { return (SC2APIProtocol.Debug.DebugSetScore) command_; } return SC2APIProtocol.Debug.DebugSetScore.getDefaultInstance(); } public static final int END_GAME_FIELD_NUMBER = 7; /** * .SC2APIProtocol.DebugEndGame end_game = 7; * @return Whether the endGame field is set. */ @java.lang.Override public boolean hasEndGame() { return commandCase_ == 7; } /** * .SC2APIProtocol.DebugEndGame end_game = 7; * @return The endGame. */ @java.lang.Override public SC2APIProtocol.Debug.DebugEndGame getEndGame() { if (commandCase_ == 7) { return (SC2APIProtocol.Debug.DebugEndGame) command_; } return SC2APIProtocol.Debug.DebugEndGame.getDefaultInstance(); } /** * .SC2APIProtocol.DebugEndGame end_game = 7; */ @java.lang.Override public SC2APIProtocol.Debug.DebugEndGameOrBuilder getEndGameOrBuilder() { if (commandCase_ == 7) { return (SC2APIProtocol.Debug.DebugEndGame) command_; } return SC2APIProtocol.Debug.DebugEndGame.getDefaultInstance(); } public static final int UNIT_VALUE_FIELD_NUMBER = 8; /** * .SC2APIProtocol.DebugSetUnitValue unit_value = 8; * @return Whether the unitValue field is set. */ @java.lang.Override public boolean hasUnitValue() { return commandCase_ == 8; } /** * .SC2APIProtocol.DebugSetUnitValue unit_value = 8; * @return The unitValue. */ @java.lang.Override public SC2APIProtocol.Debug.DebugSetUnitValue getUnitValue() { if (commandCase_ == 8) { return (SC2APIProtocol.Debug.DebugSetUnitValue) command_; } return SC2APIProtocol.Debug.DebugSetUnitValue.getDefaultInstance(); } /** * .SC2APIProtocol.DebugSetUnitValue unit_value = 8; */ @java.lang.Override public SC2APIProtocol.Debug.DebugSetUnitValueOrBuilder getUnitValueOrBuilder() { if (commandCase_ == 8) { return (SC2APIProtocol.Debug.DebugSetUnitValue) command_; } return SC2APIProtocol.Debug.DebugSetUnitValue.getDefaultInstance(); } 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 (commandCase_ == 1) { output.writeMessage(1, (SC2APIProtocol.Debug.DebugDraw) command_); } if (commandCase_ == 2) { output.writeEnum(2, ((java.lang.Integer) command_)); } if (commandCase_ == 3) { output.writeMessage(3, (SC2APIProtocol.Debug.DebugCreateUnit) command_); } if (commandCase_ == 4) { output.writeMessage(4, (SC2APIProtocol.Debug.DebugKillUnit) command_); } if (commandCase_ == 5) { output.writeMessage(5, (SC2APIProtocol.Debug.DebugTestProcess) command_); } if (commandCase_ == 6) { output.writeMessage(6, (SC2APIProtocol.Debug.DebugSetScore) command_); } if (commandCase_ == 7) { output.writeMessage(7, (SC2APIProtocol.Debug.DebugEndGame) command_); } if (commandCase_ == 8) { output.writeMessage(8, (SC2APIProtocol.Debug.DebugSetUnitValue) command_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (commandCase_ == 1) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, (SC2APIProtocol.Debug.DebugDraw) command_); } if (commandCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, ((java.lang.Integer) command_)); } if (commandCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, (SC2APIProtocol.Debug.DebugCreateUnit) command_); } if (commandCase_ == 4) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, (SC2APIProtocol.Debug.DebugKillUnit) command_); } if (commandCase_ == 5) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, (SC2APIProtocol.Debug.DebugTestProcess) command_); } if (commandCase_ == 6) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, (SC2APIProtocol.Debug.DebugSetScore) command_); } if (commandCase_ == 7) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, (SC2APIProtocol.Debug.DebugEndGame) command_); } if (commandCase_ == 8) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, (SC2APIProtocol.Debug.DebugSetUnitValue) command_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof SC2APIProtocol.Debug.DebugCommand)) { return super.equals(obj); } SC2APIProtocol.Debug.DebugCommand other = (SC2APIProtocol.Debug.DebugCommand) obj; if (!getCommandCase().equals(other.getCommandCase())) return false; switch (commandCase_) { case 1: if (!getDraw() .equals(other.getDraw())) return false; break; case 2: if (!getGameState() .equals(other.getGameState())) return false; break; case 3: if (!getCreateUnit() .equals(other.getCreateUnit())) return false; break; case 4: if (!getKillUnit() .equals(other.getKillUnit())) return false; break; case 5: if (!getTestProcess() .equals(other.getTestProcess())) return false; break; case 6: if (!getScore() .equals(other.getScore())) return false; break; case 7: if (!getEndGame() .equals(other.getEndGame())) return false; break; case 8: if (!getUnitValue() .equals(other.getUnitValue())) return false; break; case 0: default: } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); switch (commandCase_) { case 1: hash = (37 * hash) + DRAW_FIELD_NUMBER; hash = (53 * hash) + getDraw().hashCode(); break; case 2: hash = (37 * hash) + GAME_STATE_FIELD_NUMBER; hash = (53 * hash) + getGameState().getNumber(); break; case 3: hash = (37 * hash) + CREATE_UNIT_FIELD_NUMBER; hash = (53 * hash) + getCreateUnit().hashCode(); break; case 4: hash = (37 * hash) + KILL_UNIT_FIELD_NUMBER; hash = (53 * hash) + getKillUnit().hashCode(); break; case 5: hash = (37 * hash) + TEST_PROCESS_FIELD_NUMBER; hash = (53 * hash) + getTestProcess().hashCode(); break; case 6: hash = (37 * hash) + SCORE_FIELD_NUMBER; hash = (53 * hash) + getScore().hashCode(); break; case 7: hash = (37 * hash) + END_GAME_FIELD_NUMBER; hash = (53 * hash) + getEndGame().hashCode(); break; case 8: hash = (37 * hash) + UNIT_VALUE_FIELD_NUMBER; hash = (53 * hash) + getUnitValue().hashCode(); break; case 0: default: } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static SC2APIProtocol.Debug.DebugCommand parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Debug.DebugCommand parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Debug.DebugCommand parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Debug.DebugCommand parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Debug.DebugCommand parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Debug.DebugCommand parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Debug.DebugCommand parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Debug.DebugCommand 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 SC2APIProtocol.Debug.DebugCommand parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static SC2APIProtocol.Debug.DebugCommand 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 SC2APIProtocol.Debug.DebugCommand parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Debug.DebugCommand 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(SC2APIProtocol.Debug.DebugCommand 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; } /** *
     * Issue various useful commands to the game engine.
     * 
* * Protobuf type {@code SC2APIProtocol.DebugCommand} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:SC2APIProtocol.DebugCommand) SC2APIProtocol.Debug.DebugCommandOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Debug.internal_static_SC2APIProtocol_DebugCommand_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Debug.internal_static_SC2APIProtocol_DebugCommand_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Debug.DebugCommand.class, SC2APIProtocol.Debug.DebugCommand.Builder.class); } // Construct using SC2APIProtocol.Debug.DebugCommand.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); if (drawBuilder_ != null) { drawBuilder_.clear(); } if (createUnitBuilder_ != null) { createUnitBuilder_.clear(); } if (killUnitBuilder_ != null) { killUnitBuilder_.clear(); } if (testProcessBuilder_ != null) { testProcessBuilder_.clear(); } if (scoreBuilder_ != null) { scoreBuilder_.clear(); } if (endGameBuilder_ != null) { endGameBuilder_.clear(); } if (unitValueBuilder_ != null) { unitValueBuilder_.clear(); } commandCase_ = 0; command_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return SC2APIProtocol.Debug.internal_static_SC2APIProtocol_DebugCommand_descriptor; } @java.lang.Override public SC2APIProtocol.Debug.DebugCommand getDefaultInstanceForType() { return SC2APIProtocol.Debug.DebugCommand.getDefaultInstance(); } @java.lang.Override public SC2APIProtocol.Debug.DebugCommand build() { SC2APIProtocol.Debug.DebugCommand result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public SC2APIProtocol.Debug.DebugCommand buildPartial() { SC2APIProtocol.Debug.DebugCommand result = new SC2APIProtocol.Debug.DebugCommand(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (commandCase_ == 1) { if (drawBuilder_ == null) { result.command_ = command_; } else { result.command_ = drawBuilder_.build(); } } if (commandCase_ == 2) { result.command_ = command_; } if (commandCase_ == 3) { if (createUnitBuilder_ == null) { result.command_ = command_; } else { result.command_ = createUnitBuilder_.build(); } } if (commandCase_ == 4) { if (killUnitBuilder_ == null) { result.command_ = command_; } else { result.command_ = killUnitBuilder_.build(); } } if (commandCase_ == 5) { if (testProcessBuilder_ == null) { result.command_ = command_; } else { result.command_ = testProcessBuilder_.build(); } } if (commandCase_ == 6) { if (scoreBuilder_ == null) { result.command_ = command_; } else { result.command_ = scoreBuilder_.build(); } } if (commandCase_ == 7) { if (endGameBuilder_ == null) { result.command_ = command_; } else { result.command_ = endGameBuilder_.build(); } } if (commandCase_ == 8) { if (unitValueBuilder_ == null) { result.command_ = command_; } else { result.command_ = unitValueBuilder_.build(); } } result.bitField0_ = to_bitField0_; result.commandCase_ = commandCase_; 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 SC2APIProtocol.Debug.DebugCommand) { return mergeFrom((SC2APIProtocol.Debug.DebugCommand)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(SC2APIProtocol.Debug.DebugCommand other) { if (other == SC2APIProtocol.Debug.DebugCommand.getDefaultInstance()) return this; switch (other.getCommandCase()) { case DRAW: { mergeDraw(other.getDraw()); break; } case GAME_STATE: { setGameState(other.getGameState()); break; } case CREATE_UNIT: { mergeCreateUnit(other.getCreateUnit()); break; } case KILL_UNIT: { mergeKillUnit(other.getKillUnit()); break; } case TEST_PROCESS: { mergeTestProcess(other.getTestProcess()); break; } case SCORE: { mergeScore(other.getScore()); break; } case END_GAME: { mergeEndGame(other.getEndGame()); break; } case UNIT_VALUE: { mergeUnitValue(other.getUnitValue()); break; } case COMMAND_NOT_SET: { break; } } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getDrawFieldBuilder().getBuilder(), extensionRegistry); commandCase_ = 1; break; } // case 10 case 16: { int rawValue = input.readEnum(); SC2APIProtocol.Debug.DebugGameState value = SC2APIProtocol.Debug.DebugGameState.forNumber(rawValue); if (value == null) { mergeUnknownVarintField(2, rawValue); } else { commandCase_ = 2; command_ = rawValue; } break; } // case 16 case 26: { input.readMessage( getCreateUnitFieldBuilder().getBuilder(), extensionRegistry); commandCase_ = 3; break; } // case 26 case 34: { input.readMessage( getKillUnitFieldBuilder().getBuilder(), extensionRegistry); commandCase_ = 4; break; } // case 34 case 42: { input.readMessage( getTestProcessFieldBuilder().getBuilder(), extensionRegistry); commandCase_ = 5; break; } // case 42 case 50: { input.readMessage( getScoreFieldBuilder().getBuilder(), extensionRegistry); commandCase_ = 6; break; } // case 50 case 58: { input.readMessage( getEndGameFieldBuilder().getBuilder(), extensionRegistry); commandCase_ = 7; break; } // case 58 case 66: { input.readMessage( getUnitValueFieldBuilder().getBuilder(), extensionRegistry); commandCase_ = 8; break; } // case 66 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int commandCase_ = 0; private java.lang.Object command_; public CommandCase getCommandCase() { return CommandCase.forNumber( commandCase_); } public Builder clearCommand() { commandCase_ = 0; command_ = null; onChanged(); return this; } private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Debug.DebugDraw, SC2APIProtocol.Debug.DebugDraw.Builder, SC2APIProtocol.Debug.DebugDrawOrBuilder> drawBuilder_; /** * .SC2APIProtocol.DebugDraw draw = 1; * @return Whether the draw field is set. */ @java.lang.Override public boolean hasDraw() { return commandCase_ == 1; } /** * .SC2APIProtocol.DebugDraw draw = 1; * @return The draw. */ @java.lang.Override public SC2APIProtocol.Debug.DebugDraw getDraw() { if (drawBuilder_ == null) { if (commandCase_ == 1) { return (SC2APIProtocol.Debug.DebugDraw) command_; } return SC2APIProtocol.Debug.DebugDraw.getDefaultInstance(); } else { if (commandCase_ == 1) { return drawBuilder_.getMessage(); } return SC2APIProtocol.Debug.DebugDraw.getDefaultInstance(); } } /** * .SC2APIProtocol.DebugDraw draw = 1; */ public Builder setDraw(SC2APIProtocol.Debug.DebugDraw value) { if (drawBuilder_ == null) { if (value == null) { throw new NullPointerException(); } command_ = value; onChanged(); } else { drawBuilder_.setMessage(value); } commandCase_ = 1; return this; } /** * .SC2APIProtocol.DebugDraw draw = 1; */ public Builder setDraw( SC2APIProtocol.Debug.DebugDraw.Builder builderForValue) { if (drawBuilder_ == null) { command_ = builderForValue.build(); onChanged(); } else { drawBuilder_.setMessage(builderForValue.build()); } commandCase_ = 1; return this; } /** * .SC2APIProtocol.DebugDraw draw = 1; */ public Builder mergeDraw(SC2APIProtocol.Debug.DebugDraw value) { if (drawBuilder_ == null) { if (commandCase_ == 1 && command_ != SC2APIProtocol.Debug.DebugDraw.getDefaultInstance()) { command_ = SC2APIProtocol.Debug.DebugDraw.newBuilder((SC2APIProtocol.Debug.DebugDraw) command_) .mergeFrom(value).buildPartial(); } else { command_ = value; } onChanged(); } else { if (commandCase_ == 1) { drawBuilder_.mergeFrom(value); } else { drawBuilder_.setMessage(value); } } commandCase_ = 1; return this; } /** * .SC2APIProtocol.DebugDraw draw = 1; */ public Builder clearDraw() { if (drawBuilder_ == null) { if (commandCase_ == 1) { commandCase_ = 0; command_ = null; onChanged(); } } else { if (commandCase_ == 1) { commandCase_ = 0; command_ = null; } drawBuilder_.clear(); } return this; } /** * .SC2APIProtocol.DebugDraw draw = 1; */ public SC2APIProtocol.Debug.DebugDraw.Builder getDrawBuilder() { return getDrawFieldBuilder().getBuilder(); } /** * .SC2APIProtocol.DebugDraw draw = 1; */ @java.lang.Override public SC2APIProtocol.Debug.DebugDrawOrBuilder getDrawOrBuilder() { if ((commandCase_ == 1) && (drawBuilder_ != null)) { return drawBuilder_.getMessageOrBuilder(); } else { if (commandCase_ == 1) { return (SC2APIProtocol.Debug.DebugDraw) command_; } return SC2APIProtocol.Debug.DebugDraw.getDefaultInstance(); } } /** * .SC2APIProtocol.DebugDraw draw = 1; */ private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Debug.DebugDraw, SC2APIProtocol.Debug.DebugDraw.Builder, SC2APIProtocol.Debug.DebugDrawOrBuilder> getDrawFieldBuilder() { if (drawBuilder_ == null) { if (!(commandCase_ == 1)) { command_ = SC2APIProtocol.Debug.DebugDraw.getDefaultInstance(); } drawBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Debug.DebugDraw, SC2APIProtocol.Debug.DebugDraw.Builder, SC2APIProtocol.Debug.DebugDrawOrBuilder>( (SC2APIProtocol.Debug.DebugDraw) command_, getParentForChildren(), isClean()); command_ = null; } commandCase_ = 1; onChanged();; return drawBuilder_; } /** * .SC2APIProtocol.DebugGameState game_state = 2; * @return Whether the gameState field is set. */ @java.lang.Override public boolean hasGameState() { return commandCase_ == 2; } /** * .SC2APIProtocol.DebugGameState game_state = 2; * @return The gameState. */ @java.lang.Override public SC2APIProtocol.Debug.DebugGameState getGameState() { if (commandCase_ == 2) { @SuppressWarnings("deprecation") SC2APIProtocol.Debug.DebugGameState result = SC2APIProtocol.Debug.DebugGameState.valueOf( (java.lang.Integer) command_); return result == null ? SC2APIProtocol.Debug.DebugGameState.show_map : result; } return SC2APIProtocol.Debug.DebugGameState.show_map; } /** * .SC2APIProtocol.DebugGameState game_state = 2; * @param value The gameState to set. * @return This builder for chaining. */ public Builder setGameState(SC2APIProtocol.Debug.DebugGameState value) { if (value == null) { throw new NullPointerException(); } commandCase_ = 2; command_ = value.getNumber(); onChanged(); return this; } /** * .SC2APIProtocol.DebugGameState game_state = 2; * @return This builder for chaining. */ public Builder clearGameState() { if (commandCase_ == 2) { commandCase_ = 0; command_ = null; onChanged(); } return this; } private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Debug.DebugCreateUnit, SC2APIProtocol.Debug.DebugCreateUnit.Builder, SC2APIProtocol.Debug.DebugCreateUnitOrBuilder> createUnitBuilder_; /** * .SC2APIProtocol.DebugCreateUnit create_unit = 3; * @return Whether the createUnit field is set. */ @java.lang.Override public boolean hasCreateUnit() { return commandCase_ == 3; } /** * .SC2APIProtocol.DebugCreateUnit create_unit = 3; * @return The createUnit. */ @java.lang.Override public SC2APIProtocol.Debug.DebugCreateUnit getCreateUnit() { if (createUnitBuilder_ == null) { if (commandCase_ == 3) { return (SC2APIProtocol.Debug.DebugCreateUnit) command_; } return SC2APIProtocol.Debug.DebugCreateUnit.getDefaultInstance(); } else { if (commandCase_ == 3) { return createUnitBuilder_.getMessage(); } return SC2APIProtocol.Debug.DebugCreateUnit.getDefaultInstance(); } } /** * .SC2APIProtocol.DebugCreateUnit create_unit = 3; */ public Builder setCreateUnit(SC2APIProtocol.Debug.DebugCreateUnit value) { if (createUnitBuilder_ == null) { if (value == null) { throw new NullPointerException(); } command_ = value; onChanged(); } else { createUnitBuilder_.setMessage(value); } commandCase_ = 3; return this; } /** * .SC2APIProtocol.DebugCreateUnit create_unit = 3; */ public Builder setCreateUnit( SC2APIProtocol.Debug.DebugCreateUnit.Builder builderForValue) { if (createUnitBuilder_ == null) { command_ = builderForValue.build(); onChanged(); } else { createUnitBuilder_.setMessage(builderForValue.build()); } commandCase_ = 3; return this; } /** * .SC2APIProtocol.DebugCreateUnit create_unit = 3; */ public Builder mergeCreateUnit(SC2APIProtocol.Debug.DebugCreateUnit value) { if (createUnitBuilder_ == null) { if (commandCase_ == 3 && command_ != SC2APIProtocol.Debug.DebugCreateUnit.getDefaultInstance()) { command_ = SC2APIProtocol.Debug.DebugCreateUnit.newBuilder((SC2APIProtocol.Debug.DebugCreateUnit) command_) .mergeFrom(value).buildPartial(); } else { command_ = value; } onChanged(); } else { if (commandCase_ == 3) { createUnitBuilder_.mergeFrom(value); } else { createUnitBuilder_.setMessage(value); } } commandCase_ = 3; return this; } /** * .SC2APIProtocol.DebugCreateUnit create_unit = 3; */ public Builder clearCreateUnit() { if (createUnitBuilder_ == null) { if (commandCase_ == 3) { commandCase_ = 0; command_ = null; onChanged(); } } else { if (commandCase_ == 3) { commandCase_ = 0; command_ = null; } createUnitBuilder_.clear(); } return this; } /** * .SC2APIProtocol.DebugCreateUnit create_unit = 3; */ public SC2APIProtocol.Debug.DebugCreateUnit.Builder getCreateUnitBuilder() { return getCreateUnitFieldBuilder().getBuilder(); } /** * .SC2APIProtocol.DebugCreateUnit create_unit = 3; */ @java.lang.Override public SC2APIProtocol.Debug.DebugCreateUnitOrBuilder getCreateUnitOrBuilder() { if ((commandCase_ == 3) && (createUnitBuilder_ != null)) { return createUnitBuilder_.getMessageOrBuilder(); } else { if (commandCase_ == 3) { return (SC2APIProtocol.Debug.DebugCreateUnit) command_; } return SC2APIProtocol.Debug.DebugCreateUnit.getDefaultInstance(); } } /** * .SC2APIProtocol.DebugCreateUnit create_unit = 3; */ private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Debug.DebugCreateUnit, SC2APIProtocol.Debug.DebugCreateUnit.Builder, SC2APIProtocol.Debug.DebugCreateUnitOrBuilder> getCreateUnitFieldBuilder() { if (createUnitBuilder_ == null) { if (!(commandCase_ == 3)) { command_ = SC2APIProtocol.Debug.DebugCreateUnit.getDefaultInstance(); } createUnitBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Debug.DebugCreateUnit, SC2APIProtocol.Debug.DebugCreateUnit.Builder, SC2APIProtocol.Debug.DebugCreateUnitOrBuilder>( (SC2APIProtocol.Debug.DebugCreateUnit) command_, getParentForChildren(), isClean()); command_ = null; } commandCase_ = 3; onChanged();; return createUnitBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Debug.DebugKillUnit, SC2APIProtocol.Debug.DebugKillUnit.Builder, SC2APIProtocol.Debug.DebugKillUnitOrBuilder> killUnitBuilder_; /** * .SC2APIProtocol.DebugKillUnit kill_unit = 4; * @return Whether the killUnit field is set. */ @java.lang.Override public boolean hasKillUnit() { return commandCase_ == 4; } /** * .SC2APIProtocol.DebugKillUnit kill_unit = 4; * @return The killUnit. */ @java.lang.Override public SC2APIProtocol.Debug.DebugKillUnit getKillUnit() { if (killUnitBuilder_ == null) { if (commandCase_ == 4) { return (SC2APIProtocol.Debug.DebugKillUnit) command_; } return SC2APIProtocol.Debug.DebugKillUnit.getDefaultInstance(); } else { if (commandCase_ == 4) { return killUnitBuilder_.getMessage(); } return SC2APIProtocol.Debug.DebugKillUnit.getDefaultInstance(); } } /** * .SC2APIProtocol.DebugKillUnit kill_unit = 4; */ public Builder setKillUnit(SC2APIProtocol.Debug.DebugKillUnit value) { if (killUnitBuilder_ == null) { if (value == null) { throw new NullPointerException(); } command_ = value; onChanged(); } else { killUnitBuilder_.setMessage(value); } commandCase_ = 4; return this; } /** * .SC2APIProtocol.DebugKillUnit kill_unit = 4; */ public Builder setKillUnit( SC2APIProtocol.Debug.DebugKillUnit.Builder builderForValue) { if (killUnitBuilder_ == null) { command_ = builderForValue.build(); onChanged(); } else { killUnitBuilder_.setMessage(builderForValue.build()); } commandCase_ = 4; return this; } /** * .SC2APIProtocol.DebugKillUnit kill_unit = 4; */ public Builder mergeKillUnit(SC2APIProtocol.Debug.DebugKillUnit value) { if (killUnitBuilder_ == null) { if (commandCase_ == 4 && command_ != SC2APIProtocol.Debug.DebugKillUnit.getDefaultInstance()) { command_ = SC2APIProtocol.Debug.DebugKillUnit.newBuilder((SC2APIProtocol.Debug.DebugKillUnit) command_) .mergeFrom(value).buildPartial(); } else { command_ = value; } onChanged(); } else { if (commandCase_ == 4) { killUnitBuilder_.mergeFrom(value); } else { killUnitBuilder_.setMessage(value); } } commandCase_ = 4; return this; } /** * .SC2APIProtocol.DebugKillUnit kill_unit = 4; */ public Builder clearKillUnit() { if (killUnitBuilder_ == null) { if (commandCase_ == 4) { commandCase_ = 0; command_ = null; onChanged(); } } else { if (commandCase_ == 4) { commandCase_ = 0; command_ = null; } killUnitBuilder_.clear(); } return this; } /** * .SC2APIProtocol.DebugKillUnit kill_unit = 4; */ public SC2APIProtocol.Debug.DebugKillUnit.Builder getKillUnitBuilder() { return getKillUnitFieldBuilder().getBuilder(); } /** * .SC2APIProtocol.DebugKillUnit kill_unit = 4; */ @java.lang.Override public SC2APIProtocol.Debug.DebugKillUnitOrBuilder getKillUnitOrBuilder() { if ((commandCase_ == 4) && (killUnitBuilder_ != null)) { return killUnitBuilder_.getMessageOrBuilder(); } else { if (commandCase_ == 4) { return (SC2APIProtocol.Debug.DebugKillUnit) command_; } return SC2APIProtocol.Debug.DebugKillUnit.getDefaultInstance(); } } /** * .SC2APIProtocol.DebugKillUnit kill_unit = 4; */ private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Debug.DebugKillUnit, SC2APIProtocol.Debug.DebugKillUnit.Builder, SC2APIProtocol.Debug.DebugKillUnitOrBuilder> getKillUnitFieldBuilder() { if (killUnitBuilder_ == null) { if (!(commandCase_ == 4)) { command_ = SC2APIProtocol.Debug.DebugKillUnit.getDefaultInstance(); } killUnitBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Debug.DebugKillUnit, SC2APIProtocol.Debug.DebugKillUnit.Builder, SC2APIProtocol.Debug.DebugKillUnitOrBuilder>( (SC2APIProtocol.Debug.DebugKillUnit) command_, getParentForChildren(), isClean()); command_ = null; } commandCase_ = 4; onChanged();; return killUnitBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Debug.DebugTestProcess, SC2APIProtocol.Debug.DebugTestProcess.Builder, SC2APIProtocol.Debug.DebugTestProcessOrBuilder> testProcessBuilder_; /** * .SC2APIProtocol.DebugTestProcess test_process = 5; * @return Whether the testProcess field is set. */ @java.lang.Override public boolean hasTestProcess() { return commandCase_ == 5; } /** * .SC2APIProtocol.DebugTestProcess test_process = 5; * @return The testProcess. */ @java.lang.Override public SC2APIProtocol.Debug.DebugTestProcess getTestProcess() { if (testProcessBuilder_ == null) { if (commandCase_ == 5) { return (SC2APIProtocol.Debug.DebugTestProcess) command_; } return SC2APIProtocol.Debug.DebugTestProcess.getDefaultInstance(); } else { if (commandCase_ == 5) { return testProcessBuilder_.getMessage(); } return SC2APIProtocol.Debug.DebugTestProcess.getDefaultInstance(); } } /** * .SC2APIProtocol.DebugTestProcess test_process = 5; */ public Builder setTestProcess(SC2APIProtocol.Debug.DebugTestProcess value) { if (testProcessBuilder_ == null) { if (value == null) { throw new NullPointerException(); } command_ = value; onChanged(); } else { testProcessBuilder_.setMessage(value); } commandCase_ = 5; return this; } /** * .SC2APIProtocol.DebugTestProcess test_process = 5; */ public Builder setTestProcess( SC2APIProtocol.Debug.DebugTestProcess.Builder builderForValue) { if (testProcessBuilder_ == null) { command_ = builderForValue.build(); onChanged(); } else { testProcessBuilder_.setMessage(builderForValue.build()); } commandCase_ = 5; return this; } /** * .SC2APIProtocol.DebugTestProcess test_process = 5; */ public Builder mergeTestProcess(SC2APIProtocol.Debug.DebugTestProcess value) { if (testProcessBuilder_ == null) { if (commandCase_ == 5 && command_ != SC2APIProtocol.Debug.DebugTestProcess.getDefaultInstance()) { command_ = SC2APIProtocol.Debug.DebugTestProcess.newBuilder((SC2APIProtocol.Debug.DebugTestProcess) command_) .mergeFrom(value).buildPartial(); } else { command_ = value; } onChanged(); } else { if (commandCase_ == 5) { testProcessBuilder_.mergeFrom(value); } else { testProcessBuilder_.setMessage(value); } } commandCase_ = 5; return this; } /** * .SC2APIProtocol.DebugTestProcess test_process = 5; */ public Builder clearTestProcess() { if (testProcessBuilder_ == null) { if (commandCase_ == 5) { commandCase_ = 0; command_ = null; onChanged(); } } else { if (commandCase_ == 5) { commandCase_ = 0; command_ = null; } testProcessBuilder_.clear(); } return this; } /** * .SC2APIProtocol.DebugTestProcess test_process = 5; */ public SC2APIProtocol.Debug.DebugTestProcess.Builder getTestProcessBuilder() { return getTestProcessFieldBuilder().getBuilder(); } /** * .SC2APIProtocol.DebugTestProcess test_process = 5; */ @java.lang.Override public SC2APIProtocol.Debug.DebugTestProcessOrBuilder getTestProcessOrBuilder() { if ((commandCase_ == 5) && (testProcessBuilder_ != null)) { return testProcessBuilder_.getMessageOrBuilder(); } else { if (commandCase_ == 5) { return (SC2APIProtocol.Debug.DebugTestProcess) command_; } return SC2APIProtocol.Debug.DebugTestProcess.getDefaultInstance(); } } /** * .SC2APIProtocol.DebugTestProcess test_process = 5; */ private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Debug.DebugTestProcess, SC2APIProtocol.Debug.DebugTestProcess.Builder, SC2APIProtocol.Debug.DebugTestProcessOrBuilder> getTestProcessFieldBuilder() { if (testProcessBuilder_ == null) { if (!(commandCase_ == 5)) { command_ = SC2APIProtocol.Debug.DebugTestProcess.getDefaultInstance(); } testProcessBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Debug.DebugTestProcess, SC2APIProtocol.Debug.DebugTestProcess.Builder, SC2APIProtocol.Debug.DebugTestProcessOrBuilder>( (SC2APIProtocol.Debug.DebugTestProcess) command_, getParentForChildren(), isClean()); command_ = null; } commandCase_ = 5; onChanged();; return testProcessBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Debug.DebugSetScore, SC2APIProtocol.Debug.DebugSetScore.Builder, SC2APIProtocol.Debug.DebugSetScoreOrBuilder> scoreBuilder_; /** *
       * Useful only for single-player "curriculum" maps.
       * 
* * .SC2APIProtocol.DebugSetScore score = 6; * @return Whether the score field is set. */ @java.lang.Override public boolean hasScore() { return commandCase_ == 6; } /** *
       * Useful only for single-player "curriculum" maps.
       * 
* * .SC2APIProtocol.DebugSetScore score = 6; * @return The score. */ @java.lang.Override public SC2APIProtocol.Debug.DebugSetScore getScore() { if (scoreBuilder_ == null) { if (commandCase_ == 6) { return (SC2APIProtocol.Debug.DebugSetScore) command_; } return SC2APIProtocol.Debug.DebugSetScore.getDefaultInstance(); } else { if (commandCase_ == 6) { return scoreBuilder_.getMessage(); } return SC2APIProtocol.Debug.DebugSetScore.getDefaultInstance(); } } /** *
       * Useful only for single-player "curriculum" maps.
       * 
* * .SC2APIProtocol.DebugSetScore score = 6; */ public Builder setScore(SC2APIProtocol.Debug.DebugSetScore value) { if (scoreBuilder_ == null) { if (value == null) { throw new NullPointerException(); } command_ = value; onChanged(); } else { scoreBuilder_.setMessage(value); } commandCase_ = 6; return this; } /** *
       * Useful only for single-player "curriculum" maps.
       * 
* * .SC2APIProtocol.DebugSetScore score = 6; */ public Builder setScore( SC2APIProtocol.Debug.DebugSetScore.Builder builderForValue) { if (scoreBuilder_ == null) { command_ = builderForValue.build(); onChanged(); } else { scoreBuilder_.setMessage(builderForValue.build()); } commandCase_ = 6; return this; } /** *
       * Useful only for single-player "curriculum" maps.
       * 
* * .SC2APIProtocol.DebugSetScore score = 6; */ public Builder mergeScore(SC2APIProtocol.Debug.DebugSetScore value) { if (scoreBuilder_ == null) { if (commandCase_ == 6 && command_ != SC2APIProtocol.Debug.DebugSetScore.getDefaultInstance()) { command_ = SC2APIProtocol.Debug.DebugSetScore.newBuilder((SC2APIProtocol.Debug.DebugSetScore) command_) .mergeFrom(value).buildPartial(); } else { command_ = value; } onChanged(); } else { if (commandCase_ == 6) { scoreBuilder_.mergeFrom(value); } else { scoreBuilder_.setMessage(value); } } commandCase_ = 6; return this; } /** *
       * Useful only for single-player "curriculum" maps.
       * 
* * .SC2APIProtocol.DebugSetScore score = 6; */ public Builder clearScore() { if (scoreBuilder_ == null) { if (commandCase_ == 6) { commandCase_ = 0; command_ = null; onChanged(); } } else { if (commandCase_ == 6) { commandCase_ = 0; command_ = null; } scoreBuilder_.clear(); } return this; } /** *
       * Useful only for single-player "curriculum" maps.
       * 
* * .SC2APIProtocol.DebugSetScore score = 6; */ public SC2APIProtocol.Debug.DebugSetScore.Builder getScoreBuilder() { return getScoreFieldBuilder().getBuilder(); } /** *
       * Useful only for single-player "curriculum" maps.
       * 
* * .SC2APIProtocol.DebugSetScore score = 6; */ @java.lang.Override public SC2APIProtocol.Debug.DebugSetScoreOrBuilder getScoreOrBuilder() { if ((commandCase_ == 6) && (scoreBuilder_ != null)) { return scoreBuilder_.getMessageOrBuilder(); } else { if (commandCase_ == 6) { return (SC2APIProtocol.Debug.DebugSetScore) command_; } return SC2APIProtocol.Debug.DebugSetScore.getDefaultInstance(); } } /** *
       * Useful only for single-player "curriculum" maps.
       * 
* * .SC2APIProtocol.DebugSetScore score = 6; */ private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Debug.DebugSetScore, SC2APIProtocol.Debug.DebugSetScore.Builder, SC2APIProtocol.Debug.DebugSetScoreOrBuilder> getScoreFieldBuilder() { if (scoreBuilder_ == null) { if (!(commandCase_ == 6)) { command_ = SC2APIProtocol.Debug.DebugSetScore.getDefaultInstance(); } scoreBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Debug.DebugSetScore, SC2APIProtocol.Debug.DebugSetScore.Builder, SC2APIProtocol.Debug.DebugSetScoreOrBuilder>( (SC2APIProtocol.Debug.DebugSetScore) command_, getParentForChildren(), isClean()); command_ = null; } commandCase_ = 6; onChanged();; return scoreBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Debug.DebugEndGame, SC2APIProtocol.Debug.DebugEndGame.Builder, SC2APIProtocol.Debug.DebugEndGameOrBuilder> endGameBuilder_; /** * .SC2APIProtocol.DebugEndGame end_game = 7; * @return Whether the endGame field is set. */ @java.lang.Override public boolean hasEndGame() { return commandCase_ == 7; } /** * .SC2APIProtocol.DebugEndGame end_game = 7; * @return The endGame. */ @java.lang.Override public SC2APIProtocol.Debug.DebugEndGame getEndGame() { if (endGameBuilder_ == null) { if (commandCase_ == 7) { return (SC2APIProtocol.Debug.DebugEndGame) command_; } return SC2APIProtocol.Debug.DebugEndGame.getDefaultInstance(); } else { if (commandCase_ == 7) { return endGameBuilder_.getMessage(); } return SC2APIProtocol.Debug.DebugEndGame.getDefaultInstance(); } } /** * .SC2APIProtocol.DebugEndGame end_game = 7; */ public Builder setEndGame(SC2APIProtocol.Debug.DebugEndGame value) { if (endGameBuilder_ == null) { if (value == null) { throw new NullPointerException(); } command_ = value; onChanged(); } else { endGameBuilder_.setMessage(value); } commandCase_ = 7; return this; } /** * .SC2APIProtocol.DebugEndGame end_game = 7; */ public Builder setEndGame( SC2APIProtocol.Debug.DebugEndGame.Builder builderForValue) { if (endGameBuilder_ == null) { command_ = builderForValue.build(); onChanged(); } else { endGameBuilder_.setMessage(builderForValue.build()); } commandCase_ = 7; return this; } /** * .SC2APIProtocol.DebugEndGame end_game = 7; */ public Builder mergeEndGame(SC2APIProtocol.Debug.DebugEndGame value) { if (endGameBuilder_ == null) { if (commandCase_ == 7 && command_ != SC2APIProtocol.Debug.DebugEndGame.getDefaultInstance()) { command_ = SC2APIProtocol.Debug.DebugEndGame.newBuilder((SC2APIProtocol.Debug.DebugEndGame) command_) .mergeFrom(value).buildPartial(); } else { command_ = value; } onChanged(); } else { if (commandCase_ == 7) { endGameBuilder_.mergeFrom(value); } else { endGameBuilder_.setMessage(value); } } commandCase_ = 7; return this; } /** * .SC2APIProtocol.DebugEndGame end_game = 7; */ public Builder clearEndGame() { if (endGameBuilder_ == null) { if (commandCase_ == 7) { commandCase_ = 0; command_ = null; onChanged(); } } else { if (commandCase_ == 7) { commandCase_ = 0; command_ = null; } endGameBuilder_.clear(); } return this; } /** * .SC2APIProtocol.DebugEndGame end_game = 7; */ public SC2APIProtocol.Debug.DebugEndGame.Builder getEndGameBuilder() { return getEndGameFieldBuilder().getBuilder(); } /** * .SC2APIProtocol.DebugEndGame end_game = 7; */ @java.lang.Override public SC2APIProtocol.Debug.DebugEndGameOrBuilder getEndGameOrBuilder() { if ((commandCase_ == 7) && (endGameBuilder_ != null)) { return endGameBuilder_.getMessageOrBuilder(); } else { if (commandCase_ == 7) { return (SC2APIProtocol.Debug.DebugEndGame) command_; } return SC2APIProtocol.Debug.DebugEndGame.getDefaultInstance(); } } /** * .SC2APIProtocol.DebugEndGame end_game = 7; */ private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Debug.DebugEndGame, SC2APIProtocol.Debug.DebugEndGame.Builder, SC2APIProtocol.Debug.DebugEndGameOrBuilder> getEndGameFieldBuilder() { if (endGameBuilder_ == null) { if (!(commandCase_ == 7)) { command_ = SC2APIProtocol.Debug.DebugEndGame.getDefaultInstance(); } endGameBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Debug.DebugEndGame, SC2APIProtocol.Debug.DebugEndGame.Builder, SC2APIProtocol.Debug.DebugEndGameOrBuilder>( (SC2APIProtocol.Debug.DebugEndGame) command_, getParentForChildren(), isClean()); command_ = null; } commandCase_ = 7; onChanged();; return endGameBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Debug.DebugSetUnitValue, SC2APIProtocol.Debug.DebugSetUnitValue.Builder, SC2APIProtocol.Debug.DebugSetUnitValueOrBuilder> unitValueBuilder_; /** * .SC2APIProtocol.DebugSetUnitValue unit_value = 8; * @return Whether the unitValue field is set. */ @java.lang.Override public boolean hasUnitValue() { return commandCase_ == 8; } /** * .SC2APIProtocol.DebugSetUnitValue unit_value = 8; * @return The unitValue. */ @java.lang.Override public SC2APIProtocol.Debug.DebugSetUnitValue getUnitValue() { if (unitValueBuilder_ == null) { if (commandCase_ == 8) { return (SC2APIProtocol.Debug.DebugSetUnitValue) command_; } return SC2APIProtocol.Debug.DebugSetUnitValue.getDefaultInstance(); } else { if (commandCase_ == 8) { return unitValueBuilder_.getMessage(); } return SC2APIProtocol.Debug.DebugSetUnitValue.getDefaultInstance(); } } /** * .SC2APIProtocol.DebugSetUnitValue unit_value = 8; */ public Builder setUnitValue(SC2APIProtocol.Debug.DebugSetUnitValue value) { if (unitValueBuilder_ == null) { if (value == null) { throw new NullPointerException(); } command_ = value; onChanged(); } else { unitValueBuilder_.setMessage(value); } commandCase_ = 8; return this; } /** * .SC2APIProtocol.DebugSetUnitValue unit_value = 8; */ public Builder setUnitValue( SC2APIProtocol.Debug.DebugSetUnitValue.Builder builderForValue) { if (unitValueBuilder_ == null) { command_ = builderForValue.build(); onChanged(); } else { unitValueBuilder_.setMessage(builderForValue.build()); } commandCase_ = 8; return this; } /** * .SC2APIProtocol.DebugSetUnitValue unit_value = 8; */ public Builder mergeUnitValue(SC2APIProtocol.Debug.DebugSetUnitValue value) { if (unitValueBuilder_ == null) { if (commandCase_ == 8 && command_ != SC2APIProtocol.Debug.DebugSetUnitValue.getDefaultInstance()) { command_ = SC2APIProtocol.Debug.DebugSetUnitValue.newBuilder((SC2APIProtocol.Debug.DebugSetUnitValue) command_) .mergeFrom(value).buildPartial(); } else { command_ = value; } onChanged(); } else { if (commandCase_ == 8) { unitValueBuilder_.mergeFrom(value); } else { unitValueBuilder_.setMessage(value); } } commandCase_ = 8; return this; } /** * .SC2APIProtocol.DebugSetUnitValue unit_value = 8; */ public Builder clearUnitValue() { if (unitValueBuilder_ == null) { if (commandCase_ == 8) { commandCase_ = 0; command_ = null; onChanged(); } } else { if (commandCase_ == 8) { commandCase_ = 0; command_ = null; } unitValueBuilder_.clear(); } return this; } /** * .SC2APIProtocol.DebugSetUnitValue unit_value = 8; */ public SC2APIProtocol.Debug.DebugSetUnitValue.Builder getUnitValueBuilder() { return getUnitValueFieldBuilder().getBuilder(); } /** * .SC2APIProtocol.DebugSetUnitValue unit_value = 8; */ @java.lang.Override public SC2APIProtocol.Debug.DebugSetUnitValueOrBuilder getUnitValueOrBuilder() { if ((commandCase_ == 8) && (unitValueBuilder_ != null)) { return unitValueBuilder_.getMessageOrBuilder(); } else { if (commandCase_ == 8) { return (SC2APIProtocol.Debug.DebugSetUnitValue) command_; } return SC2APIProtocol.Debug.DebugSetUnitValue.getDefaultInstance(); } } /** * .SC2APIProtocol.DebugSetUnitValue unit_value = 8; */ private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Debug.DebugSetUnitValue, SC2APIProtocol.Debug.DebugSetUnitValue.Builder, SC2APIProtocol.Debug.DebugSetUnitValueOrBuilder> getUnitValueFieldBuilder() { if (unitValueBuilder_ == null) { if (!(commandCase_ == 8)) { command_ = SC2APIProtocol.Debug.DebugSetUnitValue.getDefaultInstance(); } unitValueBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Debug.DebugSetUnitValue, SC2APIProtocol.Debug.DebugSetUnitValue.Builder, SC2APIProtocol.Debug.DebugSetUnitValueOrBuilder>( (SC2APIProtocol.Debug.DebugSetUnitValue) command_, getParentForChildren(), isClean()); command_ = null; } commandCase_ = 8; onChanged();; return unitValueBuilder_; } @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:SC2APIProtocol.DebugCommand) } // @@protoc_insertion_point(class_scope:SC2APIProtocol.DebugCommand) private static final SC2APIProtocol.Debug.DebugCommand DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new SC2APIProtocol.Debug.DebugCommand(); } public static SC2APIProtocol.Debug.DebugCommand getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DebugCommand parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public SC2APIProtocol.Debug.DebugCommand getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DebugDrawOrBuilder extends // @@protoc_insertion_point(interface_extends:SC2APIProtocol.DebugDraw) com.google.protobuf.MessageOrBuilder { /** * repeated .SC2APIProtocol.DebugText text = 1; */ java.util.List getTextList(); /** * repeated .SC2APIProtocol.DebugText text = 1; */ SC2APIProtocol.Debug.DebugText getText(int index); /** * repeated .SC2APIProtocol.DebugText text = 1; */ int getTextCount(); /** * repeated .SC2APIProtocol.DebugText text = 1; */ java.util.List getTextOrBuilderList(); /** * repeated .SC2APIProtocol.DebugText text = 1; */ SC2APIProtocol.Debug.DebugTextOrBuilder getTextOrBuilder( int index); /** * repeated .SC2APIProtocol.DebugLine lines = 2; */ java.util.List getLinesList(); /** * repeated .SC2APIProtocol.DebugLine lines = 2; */ SC2APIProtocol.Debug.DebugLine getLines(int index); /** * repeated .SC2APIProtocol.DebugLine lines = 2; */ int getLinesCount(); /** * repeated .SC2APIProtocol.DebugLine lines = 2; */ java.util.List getLinesOrBuilderList(); /** * repeated .SC2APIProtocol.DebugLine lines = 2; */ SC2APIProtocol.Debug.DebugLineOrBuilder getLinesOrBuilder( int index); /** * repeated .SC2APIProtocol.DebugBox boxes = 3; */ java.util.List getBoxesList(); /** * repeated .SC2APIProtocol.DebugBox boxes = 3; */ SC2APIProtocol.Debug.DebugBox getBoxes(int index); /** * repeated .SC2APIProtocol.DebugBox boxes = 3; */ int getBoxesCount(); /** * repeated .SC2APIProtocol.DebugBox boxes = 3; */ java.util.List getBoxesOrBuilderList(); /** * repeated .SC2APIProtocol.DebugBox boxes = 3; */ SC2APIProtocol.Debug.DebugBoxOrBuilder getBoxesOrBuilder( int index); /** * repeated .SC2APIProtocol.DebugSphere spheres = 4; */ java.util.List getSpheresList(); /** * repeated .SC2APIProtocol.DebugSphere spheres = 4; */ SC2APIProtocol.Debug.DebugSphere getSpheres(int index); /** * repeated .SC2APIProtocol.DebugSphere spheres = 4; */ int getSpheresCount(); /** * repeated .SC2APIProtocol.DebugSphere spheres = 4; */ java.util.List getSpheresOrBuilderList(); /** * repeated .SC2APIProtocol.DebugSphere spheres = 4; */ SC2APIProtocol.Debug.DebugSphereOrBuilder getSpheresOrBuilder( int index); } /** * Protobuf type {@code SC2APIProtocol.DebugDraw} */ public static final class DebugDraw extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:SC2APIProtocol.DebugDraw) DebugDrawOrBuilder { private static final long serialVersionUID = 0L; // Use DebugDraw.newBuilder() to construct. private DebugDraw(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DebugDraw() { text_ = java.util.Collections.emptyList(); lines_ = java.util.Collections.emptyList(); boxes_ = java.util.Collections.emptyList(); spheres_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DebugDraw(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Debug.internal_static_SC2APIProtocol_DebugDraw_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Debug.internal_static_SC2APIProtocol_DebugDraw_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Debug.DebugDraw.class, SC2APIProtocol.Debug.DebugDraw.Builder.class); } public static final int TEXT_FIELD_NUMBER = 1; private java.util.List text_; /** * repeated .SC2APIProtocol.DebugText text = 1; */ @java.lang.Override public java.util.List getTextList() { return text_; } /** * repeated .SC2APIProtocol.DebugText text = 1; */ @java.lang.Override public java.util.List getTextOrBuilderList() { return text_; } /** * repeated .SC2APIProtocol.DebugText text = 1; */ @java.lang.Override public int getTextCount() { return text_.size(); } /** * repeated .SC2APIProtocol.DebugText text = 1; */ @java.lang.Override public SC2APIProtocol.Debug.DebugText getText(int index) { return text_.get(index); } /** * repeated .SC2APIProtocol.DebugText text = 1; */ @java.lang.Override public SC2APIProtocol.Debug.DebugTextOrBuilder getTextOrBuilder( int index) { return text_.get(index); } public static final int LINES_FIELD_NUMBER = 2; private java.util.List lines_; /** * repeated .SC2APIProtocol.DebugLine lines = 2; */ @java.lang.Override public java.util.List getLinesList() { return lines_; } /** * repeated .SC2APIProtocol.DebugLine lines = 2; */ @java.lang.Override public java.util.List getLinesOrBuilderList() { return lines_; } /** * repeated .SC2APIProtocol.DebugLine lines = 2; */ @java.lang.Override public int getLinesCount() { return lines_.size(); } /** * repeated .SC2APIProtocol.DebugLine lines = 2; */ @java.lang.Override public SC2APIProtocol.Debug.DebugLine getLines(int index) { return lines_.get(index); } /** * repeated .SC2APIProtocol.DebugLine lines = 2; */ @java.lang.Override public SC2APIProtocol.Debug.DebugLineOrBuilder getLinesOrBuilder( int index) { return lines_.get(index); } public static final int BOXES_FIELD_NUMBER = 3; private java.util.List boxes_; /** * repeated .SC2APIProtocol.DebugBox boxes = 3; */ @java.lang.Override public java.util.List getBoxesList() { return boxes_; } /** * repeated .SC2APIProtocol.DebugBox boxes = 3; */ @java.lang.Override public java.util.List getBoxesOrBuilderList() { return boxes_; } /** * repeated .SC2APIProtocol.DebugBox boxes = 3; */ @java.lang.Override public int getBoxesCount() { return boxes_.size(); } /** * repeated .SC2APIProtocol.DebugBox boxes = 3; */ @java.lang.Override public SC2APIProtocol.Debug.DebugBox getBoxes(int index) { return boxes_.get(index); } /** * repeated .SC2APIProtocol.DebugBox boxes = 3; */ @java.lang.Override public SC2APIProtocol.Debug.DebugBoxOrBuilder getBoxesOrBuilder( int index) { return boxes_.get(index); } public static final int SPHERES_FIELD_NUMBER = 4; private java.util.List spheres_; /** * repeated .SC2APIProtocol.DebugSphere spheres = 4; */ @java.lang.Override public java.util.List getSpheresList() { return spheres_; } /** * repeated .SC2APIProtocol.DebugSphere spheres = 4; */ @java.lang.Override public java.util.List getSpheresOrBuilderList() { return spheres_; } /** * repeated .SC2APIProtocol.DebugSphere spheres = 4; */ @java.lang.Override public int getSpheresCount() { return spheres_.size(); } /** * repeated .SC2APIProtocol.DebugSphere spheres = 4; */ @java.lang.Override public SC2APIProtocol.Debug.DebugSphere getSpheres(int index) { return spheres_.get(index); } /** * repeated .SC2APIProtocol.DebugSphere spheres = 4; */ @java.lang.Override public SC2APIProtocol.Debug.DebugSphereOrBuilder getSpheresOrBuilder( int index) { return spheres_.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 { for (int i = 0; i < text_.size(); i++) { output.writeMessage(1, text_.get(i)); } for (int i = 0; i < lines_.size(); i++) { output.writeMessage(2, lines_.get(i)); } for (int i = 0; i < boxes_.size(); i++) { output.writeMessage(3, boxes_.get(i)); } for (int i = 0; i < spheres_.size(); i++) { output.writeMessage(4, spheres_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < text_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, text_.get(i)); } for (int i = 0; i < lines_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, lines_.get(i)); } for (int i = 0; i < boxes_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, boxes_.get(i)); } for (int i = 0; i < spheres_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, spheres_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof SC2APIProtocol.Debug.DebugDraw)) { return super.equals(obj); } SC2APIProtocol.Debug.DebugDraw other = (SC2APIProtocol.Debug.DebugDraw) obj; if (!getTextList() .equals(other.getTextList())) return false; if (!getLinesList() .equals(other.getLinesList())) return false; if (!getBoxesList() .equals(other.getBoxesList())) return false; if (!getSpheresList() .equals(other.getSpheresList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getTextCount() > 0) { hash = (37 * hash) + TEXT_FIELD_NUMBER; hash = (53 * hash) + getTextList().hashCode(); } if (getLinesCount() > 0) { hash = (37 * hash) + LINES_FIELD_NUMBER; hash = (53 * hash) + getLinesList().hashCode(); } if (getBoxesCount() > 0) { hash = (37 * hash) + BOXES_FIELD_NUMBER; hash = (53 * hash) + getBoxesList().hashCode(); } if (getSpheresCount() > 0) { hash = (37 * hash) + SPHERES_FIELD_NUMBER; hash = (53 * hash) + getSpheresList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static SC2APIProtocol.Debug.DebugDraw parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Debug.DebugDraw parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Debug.DebugDraw parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Debug.DebugDraw parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Debug.DebugDraw parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Debug.DebugDraw parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Debug.DebugDraw parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Debug.DebugDraw 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 SC2APIProtocol.Debug.DebugDraw parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static SC2APIProtocol.Debug.DebugDraw 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 SC2APIProtocol.Debug.DebugDraw parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Debug.DebugDraw 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(SC2APIProtocol.Debug.DebugDraw 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; } /** * Protobuf type {@code SC2APIProtocol.DebugDraw} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:SC2APIProtocol.DebugDraw) SC2APIProtocol.Debug.DebugDrawOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Debug.internal_static_SC2APIProtocol_DebugDraw_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Debug.internal_static_SC2APIProtocol_DebugDraw_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Debug.DebugDraw.class, SC2APIProtocol.Debug.DebugDraw.Builder.class); } // Construct using SC2APIProtocol.Debug.DebugDraw.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); if (textBuilder_ == null) { text_ = java.util.Collections.emptyList(); } else { text_ = null; textBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); if (linesBuilder_ == null) { lines_ = java.util.Collections.emptyList(); } else { lines_ = null; linesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); if (boxesBuilder_ == null) { boxes_ = java.util.Collections.emptyList(); } else { boxes_ = null; boxesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); if (spheresBuilder_ == null) { spheres_ = java.util.Collections.emptyList(); } else { spheres_ = null; spheresBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return SC2APIProtocol.Debug.internal_static_SC2APIProtocol_DebugDraw_descriptor; } @java.lang.Override public SC2APIProtocol.Debug.DebugDraw getDefaultInstanceForType() { return SC2APIProtocol.Debug.DebugDraw.getDefaultInstance(); } @java.lang.Override public SC2APIProtocol.Debug.DebugDraw build() { SC2APIProtocol.Debug.DebugDraw result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public SC2APIProtocol.Debug.DebugDraw buildPartial() { SC2APIProtocol.Debug.DebugDraw result = new SC2APIProtocol.Debug.DebugDraw(this); int from_bitField0_ = bitField0_; if (textBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { text_ = java.util.Collections.unmodifiableList(text_); bitField0_ = (bitField0_ & ~0x00000001); } result.text_ = text_; } else { result.text_ = textBuilder_.build(); } if (linesBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { lines_ = java.util.Collections.unmodifiableList(lines_); bitField0_ = (bitField0_ & ~0x00000002); } result.lines_ = lines_; } else { result.lines_ = linesBuilder_.build(); } if (boxesBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0)) { boxes_ = java.util.Collections.unmodifiableList(boxes_); bitField0_ = (bitField0_ & ~0x00000004); } result.boxes_ = boxes_; } else { result.boxes_ = boxesBuilder_.build(); } if (spheresBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0)) { spheres_ = java.util.Collections.unmodifiableList(spheres_); bitField0_ = (bitField0_ & ~0x00000008); } result.spheres_ = spheres_; } else { result.spheres_ = spheresBuilder_.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 SC2APIProtocol.Debug.DebugDraw) { return mergeFrom((SC2APIProtocol.Debug.DebugDraw)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(SC2APIProtocol.Debug.DebugDraw other) { if (other == SC2APIProtocol.Debug.DebugDraw.getDefaultInstance()) return this; if (textBuilder_ == null) { if (!other.text_.isEmpty()) { if (text_.isEmpty()) { text_ = other.text_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureTextIsMutable(); text_.addAll(other.text_); } onChanged(); } } else { if (!other.text_.isEmpty()) { if (textBuilder_.isEmpty()) { textBuilder_.dispose(); textBuilder_ = null; text_ = other.text_; bitField0_ = (bitField0_ & ~0x00000001); textBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getTextFieldBuilder() : null; } else { textBuilder_.addAllMessages(other.text_); } } } if (linesBuilder_ == null) { if (!other.lines_.isEmpty()) { if (lines_.isEmpty()) { lines_ = other.lines_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureLinesIsMutable(); lines_.addAll(other.lines_); } onChanged(); } } else { if (!other.lines_.isEmpty()) { if (linesBuilder_.isEmpty()) { linesBuilder_.dispose(); linesBuilder_ = null; lines_ = other.lines_; bitField0_ = (bitField0_ & ~0x00000002); linesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getLinesFieldBuilder() : null; } else { linesBuilder_.addAllMessages(other.lines_); } } } if (boxesBuilder_ == null) { if (!other.boxes_.isEmpty()) { if (boxes_.isEmpty()) { boxes_ = other.boxes_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureBoxesIsMutable(); boxes_.addAll(other.boxes_); } onChanged(); } } else { if (!other.boxes_.isEmpty()) { if (boxesBuilder_.isEmpty()) { boxesBuilder_.dispose(); boxesBuilder_ = null; boxes_ = other.boxes_; bitField0_ = (bitField0_ & ~0x00000004); boxesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getBoxesFieldBuilder() : null; } else { boxesBuilder_.addAllMessages(other.boxes_); } } } if (spheresBuilder_ == null) { if (!other.spheres_.isEmpty()) { if (spheres_.isEmpty()) { spheres_ = other.spheres_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureSpheresIsMutable(); spheres_.addAll(other.spheres_); } onChanged(); } } else { if (!other.spheres_.isEmpty()) { if (spheresBuilder_.isEmpty()) { spheresBuilder_.dispose(); spheresBuilder_ = null; spheres_ = other.spheres_; bitField0_ = (bitField0_ & ~0x00000008); spheresBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getSpheresFieldBuilder() : null; } else { spheresBuilder_.addAllMessages(other.spheres_); } } } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { SC2APIProtocol.Debug.DebugText m = input.readMessage( SC2APIProtocol.Debug.DebugText.PARSER, extensionRegistry); if (textBuilder_ == null) { ensureTextIsMutable(); text_.add(m); } else { textBuilder_.addMessage(m); } break; } // case 10 case 18: { SC2APIProtocol.Debug.DebugLine m = input.readMessage( SC2APIProtocol.Debug.DebugLine.PARSER, extensionRegistry); if (linesBuilder_ == null) { ensureLinesIsMutable(); lines_.add(m); } else { linesBuilder_.addMessage(m); } break; } // case 18 case 26: { SC2APIProtocol.Debug.DebugBox m = input.readMessage( SC2APIProtocol.Debug.DebugBox.PARSER, extensionRegistry); if (boxesBuilder_ == null) { ensureBoxesIsMutable(); boxes_.add(m); } else { boxesBuilder_.addMessage(m); } break; } // case 26 case 34: { SC2APIProtocol.Debug.DebugSphere m = input.readMessage( SC2APIProtocol.Debug.DebugSphere.PARSER, extensionRegistry); if (spheresBuilder_ == null) { ensureSpheresIsMutable(); spheres_.add(m); } else { spheresBuilder_.addMessage(m); } break; } // case 34 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.util.List text_ = java.util.Collections.emptyList(); private void ensureTextIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { text_ = new java.util.ArrayList(text_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< SC2APIProtocol.Debug.DebugText, SC2APIProtocol.Debug.DebugText.Builder, SC2APIProtocol.Debug.DebugTextOrBuilder> textBuilder_; /** * repeated .SC2APIProtocol.DebugText text = 1; */ public java.util.List getTextList() { if (textBuilder_ == null) { return java.util.Collections.unmodifiableList(text_); } else { return textBuilder_.getMessageList(); } } /** * repeated .SC2APIProtocol.DebugText text = 1; */ public int getTextCount() { if (textBuilder_ == null) { return text_.size(); } else { return textBuilder_.getCount(); } } /** * repeated .SC2APIProtocol.DebugText text = 1; */ public SC2APIProtocol.Debug.DebugText getText(int index) { if (textBuilder_ == null) { return text_.get(index); } else { return textBuilder_.getMessage(index); } } /** * repeated .SC2APIProtocol.DebugText text = 1; */ public Builder setText( int index, SC2APIProtocol.Debug.DebugText value) { if (textBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTextIsMutable(); text_.set(index, value); onChanged(); } else { textBuilder_.setMessage(index, value); } return this; } /** * repeated .SC2APIProtocol.DebugText text = 1; */ public Builder setText( int index, SC2APIProtocol.Debug.DebugText.Builder builderForValue) { if (textBuilder_ == null) { ensureTextIsMutable(); text_.set(index, builderForValue.build()); onChanged(); } else { textBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .SC2APIProtocol.DebugText text = 1; */ public Builder addText(SC2APIProtocol.Debug.DebugText value) { if (textBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTextIsMutable(); text_.add(value); onChanged(); } else { textBuilder_.addMessage(value); } return this; } /** * repeated .SC2APIProtocol.DebugText text = 1; */ public Builder addText( int index, SC2APIProtocol.Debug.DebugText value) { if (textBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureTextIsMutable(); text_.add(index, value); onChanged(); } else { textBuilder_.addMessage(index, value); } return this; } /** * repeated .SC2APIProtocol.DebugText text = 1; */ public Builder addText( SC2APIProtocol.Debug.DebugText.Builder builderForValue) { if (textBuilder_ == null) { ensureTextIsMutable(); text_.add(builderForValue.build()); onChanged(); } else { textBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .SC2APIProtocol.DebugText text = 1; */ public Builder addText( int index, SC2APIProtocol.Debug.DebugText.Builder builderForValue) { if (textBuilder_ == null) { ensureTextIsMutable(); text_.add(index, builderForValue.build()); onChanged(); } else { textBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .SC2APIProtocol.DebugText text = 1; */ public Builder addAllText( java.lang.Iterable values) { if (textBuilder_ == null) { ensureTextIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, text_); onChanged(); } else { textBuilder_.addAllMessages(values); } return this; } /** * repeated .SC2APIProtocol.DebugText text = 1; */ public Builder clearText() { if (textBuilder_ == null) { text_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { textBuilder_.clear(); } return this; } /** * repeated .SC2APIProtocol.DebugText text = 1; */ public Builder removeText(int index) { if (textBuilder_ == null) { ensureTextIsMutable(); text_.remove(index); onChanged(); } else { textBuilder_.remove(index); } return this; } /** * repeated .SC2APIProtocol.DebugText text = 1; */ public SC2APIProtocol.Debug.DebugText.Builder getTextBuilder( int index) { return getTextFieldBuilder().getBuilder(index); } /** * repeated .SC2APIProtocol.DebugText text = 1; */ public SC2APIProtocol.Debug.DebugTextOrBuilder getTextOrBuilder( int index) { if (textBuilder_ == null) { return text_.get(index); } else { return textBuilder_.getMessageOrBuilder(index); } } /** * repeated .SC2APIProtocol.DebugText text = 1; */ public java.util.List getTextOrBuilderList() { if (textBuilder_ != null) { return textBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(text_); } } /** * repeated .SC2APIProtocol.DebugText text = 1; */ public SC2APIProtocol.Debug.DebugText.Builder addTextBuilder() { return getTextFieldBuilder().addBuilder( SC2APIProtocol.Debug.DebugText.getDefaultInstance()); } /** * repeated .SC2APIProtocol.DebugText text = 1; */ public SC2APIProtocol.Debug.DebugText.Builder addTextBuilder( int index) { return getTextFieldBuilder().addBuilder( index, SC2APIProtocol.Debug.DebugText.getDefaultInstance()); } /** * repeated .SC2APIProtocol.DebugText text = 1; */ public java.util.List getTextBuilderList() { return getTextFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< SC2APIProtocol.Debug.DebugText, SC2APIProtocol.Debug.DebugText.Builder, SC2APIProtocol.Debug.DebugTextOrBuilder> getTextFieldBuilder() { if (textBuilder_ == null) { textBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< SC2APIProtocol.Debug.DebugText, SC2APIProtocol.Debug.DebugText.Builder, SC2APIProtocol.Debug.DebugTextOrBuilder>( text_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); text_ = null; } return textBuilder_; } private java.util.List lines_ = java.util.Collections.emptyList(); private void ensureLinesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { lines_ = new java.util.ArrayList(lines_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< SC2APIProtocol.Debug.DebugLine, SC2APIProtocol.Debug.DebugLine.Builder, SC2APIProtocol.Debug.DebugLineOrBuilder> linesBuilder_; /** * repeated .SC2APIProtocol.DebugLine lines = 2; */ public java.util.List getLinesList() { if (linesBuilder_ == null) { return java.util.Collections.unmodifiableList(lines_); } else { return linesBuilder_.getMessageList(); } } /** * repeated .SC2APIProtocol.DebugLine lines = 2; */ public int getLinesCount() { if (linesBuilder_ == null) { return lines_.size(); } else { return linesBuilder_.getCount(); } } /** * repeated .SC2APIProtocol.DebugLine lines = 2; */ public SC2APIProtocol.Debug.DebugLine getLines(int index) { if (linesBuilder_ == null) { return lines_.get(index); } else { return linesBuilder_.getMessage(index); } } /** * repeated .SC2APIProtocol.DebugLine lines = 2; */ public Builder setLines( int index, SC2APIProtocol.Debug.DebugLine value) { if (linesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLinesIsMutable(); lines_.set(index, value); onChanged(); } else { linesBuilder_.setMessage(index, value); } return this; } /** * repeated .SC2APIProtocol.DebugLine lines = 2; */ public Builder setLines( int index, SC2APIProtocol.Debug.DebugLine.Builder builderForValue) { if (linesBuilder_ == null) { ensureLinesIsMutable(); lines_.set(index, builderForValue.build()); onChanged(); } else { linesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .SC2APIProtocol.DebugLine lines = 2; */ public Builder addLines(SC2APIProtocol.Debug.DebugLine value) { if (linesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLinesIsMutable(); lines_.add(value); onChanged(); } else { linesBuilder_.addMessage(value); } return this; } /** * repeated .SC2APIProtocol.DebugLine lines = 2; */ public Builder addLines( int index, SC2APIProtocol.Debug.DebugLine value) { if (linesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureLinesIsMutable(); lines_.add(index, value); onChanged(); } else { linesBuilder_.addMessage(index, value); } return this; } /** * repeated .SC2APIProtocol.DebugLine lines = 2; */ public Builder addLines( SC2APIProtocol.Debug.DebugLine.Builder builderForValue) { if (linesBuilder_ == null) { ensureLinesIsMutable(); lines_.add(builderForValue.build()); onChanged(); } else { linesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .SC2APIProtocol.DebugLine lines = 2; */ public Builder addLines( int index, SC2APIProtocol.Debug.DebugLine.Builder builderForValue) { if (linesBuilder_ == null) { ensureLinesIsMutable(); lines_.add(index, builderForValue.build()); onChanged(); } else { linesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .SC2APIProtocol.DebugLine lines = 2; */ public Builder addAllLines( java.lang.Iterable values) { if (linesBuilder_ == null) { ensureLinesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, lines_); onChanged(); } else { linesBuilder_.addAllMessages(values); } return this; } /** * repeated .SC2APIProtocol.DebugLine lines = 2; */ public Builder clearLines() { if (linesBuilder_ == null) { lines_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { linesBuilder_.clear(); } return this; } /** * repeated .SC2APIProtocol.DebugLine lines = 2; */ public Builder removeLines(int index) { if (linesBuilder_ == null) { ensureLinesIsMutable(); lines_.remove(index); onChanged(); } else { linesBuilder_.remove(index); } return this; } /** * repeated .SC2APIProtocol.DebugLine lines = 2; */ public SC2APIProtocol.Debug.DebugLine.Builder getLinesBuilder( int index) { return getLinesFieldBuilder().getBuilder(index); } /** * repeated .SC2APIProtocol.DebugLine lines = 2; */ public SC2APIProtocol.Debug.DebugLineOrBuilder getLinesOrBuilder( int index) { if (linesBuilder_ == null) { return lines_.get(index); } else { return linesBuilder_.getMessageOrBuilder(index); } } /** * repeated .SC2APIProtocol.DebugLine lines = 2; */ public java.util.List getLinesOrBuilderList() { if (linesBuilder_ != null) { return linesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(lines_); } } /** * repeated .SC2APIProtocol.DebugLine lines = 2; */ public SC2APIProtocol.Debug.DebugLine.Builder addLinesBuilder() { return getLinesFieldBuilder().addBuilder( SC2APIProtocol.Debug.DebugLine.getDefaultInstance()); } /** * repeated .SC2APIProtocol.DebugLine lines = 2; */ public SC2APIProtocol.Debug.DebugLine.Builder addLinesBuilder( int index) { return getLinesFieldBuilder().addBuilder( index, SC2APIProtocol.Debug.DebugLine.getDefaultInstance()); } /** * repeated .SC2APIProtocol.DebugLine lines = 2; */ public java.util.List getLinesBuilderList() { return getLinesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< SC2APIProtocol.Debug.DebugLine, SC2APIProtocol.Debug.DebugLine.Builder, SC2APIProtocol.Debug.DebugLineOrBuilder> getLinesFieldBuilder() { if (linesBuilder_ == null) { linesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< SC2APIProtocol.Debug.DebugLine, SC2APIProtocol.Debug.DebugLine.Builder, SC2APIProtocol.Debug.DebugLineOrBuilder>( lines_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); lines_ = null; } return linesBuilder_; } private java.util.List boxes_ = java.util.Collections.emptyList(); private void ensureBoxesIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { boxes_ = new java.util.ArrayList(boxes_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilderV3< SC2APIProtocol.Debug.DebugBox, SC2APIProtocol.Debug.DebugBox.Builder, SC2APIProtocol.Debug.DebugBoxOrBuilder> boxesBuilder_; /** * repeated .SC2APIProtocol.DebugBox boxes = 3; */ public java.util.List getBoxesList() { if (boxesBuilder_ == null) { return java.util.Collections.unmodifiableList(boxes_); } else { return boxesBuilder_.getMessageList(); } } /** * repeated .SC2APIProtocol.DebugBox boxes = 3; */ public int getBoxesCount() { if (boxesBuilder_ == null) { return boxes_.size(); } else { return boxesBuilder_.getCount(); } } /** * repeated .SC2APIProtocol.DebugBox boxes = 3; */ public SC2APIProtocol.Debug.DebugBox getBoxes(int index) { if (boxesBuilder_ == null) { return boxes_.get(index); } else { return boxesBuilder_.getMessage(index); } } /** * repeated .SC2APIProtocol.DebugBox boxes = 3; */ public Builder setBoxes( int index, SC2APIProtocol.Debug.DebugBox value) { if (boxesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureBoxesIsMutable(); boxes_.set(index, value); onChanged(); } else { boxesBuilder_.setMessage(index, value); } return this; } /** * repeated .SC2APIProtocol.DebugBox boxes = 3; */ public Builder setBoxes( int index, SC2APIProtocol.Debug.DebugBox.Builder builderForValue) { if (boxesBuilder_ == null) { ensureBoxesIsMutable(); boxes_.set(index, builderForValue.build()); onChanged(); } else { boxesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .SC2APIProtocol.DebugBox boxes = 3; */ public Builder addBoxes(SC2APIProtocol.Debug.DebugBox value) { if (boxesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureBoxesIsMutable(); boxes_.add(value); onChanged(); } else { boxesBuilder_.addMessage(value); } return this; } /** * repeated .SC2APIProtocol.DebugBox boxes = 3; */ public Builder addBoxes( int index, SC2APIProtocol.Debug.DebugBox value) { if (boxesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureBoxesIsMutable(); boxes_.add(index, value); onChanged(); } else { boxesBuilder_.addMessage(index, value); } return this; } /** * repeated .SC2APIProtocol.DebugBox boxes = 3; */ public Builder addBoxes( SC2APIProtocol.Debug.DebugBox.Builder builderForValue) { if (boxesBuilder_ == null) { ensureBoxesIsMutable(); boxes_.add(builderForValue.build()); onChanged(); } else { boxesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .SC2APIProtocol.DebugBox boxes = 3; */ public Builder addBoxes( int index, SC2APIProtocol.Debug.DebugBox.Builder builderForValue) { if (boxesBuilder_ == null) { ensureBoxesIsMutable(); boxes_.add(index, builderForValue.build()); onChanged(); } else { boxesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .SC2APIProtocol.DebugBox boxes = 3; */ public Builder addAllBoxes( java.lang.Iterable values) { if (boxesBuilder_ == null) { ensureBoxesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, boxes_); onChanged(); } else { boxesBuilder_.addAllMessages(values); } return this; } /** * repeated .SC2APIProtocol.DebugBox boxes = 3; */ public Builder clearBoxes() { if (boxesBuilder_ == null) { boxes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { boxesBuilder_.clear(); } return this; } /** * repeated .SC2APIProtocol.DebugBox boxes = 3; */ public Builder removeBoxes(int index) { if (boxesBuilder_ == null) { ensureBoxesIsMutable(); boxes_.remove(index); onChanged(); } else { boxesBuilder_.remove(index); } return this; } /** * repeated .SC2APIProtocol.DebugBox boxes = 3; */ public SC2APIProtocol.Debug.DebugBox.Builder getBoxesBuilder( int index) { return getBoxesFieldBuilder().getBuilder(index); } /** * repeated .SC2APIProtocol.DebugBox boxes = 3; */ public SC2APIProtocol.Debug.DebugBoxOrBuilder getBoxesOrBuilder( int index) { if (boxesBuilder_ == null) { return boxes_.get(index); } else { return boxesBuilder_.getMessageOrBuilder(index); } } /** * repeated .SC2APIProtocol.DebugBox boxes = 3; */ public java.util.List getBoxesOrBuilderList() { if (boxesBuilder_ != null) { return boxesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(boxes_); } } /** * repeated .SC2APIProtocol.DebugBox boxes = 3; */ public SC2APIProtocol.Debug.DebugBox.Builder addBoxesBuilder() { return getBoxesFieldBuilder().addBuilder( SC2APIProtocol.Debug.DebugBox.getDefaultInstance()); } /** * repeated .SC2APIProtocol.DebugBox boxes = 3; */ public SC2APIProtocol.Debug.DebugBox.Builder addBoxesBuilder( int index) { return getBoxesFieldBuilder().addBuilder( index, SC2APIProtocol.Debug.DebugBox.getDefaultInstance()); } /** * repeated .SC2APIProtocol.DebugBox boxes = 3; */ public java.util.List getBoxesBuilderList() { return getBoxesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< SC2APIProtocol.Debug.DebugBox, SC2APIProtocol.Debug.DebugBox.Builder, SC2APIProtocol.Debug.DebugBoxOrBuilder> getBoxesFieldBuilder() { if (boxesBuilder_ == null) { boxesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< SC2APIProtocol.Debug.DebugBox, SC2APIProtocol.Debug.DebugBox.Builder, SC2APIProtocol.Debug.DebugBoxOrBuilder>( boxes_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); boxes_ = null; } return boxesBuilder_; } private java.util.List spheres_ = java.util.Collections.emptyList(); private void ensureSpheresIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { spheres_ = new java.util.ArrayList(spheres_); bitField0_ |= 0x00000008; } } private com.google.protobuf.RepeatedFieldBuilderV3< SC2APIProtocol.Debug.DebugSphere, SC2APIProtocol.Debug.DebugSphere.Builder, SC2APIProtocol.Debug.DebugSphereOrBuilder> spheresBuilder_; /** * repeated .SC2APIProtocol.DebugSphere spheres = 4; */ public java.util.List getSpheresList() { if (spheresBuilder_ == null) { return java.util.Collections.unmodifiableList(spheres_); } else { return spheresBuilder_.getMessageList(); } } /** * repeated .SC2APIProtocol.DebugSphere spheres = 4; */ public int getSpheresCount() { if (spheresBuilder_ == null) { return spheres_.size(); } else { return spheresBuilder_.getCount(); } } /** * repeated .SC2APIProtocol.DebugSphere spheres = 4; */ public SC2APIProtocol.Debug.DebugSphere getSpheres(int index) { if (spheresBuilder_ == null) { return spheres_.get(index); } else { return spheresBuilder_.getMessage(index); } } /** * repeated .SC2APIProtocol.DebugSphere spheres = 4; */ public Builder setSpheres( int index, SC2APIProtocol.Debug.DebugSphere value) { if (spheresBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSpheresIsMutable(); spheres_.set(index, value); onChanged(); } else { spheresBuilder_.setMessage(index, value); } return this; } /** * repeated .SC2APIProtocol.DebugSphere spheres = 4; */ public Builder setSpheres( int index, SC2APIProtocol.Debug.DebugSphere.Builder builderForValue) { if (spheresBuilder_ == null) { ensureSpheresIsMutable(); spheres_.set(index, builderForValue.build()); onChanged(); } else { spheresBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .SC2APIProtocol.DebugSphere spheres = 4; */ public Builder addSpheres(SC2APIProtocol.Debug.DebugSphere value) { if (spheresBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSpheresIsMutable(); spheres_.add(value); onChanged(); } else { spheresBuilder_.addMessage(value); } return this; } /** * repeated .SC2APIProtocol.DebugSphere spheres = 4; */ public Builder addSpheres( int index, SC2APIProtocol.Debug.DebugSphere value) { if (spheresBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureSpheresIsMutable(); spheres_.add(index, value); onChanged(); } else { spheresBuilder_.addMessage(index, value); } return this; } /** * repeated .SC2APIProtocol.DebugSphere spheres = 4; */ public Builder addSpheres( SC2APIProtocol.Debug.DebugSphere.Builder builderForValue) { if (spheresBuilder_ == null) { ensureSpheresIsMutable(); spheres_.add(builderForValue.build()); onChanged(); } else { spheresBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .SC2APIProtocol.DebugSphere spheres = 4; */ public Builder addSpheres( int index, SC2APIProtocol.Debug.DebugSphere.Builder builderForValue) { if (spheresBuilder_ == null) { ensureSpheresIsMutable(); spheres_.add(index, builderForValue.build()); onChanged(); } else { spheresBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .SC2APIProtocol.DebugSphere spheres = 4; */ public Builder addAllSpheres( java.lang.Iterable values) { if (spheresBuilder_ == null) { ensureSpheresIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, spheres_); onChanged(); } else { spheresBuilder_.addAllMessages(values); } return this; } /** * repeated .SC2APIProtocol.DebugSphere spheres = 4; */ public Builder clearSpheres() { if (spheresBuilder_ == null) { spheres_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { spheresBuilder_.clear(); } return this; } /** * repeated .SC2APIProtocol.DebugSphere spheres = 4; */ public Builder removeSpheres(int index) { if (spheresBuilder_ == null) { ensureSpheresIsMutable(); spheres_.remove(index); onChanged(); } else { spheresBuilder_.remove(index); } return this; } /** * repeated .SC2APIProtocol.DebugSphere spheres = 4; */ public SC2APIProtocol.Debug.DebugSphere.Builder getSpheresBuilder( int index) { return getSpheresFieldBuilder().getBuilder(index); } /** * repeated .SC2APIProtocol.DebugSphere spheres = 4; */ public SC2APIProtocol.Debug.DebugSphereOrBuilder getSpheresOrBuilder( int index) { if (spheresBuilder_ == null) { return spheres_.get(index); } else { return spheresBuilder_.getMessageOrBuilder(index); } } /** * repeated .SC2APIProtocol.DebugSphere spheres = 4; */ public java.util.List getSpheresOrBuilderList() { if (spheresBuilder_ != null) { return spheresBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(spheres_); } } /** * repeated .SC2APIProtocol.DebugSphere spheres = 4; */ public SC2APIProtocol.Debug.DebugSphere.Builder addSpheresBuilder() { return getSpheresFieldBuilder().addBuilder( SC2APIProtocol.Debug.DebugSphere.getDefaultInstance()); } /** * repeated .SC2APIProtocol.DebugSphere spheres = 4; */ public SC2APIProtocol.Debug.DebugSphere.Builder addSpheresBuilder( int index) { return getSpheresFieldBuilder().addBuilder( index, SC2APIProtocol.Debug.DebugSphere.getDefaultInstance()); } /** * repeated .SC2APIProtocol.DebugSphere spheres = 4; */ public java.util.List getSpheresBuilderList() { return getSpheresFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< SC2APIProtocol.Debug.DebugSphere, SC2APIProtocol.Debug.DebugSphere.Builder, SC2APIProtocol.Debug.DebugSphereOrBuilder> getSpheresFieldBuilder() { if (spheresBuilder_ == null) { spheresBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< SC2APIProtocol.Debug.DebugSphere, SC2APIProtocol.Debug.DebugSphere.Builder, SC2APIProtocol.Debug.DebugSphereOrBuilder>( spheres_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); spheres_ = null; } return spheresBuilder_; } @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:SC2APIProtocol.DebugDraw) } // @@protoc_insertion_point(class_scope:SC2APIProtocol.DebugDraw) private static final SC2APIProtocol.Debug.DebugDraw DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new SC2APIProtocol.Debug.DebugDraw(); } public static SC2APIProtocol.Debug.DebugDraw getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DebugDraw parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public SC2APIProtocol.Debug.DebugDraw getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface LineOrBuilder extends // @@protoc_insertion_point(interface_extends:SC2APIProtocol.Line) com.google.protobuf.MessageOrBuilder { /** * optional .SC2APIProtocol.Point p0 = 1; * @return Whether the p0 field is set. */ boolean hasP0(); /** * optional .SC2APIProtocol.Point p0 = 1; * @return The p0. */ SC2APIProtocol.Common.Point getP0(); /** * optional .SC2APIProtocol.Point p0 = 1; */ SC2APIProtocol.Common.PointOrBuilder getP0OrBuilder(); /** * optional .SC2APIProtocol.Point p1 = 2; * @return Whether the p1 field is set. */ boolean hasP1(); /** * optional .SC2APIProtocol.Point p1 = 2; * @return The p1. */ SC2APIProtocol.Common.Point getP1(); /** * optional .SC2APIProtocol.Point p1 = 2; */ SC2APIProtocol.Common.PointOrBuilder getP1OrBuilder(); } /** * Protobuf type {@code SC2APIProtocol.Line} */ public static final class Line extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:SC2APIProtocol.Line) LineOrBuilder { private static final long serialVersionUID = 0L; // Use Line.newBuilder() to construct. private Line(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Line() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Line(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Debug.internal_static_SC2APIProtocol_Line_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Debug.internal_static_SC2APIProtocol_Line_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Debug.Line.class, SC2APIProtocol.Debug.Line.Builder.class); } private int bitField0_; public static final int P0_FIELD_NUMBER = 1; private SC2APIProtocol.Common.Point p0_; /** * optional .SC2APIProtocol.Point p0 = 1; * @return Whether the p0 field is set. */ @java.lang.Override public boolean hasP0() { return ((bitField0_ & 0x00000001) != 0); } /** * optional .SC2APIProtocol.Point p0 = 1; * @return The p0. */ @java.lang.Override public SC2APIProtocol.Common.Point getP0() { return p0_ == null ? SC2APIProtocol.Common.Point.getDefaultInstance() : p0_; } /** * optional .SC2APIProtocol.Point p0 = 1; */ @java.lang.Override public SC2APIProtocol.Common.PointOrBuilder getP0OrBuilder() { return p0_ == null ? SC2APIProtocol.Common.Point.getDefaultInstance() : p0_; } public static final int P1_FIELD_NUMBER = 2; private SC2APIProtocol.Common.Point p1_; /** * optional .SC2APIProtocol.Point p1 = 2; * @return Whether the p1 field is set. */ @java.lang.Override public boolean hasP1() { return ((bitField0_ & 0x00000002) != 0); } /** * optional .SC2APIProtocol.Point p1 = 2; * @return The p1. */ @java.lang.Override public SC2APIProtocol.Common.Point getP1() { return p1_ == null ? SC2APIProtocol.Common.Point.getDefaultInstance() : p1_; } /** * optional .SC2APIProtocol.Point p1 = 2; */ @java.lang.Override public SC2APIProtocol.Common.PointOrBuilder getP1OrBuilder() { return p1_ == null ? SC2APIProtocol.Common.Point.getDefaultInstance() : p1_; } 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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getP0()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getP1()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getP0()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getP1()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof SC2APIProtocol.Debug.Line)) { return super.equals(obj); } SC2APIProtocol.Debug.Line other = (SC2APIProtocol.Debug.Line) obj; if (hasP0() != other.hasP0()) return false; if (hasP0()) { if (!getP0() .equals(other.getP0())) return false; } if (hasP1() != other.hasP1()) return false; if (hasP1()) { if (!getP1() .equals(other.getP1())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasP0()) { hash = (37 * hash) + P0_FIELD_NUMBER; hash = (53 * hash) + getP0().hashCode(); } if (hasP1()) { hash = (37 * hash) + P1_FIELD_NUMBER; hash = (53 * hash) + getP1().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static SC2APIProtocol.Debug.Line parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Debug.Line parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Debug.Line parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Debug.Line parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Debug.Line parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Debug.Line parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Debug.Line parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Debug.Line 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 SC2APIProtocol.Debug.Line parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static SC2APIProtocol.Debug.Line 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 SC2APIProtocol.Debug.Line parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Debug.Line 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(SC2APIProtocol.Debug.Line 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; } /** * Protobuf type {@code SC2APIProtocol.Line} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:SC2APIProtocol.Line) SC2APIProtocol.Debug.LineOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Debug.internal_static_SC2APIProtocol_Line_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Debug.internal_static_SC2APIProtocol_Line_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Debug.Line.class, SC2APIProtocol.Debug.Line.Builder.class); } // Construct using SC2APIProtocol.Debug.Line.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getP0FieldBuilder(); getP1FieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (p0Builder_ == null) { p0_ = null; } else { p0Builder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); if (p1Builder_ == null) { p1_ = null; } else { p1Builder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return SC2APIProtocol.Debug.internal_static_SC2APIProtocol_Line_descriptor; } @java.lang.Override public SC2APIProtocol.Debug.Line getDefaultInstanceForType() { return SC2APIProtocol.Debug.Line.getDefaultInstance(); } @java.lang.Override public SC2APIProtocol.Debug.Line build() { SC2APIProtocol.Debug.Line result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public SC2APIProtocol.Debug.Line buildPartial() { SC2APIProtocol.Debug.Line result = new SC2APIProtocol.Debug.Line(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { if (p0Builder_ == null) { result.p0_ = p0_; } else { result.p0_ = p0Builder_.build(); } to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { if (p1Builder_ == null) { result.p1_ = p1_; } else { result.p1_ = p1Builder_.build(); } to_bitField0_ |= 0x00000002; } result.bitField0_ = to_bitField0_; 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 SC2APIProtocol.Debug.Line) { return mergeFrom((SC2APIProtocol.Debug.Line)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(SC2APIProtocol.Debug.Line other) { if (other == SC2APIProtocol.Debug.Line.getDefaultInstance()) return this; if (other.hasP0()) { mergeP0(other.getP0()); } if (other.hasP1()) { mergeP1(other.getP1()); } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getP0FieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getP1FieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private SC2APIProtocol.Common.Point p0_; private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Common.Point, SC2APIProtocol.Common.Point.Builder, SC2APIProtocol.Common.PointOrBuilder> p0Builder_; /** * optional .SC2APIProtocol.Point p0 = 1; * @return Whether the p0 field is set. */ public boolean hasP0() { return ((bitField0_ & 0x00000001) != 0); } /** * optional .SC2APIProtocol.Point p0 = 1; * @return The p0. */ public SC2APIProtocol.Common.Point getP0() { if (p0Builder_ == null) { return p0_ == null ? SC2APIProtocol.Common.Point.getDefaultInstance() : p0_; } else { return p0Builder_.getMessage(); } } /** * optional .SC2APIProtocol.Point p0 = 1; */ public Builder setP0(SC2APIProtocol.Common.Point value) { if (p0Builder_ == null) { if (value == null) { throw new NullPointerException(); } p0_ = value; onChanged(); } else { p0Builder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * optional .SC2APIProtocol.Point p0 = 1; */ public Builder setP0( SC2APIProtocol.Common.Point.Builder builderForValue) { if (p0Builder_ == null) { p0_ = builderForValue.build(); onChanged(); } else { p0Builder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * optional .SC2APIProtocol.Point p0 = 1; */ public Builder mergeP0(SC2APIProtocol.Common.Point value) { if (p0Builder_ == null) { if (((bitField0_ & 0x00000001) != 0) && p0_ != null && p0_ != SC2APIProtocol.Common.Point.getDefaultInstance()) { p0_ = SC2APIProtocol.Common.Point.newBuilder(p0_).mergeFrom(value).buildPartial(); } else { p0_ = value; } onChanged(); } else { p0Builder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * optional .SC2APIProtocol.Point p0 = 1; */ public Builder clearP0() { if (p0Builder_ == null) { p0_ = null; onChanged(); } else { p0Builder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * optional .SC2APIProtocol.Point p0 = 1; */ public SC2APIProtocol.Common.Point.Builder getP0Builder() { bitField0_ |= 0x00000001; onChanged(); return getP0FieldBuilder().getBuilder(); } /** * optional .SC2APIProtocol.Point p0 = 1; */ public SC2APIProtocol.Common.PointOrBuilder getP0OrBuilder() { if (p0Builder_ != null) { return p0Builder_.getMessageOrBuilder(); } else { return p0_ == null ? SC2APIProtocol.Common.Point.getDefaultInstance() : p0_; } } /** * optional .SC2APIProtocol.Point p0 = 1; */ private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Common.Point, SC2APIProtocol.Common.Point.Builder, SC2APIProtocol.Common.PointOrBuilder> getP0FieldBuilder() { if (p0Builder_ == null) { p0Builder_ = new com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Common.Point, SC2APIProtocol.Common.Point.Builder, SC2APIProtocol.Common.PointOrBuilder>( getP0(), getParentForChildren(), isClean()); p0_ = null; } return p0Builder_; } private SC2APIProtocol.Common.Point p1_; private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Common.Point, SC2APIProtocol.Common.Point.Builder, SC2APIProtocol.Common.PointOrBuilder> p1Builder_; /** * optional .SC2APIProtocol.Point p1 = 2; * @return Whether the p1 field is set. */ public boolean hasP1() { return ((bitField0_ & 0x00000002) != 0); } /** * optional .SC2APIProtocol.Point p1 = 2; * @return The p1. */ public SC2APIProtocol.Common.Point getP1() { if (p1Builder_ == null) { return p1_ == null ? SC2APIProtocol.Common.Point.getDefaultInstance() : p1_; } else { return p1Builder_.getMessage(); } } /** * optional .SC2APIProtocol.Point p1 = 2; */ public Builder setP1(SC2APIProtocol.Common.Point value) { if (p1Builder_ == null) { if (value == null) { throw new NullPointerException(); } p1_ = value; onChanged(); } else { p1Builder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /** * optional .SC2APIProtocol.Point p1 = 2; */ public Builder setP1( SC2APIProtocol.Common.Point.Builder builderForValue) { if (p1Builder_ == null) { p1_ = builderForValue.build(); onChanged(); } else { p1Builder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** * optional .SC2APIProtocol.Point p1 = 2; */ public Builder mergeP1(SC2APIProtocol.Common.Point value) { if (p1Builder_ == null) { if (((bitField0_ & 0x00000002) != 0) && p1_ != null && p1_ != SC2APIProtocol.Common.Point.getDefaultInstance()) { p1_ = SC2APIProtocol.Common.Point.newBuilder(p1_).mergeFrom(value).buildPartial(); } else { p1_ = value; } onChanged(); } else { p1Builder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** * optional .SC2APIProtocol.Point p1 = 2; */ public Builder clearP1() { if (p1Builder_ == null) { p1_ = null; onChanged(); } else { p1Builder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** * optional .SC2APIProtocol.Point p1 = 2; */ public SC2APIProtocol.Common.Point.Builder getP1Builder() { bitField0_ |= 0x00000002; onChanged(); return getP1FieldBuilder().getBuilder(); } /** * optional .SC2APIProtocol.Point p1 = 2; */ public SC2APIProtocol.Common.PointOrBuilder getP1OrBuilder() { if (p1Builder_ != null) { return p1Builder_.getMessageOrBuilder(); } else { return p1_ == null ? SC2APIProtocol.Common.Point.getDefaultInstance() : p1_; } } /** * optional .SC2APIProtocol.Point p1 = 2; */ private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Common.Point, SC2APIProtocol.Common.Point.Builder, SC2APIProtocol.Common.PointOrBuilder> getP1FieldBuilder() { if (p1Builder_ == null) { p1Builder_ = new com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Common.Point, SC2APIProtocol.Common.Point.Builder, SC2APIProtocol.Common.PointOrBuilder>( getP1(), getParentForChildren(), isClean()); p1_ = null; } return p1Builder_; } @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:SC2APIProtocol.Line) } // @@protoc_insertion_point(class_scope:SC2APIProtocol.Line) private static final SC2APIProtocol.Debug.Line DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new SC2APIProtocol.Debug.Line(); } public static SC2APIProtocol.Debug.Line getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Line parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public SC2APIProtocol.Debug.Line getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ColorOrBuilder extends // @@protoc_insertion_point(interface_extends:SC2APIProtocol.Color) com.google.protobuf.MessageOrBuilder { /** * optional uint32 r = 1; * @return Whether the r field is set. */ boolean hasR(); /** * optional uint32 r = 1; * @return The r. */ int getR(); /** * optional uint32 g = 2; * @return Whether the g field is set. */ boolean hasG(); /** * optional uint32 g = 2; * @return The g. */ int getG(); /** * optional uint32 b = 3; * @return Whether the b field is set. */ boolean hasB(); /** * optional uint32 b = 3; * @return The b. */ int getB(); } /** * Protobuf type {@code SC2APIProtocol.Color} */ public static final class Color extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:SC2APIProtocol.Color) ColorOrBuilder { private static final long serialVersionUID = 0L; // Use Color.newBuilder() to construct. private Color(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Color() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Color(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Debug.internal_static_SC2APIProtocol_Color_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Debug.internal_static_SC2APIProtocol_Color_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Debug.Color.class, SC2APIProtocol.Debug.Color.Builder.class); } private int bitField0_; public static final int R_FIELD_NUMBER = 1; private int r_; /** * optional uint32 r = 1; * @return Whether the r field is set. */ @java.lang.Override public boolean hasR() { return ((bitField0_ & 0x00000001) != 0); } /** * optional uint32 r = 1; * @return The r. */ @java.lang.Override public int getR() { return r_; } public static final int G_FIELD_NUMBER = 2; private int g_; /** * optional uint32 g = 2; * @return Whether the g field is set. */ @java.lang.Override public boolean hasG() { return ((bitField0_ & 0x00000002) != 0); } /** * optional uint32 g = 2; * @return The g. */ @java.lang.Override public int getG() { return g_; } public static final int B_FIELD_NUMBER = 3; private int b_; /** * optional uint32 b = 3; * @return Whether the b field is set. */ @java.lang.Override public boolean hasB() { return ((bitField0_ & 0x00000004) != 0); } /** * optional uint32 b = 3; * @return The b. */ @java.lang.Override public int getB() { return b_; } 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 (((bitField0_ & 0x00000001) != 0)) { output.writeUInt32(1, r_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeUInt32(2, g_); } if (((bitField0_ & 0x00000004) != 0)) { output.writeUInt32(3, b_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, r_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, g_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(3, b_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof SC2APIProtocol.Debug.Color)) { return super.equals(obj); } SC2APIProtocol.Debug.Color other = (SC2APIProtocol.Debug.Color) obj; if (hasR() != other.hasR()) return false; if (hasR()) { if (getR() != other.getR()) return false; } if (hasG() != other.hasG()) return false; if (hasG()) { if (getG() != other.getG()) return false; } if (hasB() != other.hasB()) return false; if (hasB()) { if (getB() != other.getB()) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasR()) { hash = (37 * hash) + R_FIELD_NUMBER; hash = (53 * hash) + getR(); } if (hasG()) { hash = (37 * hash) + G_FIELD_NUMBER; hash = (53 * hash) + getG(); } if (hasB()) { hash = (37 * hash) + B_FIELD_NUMBER; hash = (53 * hash) + getB(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static SC2APIProtocol.Debug.Color parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Debug.Color parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Debug.Color parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Debug.Color parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Debug.Color parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Debug.Color parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Debug.Color parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Debug.Color 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 SC2APIProtocol.Debug.Color parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static SC2APIProtocol.Debug.Color 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 SC2APIProtocol.Debug.Color parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Debug.Color 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(SC2APIProtocol.Debug.Color 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; } /** * Protobuf type {@code SC2APIProtocol.Color} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:SC2APIProtocol.Color) SC2APIProtocol.Debug.ColorOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Debug.internal_static_SC2APIProtocol_Color_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Debug.internal_static_SC2APIProtocol_Color_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Debug.Color.class, SC2APIProtocol.Debug.Color.Builder.class); } // Construct using SC2APIProtocol.Debug.Color.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); r_ = 0; bitField0_ = (bitField0_ & ~0x00000001); g_ = 0; bitField0_ = (bitField0_ & ~0x00000002); b_ = 0; bitField0_ = (bitField0_ & ~0x00000004); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return SC2APIProtocol.Debug.internal_static_SC2APIProtocol_Color_descriptor; } @java.lang.Override public SC2APIProtocol.Debug.Color getDefaultInstanceForType() { return SC2APIProtocol.Debug.Color.getDefaultInstance(); } @java.lang.Override public SC2APIProtocol.Debug.Color build() { SC2APIProtocol.Debug.Color result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public SC2APIProtocol.Debug.Color buildPartial() { SC2APIProtocol.Debug.Color result = new SC2APIProtocol.Debug.Color(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.r_ = r_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.g_ = g_; to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { result.b_ = b_; to_bitField0_ |= 0x00000004; } result.bitField0_ = to_bitField0_; 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 SC2APIProtocol.Debug.Color) { return mergeFrom((SC2APIProtocol.Debug.Color)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(SC2APIProtocol.Debug.Color other) { if (other == SC2APIProtocol.Debug.Color.getDefaultInstance()) return this; if (other.hasR()) { setR(other.getR()); } if (other.hasG()) { setG(other.getG()); } if (other.hasB()) { setB(other.getB()); } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { r_ = input.readUInt32(); bitField0_ |= 0x00000001; break; } // case 8 case 16: { g_ = input.readUInt32(); bitField0_ |= 0x00000002; break; } // case 16 case 24: { b_ = input.readUInt32(); bitField0_ |= 0x00000004; break; } // case 24 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private int r_ ; /** * optional uint32 r = 1; * @return Whether the r field is set. */ @java.lang.Override public boolean hasR() { return ((bitField0_ & 0x00000001) != 0); } /** * optional uint32 r = 1; * @return The r. */ @java.lang.Override public int getR() { return r_; } /** * optional uint32 r = 1; * @param value The r to set. * @return This builder for chaining. */ public Builder setR(int value) { bitField0_ |= 0x00000001; r_ = value; onChanged(); return this; } /** * optional uint32 r = 1; * @return This builder for chaining. */ public Builder clearR() { bitField0_ = (bitField0_ & ~0x00000001); r_ = 0; onChanged(); return this; } private int g_ ; /** * optional uint32 g = 2; * @return Whether the g field is set. */ @java.lang.Override public boolean hasG() { return ((bitField0_ & 0x00000002) != 0); } /** * optional uint32 g = 2; * @return The g. */ @java.lang.Override public int getG() { return g_; } /** * optional uint32 g = 2; * @param value The g to set. * @return This builder for chaining. */ public Builder setG(int value) { bitField0_ |= 0x00000002; g_ = value; onChanged(); return this; } /** * optional uint32 g = 2; * @return This builder for chaining. */ public Builder clearG() { bitField0_ = (bitField0_ & ~0x00000002); g_ = 0; onChanged(); return this; } private int b_ ; /** * optional uint32 b = 3; * @return Whether the b field is set. */ @java.lang.Override public boolean hasB() { return ((bitField0_ & 0x00000004) != 0); } /** * optional uint32 b = 3; * @return The b. */ @java.lang.Override public int getB() { return b_; } /** * optional uint32 b = 3; * @param value The b to set. * @return This builder for chaining. */ public Builder setB(int value) { bitField0_ |= 0x00000004; b_ = value; onChanged(); return this; } /** * optional uint32 b = 3; * @return This builder for chaining. */ public Builder clearB() { bitField0_ = (bitField0_ & ~0x00000004); b_ = 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:SC2APIProtocol.Color) } // @@protoc_insertion_point(class_scope:SC2APIProtocol.Color) private static final SC2APIProtocol.Debug.Color DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new SC2APIProtocol.Debug.Color(); } public static SC2APIProtocol.Debug.Color getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Color parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public SC2APIProtocol.Debug.Color getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DebugTextOrBuilder extends // @@protoc_insertion_point(interface_extends:SC2APIProtocol.DebugText) com.google.protobuf.MessageOrBuilder { /** * optional .SC2APIProtocol.Color color = 1; * @return Whether the color field is set. */ boolean hasColor(); /** * optional .SC2APIProtocol.Color color = 1; * @return The color. */ SC2APIProtocol.Debug.Color getColor(); /** * optional .SC2APIProtocol.Color color = 1; */ SC2APIProtocol.Debug.ColorOrBuilder getColorOrBuilder(); /** *
     * Text to display.
     * 
* * optional string text = 2; * @return Whether the text field is set. */ boolean hasText(); /** *
     * Text to display.
     * 
* * optional string text = 2; * @return The text. */ java.lang.String getText(); /** *
     * Text to display.
     * 
* * optional string text = 2; * @return The bytes for text. */ com.google.protobuf.ByteString getTextBytes(); /** *
     * Virtualized position in 2D (the screen is 0..1, 0..1 for any resolution).
     * 
* * optional .SC2APIProtocol.Point virtual_pos = 3; * @return Whether the virtualPos field is set. */ boolean hasVirtualPos(); /** *
     * Virtualized position in 2D (the screen is 0..1, 0..1 for any resolution).
     * 
* * optional .SC2APIProtocol.Point virtual_pos = 3; * @return The virtualPos. */ SC2APIProtocol.Common.Point getVirtualPos(); /** *
     * Virtualized position in 2D (the screen is 0..1, 0..1 for any resolution).
     * 
* * optional .SC2APIProtocol.Point virtual_pos = 3; */ SC2APIProtocol.Common.PointOrBuilder getVirtualPosOrBuilder(); /** *
     * Position in the world.
     * 
* * optional .SC2APIProtocol.Point world_pos = 4; * @return Whether the worldPos field is set. */ boolean hasWorldPos(); /** *
     * Position in the world.
     * 
* * optional .SC2APIProtocol.Point world_pos = 4; * @return The worldPos. */ SC2APIProtocol.Common.Point getWorldPos(); /** *
     * Position in the world.
     * 
* * optional .SC2APIProtocol.Point world_pos = 4; */ SC2APIProtocol.Common.PointOrBuilder getWorldPosOrBuilder(); /** *
     * Pixel height of the text. Defaults to 8px.
     * 
* * optional uint32 size = 5; * @return Whether the size field is set. */ boolean hasSize(); /** *
     * Pixel height of the text. Defaults to 8px.
     * 
* * optional uint32 size = 5; * @return The size. */ int getSize(); } /** *
   * Display debug text on screen.
   * 
* * Protobuf type {@code SC2APIProtocol.DebugText} */ public static final class DebugText extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:SC2APIProtocol.DebugText) DebugTextOrBuilder { private static final long serialVersionUID = 0L; // Use DebugText.newBuilder() to construct. private DebugText(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DebugText() { text_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DebugText(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Debug.internal_static_SC2APIProtocol_DebugText_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Debug.internal_static_SC2APIProtocol_DebugText_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Debug.DebugText.class, SC2APIProtocol.Debug.DebugText.Builder.class); } private int bitField0_; public static final int COLOR_FIELD_NUMBER = 1; private SC2APIProtocol.Debug.Color color_; /** * optional .SC2APIProtocol.Color color = 1; * @return Whether the color field is set. */ @java.lang.Override public boolean hasColor() { return ((bitField0_ & 0x00000001) != 0); } /** * optional .SC2APIProtocol.Color color = 1; * @return The color. */ @java.lang.Override public SC2APIProtocol.Debug.Color getColor() { return color_ == null ? SC2APIProtocol.Debug.Color.getDefaultInstance() : color_; } /** * optional .SC2APIProtocol.Color color = 1; */ @java.lang.Override public SC2APIProtocol.Debug.ColorOrBuilder getColorOrBuilder() { return color_ == null ? SC2APIProtocol.Debug.Color.getDefaultInstance() : color_; } public static final int TEXT_FIELD_NUMBER = 2; private volatile java.lang.Object text_; /** *
     * Text to display.
     * 
* * optional string text = 2; * @return Whether the text field is set. */ @java.lang.Override public boolean hasText() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * Text to display.
     * 
* * optional string text = 2; * @return The text. */ @java.lang.Override public java.lang.String getText() { java.lang.Object ref = text_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { text_ = s; } return s; } } /** *
     * Text to display.
     * 
* * optional string text = 2; * @return The bytes for text. */ @java.lang.Override public com.google.protobuf.ByteString getTextBytes() { java.lang.Object ref = text_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); text_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int VIRTUAL_POS_FIELD_NUMBER = 3; private SC2APIProtocol.Common.Point virtualPos_; /** *
     * Virtualized position in 2D (the screen is 0..1, 0..1 for any resolution).
     * 
* * optional .SC2APIProtocol.Point virtual_pos = 3; * @return Whether the virtualPos field is set. */ @java.lang.Override public boolean hasVirtualPos() { return ((bitField0_ & 0x00000004) != 0); } /** *
     * Virtualized position in 2D (the screen is 0..1, 0..1 for any resolution).
     * 
* * optional .SC2APIProtocol.Point virtual_pos = 3; * @return The virtualPos. */ @java.lang.Override public SC2APIProtocol.Common.Point getVirtualPos() { return virtualPos_ == null ? SC2APIProtocol.Common.Point.getDefaultInstance() : virtualPos_; } /** *
     * Virtualized position in 2D (the screen is 0..1, 0..1 for any resolution).
     * 
* * optional .SC2APIProtocol.Point virtual_pos = 3; */ @java.lang.Override public SC2APIProtocol.Common.PointOrBuilder getVirtualPosOrBuilder() { return virtualPos_ == null ? SC2APIProtocol.Common.Point.getDefaultInstance() : virtualPos_; } public static final int WORLD_POS_FIELD_NUMBER = 4; private SC2APIProtocol.Common.Point worldPos_; /** *
     * Position in the world.
     * 
* * optional .SC2APIProtocol.Point world_pos = 4; * @return Whether the worldPos field is set. */ @java.lang.Override public boolean hasWorldPos() { return ((bitField0_ & 0x00000008) != 0); } /** *
     * Position in the world.
     * 
* * optional .SC2APIProtocol.Point world_pos = 4; * @return The worldPos. */ @java.lang.Override public SC2APIProtocol.Common.Point getWorldPos() { return worldPos_ == null ? SC2APIProtocol.Common.Point.getDefaultInstance() : worldPos_; } /** *
     * Position in the world.
     * 
* * optional .SC2APIProtocol.Point world_pos = 4; */ @java.lang.Override public SC2APIProtocol.Common.PointOrBuilder getWorldPosOrBuilder() { return worldPos_ == null ? SC2APIProtocol.Common.Point.getDefaultInstance() : worldPos_; } public static final int SIZE_FIELD_NUMBER = 5; private int size_; /** *
     * Pixel height of the text. Defaults to 8px.
     * 
* * optional uint32 size = 5; * @return Whether the size field is set. */ @java.lang.Override public boolean hasSize() { return ((bitField0_ & 0x00000010) != 0); } /** *
     * Pixel height of the text. Defaults to 8px.
     * 
* * optional uint32 size = 5; * @return The size. */ @java.lang.Override public int getSize() { return size_; } 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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getColor()); } if (((bitField0_ & 0x00000002) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, text_); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(3, getVirtualPos()); } if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(4, getWorldPos()); } if (((bitField0_ & 0x00000010) != 0)) { output.writeUInt32(5, size_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getColor()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, text_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getVirtualPos()); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getWorldPos()); } if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(5, size_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof SC2APIProtocol.Debug.DebugText)) { return super.equals(obj); } SC2APIProtocol.Debug.DebugText other = (SC2APIProtocol.Debug.DebugText) obj; if (hasColor() != other.hasColor()) return false; if (hasColor()) { if (!getColor() .equals(other.getColor())) return false; } if (hasText() != other.hasText()) return false; if (hasText()) { if (!getText() .equals(other.getText())) return false; } if (hasVirtualPos() != other.hasVirtualPos()) return false; if (hasVirtualPos()) { if (!getVirtualPos() .equals(other.getVirtualPos())) return false; } if (hasWorldPos() != other.hasWorldPos()) return false; if (hasWorldPos()) { if (!getWorldPos() .equals(other.getWorldPos())) return false; } if (hasSize() != other.hasSize()) return false; if (hasSize()) { if (getSize() != other.getSize()) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasColor()) { hash = (37 * hash) + COLOR_FIELD_NUMBER; hash = (53 * hash) + getColor().hashCode(); } if (hasText()) { hash = (37 * hash) + TEXT_FIELD_NUMBER; hash = (53 * hash) + getText().hashCode(); } if (hasVirtualPos()) { hash = (37 * hash) + VIRTUAL_POS_FIELD_NUMBER; hash = (53 * hash) + getVirtualPos().hashCode(); } if (hasWorldPos()) { hash = (37 * hash) + WORLD_POS_FIELD_NUMBER; hash = (53 * hash) + getWorldPos().hashCode(); } if (hasSize()) { hash = (37 * hash) + SIZE_FIELD_NUMBER; hash = (53 * hash) + getSize(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static SC2APIProtocol.Debug.DebugText parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Debug.DebugText parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Debug.DebugText parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Debug.DebugText parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Debug.DebugText parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Debug.DebugText parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Debug.DebugText parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Debug.DebugText 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 SC2APIProtocol.Debug.DebugText parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static SC2APIProtocol.Debug.DebugText 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 SC2APIProtocol.Debug.DebugText parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Debug.DebugText 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(SC2APIProtocol.Debug.DebugText 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; } /** *
     * Display debug text on screen.
     * 
* * Protobuf type {@code SC2APIProtocol.DebugText} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:SC2APIProtocol.DebugText) SC2APIProtocol.Debug.DebugTextOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Debug.internal_static_SC2APIProtocol_DebugText_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Debug.internal_static_SC2APIProtocol_DebugText_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Debug.DebugText.class, SC2APIProtocol.Debug.DebugText.Builder.class); } // Construct using SC2APIProtocol.Debug.DebugText.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getColorFieldBuilder(); getVirtualPosFieldBuilder(); getWorldPosFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (colorBuilder_ == null) { color_ = null; } else { colorBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); text_ = ""; bitField0_ = (bitField0_ & ~0x00000002); if (virtualPosBuilder_ == null) { virtualPos_ = null; } else { virtualPosBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); if (worldPosBuilder_ == null) { worldPos_ = null; } else { worldPosBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); size_ = 0; bitField0_ = (bitField0_ & ~0x00000010); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return SC2APIProtocol.Debug.internal_static_SC2APIProtocol_DebugText_descriptor; } @java.lang.Override public SC2APIProtocol.Debug.DebugText getDefaultInstanceForType() { return SC2APIProtocol.Debug.DebugText.getDefaultInstance(); } @java.lang.Override public SC2APIProtocol.Debug.DebugText build() { SC2APIProtocol.Debug.DebugText result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public SC2APIProtocol.Debug.DebugText buildPartial() { SC2APIProtocol.Debug.DebugText result = new SC2APIProtocol.Debug.DebugText(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { if (colorBuilder_ == null) { result.color_ = color_; } else { result.color_ = colorBuilder_.build(); } to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { to_bitField0_ |= 0x00000002; } result.text_ = text_; if (((from_bitField0_ & 0x00000004) != 0)) { if (virtualPosBuilder_ == null) { result.virtualPos_ = virtualPos_; } else { result.virtualPos_ = virtualPosBuilder_.build(); } to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000008) != 0)) { if (worldPosBuilder_ == null) { result.worldPos_ = worldPos_; } else { result.worldPos_ = worldPosBuilder_.build(); } to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000010) != 0)) { result.size_ = size_; to_bitField0_ |= 0x00000010; } result.bitField0_ = to_bitField0_; 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 SC2APIProtocol.Debug.DebugText) { return mergeFrom((SC2APIProtocol.Debug.DebugText)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(SC2APIProtocol.Debug.DebugText other) { if (other == SC2APIProtocol.Debug.DebugText.getDefaultInstance()) return this; if (other.hasColor()) { mergeColor(other.getColor()); } if (other.hasText()) { bitField0_ |= 0x00000002; text_ = other.text_; onChanged(); } if (other.hasVirtualPos()) { mergeVirtualPos(other.getVirtualPos()); } if (other.hasWorldPos()) { mergeWorldPos(other.getWorldPos()); } if (other.hasSize()) { setSize(other.getSize()); } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getColorFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { text_ = input.readBytes(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { input.readMessage( getVirtualPosFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 26 case 34: { input.readMessage( getWorldPosFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000008; break; } // case 34 case 40: { size_ = input.readUInt32(); bitField0_ |= 0x00000010; break; } // case 40 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private SC2APIProtocol.Debug.Color color_; private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Debug.Color, SC2APIProtocol.Debug.Color.Builder, SC2APIProtocol.Debug.ColorOrBuilder> colorBuilder_; /** * optional .SC2APIProtocol.Color color = 1; * @return Whether the color field is set. */ public boolean hasColor() { return ((bitField0_ & 0x00000001) != 0); } /** * optional .SC2APIProtocol.Color color = 1; * @return The color. */ public SC2APIProtocol.Debug.Color getColor() { if (colorBuilder_ == null) { return color_ == null ? SC2APIProtocol.Debug.Color.getDefaultInstance() : color_; } else { return colorBuilder_.getMessage(); } } /** * optional .SC2APIProtocol.Color color = 1; */ public Builder setColor(SC2APIProtocol.Debug.Color value) { if (colorBuilder_ == null) { if (value == null) { throw new NullPointerException(); } color_ = value; onChanged(); } else { colorBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * optional .SC2APIProtocol.Color color = 1; */ public Builder setColor( SC2APIProtocol.Debug.Color.Builder builderForValue) { if (colorBuilder_ == null) { color_ = builderForValue.build(); onChanged(); } else { colorBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * optional .SC2APIProtocol.Color color = 1; */ public Builder mergeColor(SC2APIProtocol.Debug.Color value) { if (colorBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && color_ != null && color_ != SC2APIProtocol.Debug.Color.getDefaultInstance()) { color_ = SC2APIProtocol.Debug.Color.newBuilder(color_).mergeFrom(value).buildPartial(); } else { color_ = value; } onChanged(); } else { colorBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * optional .SC2APIProtocol.Color color = 1; */ public Builder clearColor() { if (colorBuilder_ == null) { color_ = null; onChanged(); } else { colorBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * optional .SC2APIProtocol.Color color = 1; */ public SC2APIProtocol.Debug.Color.Builder getColorBuilder() { bitField0_ |= 0x00000001; onChanged(); return getColorFieldBuilder().getBuilder(); } /** * optional .SC2APIProtocol.Color color = 1; */ public SC2APIProtocol.Debug.ColorOrBuilder getColorOrBuilder() { if (colorBuilder_ != null) { return colorBuilder_.getMessageOrBuilder(); } else { return color_ == null ? SC2APIProtocol.Debug.Color.getDefaultInstance() : color_; } } /** * optional .SC2APIProtocol.Color color = 1; */ private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Debug.Color, SC2APIProtocol.Debug.Color.Builder, SC2APIProtocol.Debug.ColorOrBuilder> getColorFieldBuilder() { if (colorBuilder_ == null) { colorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Debug.Color, SC2APIProtocol.Debug.Color.Builder, SC2APIProtocol.Debug.ColorOrBuilder>( getColor(), getParentForChildren(), isClean()); color_ = null; } return colorBuilder_; } private java.lang.Object text_ = ""; /** *
       * Text to display.
       * 
* * optional string text = 2; * @return Whether the text field is set. */ public boolean hasText() { return ((bitField0_ & 0x00000002) != 0); } /** *
       * Text to display.
       * 
* * optional string text = 2; * @return The text. */ public java.lang.String getText() { java.lang.Object ref = text_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { text_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
       * Text to display.
       * 
* * optional string text = 2; * @return The bytes for text. */ public com.google.protobuf.ByteString getTextBytes() { java.lang.Object ref = text_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); text_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Text to display.
       * 
* * optional string text = 2; * @param value The text to set. * @return This builder for chaining. */ public Builder setText( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; text_ = value; onChanged(); return this; } /** *
       * Text to display.
       * 
* * optional string text = 2; * @return This builder for chaining. */ public Builder clearText() { bitField0_ = (bitField0_ & ~0x00000002); text_ = getDefaultInstance().getText(); onChanged(); return this; } /** *
       * Text to display.
       * 
* * optional string text = 2; * @param value The bytes for text to set. * @return This builder for chaining. */ public Builder setTextBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; text_ = value; onChanged(); return this; } private SC2APIProtocol.Common.Point virtualPos_; private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Common.Point, SC2APIProtocol.Common.Point.Builder, SC2APIProtocol.Common.PointOrBuilder> virtualPosBuilder_; /** *
       * Virtualized position in 2D (the screen is 0..1, 0..1 for any resolution).
       * 
* * optional .SC2APIProtocol.Point virtual_pos = 3; * @return Whether the virtualPos field is set. */ public boolean hasVirtualPos() { return ((bitField0_ & 0x00000004) != 0); } /** *
       * Virtualized position in 2D (the screen is 0..1, 0..1 for any resolution).
       * 
* * optional .SC2APIProtocol.Point virtual_pos = 3; * @return The virtualPos. */ public SC2APIProtocol.Common.Point getVirtualPos() { if (virtualPosBuilder_ == null) { return virtualPos_ == null ? SC2APIProtocol.Common.Point.getDefaultInstance() : virtualPos_; } else { return virtualPosBuilder_.getMessage(); } } /** *
       * Virtualized position in 2D (the screen is 0..1, 0..1 for any resolution).
       * 
* * optional .SC2APIProtocol.Point virtual_pos = 3; */ public Builder setVirtualPos(SC2APIProtocol.Common.Point value) { if (virtualPosBuilder_ == null) { if (value == null) { throw new NullPointerException(); } virtualPos_ = value; onChanged(); } else { virtualPosBuilder_.setMessage(value); } bitField0_ |= 0x00000004; return this; } /** *
       * Virtualized position in 2D (the screen is 0..1, 0..1 for any resolution).
       * 
* * optional .SC2APIProtocol.Point virtual_pos = 3; */ public Builder setVirtualPos( SC2APIProtocol.Common.Point.Builder builderForValue) { if (virtualPosBuilder_ == null) { virtualPos_ = builderForValue.build(); onChanged(); } else { virtualPosBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; return this; } /** *
       * Virtualized position in 2D (the screen is 0..1, 0..1 for any resolution).
       * 
* * optional .SC2APIProtocol.Point virtual_pos = 3; */ public Builder mergeVirtualPos(SC2APIProtocol.Common.Point value) { if (virtualPosBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && virtualPos_ != null && virtualPos_ != SC2APIProtocol.Common.Point.getDefaultInstance()) { virtualPos_ = SC2APIProtocol.Common.Point.newBuilder(virtualPos_).mergeFrom(value).buildPartial(); } else { virtualPos_ = value; } onChanged(); } else { virtualPosBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; return this; } /** *
       * Virtualized position in 2D (the screen is 0..1, 0..1 for any resolution).
       * 
* * optional .SC2APIProtocol.Point virtual_pos = 3; */ public Builder clearVirtualPos() { if (virtualPosBuilder_ == null) { virtualPos_ = null; onChanged(); } else { virtualPosBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } /** *
       * Virtualized position in 2D (the screen is 0..1, 0..1 for any resolution).
       * 
* * optional .SC2APIProtocol.Point virtual_pos = 3; */ public SC2APIProtocol.Common.Point.Builder getVirtualPosBuilder() { bitField0_ |= 0x00000004; onChanged(); return getVirtualPosFieldBuilder().getBuilder(); } /** *
       * Virtualized position in 2D (the screen is 0..1, 0..1 for any resolution).
       * 
* * optional .SC2APIProtocol.Point virtual_pos = 3; */ public SC2APIProtocol.Common.PointOrBuilder getVirtualPosOrBuilder() { if (virtualPosBuilder_ != null) { return virtualPosBuilder_.getMessageOrBuilder(); } else { return virtualPos_ == null ? SC2APIProtocol.Common.Point.getDefaultInstance() : virtualPos_; } } /** *
       * Virtualized position in 2D (the screen is 0..1, 0..1 for any resolution).
       * 
* * optional .SC2APIProtocol.Point virtual_pos = 3; */ private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Common.Point, SC2APIProtocol.Common.Point.Builder, SC2APIProtocol.Common.PointOrBuilder> getVirtualPosFieldBuilder() { if (virtualPosBuilder_ == null) { virtualPosBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Common.Point, SC2APIProtocol.Common.Point.Builder, SC2APIProtocol.Common.PointOrBuilder>( getVirtualPos(), getParentForChildren(), isClean()); virtualPos_ = null; } return virtualPosBuilder_; } private SC2APIProtocol.Common.Point worldPos_; private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Common.Point, SC2APIProtocol.Common.Point.Builder, SC2APIProtocol.Common.PointOrBuilder> worldPosBuilder_; /** *
       * Position in the world.
       * 
* * optional .SC2APIProtocol.Point world_pos = 4; * @return Whether the worldPos field is set. */ public boolean hasWorldPos() { return ((bitField0_ & 0x00000008) != 0); } /** *
       * Position in the world.
       * 
* * optional .SC2APIProtocol.Point world_pos = 4; * @return The worldPos. */ public SC2APIProtocol.Common.Point getWorldPos() { if (worldPosBuilder_ == null) { return worldPos_ == null ? SC2APIProtocol.Common.Point.getDefaultInstance() : worldPos_; } else { return worldPosBuilder_.getMessage(); } } /** *
       * Position in the world.
       * 
* * optional .SC2APIProtocol.Point world_pos = 4; */ public Builder setWorldPos(SC2APIProtocol.Common.Point value) { if (worldPosBuilder_ == null) { if (value == null) { throw new NullPointerException(); } worldPos_ = value; onChanged(); } else { worldPosBuilder_.setMessage(value); } bitField0_ |= 0x00000008; return this; } /** *
       * Position in the world.
       * 
* * optional .SC2APIProtocol.Point world_pos = 4; */ public Builder setWorldPos( SC2APIProtocol.Common.Point.Builder builderForValue) { if (worldPosBuilder_ == null) { worldPos_ = builderForValue.build(); onChanged(); } else { worldPosBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; return this; } /** *
       * Position in the world.
       * 
* * optional .SC2APIProtocol.Point world_pos = 4; */ public Builder mergeWorldPos(SC2APIProtocol.Common.Point value) { if (worldPosBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0) && worldPos_ != null && worldPos_ != SC2APIProtocol.Common.Point.getDefaultInstance()) { worldPos_ = SC2APIProtocol.Common.Point.newBuilder(worldPos_).mergeFrom(value).buildPartial(); } else { worldPos_ = value; } onChanged(); } else { worldPosBuilder_.mergeFrom(value); } bitField0_ |= 0x00000008; return this; } /** *
       * Position in the world.
       * 
* * optional .SC2APIProtocol.Point world_pos = 4; */ public Builder clearWorldPos() { if (worldPosBuilder_ == null) { worldPos_ = null; onChanged(); } else { worldPosBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); return this; } /** *
       * Position in the world.
       * 
* * optional .SC2APIProtocol.Point world_pos = 4; */ public SC2APIProtocol.Common.Point.Builder getWorldPosBuilder() { bitField0_ |= 0x00000008; onChanged(); return getWorldPosFieldBuilder().getBuilder(); } /** *
       * Position in the world.
       * 
* * optional .SC2APIProtocol.Point world_pos = 4; */ public SC2APIProtocol.Common.PointOrBuilder getWorldPosOrBuilder() { if (worldPosBuilder_ != null) { return worldPosBuilder_.getMessageOrBuilder(); } else { return worldPos_ == null ? SC2APIProtocol.Common.Point.getDefaultInstance() : worldPos_; } } /** *
       * Position in the world.
       * 
* * optional .SC2APIProtocol.Point world_pos = 4; */ private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Common.Point, SC2APIProtocol.Common.Point.Builder, SC2APIProtocol.Common.PointOrBuilder> getWorldPosFieldBuilder() { if (worldPosBuilder_ == null) { worldPosBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Common.Point, SC2APIProtocol.Common.Point.Builder, SC2APIProtocol.Common.PointOrBuilder>( getWorldPos(), getParentForChildren(), isClean()); worldPos_ = null; } return worldPosBuilder_; } private int size_ ; /** *
       * Pixel height of the text. Defaults to 8px.
       * 
* * optional uint32 size = 5; * @return Whether the size field is set. */ @java.lang.Override public boolean hasSize() { return ((bitField0_ & 0x00000010) != 0); } /** *
       * Pixel height of the text. Defaults to 8px.
       * 
* * optional uint32 size = 5; * @return The size. */ @java.lang.Override public int getSize() { return size_; } /** *
       * Pixel height of the text. Defaults to 8px.
       * 
* * optional uint32 size = 5; * @param value The size to set. * @return This builder for chaining. */ public Builder setSize(int value) { bitField0_ |= 0x00000010; size_ = value; onChanged(); return this; } /** *
       * Pixel height of the text. Defaults to 8px.
       * 
* * optional uint32 size = 5; * @return This builder for chaining. */ public Builder clearSize() { bitField0_ = (bitField0_ & ~0x00000010); size_ = 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:SC2APIProtocol.DebugText) } // @@protoc_insertion_point(class_scope:SC2APIProtocol.DebugText) private static final SC2APIProtocol.Debug.DebugText DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new SC2APIProtocol.Debug.DebugText(); } public static SC2APIProtocol.Debug.DebugText getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DebugText parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public SC2APIProtocol.Debug.DebugText getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DebugLineOrBuilder extends // @@protoc_insertion_point(interface_extends:SC2APIProtocol.DebugLine) com.google.protobuf.MessageOrBuilder { /** * optional .SC2APIProtocol.Color color = 1; * @return Whether the color field is set. */ boolean hasColor(); /** * optional .SC2APIProtocol.Color color = 1; * @return The color. */ SC2APIProtocol.Debug.Color getColor(); /** * optional .SC2APIProtocol.Color color = 1; */ SC2APIProtocol.Debug.ColorOrBuilder getColorOrBuilder(); /** *
     * World space line.
     * 
* * optional .SC2APIProtocol.Line line = 2; * @return Whether the line field is set. */ boolean hasLine(); /** *
     * World space line.
     * 
* * optional .SC2APIProtocol.Line line = 2; * @return The line. */ SC2APIProtocol.Debug.Line getLine(); /** *
     * World space line.
     * 
* * optional .SC2APIProtocol.Line line = 2; */ SC2APIProtocol.Debug.LineOrBuilder getLineOrBuilder(); } /** *
   * Display debug lines on screen.
   * 
* * Protobuf type {@code SC2APIProtocol.DebugLine} */ public static final class DebugLine extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:SC2APIProtocol.DebugLine) DebugLineOrBuilder { private static final long serialVersionUID = 0L; // Use DebugLine.newBuilder() to construct. private DebugLine(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DebugLine() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DebugLine(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Debug.internal_static_SC2APIProtocol_DebugLine_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Debug.internal_static_SC2APIProtocol_DebugLine_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Debug.DebugLine.class, SC2APIProtocol.Debug.DebugLine.Builder.class); } private int bitField0_; public static final int COLOR_FIELD_NUMBER = 1; private SC2APIProtocol.Debug.Color color_; /** * optional .SC2APIProtocol.Color color = 1; * @return Whether the color field is set. */ @java.lang.Override public boolean hasColor() { return ((bitField0_ & 0x00000001) != 0); } /** * optional .SC2APIProtocol.Color color = 1; * @return The color. */ @java.lang.Override public SC2APIProtocol.Debug.Color getColor() { return color_ == null ? SC2APIProtocol.Debug.Color.getDefaultInstance() : color_; } /** * optional .SC2APIProtocol.Color color = 1; */ @java.lang.Override public SC2APIProtocol.Debug.ColorOrBuilder getColorOrBuilder() { return color_ == null ? SC2APIProtocol.Debug.Color.getDefaultInstance() : color_; } public static final int LINE_FIELD_NUMBER = 2; private SC2APIProtocol.Debug.Line line_; /** *
     * World space line.
     * 
* * optional .SC2APIProtocol.Line line = 2; * @return Whether the line field is set. */ @java.lang.Override public boolean hasLine() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * World space line.
     * 
* * optional .SC2APIProtocol.Line line = 2; * @return The line. */ @java.lang.Override public SC2APIProtocol.Debug.Line getLine() { return line_ == null ? SC2APIProtocol.Debug.Line.getDefaultInstance() : line_; } /** *
     * World space line.
     * 
* * optional .SC2APIProtocol.Line line = 2; */ @java.lang.Override public SC2APIProtocol.Debug.LineOrBuilder getLineOrBuilder() { return line_ == null ? SC2APIProtocol.Debug.Line.getDefaultInstance() : line_; } 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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getColor()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getLine()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getColor()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getLine()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof SC2APIProtocol.Debug.DebugLine)) { return super.equals(obj); } SC2APIProtocol.Debug.DebugLine other = (SC2APIProtocol.Debug.DebugLine) obj; if (hasColor() != other.hasColor()) return false; if (hasColor()) { if (!getColor() .equals(other.getColor())) return false; } if (hasLine() != other.hasLine()) return false; if (hasLine()) { if (!getLine() .equals(other.getLine())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasColor()) { hash = (37 * hash) + COLOR_FIELD_NUMBER; hash = (53 * hash) + getColor().hashCode(); } if (hasLine()) { hash = (37 * hash) + LINE_FIELD_NUMBER; hash = (53 * hash) + getLine().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static SC2APIProtocol.Debug.DebugLine parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Debug.DebugLine parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Debug.DebugLine parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Debug.DebugLine parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Debug.DebugLine parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Debug.DebugLine parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Debug.DebugLine parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Debug.DebugLine 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 SC2APIProtocol.Debug.DebugLine parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static SC2APIProtocol.Debug.DebugLine 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 SC2APIProtocol.Debug.DebugLine parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Debug.DebugLine 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(SC2APIProtocol.Debug.DebugLine 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; } /** *
     * Display debug lines on screen.
     * 
* * Protobuf type {@code SC2APIProtocol.DebugLine} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:SC2APIProtocol.DebugLine) SC2APIProtocol.Debug.DebugLineOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Debug.internal_static_SC2APIProtocol_DebugLine_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Debug.internal_static_SC2APIProtocol_DebugLine_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Debug.DebugLine.class, SC2APIProtocol.Debug.DebugLine.Builder.class); } // Construct using SC2APIProtocol.Debug.DebugLine.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getColorFieldBuilder(); getLineFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (colorBuilder_ == null) { color_ = null; } else { colorBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); if (lineBuilder_ == null) { line_ = null; } else { lineBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return SC2APIProtocol.Debug.internal_static_SC2APIProtocol_DebugLine_descriptor; } @java.lang.Override public SC2APIProtocol.Debug.DebugLine getDefaultInstanceForType() { return SC2APIProtocol.Debug.DebugLine.getDefaultInstance(); } @java.lang.Override public SC2APIProtocol.Debug.DebugLine build() { SC2APIProtocol.Debug.DebugLine result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public SC2APIProtocol.Debug.DebugLine buildPartial() { SC2APIProtocol.Debug.DebugLine result = new SC2APIProtocol.Debug.DebugLine(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { if (colorBuilder_ == null) { result.color_ = color_; } else { result.color_ = colorBuilder_.build(); } to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { if (lineBuilder_ == null) { result.line_ = line_; } else { result.line_ = lineBuilder_.build(); } to_bitField0_ |= 0x00000002; } result.bitField0_ = to_bitField0_; 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 SC2APIProtocol.Debug.DebugLine) { return mergeFrom((SC2APIProtocol.Debug.DebugLine)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(SC2APIProtocol.Debug.DebugLine other) { if (other == SC2APIProtocol.Debug.DebugLine.getDefaultInstance()) return this; if (other.hasColor()) { mergeColor(other.getColor()); } if (other.hasLine()) { mergeLine(other.getLine()); } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getColorFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getLineFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private SC2APIProtocol.Debug.Color color_; private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Debug.Color, SC2APIProtocol.Debug.Color.Builder, SC2APIProtocol.Debug.ColorOrBuilder> colorBuilder_; /** * optional .SC2APIProtocol.Color color = 1; * @return Whether the color field is set. */ public boolean hasColor() { return ((bitField0_ & 0x00000001) != 0); } /** * optional .SC2APIProtocol.Color color = 1; * @return The color. */ public SC2APIProtocol.Debug.Color getColor() { if (colorBuilder_ == null) { return color_ == null ? SC2APIProtocol.Debug.Color.getDefaultInstance() : color_; } else { return colorBuilder_.getMessage(); } } /** * optional .SC2APIProtocol.Color color = 1; */ public Builder setColor(SC2APIProtocol.Debug.Color value) { if (colorBuilder_ == null) { if (value == null) { throw new NullPointerException(); } color_ = value; onChanged(); } else { colorBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * optional .SC2APIProtocol.Color color = 1; */ public Builder setColor( SC2APIProtocol.Debug.Color.Builder builderForValue) { if (colorBuilder_ == null) { color_ = builderForValue.build(); onChanged(); } else { colorBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * optional .SC2APIProtocol.Color color = 1; */ public Builder mergeColor(SC2APIProtocol.Debug.Color value) { if (colorBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && color_ != null && color_ != SC2APIProtocol.Debug.Color.getDefaultInstance()) { color_ = SC2APIProtocol.Debug.Color.newBuilder(color_).mergeFrom(value).buildPartial(); } else { color_ = value; } onChanged(); } else { colorBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * optional .SC2APIProtocol.Color color = 1; */ public Builder clearColor() { if (colorBuilder_ == null) { color_ = null; onChanged(); } else { colorBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * optional .SC2APIProtocol.Color color = 1; */ public SC2APIProtocol.Debug.Color.Builder getColorBuilder() { bitField0_ |= 0x00000001; onChanged(); return getColorFieldBuilder().getBuilder(); } /** * optional .SC2APIProtocol.Color color = 1; */ public SC2APIProtocol.Debug.ColorOrBuilder getColorOrBuilder() { if (colorBuilder_ != null) { return colorBuilder_.getMessageOrBuilder(); } else { return color_ == null ? SC2APIProtocol.Debug.Color.getDefaultInstance() : color_; } } /** * optional .SC2APIProtocol.Color color = 1; */ private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Debug.Color, SC2APIProtocol.Debug.Color.Builder, SC2APIProtocol.Debug.ColorOrBuilder> getColorFieldBuilder() { if (colorBuilder_ == null) { colorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Debug.Color, SC2APIProtocol.Debug.Color.Builder, SC2APIProtocol.Debug.ColorOrBuilder>( getColor(), getParentForChildren(), isClean()); color_ = null; } return colorBuilder_; } private SC2APIProtocol.Debug.Line line_; private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Debug.Line, SC2APIProtocol.Debug.Line.Builder, SC2APIProtocol.Debug.LineOrBuilder> lineBuilder_; /** *
       * World space line.
       * 
* * optional .SC2APIProtocol.Line line = 2; * @return Whether the line field is set. */ public boolean hasLine() { return ((bitField0_ & 0x00000002) != 0); } /** *
       * World space line.
       * 
* * optional .SC2APIProtocol.Line line = 2; * @return The line. */ public SC2APIProtocol.Debug.Line getLine() { if (lineBuilder_ == null) { return line_ == null ? SC2APIProtocol.Debug.Line.getDefaultInstance() : line_; } else { return lineBuilder_.getMessage(); } } /** *
       * World space line.
       * 
* * optional .SC2APIProtocol.Line line = 2; */ public Builder setLine(SC2APIProtocol.Debug.Line value) { if (lineBuilder_ == null) { if (value == null) { throw new NullPointerException(); } line_ = value; onChanged(); } else { lineBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /** *
       * World space line.
       * 
* * optional .SC2APIProtocol.Line line = 2; */ public Builder setLine( SC2APIProtocol.Debug.Line.Builder builderForValue) { if (lineBuilder_ == null) { line_ = builderForValue.build(); onChanged(); } else { lineBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** *
       * World space line.
       * 
* * optional .SC2APIProtocol.Line line = 2; */ public Builder mergeLine(SC2APIProtocol.Debug.Line value) { if (lineBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && line_ != null && line_ != SC2APIProtocol.Debug.Line.getDefaultInstance()) { line_ = SC2APIProtocol.Debug.Line.newBuilder(line_).mergeFrom(value).buildPartial(); } else { line_ = value; } onChanged(); } else { lineBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** *
       * World space line.
       * 
* * optional .SC2APIProtocol.Line line = 2; */ public Builder clearLine() { if (lineBuilder_ == null) { line_ = null; onChanged(); } else { lineBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** *
       * World space line.
       * 
* * optional .SC2APIProtocol.Line line = 2; */ public SC2APIProtocol.Debug.Line.Builder getLineBuilder() { bitField0_ |= 0x00000002; onChanged(); return getLineFieldBuilder().getBuilder(); } /** *
       * World space line.
       * 
* * optional .SC2APIProtocol.Line line = 2; */ public SC2APIProtocol.Debug.LineOrBuilder getLineOrBuilder() { if (lineBuilder_ != null) { return lineBuilder_.getMessageOrBuilder(); } else { return line_ == null ? SC2APIProtocol.Debug.Line.getDefaultInstance() : line_; } } /** *
       * World space line.
       * 
* * optional .SC2APIProtocol.Line line = 2; */ private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Debug.Line, SC2APIProtocol.Debug.Line.Builder, SC2APIProtocol.Debug.LineOrBuilder> getLineFieldBuilder() { if (lineBuilder_ == null) { lineBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Debug.Line, SC2APIProtocol.Debug.Line.Builder, SC2APIProtocol.Debug.LineOrBuilder>( getLine(), getParentForChildren(), isClean()); line_ = null; } return lineBuilder_; } @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:SC2APIProtocol.DebugLine) } // @@protoc_insertion_point(class_scope:SC2APIProtocol.DebugLine) private static final SC2APIProtocol.Debug.DebugLine DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new SC2APIProtocol.Debug.DebugLine(); } public static SC2APIProtocol.Debug.DebugLine getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DebugLine parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public SC2APIProtocol.Debug.DebugLine getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DebugBoxOrBuilder extends // @@protoc_insertion_point(interface_extends:SC2APIProtocol.DebugBox) com.google.protobuf.MessageOrBuilder { /** * optional .SC2APIProtocol.Color color = 1; * @return Whether the color field is set. */ boolean hasColor(); /** * optional .SC2APIProtocol.Color color = 1; * @return The color. */ SC2APIProtocol.Debug.Color getColor(); /** * optional .SC2APIProtocol.Color color = 1; */ SC2APIProtocol.Debug.ColorOrBuilder getColorOrBuilder(); /** * optional .SC2APIProtocol.Point min = 2; * @return Whether the min field is set. */ boolean hasMin(); /** * optional .SC2APIProtocol.Point min = 2; * @return The min. */ SC2APIProtocol.Common.Point getMin(); /** * optional .SC2APIProtocol.Point min = 2; */ SC2APIProtocol.Common.PointOrBuilder getMinOrBuilder(); /** * optional .SC2APIProtocol.Point max = 3; * @return Whether the max field is set. */ boolean hasMax(); /** * optional .SC2APIProtocol.Point max = 3; * @return The max. */ SC2APIProtocol.Common.Point getMax(); /** * optional .SC2APIProtocol.Point max = 3; */ SC2APIProtocol.Common.PointOrBuilder getMaxOrBuilder(); } /** *
   * Display debug boxes on screen.
   * 
* * Protobuf type {@code SC2APIProtocol.DebugBox} */ public static final class DebugBox extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:SC2APIProtocol.DebugBox) DebugBoxOrBuilder { private static final long serialVersionUID = 0L; // Use DebugBox.newBuilder() to construct. private DebugBox(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DebugBox() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DebugBox(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Debug.internal_static_SC2APIProtocol_DebugBox_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Debug.internal_static_SC2APIProtocol_DebugBox_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Debug.DebugBox.class, SC2APIProtocol.Debug.DebugBox.Builder.class); } private int bitField0_; public static final int COLOR_FIELD_NUMBER = 1; private SC2APIProtocol.Debug.Color color_; /** * optional .SC2APIProtocol.Color color = 1; * @return Whether the color field is set. */ @java.lang.Override public boolean hasColor() { return ((bitField0_ & 0x00000001) != 0); } /** * optional .SC2APIProtocol.Color color = 1; * @return The color. */ @java.lang.Override public SC2APIProtocol.Debug.Color getColor() { return color_ == null ? SC2APIProtocol.Debug.Color.getDefaultInstance() : color_; } /** * optional .SC2APIProtocol.Color color = 1; */ @java.lang.Override public SC2APIProtocol.Debug.ColorOrBuilder getColorOrBuilder() { return color_ == null ? SC2APIProtocol.Debug.Color.getDefaultInstance() : color_; } public static final int MIN_FIELD_NUMBER = 2; private SC2APIProtocol.Common.Point min_; /** * optional .SC2APIProtocol.Point min = 2; * @return Whether the min field is set. */ @java.lang.Override public boolean hasMin() { return ((bitField0_ & 0x00000002) != 0); } /** * optional .SC2APIProtocol.Point min = 2; * @return The min. */ @java.lang.Override public SC2APIProtocol.Common.Point getMin() { return min_ == null ? SC2APIProtocol.Common.Point.getDefaultInstance() : min_; } /** * optional .SC2APIProtocol.Point min = 2; */ @java.lang.Override public SC2APIProtocol.Common.PointOrBuilder getMinOrBuilder() { return min_ == null ? SC2APIProtocol.Common.Point.getDefaultInstance() : min_; } public static final int MAX_FIELD_NUMBER = 3; private SC2APIProtocol.Common.Point max_; /** * optional .SC2APIProtocol.Point max = 3; * @return Whether the max field is set. */ @java.lang.Override public boolean hasMax() { return ((bitField0_ & 0x00000004) != 0); } /** * optional .SC2APIProtocol.Point max = 3; * @return The max. */ @java.lang.Override public SC2APIProtocol.Common.Point getMax() { return max_ == null ? SC2APIProtocol.Common.Point.getDefaultInstance() : max_; } /** * optional .SC2APIProtocol.Point max = 3; */ @java.lang.Override public SC2APIProtocol.Common.PointOrBuilder getMaxOrBuilder() { return max_ == null ? SC2APIProtocol.Common.Point.getDefaultInstance() : max_; } 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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getColor()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getMin()); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(3, getMax()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getColor()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getMin()); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getMax()); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof SC2APIProtocol.Debug.DebugBox)) { return super.equals(obj); } SC2APIProtocol.Debug.DebugBox other = (SC2APIProtocol.Debug.DebugBox) obj; if (hasColor() != other.hasColor()) return false; if (hasColor()) { if (!getColor() .equals(other.getColor())) return false; } if (hasMin() != other.hasMin()) return false; if (hasMin()) { if (!getMin() .equals(other.getMin())) return false; } if (hasMax() != other.hasMax()) return false; if (hasMax()) { if (!getMax() .equals(other.getMax())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasColor()) { hash = (37 * hash) + COLOR_FIELD_NUMBER; hash = (53 * hash) + getColor().hashCode(); } if (hasMin()) { hash = (37 * hash) + MIN_FIELD_NUMBER; hash = (53 * hash) + getMin().hashCode(); } if (hasMax()) { hash = (37 * hash) + MAX_FIELD_NUMBER; hash = (53 * hash) + getMax().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static SC2APIProtocol.Debug.DebugBox parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Debug.DebugBox parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Debug.DebugBox parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Debug.DebugBox parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Debug.DebugBox parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Debug.DebugBox parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Debug.DebugBox parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Debug.DebugBox 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 SC2APIProtocol.Debug.DebugBox parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static SC2APIProtocol.Debug.DebugBox 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 SC2APIProtocol.Debug.DebugBox parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Debug.DebugBox 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(SC2APIProtocol.Debug.DebugBox 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; } /** *
     * Display debug boxes on screen.
     * 
* * Protobuf type {@code SC2APIProtocol.DebugBox} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:SC2APIProtocol.DebugBox) SC2APIProtocol.Debug.DebugBoxOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Debug.internal_static_SC2APIProtocol_DebugBox_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Debug.internal_static_SC2APIProtocol_DebugBox_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Debug.DebugBox.class, SC2APIProtocol.Debug.DebugBox.Builder.class); } // Construct using SC2APIProtocol.Debug.DebugBox.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getColorFieldBuilder(); getMinFieldBuilder(); getMaxFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (colorBuilder_ == null) { color_ = null; } else { colorBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); if (minBuilder_ == null) { min_ = null; } else { minBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); if (maxBuilder_ == null) { max_ = null; } else { maxBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return SC2APIProtocol.Debug.internal_static_SC2APIProtocol_DebugBox_descriptor; } @java.lang.Override public SC2APIProtocol.Debug.DebugBox getDefaultInstanceForType() { return SC2APIProtocol.Debug.DebugBox.getDefaultInstance(); } @java.lang.Override public SC2APIProtocol.Debug.DebugBox build() { SC2APIProtocol.Debug.DebugBox result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public SC2APIProtocol.Debug.DebugBox buildPartial() { SC2APIProtocol.Debug.DebugBox result = new SC2APIProtocol.Debug.DebugBox(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { if (colorBuilder_ == null) { result.color_ = color_; } else { result.color_ = colorBuilder_.build(); } to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { if (minBuilder_ == null) { result.min_ = min_; } else { result.min_ = minBuilder_.build(); } to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { if (maxBuilder_ == null) { result.max_ = max_; } else { result.max_ = maxBuilder_.build(); } to_bitField0_ |= 0x00000004; } result.bitField0_ = to_bitField0_; 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 SC2APIProtocol.Debug.DebugBox) { return mergeFrom((SC2APIProtocol.Debug.DebugBox)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(SC2APIProtocol.Debug.DebugBox other) { if (other == SC2APIProtocol.Debug.DebugBox.getDefaultInstance()) return this; if (other.hasColor()) { mergeColor(other.getColor()); } if (other.hasMin()) { mergeMin(other.getMin()); } if (other.hasMax()) { mergeMax(other.getMax()); } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getColorFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getMinFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 case 26: { input.readMessage( getMaxFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private SC2APIProtocol.Debug.Color color_; private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Debug.Color, SC2APIProtocol.Debug.Color.Builder, SC2APIProtocol.Debug.ColorOrBuilder> colorBuilder_; /** * optional .SC2APIProtocol.Color color = 1; * @return Whether the color field is set. */ public boolean hasColor() { return ((bitField0_ & 0x00000001) != 0); } /** * optional .SC2APIProtocol.Color color = 1; * @return The color. */ public SC2APIProtocol.Debug.Color getColor() { if (colorBuilder_ == null) { return color_ == null ? SC2APIProtocol.Debug.Color.getDefaultInstance() : color_; } else { return colorBuilder_.getMessage(); } } /** * optional .SC2APIProtocol.Color color = 1; */ public Builder setColor(SC2APIProtocol.Debug.Color value) { if (colorBuilder_ == null) { if (value == null) { throw new NullPointerException(); } color_ = value; onChanged(); } else { colorBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * optional .SC2APIProtocol.Color color = 1; */ public Builder setColor( SC2APIProtocol.Debug.Color.Builder builderForValue) { if (colorBuilder_ == null) { color_ = builderForValue.build(); onChanged(); } else { colorBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * optional .SC2APIProtocol.Color color = 1; */ public Builder mergeColor(SC2APIProtocol.Debug.Color value) { if (colorBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && color_ != null && color_ != SC2APIProtocol.Debug.Color.getDefaultInstance()) { color_ = SC2APIProtocol.Debug.Color.newBuilder(color_).mergeFrom(value).buildPartial(); } else { color_ = value; } onChanged(); } else { colorBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * optional .SC2APIProtocol.Color color = 1; */ public Builder clearColor() { if (colorBuilder_ == null) { color_ = null; onChanged(); } else { colorBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * optional .SC2APIProtocol.Color color = 1; */ public SC2APIProtocol.Debug.Color.Builder getColorBuilder() { bitField0_ |= 0x00000001; onChanged(); return getColorFieldBuilder().getBuilder(); } /** * optional .SC2APIProtocol.Color color = 1; */ public SC2APIProtocol.Debug.ColorOrBuilder getColorOrBuilder() { if (colorBuilder_ != null) { return colorBuilder_.getMessageOrBuilder(); } else { return color_ == null ? SC2APIProtocol.Debug.Color.getDefaultInstance() : color_; } } /** * optional .SC2APIProtocol.Color color = 1; */ private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Debug.Color, SC2APIProtocol.Debug.Color.Builder, SC2APIProtocol.Debug.ColorOrBuilder> getColorFieldBuilder() { if (colorBuilder_ == null) { colorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Debug.Color, SC2APIProtocol.Debug.Color.Builder, SC2APIProtocol.Debug.ColorOrBuilder>( getColor(), getParentForChildren(), isClean()); color_ = null; } return colorBuilder_; } private SC2APIProtocol.Common.Point min_; private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Common.Point, SC2APIProtocol.Common.Point.Builder, SC2APIProtocol.Common.PointOrBuilder> minBuilder_; /** * optional .SC2APIProtocol.Point min = 2; * @return Whether the min field is set. */ public boolean hasMin() { return ((bitField0_ & 0x00000002) != 0); } /** * optional .SC2APIProtocol.Point min = 2; * @return The min. */ public SC2APIProtocol.Common.Point getMin() { if (minBuilder_ == null) { return min_ == null ? SC2APIProtocol.Common.Point.getDefaultInstance() : min_; } else { return minBuilder_.getMessage(); } } /** * optional .SC2APIProtocol.Point min = 2; */ public Builder setMin(SC2APIProtocol.Common.Point value) { if (minBuilder_ == null) { if (value == null) { throw new NullPointerException(); } min_ = value; onChanged(); } else { minBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /** * optional .SC2APIProtocol.Point min = 2; */ public Builder setMin( SC2APIProtocol.Common.Point.Builder builderForValue) { if (minBuilder_ == null) { min_ = builderForValue.build(); onChanged(); } else { minBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** * optional .SC2APIProtocol.Point min = 2; */ public Builder mergeMin(SC2APIProtocol.Common.Point value) { if (minBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && min_ != null && min_ != SC2APIProtocol.Common.Point.getDefaultInstance()) { min_ = SC2APIProtocol.Common.Point.newBuilder(min_).mergeFrom(value).buildPartial(); } else { min_ = value; } onChanged(); } else { minBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** * optional .SC2APIProtocol.Point min = 2; */ public Builder clearMin() { if (minBuilder_ == null) { min_ = null; onChanged(); } else { minBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** * optional .SC2APIProtocol.Point min = 2; */ public SC2APIProtocol.Common.Point.Builder getMinBuilder() { bitField0_ |= 0x00000002; onChanged(); return getMinFieldBuilder().getBuilder(); } /** * optional .SC2APIProtocol.Point min = 2; */ public SC2APIProtocol.Common.PointOrBuilder getMinOrBuilder() { if (minBuilder_ != null) { return minBuilder_.getMessageOrBuilder(); } else { return min_ == null ? SC2APIProtocol.Common.Point.getDefaultInstance() : min_; } } /** * optional .SC2APIProtocol.Point min = 2; */ private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Common.Point, SC2APIProtocol.Common.Point.Builder, SC2APIProtocol.Common.PointOrBuilder> getMinFieldBuilder() { if (minBuilder_ == null) { minBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Common.Point, SC2APIProtocol.Common.Point.Builder, SC2APIProtocol.Common.PointOrBuilder>( getMin(), getParentForChildren(), isClean()); min_ = null; } return minBuilder_; } private SC2APIProtocol.Common.Point max_; private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Common.Point, SC2APIProtocol.Common.Point.Builder, SC2APIProtocol.Common.PointOrBuilder> maxBuilder_; /** * optional .SC2APIProtocol.Point max = 3; * @return Whether the max field is set. */ public boolean hasMax() { return ((bitField0_ & 0x00000004) != 0); } /** * optional .SC2APIProtocol.Point max = 3; * @return The max. */ public SC2APIProtocol.Common.Point getMax() { if (maxBuilder_ == null) { return max_ == null ? SC2APIProtocol.Common.Point.getDefaultInstance() : max_; } else { return maxBuilder_.getMessage(); } } /** * optional .SC2APIProtocol.Point max = 3; */ public Builder setMax(SC2APIProtocol.Common.Point value) { if (maxBuilder_ == null) { if (value == null) { throw new NullPointerException(); } max_ = value; onChanged(); } else { maxBuilder_.setMessage(value); } bitField0_ |= 0x00000004; return this; } /** * optional .SC2APIProtocol.Point max = 3; */ public Builder setMax( SC2APIProtocol.Common.Point.Builder builderForValue) { if (maxBuilder_ == null) { max_ = builderForValue.build(); onChanged(); } else { maxBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; return this; } /** * optional .SC2APIProtocol.Point max = 3; */ public Builder mergeMax(SC2APIProtocol.Common.Point value) { if (maxBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && max_ != null && max_ != SC2APIProtocol.Common.Point.getDefaultInstance()) { max_ = SC2APIProtocol.Common.Point.newBuilder(max_).mergeFrom(value).buildPartial(); } else { max_ = value; } onChanged(); } else { maxBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; return this; } /** * optional .SC2APIProtocol.Point max = 3; */ public Builder clearMax() { if (maxBuilder_ == null) { max_ = null; onChanged(); } else { maxBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } /** * optional .SC2APIProtocol.Point max = 3; */ public SC2APIProtocol.Common.Point.Builder getMaxBuilder() { bitField0_ |= 0x00000004; onChanged(); return getMaxFieldBuilder().getBuilder(); } /** * optional .SC2APIProtocol.Point max = 3; */ public SC2APIProtocol.Common.PointOrBuilder getMaxOrBuilder() { if (maxBuilder_ != null) { return maxBuilder_.getMessageOrBuilder(); } else { return max_ == null ? SC2APIProtocol.Common.Point.getDefaultInstance() : max_; } } /** * optional .SC2APIProtocol.Point max = 3; */ private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Common.Point, SC2APIProtocol.Common.Point.Builder, SC2APIProtocol.Common.PointOrBuilder> getMaxFieldBuilder() { if (maxBuilder_ == null) { maxBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Common.Point, SC2APIProtocol.Common.Point.Builder, SC2APIProtocol.Common.PointOrBuilder>( getMax(), getParentForChildren(), isClean()); max_ = null; } return maxBuilder_; } @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:SC2APIProtocol.DebugBox) } // @@protoc_insertion_point(class_scope:SC2APIProtocol.DebugBox) private static final SC2APIProtocol.Debug.DebugBox DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new SC2APIProtocol.Debug.DebugBox(); } public static SC2APIProtocol.Debug.DebugBox getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DebugBox parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public SC2APIProtocol.Debug.DebugBox getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DebugSphereOrBuilder extends // @@protoc_insertion_point(interface_extends:SC2APIProtocol.DebugSphere) com.google.protobuf.MessageOrBuilder { /** * optional .SC2APIProtocol.Color color = 1; * @return Whether the color field is set. */ boolean hasColor(); /** * optional .SC2APIProtocol.Color color = 1; * @return The color. */ SC2APIProtocol.Debug.Color getColor(); /** * optional .SC2APIProtocol.Color color = 1; */ SC2APIProtocol.Debug.ColorOrBuilder getColorOrBuilder(); /** * optional .SC2APIProtocol.Point p = 2; * @return Whether the p field is set. */ boolean hasP(); /** * optional .SC2APIProtocol.Point p = 2; * @return The p. */ SC2APIProtocol.Common.Point getP(); /** * optional .SC2APIProtocol.Point p = 2; */ SC2APIProtocol.Common.PointOrBuilder getPOrBuilder(); /** * optional float r = 3; * @return Whether the r field is set. */ boolean hasR(); /** * optional float r = 3; * @return The r. */ float getR(); } /** *
   * Display debug spheres on screen.
   * 
* * Protobuf type {@code SC2APIProtocol.DebugSphere} */ public static final class DebugSphere extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:SC2APIProtocol.DebugSphere) DebugSphereOrBuilder { private static final long serialVersionUID = 0L; // Use DebugSphere.newBuilder() to construct. private DebugSphere(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DebugSphere() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DebugSphere(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Debug.internal_static_SC2APIProtocol_DebugSphere_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Debug.internal_static_SC2APIProtocol_DebugSphere_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Debug.DebugSphere.class, SC2APIProtocol.Debug.DebugSphere.Builder.class); } private int bitField0_; public static final int COLOR_FIELD_NUMBER = 1; private SC2APIProtocol.Debug.Color color_; /** * optional .SC2APIProtocol.Color color = 1; * @return Whether the color field is set. */ @java.lang.Override public boolean hasColor() { return ((bitField0_ & 0x00000001) != 0); } /** * optional .SC2APIProtocol.Color color = 1; * @return The color. */ @java.lang.Override public SC2APIProtocol.Debug.Color getColor() { return color_ == null ? SC2APIProtocol.Debug.Color.getDefaultInstance() : color_; } /** * optional .SC2APIProtocol.Color color = 1; */ @java.lang.Override public SC2APIProtocol.Debug.ColorOrBuilder getColorOrBuilder() { return color_ == null ? SC2APIProtocol.Debug.Color.getDefaultInstance() : color_; } public static final int P_FIELD_NUMBER = 2; private SC2APIProtocol.Common.Point p_; /** * optional .SC2APIProtocol.Point p = 2; * @return Whether the p field is set. */ @java.lang.Override public boolean hasP() { return ((bitField0_ & 0x00000002) != 0); } /** * optional .SC2APIProtocol.Point p = 2; * @return The p. */ @java.lang.Override public SC2APIProtocol.Common.Point getP() { return p_ == null ? SC2APIProtocol.Common.Point.getDefaultInstance() : p_; } /** * optional .SC2APIProtocol.Point p = 2; */ @java.lang.Override public SC2APIProtocol.Common.PointOrBuilder getPOrBuilder() { return p_ == null ? SC2APIProtocol.Common.Point.getDefaultInstance() : p_; } public static final int R_FIELD_NUMBER = 3; private float r_; /** * optional float r = 3; * @return Whether the r field is set. */ @java.lang.Override public boolean hasR() { return ((bitField0_ & 0x00000004) != 0); } /** * optional float r = 3; * @return The r. */ @java.lang.Override public float getR() { return r_; } 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 (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getColor()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getP()); } if (((bitField0_ & 0x00000004) != 0)) { output.writeFloat(3, r_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getColor()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getP()); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeFloatSize(3, r_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof SC2APIProtocol.Debug.DebugSphere)) { return super.equals(obj); } SC2APIProtocol.Debug.DebugSphere other = (SC2APIProtocol.Debug.DebugSphere) obj; if (hasColor() != other.hasColor()) return false; if (hasColor()) { if (!getColor() .equals(other.getColor())) return false; } if (hasP() != other.hasP()) return false; if (hasP()) { if (!getP() .equals(other.getP())) return false; } if (hasR() != other.hasR()) return false; if (hasR()) { if (java.lang.Float.floatToIntBits(getR()) != java.lang.Float.floatToIntBits( other.getR())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasColor()) { hash = (37 * hash) + COLOR_FIELD_NUMBER; hash = (53 * hash) + getColor().hashCode(); } if (hasP()) { hash = (37 * hash) + P_FIELD_NUMBER; hash = (53 * hash) + getP().hashCode(); } if (hasR()) { hash = (37 * hash) + R_FIELD_NUMBER; hash = (53 * hash) + java.lang.Float.floatToIntBits( getR()); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static SC2APIProtocol.Debug.DebugSphere parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Debug.DebugSphere parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Debug.DebugSphere parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Debug.DebugSphere parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Debug.DebugSphere parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Debug.DebugSphere parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Debug.DebugSphere parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Debug.DebugSphere 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 SC2APIProtocol.Debug.DebugSphere parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static SC2APIProtocol.Debug.DebugSphere 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 SC2APIProtocol.Debug.DebugSphere parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Debug.DebugSphere 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(SC2APIProtocol.Debug.DebugSphere 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; } /** *
     * Display debug spheres on screen.
     * 
* * Protobuf type {@code SC2APIProtocol.DebugSphere} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:SC2APIProtocol.DebugSphere) SC2APIProtocol.Debug.DebugSphereOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Debug.internal_static_SC2APIProtocol_DebugSphere_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Debug.internal_static_SC2APIProtocol_DebugSphere_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Debug.DebugSphere.class, SC2APIProtocol.Debug.DebugSphere.Builder.class); } // Construct using SC2APIProtocol.Debug.DebugSphere.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getColorFieldBuilder(); getPFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (colorBuilder_ == null) { color_ = null; } else { colorBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); if (pBuilder_ == null) { p_ = null; } else { pBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); r_ = 0F; bitField0_ = (bitField0_ & ~0x00000004); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return SC2APIProtocol.Debug.internal_static_SC2APIProtocol_DebugSphere_descriptor; } @java.lang.Override public SC2APIProtocol.Debug.DebugSphere getDefaultInstanceForType() { return SC2APIProtocol.Debug.DebugSphere.getDefaultInstance(); } @java.lang.Override public SC2APIProtocol.Debug.DebugSphere build() { SC2APIProtocol.Debug.DebugSphere result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public SC2APIProtocol.Debug.DebugSphere buildPartial() { SC2APIProtocol.Debug.DebugSphere result = new SC2APIProtocol.Debug.DebugSphere(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { if (colorBuilder_ == null) { result.color_ = color_; } else { result.color_ = colorBuilder_.build(); } to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { if (pBuilder_ == null) { result.p_ = p_; } else { result.p_ = pBuilder_.build(); } to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { result.r_ = r_; to_bitField0_ |= 0x00000004; } result.bitField0_ = to_bitField0_; 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 SC2APIProtocol.Debug.DebugSphere) { return mergeFrom((SC2APIProtocol.Debug.DebugSphere)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(SC2APIProtocol.Debug.DebugSphere other) { if (other == SC2APIProtocol.Debug.DebugSphere.getDefaultInstance()) return this; if (other.hasColor()) { mergeColor(other.getColor()); } if (other.hasP()) { mergeP(other.getP()); } if (other.hasR()) { setR(other.getR()); } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getColorFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getPFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 case 29: { r_ = input.readFloat(); bitField0_ |= 0x00000004; break; } // case 29 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private SC2APIProtocol.Debug.Color color_; private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Debug.Color, SC2APIProtocol.Debug.Color.Builder, SC2APIProtocol.Debug.ColorOrBuilder> colorBuilder_; /** * optional .SC2APIProtocol.Color color = 1; * @return Whether the color field is set. */ public boolean hasColor() { return ((bitField0_ & 0x00000001) != 0); } /** * optional .SC2APIProtocol.Color color = 1; * @return The color. */ public SC2APIProtocol.Debug.Color getColor() { if (colorBuilder_ == null) { return color_ == null ? SC2APIProtocol.Debug.Color.getDefaultInstance() : color_; } else { return colorBuilder_.getMessage(); } } /** * optional .SC2APIProtocol.Color color = 1; */ public Builder setColor(SC2APIProtocol.Debug.Color value) { if (colorBuilder_ == null) { if (value == null) { throw new NullPointerException(); } color_ = value; onChanged(); } else { colorBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * optional .SC2APIProtocol.Color color = 1; */ public Builder setColor( SC2APIProtocol.Debug.Color.Builder builderForValue) { if (colorBuilder_ == null) { color_ = builderForValue.build(); onChanged(); } else { colorBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * optional .SC2APIProtocol.Color color = 1; */ public Builder mergeColor(SC2APIProtocol.Debug.Color value) { if (colorBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && color_ != null && color_ != SC2APIProtocol.Debug.Color.getDefaultInstance()) { color_ = SC2APIProtocol.Debug.Color.newBuilder(color_).mergeFrom(value).buildPartial(); } else { color_ = value; } onChanged(); } else { colorBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * optional .SC2APIProtocol.Color color = 1; */ public Builder clearColor() { if (colorBuilder_ == null) { color_ = null; onChanged(); } else { colorBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * optional .SC2APIProtocol.Color color = 1; */ public SC2APIProtocol.Debug.Color.Builder getColorBuilder() { bitField0_ |= 0x00000001; onChanged(); return getColorFieldBuilder().getBuilder(); } /** * optional .SC2APIProtocol.Color color = 1; */ public SC2APIProtocol.Debug.ColorOrBuilder getColorOrBuilder() { if (colorBuilder_ != null) { return colorBuilder_.getMessageOrBuilder(); } else { return color_ == null ? SC2APIProtocol.Debug.Color.getDefaultInstance() : color_; } } /** * optional .SC2APIProtocol.Color color = 1; */ private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Debug.Color, SC2APIProtocol.Debug.Color.Builder, SC2APIProtocol.Debug.ColorOrBuilder> getColorFieldBuilder() { if (colorBuilder_ == null) { colorBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Debug.Color, SC2APIProtocol.Debug.Color.Builder, SC2APIProtocol.Debug.ColorOrBuilder>( getColor(), getParentForChildren(), isClean()); color_ = null; } return colorBuilder_; } private SC2APIProtocol.Common.Point p_; private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Common.Point, SC2APIProtocol.Common.Point.Builder, SC2APIProtocol.Common.PointOrBuilder> pBuilder_; /** * optional .SC2APIProtocol.Point p = 2; * @return Whether the p field is set. */ public boolean hasP() { return ((bitField0_ & 0x00000002) != 0); } /** * optional .SC2APIProtocol.Point p = 2; * @return The p. */ public SC2APIProtocol.Common.Point getP() { if (pBuilder_ == null) { return p_ == null ? SC2APIProtocol.Common.Point.getDefaultInstance() : p_; } else { return pBuilder_.getMessage(); } } /** * optional .SC2APIProtocol.Point p = 2; */ public Builder setP(SC2APIProtocol.Common.Point value) { if (pBuilder_ == null) { if (value == null) { throw new NullPointerException(); } p_ = value; onChanged(); } else { pBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /** * optional .SC2APIProtocol.Point p = 2; */ public Builder setP( SC2APIProtocol.Common.Point.Builder builderForValue) { if (pBuilder_ == null) { p_ = builderForValue.build(); onChanged(); } else { pBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** * optional .SC2APIProtocol.Point p = 2; */ public Builder mergeP(SC2APIProtocol.Common.Point value) { if (pBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && p_ != null && p_ != SC2APIProtocol.Common.Point.getDefaultInstance()) { p_ = SC2APIProtocol.Common.Point.newBuilder(p_).mergeFrom(value).buildPartial(); } else { p_ = value; } onChanged(); } else { pBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** * optional .SC2APIProtocol.Point p = 2; */ public Builder clearP() { if (pBuilder_ == null) { p_ = null; onChanged(); } else { pBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** * optional .SC2APIProtocol.Point p = 2; */ public SC2APIProtocol.Common.Point.Builder getPBuilder() { bitField0_ |= 0x00000002; onChanged(); return getPFieldBuilder().getBuilder(); } /** * optional .SC2APIProtocol.Point p = 2; */ public SC2APIProtocol.Common.PointOrBuilder getPOrBuilder() { if (pBuilder_ != null) { return pBuilder_.getMessageOrBuilder(); } else { return p_ == null ? SC2APIProtocol.Common.Point.getDefaultInstance() : p_; } } /** * optional .SC2APIProtocol.Point p = 2; */ private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Common.Point, SC2APIProtocol.Common.Point.Builder, SC2APIProtocol.Common.PointOrBuilder> getPFieldBuilder() { if (pBuilder_ == null) { pBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Common.Point, SC2APIProtocol.Common.Point.Builder, SC2APIProtocol.Common.PointOrBuilder>( getP(), getParentForChildren(), isClean()); p_ = null; } return pBuilder_; } private float r_ ; /** * optional float r = 3; * @return Whether the r field is set. */ @java.lang.Override public boolean hasR() { return ((bitField0_ & 0x00000004) != 0); } /** * optional float r = 3; * @return The r. */ @java.lang.Override public float getR() { return r_; } /** * optional float r = 3; * @param value The r to set. * @return This builder for chaining. */ public Builder setR(float value) { bitField0_ |= 0x00000004; r_ = value; onChanged(); return this; } /** * optional float r = 3; * @return This builder for chaining. */ public Builder clearR() { bitField0_ = (bitField0_ & ~0x00000004); r_ = 0F; 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:SC2APIProtocol.DebugSphere) } // @@protoc_insertion_point(class_scope:SC2APIProtocol.DebugSphere) private static final SC2APIProtocol.Debug.DebugSphere DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new SC2APIProtocol.Debug.DebugSphere(); } public static SC2APIProtocol.Debug.DebugSphere getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DebugSphere parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public SC2APIProtocol.Debug.DebugSphere getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DebugCreateUnitOrBuilder extends // @@protoc_insertion_point(interface_extends:SC2APIProtocol.DebugCreateUnit) com.google.protobuf.MessageOrBuilder { /** * optional uint32 unit_type = 1; * @return Whether the unitType field is set. */ boolean hasUnitType(); /** * optional uint32 unit_type = 1; * @return The unitType. */ int getUnitType(); /** * optional int32 owner = 2; * @return Whether the owner field is set. */ boolean hasOwner(); /** * optional int32 owner = 2; * @return The owner. */ int getOwner(); /** * optional .SC2APIProtocol.Point2D pos = 3; * @return Whether the pos field is set. */ boolean hasPos(); /** * optional .SC2APIProtocol.Point2D pos = 3; * @return The pos. */ SC2APIProtocol.Common.Point2D getPos(); /** * optional .SC2APIProtocol.Point2D pos = 3; */ SC2APIProtocol.Common.Point2DOrBuilder getPosOrBuilder(); /** * optional uint32 quantity = 4; * @return Whether the quantity field is set. */ boolean hasQuantity(); /** * optional uint32 quantity = 4; * @return The quantity. */ int getQuantity(); } /** * Protobuf type {@code SC2APIProtocol.DebugCreateUnit} */ public static final class DebugCreateUnit extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:SC2APIProtocol.DebugCreateUnit) DebugCreateUnitOrBuilder { private static final long serialVersionUID = 0L; // Use DebugCreateUnit.newBuilder() to construct. private DebugCreateUnit(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DebugCreateUnit() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DebugCreateUnit(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Debug.internal_static_SC2APIProtocol_DebugCreateUnit_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Debug.internal_static_SC2APIProtocol_DebugCreateUnit_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Debug.DebugCreateUnit.class, SC2APIProtocol.Debug.DebugCreateUnit.Builder.class); } private int bitField0_; public static final int UNIT_TYPE_FIELD_NUMBER = 1; private int unitType_; /** * optional uint32 unit_type = 1; * @return Whether the unitType field is set. */ @java.lang.Override public boolean hasUnitType() { return ((bitField0_ & 0x00000001) != 0); } /** * optional uint32 unit_type = 1; * @return The unitType. */ @java.lang.Override public int getUnitType() { return unitType_; } public static final int OWNER_FIELD_NUMBER = 2; private int owner_; /** * optional int32 owner = 2; * @return Whether the owner field is set. */ @java.lang.Override public boolean hasOwner() { return ((bitField0_ & 0x00000002) != 0); } /** * optional int32 owner = 2; * @return The owner. */ @java.lang.Override public int getOwner() { return owner_; } public static final int POS_FIELD_NUMBER = 3; private SC2APIProtocol.Common.Point2D pos_; /** * optional .SC2APIProtocol.Point2D pos = 3; * @return Whether the pos field is set. */ @java.lang.Override public boolean hasPos() { return ((bitField0_ & 0x00000004) != 0); } /** * optional .SC2APIProtocol.Point2D pos = 3; * @return The pos. */ @java.lang.Override public SC2APIProtocol.Common.Point2D getPos() { return pos_ == null ? SC2APIProtocol.Common.Point2D.getDefaultInstance() : pos_; } /** * optional .SC2APIProtocol.Point2D pos = 3; */ @java.lang.Override public SC2APIProtocol.Common.Point2DOrBuilder getPosOrBuilder() { return pos_ == null ? SC2APIProtocol.Common.Point2D.getDefaultInstance() : pos_; } public static final int QUANTITY_FIELD_NUMBER = 4; private int quantity_; /** * optional uint32 quantity = 4; * @return Whether the quantity field is set. */ @java.lang.Override public boolean hasQuantity() { return ((bitField0_ & 0x00000008) != 0); } /** * optional uint32 quantity = 4; * @return The quantity. */ @java.lang.Override public int getQuantity() { return quantity_; } 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 (((bitField0_ & 0x00000001) != 0)) { output.writeUInt32(1, unitType_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeInt32(2, owner_); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(3, getPos()); } if (((bitField0_ & 0x00000008) != 0)) { output.writeUInt32(4, quantity_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, unitType_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, owner_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getPos()); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(4, quantity_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof SC2APIProtocol.Debug.DebugCreateUnit)) { return super.equals(obj); } SC2APIProtocol.Debug.DebugCreateUnit other = (SC2APIProtocol.Debug.DebugCreateUnit) obj; if (hasUnitType() != other.hasUnitType()) return false; if (hasUnitType()) { if (getUnitType() != other.getUnitType()) return false; } if (hasOwner() != other.hasOwner()) return false; if (hasOwner()) { if (getOwner() != other.getOwner()) return false; } if (hasPos() != other.hasPos()) return false; if (hasPos()) { if (!getPos() .equals(other.getPos())) return false; } if (hasQuantity() != other.hasQuantity()) return false; if (hasQuantity()) { if (getQuantity() != other.getQuantity()) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasUnitType()) { hash = (37 * hash) + UNIT_TYPE_FIELD_NUMBER; hash = (53 * hash) + getUnitType(); } if (hasOwner()) { hash = (37 * hash) + OWNER_FIELD_NUMBER; hash = (53 * hash) + getOwner(); } if (hasPos()) { hash = (37 * hash) + POS_FIELD_NUMBER; hash = (53 * hash) + getPos().hashCode(); } if (hasQuantity()) { hash = (37 * hash) + QUANTITY_FIELD_NUMBER; hash = (53 * hash) + getQuantity(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static SC2APIProtocol.Debug.DebugCreateUnit parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Debug.DebugCreateUnit parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Debug.DebugCreateUnit parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Debug.DebugCreateUnit parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Debug.DebugCreateUnit parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Debug.DebugCreateUnit parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Debug.DebugCreateUnit parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Debug.DebugCreateUnit 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 SC2APIProtocol.Debug.DebugCreateUnit parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static SC2APIProtocol.Debug.DebugCreateUnit 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 SC2APIProtocol.Debug.DebugCreateUnit parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Debug.DebugCreateUnit 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(SC2APIProtocol.Debug.DebugCreateUnit 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; } /** * Protobuf type {@code SC2APIProtocol.DebugCreateUnit} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:SC2APIProtocol.DebugCreateUnit) SC2APIProtocol.Debug.DebugCreateUnitOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Debug.internal_static_SC2APIProtocol_DebugCreateUnit_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Debug.internal_static_SC2APIProtocol_DebugCreateUnit_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Debug.DebugCreateUnit.class, SC2APIProtocol.Debug.DebugCreateUnit.Builder.class); } // Construct using SC2APIProtocol.Debug.DebugCreateUnit.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getPosFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); unitType_ = 0; bitField0_ = (bitField0_ & ~0x00000001); owner_ = 0; bitField0_ = (bitField0_ & ~0x00000002); if (posBuilder_ == null) { pos_ = null; } else { posBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); quantity_ = 0; bitField0_ = (bitField0_ & ~0x00000008); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return SC2APIProtocol.Debug.internal_static_SC2APIProtocol_DebugCreateUnit_descriptor; } @java.lang.Override public SC2APIProtocol.Debug.DebugCreateUnit getDefaultInstanceForType() { return SC2APIProtocol.Debug.DebugCreateUnit.getDefaultInstance(); } @java.lang.Override public SC2APIProtocol.Debug.DebugCreateUnit build() { SC2APIProtocol.Debug.DebugCreateUnit result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public SC2APIProtocol.Debug.DebugCreateUnit buildPartial() { SC2APIProtocol.Debug.DebugCreateUnit result = new SC2APIProtocol.Debug.DebugCreateUnit(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.unitType_ = unitType_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.owner_ = owner_; to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { if (posBuilder_ == null) { result.pos_ = pos_; } else { result.pos_ = posBuilder_.build(); } to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000008) != 0)) { result.quantity_ = quantity_; to_bitField0_ |= 0x00000008; } result.bitField0_ = to_bitField0_; 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 SC2APIProtocol.Debug.DebugCreateUnit) { return mergeFrom((SC2APIProtocol.Debug.DebugCreateUnit)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(SC2APIProtocol.Debug.DebugCreateUnit other) { if (other == SC2APIProtocol.Debug.DebugCreateUnit.getDefaultInstance()) return this; if (other.hasUnitType()) { setUnitType(other.getUnitType()); } if (other.hasOwner()) { setOwner(other.getOwner()); } if (other.hasPos()) { mergePos(other.getPos()); } if (other.hasQuantity()) { setQuantity(other.getQuantity()); } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { unitType_ = input.readUInt32(); bitField0_ |= 0x00000001; break; } // case 8 case 16: { owner_ = input.readInt32(); bitField0_ |= 0x00000002; break; } // case 16 case 26: { input.readMessage( getPosFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 26 case 32: { quantity_ = input.readUInt32(); bitField0_ |= 0x00000008; break; } // case 32 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private int unitType_ ; /** * optional uint32 unit_type = 1; * @return Whether the unitType field is set. */ @java.lang.Override public boolean hasUnitType() { return ((bitField0_ & 0x00000001) != 0); } /** * optional uint32 unit_type = 1; * @return The unitType. */ @java.lang.Override public int getUnitType() { return unitType_; } /** * optional uint32 unit_type = 1; * @param value The unitType to set. * @return This builder for chaining. */ public Builder setUnitType(int value) { bitField0_ |= 0x00000001; unitType_ = value; onChanged(); return this; } /** * optional uint32 unit_type = 1; * @return This builder for chaining. */ public Builder clearUnitType() { bitField0_ = (bitField0_ & ~0x00000001); unitType_ = 0; onChanged(); return this; } private int owner_ ; /** * optional int32 owner = 2; * @return Whether the owner field is set. */ @java.lang.Override public boolean hasOwner() { return ((bitField0_ & 0x00000002) != 0); } /** * optional int32 owner = 2; * @return The owner. */ @java.lang.Override public int getOwner() { return owner_; } /** * optional int32 owner = 2; * @param value The owner to set. * @return This builder for chaining. */ public Builder setOwner(int value) { bitField0_ |= 0x00000002; owner_ = value; onChanged(); return this; } /** * optional int32 owner = 2; * @return This builder for chaining. */ public Builder clearOwner() { bitField0_ = (bitField0_ & ~0x00000002); owner_ = 0; onChanged(); return this; } private SC2APIProtocol.Common.Point2D pos_; private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Common.Point2D, SC2APIProtocol.Common.Point2D.Builder, SC2APIProtocol.Common.Point2DOrBuilder> posBuilder_; /** * optional .SC2APIProtocol.Point2D pos = 3; * @return Whether the pos field is set. */ public boolean hasPos() { return ((bitField0_ & 0x00000004) != 0); } /** * optional .SC2APIProtocol.Point2D pos = 3; * @return The pos. */ public SC2APIProtocol.Common.Point2D getPos() { if (posBuilder_ == null) { return pos_ == null ? SC2APIProtocol.Common.Point2D.getDefaultInstance() : pos_; } else { return posBuilder_.getMessage(); } } /** * optional .SC2APIProtocol.Point2D pos = 3; */ public Builder setPos(SC2APIProtocol.Common.Point2D value) { if (posBuilder_ == null) { if (value == null) { throw new NullPointerException(); } pos_ = value; onChanged(); } else { posBuilder_.setMessage(value); } bitField0_ |= 0x00000004; return this; } /** * optional .SC2APIProtocol.Point2D pos = 3; */ public Builder setPos( SC2APIProtocol.Common.Point2D.Builder builderForValue) { if (posBuilder_ == null) { pos_ = builderForValue.build(); onChanged(); } else { posBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; return this; } /** * optional .SC2APIProtocol.Point2D pos = 3; */ public Builder mergePos(SC2APIProtocol.Common.Point2D value) { if (posBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && pos_ != null && pos_ != SC2APIProtocol.Common.Point2D.getDefaultInstance()) { pos_ = SC2APIProtocol.Common.Point2D.newBuilder(pos_).mergeFrom(value).buildPartial(); } else { pos_ = value; } onChanged(); } else { posBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; return this; } /** * optional .SC2APIProtocol.Point2D pos = 3; */ public Builder clearPos() { if (posBuilder_ == null) { pos_ = null; onChanged(); } else { posBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } /** * optional .SC2APIProtocol.Point2D pos = 3; */ public SC2APIProtocol.Common.Point2D.Builder getPosBuilder() { bitField0_ |= 0x00000004; onChanged(); return getPosFieldBuilder().getBuilder(); } /** * optional .SC2APIProtocol.Point2D pos = 3; */ public SC2APIProtocol.Common.Point2DOrBuilder getPosOrBuilder() { if (posBuilder_ != null) { return posBuilder_.getMessageOrBuilder(); } else { return pos_ == null ? SC2APIProtocol.Common.Point2D.getDefaultInstance() : pos_; } } /** * optional .SC2APIProtocol.Point2D pos = 3; */ private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Common.Point2D, SC2APIProtocol.Common.Point2D.Builder, SC2APIProtocol.Common.Point2DOrBuilder> getPosFieldBuilder() { if (posBuilder_ == null) { posBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Common.Point2D, SC2APIProtocol.Common.Point2D.Builder, SC2APIProtocol.Common.Point2DOrBuilder>( getPos(), getParentForChildren(), isClean()); pos_ = null; } return posBuilder_; } private int quantity_ ; /** * optional uint32 quantity = 4; * @return Whether the quantity field is set. */ @java.lang.Override public boolean hasQuantity() { return ((bitField0_ & 0x00000008) != 0); } /** * optional uint32 quantity = 4; * @return The quantity. */ @java.lang.Override public int getQuantity() { return quantity_; } /** * optional uint32 quantity = 4; * @param value The quantity to set. * @return This builder for chaining. */ public Builder setQuantity(int value) { bitField0_ |= 0x00000008; quantity_ = value; onChanged(); return this; } /** * optional uint32 quantity = 4; * @return This builder for chaining. */ public Builder clearQuantity() { bitField0_ = (bitField0_ & ~0x00000008); quantity_ = 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:SC2APIProtocol.DebugCreateUnit) } // @@protoc_insertion_point(class_scope:SC2APIProtocol.DebugCreateUnit) private static final SC2APIProtocol.Debug.DebugCreateUnit DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new SC2APIProtocol.Debug.DebugCreateUnit(); } public static SC2APIProtocol.Debug.DebugCreateUnit getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DebugCreateUnit parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public SC2APIProtocol.Debug.DebugCreateUnit getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DebugKillUnitOrBuilder extends // @@protoc_insertion_point(interface_extends:SC2APIProtocol.DebugKillUnit) com.google.protobuf.MessageOrBuilder { /** * repeated uint64 tag = 1; * @return A list containing the tag. */ java.util.List getTagList(); /** * repeated uint64 tag = 1; * @return The count of tag. */ int getTagCount(); /** * repeated uint64 tag = 1; * @param index The index of the element to return. * @return The tag at the given index. */ long getTag(int index); } /** * Protobuf type {@code SC2APIProtocol.DebugKillUnit} */ public static final class DebugKillUnit extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:SC2APIProtocol.DebugKillUnit) DebugKillUnitOrBuilder { private static final long serialVersionUID = 0L; // Use DebugKillUnit.newBuilder() to construct. private DebugKillUnit(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DebugKillUnit() { tag_ = emptyLongList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DebugKillUnit(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Debug.internal_static_SC2APIProtocol_DebugKillUnit_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Debug.internal_static_SC2APIProtocol_DebugKillUnit_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Debug.DebugKillUnit.class, SC2APIProtocol.Debug.DebugKillUnit.Builder.class); } public static final int TAG_FIELD_NUMBER = 1; private com.google.protobuf.Internal.LongList tag_; /** * repeated uint64 tag = 1; * @return A list containing the tag. */ @java.lang.Override public java.util.List getTagList() { return tag_; } /** * repeated uint64 tag = 1; * @return The count of tag. */ public int getTagCount() { return tag_.size(); } /** * repeated uint64 tag = 1; * @param index The index of the element to return. * @return The tag at the given index. */ public long getTag(int index) { return tag_.getLong(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 { for (int i = 0; i < tag_.size(); i++) { output.writeUInt64(1, tag_.getLong(i)); } getUnknownFields().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 < tag_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeUInt64SizeNoTag(tag_.getLong(i)); } size += dataSize; size += 1 * getTagList().size(); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof SC2APIProtocol.Debug.DebugKillUnit)) { return super.equals(obj); } SC2APIProtocol.Debug.DebugKillUnit other = (SC2APIProtocol.Debug.DebugKillUnit) obj; if (!getTagList() .equals(other.getTagList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (getTagCount() > 0) { hash = (37 * hash) + TAG_FIELD_NUMBER; hash = (53 * hash) + getTagList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static SC2APIProtocol.Debug.DebugKillUnit parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Debug.DebugKillUnit parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Debug.DebugKillUnit parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Debug.DebugKillUnit parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Debug.DebugKillUnit parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Debug.DebugKillUnit parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Debug.DebugKillUnit parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Debug.DebugKillUnit 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 SC2APIProtocol.Debug.DebugKillUnit parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static SC2APIProtocol.Debug.DebugKillUnit 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 SC2APIProtocol.Debug.DebugKillUnit parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Debug.DebugKillUnit 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(SC2APIProtocol.Debug.DebugKillUnit 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; } /** * Protobuf type {@code SC2APIProtocol.DebugKillUnit} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:SC2APIProtocol.DebugKillUnit) SC2APIProtocol.Debug.DebugKillUnitOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Debug.internal_static_SC2APIProtocol_DebugKillUnit_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Debug.internal_static_SC2APIProtocol_DebugKillUnit_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Debug.DebugKillUnit.class, SC2APIProtocol.Debug.DebugKillUnit.Builder.class); } // Construct using SC2APIProtocol.Debug.DebugKillUnit.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); tag_ = emptyLongList(); bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return SC2APIProtocol.Debug.internal_static_SC2APIProtocol_DebugKillUnit_descriptor; } @java.lang.Override public SC2APIProtocol.Debug.DebugKillUnit getDefaultInstanceForType() { return SC2APIProtocol.Debug.DebugKillUnit.getDefaultInstance(); } @java.lang.Override public SC2APIProtocol.Debug.DebugKillUnit build() { SC2APIProtocol.Debug.DebugKillUnit result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public SC2APIProtocol.Debug.DebugKillUnit buildPartial() { SC2APIProtocol.Debug.DebugKillUnit result = new SC2APIProtocol.Debug.DebugKillUnit(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { tag_.makeImmutable(); bitField0_ = (bitField0_ & ~0x00000001); } result.tag_ = tag_; 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 SC2APIProtocol.Debug.DebugKillUnit) { return mergeFrom((SC2APIProtocol.Debug.DebugKillUnit)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(SC2APIProtocol.Debug.DebugKillUnit other) { if (other == SC2APIProtocol.Debug.DebugKillUnit.getDefaultInstance()) return this; if (!other.tag_.isEmpty()) { if (tag_.isEmpty()) { tag_ = other.tag_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureTagIsMutable(); tag_.addAll(other.tag_); } onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { long v = input.readUInt64(); ensureTagIsMutable(); tag_.addLong(v); break; } // case 8 case 10: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); ensureTagIsMutable(); while (input.getBytesUntilLimit() > 0) { tag_.addLong(input.readUInt64()); } input.popLimit(limit); break; } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.google.protobuf.Internal.LongList tag_ = emptyLongList(); private void ensureTagIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { tag_ = mutableCopy(tag_); bitField0_ |= 0x00000001; } } /** * repeated uint64 tag = 1; * @return A list containing the tag. */ public java.util.List getTagList() { return ((bitField0_ & 0x00000001) != 0) ? java.util.Collections.unmodifiableList(tag_) : tag_; } /** * repeated uint64 tag = 1; * @return The count of tag. */ public int getTagCount() { return tag_.size(); } /** * repeated uint64 tag = 1; * @param index The index of the element to return. * @return The tag at the given index. */ public long getTag(int index) { return tag_.getLong(index); } /** * repeated uint64 tag = 1; * @param index The index to set the value at. * @param value The tag to set. * @return This builder for chaining. */ public Builder setTag( int index, long value) { ensureTagIsMutable(); tag_.setLong(index, value); onChanged(); return this; } /** * repeated uint64 tag = 1; * @param value The tag to add. * @return This builder for chaining. */ public Builder addTag(long value) { ensureTagIsMutable(); tag_.addLong(value); onChanged(); return this; } /** * repeated uint64 tag = 1; * @param values The tag to add. * @return This builder for chaining. */ public Builder addAllTag( java.lang.Iterable values) { ensureTagIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, tag_); onChanged(); return this; } /** * repeated uint64 tag = 1; * @return This builder for chaining. */ public Builder clearTag() { tag_ = emptyLongList(); bitField0_ = (bitField0_ & ~0x00000001); 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:SC2APIProtocol.DebugKillUnit) } // @@protoc_insertion_point(class_scope:SC2APIProtocol.DebugKillUnit) private static final SC2APIProtocol.Debug.DebugKillUnit DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new SC2APIProtocol.Debug.DebugKillUnit(); } public static SC2APIProtocol.Debug.DebugKillUnit getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DebugKillUnit parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public SC2APIProtocol.Debug.DebugKillUnit getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DebugTestProcessOrBuilder extends // @@protoc_insertion_point(interface_extends:SC2APIProtocol.DebugTestProcess) com.google.protobuf.MessageOrBuilder { /** * optional .SC2APIProtocol.DebugTestProcess.Test test = 1; * @return Whether the test field is set. */ boolean hasTest(); /** * optional .SC2APIProtocol.DebugTestProcess.Test test = 1; * @return The test. */ SC2APIProtocol.Debug.DebugTestProcess.Test getTest(); /** * optional int32 delay_ms = 2; * @return Whether the delayMs field is set. */ boolean hasDelayMs(); /** * optional int32 delay_ms = 2; * @return The delayMs. */ int getDelayMs(); } /** * Protobuf type {@code SC2APIProtocol.DebugTestProcess} */ public static final class DebugTestProcess extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:SC2APIProtocol.DebugTestProcess) DebugTestProcessOrBuilder { private static final long serialVersionUID = 0L; // Use DebugTestProcess.newBuilder() to construct. private DebugTestProcess(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DebugTestProcess() { test_ = 1; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DebugTestProcess(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Debug.internal_static_SC2APIProtocol_DebugTestProcess_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Debug.internal_static_SC2APIProtocol_DebugTestProcess_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Debug.DebugTestProcess.class, SC2APIProtocol.Debug.DebugTestProcess.Builder.class); } /** * Protobuf enum {@code SC2APIProtocol.DebugTestProcess.Test} */ public enum Test implements com.google.protobuf.ProtocolMessageEnum { /** * hang = 1; */ hang(1), /** * crash = 2; */ crash(2), /** * exit = 3; */ exit(3), ; /** * hang = 1; */ public static final int hang_VALUE = 1; /** * crash = 2; */ public static final int crash_VALUE = 2; /** * exit = 3; */ public static final int exit_VALUE = 3; public final int getNumber() { return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static Test valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static Test forNumber(int value) { switch (value) { case 1: return hang; case 2: return crash; case 3: return exit; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Test> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Test findValueByNumber(int number) { return Test.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return SC2APIProtocol.Debug.DebugTestProcess.getDescriptor().getEnumTypes().get(0); } private static final Test[] VALUES = values(); public static Test valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } return VALUES[desc.getIndex()]; } private final int value; private Test(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:SC2APIProtocol.DebugTestProcess.Test) } private int bitField0_; public static final int TEST_FIELD_NUMBER = 1; private int test_; /** * optional .SC2APIProtocol.DebugTestProcess.Test test = 1; * @return Whether the test field is set. */ @java.lang.Override public boolean hasTest() { return ((bitField0_ & 0x00000001) != 0); } /** * optional .SC2APIProtocol.DebugTestProcess.Test test = 1; * @return The test. */ @java.lang.Override public SC2APIProtocol.Debug.DebugTestProcess.Test getTest() { @SuppressWarnings("deprecation") SC2APIProtocol.Debug.DebugTestProcess.Test result = SC2APIProtocol.Debug.DebugTestProcess.Test.valueOf(test_); return result == null ? SC2APIProtocol.Debug.DebugTestProcess.Test.hang : result; } public static final int DELAY_MS_FIELD_NUMBER = 2; private int delayMs_; /** * optional int32 delay_ms = 2; * @return Whether the delayMs field is set. */ @java.lang.Override public boolean hasDelayMs() { return ((bitField0_ & 0x00000002) != 0); } /** * optional int32 delay_ms = 2; * @return The delayMs. */ @java.lang.Override public int getDelayMs() { return delayMs_; } 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 (((bitField0_ & 0x00000001) != 0)) { output.writeEnum(1, test_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeInt32(2, delayMs_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, test_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, delayMs_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof SC2APIProtocol.Debug.DebugTestProcess)) { return super.equals(obj); } SC2APIProtocol.Debug.DebugTestProcess other = (SC2APIProtocol.Debug.DebugTestProcess) obj; if (hasTest() != other.hasTest()) return false; if (hasTest()) { if (test_ != other.test_) return false; } if (hasDelayMs() != other.hasDelayMs()) return false; if (hasDelayMs()) { if (getDelayMs() != other.getDelayMs()) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasTest()) { hash = (37 * hash) + TEST_FIELD_NUMBER; hash = (53 * hash) + test_; } if (hasDelayMs()) { hash = (37 * hash) + DELAY_MS_FIELD_NUMBER; hash = (53 * hash) + getDelayMs(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static SC2APIProtocol.Debug.DebugTestProcess parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Debug.DebugTestProcess parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Debug.DebugTestProcess parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Debug.DebugTestProcess parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Debug.DebugTestProcess parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Debug.DebugTestProcess parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Debug.DebugTestProcess parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Debug.DebugTestProcess 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 SC2APIProtocol.Debug.DebugTestProcess parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static SC2APIProtocol.Debug.DebugTestProcess 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 SC2APIProtocol.Debug.DebugTestProcess parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Debug.DebugTestProcess 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(SC2APIProtocol.Debug.DebugTestProcess 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; } /** * Protobuf type {@code SC2APIProtocol.DebugTestProcess} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:SC2APIProtocol.DebugTestProcess) SC2APIProtocol.Debug.DebugTestProcessOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Debug.internal_static_SC2APIProtocol_DebugTestProcess_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Debug.internal_static_SC2APIProtocol_DebugTestProcess_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Debug.DebugTestProcess.class, SC2APIProtocol.Debug.DebugTestProcess.Builder.class); } // Construct using SC2APIProtocol.Debug.DebugTestProcess.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); test_ = 1; bitField0_ = (bitField0_ & ~0x00000001); delayMs_ = 0; bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return SC2APIProtocol.Debug.internal_static_SC2APIProtocol_DebugTestProcess_descriptor; } @java.lang.Override public SC2APIProtocol.Debug.DebugTestProcess getDefaultInstanceForType() { return SC2APIProtocol.Debug.DebugTestProcess.getDefaultInstance(); } @java.lang.Override public SC2APIProtocol.Debug.DebugTestProcess build() { SC2APIProtocol.Debug.DebugTestProcess result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public SC2APIProtocol.Debug.DebugTestProcess buildPartial() { SC2APIProtocol.Debug.DebugTestProcess result = new SC2APIProtocol.Debug.DebugTestProcess(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { to_bitField0_ |= 0x00000001; } result.test_ = test_; if (((from_bitField0_ & 0x00000002) != 0)) { result.delayMs_ = delayMs_; to_bitField0_ |= 0x00000002; } result.bitField0_ = to_bitField0_; 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 SC2APIProtocol.Debug.DebugTestProcess) { return mergeFrom((SC2APIProtocol.Debug.DebugTestProcess)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(SC2APIProtocol.Debug.DebugTestProcess other) { if (other == SC2APIProtocol.Debug.DebugTestProcess.getDefaultInstance()) return this; if (other.hasTest()) { setTest(other.getTest()); } if (other.hasDelayMs()) { setDelayMs(other.getDelayMs()); } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { int tmpRaw = input.readEnum(); SC2APIProtocol.Debug.DebugTestProcess.Test tmpValue = SC2APIProtocol.Debug.DebugTestProcess.Test.forNumber(tmpRaw); if (tmpValue == null) { mergeUnknownVarintField(1, tmpRaw); } else { test_ = tmpRaw; bitField0_ |= 0x00000001; } break; } // case 8 case 16: { delayMs_ = input.readInt32(); bitField0_ |= 0x00000002; break; } // case 16 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private int test_ = 1; /** * optional .SC2APIProtocol.DebugTestProcess.Test test = 1; * @return Whether the test field is set. */ @java.lang.Override public boolean hasTest() { return ((bitField0_ & 0x00000001) != 0); } /** * optional .SC2APIProtocol.DebugTestProcess.Test test = 1; * @return The test. */ @java.lang.Override public SC2APIProtocol.Debug.DebugTestProcess.Test getTest() { @SuppressWarnings("deprecation") SC2APIProtocol.Debug.DebugTestProcess.Test result = SC2APIProtocol.Debug.DebugTestProcess.Test.valueOf(test_); return result == null ? SC2APIProtocol.Debug.DebugTestProcess.Test.hang : result; } /** * optional .SC2APIProtocol.DebugTestProcess.Test test = 1; * @param value The test to set. * @return This builder for chaining. */ public Builder setTest(SC2APIProtocol.Debug.DebugTestProcess.Test value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; test_ = value.getNumber(); onChanged(); return this; } /** * optional .SC2APIProtocol.DebugTestProcess.Test test = 1; * @return This builder for chaining. */ public Builder clearTest() { bitField0_ = (bitField0_ & ~0x00000001); test_ = 1; onChanged(); return this; } private int delayMs_ ; /** * optional int32 delay_ms = 2; * @return Whether the delayMs field is set. */ @java.lang.Override public boolean hasDelayMs() { return ((bitField0_ & 0x00000002) != 0); } /** * optional int32 delay_ms = 2; * @return The delayMs. */ @java.lang.Override public int getDelayMs() { return delayMs_; } /** * optional int32 delay_ms = 2; * @param value The delayMs to set. * @return This builder for chaining. */ public Builder setDelayMs(int value) { bitField0_ |= 0x00000002; delayMs_ = value; onChanged(); return this; } /** * optional int32 delay_ms = 2; * @return This builder for chaining. */ public Builder clearDelayMs() { bitField0_ = (bitField0_ & ~0x00000002); delayMs_ = 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:SC2APIProtocol.DebugTestProcess) } // @@protoc_insertion_point(class_scope:SC2APIProtocol.DebugTestProcess) private static final SC2APIProtocol.Debug.DebugTestProcess DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new SC2APIProtocol.Debug.DebugTestProcess(); } public static SC2APIProtocol.Debug.DebugTestProcess getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DebugTestProcess parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public SC2APIProtocol.Debug.DebugTestProcess getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DebugSetScoreOrBuilder extends // @@protoc_insertion_point(interface_extends:SC2APIProtocol.DebugSetScore) com.google.protobuf.MessageOrBuilder { /** * optional float score = 1; * @return Whether the score field is set. */ boolean hasScore(); /** * optional float score = 1; * @return The score. */ float getScore(); } /** * Protobuf type {@code SC2APIProtocol.DebugSetScore} */ public static final class DebugSetScore extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:SC2APIProtocol.DebugSetScore) DebugSetScoreOrBuilder { private static final long serialVersionUID = 0L; // Use DebugSetScore.newBuilder() to construct. private DebugSetScore(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DebugSetScore() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DebugSetScore(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Debug.internal_static_SC2APIProtocol_DebugSetScore_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Debug.internal_static_SC2APIProtocol_DebugSetScore_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Debug.DebugSetScore.class, SC2APIProtocol.Debug.DebugSetScore.Builder.class); } private int bitField0_; public static final int SCORE_FIELD_NUMBER = 1; private float score_; /** * optional float score = 1; * @return Whether the score field is set. */ @java.lang.Override public boolean hasScore() { return ((bitField0_ & 0x00000001) != 0); } /** * optional float score = 1; * @return The score. */ @java.lang.Override public float getScore() { return score_; } 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 (((bitField0_ & 0x00000001) != 0)) { output.writeFloat(1, score_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeFloatSize(1, score_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof SC2APIProtocol.Debug.DebugSetScore)) { return super.equals(obj); } SC2APIProtocol.Debug.DebugSetScore other = (SC2APIProtocol.Debug.DebugSetScore) obj; if (hasScore() != other.hasScore()) return false; if (hasScore()) { if (java.lang.Float.floatToIntBits(getScore()) != java.lang.Float.floatToIntBits( other.getScore())) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasScore()) { hash = (37 * hash) + SCORE_FIELD_NUMBER; hash = (53 * hash) + java.lang.Float.floatToIntBits( getScore()); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static SC2APIProtocol.Debug.DebugSetScore parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Debug.DebugSetScore parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Debug.DebugSetScore parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Debug.DebugSetScore parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Debug.DebugSetScore parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Debug.DebugSetScore parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Debug.DebugSetScore parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Debug.DebugSetScore 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 SC2APIProtocol.Debug.DebugSetScore parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static SC2APIProtocol.Debug.DebugSetScore 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 SC2APIProtocol.Debug.DebugSetScore parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Debug.DebugSetScore 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(SC2APIProtocol.Debug.DebugSetScore 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; } /** * Protobuf type {@code SC2APIProtocol.DebugSetScore} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:SC2APIProtocol.DebugSetScore) SC2APIProtocol.Debug.DebugSetScoreOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Debug.internal_static_SC2APIProtocol_DebugSetScore_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Debug.internal_static_SC2APIProtocol_DebugSetScore_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Debug.DebugSetScore.class, SC2APIProtocol.Debug.DebugSetScore.Builder.class); } // Construct using SC2APIProtocol.Debug.DebugSetScore.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); score_ = 0F; bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return SC2APIProtocol.Debug.internal_static_SC2APIProtocol_DebugSetScore_descriptor; } @java.lang.Override public SC2APIProtocol.Debug.DebugSetScore getDefaultInstanceForType() { return SC2APIProtocol.Debug.DebugSetScore.getDefaultInstance(); } @java.lang.Override public SC2APIProtocol.Debug.DebugSetScore build() { SC2APIProtocol.Debug.DebugSetScore result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public SC2APIProtocol.Debug.DebugSetScore buildPartial() { SC2APIProtocol.Debug.DebugSetScore result = new SC2APIProtocol.Debug.DebugSetScore(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.score_ = score_; to_bitField0_ |= 0x00000001; } result.bitField0_ = to_bitField0_; 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 SC2APIProtocol.Debug.DebugSetScore) { return mergeFrom((SC2APIProtocol.Debug.DebugSetScore)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(SC2APIProtocol.Debug.DebugSetScore other) { if (other == SC2APIProtocol.Debug.DebugSetScore.getDefaultInstance()) return this; if (other.hasScore()) { setScore(other.getScore()); } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 13: { score_ = input.readFloat(); bitField0_ |= 0x00000001; break; } // case 13 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private float score_ ; /** * optional float score = 1; * @return Whether the score field is set. */ @java.lang.Override public boolean hasScore() { return ((bitField0_ & 0x00000001) != 0); } /** * optional float score = 1; * @return The score. */ @java.lang.Override public float getScore() { return score_; } /** * optional float score = 1; * @param value The score to set. * @return This builder for chaining. */ public Builder setScore(float value) { bitField0_ |= 0x00000001; score_ = value; onChanged(); return this; } /** * optional float score = 1; * @return This builder for chaining. */ public Builder clearScore() { bitField0_ = (bitField0_ & ~0x00000001); score_ = 0F; 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:SC2APIProtocol.DebugSetScore) } // @@protoc_insertion_point(class_scope:SC2APIProtocol.DebugSetScore) private static final SC2APIProtocol.Debug.DebugSetScore DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new SC2APIProtocol.Debug.DebugSetScore(); } public static SC2APIProtocol.Debug.DebugSetScore getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DebugSetScore parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public SC2APIProtocol.Debug.DebugSetScore getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DebugEndGameOrBuilder extends // @@protoc_insertion_point(interface_extends:SC2APIProtocol.DebugEndGame) com.google.protobuf.MessageOrBuilder { /** * optional .SC2APIProtocol.DebugEndGame.EndResult end_result = 1; * @return Whether the endResult field is set. */ boolean hasEndResult(); /** * optional .SC2APIProtocol.DebugEndGame.EndResult end_result = 1; * @return The endResult. */ SC2APIProtocol.Debug.DebugEndGame.EndResult getEndResult(); } /** * Protobuf type {@code SC2APIProtocol.DebugEndGame} */ public static final class DebugEndGame extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:SC2APIProtocol.DebugEndGame) DebugEndGameOrBuilder { private static final long serialVersionUID = 0L; // Use DebugEndGame.newBuilder() to construct. private DebugEndGame(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DebugEndGame() { endResult_ = 1; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DebugEndGame(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Debug.internal_static_SC2APIProtocol_DebugEndGame_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Debug.internal_static_SC2APIProtocol_DebugEndGame_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Debug.DebugEndGame.class, SC2APIProtocol.Debug.DebugEndGame.Builder.class); } /** * Protobuf enum {@code SC2APIProtocol.DebugEndGame.EndResult} */ public enum EndResult implements com.google.protobuf.ProtocolMessageEnum { /** *
       * Default if nothing is set. The current player admits defeat.
       * 
* * Surrender = 1; */ Surrender(1), /** * DeclareVictory = 2; */ DeclareVictory(2), ; /** *
       * Default if nothing is set. The current player admits defeat.
       * 
* * Surrender = 1; */ public static final int Surrender_VALUE = 1; /** * DeclareVictory = 2; */ public static final int DeclareVictory_VALUE = 2; public final int getNumber() { return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static EndResult valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static EndResult forNumber(int value) { switch (value) { case 1: return Surrender; case 2: return DeclareVictory; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< EndResult> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public EndResult findValueByNumber(int number) { return EndResult.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return SC2APIProtocol.Debug.DebugEndGame.getDescriptor().getEnumTypes().get(0); } private static final EndResult[] VALUES = values(); public static EndResult valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } return VALUES[desc.getIndex()]; } private final int value; private EndResult(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:SC2APIProtocol.DebugEndGame.EndResult) } private int bitField0_; public static final int END_RESULT_FIELD_NUMBER = 1; private int endResult_; /** * optional .SC2APIProtocol.DebugEndGame.EndResult end_result = 1; * @return Whether the endResult field is set. */ @java.lang.Override public boolean hasEndResult() { return ((bitField0_ & 0x00000001) != 0); } /** * optional .SC2APIProtocol.DebugEndGame.EndResult end_result = 1; * @return The endResult. */ @java.lang.Override public SC2APIProtocol.Debug.DebugEndGame.EndResult getEndResult() { @SuppressWarnings("deprecation") SC2APIProtocol.Debug.DebugEndGame.EndResult result = SC2APIProtocol.Debug.DebugEndGame.EndResult.valueOf(endResult_); return result == null ? SC2APIProtocol.Debug.DebugEndGame.EndResult.Surrender : result; } 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 (((bitField0_ & 0x00000001) != 0)) { output.writeEnum(1, endResult_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, endResult_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof SC2APIProtocol.Debug.DebugEndGame)) { return super.equals(obj); } SC2APIProtocol.Debug.DebugEndGame other = (SC2APIProtocol.Debug.DebugEndGame) obj; if (hasEndResult() != other.hasEndResult()) return false; if (hasEndResult()) { if (endResult_ != other.endResult_) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasEndResult()) { hash = (37 * hash) + END_RESULT_FIELD_NUMBER; hash = (53 * hash) + endResult_; } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static SC2APIProtocol.Debug.DebugEndGame parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Debug.DebugEndGame parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Debug.DebugEndGame parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Debug.DebugEndGame parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Debug.DebugEndGame parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Debug.DebugEndGame parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Debug.DebugEndGame parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Debug.DebugEndGame 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 SC2APIProtocol.Debug.DebugEndGame parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static SC2APIProtocol.Debug.DebugEndGame 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 SC2APIProtocol.Debug.DebugEndGame parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Debug.DebugEndGame 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(SC2APIProtocol.Debug.DebugEndGame 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; } /** * Protobuf type {@code SC2APIProtocol.DebugEndGame} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:SC2APIProtocol.DebugEndGame) SC2APIProtocol.Debug.DebugEndGameOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Debug.internal_static_SC2APIProtocol_DebugEndGame_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Debug.internal_static_SC2APIProtocol_DebugEndGame_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Debug.DebugEndGame.class, SC2APIProtocol.Debug.DebugEndGame.Builder.class); } // Construct using SC2APIProtocol.Debug.DebugEndGame.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); endResult_ = 1; bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return SC2APIProtocol.Debug.internal_static_SC2APIProtocol_DebugEndGame_descriptor; } @java.lang.Override public SC2APIProtocol.Debug.DebugEndGame getDefaultInstanceForType() { return SC2APIProtocol.Debug.DebugEndGame.getDefaultInstance(); } @java.lang.Override public SC2APIProtocol.Debug.DebugEndGame build() { SC2APIProtocol.Debug.DebugEndGame result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public SC2APIProtocol.Debug.DebugEndGame buildPartial() { SC2APIProtocol.Debug.DebugEndGame result = new SC2APIProtocol.Debug.DebugEndGame(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { to_bitField0_ |= 0x00000001; } result.endResult_ = endResult_; result.bitField0_ = to_bitField0_; 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 SC2APIProtocol.Debug.DebugEndGame) { return mergeFrom((SC2APIProtocol.Debug.DebugEndGame)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(SC2APIProtocol.Debug.DebugEndGame other) { if (other == SC2APIProtocol.Debug.DebugEndGame.getDefaultInstance()) return this; if (other.hasEndResult()) { setEndResult(other.getEndResult()); } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { int tmpRaw = input.readEnum(); SC2APIProtocol.Debug.DebugEndGame.EndResult tmpValue = SC2APIProtocol.Debug.DebugEndGame.EndResult.forNumber(tmpRaw); if (tmpValue == null) { mergeUnknownVarintField(1, tmpRaw); } else { endResult_ = tmpRaw; bitField0_ |= 0x00000001; } break; } // case 8 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private int endResult_ = 1; /** * optional .SC2APIProtocol.DebugEndGame.EndResult end_result = 1; * @return Whether the endResult field is set. */ @java.lang.Override public boolean hasEndResult() { return ((bitField0_ & 0x00000001) != 0); } /** * optional .SC2APIProtocol.DebugEndGame.EndResult end_result = 1; * @return The endResult. */ @java.lang.Override public SC2APIProtocol.Debug.DebugEndGame.EndResult getEndResult() { @SuppressWarnings("deprecation") SC2APIProtocol.Debug.DebugEndGame.EndResult result = SC2APIProtocol.Debug.DebugEndGame.EndResult.valueOf(endResult_); return result == null ? SC2APIProtocol.Debug.DebugEndGame.EndResult.Surrender : result; } /** * optional .SC2APIProtocol.DebugEndGame.EndResult end_result = 1; * @param value The endResult to set. * @return This builder for chaining. */ public Builder setEndResult(SC2APIProtocol.Debug.DebugEndGame.EndResult value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; endResult_ = value.getNumber(); onChanged(); return this; } /** * optional .SC2APIProtocol.DebugEndGame.EndResult end_result = 1; * @return This builder for chaining. */ public Builder clearEndResult() { bitField0_ = (bitField0_ & ~0x00000001); endResult_ = 1; 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:SC2APIProtocol.DebugEndGame) } // @@protoc_insertion_point(class_scope:SC2APIProtocol.DebugEndGame) private static final SC2APIProtocol.Debug.DebugEndGame DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new SC2APIProtocol.Debug.DebugEndGame(); } public static SC2APIProtocol.Debug.DebugEndGame getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DebugEndGame parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public SC2APIProtocol.Debug.DebugEndGame getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DebugSetUnitValueOrBuilder extends // @@protoc_insertion_point(interface_extends:SC2APIProtocol.DebugSetUnitValue) com.google.protobuf.MessageOrBuilder { /** * optional .SC2APIProtocol.DebugSetUnitValue.UnitValue unit_value = 1; * @return Whether the unitValue field is set. */ boolean hasUnitValue(); /** * optional .SC2APIProtocol.DebugSetUnitValue.UnitValue unit_value = 1; * @return The unitValue. */ SC2APIProtocol.Debug.DebugSetUnitValue.UnitValue getUnitValue(); /** * optional float value = 2; * @return Whether the value field is set. */ boolean hasValue(); /** * optional float value = 2; * @return The value. */ float getValue(); /** * optional uint64 unit_tag = 3; * @return Whether the unitTag field is set. */ boolean hasUnitTag(); /** * optional uint64 unit_tag = 3; * @return The unitTag. */ long getUnitTag(); } /** * Protobuf type {@code SC2APIProtocol.DebugSetUnitValue} */ public static final class DebugSetUnitValue extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:SC2APIProtocol.DebugSetUnitValue) DebugSetUnitValueOrBuilder { private static final long serialVersionUID = 0L; // Use DebugSetUnitValue.newBuilder() to construct. private DebugSetUnitValue(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DebugSetUnitValue() { unitValue_ = 1; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DebugSetUnitValue(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Debug.internal_static_SC2APIProtocol_DebugSetUnitValue_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Debug.internal_static_SC2APIProtocol_DebugSetUnitValue_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Debug.DebugSetUnitValue.class, SC2APIProtocol.Debug.DebugSetUnitValue.Builder.class); } /** * Protobuf enum {@code SC2APIProtocol.DebugSetUnitValue.UnitValue} */ public enum UnitValue implements com.google.protobuf.ProtocolMessageEnum { /** * Energy = 1; */ Energy(1), /** * Life = 2; */ Life(2), /** * Shields = 3; */ Shields(3), ; /** * Energy = 1; */ public static final int Energy_VALUE = 1; /** * Life = 2; */ public static final int Life_VALUE = 2; /** * Shields = 3; */ public static final int Shields_VALUE = 3; public final int getNumber() { return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static UnitValue valueOf(int value) { return forNumber(value); } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. */ public static UnitValue forNumber(int value) { switch (value) { case 1: return Energy; case 2: return Life; case 3: return Shields; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< UnitValue> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public UnitValue findValueByNumber(int number) { return UnitValue.forNumber(number); } }; public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor() { return getDescriptor().getValues().get(ordinal()); } public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType() { return getDescriptor(); } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { return SC2APIProtocol.Debug.DebugSetUnitValue.getDescriptor().getEnumTypes().get(0); } private static final UnitValue[] VALUES = values(); public static UnitValue valueOf( com.google.protobuf.Descriptors.EnumValueDescriptor desc) { if (desc.getType() != getDescriptor()) { throw new java.lang.IllegalArgumentException( "EnumValueDescriptor is not for this type."); } return VALUES[desc.getIndex()]; } private final int value; private UnitValue(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:SC2APIProtocol.DebugSetUnitValue.UnitValue) } private int bitField0_; public static final int UNIT_VALUE_FIELD_NUMBER = 1; private int unitValue_; /** * optional .SC2APIProtocol.DebugSetUnitValue.UnitValue unit_value = 1; * @return Whether the unitValue field is set. */ @java.lang.Override public boolean hasUnitValue() { return ((bitField0_ & 0x00000001) != 0); } /** * optional .SC2APIProtocol.DebugSetUnitValue.UnitValue unit_value = 1; * @return The unitValue. */ @java.lang.Override public SC2APIProtocol.Debug.DebugSetUnitValue.UnitValue getUnitValue() { @SuppressWarnings("deprecation") SC2APIProtocol.Debug.DebugSetUnitValue.UnitValue result = SC2APIProtocol.Debug.DebugSetUnitValue.UnitValue.valueOf(unitValue_); return result == null ? SC2APIProtocol.Debug.DebugSetUnitValue.UnitValue.Energy : result; } public static final int VALUE_FIELD_NUMBER = 2; private float value_; /** * optional float value = 2; * @return Whether the value field is set. */ @java.lang.Override public boolean hasValue() { return ((bitField0_ & 0x00000002) != 0); } /** * optional float value = 2; * @return The value. */ @java.lang.Override public float getValue() { return value_; } public static final int UNIT_TAG_FIELD_NUMBER = 3; private long unitTag_; /** * optional uint64 unit_tag = 3; * @return Whether the unitTag field is set. */ @java.lang.Override public boolean hasUnitTag() { return ((bitField0_ & 0x00000004) != 0); } /** * optional uint64 unit_tag = 3; * @return The unitTag. */ @java.lang.Override public long getUnitTag() { return unitTag_; } 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 (((bitField0_ & 0x00000001) != 0)) { output.writeEnum(1, unitValue_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeFloat(2, value_); } if (((bitField0_ & 0x00000004) != 0)) { output.writeUInt64(3, unitTag_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, unitValue_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeFloatSize(2, value_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(3, unitTag_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof SC2APIProtocol.Debug.DebugSetUnitValue)) { return super.equals(obj); } SC2APIProtocol.Debug.DebugSetUnitValue other = (SC2APIProtocol.Debug.DebugSetUnitValue) obj; if (hasUnitValue() != other.hasUnitValue()) return false; if (hasUnitValue()) { if (unitValue_ != other.unitValue_) return false; } if (hasValue() != other.hasValue()) return false; if (hasValue()) { if (java.lang.Float.floatToIntBits(getValue()) != java.lang.Float.floatToIntBits( other.getValue())) return false; } if (hasUnitTag() != other.hasUnitTag()) return false; if (hasUnitTag()) { if (getUnitTag() != other.getUnitTag()) return false; } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasUnitValue()) { hash = (37 * hash) + UNIT_VALUE_FIELD_NUMBER; hash = (53 * hash) + unitValue_; } if (hasValue()) { hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + java.lang.Float.floatToIntBits( getValue()); } if (hasUnitTag()) { hash = (37 * hash) + UNIT_TAG_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getUnitTag()); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static SC2APIProtocol.Debug.DebugSetUnitValue parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Debug.DebugSetUnitValue parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Debug.DebugSetUnitValue parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Debug.DebugSetUnitValue parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Debug.DebugSetUnitValue parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Debug.DebugSetUnitValue parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Debug.DebugSetUnitValue parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Debug.DebugSetUnitValue 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 SC2APIProtocol.Debug.DebugSetUnitValue parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static SC2APIProtocol.Debug.DebugSetUnitValue 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 SC2APIProtocol.Debug.DebugSetUnitValue parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Debug.DebugSetUnitValue 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(SC2APIProtocol.Debug.DebugSetUnitValue 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; } /** * Protobuf type {@code SC2APIProtocol.DebugSetUnitValue} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:SC2APIProtocol.DebugSetUnitValue) SC2APIProtocol.Debug.DebugSetUnitValueOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Debug.internal_static_SC2APIProtocol_DebugSetUnitValue_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Debug.internal_static_SC2APIProtocol_DebugSetUnitValue_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Debug.DebugSetUnitValue.class, SC2APIProtocol.Debug.DebugSetUnitValue.Builder.class); } // Construct using SC2APIProtocol.Debug.DebugSetUnitValue.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); unitValue_ = 1; bitField0_ = (bitField0_ & ~0x00000001); value_ = 0F; bitField0_ = (bitField0_ & ~0x00000002); unitTag_ = 0L; bitField0_ = (bitField0_ & ~0x00000004); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return SC2APIProtocol.Debug.internal_static_SC2APIProtocol_DebugSetUnitValue_descriptor; } @java.lang.Override public SC2APIProtocol.Debug.DebugSetUnitValue getDefaultInstanceForType() { return SC2APIProtocol.Debug.DebugSetUnitValue.getDefaultInstance(); } @java.lang.Override public SC2APIProtocol.Debug.DebugSetUnitValue build() { SC2APIProtocol.Debug.DebugSetUnitValue result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public SC2APIProtocol.Debug.DebugSetUnitValue buildPartial() { SC2APIProtocol.Debug.DebugSetUnitValue result = new SC2APIProtocol.Debug.DebugSetUnitValue(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { to_bitField0_ |= 0x00000001; } result.unitValue_ = unitValue_; if (((from_bitField0_ & 0x00000002) != 0)) { result.value_ = value_; to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { result.unitTag_ = unitTag_; to_bitField0_ |= 0x00000004; } result.bitField0_ = to_bitField0_; 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 SC2APIProtocol.Debug.DebugSetUnitValue) { return mergeFrom((SC2APIProtocol.Debug.DebugSetUnitValue)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(SC2APIProtocol.Debug.DebugSetUnitValue other) { if (other == SC2APIProtocol.Debug.DebugSetUnitValue.getDefaultInstance()) return this; if (other.hasUnitValue()) { setUnitValue(other.getUnitValue()); } if (other.hasValue()) { setValue(other.getValue()); } if (other.hasUnitTag()) { setUnitTag(other.getUnitTag()); } this.mergeUnknownFields(other.getUnknownFields()); 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 { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { int tmpRaw = input.readEnum(); SC2APIProtocol.Debug.DebugSetUnitValue.UnitValue tmpValue = SC2APIProtocol.Debug.DebugSetUnitValue.UnitValue.forNumber(tmpRaw); if (tmpValue == null) { mergeUnknownVarintField(1, tmpRaw); } else { unitValue_ = tmpRaw; bitField0_ |= 0x00000001; } break; } // case 8 case 21: { value_ = input.readFloat(); bitField0_ |= 0x00000002; break; } // case 21 case 24: { unitTag_ = input.readUInt64(); bitField0_ |= 0x00000004; break; } // case 24 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private int unitValue_ = 1; /** * optional .SC2APIProtocol.DebugSetUnitValue.UnitValue unit_value = 1; * @return Whether the unitValue field is set. */ @java.lang.Override public boolean hasUnitValue() { return ((bitField0_ & 0x00000001) != 0); } /** * optional .SC2APIProtocol.DebugSetUnitValue.UnitValue unit_value = 1; * @return The unitValue. */ @java.lang.Override public SC2APIProtocol.Debug.DebugSetUnitValue.UnitValue getUnitValue() { @SuppressWarnings("deprecation") SC2APIProtocol.Debug.DebugSetUnitValue.UnitValue result = SC2APIProtocol.Debug.DebugSetUnitValue.UnitValue.valueOf(unitValue_); return result == null ? SC2APIProtocol.Debug.DebugSetUnitValue.UnitValue.Energy : result; } /** * optional .SC2APIProtocol.DebugSetUnitValue.UnitValue unit_value = 1; * @param value The unitValue to set. * @return This builder for chaining. */ public Builder setUnitValue(SC2APIProtocol.Debug.DebugSetUnitValue.UnitValue value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; unitValue_ = value.getNumber(); onChanged(); return this; } /** * optional .SC2APIProtocol.DebugSetUnitValue.UnitValue unit_value = 1; * @return This builder for chaining. */ public Builder clearUnitValue() { bitField0_ = (bitField0_ & ~0x00000001); unitValue_ = 1; onChanged(); return this; } private float value_ ; /** * optional float value = 2; * @return Whether the value field is set. */ @java.lang.Override public boolean hasValue() { return ((bitField0_ & 0x00000002) != 0); } /** * optional float value = 2; * @return The value. */ @java.lang.Override public float getValue() { return value_; } /** * optional float value = 2; * @param value The value to set. * @return This builder for chaining. */ public Builder setValue(float value) { bitField0_ |= 0x00000002; value_ = value; onChanged(); return this; } /** * optional float value = 2; * @return This builder for chaining. */ public Builder clearValue() { bitField0_ = (bitField0_ & ~0x00000002); value_ = 0F; onChanged(); return this; } private long unitTag_ ; /** * optional uint64 unit_tag = 3; * @return Whether the unitTag field is set. */ @java.lang.Override public boolean hasUnitTag() { return ((bitField0_ & 0x00000004) != 0); } /** * optional uint64 unit_tag = 3; * @return The unitTag. */ @java.lang.Override public long getUnitTag() { return unitTag_; } /** * optional uint64 unit_tag = 3; * @param value The unitTag to set. * @return This builder for chaining. */ public Builder setUnitTag(long value) { bitField0_ |= 0x00000004; unitTag_ = value; onChanged(); return this; } /** * optional uint64 unit_tag = 3; * @return This builder for chaining. */ public Builder clearUnitTag() { bitField0_ = (bitField0_ & ~0x00000004); unitTag_ = 0L; 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:SC2APIProtocol.DebugSetUnitValue) } // @@protoc_insertion_point(class_scope:SC2APIProtocol.DebugSetUnitValue) private static final SC2APIProtocol.Debug.DebugSetUnitValue DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new SC2APIProtocol.Debug.DebugSetUnitValue(); } public static SC2APIProtocol.Debug.DebugSetUnitValue getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DebugSetUnitValue parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { Builder builder = newBuilder(); try { builder.mergeFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(builder.buildPartial()); } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException(e) .setUnfinishedMessage(builder.buildPartial()); } return builder.buildPartial(); } }; public static com.google.protobuf.Parser parser() { return PARSER; } @java.lang.Override public com.google.protobuf.Parser getParserForType() { return PARSER; } @java.lang.Override public SC2APIProtocol.Debug.DebugSetUnitValue getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_SC2APIProtocol_DebugCommand_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_SC2APIProtocol_DebugCommand_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_SC2APIProtocol_DebugDraw_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_SC2APIProtocol_DebugDraw_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_SC2APIProtocol_Line_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_SC2APIProtocol_Line_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_SC2APIProtocol_Color_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_SC2APIProtocol_Color_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_SC2APIProtocol_DebugText_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_SC2APIProtocol_DebugText_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_SC2APIProtocol_DebugLine_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_SC2APIProtocol_DebugLine_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_SC2APIProtocol_DebugBox_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_SC2APIProtocol_DebugBox_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_SC2APIProtocol_DebugSphere_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_SC2APIProtocol_DebugSphere_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_SC2APIProtocol_DebugCreateUnit_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_SC2APIProtocol_DebugCreateUnit_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_SC2APIProtocol_DebugKillUnit_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_SC2APIProtocol_DebugKillUnit_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_SC2APIProtocol_DebugTestProcess_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_SC2APIProtocol_DebugTestProcess_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_SC2APIProtocol_DebugSetScore_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_SC2APIProtocol_DebugSetScore_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_SC2APIProtocol_DebugEndGame_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_SC2APIProtocol_DebugEndGame_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_SC2APIProtocol_DebugSetUnitValue_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_SC2APIProtocol_DebugSetUnitValue_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\034s2clientprotocol/debug.proto\022\016SC2APIPr" + "otocol\032\035s2clientprotocol/common.proto\"\273\003" + "\n\014DebugCommand\022)\n\004draw\030\001 \001(\0132\031.SC2APIPro" + "tocol.DebugDrawH\000\0224\n\ngame_state\030\002 \001(\0162\036." + "SC2APIProtocol.DebugGameStateH\000\0226\n\013creat" + "e_unit\030\003 \001(\0132\037.SC2APIProtocol.DebugCreat" + "eUnitH\000\0222\n\tkill_unit\030\004 \001(\0132\035.SC2APIProto" + "col.DebugKillUnitH\000\0228\n\014test_process\030\005 \001(" + "\0132 .SC2APIProtocol.DebugTestProcessH\000\022.\n" + "\005score\030\006 \001(\0132\035.SC2APIProtocol.DebugSetSc" + "oreH\000\0220\n\010end_game\030\007 \001(\0132\034.SC2APIProtocol" + ".DebugEndGameH\000\0227\n\nunit_value\030\010 \001(\0132!.SC" + "2APIProtocol.DebugSetUnitValueH\000B\t\n\007comm" + "and\"\265\001\n\tDebugDraw\022\'\n\004text\030\001 \003(\0132\031.SC2API" + "Protocol.DebugText\022(\n\005lines\030\002 \003(\0132\031.SC2A" + "PIProtocol.DebugLine\022\'\n\005boxes\030\003 \003(\0132\030.SC" + "2APIProtocol.DebugBox\022,\n\007spheres\030\004 \003(\0132\033" + ".SC2APIProtocol.DebugSphere\"L\n\004Line\022!\n\002p" + "0\030\001 \001(\0132\025.SC2APIProtocol.Point\022!\n\002p1\030\002 \001" + "(\0132\025.SC2APIProtocol.Point\"(\n\005Color\022\t\n\001r\030" + "\001 \001(\r\022\t\n\001g\030\002 \001(\r\022\t\n\001b\030\003 \001(\r\"\243\001\n\tDebugTex" + "t\022$\n\005color\030\001 \001(\0132\025.SC2APIProtocol.Color\022" + "\014\n\004text\030\002 \001(\t\022*\n\013virtual_pos\030\003 \001(\0132\025.SC2" + "APIProtocol.Point\022(\n\tworld_pos\030\004 \001(\0132\025.S" + "C2APIProtocol.Point\022\014\n\004size\030\005 \001(\r\"U\n\tDeb" + "ugLine\022$\n\005color\030\001 \001(\0132\025.SC2APIProtocol.C" + "olor\022\"\n\004line\030\002 \001(\0132\024.SC2APIProtocol.Line" + "\"x\n\010DebugBox\022$\n\005color\030\001 \001(\0132\025.SC2APIProt" + "ocol.Color\022\"\n\003min\030\002 \001(\0132\025.SC2APIProtocol" + ".Point\022\"\n\003max\030\003 \001(\0132\025.SC2APIProtocol.Poi" + "nt\"`\n\013DebugSphere\022$\n\005color\030\001 \001(\0132\025.SC2AP" + "IProtocol.Color\022 \n\001p\030\002 \001(\0132\025.SC2APIProto" + "col.Point\022\t\n\001r\030\003 \001(\002\"k\n\017DebugCreateUnit\022" + "\021\n\tunit_type\030\001 \001(\r\022\r\n\005owner\030\002 \001(\005\022$\n\003pos" + "\030\003 \001(\0132\027.SC2APIProtocol.Point2D\022\020\n\010quant" + "ity\030\004 \001(\r\"\034\n\rDebugKillUnit\022\013\n\003tag\030\001 \003(\004\"" + "\200\001\n\020DebugTestProcess\0223\n\004test\030\001 \001(\0162%.SC2" + "APIProtocol.DebugTestProcess.Test\022\020\n\010del" + "ay_ms\030\002 \001(\005\"%\n\004Test\022\010\n\004hang\020\001\022\t\n\005crash\020\002" + "\022\010\n\004exit\020\003\"\036\n\rDebugSetScore\022\r\n\005score\030\001 \001" + "(\002\"z\n\014DebugEndGame\022:\n\nend_result\030\001 \001(\0162&" + ".SC2APIProtocol.DebugEndGame.EndResult\"." + "\n\tEndResult\022\r\n\tSurrender\020\001\022\022\n\016DeclareVic" + "tory\020\002\"\245\001\n\021DebugSetUnitValue\022?\n\nunit_val" + "ue\030\001 \001(\0162+.SC2APIProtocol.DebugSetUnitVa" + "lue.UnitValue\022\r\n\005value\030\002 \001(\002\022\020\n\010unit_tag" + "\030\003 \001(\004\".\n\tUnitValue\022\n\n\006Energy\020\001\022\010\n\004Life\020" + "\002\022\013\n\007Shields\020\003*\262\001\n\016DebugGameState\022\014\n\010sho" + "w_map\020\001\022\021\n\rcontrol_enemy\020\002\022\010\n\004food\020\003\022\010\n\004" + "free\020\004\022\021\n\rall_resources\020\005\022\007\n\003god\020\006\022\014\n\010mi" + "nerals\020\007\022\007\n\003gas\020\010\022\014\n\010cooldown\020\t\022\r\n\ttech_" + "tree\020\n\022\013\n\007upgrade\020\013\022\016\n\nfast_build\020\014" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { SC2APIProtocol.Common.getDescriptor(), }); internal_static_SC2APIProtocol_DebugCommand_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_SC2APIProtocol_DebugCommand_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_SC2APIProtocol_DebugCommand_descriptor, new java.lang.String[] { "Draw", "GameState", "CreateUnit", "KillUnit", "TestProcess", "Score", "EndGame", "UnitValue", "Command", }); internal_static_SC2APIProtocol_DebugDraw_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_SC2APIProtocol_DebugDraw_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_SC2APIProtocol_DebugDraw_descriptor, new java.lang.String[] { "Text", "Lines", "Boxes", "Spheres", }); internal_static_SC2APIProtocol_Line_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_SC2APIProtocol_Line_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_SC2APIProtocol_Line_descriptor, new java.lang.String[] { "P0", "P1", }); internal_static_SC2APIProtocol_Color_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_SC2APIProtocol_Color_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_SC2APIProtocol_Color_descriptor, new java.lang.String[] { "R", "G", "B", }); internal_static_SC2APIProtocol_DebugText_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_SC2APIProtocol_DebugText_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_SC2APIProtocol_DebugText_descriptor, new java.lang.String[] { "Color", "Text", "VirtualPos", "WorldPos", "Size", }); internal_static_SC2APIProtocol_DebugLine_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_SC2APIProtocol_DebugLine_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_SC2APIProtocol_DebugLine_descriptor, new java.lang.String[] { "Color", "Line", }); internal_static_SC2APIProtocol_DebugBox_descriptor = getDescriptor().getMessageTypes().get(6); internal_static_SC2APIProtocol_DebugBox_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_SC2APIProtocol_DebugBox_descriptor, new java.lang.String[] { "Color", "Min", "Max", }); internal_static_SC2APIProtocol_DebugSphere_descriptor = getDescriptor().getMessageTypes().get(7); internal_static_SC2APIProtocol_DebugSphere_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_SC2APIProtocol_DebugSphere_descriptor, new java.lang.String[] { "Color", "P", "R", }); internal_static_SC2APIProtocol_DebugCreateUnit_descriptor = getDescriptor().getMessageTypes().get(8); internal_static_SC2APIProtocol_DebugCreateUnit_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_SC2APIProtocol_DebugCreateUnit_descriptor, new java.lang.String[] { "UnitType", "Owner", "Pos", "Quantity", }); internal_static_SC2APIProtocol_DebugKillUnit_descriptor = getDescriptor().getMessageTypes().get(9); internal_static_SC2APIProtocol_DebugKillUnit_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_SC2APIProtocol_DebugKillUnit_descriptor, new java.lang.String[] { "Tag", }); internal_static_SC2APIProtocol_DebugTestProcess_descriptor = getDescriptor().getMessageTypes().get(10); internal_static_SC2APIProtocol_DebugTestProcess_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_SC2APIProtocol_DebugTestProcess_descriptor, new java.lang.String[] { "Test", "DelayMs", }); internal_static_SC2APIProtocol_DebugSetScore_descriptor = getDescriptor().getMessageTypes().get(11); internal_static_SC2APIProtocol_DebugSetScore_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_SC2APIProtocol_DebugSetScore_descriptor, new java.lang.String[] { "Score", }); internal_static_SC2APIProtocol_DebugEndGame_descriptor = getDescriptor().getMessageTypes().get(12); internal_static_SC2APIProtocol_DebugEndGame_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_SC2APIProtocol_DebugEndGame_descriptor, new java.lang.String[] { "EndResult", }); internal_static_SC2APIProtocol_DebugSetUnitValue_descriptor = getDescriptor().getMessageTypes().get(13); internal_static_SC2APIProtocol_DebugSetUnitValue_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_SC2APIProtocol_DebugSetUnitValue_descriptor, new java.lang.String[] { "UnitValue", "Value", "UnitTag", }); SC2APIProtocol.Common.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy