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

SC2APIProtocol.Sc2Api Maven / Gradle / Ivy

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

package SC2APIProtocol;

public final class Sc2Api {
  private Sc2Api() {}
  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.Status}
   */
  public enum Status
      implements com.google.protobuf.ProtocolMessageEnum {
    /**
     * 
     * Game has been launch and is not yet doing anything.
     * 
* * launched = 1; */ launched(1), /** *
     * Create game has been called, and the host is awaiting players.
     * 
* * init_game = 2; */ init_game(2), /** *
     * In a single or multiplayer game.
     * 
* * in_game = 3; */ in_game(3), /** *
     * In a replay.
     * 
* * in_replay = 4; */ in_replay(4), /** *
     * Game has ended, can still request game info, but ready for a new game.
     * 
* * ended = 5; */ ended(5), /** *
     * Application is shutting down.
     * 
* * quit = 6; */ quit(6), /** *
     * Should not happen, but indicates an error if it occurs.
     * 
* * unknown = 99; */ unknown(99), ; /** *
     * Game has been launch and is not yet doing anything.
     * 
* * launched = 1; */ public static final int launched_VALUE = 1; /** *
     * Create game has been called, and the host is awaiting players.
     * 
* * init_game = 2; */ public static final int init_game_VALUE = 2; /** *
     * In a single or multiplayer game.
     * 
* * in_game = 3; */ public static final int in_game_VALUE = 3; /** *
     * In a replay.
     * 
* * in_replay = 4; */ public static final int in_replay_VALUE = 4; /** *
     * Game has ended, can still request game info, but ready for a new game.
     * 
* * ended = 5; */ public static final int ended_VALUE = 5; /** *
     * Application is shutting down.
     * 
* * quit = 6; */ public static final int quit_VALUE = 6; /** *
     * Should not happen, but indicates an error if it occurs.
     * 
* * unknown = 99; */ public static final int unknown_VALUE = 99; 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 Status 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 Status forNumber(int value) { switch (value) { case 1: return launched; case 2: return init_game; case 3: return in_game; case 4: return in_replay; case 5: return ended; case 6: return quit; case 99: return unknown; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Status> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Status findValueByNumber(int number) { return Status.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.Sc2Api.getDescriptor().getEnumTypes().get(0); } private static final Status[] VALUES = values(); public static Status 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 Status(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:SC2APIProtocol.Status) } /** * Protobuf enum {@code SC2APIProtocol.Difficulty} */ public enum Difficulty implements com.google.protobuf.ProtocolMessageEnum { /** * VeryEasy = 1; */ VeryEasy(1), /** * Easy = 2; */ Easy(2), /** * Medium = 3; */ Medium(3), /** * MediumHard = 4; */ MediumHard(4), /** * Hard = 5; */ Hard(5), /** * Harder = 6; */ Harder(6), /** * VeryHard = 7; */ VeryHard(7), /** * CheatVision = 8; */ CheatVision(8), /** * CheatMoney = 9; */ CheatMoney(9), /** * CheatInsane = 10; */ CheatInsane(10), ; /** * VeryEasy = 1; */ public static final int VeryEasy_VALUE = 1; /** * Easy = 2; */ public static final int Easy_VALUE = 2; /** * Medium = 3; */ public static final int Medium_VALUE = 3; /** * MediumHard = 4; */ public static final int MediumHard_VALUE = 4; /** * Hard = 5; */ public static final int Hard_VALUE = 5; /** * Harder = 6; */ public static final int Harder_VALUE = 6; /** * VeryHard = 7; */ public static final int VeryHard_VALUE = 7; /** * CheatVision = 8; */ public static final int CheatVision_VALUE = 8; /** * CheatMoney = 9; */ public static final int CheatMoney_VALUE = 9; /** * CheatInsane = 10; */ public static final int CheatInsane_VALUE = 10; 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 Difficulty 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 Difficulty forNumber(int value) { switch (value) { case 1: return VeryEasy; case 2: return Easy; case 3: return Medium; case 4: return MediumHard; case 5: return Hard; case 6: return Harder; case 7: return VeryHard; case 8: return CheatVision; case 9: return CheatMoney; case 10: return CheatInsane; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Difficulty> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Difficulty findValueByNumber(int number) { return Difficulty.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.Sc2Api.getDescriptor().getEnumTypes().get(1); } private static final Difficulty[] VALUES = values(); public static Difficulty 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 Difficulty(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:SC2APIProtocol.Difficulty) } /** * Protobuf enum {@code SC2APIProtocol.PlayerType} */ public enum PlayerType implements com.google.protobuf.ProtocolMessageEnum { /** * Participant = 1; */ Participant(1), /** * Computer = 2; */ Computer(2), /** * Observer = 3; */ Observer(3), ; /** * Participant = 1; */ public static final int Participant_VALUE = 1; /** * Computer = 2; */ public static final int Computer_VALUE = 2; /** * Observer = 3; */ public static final int Observer_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 PlayerType 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 PlayerType forNumber(int value) { switch (value) { case 1: return Participant; case 2: return Computer; case 3: return Observer; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< PlayerType> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public PlayerType findValueByNumber(int number) { return PlayerType.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.Sc2Api.getDescriptor().getEnumTypes().get(2); } private static final PlayerType[] VALUES = values(); public static PlayerType 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 PlayerType(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:SC2APIProtocol.PlayerType) } /** * Protobuf enum {@code SC2APIProtocol.AIBuild} */ public enum AIBuild implements com.google.protobuf.ProtocolMessageEnum { /** * RandomBuild = 1; */ RandomBuild(1), /** * Rush = 2; */ Rush(2), /** * Timing = 3; */ Timing(3), /** * Power = 4; */ Power(4), /** * Macro = 5; */ Macro(5), /** * Air = 6; */ Air(6), ; /** * RandomBuild = 1; */ public static final int RandomBuild_VALUE = 1; /** * Rush = 2; */ public static final int Rush_VALUE = 2; /** * Timing = 3; */ public static final int Timing_VALUE = 3; /** * Power = 4; */ public static final int Power_VALUE = 4; /** * Macro = 5; */ public static final int Macro_VALUE = 5; /** * Air = 6; */ public static final int Air_VALUE = 6; 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 AIBuild 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 AIBuild forNumber(int value) { switch (value) { case 1: return RandomBuild; case 2: return Rush; case 3: return Timing; case 4: return Power; case 5: return Macro; case 6: return Air; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< AIBuild> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public AIBuild findValueByNumber(int number) { return AIBuild.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.Sc2Api.getDescriptor().getEnumTypes().get(3); } private static final AIBuild[] VALUES = values(); public static AIBuild 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 AIBuild(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:SC2APIProtocol.AIBuild) } /** * Protobuf enum {@code SC2APIProtocol.Alert} */ public enum Alert implements com.google.protobuf.ProtocolMessageEnum { /** * AlertError = 3; */ AlertError(3), /** * AddOnComplete = 4; */ AddOnComplete(4), /** * BuildingComplete = 5; */ BuildingComplete(5), /** * BuildingUnderAttack = 6; */ BuildingUnderAttack(6), /** * LarvaHatched = 7; */ LarvaHatched(7), /** * MergeComplete = 8; */ MergeComplete(8), /** * MineralsExhausted = 9; */ MineralsExhausted(9), /** * MorphComplete = 10; */ MorphComplete(10), /** * MothershipComplete = 11; */ MothershipComplete(11), /** * MULEExpired = 12; */ MULEExpired(12), /** * NuclearLaunchDetected = 1; */ NuclearLaunchDetected(1), /** * NukeComplete = 13; */ NukeComplete(13), /** * NydusWormDetected = 2; */ NydusWormDetected(2), /** * ResearchComplete = 14; */ ResearchComplete(14), /** * TrainError = 15; */ TrainError(15), /** * TrainUnitComplete = 16; */ TrainUnitComplete(16), /** * TrainWorkerComplete = 17; */ TrainWorkerComplete(17), /** * TransformationComplete = 18; */ TransformationComplete(18), /** * UnitUnderAttack = 19; */ UnitUnderAttack(19), /** * UpgradeComplete = 20; */ UpgradeComplete(20), /** * VespeneExhausted = 21; */ VespeneExhausted(21), /** * WarpInComplete = 22; */ WarpInComplete(22), ; /** * AlertError = 3; */ public static final int AlertError_VALUE = 3; /** * AddOnComplete = 4; */ public static final int AddOnComplete_VALUE = 4; /** * BuildingComplete = 5; */ public static final int BuildingComplete_VALUE = 5; /** * BuildingUnderAttack = 6; */ public static final int BuildingUnderAttack_VALUE = 6; /** * LarvaHatched = 7; */ public static final int LarvaHatched_VALUE = 7; /** * MergeComplete = 8; */ public static final int MergeComplete_VALUE = 8; /** * MineralsExhausted = 9; */ public static final int MineralsExhausted_VALUE = 9; /** * MorphComplete = 10; */ public static final int MorphComplete_VALUE = 10; /** * MothershipComplete = 11; */ public static final int MothershipComplete_VALUE = 11; /** * MULEExpired = 12; */ public static final int MULEExpired_VALUE = 12; /** * NuclearLaunchDetected = 1; */ public static final int NuclearLaunchDetected_VALUE = 1; /** * NukeComplete = 13; */ public static final int NukeComplete_VALUE = 13; /** * NydusWormDetected = 2; */ public static final int NydusWormDetected_VALUE = 2; /** * ResearchComplete = 14; */ public static final int ResearchComplete_VALUE = 14; /** * TrainError = 15; */ public static final int TrainError_VALUE = 15; /** * TrainUnitComplete = 16; */ public static final int TrainUnitComplete_VALUE = 16; /** * TrainWorkerComplete = 17; */ public static final int TrainWorkerComplete_VALUE = 17; /** * TransformationComplete = 18; */ public static final int TransformationComplete_VALUE = 18; /** * UnitUnderAttack = 19; */ public static final int UnitUnderAttack_VALUE = 19; /** * UpgradeComplete = 20; */ public static final int UpgradeComplete_VALUE = 20; /** * VespeneExhausted = 21; */ public static final int VespeneExhausted_VALUE = 21; /** * WarpInComplete = 22; */ public static final int WarpInComplete_VALUE = 22; 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 Alert 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 Alert forNumber(int value) { switch (value) { case 3: return AlertError; case 4: return AddOnComplete; case 5: return BuildingComplete; case 6: return BuildingUnderAttack; case 7: return LarvaHatched; case 8: return MergeComplete; case 9: return MineralsExhausted; case 10: return MorphComplete; case 11: return MothershipComplete; case 12: return MULEExpired; case 1: return NuclearLaunchDetected; case 13: return NukeComplete; case 2: return NydusWormDetected; case 14: return ResearchComplete; case 15: return TrainError; case 16: return TrainUnitComplete; case 17: return TrainWorkerComplete; case 18: return TransformationComplete; case 19: return UnitUnderAttack; case 20: return UpgradeComplete; case 21: return VespeneExhausted; case 22: return WarpInComplete; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Alert> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Alert findValueByNumber(int number) { return Alert.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.Sc2Api.getDescriptor().getEnumTypes().get(4); } private static final Alert[] VALUES = values(); public static Alert 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 Alert(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:SC2APIProtocol.Alert) } /** * Protobuf enum {@code SC2APIProtocol.Result} */ public enum Result implements com.google.protobuf.ProtocolMessageEnum { /** * Victory = 1; */ Victory(1), /** * Defeat = 2; */ Defeat(2), /** * Tie = 3; */ Tie(3), /** * Undecided = 4; */ Undecided(4), ; /** * Victory = 1; */ public static final int Victory_VALUE = 1; /** * Defeat = 2; */ public static final int Defeat_VALUE = 2; /** * Tie = 3; */ public static final int Tie_VALUE = 3; /** * Undecided = 4; */ public static final int Undecided_VALUE = 4; 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 Result 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 Result forNumber(int value) { switch (value) { case 1: return Victory; case 2: return Defeat; case 3: return Tie; case 4: return Undecided; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Result> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Result findValueByNumber(int number) { return Result.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.Sc2Api.getDescriptor().getEnumTypes().get(5); } private static final Result[] VALUES = values(); public static Result 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 Result(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:SC2APIProtocol.Result) } public interface RequestOrBuilder extends // @@protoc_insertion_point(interface_extends:SC2APIProtocol.Request) com.google.protobuf.MessageOrBuilder { /** *
     * Game Setup
     * 
* * .SC2APIProtocol.RequestCreateGame create_game = 1; * @return Whether the createGame field is set. */ boolean hasCreateGame(); /** *
     * Game Setup
     * 
* * .SC2APIProtocol.RequestCreateGame create_game = 1; * @return The createGame. */ SC2APIProtocol.Sc2Api.RequestCreateGame getCreateGame(); /** *
     * Game Setup
     * 
* * .SC2APIProtocol.RequestCreateGame create_game = 1; */ SC2APIProtocol.Sc2Api.RequestCreateGameOrBuilder getCreateGameOrBuilder(); /** *
     * Send to host and all clients for game to begin.
     * 
* * .SC2APIProtocol.RequestJoinGame join_game = 2; * @return Whether the joinGame field is set. */ boolean hasJoinGame(); /** *
     * Send to host and all clients for game to begin.
     * 
* * .SC2APIProtocol.RequestJoinGame join_game = 2; * @return The joinGame. */ SC2APIProtocol.Sc2Api.RequestJoinGame getJoinGame(); /** *
     * Send to host and all clients for game to begin.
     * 
* * .SC2APIProtocol.RequestJoinGame join_game = 2; */ SC2APIProtocol.Sc2Api.RequestJoinGameOrBuilder getJoinGameOrBuilder(); /** *
     * Single player only. Reinitializes the game with the same player setup.
     * 
* * .SC2APIProtocol.RequestRestartGame restart_game = 3; * @return Whether the restartGame field is set. */ boolean hasRestartGame(); /** *
     * Single player only. Reinitializes the game with the same player setup.
     * 
* * .SC2APIProtocol.RequestRestartGame restart_game = 3; * @return The restartGame. */ SC2APIProtocol.Sc2Api.RequestRestartGame getRestartGame(); /** *
     * Single player only. Reinitializes the game with the same player setup.
     * 
* * .SC2APIProtocol.RequestRestartGame restart_game = 3; */ SC2APIProtocol.Sc2Api.RequestRestartGameOrBuilder getRestartGameOrBuilder(); /** *
     * Start playing a replay.
     * 
* * .SC2APIProtocol.RequestStartReplay start_replay = 4; * @return Whether the startReplay field is set. */ boolean hasStartReplay(); /** *
     * Start playing a replay.
     * 
* * .SC2APIProtocol.RequestStartReplay start_replay = 4; * @return The startReplay. */ SC2APIProtocol.Sc2Api.RequestStartReplay getStartReplay(); /** *
     * Start playing a replay.
     * 
* * .SC2APIProtocol.RequestStartReplay start_replay = 4; */ SC2APIProtocol.Sc2Api.RequestStartReplayOrBuilder getStartReplayOrBuilder(); /** *
     * Multiplayer only. Disconnects from a multiplayer game, equivalent to surrender.
     * 
* * .SC2APIProtocol.RequestLeaveGame leave_game = 5; * @return Whether the leaveGame field is set. */ boolean hasLeaveGame(); /** *
     * Multiplayer only. Disconnects from a multiplayer game, equivalent to surrender.
     * 
* * .SC2APIProtocol.RequestLeaveGame leave_game = 5; * @return The leaveGame. */ SC2APIProtocol.Sc2Api.RequestLeaveGame getLeaveGame(); /** *
     * Multiplayer only. Disconnects from a multiplayer game, equivalent to surrender.
     * 
* * .SC2APIProtocol.RequestLeaveGame leave_game = 5; */ SC2APIProtocol.Sc2Api.RequestLeaveGameOrBuilder getLeaveGameOrBuilder(); /** *
     * Saves game to an in-memory bookmark.
     * 
* * .SC2APIProtocol.RequestQuickSave quick_save = 6; * @return Whether the quickSave field is set. */ boolean hasQuickSave(); /** *
     * Saves game to an in-memory bookmark.
     * 
* * .SC2APIProtocol.RequestQuickSave quick_save = 6; * @return The quickSave. */ SC2APIProtocol.Sc2Api.RequestQuickSave getQuickSave(); /** *
     * Saves game to an in-memory bookmark.
     * 
* * .SC2APIProtocol.RequestQuickSave quick_save = 6; */ SC2APIProtocol.Sc2Api.RequestQuickSaveOrBuilder getQuickSaveOrBuilder(); /** *
     * Loads from an in-memory bookmark.
     * 
* * .SC2APIProtocol.RequestQuickLoad quick_load = 7; * @return Whether the quickLoad field is set. */ boolean hasQuickLoad(); /** *
     * Loads from an in-memory bookmark.
     * 
* * .SC2APIProtocol.RequestQuickLoad quick_load = 7; * @return The quickLoad. */ SC2APIProtocol.Sc2Api.RequestQuickLoad getQuickLoad(); /** *
     * Loads from an in-memory bookmark.
     * 
* * .SC2APIProtocol.RequestQuickLoad quick_load = 7; */ SC2APIProtocol.Sc2Api.RequestQuickLoadOrBuilder getQuickLoadOrBuilder(); /** *
     * Terminates the application.
     * 
* * .SC2APIProtocol.RequestQuit quit = 8; * @return Whether the quit field is set. */ boolean hasQuit(); /** *
     * Terminates the application.
     * 
* * .SC2APIProtocol.RequestQuit quit = 8; * @return The quit. */ SC2APIProtocol.Sc2Api.RequestQuit getQuit(); /** *
     * Terminates the application.
     * 
* * .SC2APIProtocol.RequestQuit quit = 8; */ SC2APIProtocol.Sc2Api.RequestQuitOrBuilder getQuitOrBuilder(); /** *
     * During Game
     * 
* * .SC2APIProtocol.RequestGameInfo game_info = 9; * @return Whether the gameInfo field is set. */ boolean hasGameInfo(); /** *
     * During Game
     * 
* * .SC2APIProtocol.RequestGameInfo game_info = 9; * @return The gameInfo. */ SC2APIProtocol.Sc2Api.RequestGameInfo getGameInfo(); /** *
     * During Game
     * 
* * .SC2APIProtocol.RequestGameInfo game_info = 9; */ SC2APIProtocol.Sc2Api.RequestGameInfoOrBuilder getGameInfoOrBuilder(); /** *
     * Snapshot of the current game state.
     * 
* * .SC2APIProtocol.RequestObservation observation = 10; * @return Whether the observation field is set. */ boolean hasObservation(); /** *
     * Snapshot of the current game state.
     * 
* * .SC2APIProtocol.RequestObservation observation = 10; * @return The observation. */ SC2APIProtocol.Sc2Api.RequestObservation getObservation(); /** *
     * Snapshot of the current game state.
     * 
* * .SC2APIProtocol.RequestObservation observation = 10; */ SC2APIProtocol.Sc2Api.RequestObservationOrBuilder getObservationOrBuilder(); /** *
     * Executes an action for a participant.
     * 
* * .SC2APIProtocol.RequestAction action = 11; * @return Whether the action field is set. */ boolean hasAction(); /** *
     * Executes an action for a participant.
     * 
* * .SC2APIProtocol.RequestAction action = 11; * @return The action. */ SC2APIProtocol.Sc2Api.RequestAction getAction(); /** *
     * Executes an action for a participant.
     * 
* * .SC2APIProtocol.RequestAction action = 11; */ SC2APIProtocol.Sc2Api.RequestActionOrBuilder getActionOrBuilder(); /** *
     * Executes an action for an observer.
     * 
* * .SC2APIProtocol.RequestObserverAction obs_action = 21; * @return Whether the obsAction field is set. */ boolean hasObsAction(); /** *
     * Executes an action for an observer.
     * 
* * .SC2APIProtocol.RequestObserverAction obs_action = 21; * @return The obsAction. */ SC2APIProtocol.Sc2Api.RequestObserverAction getObsAction(); /** *
     * Executes an action for an observer.
     * 
* * .SC2APIProtocol.RequestObserverAction obs_action = 21; */ SC2APIProtocol.Sc2Api.RequestObserverActionOrBuilder getObsActionOrBuilder(); /** *
     * Advances the game simulation.
     * 
* * .SC2APIProtocol.RequestStep step = 12; * @return Whether the step field is set. */ boolean hasStep(); /** *
     * Advances the game simulation.
     * 
* * .SC2APIProtocol.RequestStep step = 12; * @return The step. */ SC2APIProtocol.Sc2Api.RequestStep getStep(); /** *
     * Advances the game simulation.
     * 
* * .SC2APIProtocol.RequestStep step = 12; */ SC2APIProtocol.Sc2Api.RequestStepOrBuilder getStepOrBuilder(); /** *
     * Data about different gameplay elements. May be different for different games.
     * 
* * .SC2APIProtocol.RequestData data = 13; * @return Whether the data field is set. */ boolean hasData(); /** *
     * Data about different gameplay elements. May be different for different games.
     * 
* * .SC2APIProtocol.RequestData data = 13; * @return The data. */ SC2APIProtocol.Sc2Api.RequestData getData(); /** *
     * Data about different gameplay elements. May be different for different games.
     * 
* * .SC2APIProtocol.RequestData data = 13; */ SC2APIProtocol.Sc2Api.RequestDataOrBuilder getDataOrBuilder(); /** *
     * Additional methods for inspecting game state.
     * 
* * .SC2APIProtocol.RequestQuery query = 14; * @return Whether the query field is set. */ boolean hasQuery(); /** *
     * Additional methods for inspecting game state.
     * 
* * .SC2APIProtocol.RequestQuery query = 14; * @return The query. */ SC2APIProtocol.Query.RequestQuery getQuery(); /** *
     * Additional methods for inspecting game state.
     * 
* * .SC2APIProtocol.RequestQuery query = 14; */ SC2APIProtocol.Query.RequestQueryOrBuilder getQueryOrBuilder(); /** *
     * Generates a replay.
     * 
* * .SC2APIProtocol.RequestSaveReplay save_replay = 15; * @return Whether the saveReplay field is set. */ boolean hasSaveReplay(); /** *
     * Generates a replay.
     * 
* * .SC2APIProtocol.RequestSaveReplay save_replay = 15; * @return The saveReplay. */ SC2APIProtocol.Sc2Api.RequestSaveReplay getSaveReplay(); /** *
     * Generates a replay.
     * 
* * .SC2APIProtocol.RequestSaveReplay save_replay = 15; */ SC2APIProtocol.Sc2Api.RequestSaveReplayOrBuilder getSaveReplayOrBuilder(); /** *
     * Execute a particular trigger through a string interface
     * 
* * .SC2APIProtocol.RequestMapCommand map_command = 22; * @return Whether the mapCommand field is set. */ boolean hasMapCommand(); /** *
     * Execute a particular trigger through a string interface
     * 
* * .SC2APIProtocol.RequestMapCommand map_command = 22; * @return The mapCommand. */ SC2APIProtocol.Sc2Api.RequestMapCommand getMapCommand(); /** *
     * Execute a particular trigger through a string interface
     * 
* * .SC2APIProtocol.RequestMapCommand map_command = 22; */ SC2APIProtocol.Sc2Api.RequestMapCommandOrBuilder getMapCommandOrBuilder(); /** *
     * Other.
     * 
* * .SC2APIProtocol.RequestReplayInfo replay_info = 16; * @return Whether the replayInfo field is set. */ boolean hasReplayInfo(); /** *
     * Other.
     * 
* * .SC2APIProtocol.RequestReplayInfo replay_info = 16; * @return The replayInfo. */ SC2APIProtocol.Sc2Api.RequestReplayInfo getReplayInfo(); /** *
     * Other.
     * 
* * .SC2APIProtocol.RequestReplayInfo replay_info = 16; */ SC2APIProtocol.Sc2Api.RequestReplayInfoOrBuilder getReplayInfoOrBuilder(); /** *
     * Returns directory of maps that can be played on.
     * 
* * .SC2APIProtocol.RequestAvailableMaps available_maps = 17; * @return Whether the availableMaps field is set. */ boolean hasAvailableMaps(); /** *
     * Returns directory of maps that can be played on.
     * 
* * .SC2APIProtocol.RequestAvailableMaps available_maps = 17; * @return The availableMaps. */ SC2APIProtocol.Sc2Api.RequestAvailableMaps getAvailableMaps(); /** *
     * Returns directory of maps that can be played on.
     * 
* * .SC2APIProtocol.RequestAvailableMaps available_maps = 17; */ SC2APIProtocol.Sc2Api.RequestAvailableMapsOrBuilder getAvailableMapsOrBuilder(); /** *
     * Saves binary map data to the local temp directory.
     * 
* * .SC2APIProtocol.RequestSaveMap save_map = 18; * @return Whether the saveMap field is set. */ boolean hasSaveMap(); /** *
     * Saves binary map data to the local temp directory.
     * 
* * .SC2APIProtocol.RequestSaveMap save_map = 18; * @return The saveMap. */ SC2APIProtocol.Sc2Api.RequestSaveMap getSaveMap(); /** *
     * Saves binary map data to the local temp directory.
     * 
* * .SC2APIProtocol.RequestSaveMap save_map = 18; */ SC2APIProtocol.Sc2Api.RequestSaveMapOrBuilder getSaveMapOrBuilder(); /** *
     * Debugging
     * 
* * .SC2APIProtocol.RequestPing ping = 19; * @return Whether the ping field is set. */ boolean hasPing(); /** *
     * Debugging
     * 
* * .SC2APIProtocol.RequestPing ping = 19; * @return The ping. */ SC2APIProtocol.Sc2Api.RequestPing getPing(); /** *
     * Debugging
     * 
* * .SC2APIProtocol.RequestPing ping = 19; */ SC2APIProtocol.Sc2Api.RequestPingOrBuilder getPingOrBuilder(); /** *
     * Display debug information and execute debug actions.
     * 
* * .SC2APIProtocol.RequestDebug debug = 20; * @return Whether the debug field is set. */ boolean hasDebug(); /** *
     * Display debug information and execute debug actions.
     * 
* * .SC2APIProtocol.RequestDebug debug = 20; * @return The debug. */ SC2APIProtocol.Sc2Api.RequestDebug getDebug(); /** *
     * Display debug information and execute debug actions.
     * 
* * .SC2APIProtocol.RequestDebug debug = 20; */ SC2APIProtocol.Sc2Api.RequestDebugOrBuilder getDebugOrBuilder(); /** * optional uint32 id = 97; * @return Whether the id field is set. */ boolean hasId(); /** * optional uint32 id = 97; * @return The id. */ int getId(); public SC2APIProtocol.Sc2Api.Request.RequestCase getRequestCase(); } /** * Protobuf type {@code SC2APIProtocol.Request} */ public static final class Request extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:SC2APIProtocol.Request) RequestOrBuilder { private static final long serialVersionUID = 0L; // Use Request.newBuilder() to construct. private Request(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Request() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Request(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_Request_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_Request_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Sc2Api.Request.class, SC2APIProtocol.Sc2Api.Request.Builder.class); } private int bitField0_; private int requestCase_ = 0; private java.lang.Object request_; public enum RequestCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { CREATE_GAME(1), JOIN_GAME(2), RESTART_GAME(3), START_REPLAY(4), LEAVE_GAME(5), QUICK_SAVE(6), QUICK_LOAD(7), QUIT(8), GAME_INFO(9), OBSERVATION(10), ACTION(11), OBS_ACTION(21), STEP(12), DATA(13), QUERY(14), SAVE_REPLAY(15), MAP_COMMAND(22), REPLAY_INFO(16), AVAILABLE_MAPS(17), SAVE_MAP(18), PING(19), DEBUG(20), REQUEST_NOT_SET(0); private final int value; private RequestCase(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 RequestCase valueOf(int value) { return forNumber(value); } public static RequestCase forNumber(int value) { switch (value) { case 1: return CREATE_GAME; case 2: return JOIN_GAME; case 3: return RESTART_GAME; case 4: return START_REPLAY; case 5: return LEAVE_GAME; case 6: return QUICK_SAVE; case 7: return QUICK_LOAD; case 8: return QUIT; case 9: return GAME_INFO; case 10: return OBSERVATION; case 11: return ACTION; case 21: return OBS_ACTION; case 12: return STEP; case 13: return DATA; case 14: return QUERY; case 15: return SAVE_REPLAY; case 22: return MAP_COMMAND; case 16: return REPLAY_INFO; case 17: return AVAILABLE_MAPS; case 18: return SAVE_MAP; case 19: return PING; case 20: return DEBUG; case 0: return REQUEST_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public RequestCase getRequestCase() { return RequestCase.forNumber( requestCase_); } public static final int CREATE_GAME_FIELD_NUMBER = 1; /** *
     * Game Setup
     * 
* * .SC2APIProtocol.RequestCreateGame create_game = 1; * @return Whether the createGame field is set. */ @java.lang.Override public boolean hasCreateGame() { return requestCase_ == 1; } /** *
     * Game Setup
     * 
* * .SC2APIProtocol.RequestCreateGame create_game = 1; * @return The createGame. */ @java.lang.Override public SC2APIProtocol.Sc2Api.RequestCreateGame getCreateGame() { if (requestCase_ == 1) { return (SC2APIProtocol.Sc2Api.RequestCreateGame) request_; } return SC2APIProtocol.Sc2Api.RequestCreateGame.getDefaultInstance(); } /** *
     * Game Setup
     * 
* * .SC2APIProtocol.RequestCreateGame create_game = 1; */ @java.lang.Override public SC2APIProtocol.Sc2Api.RequestCreateGameOrBuilder getCreateGameOrBuilder() { if (requestCase_ == 1) { return (SC2APIProtocol.Sc2Api.RequestCreateGame) request_; } return SC2APIProtocol.Sc2Api.RequestCreateGame.getDefaultInstance(); } public static final int JOIN_GAME_FIELD_NUMBER = 2; /** *
     * Send to host and all clients for game to begin.
     * 
* * .SC2APIProtocol.RequestJoinGame join_game = 2; * @return Whether the joinGame field is set. */ @java.lang.Override public boolean hasJoinGame() { return requestCase_ == 2; } /** *
     * Send to host and all clients for game to begin.
     * 
* * .SC2APIProtocol.RequestJoinGame join_game = 2; * @return The joinGame. */ @java.lang.Override public SC2APIProtocol.Sc2Api.RequestJoinGame getJoinGame() { if (requestCase_ == 2) { return (SC2APIProtocol.Sc2Api.RequestJoinGame) request_; } return SC2APIProtocol.Sc2Api.RequestJoinGame.getDefaultInstance(); } /** *
     * Send to host and all clients for game to begin.
     * 
* * .SC2APIProtocol.RequestJoinGame join_game = 2; */ @java.lang.Override public SC2APIProtocol.Sc2Api.RequestJoinGameOrBuilder getJoinGameOrBuilder() { if (requestCase_ == 2) { return (SC2APIProtocol.Sc2Api.RequestJoinGame) request_; } return SC2APIProtocol.Sc2Api.RequestJoinGame.getDefaultInstance(); } public static final int RESTART_GAME_FIELD_NUMBER = 3; /** *
     * Single player only. Reinitializes the game with the same player setup.
     * 
* * .SC2APIProtocol.RequestRestartGame restart_game = 3; * @return Whether the restartGame field is set. */ @java.lang.Override public boolean hasRestartGame() { return requestCase_ == 3; } /** *
     * Single player only. Reinitializes the game with the same player setup.
     * 
* * .SC2APIProtocol.RequestRestartGame restart_game = 3; * @return The restartGame. */ @java.lang.Override public SC2APIProtocol.Sc2Api.RequestRestartGame getRestartGame() { if (requestCase_ == 3) { return (SC2APIProtocol.Sc2Api.RequestRestartGame) request_; } return SC2APIProtocol.Sc2Api.RequestRestartGame.getDefaultInstance(); } /** *
     * Single player only. Reinitializes the game with the same player setup.
     * 
* * .SC2APIProtocol.RequestRestartGame restart_game = 3; */ @java.lang.Override public SC2APIProtocol.Sc2Api.RequestRestartGameOrBuilder getRestartGameOrBuilder() { if (requestCase_ == 3) { return (SC2APIProtocol.Sc2Api.RequestRestartGame) request_; } return SC2APIProtocol.Sc2Api.RequestRestartGame.getDefaultInstance(); } public static final int START_REPLAY_FIELD_NUMBER = 4; /** *
     * Start playing a replay.
     * 
* * .SC2APIProtocol.RequestStartReplay start_replay = 4; * @return Whether the startReplay field is set. */ @java.lang.Override public boolean hasStartReplay() { return requestCase_ == 4; } /** *
     * Start playing a replay.
     * 
* * .SC2APIProtocol.RequestStartReplay start_replay = 4; * @return The startReplay. */ @java.lang.Override public SC2APIProtocol.Sc2Api.RequestStartReplay getStartReplay() { if (requestCase_ == 4) { return (SC2APIProtocol.Sc2Api.RequestStartReplay) request_; } return SC2APIProtocol.Sc2Api.RequestStartReplay.getDefaultInstance(); } /** *
     * Start playing a replay.
     * 
* * .SC2APIProtocol.RequestStartReplay start_replay = 4; */ @java.lang.Override public SC2APIProtocol.Sc2Api.RequestStartReplayOrBuilder getStartReplayOrBuilder() { if (requestCase_ == 4) { return (SC2APIProtocol.Sc2Api.RequestStartReplay) request_; } return SC2APIProtocol.Sc2Api.RequestStartReplay.getDefaultInstance(); } public static final int LEAVE_GAME_FIELD_NUMBER = 5; /** *
     * Multiplayer only. Disconnects from a multiplayer game, equivalent to surrender.
     * 
* * .SC2APIProtocol.RequestLeaveGame leave_game = 5; * @return Whether the leaveGame field is set. */ @java.lang.Override public boolean hasLeaveGame() { return requestCase_ == 5; } /** *
     * Multiplayer only. Disconnects from a multiplayer game, equivalent to surrender.
     * 
* * .SC2APIProtocol.RequestLeaveGame leave_game = 5; * @return The leaveGame. */ @java.lang.Override public SC2APIProtocol.Sc2Api.RequestLeaveGame getLeaveGame() { if (requestCase_ == 5) { return (SC2APIProtocol.Sc2Api.RequestLeaveGame) request_; } return SC2APIProtocol.Sc2Api.RequestLeaveGame.getDefaultInstance(); } /** *
     * Multiplayer only. Disconnects from a multiplayer game, equivalent to surrender.
     * 
* * .SC2APIProtocol.RequestLeaveGame leave_game = 5; */ @java.lang.Override public SC2APIProtocol.Sc2Api.RequestLeaveGameOrBuilder getLeaveGameOrBuilder() { if (requestCase_ == 5) { return (SC2APIProtocol.Sc2Api.RequestLeaveGame) request_; } return SC2APIProtocol.Sc2Api.RequestLeaveGame.getDefaultInstance(); } public static final int QUICK_SAVE_FIELD_NUMBER = 6; /** *
     * Saves game to an in-memory bookmark.
     * 
* * .SC2APIProtocol.RequestQuickSave quick_save = 6; * @return Whether the quickSave field is set. */ @java.lang.Override public boolean hasQuickSave() { return requestCase_ == 6; } /** *
     * Saves game to an in-memory bookmark.
     * 
* * .SC2APIProtocol.RequestQuickSave quick_save = 6; * @return The quickSave. */ @java.lang.Override public SC2APIProtocol.Sc2Api.RequestQuickSave getQuickSave() { if (requestCase_ == 6) { return (SC2APIProtocol.Sc2Api.RequestQuickSave) request_; } return SC2APIProtocol.Sc2Api.RequestQuickSave.getDefaultInstance(); } /** *
     * Saves game to an in-memory bookmark.
     * 
* * .SC2APIProtocol.RequestQuickSave quick_save = 6; */ @java.lang.Override public SC2APIProtocol.Sc2Api.RequestQuickSaveOrBuilder getQuickSaveOrBuilder() { if (requestCase_ == 6) { return (SC2APIProtocol.Sc2Api.RequestQuickSave) request_; } return SC2APIProtocol.Sc2Api.RequestQuickSave.getDefaultInstance(); } public static final int QUICK_LOAD_FIELD_NUMBER = 7; /** *
     * Loads from an in-memory bookmark.
     * 
* * .SC2APIProtocol.RequestQuickLoad quick_load = 7; * @return Whether the quickLoad field is set. */ @java.lang.Override public boolean hasQuickLoad() { return requestCase_ == 7; } /** *
     * Loads from an in-memory bookmark.
     * 
* * .SC2APIProtocol.RequestQuickLoad quick_load = 7; * @return The quickLoad. */ @java.lang.Override public SC2APIProtocol.Sc2Api.RequestQuickLoad getQuickLoad() { if (requestCase_ == 7) { return (SC2APIProtocol.Sc2Api.RequestQuickLoad) request_; } return SC2APIProtocol.Sc2Api.RequestQuickLoad.getDefaultInstance(); } /** *
     * Loads from an in-memory bookmark.
     * 
* * .SC2APIProtocol.RequestQuickLoad quick_load = 7; */ @java.lang.Override public SC2APIProtocol.Sc2Api.RequestQuickLoadOrBuilder getQuickLoadOrBuilder() { if (requestCase_ == 7) { return (SC2APIProtocol.Sc2Api.RequestQuickLoad) request_; } return SC2APIProtocol.Sc2Api.RequestQuickLoad.getDefaultInstance(); } public static final int QUIT_FIELD_NUMBER = 8; /** *
     * Terminates the application.
     * 
* * .SC2APIProtocol.RequestQuit quit = 8; * @return Whether the quit field is set. */ @java.lang.Override public boolean hasQuit() { return requestCase_ == 8; } /** *
     * Terminates the application.
     * 
* * .SC2APIProtocol.RequestQuit quit = 8; * @return The quit. */ @java.lang.Override public SC2APIProtocol.Sc2Api.RequestQuit getQuit() { if (requestCase_ == 8) { return (SC2APIProtocol.Sc2Api.RequestQuit) request_; } return SC2APIProtocol.Sc2Api.RequestQuit.getDefaultInstance(); } /** *
     * Terminates the application.
     * 
* * .SC2APIProtocol.RequestQuit quit = 8; */ @java.lang.Override public SC2APIProtocol.Sc2Api.RequestQuitOrBuilder getQuitOrBuilder() { if (requestCase_ == 8) { return (SC2APIProtocol.Sc2Api.RequestQuit) request_; } return SC2APIProtocol.Sc2Api.RequestQuit.getDefaultInstance(); } public static final int GAME_INFO_FIELD_NUMBER = 9; /** *
     * During Game
     * 
* * .SC2APIProtocol.RequestGameInfo game_info = 9; * @return Whether the gameInfo field is set. */ @java.lang.Override public boolean hasGameInfo() { return requestCase_ == 9; } /** *
     * During Game
     * 
* * .SC2APIProtocol.RequestGameInfo game_info = 9; * @return The gameInfo. */ @java.lang.Override public SC2APIProtocol.Sc2Api.RequestGameInfo getGameInfo() { if (requestCase_ == 9) { return (SC2APIProtocol.Sc2Api.RequestGameInfo) request_; } return SC2APIProtocol.Sc2Api.RequestGameInfo.getDefaultInstance(); } /** *
     * During Game
     * 
* * .SC2APIProtocol.RequestGameInfo game_info = 9; */ @java.lang.Override public SC2APIProtocol.Sc2Api.RequestGameInfoOrBuilder getGameInfoOrBuilder() { if (requestCase_ == 9) { return (SC2APIProtocol.Sc2Api.RequestGameInfo) request_; } return SC2APIProtocol.Sc2Api.RequestGameInfo.getDefaultInstance(); } public static final int OBSERVATION_FIELD_NUMBER = 10; /** *
     * Snapshot of the current game state.
     * 
* * .SC2APIProtocol.RequestObservation observation = 10; * @return Whether the observation field is set. */ @java.lang.Override public boolean hasObservation() { return requestCase_ == 10; } /** *
     * Snapshot of the current game state.
     * 
* * .SC2APIProtocol.RequestObservation observation = 10; * @return The observation. */ @java.lang.Override public SC2APIProtocol.Sc2Api.RequestObservation getObservation() { if (requestCase_ == 10) { return (SC2APIProtocol.Sc2Api.RequestObservation) request_; } return SC2APIProtocol.Sc2Api.RequestObservation.getDefaultInstance(); } /** *
     * Snapshot of the current game state.
     * 
* * .SC2APIProtocol.RequestObservation observation = 10; */ @java.lang.Override public SC2APIProtocol.Sc2Api.RequestObservationOrBuilder getObservationOrBuilder() { if (requestCase_ == 10) { return (SC2APIProtocol.Sc2Api.RequestObservation) request_; } return SC2APIProtocol.Sc2Api.RequestObservation.getDefaultInstance(); } public static final int ACTION_FIELD_NUMBER = 11; /** *
     * Executes an action for a participant.
     * 
* * .SC2APIProtocol.RequestAction action = 11; * @return Whether the action field is set. */ @java.lang.Override public boolean hasAction() { return requestCase_ == 11; } /** *
     * Executes an action for a participant.
     * 
* * .SC2APIProtocol.RequestAction action = 11; * @return The action. */ @java.lang.Override public SC2APIProtocol.Sc2Api.RequestAction getAction() { if (requestCase_ == 11) { return (SC2APIProtocol.Sc2Api.RequestAction) request_; } return SC2APIProtocol.Sc2Api.RequestAction.getDefaultInstance(); } /** *
     * Executes an action for a participant.
     * 
* * .SC2APIProtocol.RequestAction action = 11; */ @java.lang.Override public SC2APIProtocol.Sc2Api.RequestActionOrBuilder getActionOrBuilder() { if (requestCase_ == 11) { return (SC2APIProtocol.Sc2Api.RequestAction) request_; } return SC2APIProtocol.Sc2Api.RequestAction.getDefaultInstance(); } public static final int OBS_ACTION_FIELD_NUMBER = 21; /** *
     * Executes an action for an observer.
     * 
* * .SC2APIProtocol.RequestObserverAction obs_action = 21; * @return Whether the obsAction field is set. */ @java.lang.Override public boolean hasObsAction() { return requestCase_ == 21; } /** *
     * Executes an action for an observer.
     * 
* * .SC2APIProtocol.RequestObserverAction obs_action = 21; * @return The obsAction. */ @java.lang.Override public SC2APIProtocol.Sc2Api.RequestObserverAction getObsAction() { if (requestCase_ == 21) { return (SC2APIProtocol.Sc2Api.RequestObserverAction) request_; } return SC2APIProtocol.Sc2Api.RequestObserverAction.getDefaultInstance(); } /** *
     * Executes an action for an observer.
     * 
* * .SC2APIProtocol.RequestObserverAction obs_action = 21; */ @java.lang.Override public SC2APIProtocol.Sc2Api.RequestObserverActionOrBuilder getObsActionOrBuilder() { if (requestCase_ == 21) { return (SC2APIProtocol.Sc2Api.RequestObserverAction) request_; } return SC2APIProtocol.Sc2Api.RequestObserverAction.getDefaultInstance(); } public static final int STEP_FIELD_NUMBER = 12; /** *
     * Advances the game simulation.
     * 
* * .SC2APIProtocol.RequestStep step = 12; * @return Whether the step field is set. */ @java.lang.Override public boolean hasStep() { return requestCase_ == 12; } /** *
     * Advances the game simulation.
     * 
* * .SC2APIProtocol.RequestStep step = 12; * @return The step. */ @java.lang.Override public SC2APIProtocol.Sc2Api.RequestStep getStep() { if (requestCase_ == 12) { return (SC2APIProtocol.Sc2Api.RequestStep) request_; } return SC2APIProtocol.Sc2Api.RequestStep.getDefaultInstance(); } /** *
     * Advances the game simulation.
     * 
* * .SC2APIProtocol.RequestStep step = 12; */ @java.lang.Override public SC2APIProtocol.Sc2Api.RequestStepOrBuilder getStepOrBuilder() { if (requestCase_ == 12) { return (SC2APIProtocol.Sc2Api.RequestStep) request_; } return SC2APIProtocol.Sc2Api.RequestStep.getDefaultInstance(); } public static final int DATA_FIELD_NUMBER = 13; /** *
     * Data about different gameplay elements. May be different for different games.
     * 
* * .SC2APIProtocol.RequestData data = 13; * @return Whether the data field is set. */ @java.lang.Override public boolean hasData() { return requestCase_ == 13; } /** *
     * Data about different gameplay elements. May be different for different games.
     * 
* * .SC2APIProtocol.RequestData data = 13; * @return The data. */ @java.lang.Override public SC2APIProtocol.Sc2Api.RequestData getData() { if (requestCase_ == 13) { return (SC2APIProtocol.Sc2Api.RequestData) request_; } return SC2APIProtocol.Sc2Api.RequestData.getDefaultInstance(); } /** *
     * Data about different gameplay elements. May be different for different games.
     * 
* * .SC2APIProtocol.RequestData data = 13; */ @java.lang.Override public SC2APIProtocol.Sc2Api.RequestDataOrBuilder getDataOrBuilder() { if (requestCase_ == 13) { return (SC2APIProtocol.Sc2Api.RequestData) request_; } return SC2APIProtocol.Sc2Api.RequestData.getDefaultInstance(); } public static final int QUERY_FIELD_NUMBER = 14; /** *
     * Additional methods for inspecting game state.
     * 
* * .SC2APIProtocol.RequestQuery query = 14; * @return Whether the query field is set. */ @java.lang.Override public boolean hasQuery() { return requestCase_ == 14; } /** *
     * Additional methods for inspecting game state.
     * 
* * .SC2APIProtocol.RequestQuery query = 14; * @return The query. */ @java.lang.Override public SC2APIProtocol.Query.RequestQuery getQuery() { if (requestCase_ == 14) { return (SC2APIProtocol.Query.RequestQuery) request_; } return SC2APIProtocol.Query.RequestQuery.getDefaultInstance(); } /** *
     * Additional methods for inspecting game state.
     * 
* * .SC2APIProtocol.RequestQuery query = 14; */ @java.lang.Override public SC2APIProtocol.Query.RequestQueryOrBuilder getQueryOrBuilder() { if (requestCase_ == 14) { return (SC2APIProtocol.Query.RequestQuery) request_; } return SC2APIProtocol.Query.RequestQuery.getDefaultInstance(); } public static final int SAVE_REPLAY_FIELD_NUMBER = 15; /** *
     * Generates a replay.
     * 
* * .SC2APIProtocol.RequestSaveReplay save_replay = 15; * @return Whether the saveReplay field is set. */ @java.lang.Override public boolean hasSaveReplay() { return requestCase_ == 15; } /** *
     * Generates a replay.
     * 
* * .SC2APIProtocol.RequestSaveReplay save_replay = 15; * @return The saveReplay. */ @java.lang.Override public SC2APIProtocol.Sc2Api.RequestSaveReplay getSaveReplay() { if (requestCase_ == 15) { return (SC2APIProtocol.Sc2Api.RequestSaveReplay) request_; } return SC2APIProtocol.Sc2Api.RequestSaveReplay.getDefaultInstance(); } /** *
     * Generates a replay.
     * 
* * .SC2APIProtocol.RequestSaveReplay save_replay = 15; */ @java.lang.Override public SC2APIProtocol.Sc2Api.RequestSaveReplayOrBuilder getSaveReplayOrBuilder() { if (requestCase_ == 15) { return (SC2APIProtocol.Sc2Api.RequestSaveReplay) request_; } return SC2APIProtocol.Sc2Api.RequestSaveReplay.getDefaultInstance(); } public static final int MAP_COMMAND_FIELD_NUMBER = 22; /** *
     * Execute a particular trigger through a string interface
     * 
* * .SC2APIProtocol.RequestMapCommand map_command = 22; * @return Whether the mapCommand field is set. */ @java.lang.Override public boolean hasMapCommand() { return requestCase_ == 22; } /** *
     * Execute a particular trigger through a string interface
     * 
* * .SC2APIProtocol.RequestMapCommand map_command = 22; * @return The mapCommand. */ @java.lang.Override public SC2APIProtocol.Sc2Api.RequestMapCommand getMapCommand() { if (requestCase_ == 22) { return (SC2APIProtocol.Sc2Api.RequestMapCommand) request_; } return SC2APIProtocol.Sc2Api.RequestMapCommand.getDefaultInstance(); } /** *
     * Execute a particular trigger through a string interface
     * 
* * .SC2APIProtocol.RequestMapCommand map_command = 22; */ @java.lang.Override public SC2APIProtocol.Sc2Api.RequestMapCommandOrBuilder getMapCommandOrBuilder() { if (requestCase_ == 22) { return (SC2APIProtocol.Sc2Api.RequestMapCommand) request_; } return SC2APIProtocol.Sc2Api.RequestMapCommand.getDefaultInstance(); } public static final int REPLAY_INFO_FIELD_NUMBER = 16; /** *
     * Other.
     * 
* * .SC2APIProtocol.RequestReplayInfo replay_info = 16; * @return Whether the replayInfo field is set. */ @java.lang.Override public boolean hasReplayInfo() { return requestCase_ == 16; } /** *
     * Other.
     * 
* * .SC2APIProtocol.RequestReplayInfo replay_info = 16; * @return The replayInfo. */ @java.lang.Override public SC2APIProtocol.Sc2Api.RequestReplayInfo getReplayInfo() { if (requestCase_ == 16) { return (SC2APIProtocol.Sc2Api.RequestReplayInfo) request_; } return SC2APIProtocol.Sc2Api.RequestReplayInfo.getDefaultInstance(); } /** *
     * Other.
     * 
* * .SC2APIProtocol.RequestReplayInfo replay_info = 16; */ @java.lang.Override public SC2APIProtocol.Sc2Api.RequestReplayInfoOrBuilder getReplayInfoOrBuilder() { if (requestCase_ == 16) { return (SC2APIProtocol.Sc2Api.RequestReplayInfo) request_; } return SC2APIProtocol.Sc2Api.RequestReplayInfo.getDefaultInstance(); } public static final int AVAILABLE_MAPS_FIELD_NUMBER = 17; /** *
     * Returns directory of maps that can be played on.
     * 
* * .SC2APIProtocol.RequestAvailableMaps available_maps = 17; * @return Whether the availableMaps field is set. */ @java.lang.Override public boolean hasAvailableMaps() { return requestCase_ == 17; } /** *
     * Returns directory of maps that can be played on.
     * 
* * .SC2APIProtocol.RequestAvailableMaps available_maps = 17; * @return The availableMaps. */ @java.lang.Override public SC2APIProtocol.Sc2Api.RequestAvailableMaps getAvailableMaps() { if (requestCase_ == 17) { return (SC2APIProtocol.Sc2Api.RequestAvailableMaps) request_; } return SC2APIProtocol.Sc2Api.RequestAvailableMaps.getDefaultInstance(); } /** *
     * Returns directory of maps that can be played on.
     * 
* * .SC2APIProtocol.RequestAvailableMaps available_maps = 17; */ @java.lang.Override public SC2APIProtocol.Sc2Api.RequestAvailableMapsOrBuilder getAvailableMapsOrBuilder() { if (requestCase_ == 17) { return (SC2APIProtocol.Sc2Api.RequestAvailableMaps) request_; } return SC2APIProtocol.Sc2Api.RequestAvailableMaps.getDefaultInstance(); } public static final int SAVE_MAP_FIELD_NUMBER = 18; /** *
     * Saves binary map data to the local temp directory.
     * 
* * .SC2APIProtocol.RequestSaveMap save_map = 18; * @return Whether the saveMap field is set. */ @java.lang.Override public boolean hasSaveMap() { return requestCase_ == 18; } /** *
     * Saves binary map data to the local temp directory.
     * 
* * .SC2APIProtocol.RequestSaveMap save_map = 18; * @return The saveMap. */ @java.lang.Override public SC2APIProtocol.Sc2Api.RequestSaveMap getSaveMap() { if (requestCase_ == 18) { return (SC2APIProtocol.Sc2Api.RequestSaveMap) request_; } return SC2APIProtocol.Sc2Api.RequestSaveMap.getDefaultInstance(); } /** *
     * Saves binary map data to the local temp directory.
     * 
* * .SC2APIProtocol.RequestSaveMap save_map = 18; */ @java.lang.Override public SC2APIProtocol.Sc2Api.RequestSaveMapOrBuilder getSaveMapOrBuilder() { if (requestCase_ == 18) { return (SC2APIProtocol.Sc2Api.RequestSaveMap) request_; } return SC2APIProtocol.Sc2Api.RequestSaveMap.getDefaultInstance(); } public static final int PING_FIELD_NUMBER = 19; /** *
     * Debugging
     * 
* * .SC2APIProtocol.RequestPing ping = 19; * @return Whether the ping field is set. */ @java.lang.Override public boolean hasPing() { return requestCase_ == 19; } /** *
     * Debugging
     * 
* * .SC2APIProtocol.RequestPing ping = 19; * @return The ping. */ @java.lang.Override public SC2APIProtocol.Sc2Api.RequestPing getPing() { if (requestCase_ == 19) { return (SC2APIProtocol.Sc2Api.RequestPing) request_; } return SC2APIProtocol.Sc2Api.RequestPing.getDefaultInstance(); } /** *
     * Debugging
     * 
* * .SC2APIProtocol.RequestPing ping = 19; */ @java.lang.Override public SC2APIProtocol.Sc2Api.RequestPingOrBuilder getPingOrBuilder() { if (requestCase_ == 19) { return (SC2APIProtocol.Sc2Api.RequestPing) request_; } return SC2APIProtocol.Sc2Api.RequestPing.getDefaultInstance(); } public static final int DEBUG_FIELD_NUMBER = 20; /** *
     * Display debug information and execute debug actions.
     * 
* * .SC2APIProtocol.RequestDebug debug = 20; * @return Whether the debug field is set. */ @java.lang.Override public boolean hasDebug() { return requestCase_ == 20; } /** *
     * Display debug information and execute debug actions.
     * 
* * .SC2APIProtocol.RequestDebug debug = 20; * @return The debug. */ @java.lang.Override public SC2APIProtocol.Sc2Api.RequestDebug getDebug() { if (requestCase_ == 20) { return (SC2APIProtocol.Sc2Api.RequestDebug) request_; } return SC2APIProtocol.Sc2Api.RequestDebug.getDefaultInstance(); } /** *
     * Display debug information and execute debug actions.
     * 
* * .SC2APIProtocol.RequestDebug debug = 20; */ @java.lang.Override public SC2APIProtocol.Sc2Api.RequestDebugOrBuilder getDebugOrBuilder() { if (requestCase_ == 20) { return (SC2APIProtocol.Sc2Api.RequestDebug) request_; } return SC2APIProtocol.Sc2Api.RequestDebug.getDefaultInstance(); } public static final int ID_FIELD_NUMBER = 97; private int id_; /** * optional uint32 id = 97; * @return Whether the id field is set. */ @java.lang.Override public boolean hasId() { return ((bitField0_ & 0x00400000) != 0); } /** * optional uint32 id = 97; * @return The id. */ @java.lang.Override public int getId() { return id_; } 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 (requestCase_ == 1) { output.writeMessage(1, (SC2APIProtocol.Sc2Api.RequestCreateGame) request_); } if (requestCase_ == 2) { output.writeMessage(2, (SC2APIProtocol.Sc2Api.RequestJoinGame) request_); } if (requestCase_ == 3) { output.writeMessage(3, (SC2APIProtocol.Sc2Api.RequestRestartGame) request_); } if (requestCase_ == 4) { output.writeMessage(4, (SC2APIProtocol.Sc2Api.RequestStartReplay) request_); } if (requestCase_ == 5) { output.writeMessage(5, (SC2APIProtocol.Sc2Api.RequestLeaveGame) request_); } if (requestCase_ == 6) { output.writeMessage(6, (SC2APIProtocol.Sc2Api.RequestQuickSave) request_); } if (requestCase_ == 7) { output.writeMessage(7, (SC2APIProtocol.Sc2Api.RequestQuickLoad) request_); } if (requestCase_ == 8) { output.writeMessage(8, (SC2APIProtocol.Sc2Api.RequestQuit) request_); } if (requestCase_ == 9) { output.writeMessage(9, (SC2APIProtocol.Sc2Api.RequestGameInfo) request_); } if (requestCase_ == 10) { output.writeMessage(10, (SC2APIProtocol.Sc2Api.RequestObservation) request_); } if (requestCase_ == 11) { output.writeMessage(11, (SC2APIProtocol.Sc2Api.RequestAction) request_); } if (requestCase_ == 12) { output.writeMessage(12, (SC2APIProtocol.Sc2Api.RequestStep) request_); } if (requestCase_ == 13) { output.writeMessage(13, (SC2APIProtocol.Sc2Api.RequestData) request_); } if (requestCase_ == 14) { output.writeMessage(14, (SC2APIProtocol.Query.RequestQuery) request_); } if (requestCase_ == 15) { output.writeMessage(15, (SC2APIProtocol.Sc2Api.RequestSaveReplay) request_); } if (requestCase_ == 16) { output.writeMessage(16, (SC2APIProtocol.Sc2Api.RequestReplayInfo) request_); } if (requestCase_ == 17) { output.writeMessage(17, (SC2APIProtocol.Sc2Api.RequestAvailableMaps) request_); } if (requestCase_ == 18) { output.writeMessage(18, (SC2APIProtocol.Sc2Api.RequestSaveMap) request_); } if (requestCase_ == 19) { output.writeMessage(19, (SC2APIProtocol.Sc2Api.RequestPing) request_); } if (requestCase_ == 20) { output.writeMessage(20, (SC2APIProtocol.Sc2Api.RequestDebug) request_); } if (requestCase_ == 21) { output.writeMessage(21, (SC2APIProtocol.Sc2Api.RequestObserverAction) request_); } if (requestCase_ == 22) { output.writeMessage(22, (SC2APIProtocol.Sc2Api.RequestMapCommand) request_); } if (((bitField0_ & 0x00400000) != 0)) { output.writeUInt32(97, id_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (requestCase_ == 1) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, (SC2APIProtocol.Sc2Api.RequestCreateGame) request_); } if (requestCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, (SC2APIProtocol.Sc2Api.RequestJoinGame) request_); } if (requestCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, (SC2APIProtocol.Sc2Api.RequestRestartGame) request_); } if (requestCase_ == 4) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, (SC2APIProtocol.Sc2Api.RequestStartReplay) request_); } if (requestCase_ == 5) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, (SC2APIProtocol.Sc2Api.RequestLeaveGame) request_); } if (requestCase_ == 6) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, (SC2APIProtocol.Sc2Api.RequestQuickSave) request_); } if (requestCase_ == 7) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, (SC2APIProtocol.Sc2Api.RequestQuickLoad) request_); } if (requestCase_ == 8) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, (SC2APIProtocol.Sc2Api.RequestQuit) request_); } if (requestCase_ == 9) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, (SC2APIProtocol.Sc2Api.RequestGameInfo) request_); } if (requestCase_ == 10) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(10, (SC2APIProtocol.Sc2Api.RequestObservation) request_); } if (requestCase_ == 11) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(11, (SC2APIProtocol.Sc2Api.RequestAction) request_); } if (requestCase_ == 12) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(12, (SC2APIProtocol.Sc2Api.RequestStep) request_); } if (requestCase_ == 13) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(13, (SC2APIProtocol.Sc2Api.RequestData) request_); } if (requestCase_ == 14) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(14, (SC2APIProtocol.Query.RequestQuery) request_); } if (requestCase_ == 15) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(15, (SC2APIProtocol.Sc2Api.RequestSaveReplay) request_); } if (requestCase_ == 16) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(16, (SC2APIProtocol.Sc2Api.RequestReplayInfo) request_); } if (requestCase_ == 17) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(17, (SC2APIProtocol.Sc2Api.RequestAvailableMaps) request_); } if (requestCase_ == 18) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(18, (SC2APIProtocol.Sc2Api.RequestSaveMap) request_); } if (requestCase_ == 19) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(19, (SC2APIProtocol.Sc2Api.RequestPing) request_); } if (requestCase_ == 20) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(20, (SC2APIProtocol.Sc2Api.RequestDebug) request_); } if (requestCase_ == 21) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(21, (SC2APIProtocol.Sc2Api.RequestObserverAction) request_); } if (requestCase_ == 22) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(22, (SC2APIProtocol.Sc2Api.RequestMapCommand) request_); } if (((bitField0_ & 0x00400000) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(97, id_); } 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.Sc2Api.Request)) { return super.equals(obj); } SC2APIProtocol.Sc2Api.Request other = (SC2APIProtocol.Sc2Api.Request) obj; if (hasId() != other.hasId()) return false; if (hasId()) { if (getId() != other.getId()) return false; } if (!getRequestCase().equals(other.getRequestCase())) return false; switch (requestCase_) { case 1: if (!getCreateGame() .equals(other.getCreateGame())) return false; break; case 2: if (!getJoinGame() .equals(other.getJoinGame())) return false; break; case 3: if (!getRestartGame() .equals(other.getRestartGame())) return false; break; case 4: if (!getStartReplay() .equals(other.getStartReplay())) return false; break; case 5: if (!getLeaveGame() .equals(other.getLeaveGame())) return false; break; case 6: if (!getQuickSave() .equals(other.getQuickSave())) return false; break; case 7: if (!getQuickLoad() .equals(other.getQuickLoad())) return false; break; case 8: if (!getQuit() .equals(other.getQuit())) return false; break; case 9: if (!getGameInfo() .equals(other.getGameInfo())) return false; break; case 10: if (!getObservation() .equals(other.getObservation())) return false; break; case 11: if (!getAction() .equals(other.getAction())) return false; break; case 21: if (!getObsAction() .equals(other.getObsAction())) return false; break; case 12: if (!getStep() .equals(other.getStep())) return false; break; case 13: if (!getData() .equals(other.getData())) return false; break; case 14: if (!getQuery() .equals(other.getQuery())) return false; break; case 15: if (!getSaveReplay() .equals(other.getSaveReplay())) return false; break; case 22: if (!getMapCommand() .equals(other.getMapCommand())) return false; break; case 16: if (!getReplayInfo() .equals(other.getReplayInfo())) return false; break; case 17: if (!getAvailableMaps() .equals(other.getAvailableMaps())) return false; break; case 18: if (!getSaveMap() .equals(other.getSaveMap())) return false; break; case 19: if (!getPing() .equals(other.getPing())) return false; break; case 20: if (!getDebug() .equals(other.getDebug())) 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(); if (hasId()) { hash = (37 * hash) + ID_FIELD_NUMBER; hash = (53 * hash) + getId(); } switch (requestCase_) { case 1: hash = (37 * hash) + CREATE_GAME_FIELD_NUMBER; hash = (53 * hash) + getCreateGame().hashCode(); break; case 2: hash = (37 * hash) + JOIN_GAME_FIELD_NUMBER; hash = (53 * hash) + getJoinGame().hashCode(); break; case 3: hash = (37 * hash) + RESTART_GAME_FIELD_NUMBER; hash = (53 * hash) + getRestartGame().hashCode(); break; case 4: hash = (37 * hash) + START_REPLAY_FIELD_NUMBER; hash = (53 * hash) + getStartReplay().hashCode(); break; case 5: hash = (37 * hash) + LEAVE_GAME_FIELD_NUMBER; hash = (53 * hash) + getLeaveGame().hashCode(); break; case 6: hash = (37 * hash) + QUICK_SAVE_FIELD_NUMBER; hash = (53 * hash) + getQuickSave().hashCode(); break; case 7: hash = (37 * hash) + QUICK_LOAD_FIELD_NUMBER; hash = (53 * hash) + getQuickLoad().hashCode(); break; case 8: hash = (37 * hash) + QUIT_FIELD_NUMBER; hash = (53 * hash) + getQuit().hashCode(); break; case 9: hash = (37 * hash) + GAME_INFO_FIELD_NUMBER; hash = (53 * hash) + getGameInfo().hashCode(); break; case 10: hash = (37 * hash) + OBSERVATION_FIELD_NUMBER; hash = (53 * hash) + getObservation().hashCode(); break; case 11: hash = (37 * hash) + ACTION_FIELD_NUMBER; hash = (53 * hash) + getAction().hashCode(); break; case 21: hash = (37 * hash) + OBS_ACTION_FIELD_NUMBER; hash = (53 * hash) + getObsAction().hashCode(); break; case 12: hash = (37 * hash) + STEP_FIELD_NUMBER; hash = (53 * hash) + getStep().hashCode(); break; case 13: hash = (37 * hash) + DATA_FIELD_NUMBER; hash = (53 * hash) + getData().hashCode(); break; case 14: hash = (37 * hash) + QUERY_FIELD_NUMBER; hash = (53 * hash) + getQuery().hashCode(); break; case 15: hash = (37 * hash) + SAVE_REPLAY_FIELD_NUMBER; hash = (53 * hash) + getSaveReplay().hashCode(); break; case 22: hash = (37 * hash) + MAP_COMMAND_FIELD_NUMBER; hash = (53 * hash) + getMapCommand().hashCode(); break; case 16: hash = (37 * hash) + REPLAY_INFO_FIELD_NUMBER; hash = (53 * hash) + getReplayInfo().hashCode(); break; case 17: hash = (37 * hash) + AVAILABLE_MAPS_FIELD_NUMBER; hash = (53 * hash) + getAvailableMaps().hashCode(); break; case 18: hash = (37 * hash) + SAVE_MAP_FIELD_NUMBER; hash = (53 * hash) + getSaveMap().hashCode(); break; case 19: hash = (37 * hash) + PING_FIELD_NUMBER; hash = (53 * hash) + getPing().hashCode(); break; case 20: hash = (37 * hash) + DEBUG_FIELD_NUMBER; hash = (53 * hash) + getDebug().hashCode(); break; case 0: default: } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static SC2APIProtocol.Sc2Api.Request parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.Request parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.Request parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.Request parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.Request parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.Request parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.Request parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.Request 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.Sc2Api.Request parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.Request 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.Sc2Api.Request parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.Request 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.Sc2Api.Request 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.Request} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:SC2APIProtocol.Request) SC2APIProtocol.Sc2Api.RequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_Request_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_Request_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Sc2Api.Request.class, SC2APIProtocol.Sc2Api.Request.Builder.class); } // Construct using SC2APIProtocol.Sc2Api.Request.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); if (createGameBuilder_ != null) { createGameBuilder_.clear(); } if (joinGameBuilder_ != null) { joinGameBuilder_.clear(); } if (restartGameBuilder_ != null) { restartGameBuilder_.clear(); } if (startReplayBuilder_ != null) { startReplayBuilder_.clear(); } if (leaveGameBuilder_ != null) { leaveGameBuilder_.clear(); } if (quickSaveBuilder_ != null) { quickSaveBuilder_.clear(); } if (quickLoadBuilder_ != null) { quickLoadBuilder_.clear(); } if (quitBuilder_ != null) { quitBuilder_.clear(); } if (gameInfoBuilder_ != null) { gameInfoBuilder_.clear(); } if (observationBuilder_ != null) { observationBuilder_.clear(); } if (actionBuilder_ != null) { actionBuilder_.clear(); } if (obsActionBuilder_ != null) { obsActionBuilder_.clear(); } if (stepBuilder_ != null) { stepBuilder_.clear(); } if (dataBuilder_ != null) { dataBuilder_.clear(); } if (queryBuilder_ != null) { queryBuilder_.clear(); } if (saveReplayBuilder_ != null) { saveReplayBuilder_.clear(); } if (mapCommandBuilder_ != null) { mapCommandBuilder_.clear(); } if (replayInfoBuilder_ != null) { replayInfoBuilder_.clear(); } if (availableMapsBuilder_ != null) { availableMapsBuilder_.clear(); } if (saveMapBuilder_ != null) { saveMapBuilder_.clear(); } if (pingBuilder_ != null) { pingBuilder_.clear(); } if (debugBuilder_ != null) { debugBuilder_.clear(); } id_ = 0; bitField0_ = (bitField0_ & ~0x00400000); requestCase_ = 0; request_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_Request_descriptor; } @java.lang.Override public SC2APIProtocol.Sc2Api.Request getDefaultInstanceForType() { return SC2APIProtocol.Sc2Api.Request.getDefaultInstance(); } @java.lang.Override public SC2APIProtocol.Sc2Api.Request build() { SC2APIProtocol.Sc2Api.Request result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public SC2APIProtocol.Sc2Api.Request buildPartial() { SC2APIProtocol.Sc2Api.Request result = new SC2APIProtocol.Sc2Api.Request(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (requestCase_ == 1) { if (createGameBuilder_ == null) { result.request_ = request_; } else { result.request_ = createGameBuilder_.build(); } } if (requestCase_ == 2) { if (joinGameBuilder_ == null) { result.request_ = request_; } else { result.request_ = joinGameBuilder_.build(); } } if (requestCase_ == 3) { if (restartGameBuilder_ == null) { result.request_ = request_; } else { result.request_ = restartGameBuilder_.build(); } } if (requestCase_ == 4) { if (startReplayBuilder_ == null) { result.request_ = request_; } else { result.request_ = startReplayBuilder_.build(); } } if (requestCase_ == 5) { if (leaveGameBuilder_ == null) { result.request_ = request_; } else { result.request_ = leaveGameBuilder_.build(); } } if (requestCase_ == 6) { if (quickSaveBuilder_ == null) { result.request_ = request_; } else { result.request_ = quickSaveBuilder_.build(); } } if (requestCase_ == 7) { if (quickLoadBuilder_ == null) { result.request_ = request_; } else { result.request_ = quickLoadBuilder_.build(); } } if (requestCase_ == 8) { if (quitBuilder_ == null) { result.request_ = request_; } else { result.request_ = quitBuilder_.build(); } } if (requestCase_ == 9) { if (gameInfoBuilder_ == null) { result.request_ = request_; } else { result.request_ = gameInfoBuilder_.build(); } } if (requestCase_ == 10) { if (observationBuilder_ == null) { result.request_ = request_; } else { result.request_ = observationBuilder_.build(); } } if (requestCase_ == 11) { if (actionBuilder_ == null) { result.request_ = request_; } else { result.request_ = actionBuilder_.build(); } } if (requestCase_ == 21) { if (obsActionBuilder_ == null) { result.request_ = request_; } else { result.request_ = obsActionBuilder_.build(); } } if (requestCase_ == 12) { if (stepBuilder_ == null) { result.request_ = request_; } else { result.request_ = stepBuilder_.build(); } } if (requestCase_ == 13) { if (dataBuilder_ == null) { result.request_ = request_; } else { result.request_ = dataBuilder_.build(); } } if (requestCase_ == 14) { if (queryBuilder_ == null) { result.request_ = request_; } else { result.request_ = queryBuilder_.build(); } } if (requestCase_ == 15) { if (saveReplayBuilder_ == null) { result.request_ = request_; } else { result.request_ = saveReplayBuilder_.build(); } } if (requestCase_ == 22) { if (mapCommandBuilder_ == null) { result.request_ = request_; } else { result.request_ = mapCommandBuilder_.build(); } } if (requestCase_ == 16) { if (replayInfoBuilder_ == null) { result.request_ = request_; } else { result.request_ = replayInfoBuilder_.build(); } } if (requestCase_ == 17) { if (availableMapsBuilder_ == null) { result.request_ = request_; } else { result.request_ = availableMapsBuilder_.build(); } } if (requestCase_ == 18) { if (saveMapBuilder_ == null) { result.request_ = request_; } else { result.request_ = saveMapBuilder_.build(); } } if (requestCase_ == 19) { if (pingBuilder_ == null) { result.request_ = request_; } else { result.request_ = pingBuilder_.build(); } } if (requestCase_ == 20) { if (debugBuilder_ == null) { result.request_ = request_; } else { result.request_ = debugBuilder_.build(); } } if (((from_bitField0_ & 0x00400000) != 0)) { result.id_ = id_; to_bitField0_ |= 0x00400000; } result.bitField0_ = to_bitField0_; result.requestCase_ = requestCase_; 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.Sc2Api.Request) { return mergeFrom((SC2APIProtocol.Sc2Api.Request)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(SC2APIProtocol.Sc2Api.Request other) { if (other == SC2APIProtocol.Sc2Api.Request.getDefaultInstance()) return this; if (other.hasId()) { setId(other.getId()); } switch (other.getRequestCase()) { case CREATE_GAME: { mergeCreateGame(other.getCreateGame()); break; } case JOIN_GAME: { mergeJoinGame(other.getJoinGame()); break; } case RESTART_GAME: { mergeRestartGame(other.getRestartGame()); break; } case START_REPLAY: { mergeStartReplay(other.getStartReplay()); break; } case LEAVE_GAME: { mergeLeaveGame(other.getLeaveGame()); break; } case QUICK_SAVE: { mergeQuickSave(other.getQuickSave()); break; } case QUICK_LOAD: { mergeQuickLoad(other.getQuickLoad()); break; } case QUIT: { mergeQuit(other.getQuit()); break; } case GAME_INFO: { mergeGameInfo(other.getGameInfo()); break; } case OBSERVATION: { mergeObservation(other.getObservation()); break; } case ACTION: { mergeAction(other.getAction()); break; } case OBS_ACTION: { mergeObsAction(other.getObsAction()); break; } case STEP: { mergeStep(other.getStep()); break; } case DATA: { mergeData(other.getData()); break; } case QUERY: { mergeQuery(other.getQuery()); break; } case SAVE_REPLAY: { mergeSaveReplay(other.getSaveReplay()); break; } case MAP_COMMAND: { mergeMapCommand(other.getMapCommand()); break; } case REPLAY_INFO: { mergeReplayInfo(other.getReplayInfo()); break; } case AVAILABLE_MAPS: { mergeAvailableMaps(other.getAvailableMaps()); break; } case SAVE_MAP: { mergeSaveMap(other.getSaveMap()); break; } case PING: { mergePing(other.getPing()); break; } case DEBUG: { mergeDebug(other.getDebug()); break; } case REQUEST_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( getCreateGameFieldBuilder().getBuilder(), extensionRegistry); requestCase_ = 1; break; } // case 10 case 18: { input.readMessage( getJoinGameFieldBuilder().getBuilder(), extensionRegistry); requestCase_ = 2; break; } // case 18 case 26: { input.readMessage( getRestartGameFieldBuilder().getBuilder(), extensionRegistry); requestCase_ = 3; break; } // case 26 case 34: { input.readMessage( getStartReplayFieldBuilder().getBuilder(), extensionRegistry); requestCase_ = 4; break; } // case 34 case 42: { input.readMessage( getLeaveGameFieldBuilder().getBuilder(), extensionRegistry); requestCase_ = 5; break; } // case 42 case 50: { input.readMessage( getQuickSaveFieldBuilder().getBuilder(), extensionRegistry); requestCase_ = 6; break; } // case 50 case 58: { input.readMessage( getQuickLoadFieldBuilder().getBuilder(), extensionRegistry); requestCase_ = 7; break; } // case 58 case 66: { input.readMessage( getQuitFieldBuilder().getBuilder(), extensionRegistry); requestCase_ = 8; break; } // case 66 case 74: { input.readMessage( getGameInfoFieldBuilder().getBuilder(), extensionRegistry); requestCase_ = 9; break; } // case 74 case 82: { input.readMessage( getObservationFieldBuilder().getBuilder(), extensionRegistry); requestCase_ = 10; break; } // case 82 case 90: { input.readMessage( getActionFieldBuilder().getBuilder(), extensionRegistry); requestCase_ = 11; break; } // case 90 case 98: { input.readMessage( getStepFieldBuilder().getBuilder(), extensionRegistry); requestCase_ = 12; break; } // case 98 case 106: { input.readMessage( getDataFieldBuilder().getBuilder(), extensionRegistry); requestCase_ = 13; break; } // case 106 case 114: { input.readMessage( getQueryFieldBuilder().getBuilder(), extensionRegistry); requestCase_ = 14; break; } // case 114 case 122: { input.readMessage( getSaveReplayFieldBuilder().getBuilder(), extensionRegistry); requestCase_ = 15; break; } // case 122 case 130: { input.readMessage( getReplayInfoFieldBuilder().getBuilder(), extensionRegistry); requestCase_ = 16; break; } // case 130 case 138: { input.readMessage( getAvailableMapsFieldBuilder().getBuilder(), extensionRegistry); requestCase_ = 17; break; } // case 138 case 146: { input.readMessage( getSaveMapFieldBuilder().getBuilder(), extensionRegistry); requestCase_ = 18; break; } // case 146 case 154: { input.readMessage( getPingFieldBuilder().getBuilder(), extensionRegistry); requestCase_ = 19; break; } // case 154 case 162: { input.readMessage( getDebugFieldBuilder().getBuilder(), extensionRegistry); requestCase_ = 20; break; } // case 162 case 170: { input.readMessage( getObsActionFieldBuilder().getBuilder(), extensionRegistry); requestCase_ = 21; break; } // case 170 case 178: { input.readMessage( getMapCommandFieldBuilder().getBuilder(), extensionRegistry); requestCase_ = 22; break; } // case 178 case 776: { id_ = input.readUInt32(); bitField0_ |= 0x00400000; break; } // case 776 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 requestCase_ = 0; private java.lang.Object request_; public RequestCase getRequestCase() { return RequestCase.forNumber( requestCase_); } public Builder clearRequest() { requestCase_ = 0; request_ = null; onChanged(); return this; } private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.RequestCreateGame, SC2APIProtocol.Sc2Api.RequestCreateGame.Builder, SC2APIProtocol.Sc2Api.RequestCreateGameOrBuilder> createGameBuilder_; /** *
       * Game Setup
       * 
* * .SC2APIProtocol.RequestCreateGame create_game = 1; * @return Whether the createGame field is set. */ @java.lang.Override public boolean hasCreateGame() { return requestCase_ == 1; } /** *
       * Game Setup
       * 
* * .SC2APIProtocol.RequestCreateGame create_game = 1; * @return The createGame. */ @java.lang.Override public SC2APIProtocol.Sc2Api.RequestCreateGame getCreateGame() { if (createGameBuilder_ == null) { if (requestCase_ == 1) { return (SC2APIProtocol.Sc2Api.RequestCreateGame) request_; } return SC2APIProtocol.Sc2Api.RequestCreateGame.getDefaultInstance(); } else { if (requestCase_ == 1) { return createGameBuilder_.getMessage(); } return SC2APIProtocol.Sc2Api.RequestCreateGame.getDefaultInstance(); } } /** *
       * Game Setup
       * 
* * .SC2APIProtocol.RequestCreateGame create_game = 1; */ public Builder setCreateGame(SC2APIProtocol.Sc2Api.RequestCreateGame value) { if (createGameBuilder_ == null) { if (value == null) { throw new NullPointerException(); } request_ = value; onChanged(); } else { createGameBuilder_.setMessage(value); } requestCase_ = 1; return this; } /** *
       * Game Setup
       * 
* * .SC2APIProtocol.RequestCreateGame create_game = 1; */ public Builder setCreateGame( SC2APIProtocol.Sc2Api.RequestCreateGame.Builder builderForValue) { if (createGameBuilder_ == null) { request_ = builderForValue.build(); onChanged(); } else { createGameBuilder_.setMessage(builderForValue.build()); } requestCase_ = 1; return this; } /** *
       * Game Setup
       * 
* * .SC2APIProtocol.RequestCreateGame create_game = 1; */ public Builder mergeCreateGame(SC2APIProtocol.Sc2Api.RequestCreateGame value) { if (createGameBuilder_ == null) { if (requestCase_ == 1 && request_ != SC2APIProtocol.Sc2Api.RequestCreateGame.getDefaultInstance()) { request_ = SC2APIProtocol.Sc2Api.RequestCreateGame.newBuilder((SC2APIProtocol.Sc2Api.RequestCreateGame) request_) .mergeFrom(value).buildPartial(); } else { request_ = value; } onChanged(); } else { if (requestCase_ == 1) { createGameBuilder_.mergeFrom(value); } else { createGameBuilder_.setMessage(value); } } requestCase_ = 1; return this; } /** *
       * Game Setup
       * 
* * .SC2APIProtocol.RequestCreateGame create_game = 1; */ public Builder clearCreateGame() { if (createGameBuilder_ == null) { if (requestCase_ == 1) { requestCase_ = 0; request_ = null; onChanged(); } } else { if (requestCase_ == 1) { requestCase_ = 0; request_ = null; } createGameBuilder_.clear(); } return this; } /** *
       * Game Setup
       * 
* * .SC2APIProtocol.RequestCreateGame create_game = 1; */ public SC2APIProtocol.Sc2Api.RequestCreateGame.Builder getCreateGameBuilder() { return getCreateGameFieldBuilder().getBuilder(); } /** *
       * Game Setup
       * 
* * .SC2APIProtocol.RequestCreateGame create_game = 1; */ @java.lang.Override public SC2APIProtocol.Sc2Api.RequestCreateGameOrBuilder getCreateGameOrBuilder() { if ((requestCase_ == 1) && (createGameBuilder_ != null)) { return createGameBuilder_.getMessageOrBuilder(); } else { if (requestCase_ == 1) { return (SC2APIProtocol.Sc2Api.RequestCreateGame) request_; } return SC2APIProtocol.Sc2Api.RequestCreateGame.getDefaultInstance(); } } /** *
       * Game Setup
       * 
* * .SC2APIProtocol.RequestCreateGame create_game = 1; */ private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.RequestCreateGame, SC2APIProtocol.Sc2Api.RequestCreateGame.Builder, SC2APIProtocol.Sc2Api.RequestCreateGameOrBuilder> getCreateGameFieldBuilder() { if (createGameBuilder_ == null) { if (!(requestCase_ == 1)) { request_ = SC2APIProtocol.Sc2Api.RequestCreateGame.getDefaultInstance(); } createGameBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.RequestCreateGame, SC2APIProtocol.Sc2Api.RequestCreateGame.Builder, SC2APIProtocol.Sc2Api.RequestCreateGameOrBuilder>( (SC2APIProtocol.Sc2Api.RequestCreateGame) request_, getParentForChildren(), isClean()); request_ = null; } requestCase_ = 1; onChanged();; return createGameBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.RequestJoinGame, SC2APIProtocol.Sc2Api.RequestJoinGame.Builder, SC2APIProtocol.Sc2Api.RequestJoinGameOrBuilder> joinGameBuilder_; /** *
       * Send to host and all clients for game to begin.
       * 
* * .SC2APIProtocol.RequestJoinGame join_game = 2; * @return Whether the joinGame field is set. */ @java.lang.Override public boolean hasJoinGame() { return requestCase_ == 2; } /** *
       * Send to host and all clients for game to begin.
       * 
* * .SC2APIProtocol.RequestJoinGame join_game = 2; * @return The joinGame. */ @java.lang.Override public SC2APIProtocol.Sc2Api.RequestJoinGame getJoinGame() { if (joinGameBuilder_ == null) { if (requestCase_ == 2) { return (SC2APIProtocol.Sc2Api.RequestJoinGame) request_; } return SC2APIProtocol.Sc2Api.RequestJoinGame.getDefaultInstance(); } else { if (requestCase_ == 2) { return joinGameBuilder_.getMessage(); } return SC2APIProtocol.Sc2Api.RequestJoinGame.getDefaultInstance(); } } /** *
       * Send to host and all clients for game to begin.
       * 
* * .SC2APIProtocol.RequestJoinGame join_game = 2; */ public Builder setJoinGame(SC2APIProtocol.Sc2Api.RequestJoinGame value) { if (joinGameBuilder_ == null) { if (value == null) { throw new NullPointerException(); } request_ = value; onChanged(); } else { joinGameBuilder_.setMessage(value); } requestCase_ = 2; return this; } /** *
       * Send to host and all clients for game to begin.
       * 
* * .SC2APIProtocol.RequestJoinGame join_game = 2; */ public Builder setJoinGame( SC2APIProtocol.Sc2Api.RequestJoinGame.Builder builderForValue) { if (joinGameBuilder_ == null) { request_ = builderForValue.build(); onChanged(); } else { joinGameBuilder_.setMessage(builderForValue.build()); } requestCase_ = 2; return this; } /** *
       * Send to host and all clients for game to begin.
       * 
* * .SC2APIProtocol.RequestJoinGame join_game = 2; */ public Builder mergeJoinGame(SC2APIProtocol.Sc2Api.RequestJoinGame value) { if (joinGameBuilder_ == null) { if (requestCase_ == 2 && request_ != SC2APIProtocol.Sc2Api.RequestJoinGame.getDefaultInstance()) { request_ = SC2APIProtocol.Sc2Api.RequestJoinGame.newBuilder((SC2APIProtocol.Sc2Api.RequestJoinGame) request_) .mergeFrom(value).buildPartial(); } else { request_ = value; } onChanged(); } else { if (requestCase_ == 2) { joinGameBuilder_.mergeFrom(value); } else { joinGameBuilder_.setMessage(value); } } requestCase_ = 2; return this; } /** *
       * Send to host and all clients for game to begin.
       * 
* * .SC2APIProtocol.RequestJoinGame join_game = 2; */ public Builder clearJoinGame() { if (joinGameBuilder_ == null) { if (requestCase_ == 2) { requestCase_ = 0; request_ = null; onChanged(); } } else { if (requestCase_ == 2) { requestCase_ = 0; request_ = null; } joinGameBuilder_.clear(); } return this; } /** *
       * Send to host and all clients for game to begin.
       * 
* * .SC2APIProtocol.RequestJoinGame join_game = 2; */ public SC2APIProtocol.Sc2Api.RequestJoinGame.Builder getJoinGameBuilder() { return getJoinGameFieldBuilder().getBuilder(); } /** *
       * Send to host and all clients for game to begin.
       * 
* * .SC2APIProtocol.RequestJoinGame join_game = 2; */ @java.lang.Override public SC2APIProtocol.Sc2Api.RequestJoinGameOrBuilder getJoinGameOrBuilder() { if ((requestCase_ == 2) && (joinGameBuilder_ != null)) { return joinGameBuilder_.getMessageOrBuilder(); } else { if (requestCase_ == 2) { return (SC2APIProtocol.Sc2Api.RequestJoinGame) request_; } return SC2APIProtocol.Sc2Api.RequestJoinGame.getDefaultInstance(); } } /** *
       * Send to host and all clients for game to begin.
       * 
* * .SC2APIProtocol.RequestJoinGame join_game = 2; */ private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.RequestJoinGame, SC2APIProtocol.Sc2Api.RequestJoinGame.Builder, SC2APIProtocol.Sc2Api.RequestJoinGameOrBuilder> getJoinGameFieldBuilder() { if (joinGameBuilder_ == null) { if (!(requestCase_ == 2)) { request_ = SC2APIProtocol.Sc2Api.RequestJoinGame.getDefaultInstance(); } joinGameBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.RequestJoinGame, SC2APIProtocol.Sc2Api.RequestJoinGame.Builder, SC2APIProtocol.Sc2Api.RequestJoinGameOrBuilder>( (SC2APIProtocol.Sc2Api.RequestJoinGame) request_, getParentForChildren(), isClean()); request_ = null; } requestCase_ = 2; onChanged();; return joinGameBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.RequestRestartGame, SC2APIProtocol.Sc2Api.RequestRestartGame.Builder, SC2APIProtocol.Sc2Api.RequestRestartGameOrBuilder> restartGameBuilder_; /** *
       * Single player only. Reinitializes the game with the same player setup.
       * 
* * .SC2APIProtocol.RequestRestartGame restart_game = 3; * @return Whether the restartGame field is set. */ @java.lang.Override public boolean hasRestartGame() { return requestCase_ == 3; } /** *
       * Single player only. Reinitializes the game with the same player setup.
       * 
* * .SC2APIProtocol.RequestRestartGame restart_game = 3; * @return The restartGame. */ @java.lang.Override public SC2APIProtocol.Sc2Api.RequestRestartGame getRestartGame() { if (restartGameBuilder_ == null) { if (requestCase_ == 3) { return (SC2APIProtocol.Sc2Api.RequestRestartGame) request_; } return SC2APIProtocol.Sc2Api.RequestRestartGame.getDefaultInstance(); } else { if (requestCase_ == 3) { return restartGameBuilder_.getMessage(); } return SC2APIProtocol.Sc2Api.RequestRestartGame.getDefaultInstance(); } } /** *
       * Single player only. Reinitializes the game with the same player setup.
       * 
* * .SC2APIProtocol.RequestRestartGame restart_game = 3; */ public Builder setRestartGame(SC2APIProtocol.Sc2Api.RequestRestartGame value) { if (restartGameBuilder_ == null) { if (value == null) { throw new NullPointerException(); } request_ = value; onChanged(); } else { restartGameBuilder_.setMessage(value); } requestCase_ = 3; return this; } /** *
       * Single player only. Reinitializes the game with the same player setup.
       * 
* * .SC2APIProtocol.RequestRestartGame restart_game = 3; */ public Builder setRestartGame( SC2APIProtocol.Sc2Api.RequestRestartGame.Builder builderForValue) { if (restartGameBuilder_ == null) { request_ = builderForValue.build(); onChanged(); } else { restartGameBuilder_.setMessage(builderForValue.build()); } requestCase_ = 3; return this; } /** *
       * Single player only. Reinitializes the game with the same player setup.
       * 
* * .SC2APIProtocol.RequestRestartGame restart_game = 3; */ public Builder mergeRestartGame(SC2APIProtocol.Sc2Api.RequestRestartGame value) { if (restartGameBuilder_ == null) { if (requestCase_ == 3 && request_ != SC2APIProtocol.Sc2Api.RequestRestartGame.getDefaultInstance()) { request_ = SC2APIProtocol.Sc2Api.RequestRestartGame.newBuilder((SC2APIProtocol.Sc2Api.RequestRestartGame) request_) .mergeFrom(value).buildPartial(); } else { request_ = value; } onChanged(); } else { if (requestCase_ == 3) { restartGameBuilder_.mergeFrom(value); } else { restartGameBuilder_.setMessage(value); } } requestCase_ = 3; return this; } /** *
       * Single player only. Reinitializes the game with the same player setup.
       * 
* * .SC2APIProtocol.RequestRestartGame restart_game = 3; */ public Builder clearRestartGame() { if (restartGameBuilder_ == null) { if (requestCase_ == 3) { requestCase_ = 0; request_ = null; onChanged(); } } else { if (requestCase_ == 3) { requestCase_ = 0; request_ = null; } restartGameBuilder_.clear(); } return this; } /** *
       * Single player only. Reinitializes the game with the same player setup.
       * 
* * .SC2APIProtocol.RequestRestartGame restart_game = 3; */ public SC2APIProtocol.Sc2Api.RequestRestartGame.Builder getRestartGameBuilder() { return getRestartGameFieldBuilder().getBuilder(); } /** *
       * Single player only. Reinitializes the game with the same player setup.
       * 
* * .SC2APIProtocol.RequestRestartGame restart_game = 3; */ @java.lang.Override public SC2APIProtocol.Sc2Api.RequestRestartGameOrBuilder getRestartGameOrBuilder() { if ((requestCase_ == 3) && (restartGameBuilder_ != null)) { return restartGameBuilder_.getMessageOrBuilder(); } else { if (requestCase_ == 3) { return (SC2APIProtocol.Sc2Api.RequestRestartGame) request_; } return SC2APIProtocol.Sc2Api.RequestRestartGame.getDefaultInstance(); } } /** *
       * Single player only. Reinitializes the game with the same player setup.
       * 
* * .SC2APIProtocol.RequestRestartGame restart_game = 3; */ private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.RequestRestartGame, SC2APIProtocol.Sc2Api.RequestRestartGame.Builder, SC2APIProtocol.Sc2Api.RequestRestartGameOrBuilder> getRestartGameFieldBuilder() { if (restartGameBuilder_ == null) { if (!(requestCase_ == 3)) { request_ = SC2APIProtocol.Sc2Api.RequestRestartGame.getDefaultInstance(); } restartGameBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.RequestRestartGame, SC2APIProtocol.Sc2Api.RequestRestartGame.Builder, SC2APIProtocol.Sc2Api.RequestRestartGameOrBuilder>( (SC2APIProtocol.Sc2Api.RequestRestartGame) request_, getParentForChildren(), isClean()); request_ = null; } requestCase_ = 3; onChanged();; return restartGameBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.RequestStartReplay, SC2APIProtocol.Sc2Api.RequestStartReplay.Builder, SC2APIProtocol.Sc2Api.RequestStartReplayOrBuilder> startReplayBuilder_; /** *
       * Start playing a replay.
       * 
* * .SC2APIProtocol.RequestStartReplay start_replay = 4; * @return Whether the startReplay field is set. */ @java.lang.Override public boolean hasStartReplay() { return requestCase_ == 4; } /** *
       * Start playing a replay.
       * 
* * .SC2APIProtocol.RequestStartReplay start_replay = 4; * @return The startReplay. */ @java.lang.Override public SC2APIProtocol.Sc2Api.RequestStartReplay getStartReplay() { if (startReplayBuilder_ == null) { if (requestCase_ == 4) { return (SC2APIProtocol.Sc2Api.RequestStartReplay) request_; } return SC2APIProtocol.Sc2Api.RequestStartReplay.getDefaultInstance(); } else { if (requestCase_ == 4) { return startReplayBuilder_.getMessage(); } return SC2APIProtocol.Sc2Api.RequestStartReplay.getDefaultInstance(); } } /** *
       * Start playing a replay.
       * 
* * .SC2APIProtocol.RequestStartReplay start_replay = 4; */ public Builder setStartReplay(SC2APIProtocol.Sc2Api.RequestStartReplay value) { if (startReplayBuilder_ == null) { if (value == null) { throw new NullPointerException(); } request_ = value; onChanged(); } else { startReplayBuilder_.setMessage(value); } requestCase_ = 4; return this; } /** *
       * Start playing a replay.
       * 
* * .SC2APIProtocol.RequestStartReplay start_replay = 4; */ public Builder setStartReplay( SC2APIProtocol.Sc2Api.RequestStartReplay.Builder builderForValue) { if (startReplayBuilder_ == null) { request_ = builderForValue.build(); onChanged(); } else { startReplayBuilder_.setMessage(builderForValue.build()); } requestCase_ = 4; return this; } /** *
       * Start playing a replay.
       * 
* * .SC2APIProtocol.RequestStartReplay start_replay = 4; */ public Builder mergeStartReplay(SC2APIProtocol.Sc2Api.RequestStartReplay value) { if (startReplayBuilder_ == null) { if (requestCase_ == 4 && request_ != SC2APIProtocol.Sc2Api.RequestStartReplay.getDefaultInstance()) { request_ = SC2APIProtocol.Sc2Api.RequestStartReplay.newBuilder((SC2APIProtocol.Sc2Api.RequestStartReplay) request_) .mergeFrom(value).buildPartial(); } else { request_ = value; } onChanged(); } else { if (requestCase_ == 4) { startReplayBuilder_.mergeFrom(value); } else { startReplayBuilder_.setMessage(value); } } requestCase_ = 4; return this; } /** *
       * Start playing a replay.
       * 
* * .SC2APIProtocol.RequestStartReplay start_replay = 4; */ public Builder clearStartReplay() { if (startReplayBuilder_ == null) { if (requestCase_ == 4) { requestCase_ = 0; request_ = null; onChanged(); } } else { if (requestCase_ == 4) { requestCase_ = 0; request_ = null; } startReplayBuilder_.clear(); } return this; } /** *
       * Start playing a replay.
       * 
* * .SC2APIProtocol.RequestStartReplay start_replay = 4; */ public SC2APIProtocol.Sc2Api.RequestStartReplay.Builder getStartReplayBuilder() { return getStartReplayFieldBuilder().getBuilder(); } /** *
       * Start playing a replay.
       * 
* * .SC2APIProtocol.RequestStartReplay start_replay = 4; */ @java.lang.Override public SC2APIProtocol.Sc2Api.RequestStartReplayOrBuilder getStartReplayOrBuilder() { if ((requestCase_ == 4) && (startReplayBuilder_ != null)) { return startReplayBuilder_.getMessageOrBuilder(); } else { if (requestCase_ == 4) { return (SC2APIProtocol.Sc2Api.RequestStartReplay) request_; } return SC2APIProtocol.Sc2Api.RequestStartReplay.getDefaultInstance(); } } /** *
       * Start playing a replay.
       * 
* * .SC2APIProtocol.RequestStartReplay start_replay = 4; */ private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.RequestStartReplay, SC2APIProtocol.Sc2Api.RequestStartReplay.Builder, SC2APIProtocol.Sc2Api.RequestStartReplayOrBuilder> getStartReplayFieldBuilder() { if (startReplayBuilder_ == null) { if (!(requestCase_ == 4)) { request_ = SC2APIProtocol.Sc2Api.RequestStartReplay.getDefaultInstance(); } startReplayBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.RequestStartReplay, SC2APIProtocol.Sc2Api.RequestStartReplay.Builder, SC2APIProtocol.Sc2Api.RequestStartReplayOrBuilder>( (SC2APIProtocol.Sc2Api.RequestStartReplay) request_, getParentForChildren(), isClean()); request_ = null; } requestCase_ = 4; onChanged();; return startReplayBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.RequestLeaveGame, SC2APIProtocol.Sc2Api.RequestLeaveGame.Builder, SC2APIProtocol.Sc2Api.RequestLeaveGameOrBuilder> leaveGameBuilder_; /** *
       * Multiplayer only. Disconnects from a multiplayer game, equivalent to surrender.
       * 
* * .SC2APIProtocol.RequestLeaveGame leave_game = 5; * @return Whether the leaveGame field is set. */ @java.lang.Override public boolean hasLeaveGame() { return requestCase_ == 5; } /** *
       * Multiplayer only. Disconnects from a multiplayer game, equivalent to surrender.
       * 
* * .SC2APIProtocol.RequestLeaveGame leave_game = 5; * @return The leaveGame. */ @java.lang.Override public SC2APIProtocol.Sc2Api.RequestLeaveGame getLeaveGame() { if (leaveGameBuilder_ == null) { if (requestCase_ == 5) { return (SC2APIProtocol.Sc2Api.RequestLeaveGame) request_; } return SC2APIProtocol.Sc2Api.RequestLeaveGame.getDefaultInstance(); } else { if (requestCase_ == 5) { return leaveGameBuilder_.getMessage(); } return SC2APIProtocol.Sc2Api.RequestLeaveGame.getDefaultInstance(); } } /** *
       * Multiplayer only. Disconnects from a multiplayer game, equivalent to surrender.
       * 
* * .SC2APIProtocol.RequestLeaveGame leave_game = 5; */ public Builder setLeaveGame(SC2APIProtocol.Sc2Api.RequestLeaveGame value) { if (leaveGameBuilder_ == null) { if (value == null) { throw new NullPointerException(); } request_ = value; onChanged(); } else { leaveGameBuilder_.setMessage(value); } requestCase_ = 5; return this; } /** *
       * Multiplayer only. Disconnects from a multiplayer game, equivalent to surrender.
       * 
* * .SC2APIProtocol.RequestLeaveGame leave_game = 5; */ public Builder setLeaveGame( SC2APIProtocol.Sc2Api.RequestLeaveGame.Builder builderForValue) { if (leaveGameBuilder_ == null) { request_ = builderForValue.build(); onChanged(); } else { leaveGameBuilder_.setMessage(builderForValue.build()); } requestCase_ = 5; return this; } /** *
       * Multiplayer only. Disconnects from a multiplayer game, equivalent to surrender.
       * 
* * .SC2APIProtocol.RequestLeaveGame leave_game = 5; */ public Builder mergeLeaveGame(SC2APIProtocol.Sc2Api.RequestLeaveGame value) { if (leaveGameBuilder_ == null) { if (requestCase_ == 5 && request_ != SC2APIProtocol.Sc2Api.RequestLeaveGame.getDefaultInstance()) { request_ = SC2APIProtocol.Sc2Api.RequestLeaveGame.newBuilder((SC2APIProtocol.Sc2Api.RequestLeaveGame) request_) .mergeFrom(value).buildPartial(); } else { request_ = value; } onChanged(); } else { if (requestCase_ == 5) { leaveGameBuilder_.mergeFrom(value); } else { leaveGameBuilder_.setMessage(value); } } requestCase_ = 5; return this; } /** *
       * Multiplayer only. Disconnects from a multiplayer game, equivalent to surrender.
       * 
* * .SC2APIProtocol.RequestLeaveGame leave_game = 5; */ public Builder clearLeaveGame() { if (leaveGameBuilder_ == null) { if (requestCase_ == 5) { requestCase_ = 0; request_ = null; onChanged(); } } else { if (requestCase_ == 5) { requestCase_ = 0; request_ = null; } leaveGameBuilder_.clear(); } return this; } /** *
       * Multiplayer only. Disconnects from a multiplayer game, equivalent to surrender.
       * 
* * .SC2APIProtocol.RequestLeaveGame leave_game = 5; */ public SC2APIProtocol.Sc2Api.RequestLeaveGame.Builder getLeaveGameBuilder() { return getLeaveGameFieldBuilder().getBuilder(); } /** *
       * Multiplayer only. Disconnects from a multiplayer game, equivalent to surrender.
       * 
* * .SC2APIProtocol.RequestLeaveGame leave_game = 5; */ @java.lang.Override public SC2APIProtocol.Sc2Api.RequestLeaveGameOrBuilder getLeaveGameOrBuilder() { if ((requestCase_ == 5) && (leaveGameBuilder_ != null)) { return leaveGameBuilder_.getMessageOrBuilder(); } else { if (requestCase_ == 5) { return (SC2APIProtocol.Sc2Api.RequestLeaveGame) request_; } return SC2APIProtocol.Sc2Api.RequestLeaveGame.getDefaultInstance(); } } /** *
       * Multiplayer only. Disconnects from a multiplayer game, equivalent to surrender.
       * 
* * .SC2APIProtocol.RequestLeaveGame leave_game = 5; */ private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.RequestLeaveGame, SC2APIProtocol.Sc2Api.RequestLeaveGame.Builder, SC2APIProtocol.Sc2Api.RequestLeaveGameOrBuilder> getLeaveGameFieldBuilder() { if (leaveGameBuilder_ == null) { if (!(requestCase_ == 5)) { request_ = SC2APIProtocol.Sc2Api.RequestLeaveGame.getDefaultInstance(); } leaveGameBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.RequestLeaveGame, SC2APIProtocol.Sc2Api.RequestLeaveGame.Builder, SC2APIProtocol.Sc2Api.RequestLeaveGameOrBuilder>( (SC2APIProtocol.Sc2Api.RequestLeaveGame) request_, getParentForChildren(), isClean()); request_ = null; } requestCase_ = 5; onChanged();; return leaveGameBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.RequestQuickSave, SC2APIProtocol.Sc2Api.RequestQuickSave.Builder, SC2APIProtocol.Sc2Api.RequestQuickSaveOrBuilder> quickSaveBuilder_; /** *
       * Saves game to an in-memory bookmark.
       * 
* * .SC2APIProtocol.RequestQuickSave quick_save = 6; * @return Whether the quickSave field is set. */ @java.lang.Override public boolean hasQuickSave() { return requestCase_ == 6; } /** *
       * Saves game to an in-memory bookmark.
       * 
* * .SC2APIProtocol.RequestQuickSave quick_save = 6; * @return The quickSave. */ @java.lang.Override public SC2APIProtocol.Sc2Api.RequestQuickSave getQuickSave() { if (quickSaveBuilder_ == null) { if (requestCase_ == 6) { return (SC2APIProtocol.Sc2Api.RequestQuickSave) request_; } return SC2APIProtocol.Sc2Api.RequestQuickSave.getDefaultInstance(); } else { if (requestCase_ == 6) { return quickSaveBuilder_.getMessage(); } return SC2APIProtocol.Sc2Api.RequestQuickSave.getDefaultInstance(); } } /** *
       * Saves game to an in-memory bookmark.
       * 
* * .SC2APIProtocol.RequestQuickSave quick_save = 6; */ public Builder setQuickSave(SC2APIProtocol.Sc2Api.RequestQuickSave value) { if (quickSaveBuilder_ == null) { if (value == null) { throw new NullPointerException(); } request_ = value; onChanged(); } else { quickSaveBuilder_.setMessage(value); } requestCase_ = 6; return this; } /** *
       * Saves game to an in-memory bookmark.
       * 
* * .SC2APIProtocol.RequestQuickSave quick_save = 6; */ public Builder setQuickSave( SC2APIProtocol.Sc2Api.RequestQuickSave.Builder builderForValue) { if (quickSaveBuilder_ == null) { request_ = builderForValue.build(); onChanged(); } else { quickSaveBuilder_.setMessage(builderForValue.build()); } requestCase_ = 6; return this; } /** *
       * Saves game to an in-memory bookmark.
       * 
* * .SC2APIProtocol.RequestQuickSave quick_save = 6; */ public Builder mergeQuickSave(SC2APIProtocol.Sc2Api.RequestQuickSave value) { if (quickSaveBuilder_ == null) { if (requestCase_ == 6 && request_ != SC2APIProtocol.Sc2Api.RequestQuickSave.getDefaultInstance()) { request_ = SC2APIProtocol.Sc2Api.RequestQuickSave.newBuilder((SC2APIProtocol.Sc2Api.RequestQuickSave) request_) .mergeFrom(value).buildPartial(); } else { request_ = value; } onChanged(); } else { if (requestCase_ == 6) { quickSaveBuilder_.mergeFrom(value); } else { quickSaveBuilder_.setMessage(value); } } requestCase_ = 6; return this; } /** *
       * Saves game to an in-memory bookmark.
       * 
* * .SC2APIProtocol.RequestQuickSave quick_save = 6; */ public Builder clearQuickSave() { if (quickSaveBuilder_ == null) { if (requestCase_ == 6) { requestCase_ = 0; request_ = null; onChanged(); } } else { if (requestCase_ == 6) { requestCase_ = 0; request_ = null; } quickSaveBuilder_.clear(); } return this; } /** *
       * Saves game to an in-memory bookmark.
       * 
* * .SC2APIProtocol.RequestQuickSave quick_save = 6; */ public SC2APIProtocol.Sc2Api.RequestQuickSave.Builder getQuickSaveBuilder() { return getQuickSaveFieldBuilder().getBuilder(); } /** *
       * Saves game to an in-memory bookmark.
       * 
* * .SC2APIProtocol.RequestQuickSave quick_save = 6; */ @java.lang.Override public SC2APIProtocol.Sc2Api.RequestQuickSaveOrBuilder getQuickSaveOrBuilder() { if ((requestCase_ == 6) && (quickSaveBuilder_ != null)) { return quickSaveBuilder_.getMessageOrBuilder(); } else { if (requestCase_ == 6) { return (SC2APIProtocol.Sc2Api.RequestQuickSave) request_; } return SC2APIProtocol.Sc2Api.RequestQuickSave.getDefaultInstance(); } } /** *
       * Saves game to an in-memory bookmark.
       * 
* * .SC2APIProtocol.RequestQuickSave quick_save = 6; */ private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.RequestQuickSave, SC2APIProtocol.Sc2Api.RequestQuickSave.Builder, SC2APIProtocol.Sc2Api.RequestQuickSaveOrBuilder> getQuickSaveFieldBuilder() { if (quickSaveBuilder_ == null) { if (!(requestCase_ == 6)) { request_ = SC2APIProtocol.Sc2Api.RequestQuickSave.getDefaultInstance(); } quickSaveBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.RequestQuickSave, SC2APIProtocol.Sc2Api.RequestQuickSave.Builder, SC2APIProtocol.Sc2Api.RequestQuickSaveOrBuilder>( (SC2APIProtocol.Sc2Api.RequestQuickSave) request_, getParentForChildren(), isClean()); request_ = null; } requestCase_ = 6; onChanged();; return quickSaveBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.RequestQuickLoad, SC2APIProtocol.Sc2Api.RequestQuickLoad.Builder, SC2APIProtocol.Sc2Api.RequestQuickLoadOrBuilder> quickLoadBuilder_; /** *
       * Loads from an in-memory bookmark.
       * 
* * .SC2APIProtocol.RequestQuickLoad quick_load = 7; * @return Whether the quickLoad field is set. */ @java.lang.Override public boolean hasQuickLoad() { return requestCase_ == 7; } /** *
       * Loads from an in-memory bookmark.
       * 
* * .SC2APIProtocol.RequestQuickLoad quick_load = 7; * @return The quickLoad. */ @java.lang.Override public SC2APIProtocol.Sc2Api.RequestQuickLoad getQuickLoad() { if (quickLoadBuilder_ == null) { if (requestCase_ == 7) { return (SC2APIProtocol.Sc2Api.RequestQuickLoad) request_; } return SC2APIProtocol.Sc2Api.RequestQuickLoad.getDefaultInstance(); } else { if (requestCase_ == 7) { return quickLoadBuilder_.getMessage(); } return SC2APIProtocol.Sc2Api.RequestQuickLoad.getDefaultInstance(); } } /** *
       * Loads from an in-memory bookmark.
       * 
* * .SC2APIProtocol.RequestQuickLoad quick_load = 7; */ public Builder setQuickLoad(SC2APIProtocol.Sc2Api.RequestQuickLoad value) { if (quickLoadBuilder_ == null) { if (value == null) { throw new NullPointerException(); } request_ = value; onChanged(); } else { quickLoadBuilder_.setMessage(value); } requestCase_ = 7; return this; } /** *
       * Loads from an in-memory bookmark.
       * 
* * .SC2APIProtocol.RequestQuickLoad quick_load = 7; */ public Builder setQuickLoad( SC2APIProtocol.Sc2Api.RequestQuickLoad.Builder builderForValue) { if (quickLoadBuilder_ == null) { request_ = builderForValue.build(); onChanged(); } else { quickLoadBuilder_.setMessage(builderForValue.build()); } requestCase_ = 7; return this; } /** *
       * Loads from an in-memory bookmark.
       * 
* * .SC2APIProtocol.RequestQuickLoad quick_load = 7; */ public Builder mergeQuickLoad(SC2APIProtocol.Sc2Api.RequestQuickLoad value) { if (quickLoadBuilder_ == null) { if (requestCase_ == 7 && request_ != SC2APIProtocol.Sc2Api.RequestQuickLoad.getDefaultInstance()) { request_ = SC2APIProtocol.Sc2Api.RequestQuickLoad.newBuilder((SC2APIProtocol.Sc2Api.RequestQuickLoad) request_) .mergeFrom(value).buildPartial(); } else { request_ = value; } onChanged(); } else { if (requestCase_ == 7) { quickLoadBuilder_.mergeFrom(value); } else { quickLoadBuilder_.setMessage(value); } } requestCase_ = 7; return this; } /** *
       * Loads from an in-memory bookmark.
       * 
* * .SC2APIProtocol.RequestQuickLoad quick_load = 7; */ public Builder clearQuickLoad() { if (quickLoadBuilder_ == null) { if (requestCase_ == 7) { requestCase_ = 0; request_ = null; onChanged(); } } else { if (requestCase_ == 7) { requestCase_ = 0; request_ = null; } quickLoadBuilder_.clear(); } return this; } /** *
       * Loads from an in-memory bookmark.
       * 
* * .SC2APIProtocol.RequestQuickLoad quick_load = 7; */ public SC2APIProtocol.Sc2Api.RequestQuickLoad.Builder getQuickLoadBuilder() { return getQuickLoadFieldBuilder().getBuilder(); } /** *
       * Loads from an in-memory bookmark.
       * 
* * .SC2APIProtocol.RequestQuickLoad quick_load = 7; */ @java.lang.Override public SC2APIProtocol.Sc2Api.RequestQuickLoadOrBuilder getQuickLoadOrBuilder() { if ((requestCase_ == 7) && (quickLoadBuilder_ != null)) { return quickLoadBuilder_.getMessageOrBuilder(); } else { if (requestCase_ == 7) { return (SC2APIProtocol.Sc2Api.RequestQuickLoad) request_; } return SC2APIProtocol.Sc2Api.RequestQuickLoad.getDefaultInstance(); } } /** *
       * Loads from an in-memory bookmark.
       * 
* * .SC2APIProtocol.RequestQuickLoad quick_load = 7; */ private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.RequestQuickLoad, SC2APIProtocol.Sc2Api.RequestQuickLoad.Builder, SC2APIProtocol.Sc2Api.RequestQuickLoadOrBuilder> getQuickLoadFieldBuilder() { if (quickLoadBuilder_ == null) { if (!(requestCase_ == 7)) { request_ = SC2APIProtocol.Sc2Api.RequestQuickLoad.getDefaultInstance(); } quickLoadBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.RequestQuickLoad, SC2APIProtocol.Sc2Api.RequestQuickLoad.Builder, SC2APIProtocol.Sc2Api.RequestQuickLoadOrBuilder>( (SC2APIProtocol.Sc2Api.RequestQuickLoad) request_, getParentForChildren(), isClean()); request_ = null; } requestCase_ = 7; onChanged();; return quickLoadBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.RequestQuit, SC2APIProtocol.Sc2Api.RequestQuit.Builder, SC2APIProtocol.Sc2Api.RequestQuitOrBuilder> quitBuilder_; /** *
       * Terminates the application.
       * 
* * .SC2APIProtocol.RequestQuit quit = 8; * @return Whether the quit field is set. */ @java.lang.Override public boolean hasQuit() { return requestCase_ == 8; } /** *
       * Terminates the application.
       * 
* * .SC2APIProtocol.RequestQuit quit = 8; * @return The quit. */ @java.lang.Override public SC2APIProtocol.Sc2Api.RequestQuit getQuit() { if (quitBuilder_ == null) { if (requestCase_ == 8) { return (SC2APIProtocol.Sc2Api.RequestQuit) request_; } return SC2APIProtocol.Sc2Api.RequestQuit.getDefaultInstance(); } else { if (requestCase_ == 8) { return quitBuilder_.getMessage(); } return SC2APIProtocol.Sc2Api.RequestQuit.getDefaultInstance(); } } /** *
       * Terminates the application.
       * 
* * .SC2APIProtocol.RequestQuit quit = 8; */ public Builder setQuit(SC2APIProtocol.Sc2Api.RequestQuit value) { if (quitBuilder_ == null) { if (value == null) { throw new NullPointerException(); } request_ = value; onChanged(); } else { quitBuilder_.setMessage(value); } requestCase_ = 8; return this; } /** *
       * Terminates the application.
       * 
* * .SC2APIProtocol.RequestQuit quit = 8; */ public Builder setQuit( SC2APIProtocol.Sc2Api.RequestQuit.Builder builderForValue) { if (quitBuilder_ == null) { request_ = builderForValue.build(); onChanged(); } else { quitBuilder_.setMessage(builderForValue.build()); } requestCase_ = 8; return this; } /** *
       * Terminates the application.
       * 
* * .SC2APIProtocol.RequestQuit quit = 8; */ public Builder mergeQuit(SC2APIProtocol.Sc2Api.RequestQuit value) { if (quitBuilder_ == null) { if (requestCase_ == 8 && request_ != SC2APIProtocol.Sc2Api.RequestQuit.getDefaultInstance()) { request_ = SC2APIProtocol.Sc2Api.RequestQuit.newBuilder((SC2APIProtocol.Sc2Api.RequestQuit) request_) .mergeFrom(value).buildPartial(); } else { request_ = value; } onChanged(); } else { if (requestCase_ == 8) { quitBuilder_.mergeFrom(value); } else { quitBuilder_.setMessage(value); } } requestCase_ = 8; return this; } /** *
       * Terminates the application.
       * 
* * .SC2APIProtocol.RequestQuit quit = 8; */ public Builder clearQuit() { if (quitBuilder_ == null) { if (requestCase_ == 8) { requestCase_ = 0; request_ = null; onChanged(); } } else { if (requestCase_ == 8) { requestCase_ = 0; request_ = null; } quitBuilder_.clear(); } return this; } /** *
       * Terminates the application.
       * 
* * .SC2APIProtocol.RequestQuit quit = 8; */ public SC2APIProtocol.Sc2Api.RequestQuit.Builder getQuitBuilder() { return getQuitFieldBuilder().getBuilder(); } /** *
       * Terminates the application.
       * 
* * .SC2APIProtocol.RequestQuit quit = 8; */ @java.lang.Override public SC2APIProtocol.Sc2Api.RequestQuitOrBuilder getQuitOrBuilder() { if ((requestCase_ == 8) && (quitBuilder_ != null)) { return quitBuilder_.getMessageOrBuilder(); } else { if (requestCase_ == 8) { return (SC2APIProtocol.Sc2Api.RequestQuit) request_; } return SC2APIProtocol.Sc2Api.RequestQuit.getDefaultInstance(); } } /** *
       * Terminates the application.
       * 
* * .SC2APIProtocol.RequestQuit quit = 8; */ private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.RequestQuit, SC2APIProtocol.Sc2Api.RequestQuit.Builder, SC2APIProtocol.Sc2Api.RequestQuitOrBuilder> getQuitFieldBuilder() { if (quitBuilder_ == null) { if (!(requestCase_ == 8)) { request_ = SC2APIProtocol.Sc2Api.RequestQuit.getDefaultInstance(); } quitBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.RequestQuit, SC2APIProtocol.Sc2Api.RequestQuit.Builder, SC2APIProtocol.Sc2Api.RequestQuitOrBuilder>( (SC2APIProtocol.Sc2Api.RequestQuit) request_, getParentForChildren(), isClean()); request_ = null; } requestCase_ = 8; onChanged();; return quitBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.RequestGameInfo, SC2APIProtocol.Sc2Api.RequestGameInfo.Builder, SC2APIProtocol.Sc2Api.RequestGameInfoOrBuilder> gameInfoBuilder_; /** *
       * During Game
       * 
* * .SC2APIProtocol.RequestGameInfo game_info = 9; * @return Whether the gameInfo field is set. */ @java.lang.Override public boolean hasGameInfo() { return requestCase_ == 9; } /** *
       * During Game
       * 
* * .SC2APIProtocol.RequestGameInfo game_info = 9; * @return The gameInfo. */ @java.lang.Override public SC2APIProtocol.Sc2Api.RequestGameInfo getGameInfo() { if (gameInfoBuilder_ == null) { if (requestCase_ == 9) { return (SC2APIProtocol.Sc2Api.RequestGameInfo) request_; } return SC2APIProtocol.Sc2Api.RequestGameInfo.getDefaultInstance(); } else { if (requestCase_ == 9) { return gameInfoBuilder_.getMessage(); } return SC2APIProtocol.Sc2Api.RequestGameInfo.getDefaultInstance(); } } /** *
       * During Game
       * 
* * .SC2APIProtocol.RequestGameInfo game_info = 9; */ public Builder setGameInfo(SC2APIProtocol.Sc2Api.RequestGameInfo value) { if (gameInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } request_ = value; onChanged(); } else { gameInfoBuilder_.setMessage(value); } requestCase_ = 9; return this; } /** *
       * During Game
       * 
* * .SC2APIProtocol.RequestGameInfo game_info = 9; */ public Builder setGameInfo( SC2APIProtocol.Sc2Api.RequestGameInfo.Builder builderForValue) { if (gameInfoBuilder_ == null) { request_ = builderForValue.build(); onChanged(); } else { gameInfoBuilder_.setMessage(builderForValue.build()); } requestCase_ = 9; return this; } /** *
       * During Game
       * 
* * .SC2APIProtocol.RequestGameInfo game_info = 9; */ public Builder mergeGameInfo(SC2APIProtocol.Sc2Api.RequestGameInfo value) { if (gameInfoBuilder_ == null) { if (requestCase_ == 9 && request_ != SC2APIProtocol.Sc2Api.RequestGameInfo.getDefaultInstance()) { request_ = SC2APIProtocol.Sc2Api.RequestGameInfo.newBuilder((SC2APIProtocol.Sc2Api.RequestGameInfo) request_) .mergeFrom(value).buildPartial(); } else { request_ = value; } onChanged(); } else { if (requestCase_ == 9) { gameInfoBuilder_.mergeFrom(value); } else { gameInfoBuilder_.setMessage(value); } } requestCase_ = 9; return this; } /** *
       * During Game
       * 
* * .SC2APIProtocol.RequestGameInfo game_info = 9; */ public Builder clearGameInfo() { if (gameInfoBuilder_ == null) { if (requestCase_ == 9) { requestCase_ = 0; request_ = null; onChanged(); } } else { if (requestCase_ == 9) { requestCase_ = 0; request_ = null; } gameInfoBuilder_.clear(); } return this; } /** *
       * During Game
       * 
* * .SC2APIProtocol.RequestGameInfo game_info = 9; */ public SC2APIProtocol.Sc2Api.RequestGameInfo.Builder getGameInfoBuilder() { return getGameInfoFieldBuilder().getBuilder(); } /** *
       * During Game
       * 
* * .SC2APIProtocol.RequestGameInfo game_info = 9; */ @java.lang.Override public SC2APIProtocol.Sc2Api.RequestGameInfoOrBuilder getGameInfoOrBuilder() { if ((requestCase_ == 9) && (gameInfoBuilder_ != null)) { return gameInfoBuilder_.getMessageOrBuilder(); } else { if (requestCase_ == 9) { return (SC2APIProtocol.Sc2Api.RequestGameInfo) request_; } return SC2APIProtocol.Sc2Api.RequestGameInfo.getDefaultInstance(); } } /** *
       * During Game
       * 
* * .SC2APIProtocol.RequestGameInfo game_info = 9; */ private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.RequestGameInfo, SC2APIProtocol.Sc2Api.RequestGameInfo.Builder, SC2APIProtocol.Sc2Api.RequestGameInfoOrBuilder> getGameInfoFieldBuilder() { if (gameInfoBuilder_ == null) { if (!(requestCase_ == 9)) { request_ = SC2APIProtocol.Sc2Api.RequestGameInfo.getDefaultInstance(); } gameInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.RequestGameInfo, SC2APIProtocol.Sc2Api.RequestGameInfo.Builder, SC2APIProtocol.Sc2Api.RequestGameInfoOrBuilder>( (SC2APIProtocol.Sc2Api.RequestGameInfo) request_, getParentForChildren(), isClean()); request_ = null; } requestCase_ = 9; onChanged();; return gameInfoBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.RequestObservation, SC2APIProtocol.Sc2Api.RequestObservation.Builder, SC2APIProtocol.Sc2Api.RequestObservationOrBuilder> observationBuilder_; /** *
       * Snapshot of the current game state.
       * 
* * .SC2APIProtocol.RequestObservation observation = 10; * @return Whether the observation field is set. */ @java.lang.Override public boolean hasObservation() { return requestCase_ == 10; } /** *
       * Snapshot of the current game state.
       * 
* * .SC2APIProtocol.RequestObservation observation = 10; * @return The observation. */ @java.lang.Override public SC2APIProtocol.Sc2Api.RequestObservation getObservation() { if (observationBuilder_ == null) { if (requestCase_ == 10) { return (SC2APIProtocol.Sc2Api.RequestObservation) request_; } return SC2APIProtocol.Sc2Api.RequestObservation.getDefaultInstance(); } else { if (requestCase_ == 10) { return observationBuilder_.getMessage(); } return SC2APIProtocol.Sc2Api.RequestObservation.getDefaultInstance(); } } /** *
       * Snapshot of the current game state.
       * 
* * .SC2APIProtocol.RequestObservation observation = 10; */ public Builder setObservation(SC2APIProtocol.Sc2Api.RequestObservation value) { if (observationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } request_ = value; onChanged(); } else { observationBuilder_.setMessage(value); } requestCase_ = 10; return this; } /** *
       * Snapshot of the current game state.
       * 
* * .SC2APIProtocol.RequestObservation observation = 10; */ public Builder setObservation( SC2APIProtocol.Sc2Api.RequestObservation.Builder builderForValue) { if (observationBuilder_ == null) { request_ = builderForValue.build(); onChanged(); } else { observationBuilder_.setMessage(builderForValue.build()); } requestCase_ = 10; return this; } /** *
       * Snapshot of the current game state.
       * 
* * .SC2APIProtocol.RequestObservation observation = 10; */ public Builder mergeObservation(SC2APIProtocol.Sc2Api.RequestObservation value) { if (observationBuilder_ == null) { if (requestCase_ == 10 && request_ != SC2APIProtocol.Sc2Api.RequestObservation.getDefaultInstance()) { request_ = SC2APIProtocol.Sc2Api.RequestObservation.newBuilder((SC2APIProtocol.Sc2Api.RequestObservation) request_) .mergeFrom(value).buildPartial(); } else { request_ = value; } onChanged(); } else { if (requestCase_ == 10) { observationBuilder_.mergeFrom(value); } else { observationBuilder_.setMessage(value); } } requestCase_ = 10; return this; } /** *
       * Snapshot of the current game state.
       * 
* * .SC2APIProtocol.RequestObservation observation = 10; */ public Builder clearObservation() { if (observationBuilder_ == null) { if (requestCase_ == 10) { requestCase_ = 0; request_ = null; onChanged(); } } else { if (requestCase_ == 10) { requestCase_ = 0; request_ = null; } observationBuilder_.clear(); } return this; } /** *
       * Snapshot of the current game state.
       * 
* * .SC2APIProtocol.RequestObservation observation = 10; */ public SC2APIProtocol.Sc2Api.RequestObservation.Builder getObservationBuilder() { return getObservationFieldBuilder().getBuilder(); } /** *
       * Snapshot of the current game state.
       * 
* * .SC2APIProtocol.RequestObservation observation = 10; */ @java.lang.Override public SC2APIProtocol.Sc2Api.RequestObservationOrBuilder getObservationOrBuilder() { if ((requestCase_ == 10) && (observationBuilder_ != null)) { return observationBuilder_.getMessageOrBuilder(); } else { if (requestCase_ == 10) { return (SC2APIProtocol.Sc2Api.RequestObservation) request_; } return SC2APIProtocol.Sc2Api.RequestObservation.getDefaultInstance(); } } /** *
       * Snapshot of the current game state.
       * 
* * .SC2APIProtocol.RequestObservation observation = 10; */ private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.RequestObservation, SC2APIProtocol.Sc2Api.RequestObservation.Builder, SC2APIProtocol.Sc2Api.RequestObservationOrBuilder> getObservationFieldBuilder() { if (observationBuilder_ == null) { if (!(requestCase_ == 10)) { request_ = SC2APIProtocol.Sc2Api.RequestObservation.getDefaultInstance(); } observationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.RequestObservation, SC2APIProtocol.Sc2Api.RequestObservation.Builder, SC2APIProtocol.Sc2Api.RequestObservationOrBuilder>( (SC2APIProtocol.Sc2Api.RequestObservation) request_, getParentForChildren(), isClean()); request_ = null; } requestCase_ = 10; onChanged();; return observationBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.RequestAction, SC2APIProtocol.Sc2Api.RequestAction.Builder, SC2APIProtocol.Sc2Api.RequestActionOrBuilder> actionBuilder_; /** *
       * Executes an action for a participant.
       * 
* * .SC2APIProtocol.RequestAction action = 11; * @return Whether the action field is set. */ @java.lang.Override public boolean hasAction() { return requestCase_ == 11; } /** *
       * Executes an action for a participant.
       * 
* * .SC2APIProtocol.RequestAction action = 11; * @return The action. */ @java.lang.Override public SC2APIProtocol.Sc2Api.RequestAction getAction() { if (actionBuilder_ == null) { if (requestCase_ == 11) { return (SC2APIProtocol.Sc2Api.RequestAction) request_; } return SC2APIProtocol.Sc2Api.RequestAction.getDefaultInstance(); } else { if (requestCase_ == 11) { return actionBuilder_.getMessage(); } return SC2APIProtocol.Sc2Api.RequestAction.getDefaultInstance(); } } /** *
       * Executes an action for a participant.
       * 
* * .SC2APIProtocol.RequestAction action = 11; */ public Builder setAction(SC2APIProtocol.Sc2Api.RequestAction value) { if (actionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } request_ = value; onChanged(); } else { actionBuilder_.setMessage(value); } requestCase_ = 11; return this; } /** *
       * Executes an action for a participant.
       * 
* * .SC2APIProtocol.RequestAction action = 11; */ public Builder setAction( SC2APIProtocol.Sc2Api.RequestAction.Builder builderForValue) { if (actionBuilder_ == null) { request_ = builderForValue.build(); onChanged(); } else { actionBuilder_.setMessage(builderForValue.build()); } requestCase_ = 11; return this; } /** *
       * Executes an action for a participant.
       * 
* * .SC2APIProtocol.RequestAction action = 11; */ public Builder mergeAction(SC2APIProtocol.Sc2Api.RequestAction value) { if (actionBuilder_ == null) { if (requestCase_ == 11 && request_ != SC2APIProtocol.Sc2Api.RequestAction.getDefaultInstance()) { request_ = SC2APIProtocol.Sc2Api.RequestAction.newBuilder((SC2APIProtocol.Sc2Api.RequestAction) request_) .mergeFrom(value).buildPartial(); } else { request_ = value; } onChanged(); } else { if (requestCase_ == 11) { actionBuilder_.mergeFrom(value); } else { actionBuilder_.setMessage(value); } } requestCase_ = 11; return this; } /** *
       * Executes an action for a participant.
       * 
* * .SC2APIProtocol.RequestAction action = 11; */ public Builder clearAction() { if (actionBuilder_ == null) { if (requestCase_ == 11) { requestCase_ = 0; request_ = null; onChanged(); } } else { if (requestCase_ == 11) { requestCase_ = 0; request_ = null; } actionBuilder_.clear(); } return this; } /** *
       * Executes an action for a participant.
       * 
* * .SC2APIProtocol.RequestAction action = 11; */ public SC2APIProtocol.Sc2Api.RequestAction.Builder getActionBuilder() { return getActionFieldBuilder().getBuilder(); } /** *
       * Executes an action for a participant.
       * 
* * .SC2APIProtocol.RequestAction action = 11; */ @java.lang.Override public SC2APIProtocol.Sc2Api.RequestActionOrBuilder getActionOrBuilder() { if ((requestCase_ == 11) && (actionBuilder_ != null)) { return actionBuilder_.getMessageOrBuilder(); } else { if (requestCase_ == 11) { return (SC2APIProtocol.Sc2Api.RequestAction) request_; } return SC2APIProtocol.Sc2Api.RequestAction.getDefaultInstance(); } } /** *
       * Executes an action for a participant.
       * 
* * .SC2APIProtocol.RequestAction action = 11; */ private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.RequestAction, SC2APIProtocol.Sc2Api.RequestAction.Builder, SC2APIProtocol.Sc2Api.RequestActionOrBuilder> getActionFieldBuilder() { if (actionBuilder_ == null) { if (!(requestCase_ == 11)) { request_ = SC2APIProtocol.Sc2Api.RequestAction.getDefaultInstance(); } actionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.RequestAction, SC2APIProtocol.Sc2Api.RequestAction.Builder, SC2APIProtocol.Sc2Api.RequestActionOrBuilder>( (SC2APIProtocol.Sc2Api.RequestAction) request_, getParentForChildren(), isClean()); request_ = null; } requestCase_ = 11; onChanged();; return actionBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.RequestObserverAction, SC2APIProtocol.Sc2Api.RequestObserverAction.Builder, SC2APIProtocol.Sc2Api.RequestObserverActionOrBuilder> obsActionBuilder_; /** *
       * Executes an action for an observer.
       * 
* * .SC2APIProtocol.RequestObserverAction obs_action = 21; * @return Whether the obsAction field is set. */ @java.lang.Override public boolean hasObsAction() { return requestCase_ == 21; } /** *
       * Executes an action for an observer.
       * 
* * .SC2APIProtocol.RequestObserverAction obs_action = 21; * @return The obsAction. */ @java.lang.Override public SC2APIProtocol.Sc2Api.RequestObserverAction getObsAction() { if (obsActionBuilder_ == null) { if (requestCase_ == 21) { return (SC2APIProtocol.Sc2Api.RequestObserverAction) request_; } return SC2APIProtocol.Sc2Api.RequestObserverAction.getDefaultInstance(); } else { if (requestCase_ == 21) { return obsActionBuilder_.getMessage(); } return SC2APIProtocol.Sc2Api.RequestObserverAction.getDefaultInstance(); } } /** *
       * Executes an action for an observer.
       * 
* * .SC2APIProtocol.RequestObserverAction obs_action = 21; */ public Builder setObsAction(SC2APIProtocol.Sc2Api.RequestObserverAction value) { if (obsActionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } request_ = value; onChanged(); } else { obsActionBuilder_.setMessage(value); } requestCase_ = 21; return this; } /** *
       * Executes an action for an observer.
       * 
* * .SC2APIProtocol.RequestObserverAction obs_action = 21; */ public Builder setObsAction( SC2APIProtocol.Sc2Api.RequestObserverAction.Builder builderForValue) { if (obsActionBuilder_ == null) { request_ = builderForValue.build(); onChanged(); } else { obsActionBuilder_.setMessage(builderForValue.build()); } requestCase_ = 21; return this; } /** *
       * Executes an action for an observer.
       * 
* * .SC2APIProtocol.RequestObserverAction obs_action = 21; */ public Builder mergeObsAction(SC2APIProtocol.Sc2Api.RequestObserverAction value) { if (obsActionBuilder_ == null) { if (requestCase_ == 21 && request_ != SC2APIProtocol.Sc2Api.RequestObserverAction.getDefaultInstance()) { request_ = SC2APIProtocol.Sc2Api.RequestObserverAction.newBuilder((SC2APIProtocol.Sc2Api.RequestObserverAction) request_) .mergeFrom(value).buildPartial(); } else { request_ = value; } onChanged(); } else { if (requestCase_ == 21) { obsActionBuilder_.mergeFrom(value); } else { obsActionBuilder_.setMessage(value); } } requestCase_ = 21; return this; } /** *
       * Executes an action for an observer.
       * 
* * .SC2APIProtocol.RequestObserverAction obs_action = 21; */ public Builder clearObsAction() { if (obsActionBuilder_ == null) { if (requestCase_ == 21) { requestCase_ = 0; request_ = null; onChanged(); } } else { if (requestCase_ == 21) { requestCase_ = 0; request_ = null; } obsActionBuilder_.clear(); } return this; } /** *
       * Executes an action for an observer.
       * 
* * .SC2APIProtocol.RequestObserverAction obs_action = 21; */ public SC2APIProtocol.Sc2Api.RequestObserverAction.Builder getObsActionBuilder() { return getObsActionFieldBuilder().getBuilder(); } /** *
       * Executes an action for an observer.
       * 
* * .SC2APIProtocol.RequestObserverAction obs_action = 21; */ @java.lang.Override public SC2APIProtocol.Sc2Api.RequestObserverActionOrBuilder getObsActionOrBuilder() { if ((requestCase_ == 21) && (obsActionBuilder_ != null)) { return obsActionBuilder_.getMessageOrBuilder(); } else { if (requestCase_ == 21) { return (SC2APIProtocol.Sc2Api.RequestObserverAction) request_; } return SC2APIProtocol.Sc2Api.RequestObserverAction.getDefaultInstance(); } } /** *
       * Executes an action for an observer.
       * 
* * .SC2APIProtocol.RequestObserverAction obs_action = 21; */ private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.RequestObserverAction, SC2APIProtocol.Sc2Api.RequestObserverAction.Builder, SC2APIProtocol.Sc2Api.RequestObserverActionOrBuilder> getObsActionFieldBuilder() { if (obsActionBuilder_ == null) { if (!(requestCase_ == 21)) { request_ = SC2APIProtocol.Sc2Api.RequestObserverAction.getDefaultInstance(); } obsActionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.RequestObserverAction, SC2APIProtocol.Sc2Api.RequestObserverAction.Builder, SC2APIProtocol.Sc2Api.RequestObserverActionOrBuilder>( (SC2APIProtocol.Sc2Api.RequestObserverAction) request_, getParentForChildren(), isClean()); request_ = null; } requestCase_ = 21; onChanged();; return obsActionBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.RequestStep, SC2APIProtocol.Sc2Api.RequestStep.Builder, SC2APIProtocol.Sc2Api.RequestStepOrBuilder> stepBuilder_; /** *
       * Advances the game simulation.
       * 
* * .SC2APIProtocol.RequestStep step = 12; * @return Whether the step field is set. */ @java.lang.Override public boolean hasStep() { return requestCase_ == 12; } /** *
       * Advances the game simulation.
       * 
* * .SC2APIProtocol.RequestStep step = 12; * @return The step. */ @java.lang.Override public SC2APIProtocol.Sc2Api.RequestStep getStep() { if (stepBuilder_ == null) { if (requestCase_ == 12) { return (SC2APIProtocol.Sc2Api.RequestStep) request_; } return SC2APIProtocol.Sc2Api.RequestStep.getDefaultInstance(); } else { if (requestCase_ == 12) { return stepBuilder_.getMessage(); } return SC2APIProtocol.Sc2Api.RequestStep.getDefaultInstance(); } } /** *
       * Advances the game simulation.
       * 
* * .SC2APIProtocol.RequestStep step = 12; */ public Builder setStep(SC2APIProtocol.Sc2Api.RequestStep value) { if (stepBuilder_ == null) { if (value == null) { throw new NullPointerException(); } request_ = value; onChanged(); } else { stepBuilder_.setMessage(value); } requestCase_ = 12; return this; } /** *
       * Advances the game simulation.
       * 
* * .SC2APIProtocol.RequestStep step = 12; */ public Builder setStep( SC2APIProtocol.Sc2Api.RequestStep.Builder builderForValue) { if (stepBuilder_ == null) { request_ = builderForValue.build(); onChanged(); } else { stepBuilder_.setMessage(builderForValue.build()); } requestCase_ = 12; return this; } /** *
       * Advances the game simulation.
       * 
* * .SC2APIProtocol.RequestStep step = 12; */ public Builder mergeStep(SC2APIProtocol.Sc2Api.RequestStep value) { if (stepBuilder_ == null) { if (requestCase_ == 12 && request_ != SC2APIProtocol.Sc2Api.RequestStep.getDefaultInstance()) { request_ = SC2APIProtocol.Sc2Api.RequestStep.newBuilder((SC2APIProtocol.Sc2Api.RequestStep) request_) .mergeFrom(value).buildPartial(); } else { request_ = value; } onChanged(); } else { if (requestCase_ == 12) { stepBuilder_.mergeFrom(value); } else { stepBuilder_.setMessage(value); } } requestCase_ = 12; return this; } /** *
       * Advances the game simulation.
       * 
* * .SC2APIProtocol.RequestStep step = 12; */ public Builder clearStep() { if (stepBuilder_ == null) { if (requestCase_ == 12) { requestCase_ = 0; request_ = null; onChanged(); } } else { if (requestCase_ == 12) { requestCase_ = 0; request_ = null; } stepBuilder_.clear(); } return this; } /** *
       * Advances the game simulation.
       * 
* * .SC2APIProtocol.RequestStep step = 12; */ public SC2APIProtocol.Sc2Api.RequestStep.Builder getStepBuilder() { return getStepFieldBuilder().getBuilder(); } /** *
       * Advances the game simulation.
       * 
* * .SC2APIProtocol.RequestStep step = 12; */ @java.lang.Override public SC2APIProtocol.Sc2Api.RequestStepOrBuilder getStepOrBuilder() { if ((requestCase_ == 12) && (stepBuilder_ != null)) { return stepBuilder_.getMessageOrBuilder(); } else { if (requestCase_ == 12) { return (SC2APIProtocol.Sc2Api.RequestStep) request_; } return SC2APIProtocol.Sc2Api.RequestStep.getDefaultInstance(); } } /** *
       * Advances the game simulation.
       * 
* * .SC2APIProtocol.RequestStep step = 12; */ private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.RequestStep, SC2APIProtocol.Sc2Api.RequestStep.Builder, SC2APIProtocol.Sc2Api.RequestStepOrBuilder> getStepFieldBuilder() { if (stepBuilder_ == null) { if (!(requestCase_ == 12)) { request_ = SC2APIProtocol.Sc2Api.RequestStep.getDefaultInstance(); } stepBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.RequestStep, SC2APIProtocol.Sc2Api.RequestStep.Builder, SC2APIProtocol.Sc2Api.RequestStepOrBuilder>( (SC2APIProtocol.Sc2Api.RequestStep) request_, getParentForChildren(), isClean()); request_ = null; } requestCase_ = 12; onChanged();; return stepBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.RequestData, SC2APIProtocol.Sc2Api.RequestData.Builder, SC2APIProtocol.Sc2Api.RequestDataOrBuilder> dataBuilder_; /** *
       * Data about different gameplay elements. May be different for different games.
       * 
* * .SC2APIProtocol.RequestData data = 13; * @return Whether the data field is set. */ @java.lang.Override public boolean hasData() { return requestCase_ == 13; } /** *
       * Data about different gameplay elements. May be different for different games.
       * 
* * .SC2APIProtocol.RequestData data = 13; * @return The data. */ @java.lang.Override public SC2APIProtocol.Sc2Api.RequestData getData() { if (dataBuilder_ == null) { if (requestCase_ == 13) { return (SC2APIProtocol.Sc2Api.RequestData) request_; } return SC2APIProtocol.Sc2Api.RequestData.getDefaultInstance(); } else { if (requestCase_ == 13) { return dataBuilder_.getMessage(); } return SC2APIProtocol.Sc2Api.RequestData.getDefaultInstance(); } } /** *
       * Data about different gameplay elements. May be different for different games.
       * 
* * .SC2APIProtocol.RequestData data = 13; */ public Builder setData(SC2APIProtocol.Sc2Api.RequestData value) { if (dataBuilder_ == null) { if (value == null) { throw new NullPointerException(); } request_ = value; onChanged(); } else { dataBuilder_.setMessage(value); } requestCase_ = 13; return this; } /** *
       * Data about different gameplay elements. May be different for different games.
       * 
* * .SC2APIProtocol.RequestData data = 13; */ public Builder setData( SC2APIProtocol.Sc2Api.RequestData.Builder builderForValue) { if (dataBuilder_ == null) { request_ = builderForValue.build(); onChanged(); } else { dataBuilder_.setMessage(builderForValue.build()); } requestCase_ = 13; return this; } /** *
       * Data about different gameplay elements. May be different for different games.
       * 
* * .SC2APIProtocol.RequestData data = 13; */ public Builder mergeData(SC2APIProtocol.Sc2Api.RequestData value) { if (dataBuilder_ == null) { if (requestCase_ == 13 && request_ != SC2APIProtocol.Sc2Api.RequestData.getDefaultInstance()) { request_ = SC2APIProtocol.Sc2Api.RequestData.newBuilder((SC2APIProtocol.Sc2Api.RequestData) request_) .mergeFrom(value).buildPartial(); } else { request_ = value; } onChanged(); } else { if (requestCase_ == 13) { dataBuilder_.mergeFrom(value); } else { dataBuilder_.setMessage(value); } } requestCase_ = 13; return this; } /** *
       * Data about different gameplay elements. May be different for different games.
       * 
* * .SC2APIProtocol.RequestData data = 13; */ public Builder clearData() { if (dataBuilder_ == null) { if (requestCase_ == 13) { requestCase_ = 0; request_ = null; onChanged(); } } else { if (requestCase_ == 13) { requestCase_ = 0; request_ = null; } dataBuilder_.clear(); } return this; } /** *
       * Data about different gameplay elements. May be different for different games.
       * 
* * .SC2APIProtocol.RequestData data = 13; */ public SC2APIProtocol.Sc2Api.RequestData.Builder getDataBuilder() { return getDataFieldBuilder().getBuilder(); } /** *
       * Data about different gameplay elements. May be different for different games.
       * 
* * .SC2APIProtocol.RequestData data = 13; */ @java.lang.Override public SC2APIProtocol.Sc2Api.RequestDataOrBuilder getDataOrBuilder() { if ((requestCase_ == 13) && (dataBuilder_ != null)) { return dataBuilder_.getMessageOrBuilder(); } else { if (requestCase_ == 13) { return (SC2APIProtocol.Sc2Api.RequestData) request_; } return SC2APIProtocol.Sc2Api.RequestData.getDefaultInstance(); } } /** *
       * Data about different gameplay elements. May be different for different games.
       * 
* * .SC2APIProtocol.RequestData data = 13; */ private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.RequestData, SC2APIProtocol.Sc2Api.RequestData.Builder, SC2APIProtocol.Sc2Api.RequestDataOrBuilder> getDataFieldBuilder() { if (dataBuilder_ == null) { if (!(requestCase_ == 13)) { request_ = SC2APIProtocol.Sc2Api.RequestData.getDefaultInstance(); } dataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.RequestData, SC2APIProtocol.Sc2Api.RequestData.Builder, SC2APIProtocol.Sc2Api.RequestDataOrBuilder>( (SC2APIProtocol.Sc2Api.RequestData) request_, getParentForChildren(), isClean()); request_ = null; } requestCase_ = 13; onChanged();; return dataBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Query.RequestQuery, SC2APIProtocol.Query.RequestQuery.Builder, SC2APIProtocol.Query.RequestQueryOrBuilder> queryBuilder_; /** *
       * Additional methods for inspecting game state.
       * 
* * .SC2APIProtocol.RequestQuery query = 14; * @return Whether the query field is set. */ @java.lang.Override public boolean hasQuery() { return requestCase_ == 14; } /** *
       * Additional methods for inspecting game state.
       * 
* * .SC2APIProtocol.RequestQuery query = 14; * @return The query. */ @java.lang.Override public SC2APIProtocol.Query.RequestQuery getQuery() { if (queryBuilder_ == null) { if (requestCase_ == 14) { return (SC2APIProtocol.Query.RequestQuery) request_; } return SC2APIProtocol.Query.RequestQuery.getDefaultInstance(); } else { if (requestCase_ == 14) { return queryBuilder_.getMessage(); } return SC2APIProtocol.Query.RequestQuery.getDefaultInstance(); } } /** *
       * Additional methods for inspecting game state.
       * 
* * .SC2APIProtocol.RequestQuery query = 14; */ public Builder setQuery(SC2APIProtocol.Query.RequestQuery value) { if (queryBuilder_ == null) { if (value == null) { throw new NullPointerException(); } request_ = value; onChanged(); } else { queryBuilder_.setMessage(value); } requestCase_ = 14; return this; } /** *
       * Additional methods for inspecting game state.
       * 
* * .SC2APIProtocol.RequestQuery query = 14; */ public Builder setQuery( SC2APIProtocol.Query.RequestQuery.Builder builderForValue) { if (queryBuilder_ == null) { request_ = builderForValue.build(); onChanged(); } else { queryBuilder_.setMessage(builderForValue.build()); } requestCase_ = 14; return this; } /** *
       * Additional methods for inspecting game state.
       * 
* * .SC2APIProtocol.RequestQuery query = 14; */ public Builder mergeQuery(SC2APIProtocol.Query.RequestQuery value) { if (queryBuilder_ == null) { if (requestCase_ == 14 && request_ != SC2APIProtocol.Query.RequestQuery.getDefaultInstance()) { request_ = SC2APIProtocol.Query.RequestQuery.newBuilder((SC2APIProtocol.Query.RequestQuery) request_) .mergeFrom(value).buildPartial(); } else { request_ = value; } onChanged(); } else { if (requestCase_ == 14) { queryBuilder_.mergeFrom(value); } else { queryBuilder_.setMessage(value); } } requestCase_ = 14; return this; } /** *
       * Additional methods for inspecting game state.
       * 
* * .SC2APIProtocol.RequestQuery query = 14; */ public Builder clearQuery() { if (queryBuilder_ == null) { if (requestCase_ == 14) { requestCase_ = 0; request_ = null; onChanged(); } } else { if (requestCase_ == 14) { requestCase_ = 0; request_ = null; } queryBuilder_.clear(); } return this; } /** *
       * Additional methods for inspecting game state.
       * 
* * .SC2APIProtocol.RequestQuery query = 14; */ public SC2APIProtocol.Query.RequestQuery.Builder getQueryBuilder() { return getQueryFieldBuilder().getBuilder(); } /** *
       * Additional methods for inspecting game state.
       * 
* * .SC2APIProtocol.RequestQuery query = 14; */ @java.lang.Override public SC2APIProtocol.Query.RequestQueryOrBuilder getQueryOrBuilder() { if ((requestCase_ == 14) && (queryBuilder_ != null)) { return queryBuilder_.getMessageOrBuilder(); } else { if (requestCase_ == 14) { return (SC2APIProtocol.Query.RequestQuery) request_; } return SC2APIProtocol.Query.RequestQuery.getDefaultInstance(); } } /** *
       * Additional methods for inspecting game state.
       * 
* * .SC2APIProtocol.RequestQuery query = 14; */ private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Query.RequestQuery, SC2APIProtocol.Query.RequestQuery.Builder, SC2APIProtocol.Query.RequestQueryOrBuilder> getQueryFieldBuilder() { if (queryBuilder_ == null) { if (!(requestCase_ == 14)) { request_ = SC2APIProtocol.Query.RequestQuery.getDefaultInstance(); } queryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Query.RequestQuery, SC2APIProtocol.Query.RequestQuery.Builder, SC2APIProtocol.Query.RequestQueryOrBuilder>( (SC2APIProtocol.Query.RequestQuery) request_, getParentForChildren(), isClean()); request_ = null; } requestCase_ = 14; onChanged();; return queryBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.RequestSaveReplay, SC2APIProtocol.Sc2Api.RequestSaveReplay.Builder, SC2APIProtocol.Sc2Api.RequestSaveReplayOrBuilder> saveReplayBuilder_; /** *
       * Generates a replay.
       * 
* * .SC2APIProtocol.RequestSaveReplay save_replay = 15; * @return Whether the saveReplay field is set. */ @java.lang.Override public boolean hasSaveReplay() { return requestCase_ == 15; } /** *
       * Generates a replay.
       * 
* * .SC2APIProtocol.RequestSaveReplay save_replay = 15; * @return The saveReplay. */ @java.lang.Override public SC2APIProtocol.Sc2Api.RequestSaveReplay getSaveReplay() { if (saveReplayBuilder_ == null) { if (requestCase_ == 15) { return (SC2APIProtocol.Sc2Api.RequestSaveReplay) request_; } return SC2APIProtocol.Sc2Api.RequestSaveReplay.getDefaultInstance(); } else { if (requestCase_ == 15) { return saveReplayBuilder_.getMessage(); } return SC2APIProtocol.Sc2Api.RequestSaveReplay.getDefaultInstance(); } } /** *
       * Generates a replay.
       * 
* * .SC2APIProtocol.RequestSaveReplay save_replay = 15; */ public Builder setSaveReplay(SC2APIProtocol.Sc2Api.RequestSaveReplay value) { if (saveReplayBuilder_ == null) { if (value == null) { throw new NullPointerException(); } request_ = value; onChanged(); } else { saveReplayBuilder_.setMessage(value); } requestCase_ = 15; return this; } /** *
       * Generates a replay.
       * 
* * .SC2APIProtocol.RequestSaveReplay save_replay = 15; */ public Builder setSaveReplay( SC2APIProtocol.Sc2Api.RequestSaveReplay.Builder builderForValue) { if (saveReplayBuilder_ == null) { request_ = builderForValue.build(); onChanged(); } else { saveReplayBuilder_.setMessage(builderForValue.build()); } requestCase_ = 15; return this; } /** *
       * Generates a replay.
       * 
* * .SC2APIProtocol.RequestSaveReplay save_replay = 15; */ public Builder mergeSaveReplay(SC2APIProtocol.Sc2Api.RequestSaveReplay value) { if (saveReplayBuilder_ == null) { if (requestCase_ == 15 && request_ != SC2APIProtocol.Sc2Api.RequestSaveReplay.getDefaultInstance()) { request_ = SC2APIProtocol.Sc2Api.RequestSaveReplay.newBuilder((SC2APIProtocol.Sc2Api.RequestSaveReplay) request_) .mergeFrom(value).buildPartial(); } else { request_ = value; } onChanged(); } else { if (requestCase_ == 15) { saveReplayBuilder_.mergeFrom(value); } else { saveReplayBuilder_.setMessage(value); } } requestCase_ = 15; return this; } /** *
       * Generates a replay.
       * 
* * .SC2APIProtocol.RequestSaveReplay save_replay = 15; */ public Builder clearSaveReplay() { if (saveReplayBuilder_ == null) { if (requestCase_ == 15) { requestCase_ = 0; request_ = null; onChanged(); } } else { if (requestCase_ == 15) { requestCase_ = 0; request_ = null; } saveReplayBuilder_.clear(); } return this; } /** *
       * Generates a replay.
       * 
* * .SC2APIProtocol.RequestSaveReplay save_replay = 15; */ public SC2APIProtocol.Sc2Api.RequestSaveReplay.Builder getSaveReplayBuilder() { return getSaveReplayFieldBuilder().getBuilder(); } /** *
       * Generates a replay.
       * 
* * .SC2APIProtocol.RequestSaveReplay save_replay = 15; */ @java.lang.Override public SC2APIProtocol.Sc2Api.RequestSaveReplayOrBuilder getSaveReplayOrBuilder() { if ((requestCase_ == 15) && (saveReplayBuilder_ != null)) { return saveReplayBuilder_.getMessageOrBuilder(); } else { if (requestCase_ == 15) { return (SC2APIProtocol.Sc2Api.RequestSaveReplay) request_; } return SC2APIProtocol.Sc2Api.RequestSaveReplay.getDefaultInstance(); } } /** *
       * Generates a replay.
       * 
* * .SC2APIProtocol.RequestSaveReplay save_replay = 15; */ private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.RequestSaveReplay, SC2APIProtocol.Sc2Api.RequestSaveReplay.Builder, SC2APIProtocol.Sc2Api.RequestSaveReplayOrBuilder> getSaveReplayFieldBuilder() { if (saveReplayBuilder_ == null) { if (!(requestCase_ == 15)) { request_ = SC2APIProtocol.Sc2Api.RequestSaveReplay.getDefaultInstance(); } saveReplayBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.RequestSaveReplay, SC2APIProtocol.Sc2Api.RequestSaveReplay.Builder, SC2APIProtocol.Sc2Api.RequestSaveReplayOrBuilder>( (SC2APIProtocol.Sc2Api.RequestSaveReplay) request_, getParentForChildren(), isClean()); request_ = null; } requestCase_ = 15; onChanged();; return saveReplayBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.RequestMapCommand, SC2APIProtocol.Sc2Api.RequestMapCommand.Builder, SC2APIProtocol.Sc2Api.RequestMapCommandOrBuilder> mapCommandBuilder_; /** *
       * Execute a particular trigger through a string interface
       * 
* * .SC2APIProtocol.RequestMapCommand map_command = 22; * @return Whether the mapCommand field is set. */ @java.lang.Override public boolean hasMapCommand() { return requestCase_ == 22; } /** *
       * Execute a particular trigger through a string interface
       * 
* * .SC2APIProtocol.RequestMapCommand map_command = 22; * @return The mapCommand. */ @java.lang.Override public SC2APIProtocol.Sc2Api.RequestMapCommand getMapCommand() { if (mapCommandBuilder_ == null) { if (requestCase_ == 22) { return (SC2APIProtocol.Sc2Api.RequestMapCommand) request_; } return SC2APIProtocol.Sc2Api.RequestMapCommand.getDefaultInstance(); } else { if (requestCase_ == 22) { return mapCommandBuilder_.getMessage(); } return SC2APIProtocol.Sc2Api.RequestMapCommand.getDefaultInstance(); } } /** *
       * Execute a particular trigger through a string interface
       * 
* * .SC2APIProtocol.RequestMapCommand map_command = 22; */ public Builder setMapCommand(SC2APIProtocol.Sc2Api.RequestMapCommand value) { if (mapCommandBuilder_ == null) { if (value == null) { throw new NullPointerException(); } request_ = value; onChanged(); } else { mapCommandBuilder_.setMessage(value); } requestCase_ = 22; return this; } /** *
       * Execute a particular trigger through a string interface
       * 
* * .SC2APIProtocol.RequestMapCommand map_command = 22; */ public Builder setMapCommand( SC2APIProtocol.Sc2Api.RequestMapCommand.Builder builderForValue) { if (mapCommandBuilder_ == null) { request_ = builderForValue.build(); onChanged(); } else { mapCommandBuilder_.setMessage(builderForValue.build()); } requestCase_ = 22; return this; } /** *
       * Execute a particular trigger through a string interface
       * 
* * .SC2APIProtocol.RequestMapCommand map_command = 22; */ public Builder mergeMapCommand(SC2APIProtocol.Sc2Api.RequestMapCommand value) { if (mapCommandBuilder_ == null) { if (requestCase_ == 22 && request_ != SC2APIProtocol.Sc2Api.RequestMapCommand.getDefaultInstance()) { request_ = SC2APIProtocol.Sc2Api.RequestMapCommand.newBuilder((SC2APIProtocol.Sc2Api.RequestMapCommand) request_) .mergeFrom(value).buildPartial(); } else { request_ = value; } onChanged(); } else { if (requestCase_ == 22) { mapCommandBuilder_.mergeFrom(value); } else { mapCommandBuilder_.setMessage(value); } } requestCase_ = 22; return this; } /** *
       * Execute a particular trigger through a string interface
       * 
* * .SC2APIProtocol.RequestMapCommand map_command = 22; */ public Builder clearMapCommand() { if (mapCommandBuilder_ == null) { if (requestCase_ == 22) { requestCase_ = 0; request_ = null; onChanged(); } } else { if (requestCase_ == 22) { requestCase_ = 0; request_ = null; } mapCommandBuilder_.clear(); } return this; } /** *
       * Execute a particular trigger through a string interface
       * 
* * .SC2APIProtocol.RequestMapCommand map_command = 22; */ public SC2APIProtocol.Sc2Api.RequestMapCommand.Builder getMapCommandBuilder() { return getMapCommandFieldBuilder().getBuilder(); } /** *
       * Execute a particular trigger through a string interface
       * 
* * .SC2APIProtocol.RequestMapCommand map_command = 22; */ @java.lang.Override public SC2APIProtocol.Sc2Api.RequestMapCommandOrBuilder getMapCommandOrBuilder() { if ((requestCase_ == 22) && (mapCommandBuilder_ != null)) { return mapCommandBuilder_.getMessageOrBuilder(); } else { if (requestCase_ == 22) { return (SC2APIProtocol.Sc2Api.RequestMapCommand) request_; } return SC2APIProtocol.Sc2Api.RequestMapCommand.getDefaultInstance(); } } /** *
       * Execute a particular trigger through a string interface
       * 
* * .SC2APIProtocol.RequestMapCommand map_command = 22; */ private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.RequestMapCommand, SC2APIProtocol.Sc2Api.RequestMapCommand.Builder, SC2APIProtocol.Sc2Api.RequestMapCommandOrBuilder> getMapCommandFieldBuilder() { if (mapCommandBuilder_ == null) { if (!(requestCase_ == 22)) { request_ = SC2APIProtocol.Sc2Api.RequestMapCommand.getDefaultInstance(); } mapCommandBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.RequestMapCommand, SC2APIProtocol.Sc2Api.RequestMapCommand.Builder, SC2APIProtocol.Sc2Api.RequestMapCommandOrBuilder>( (SC2APIProtocol.Sc2Api.RequestMapCommand) request_, getParentForChildren(), isClean()); request_ = null; } requestCase_ = 22; onChanged();; return mapCommandBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.RequestReplayInfo, SC2APIProtocol.Sc2Api.RequestReplayInfo.Builder, SC2APIProtocol.Sc2Api.RequestReplayInfoOrBuilder> replayInfoBuilder_; /** *
       * Other.
       * 
* * .SC2APIProtocol.RequestReplayInfo replay_info = 16; * @return Whether the replayInfo field is set. */ @java.lang.Override public boolean hasReplayInfo() { return requestCase_ == 16; } /** *
       * Other.
       * 
* * .SC2APIProtocol.RequestReplayInfo replay_info = 16; * @return The replayInfo. */ @java.lang.Override public SC2APIProtocol.Sc2Api.RequestReplayInfo getReplayInfo() { if (replayInfoBuilder_ == null) { if (requestCase_ == 16) { return (SC2APIProtocol.Sc2Api.RequestReplayInfo) request_; } return SC2APIProtocol.Sc2Api.RequestReplayInfo.getDefaultInstance(); } else { if (requestCase_ == 16) { return replayInfoBuilder_.getMessage(); } return SC2APIProtocol.Sc2Api.RequestReplayInfo.getDefaultInstance(); } } /** *
       * Other.
       * 
* * .SC2APIProtocol.RequestReplayInfo replay_info = 16; */ public Builder setReplayInfo(SC2APIProtocol.Sc2Api.RequestReplayInfo value) { if (replayInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } request_ = value; onChanged(); } else { replayInfoBuilder_.setMessage(value); } requestCase_ = 16; return this; } /** *
       * Other.
       * 
* * .SC2APIProtocol.RequestReplayInfo replay_info = 16; */ public Builder setReplayInfo( SC2APIProtocol.Sc2Api.RequestReplayInfo.Builder builderForValue) { if (replayInfoBuilder_ == null) { request_ = builderForValue.build(); onChanged(); } else { replayInfoBuilder_.setMessage(builderForValue.build()); } requestCase_ = 16; return this; } /** *
       * Other.
       * 
* * .SC2APIProtocol.RequestReplayInfo replay_info = 16; */ public Builder mergeReplayInfo(SC2APIProtocol.Sc2Api.RequestReplayInfo value) { if (replayInfoBuilder_ == null) { if (requestCase_ == 16 && request_ != SC2APIProtocol.Sc2Api.RequestReplayInfo.getDefaultInstance()) { request_ = SC2APIProtocol.Sc2Api.RequestReplayInfo.newBuilder((SC2APIProtocol.Sc2Api.RequestReplayInfo) request_) .mergeFrom(value).buildPartial(); } else { request_ = value; } onChanged(); } else { if (requestCase_ == 16) { replayInfoBuilder_.mergeFrom(value); } else { replayInfoBuilder_.setMessage(value); } } requestCase_ = 16; return this; } /** *
       * Other.
       * 
* * .SC2APIProtocol.RequestReplayInfo replay_info = 16; */ public Builder clearReplayInfo() { if (replayInfoBuilder_ == null) { if (requestCase_ == 16) { requestCase_ = 0; request_ = null; onChanged(); } } else { if (requestCase_ == 16) { requestCase_ = 0; request_ = null; } replayInfoBuilder_.clear(); } return this; } /** *
       * Other.
       * 
* * .SC2APIProtocol.RequestReplayInfo replay_info = 16; */ public SC2APIProtocol.Sc2Api.RequestReplayInfo.Builder getReplayInfoBuilder() { return getReplayInfoFieldBuilder().getBuilder(); } /** *
       * Other.
       * 
* * .SC2APIProtocol.RequestReplayInfo replay_info = 16; */ @java.lang.Override public SC2APIProtocol.Sc2Api.RequestReplayInfoOrBuilder getReplayInfoOrBuilder() { if ((requestCase_ == 16) && (replayInfoBuilder_ != null)) { return replayInfoBuilder_.getMessageOrBuilder(); } else { if (requestCase_ == 16) { return (SC2APIProtocol.Sc2Api.RequestReplayInfo) request_; } return SC2APIProtocol.Sc2Api.RequestReplayInfo.getDefaultInstance(); } } /** *
       * Other.
       * 
* * .SC2APIProtocol.RequestReplayInfo replay_info = 16; */ private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.RequestReplayInfo, SC2APIProtocol.Sc2Api.RequestReplayInfo.Builder, SC2APIProtocol.Sc2Api.RequestReplayInfoOrBuilder> getReplayInfoFieldBuilder() { if (replayInfoBuilder_ == null) { if (!(requestCase_ == 16)) { request_ = SC2APIProtocol.Sc2Api.RequestReplayInfo.getDefaultInstance(); } replayInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.RequestReplayInfo, SC2APIProtocol.Sc2Api.RequestReplayInfo.Builder, SC2APIProtocol.Sc2Api.RequestReplayInfoOrBuilder>( (SC2APIProtocol.Sc2Api.RequestReplayInfo) request_, getParentForChildren(), isClean()); request_ = null; } requestCase_ = 16; onChanged();; return replayInfoBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.RequestAvailableMaps, SC2APIProtocol.Sc2Api.RequestAvailableMaps.Builder, SC2APIProtocol.Sc2Api.RequestAvailableMapsOrBuilder> availableMapsBuilder_; /** *
       * Returns directory of maps that can be played on.
       * 
* * .SC2APIProtocol.RequestAvailableMaps available_maps = 17; * @return Whether the availableMaps field is set. */ @java.lang.Override public boolean hasAvailableMaps() { return requestCase_ == 17; } /** *
       * Returns directory of maps that can be played on.
       * 
* * .SC2APIProtocol.RequestAvailableMaps available_maps = 17; * @return The availableMaps. */ @java.lang.Override public SC2APIProtocol.Sc2Api.RequestAvailableMaps getAvailableMaps() { if (availableMapsBuilder_ == null) { if (requestCase_ == 17) { return (SC2APIProtocol.Sc2Api.RequestAvailableMaps) request_; } return SC2APIProtocol.Sc2Api.RequestAvailableMaps.getDefaultInstance(); } else { if (requestCase_ == 17) { return availableMapsBuilder_.getMessage(); } return SC2APIProtocol.Sc2Api.RequestAvailableMaps.getDefaultInstance(); } } /** *
       * Returns directory of maps that can be played on.
       * 
* * .SC2APIProtocol.RequestAvailableMaps available_maps = 17; */ public Builder setAvailableMaps(SC2APIProtocol.Sc2Api.RequestAvailableMaps value) { if (availableMapsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } request_ = value; onChanged(); } else { availableMapsBuilder_.setMessage(value); } requestCase_ = 17; return this; } /** *
       * Returns directory of maps that can be played on.
       * 
* * .SC2APIProtocol.RequestAvailableMaps available_maps = 17; */ public Builder setAvailableMaps( SC2APIProtocol.Sc2Api.RequestAvailableMaps.Builder builderForValue) { if (availableMapsBuilder_ == null) { request_ = builderForValue.build(); onChanged(); } else { availableMapsBuilder_.setMessage(builderForValue.build()); } requestCase_ = 17; return this; } /** *
       * Returns directory of maps that can be played on.
       * 
* * .SC2APIProtocol.RequestAvailableMaps available_maps = 17; */ public Builder mergeAvailableMaps(SC2APIProtocol.Sc2Api.RequestAvailableMaps value) { if (availableMapsBuilder_ == null) { if (requestCase_ == 17 && request_ != SC2APIProtocol.Sc2Api.RequestAvailableMaps.getDefaultInstance()) { request_ = SC2APIProtocol.Sc2Api.RequestAvailableMaps.newBuilder((SC2APIProtocol.Sc2Api.RequestAvailableMaps) request_) .mergeFrom(value).buildPartial(); } else { request_ = value; } onChanged(); } else { if (requestCase_ == 17) { availableMapsBuilder_.mergeFrom(value); } else { availableMapsBuilder_.setMessage(value); } } requestCase_ = 17; return this; } /** *
       * Returns directory of maps that can be played on.
       * 
* * .SC2APIProtocol.RequestAvailableMaps available_maps = 17; */ public Builder clearAvailableMaps() { if (availableMapsBuilder_ == null) { if (requestCase_ == 17) { requestCase_ = 0; request_ = null; onChanged(); } } else { if (requestCase_ == 17) { requestCase_ = 0; request_ = null; } availableMapsBuilder_.clear(); } return this; } /** *
       * Returns directory of maps that can be played on.
       * 
* * .SC2APIProtocol.RequestAvailableMaps available_maps = 17; */ public SC2APIProtocol.Sc2Api.RequestAvailableMaps.Builder getAvailableMapsBuilder() { return getAvailableMapsFieldBuilder().getBuilder(); } /** *
       * Returns directory of maps that can be played on.
       * 
* * .SC2APIProtocol.RequestAvailableMaps available_maps = 17; */ @java.lang.Override public SC2APIProtocol.Sc2Api.RequestAvailableMapsOrBuilder getAvailableMapsOrBuilder() { if ((requestCase_ == 17) && (availableMapsBuilder_ != null)) { return availableMapsBuilder_.getMessageOrBuilder(); } else { if (requestCase_ == 17) { return (SC2APIProtocol.Sc2Api.RequestAvailableMaps) request_; } return SC2APIProtocol.Sc2Api.RequestAvailableMaps.getDefaultInstance(); } } /** *
       * Returns directory of maps that can be played on.
       * 
* * .SC2APIProtocol.RequestAvailableMaps available_maps = 17; */ private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.RequestAvailableMaps, SC2APIProtocol.Sc2Api.RequestAvailableMaps.Builder, SC2APIProtocol.Sc2Api.RequestAvailableMapsOrBuilder> getAvailableMapsFieldBuilder() { if (availableMapsBuilder_ == null) { if (!(requestCase_ == 17)) { request_ = SC2APIProtocol.Sc2Api.RequestAvailableMaps.getDefaultInstance(); } availableMapsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.RequestAvailableMaps, SC2APIProtocol.Sc2Api.RequestAvailableMaps.Builder, SC2APIProtocol.Sc2Api.RequestAvailableMapsOrBuilder>( (SC2APIProtocol.Sc2Api.RequestAvailableMaps) request_, getParentForChildren(), isClean()); request_ = null; } requestCase_ = 17; onChanged();; return availableMapsBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.RequestSaveMap, SC2APIProtocol.Sc2Api.RequestSaveMap.Builder, SC2APIProtocol.Sc2Api.RequestSaveMapOrBuilder> saveMapBuilder_; /** *
       * Saves binary map data to the local temp directory.
       * 
* * .SC2APIProtocol.RequestSaveMap save_map = 18; * @return Whether the saveMap field is set. */ @java.lang.Override public boolean hasSaveMap() { return requestCase_ == 18; } /** *
       * Saves binary map data to the local temp directory.
       * 
* * .SC2APIProtocol.RequestSaveMap save_map = 18; * @return The saveMap. */ @java.lang.Override public SC2APIProtocol.Sc2Api.RequestSaveMap getSaveMap() { if (saveMapBuilder_ == null) { if (requestCase_ == 18) { return (SC2APIProtocol.Sc2Api.RequestSaveMap) request_; } return SC2APIProtocol.Sc2Api.RequestSaveMap.getDefaultInstance(); } else { if (requestCase_ == 18) { return saveMapBuilder_.getMessage(); } return SC2APIProtocol.Sc2Api.RequestSaveMap.getDefaultInstance(); } } /** *
       * Saves binary map data to the local temp directory.
       * 
* * .SC2APIProtocol.RequestSaveMap save_map = 18; */ public Builder setSaveMap(SC2APIProtocol.Sc2Api.RequestSaveMap value) { if (saveMapBuilder_ == null) { if (value == null) { throw new NullPointerException(); } request_ = value; onChanged(); } else { saveMapBuilder_.setMessage(value); } requestCase_ = 18; return this; } /** *
       * Saves binary map data to the local temp directory.
       * 
* * .SC2APIProtocol.RequestSaveMap save_map = 18; */ public Builder setSaveMap( SC2APIProtocol.Sc2Api.RequestSaveMap.Builder builderForValue) { if (saveMapBuilder_ == null) { request_ = builderForValue.build(); onChanged(); } else { saveMapBuilder_.setMessage(builderForValue.build()); } requestCase_ = 18; return this; } /** *
       * Saves binary map data to the local temp directory.
       * 
* * .SC2APIProtocol.RequestSaveMap save_map = 18; */ public Builder mergeSaveMap(SC2APIProtocol.Sc2Api.RequestSaveMap value) { if (saveMapBuilder_ == null) { if (requestCase_ == 18 && request_ != SC2APIProtocol.Sc2Api.RequestSaveMap.getDefaultInstance()) { request_ = SC2APIProtocol.Sc2Api.RequestSaveMap.newBuilder((SC2APIProtocol.Sc2Api.RequestSaveMap) request_) .mergeFrom(value).buildPartial(); } else { request_ = value; } onChanged(); } else { if (requestCase_ == 18) { saveMapBuilder_.mergeFrom(value); } else { saveMapBuilder_.setMessage(value); } } requestCase_ = 18; return this; } /** *
       * Saves binary map data to the local temp directory.
       * 
* * .SC2APIProtocol.RequestSaveMap save_map = 18; */ public Builder clearSaveMap() { if (saveMapBuilder_ == null) { if (requestCase_ == 18) { requestCase_ = 0; request_ = null; onChanged(); } } else { if (requestCase_ == 18) { requestCase_ = 0; request_ = null; } saveMapBuilder_.clear(); } return this; } /** *
       * Saves binary map data to the local temp directory.
       * 
* * .SC2APIProtocol.RequestSaveMap save_map = 18; */ public SC2APIProtocol.Sc2Api.RequestSaveMap.Builder getSaveMapBuilder() { return getSaveMapFieldBuilder().getBuilder(); } /** *
       * Saves binary map data to the local temp directory.
       * 
* * .SC2APIProtocol.RequestSaveMap save_map = 18; */ @java.lang.Override public SC2APIProtocol.Sc2Api.RequestSaveMapOrBuilder getSaveMapOrBuilder() { if ((requestCase_ == 18) && (saveMapBuilder_ != null)) { return saveMapBuilder_.getMessageOrBuilder(); } else { if (requestCase_ == 18) { return (SC2APIProtocol.Sc2Api.RequestSaveMap) request_; } return SC2APIProtocol.Sc2Api.RequestSaveMap.getDefaultInstance(); } } /** *
       * Saves binary map data to the local temp directory.
       * 
* * .SC2APIProtocol.RequestSaveMap save_map = 18; */ private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.RequestSaveMap, SC2APIProtocol.Sc2Api.RequestSaveMap.Builder, SC2APIProtocol.Sc2Api.RequestSaveMapOrBuilder> getSaveMapFieldBuilder() { if (saveMapBuilder_ == null) { if (!(requestCase_ == 18)) { request_ = SC2APIProtocol.Sc2Api.RequestSaveMap.getDefaultInstance(); } saveMapBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.RequestSaveMap, SC2APIProtocol.Sc2Api.RequestSaveMap.Builder, SC2APIProtocol.Sc2Api.RequestSaveMapOrBuilder>( (SC2APIProtocol.Sc2Api.RequestSaveMap) request_, getParentForChildren(), isClean()); request_ = null; } requestCase_ = 18; onChanged();; return saveMapBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.RequestPing, SC2APIProtocol.Sc2Api.RequestPing.Builder, SC2APIProtocol.Sc2Api.RequestPingOrBuilder> pingBuilder_; /** *
       * Debugging
       * 
* * .SC2APIProtocol.RequestPing ping = 19; * @return Whether the ping field is set. */ @java.lang.Override public boolean hasPing() { return requestCase_ == 19; } /** *
       * Debugging
       * 
* * .SC2APIProtocol.RequestPing ping = 19; * @return The ping. */ @java.lang.Override public SC2APIProtocol.Sc2Api.RequestPing getPing() { if (pingBuilder_ == null) { if (requestCase_ == 19) { return (SC2APIProtocol.Sc2Api.RequestPing) request_; } return SC2APIProtocol.Sc2Api.RequestPing.getDefaultInstance(); } else { if (requestCase_ == 19) { return pingBuilder_.getMessage(); } return SC2APIProtocol.Sc2Api.RequestPing.getDefaultInstance(); } } /** *
       * Debugging
       * 
* * .SC2APIProtocol.RequestPing ping = 19; */ public Builder setPing(SC2APIProtocol.Sc2Api.RequestPing value) { if (pingBuilder_ == null) { if (value == null) { throw new NullPointerException(); } request_ = value; onChanged(); } else { pingBuilder_.setMessage(value); } requestCase_ = 19; return this; } /** *
       * Debugging
       * 
* * .SC2APIProtocol.RequestPing ping = 19; */ public Builder setPing( SC2APIProtocol.Sc2Api.RequestPing.Builder builderForValue) { if (pingBuilder_ == null) { request_ = builderForValue.build(); onChanged(); } else { pingBuilder_.setMessage(builderForValue.build()); } requestCase_ = 19; return this; } /** *
       * Debugging
       * 
* * .SC2APIProtocol.RequestPing ping = 19; */ public Builder mergePing(SC2APIProtocol.Sc2Api.RequestPing value) { if (pingBuilder_ == null) { if (requestCase_ == 19 && request_ != SC2APIProtocol.Sc2Api.RequestPing.getDefaultInstance()) { request_ = SC2APIProtocol.Sc2Api.RequestPing.newBuilder((SC2APIProtocol.Sc2Api.RequestPing) request_) .mergeFrom(value).buildPartial(); } else { request_ = value; } onChanged(); } else { if (requestCase_ == 19) { pingBuilder_.mergeFrom(value); } else { pingBuilder_.setMessage(value); } } requestCase_ = 19; return this; } /** *
       * Debugging
       * 
* * .SC2APIProtocol.RequestPing ping = 19; */ public Builder clearPing() { if (pingBuilder_ == null) { if (requestCase_ == 19) { requestCase_ = 0; request_ = null; onChanged(); } } else { if (requestCase_ == 19) { requestCase_ = 0; request_ = null; } pingBuilder_.clear(); } return this; } /** *
       * Debugging
       * 
* * .SC2APIProtocol.RequestPing ping = 19; */ public SC2APIProtocol.Sc2Api.RequestPing.Builder getPingBuilder() { return getPingFieldBuilder().getBuilder(); } /** *
       * Debugging
       * 
* * .SC2APIProtocol.RequestPing ping = 19; */ @java.lang.Override public SC2APIProtocol.Sc2Api.RequestPingOrBuilder getPingOrBuilder() { if ((requestCase_ == 19) && (pingBuilder_ != null)) { return pingBuilder_.getMessageOrBuilder(); } else { if (requestCase_ == 19) { return (SC2APIProtocol.Sc2Api.RequestPing) request_; } return SC2APIProtocol.Sc2Api.RequestPing.getDefaultInstance(); } } /** *
       * Debugging
       * 
* * .SC2APIProtocol.RequestPing ping = 19; */ private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.RequestPing, SC2APIProtocol.Sc2Api.RequestPing.Builder, SC2APIProtocol.Sc2Api.RequestPingOrBuilder> getPingFieldBuilder() { if (pingBuilder_ == null) { if (!(requestCase_ == 19)) { request_ = SC2APIProtocol.Sc2Api.RequestPing.getDefaultInstance(); } pingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.RequestPing, SC2APIProtocol.Sc2Api.RequestPing.Builder, SC2APIProtocol.Sc2Api.RequestPingOrBuilder>( (SC2APIProtocol.Sc2Api.RequestPing) request_, getParentForChildren(), isClean()); request_ = null; } requestCase_ = 19; onChanged();; return pingBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.RequestDebug, SC2APIProtocol.Sc2Api.RequestDebug.Builder, SC2APIProtocol.Sc2Api.RequestDebugOrBuilder> debugBuilder_; /** *
       * Display debug information and execute debug actions.
       * 
* * .SC2APIProtocol.RequestDebug debug = 20; * @return Whether the debug field is set. */ @java.lang.Override public boolean hasDebug() { return requestCase_ == 20; } /** *
       * Display debug information and execute debug actions.
       * 
* * .SC2APIProtocol.RequestDebug debug = 20; * @return The debug. */ @java.lang.Override public SC2APIProtocol.Sc2Api.RequestDebug getDebug() { if (debugBuilder_ == null) { if (requestCase_ == 20) { return (SC2APIProtocol.Sc2Api.RequestDebug) request_; } return SC2APIProtocol.Sc2Api.RequestDebug.getDefaultInstance(); } else { if (requestCase_ == 20) { return debugBuilder_.getMessage(); } return SC2APIProtocol.Sc2Api.RequestDebug.getDefaultInstance(); } } /** *
       * Display debug information and execute debug actions.
       * 
* * .SC2APIProtocol.RequestDebug debug = 20; */ public Builder setDebug(SC2APIProtocol.Sc2Api.RequestDebug value) { if (debugBuilder_ == null) { if (value == null) { throw new NullPointerException(); } request_ = value; onChanged(); } else { debugBuilder_.setMessage(value); } requestCase_ = 20; return this; } /** *
       * Display debug information and execute debug actions.
       * 
* * .SC2APIProtocol.RequestDebug debug = 20; */ public Builder setDebug( SC2APIProtocol.Sc2Api.RequestDebug.Builder builderForValue) { if (debugBuilder_ == null) { request_ = builderForValue.build(); onChanged(); } else { debugBuilder_.setMessage(builderForValue.build()); } requestCase_ = 20; return this; } /** *
       * Display debug information and execute debug actions.
       * 
* * .SC2APIProtocol.RequestDebug debug = 20; */ public Builder mergeDebug(SC2APIProtocol.Sc2Api.RequestDebug value) { if (debugBuilder_ == null) { if (requestCase_ == 20 && request_ != SC2APIProtocol.Sc2Api.RequestDebug.getDefaultInstance()) { request_ = SC2APIProtocol.Sc2Api.RequestDebug.newBuilder((SC2APIProtocol.Sc2Api.RequestDebug) request_) .mergeFrom(value).buildPartial(); } else { request_ = value; } onChanged(); } else { if (requestCase_ == 20) { debugBuilder_.mergeFrom(value); } else { debugBuilder_.setMessage(value); } } requestCase_ = 20; return this; } /** *
       * Display debug information and execute debug actions.
       * 
* * .SC2APIProtocol.RequestDebug debug = 20; */ public Builder clearDebug() { if (debugBuilder_ == null) { if (requestCase_ == 20) { requestCase_ = 0; request_ = null; onChanged(); } } else { if (requestCase_ == 20) { requestCase_ = 0; request_ = null; } debugBuilder_.clear(); } return this; } /** *
       * Display debug information and execute debug actions.
       * 
* * .SC2APIProtocol.RequestDebug debug = 20; */ public SC2APIProtocol.Sc2Api.RequestDebug.Builder getDebugBuilder() { return getDebugFieldBuilder().getBuilder(); } /** *
       * Display debug information and execute debug actions.
       * 
* * .SC2APIProtocol.RequestDebug debug = 20; */ @java.lang.Override public SC2APIProtocol.Sc2Api.RequestDebugOrBuilder getDebugOrBuilder() { if ((requestCase_ == 20) && (debugBuilder_ != null)) { return debugBuilder_.getMessageOrBuilder(); } else { if (requestCase_ == 20) { return (SC2APIProtocol.Sc2Api.RequestDebug) request_; } return SC2APIProtocol.Sc2Api.RequestDebug.getDefaultInstance(); } } /** *
       * Display debug information and execute debug actions.
       * 
* * .SC2APIProtocol.RequestDebug debug = 20; */ private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.RequestDebug, SC2APIProtocol.Sc2Api.RequestDebug.Builder, SC2APIProtocol.Sc2Api.RequestDebugOrBuilder> getDebugFieldBuilder() { if (debugBuilder_ == null) { if (!(requestCase_ == 20)) { request_ = SC2APIProtocol.Sc2Api.RequestDebug.getDefaultInstance(); } debugBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.RequestDebug, SC2APIProtocol.Sc2Api.RequestDebug.Builder, SC2APIProtocol.Sc2Api.RequestDebugOrBuilder>( (SC2APIProtocol.Sc2Api.RequestDebug) request_, getParentForChildren(), isClean()); request_ = null; } requestCase_ = 20; onChanged();; return debugBuilder_; } private int id_ ; /** * optional uint32 id = 97; * @return Whether the id field is set. */ @java.lang.Override public boolean hasId() { return ((bitField0_ & 0x00400000) != 0); } /** * optional uint32 id = 97; * @return The id. */ @java.lang.Override public int getId() { return id_; } /** * optional uint32 id = 97; * @param value The id to set. * @return This builder for chaining. */ public Builder setId(int value) { bitField0_ |= 0x00400000; id_ = value; onChanged(); return this; } /** * optional uint32 id = 97; * @return This builder for chaining. */ public Builder clearId() { bitField0_ = (bitField0_ & ~0x00400000); id_ = 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.Request) } // @@protoc_insertion_point(class_scope:SC2APIProtocol.Request) private static final SC2APIProtocol.Sc2Api.Request DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new SC2APIProtocol.Sc2Api.Request(); } public static SC2APIProtocol.Sc2Api.Request getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Request 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.Sc2Api.Request getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ResponseOrBuilder extends // @@protoc_insertion_point(interface_extends:SC2APIProtocol.Response) com.google.protobuf.MessageOrBuilder { /** * .SC2APIProtocol.ResponseCreateGame create_game = 1; * @return Whether the createGame field is set. */ boolean hasCreateGame(); /** * .SC2APIProtocol.ResponseCreateGame create_game = 1; * @return The createGame. */ SC2APIProtocol.Sc2Api.ResponseCreateGame getCreateGame(); /** * .SC2APIProtocol.ResponseCreateGame create_game = 1; */ SC2APIProtocol.Sc2Api.ResponseCreateGameOrBuilder getCreateGameOrBuilder(); /** * .SC2APIProtocol.ResponseJoinGame join_game = 2; * @return Whether the joinGame field is set. */ boolean hasJoinGame(); /** * .SC2APIProtocol.ResponseJoinGame join_game = 2; * @return The joinGame. */ SC2APIProtocol.Sc2Api.ResponseJoinGame getJoinGame(); /** * .SC2APIProtocol.ResponseJoinGame join_game = 2; */ SC2APIProtocol.Sc2Api.ResponseJoinGameOrBuilder getJoinGameOrBuilder(); /** * .SC2APIProtocol.ResponseRestartGame restart_game = 3; * @return Whether the restartGame field is set. */ boolean hasRestartGame(); /** * .SC2APIProtocol.ResponseRestartGame restart_game = 3; * @return The restartGame. */ SC2APIProtocol.Sc2Api.ResponseRestartGame getRestartGame(); /** * .SC2APIProtocol.ResponseRestartGame restart_game = 3; */ SC2APIProtocol.Sc2Api.ResponseRestartGameOrBuilder getRestartGameOrBuilder(); /** * .SC2APIProtocol.ResponseStartReplay start_replay = 4; * @return Whether the startReplay field is set. */ boolean hasStartReplay(); /** * .SC2APIProtocol.ResponseStartReplay start_replay = 4; * @return The startReplay. */ SC2APIProtocol.Sc2Api.ResponseStartReplay getStartReplay(); /** * .SC2APIProtocol.ResponseStartReplay start_replay = 4; */ SC2APIProtocol.Sc2Api.ResponseStartReplayOrBuilder getStartReplayOrBuilder(); /** * .SC2APIProtocol.ResponseLeaveGame leave_game = 5; * @return Whether the leaveGame field is set. */ boolean hasLeaveGame(); /** * .SC2APIProtocol.ResponseLeaveGame leave_game = 5; * @return The leaveGame. */ SC2APIProtocol.Sc2Api.ResponseLeaveGame getLeaveGame(); /** * .SC2APIProtocol.ResponseLeaveGame leave_game = 5; */ SC2APIProtocol.Sc2Api.ResponseLeaveGameOrBuilder getLeaveGameOrBuilder(); /** * .SC2APIProtocol.ResponseQuickSave quick_save = 6; * @return Whether the quickSave field is set. */ boolean hasQuickSave(); /** * .SC2APIProtocol.ResponseQuickSave quick_save = 6; * @return The quickSave. */ SC2APIProtocol.Sc2Api.ResponseQuickSave getQuickSave(); /** * .SC2APIProtocol.ResponseQuickSave quick_save = 6; */ SC2APIProtocol.Sc2Api.ResponseQuickSaveOrBuilder getQuickSaveOrBuilder(); /** * .SC2APIProtocol.ResponseQuickLoad quick_load = 7; * @return Whether the quickLoad field is set. */ boolean hasQuickLoad(); /** * .SC2APIProtocol.ResponseQuickLoad quick_load = 7; * @return The quickLoad. */ SC2APIProtocol.Sc2Api.ResponseQuickLoad getQuickLoad(); /** * .SC2APIProtocol.ResponseQuickLoad quick_load = 7; */ SC2APIProtocol.Sc2Api.ResponseQuickLoadOrBuilder getQuickLoadOrBuilder(); /** * .SC2APIProtocol.ResponseQuit quit = 8; * @return Whether the quit field is set. */ boolean hasQuit(); /** * .SC2APIProtocol.ResponseQuit quit = 8; * @return The quit. */ SC2APIProtocol.Sc2Api.ResponseQuit getQuit(); /** * .SC2APIProtocol.ResponseQuit quit = 8; */ SC2APIProtocol.Sc2Api.ResponseQuitOrBuilder getQuitOrBuilder(); /** * .SC2APIProtocol.ResponseGameInfo game_info = 9; * @return Whether the gameInfo field is set. */ boolean hasGameInfo(); /** * .SC2APIProtocol.ResponseGameInfo game_info = 9; * @return The gameInfo. */ SC2APIProtocol.Sc2Api.ResponseGameInfo getGameInfo(); /** * .SC2APIProtocol.ResponseGameInfo game_info = 9; */ SC2APIProtocol.Sc2Api.ResponseGameInfoOrBuilder getGameInfoOrBuilder(); /** * .SC2APIProtocol.ResponseObservation observation = 10; * @return Whether the observation field is set. */ boolean hasObservation(); /** * .SC2APIProtocol.ResponseObservation observation = 10; * @return The observation. */ SC2APIProtocol.Sc2Api.ResponseObservation getObservation(); /** * .SC2APIProtocol.ResponseObservation observation = 10; */ SC2APIProtocol.Sc2Api.ResponseObservationOrBuilder getObservationOrBuilder(); /** * .SC2APIProtocol.ResponseAction action = 11; * @return Whether the action field is set. */ boolean hasAction(); /** * .SC2APIProtocol.ResponseAction action = 11; * @return The action. */ SC2APIProtocol.Sc2Api.ResponseAction getAction(); /** * .SC2APIProtocol.ResponseAction action = 11; */ SC2APIProtocol.Sc2Api.ResponseActionOrBuilder getActionOrBuilder(); /** * .SC2APIProtocol.ResponseObserverAction obs_action = 21; * @return Whether the obsAction field is set. */ boolean hasObsAction(); /** * .SC2APIProtocol.ResponseObserverAction obs_action = 21; * @return The obsAction. */ SC2APIProtocol.Sc2Api.ResponseObserverAction getObsAction(); /** * .SC2APIProtocol.ResponseObserverAction obs_action = 21; */ SC2APIProtocol.Sc2Api.ResponseObserverActionOrBuilder getObsActionOrBuilder(); /** * .SC2APIProtocol.ResponseStep step = 12; * @return Whether the step field is set. */ boolean hasStep(); /** * .SC2APIProtocol.ResponseStep step = 12; * @return The step. */ SC2APIProtocol.Sc2Api.ResponseStep getStep(); /** * .SC2APIProtocol.ResponseStep step = 12; */ SC2APIProtocol.Sc2Api.ResponseStepOrBuilder getStepOrBuilder(); /** * .SC2APIProtocol.ResponseData data = 13; * @return Whether the data field is set. */ boolean hasData(); /** * .SC2APIProtocol.ResponseData data = 13; * @return The data. */ SC2APIProtocol.Sc2Api.ResponseData getData(); /** * .SC2APIProtocol.ResponseData data = 13; */ SC2APIProtocol.Sc2Api.ResponseDataOrBuilder getDataOrBuilder(); /** * .SC2APIProtocol.ResponseQuery query = 14; * @return Whether the query field is set. */ boolean hasQuery(); /** * .SC2APIProtocol.ResponseQuery query = 14; * @return The query. */ SC2APIProtocol.Query.ResponseQuery getQuery(); /** * .SC2APIProtocol.ResponseQuery query = 14; */ SC2APIProtocol.Query.ResponseQueryOrBuilder getQueryOrBuilder(); /** * .SC2APIProtocol.ResponseSaveReplay save_replay = 15; * @return Whether the saveReplay field is set. */ boolean hasSaveReplay(); /** * .SC2APIProtocol.ResponseSaveReplay save_replay = 15; * @return The saveReplay. */ SC2APIProtocol.Sc2Api.ResponseSaveReplay getSaveReplay(); /** * .SC2APIProtocol.ResponseSaveReplay save_replay = 15; */ SC2APIProtocol.Sc2Api.ResponseSaveReplayOrBuilder getSaveReplayOrBuilder(); /** * .SC2APIProtocol.ResponseReplayInfo replay_info = 16; * @return Whether the replayInfo field is set. */ boolean hasReplayInfo(); /** * .SC2APIProtocol.ResponseReplayInfo replay_info = 16; * @return The replayInfo. */ SC2APIProtocol.Sc2Api.ResponseReplayInfo getReplayInfo(); /** * .SC2APIProtocol.ResponseReplayInfo replay_info = 16; */ SC2APIProtocol.Sc2Api.ResponseReplayInfoOrBuilder getReplayInfoOrBuilder(); /** * .SC2APIProtocol.ResponseAvailableMaps available_maps = 17; * @return Whether the availableMaps field is set. */ boolean hasAvailableMaps(); /** * .SC2APIProtocol.ResponseAvailableMaps available_maps = 17; * @return The availableMaps. */ SC2APIProtocol.Sc2Api.ResponseAvailableMaps getAvailableMaps(); /** * .SC2APIProtocol.ResponseAvailableMaps available_maps = 17; */ SC2APIProtocol.Sc2Api.ResponseAvailableMapsOrBuilder getAvailableMapsOrBuilder(); /** * .SC2APIProtocol.ResponseSaveMap save_map = 18; * @return Whether the saveMap field is set. */ boolean hasSaveMap(); /** * .SC2APIProtocol.ResponseSaveMap save_map = 18; * @return The saveMap. */ SC2APIProtocol.Sc2Api.ResponseSaveMap getSaveMap(); /** * .SC2APIProtocol.ResponseSaveMap save_map = 18; */ SC2APIProtocol.Sc2Api.ResponseSaveMapOrBuilder getSaveMapOrBuilder(); /** * .SC2APIProtocol.ResponseMapCommand map_command = 22; * @return Whether the mapCommand field is set. */ boolean hasMapCommand(); /** * .SC2APIProtocol.ResponseMapCommand map_command = 22; * @return The mapCommand. */ SC2APIProtocol.Sc2Api.ResponseMapCommand getMapCommand(); /** * .SC2APIProtocol.ResponseMapCommand map_command = 22; */ SC2APIProtocol.Sc2Api.ResponseMapCommandOrBuilder getMapCommandOrBuilder(); /** *
     * Debugging
     * 
* * .SC2APIProtocol.ResponsePing ping = 19; * @return Whether the ping field is set. */ boolean hasPing(); /** *
     * Debugging
     * 
* * .SC2APIProtocol.ResponsePing ping = 19; * @return The ping. */ SC2APIProtocol.Sc2Api.ResponsePing getPing(); /** *
     * Debugging
     * 
* * .SC2APIProtocol.ResponsePing ping = 19; */ SC2APIProtocol.Sc2Api.ResponsePingOrBuilder getPingOrBuilder(); /** * .SC2APIProtocol.ResponseDebug debug = 20; * @return Whether the debug field is set. */ boolean hasDebug(); /** * .SC2APIProtocol.ResponseDebug debug = 20; * @return The debug. */ SC2APIProtocol.Sc2Api.ResponseDebug getDebug(); /** * .SC2APIProtocol.ResponseDebug debug = 20; */ SC2APIProtocol.Sc2Api.ResponseDebugOrBuilder getDebugOrBuilder(); /** * optional uint32 id = 97; * @return Whether the id field is set. */ boolean hasId(); /** * optional uint32 id = 97; * @return The id. */ int getId(); /** *
     * If command is missing, this will contain the error. Otherwise this will contain any warnings.
     * 
* * repeated string error = 98; * @return A list containing the error. */ java.util.List getErrorList(); /** *
     * If command is missing, this will contain the error. Otherwise this will contain any warnings.
     * 
* * repeated string error = 98; * @return The count of error. */ int getErrorCount(); /** *
     * If command is missing, this will contain the error. Otherwise this will contain any warnings.
     * 
* * repeated string error = 98; * @param index The index of the element to return. * @return The error at the given index. */ java.lang.String getError(int index); /** *
     * If command is missing, this will contain the error. Otherwise this will contain any warnings.
     * 
* * repeated string error = 98; * @param index The index of the value to return. * @return The bytes of the error at the given index. */ com.google.protobuf.ByteString getErrorBytes(int index); /** *
     * Should be sent back with all responses.
     * 
* * optional .SC2APIProtocol.Status status = 99; * @return Whether the status field is set. */ boolean hasStatus(); /** *
     * Should be sent back with all responses.
     * 
* * optional .SC2APIProtocol.Status status = 99; * @return The status. */ SC2APIProtocol.Sc2Api.Status getStatus(); public SC2APIProtocol.Sc2Api.Response.ResponseCase getResponseCase(); } /** * Protobuf type {@code SC2APIProtocol.Response} */ public static final class Response extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:SC2APIProtocol.Response) ResponseOrBuilder { private static final long serialVersionUID = 0L; // Use Response.newBuilder() to construct. private Response(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Response() { error_ = com.google.protobuf.LazyStringArrayList.EMPTY; status_ = 1; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Response(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_Response_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_Response_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Sc2Api.Response.class, SC2APIProtocol.Sc2Api.Response.Builder.class); } private int bitField0_; private int responseCase_ = 0; private java.lang.Object response_; public enum ResponseCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { CREATE_GAME(1), JOIN_GAME(2), RESTART_GAME(3), START_REPLAY(4), LEAVE_GAME(5), QUICK_SAVE(6), QUICK_LOAD(7), QUIT(8), GAME_INFO(9), OBSERVATION(10), ACTION(11), OBS_ACTION(21), STEP(12), DATA(13), QUERY(14), SAVE_REPLAY(15), REPLAY_INFO(16), AVAILABLE_MAPS(17), SAVE_MAP(18), MAP_COMMAND(22), PING(19), DEBUG(20), RESPONSE_NOT_SET(0); private final int value; private ResponseCase(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 ResponseCase valueOf(int value) { return forNumber(value); } public static ResponseCase forNumber(int value) { switch (value) { case 1: return CREATE_GAME; case 2: return JOIN_GAME; case 3: return RESTART_GAME; case 4: return START_REPLAY; case 5: return LEAVE_GAME; case 6: return QUICK_SAVE; case 7: return QUICK_LOAD; case 8: return QUIT; case 9: return GAME_INFO; case 10: return OBSERVATION; case 11: return ACTION; case 21: return OBS_ACTION; case 12: return STEP; case 13: return DATA; case 14: return QUERY; case 15: return SAVE_REPLAY; case 16: return REPLAY_INFO; case 17: return AVAILABLE_MAPS; case 18: return SAVE_MAP; case 22: return MAP_COMMAND; case 19: return PING; case 20: return DEBUG; case 0: return RESPONSE_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public ResponseCase getResponseCase() { return ResponseCase.forNumber( responseCase_); } public static final int CREATE_GAME_FIELD_NUMBER = 1; /** * .SC2APIProtocol.ResponseCreateGame create_game = 1; * @return Whether the createGame field is set. */ @java.lang.Override public boolean hasCreateGame() { return responseCase_ == 1; } /** * .SC2APIProtocol.ResponseCreateGame create_game = 1; * @return The createGame. */ @java.lang.Override public SC2APIProtocol.Sc2Api.ResponseCreateGame getCreateGame() { if (responseCase_ == 1) { return (SC2APIProtocol.Sc2Api.ResponseCreateGame) response_; } return SC2APIProtocol.Sc2Api.ResponseCreateGame.getDefaultInstance(); } /** * .SC2APIProtocol.ResponseCreateGame create_game = 1; */ @java.lang.Override public SC2APIProtocol.Sc2Api.ResponseCreateGameOrBuilder getCreateGameOrBuilder() { if (responseCase_ == 1) { return (SC2APIProtocol.Sc2Api.ResponseCreateGame) response_; } return SC2APIProtocol.Sc2Api.ResponseCreateGame.getDefaultInstance(); } public static final int JOIN_GAME_FIELD_NUMBER = 2; /** * .SC2APIProtocol.ResponseJoinGame join_game = 2; * @return Whether the joinGame field is set. */ @java.lang.Override public boolean hasJoinGame() { return responseCase_ == 2; } /** * .SC2APIProtocol.ResponseJoinGame join_game = 2; * @return The joinGame. */ @java.lang.Override public SC2APIProtocol.Sc2Api.ResponseJoinGame getJoinGame() { if (responseCase_ == 2) { return (SC2APIProtocol.Sc2Api.ResponseJoinGame) response_; } return SC2APIProtocol.Sc2Api.ResponseJoinGame.getDefaultInstance(); } /** * .SC2APIProtocol.ResponseJoinGame join_game = 2; */ @java.lang.Override public SC2APIProtocol.Sc2Api.ResponseJoinGameOrBuilder getJoinGameOrBuilder() { if (responseCase_ == 2) { return (SC2APIProtocol.Sc2Api.ResponseJoinGame) response_; } return SC2APIProtocol.Sc2Api.ResponseJoinGame.getDefaultInstance(); } public static final int RESTART_GAME_FIELD_NUMBER = 3; /** * .SC2APIProtocol.ResponseRestartGame restart_game = 3; * @return Whether the restartGame field is set. */ @java.lang.Override public boolean hasRestartGame() { return responseCase_ == 3; } /** * .SC2APIProtocol.ResponseRestartGame restart_game = 3; * @return The restartGame. */ @java.lang.Override public SC2APIProtocol.Sc2Api.ResponseRestartGame getRestartGame() { if (responseCase_ == 3) { return (SC2APIProtocol.Sc2Api.ResponseRestartGame) response_; } return SC2APIProtocol.Sc2Api.ResponseRestartGame.getDefaultInstance(); } /** * .SC2APIProtocol.ResponseRestartGame restart_game = 3; */ @java.lang.Override public SC2APIProtocol.Sc2Api.ResponseRestartGameOrBuilder getRestartGameOrBuilder() { if (responseCase_ == 3) { return (SC2APIProtocol.Sc2Api.ResponseRestartGame) response_; } return SC2APIProtocol.Sc2Api.ResponseRestartGame.getDefaultInstance(); } public static final int START_REPLAY_FIELD_NUMBER = 4; /** * .SC2APIProtocol.ResponseStartReplay start_replay = 4; * @return Whether the startReplay field is set. */ @java.lang.Override public boolean hasStartReplay() { return responseCase_ == 4; } /** * .SC2APIProtocol.ResponseStartReplay start_replay = 4; * @return The startReplay. */ @java.lang.Override public SC2APIProtocol.Sc2Api.ResponseStartReplay getStartReplay() { if (responseCase_ == 4) { return (SC2APIProtocol.Sc2Api.ResponseStartReplay) response_; } return SC2APIProtocol.Sc2Api.ResponseStartReplay.getDefaultInstance(); } /** * .SC2APIProtocol.ResponseStartReplay start_replay = 4; */ @java.lang.Override public SC2APIProtocol.Sc2Api.ResponseStartReplayOrBuilder getStartReplayOrBuilder() { if (responseCase_ == 4) { return (SC2APIProtocol.Sc2Api.ResponseStartReplay) response_; } return SC2APIProtocol.Sc2Api.ResponseStartReplay.getDefaultInstance(); } public static final int LEAVE_GAME_FIELD_NUMBER = 5; /** * .SC2APIProtocol.ResponseLeaveGame leave_game = 5; * @return Whether the leaveGame field is set. */ @java.lang.Override public boolean hasLeaveGame() { return responseCase_ == 5; } /** * .SC2APIProtocol.ResponseLeaveGame leave_game = 5; * @return The leaveGame. */ @java.lang.Override public SC2APIProtocol.Sc2Api.ResponseLeaveGame getLeaveGame() { if (responseCase_ == 5) { return (SC2APIProtocol.Sc2Api.ResponseLeaveGame) response_; } return SC2APIProtocol.Sc2Api.ResponseLeaveGame.getDefaultInstance(); } /** * .SC2APIProtocol.ResponseLeaveGame leave_game = 5; */ @java.lang.Override public SC2APIProtocol.Sc2Api.ResponseLeaveGameOrBuilder getLeaveGameOrBuilder() { if (responseCase_ == 5) { return (SC2APIProtocol.Sc2Api.ResponseLeaveGame) response_; } return SC2APIProtocol.Sc2Api.ResponseLeaveGame.getDefaultInstance(); } public static final int QUICK_SAVE_FIELD_NUMBER = 6; /** * .SC2APIProtocol.ResponseQuickSave quick_save = 6; * @return Whether the quickSave field is set. */ @java.lang.Override public boolean hasQuickSave() { return responseCase_ == 6; } /** * .SC2APIProtocol.ResponseQuickSave quick_save = 6; * @return The quickSave. */ @java.lang.Override public SC2APIProtocol.Sc2Api.ResponseQuickSave getQuickSave() { if (responseCase_ == 6) { return (SC2APIProtocol.Sc2Api.ResponseQuickSave) response_; } return SC2APIProtocol.Sc2Api.ResponseQuickSave.getDefaultInstance(); } /** * .SC2APIProtocol.ResponseQuickSave quick_save = 6; */ @java.lang.Override public SC2APIProtocol.Sc2Api.ResponseQuickSaveOrBuilder getQuickSaveOrBuilder() { if (responseCase_ == 6) { return (SC2APIProtocol.Sc2Api.ResponseQuickSave) response_; } return SC2APIProtocol.Sc2Api.ResponseQuickSave.getDefaultInstance(); } public static final int QUICK_LOAD_FIELD_NUMBER = 7; /** * .SC2APIProtocol.ResponseQuickLoad quick_load = 7; * @return Whether the quickLoad field is set. */ @java.lang.Override public boolean hasQuickLoad() { return responseCase_ == 7; } /** * .SC2APIProtocol.ResponseQuickLoad quick_load = 7; * @return The quickLoad. */ @java.lang.Override public SC2APIProtocol.Sc2Api.ResponseQuickLoad getQuickLoad() { if (responseCase_ == 7) { return (SC2APIProtocol.Sc2Api.ResponseQuickLoad) response_; } return SC2APIProtocol.Sc2Api.ResponseQuickLoad.getDefaultInstance(); } /** * .SC2APIProtocol.ResponseQuickLoad quick_load = 7; */ @java.lang.Override public SC2APIProtocol.Sc2Api.ResponseQuickLoadOrBuilder getQuickLoadOrBuilder() { if (responseCase_ == 7) { return (SC2APIProtocol.Sc2Api.ResponseQuickLoad) response_; } return SC2APIProtocol.Sc2Api.ResponseQuickLoad.getDefaultInstance(); } public static final int QUIT_FIELD_NUMBER = 8; /** * .SC2APIProtocol.ResponseQuit quit = 8; * @return Whether the quit field is set. */ @java.lang.Override public boolean hasQuit() { return responseCase_ == 8; } /** * .SC2APIProtocol.ResponseQuit quit = 8; * @return The quit. */ @java.lang.Override public SC2APIProtocol.Sc2Api.ResponseQuit getQuit() { if (responseCase_ == 8) { return (SC2APIProtocol.Sc2Api.ResponseQuit) response_; } return SC2APIProtocol.Sc2Api.ResponseQuit.getDefaultInstance(); } /** * .SC2APIProtocol.ResponseQuit quit = 8; */ @java.lang.Override public SC2APIProtocol.Sc2Api.ResponseQuitOrBuilder getQuitOrBuilder() { if (responseCase_ == 8) { return (SC2APIProtocol.Sc2Api.ResponseQuit) response_; } return SC2APIProtocol.Sc2Api.ResponseQuit.getDefaultInstance(); } public static final int GAME_INFO_FIELD_NUMBER = 9; /** * .SC2APIProtocol.ResponseGameInfo game_info = 9; * @return Whether the gameInfo field is set. */ @java.lang.Override public boolean hasGameInfo() { return responseCase_ == 9; } /** * .SC2APIProtocol.ResponseGameInfo game_info = 9; * @return The gameInfo. */ @java.lang.Override public SC2APIProtocol.Sc2Api.ResponseGameInfo getGameInfo() { if (responseCase_ == 9) { return (SC2APIProtocol.Sc2Api.ResponseGameInfo) response_; } return SC2APIProtocol.Sc2Api.ResponseGameInfo.getDefaultInstance(); } /** * .SC2APIProtocol.ResponseGameInfo game_info = 9; */ @java.lang.Override public SC2APIProtocol.Sc2Api.ResponseGameInfoOrBuilder getGameInfoOrBuilder() { if (responseCase_ == 9) { return (SC2APIProtocol.Sc2Api.ResponseGameInfo) response_; } return SC2APIProtocol.Sc2Api.ResponseGameInfo.getDefaultInstance(); } public static final int OBSERVATION_FIELD_NUMBER = 10; /** * .SC2APIProtocol.ResponseObservation observation = 10; * @return Whether the observation field is set. */ @java.lang.Override public boolean hasObservation() { return responseCase_ == 10; } /** * .SC2APIProtocol.ResponseObservation observation = 10; * @return The observation. */ @java.lang.Override public SC2APIProtocol.Sc2Api.ResponseObservation getObservation() { if (responseCase_ == 10) { return (SC2APIProtocol.Sc2Api.ResponseObservation) response_; } return SC2APIProtocol.Sc2Api.ResponseObservation.getDefaultInstance(); } /** * .SC2APIProtocol.ResponseObservation observation = 10; */ @java.lang.Override public SC2APIProtocol.Sc2Api.ResponseObservationOrBuilder getObservationOrBuilder() { if (responseCase_ == 10) { return (SC2APIProtocol.Sc2Api.ResponseObservation) response_; } return SC2APIProtocol.Sc2Api.ResponseObservation.getDefaultInstance(); } public static final int ACTION_FIELD_NUMBER = 11; /** * .SC2APIProtocol.ResponseAction action = 11; * @return Whether the action field is set. */ @java.lang.Override public boolean hasAction() { return responseCase_ == 11; } /** * .SC2APIProtocol.ResponseAction action = 11; * @return The action. */ @java.lang.Override public SC2APIProtocol.Sc2Api.ResponseAction getAction() { if (responseCase_ == 11) { return (SC2APIProtocol.Sc2Api.ResponseAction) response_; } return SC2APIProtocol.Sc2Api.ResponseAction.getDefaultInstance(); } /** * .SC2APIProtocol.ResponseAction action = 11; */ @java.lang.Override public SC2APIProtocol.Sc2Api.ResponseActionOrBuilder getActionOrBuilder() { if (responseCase_ == 11) { return (SC2APIProtocol.Sc2Api.ResponseAction) response_; } return SC2APIProtocol.Sc2Api.ResponseAction.getDefaultInstance(); } public static final int OBS_ACTION_FIELD_NUMBER = 21; /** * .SC2APIProtocol.ResponseObserverAction obs_action = 21; * @return Whether the obsAction field is set. */ @java.lang.Override public boolean hasObsAction() { return responseCase_ == 21; } /** * .SC2APIProtocol.ResponseObserverAction obs_action = 21; * @return The obsAction. */ @java.lang.Override public SC2APIProtocol.Sc2Api.ResponseObserverAction getObsAction() { if (responseCase_ == 21) { return (SC2APIProtocol.Sc2Api.ResponseObserverAction) response_; } return SC2APIProtocol.Sc2Api.ResponseObserverAction.getDefaultInstance(); } /** * .SC2APIProtocol.ResponseObserverAction obs_action = 21; */ @java.lang.Override public SC2APIProtocol.Sc2Api.ResponseObserverActionOrBuilder getObsActionOrBuilder() { if (responseCase_ == 21) { return (SC2APIProtocol.Sc2Api.ResponseObserverAction) response_; } return SC2APIProtocol.Sc2Api.ResponseObserverAction.getDefaultInstance(); } public static final int STEP_FIELD_NUMBER = 12; /** * .SC2APIProtocol.ResponseStep step = 12; * @return Whether the step field is set. */ @java.lang.Override public boolean hasStep() { return responseCase_ == 12; } /** * .SC2APIProtocol.ResponseStep step = 12; * @return The step. */ @java.lang.Override public SC2APIProtocol.Sc2Api.ResponseStep getStep() { if (responseCase_ == 12) { return (SC2APIProtocol.Sc2Api.ResponseStep) response_; } return SC2APIProtocol.Sc2Api.ResponseStep.getDefaultInstance(); } /** * .SC2APIProtocol.ResponseStep step = 12; */ @java.lang.Override public SC2APIProtocol.Sc2Api.ResponseStepOrBuilder getStepOrBuilder() { if (responseCase_ == 12) { return (SC2APIProtocol.Sc2Api.ResponseStep) response_; } return SC2APIProtocol.Sc2Api.ResponseStep.getDefaultInstance(); } public static final int DATA_FIELD_NUMBER = 13; /** * .SC2APIProtocol.ResponseData data = 13; * @return Whether the data field is set. */ @java.lang.Override public boolean hasData() { return responseCase_ == 13; } /** * .SC2APIProtocol.ResponseData data = 13; * @return The data. */ @java.lang.Override public SC2APIProtocol.Sc2Api.ResponseData getData() { if (responseCase_ == 13) { return (SC2APIProtocol.Sc2Api.ResponseData) response_; } return SC2APIProtocol.Sc2Api.ResponseData.getDefaultInstance(); } /** * .SC2APIProtocol.ResponseData data = 13; */ @java.lang.Override public SC2APIProtocol.Sc2Api.ResponseDataOrBuilder getDataOrBuilder() { if (responseCase_ == 13) { return (SC2APIProtocol.Sc2Api.ResponseData) response_; } return SC2APIProtocol.Sc2Api.ResponseData.getDefaultInstance(); } public static final int QUERY_FIELD_NUMBER = 14; /** * .SC2APIProtocol.ResponseQuery query = 14; * @return Whether the query field is set. */ @java.lang.Override public boolean hasQuery() { return responseCase_ == 14; } /** * .SC2APIProtocol.ResponseQuery query = 14; * @return The query. */ @java.lang.Override public SC2APIProtocol.Query.ResponseQuery getQuery() { if (responseCase_ == 14) { return (SC2APIProtocol.Query.ResponseQuery) response_; } return SC2APIProtocol.Query.ResponseQuery.getDefaultInstance(); } /** * .SC2APIProtocol.ResponseQuery query = 14; */ @java.lang.Override public SC2APIProtocol.Query.ResponseQueryOrBuilder getQueryOrBuilder() { if (responseCase_ == 14) { return (SC2APIProtocol.Query.ResponseQuery) response_; } return SC2APIProtocol.Query.ResponseQuery.getDefaultInstance(); } public static final int SAVE_REPLAY_FIELD_NUMBER = 15; /** * .SC2APIProtocol.ResponseSaveReplay save_replay = 15; * @return Whether the saveReplay field is set. */ @java.lang.Override public boolean hasSaveReplay() { return responseCase_ == 15; } /** * .SC2APIProtocol.ResponseSaveReplay save_replay = 15; * @return The saveReplay. */ @java.lang.Override public SC2APIProtocol.Sc2Api.ResponseSaveReplay getSaveReplay() { if (responseCase_ == 15) { return (SC2APIProtocol.Sc2Api.ResponseSaveReplay) response_; } return SC2APIProtocol.Sc2Api.ResponseSaveReplay.getDefaultInstance(); } /** * .SC2APIProtocol.ResponseSaveReplay save_replay = 15; */ @java.lang.Override public SC2APIProtocol.Sc2Api.ResponseSaveReplayOrBuilder getSaveReplayOrBuilder() { if (responseCase_ == 15) { return (SC2APIProtocol.Sc2Api.ResponseSaveReplay) response_; } return SC2APIProtocol.Sc2Api.ResponseSaveReplay.getDefaultInstance(); } public static final int REPLAY_INFO_FIELD_NUMBER = 16; /** * .SC2APIProtocol.ResponseReplayInfo replay_info = 16; * @return Whether the replayInfo field is set. */ @java.lang.Override public boolean hasReplayInfo() { return responseCase_ == 16; } /** * .SC2APIProtocol.ResponseReplayInfo replay_info = 16; * @return The replayInfo. */ @java.lang.Override public SC2APIProtocol.Sc2Api.ResponseReplayInfo getReplayInfo() { if (responseCase_ == 16) { return (SC2APIProtocol.Sc2Api.ResponseReplayInfo) response_; } return SC2APIProtocol.Sc2Api.ResponseReplayInfo.getDefaultInstance(); } /** * .SC2APIProtocol.ResponseReplayInfo replay_info = 16; */ @java.lang.Override public SC2APIProtocol.Sc2Api.ResponseReplayInfoOrBuilder getReplayInfoOrBuilder() { if (responseCase_ == 16) { return (SC2APIProtocol.Sc2Api.ResponseReplayInfo) response_; } return SC2APIProtocol.Sc2Api.ResponseReplayInfo.getDefaultInstance(); } public static final int AVAILABLE_MAPS_FIELD_NUMBER = 17; /** * .SC2APIProtocol.ResponseAvailableMaps available_maps = 17; * @return Whether the availableMaps field is set. */ @java.lang.Override public boolean hasAvailableMaps() { return responseCase_ == 17; } /** * .SC2APIProtocol.ResponseAvailableMaps available_maps = 17; * @return The availableMaps. */ @java.lang.Override public SC2APIProtocol.Sc2Api.ResponseAvailableMaps getAvailableMaps() { if (responseCase_ == 17) { return (SC2APIProtocol.Sc2Api.ResponseAvailableMaps) response_; } return SC2APIProtocol.Sc2Api.ResponseAvailableMaps.getDefaultInstance(); } /** * .SC2APIProtocol.ResponseAvailableMaps available_maps = 17; */ @java.lang.Override public SC2APIProtocol.Sc2Api.ResponseAvailableMapsOrBuilder getAvailableMapsOrBuilder() { if (responseCase_ == 17) { return (SC2APIProtocol.Sc2Api.ResponseAvailableMaps) response_; } return SC2APIProtocol.Sc2Api.ResponseAvailableMaps.getDefaultInstance(); } public static final int SAVE_MAP_FIELD_NUMBER = 18; /** * .SC2APIProtocol.ResponseSaveMap save_map = 18; * @return Whether the saveMap field is set. */ @java.lang.Override public boolean hasSaveMap() { return responseCase_ == 18; } /** * .SC2APIProtocol.ResponseSaveMap save_map = 18; * @return The saveMap. */ @java.lang.Override public SC2APIProtocol.Sc2Api.ResponseSaveMap getSaveMap() { if (responseCase_ == 18) { return (SC2APIProtocol.Sc2Api.ResponseSaveMap) response_; } return SC2APIProtocol.Sc2Api.ResponseSaveMap.getDefaultInstance(); } /** * .SC2APIProtocol.ResponseSaveMap save_map = 18; */ @java.lang.Override public SC2APIProtocol.Sc2Api.ResponseSaveMapOrBuilder getSaveMapOrBuilder() { if (responseCase_ == 18) { return (SC2APIProtocol.Sc2Api.ResponseSaveMap) response_; } return SC2APIProtocol.Sc2Api.ResponseSaveMap.getDefaultInstance(); } public static final int MAP_COMMAND_FIELD_NUMBER = 22; /** * .SC2APIProtocol.ResponseMapCommand map_command = 22; * @return Whether the mapCommand field is set. */ @java.lang.Override public boolean hasMapCommand() { return responseCase_ == 22; } /** * .SC2APIProtocol.ResponseMapCommand map_command = 22; * @return The mapCommand. */ @java.lang.Override public SC2APIProtocol.Sc2Api.ResponseMapCommand getMapCommand() { if (responseCase_ == 22) { return (SC2APIProtocol.Sc2Api.ResponseMapCommand) response_; } return SC2APIProtocol.Sc2Api.ResponseMapCommand.getDefaultInstance(); } /** * .SC2APIProtocol.ResponseMapCommand map_command = 22; */ @java.lang.Override public SC2APIProtocol.Sc2Api.ResponseMapCommandOrBuilder getMapCommandOrBuilder() { if (responseCase_ == 22) { return (SC2APIProtocol.Sc2Api.ResponseMapCommand) response_; } return SC2APIProtocol.Sc2Api.ResponseMapCommand.getDefaultInstance(); } public static final int PING_FIELD_NUMBER = 19; /** *
     * Debugging
     * 
* * .SC2APIProtocol.ResponsePing ping = 19; * @return Whether the ping field is set. */ @java.lang.Override public boolean hasPing() { return responseCase_ == 19; } /** *
     * Debugging
     * 
* * .SC2APIProtocol.ResponsePing ping = 19; * @return The ping. */ @java.lang.Override public SC2APIProtocol.Sc2Api.ResponsePing getPing() { if (responseCase_ == 19) { return (SC2APIProtocol.Sc2Api.ResponsePing) response_; } return SC2APIProtocol.Sc2Api.ResponsePing.getDefaultInstance(); } /** *
     * Debugging
     * 
* * .SC2APIProtocol.ResponsePing ping = 19; */ @java.lang.Override public SC2APIProtocol.Sc2Api.ResponsePingOrBuilder getPingOrBuilder() { if (responseCase_ == 19) { return (SC2APIProtocol.Sc2Api.ResponsePing) response_; } return SC2APIProtocol.Sc2Api.ResponsePing.getDefaultInstance(); } public static final int DEBUG_FIELD_NUMBER = 20; /** * .SC2APIProtocol.ResponseDebug debug = 20; * @return Whether the debug field is set. */ @java.lang.Override public boolean hasDebug() { return responseCase_ == 20; } /** * .SC2APIProtocol.ResponseDebug debug = 20; * @return The debug. */ @java.lang.Override public SC2APIProtocol.Sc2Api.ResponseDebug getDebug() { if (responseCase_ == 20) { return (SC2APIProtocol.Sc2Api.ResponseDebug) response_; } return SC2APIProtocol.Sc2Api.ResponseDebug.getDefaultInstance(); } /** * .SC2APIProtocol.ResponseDebug debug = 20; */ @java.lang.Override public SC2APIProtocol.Sc2Api.ResponseDebugOrBuilder getDebugOrBuilder() { if (responseCase_ == 20) { return (SC2APIProtocol.Sc2Api.ResponseDebug) response_; } return SC2APIProtocol.Sc2Api.ResponseDebug.getDefaultInstance(); } public static final int ID_FIELD_NUMBER = 97; private int id_; /** * optional uint32 id = 97; * @return Whether the id field is set. */ @java.lang.Override public boolean hasId() { return ((bitField0_ & 0x00400000) != 0); } /** * optional uint32 id = 97; * @return The id. */ @java.lang.Override public int getId() { return id_; } public static final int ERROR_FIELD_NUMBER = 98; private com.google.protobuf.LazyStringList error_; /** *
     * If command is missing, this will contain the error. Otherwise this will contain any warnings.
     * 
* * repeated string error = 98; * @return A list containing the error. */ public com.google.protobuf.ProtocolStringList getErrorList() { return error_; } /** *
     * If command is missing, this will contain the error. Otherwise this will contain any warnings.
     * 
* * repeated string error = 98; * @return The count of error. */ public int getErrorCount() { return error_.size(); } /** *
     * If command is missing, this will contain the error. Otherwise this will contain any warnings.
     * 
* * repeated string error = 98; * @param index The index of the element to return. * @return The error at the given index. */ public java.lang.String getError(int index) { return error_.get(index); } /** *
     * If command is missing, this will contain the error. Otherwise this will contain any warnings.
     * 
* * repeated string error = 98; * @param index The index of the value to return. * @return The bytes of the error at the given index. */ public com.google.protobuf.ByteString getErrorBytes(int index) { return error_.getByteString(index); } public static final int STATUS_FIELD_NUMBER = 99; private int status_; /** *
     * Should be sent back with all responses.
     * 
* * optional .SC2APIProtocol.Status status = 99; * @return Whether the status field is set. */ @java.lang.Override public boolean hasStatus() { return ((bitField0_ & 0x00800000) != 0); } /** *
     * Should be sent back with all responses.
     * 
* * optional .SC2APIProtocol.Status status = 99; * @return The status. */ @java.lang.Override public SC2APIProtocol.Sc2Api.Status getStatus() { @SuppressWarnings("deprecation") SC2APIProtocol.Sc2Api.Status result = SC2APIProtocol.Sc2Api.Status.valueOf(status_); return result == null ? SC2APIProtocol.Sc2Api.Status.launched : 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 (responseCase_ == 1) { output.writeMessage(1, (SC2APIProtocol.Sc2Api.ResponseCreateGame) response_); } if (responseCase_ == 2) { output.writeMessage(2, (SC2APIProtocol.Sc2Api.ResponseJoinGame) response_); } if (responseCase_ == 3) { output.writeMessage(3, (SC2APIProtocol.Sc2Api.ResponseRestartGame) response_); } if (responseCase_ == 4) { output.writeMessage(4, (SC2APIProtocol.Sc2Api.ResponseStartReplay) response_); } if (responseCase_ == 5) { output.writeMessage(5, (SC2APIProtocol.Sc2Api.ResponseLeaveGame) response_); } if (responseCase_ == 6) { output.writeMessage(6, (SC2APIProtocol.Sc2Api.ResponseQuickSave) response_); } if (responseCase_ == 7) { output.writeMessage(7, (SC2APIProtocol.Sc2Api.ResponseQuickLoad) response_); } if (responseCase_ == 8) { output.writeMessage(8, (SC2APIProtocol.Sc2Api.ResponseQuit) response_); } if (responseCase_ == 9) { output.writeMessage(9, (SC2APIProtocol.Sc2Api.ResponseGameInfo) response_); } if (responseCase_ == 10) { output.writeMessage(10, (SC2APIProtocol.Sc2Api.ResponseObservation) response_); } if (responseCase_ == 11) { output.writeMessage(11, (SC2APIProtocol.Sc2Api.ResponseAction) response_); } if (responseCase_ == 12) { output.writeMessage(12, (SC2APIProtocol.Sc2Api.ResponseStep) response_); } if (responseCase_ == 13) { output.writeMessage(13, (SC2APIProtocol.Sc2Api.ResponseData) response_); } if (responseCase_ == 14) { output.writeMessage(14, (SC2APIProtocol.Query.ResponseQuery) response_); } if (responseCase_ == 15) { output.writeMessage(15, (SC2APIProtocol.Sc2Api.ResponseSaveReplay) response_); } if (responseCase_ == 16) { output.writeMessage(16, (SC2APIProtocol.Sc2Api.ResponseReplayInfo) response_); } if (responseCase_ == 17) { output.writeMessage(17, (SC2APIProtocol.Sc2Api.ResponseAvailableMaps) response_); } if (responseCase_ == 18) { output.writeMessage(18, (SC2APIProtocol.Sc2Api.ResponseSaveMap) response_); } if (responseCase_ == 19) { output.writeMessage(19, (SC2APIProtocol.Sc2Api.ResponsePing) response_); } if (responseCase_ == 20) { output.writeMessage(20, (SC2APIProtocol.Sc2Api.ResponseDebug) response_); } if (responseCase_ == 21) { output.writeMessage(21, (SC2APIProtocol.Sc2Api.ResponseObserverAction) response_); } if (responseCase_ == 22) { output.writeMessage(22, (SC2APIProtocol.Sc2Api.ResponseMapCommand) response_); } if (((bitField0_ & 0x00400000) != 0)) { output.writeUInt32(97, id_); } for (int i = 0; i < error_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 98, error_.getRaw(i)); } if (((bitField0_ & 0x00800000) != 0)) { output.writeEnum(99, status_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (responseCase_ == 1) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, (SC2APIProtocol.Sc2Api.ResponseCreateGame) response_); } if (responseCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, (SC2APIProtocol.Sc2Api.ResponseJoinGame) response_); } if (responseCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, (SC2APIProtocol.Sc2Api.ResponseRestartGame) response_); } if (responseCase_ == 4) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, (SC2APIProtocol.Sc2Api.ResponseStartReplay) response_); } if (responseCase_ == 5) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, (SC2APIProtocol.Sc2Api.ResponseLeaveGame) response_); } if (responseCase_ == 6) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, (SC2APIProtocol.Sc2Api.ResponseQuickSave) response_); } if (responseCase_ == 7) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, (SC2APIProtocol.Sc2Api.ResponseQuickLoad) response_); } if (responseCase_ == 8) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, (SC2APIProtocol.Sc2Api.ResponseQuit) response_); } if (responseCase_ == 9) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, (SC2APIProtocol.Sc2Api.ResponseGameInfo) response_); } if (responseCase_ == 10) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(10, (SC2APIProtocol.Sc2Api.ResponseObservation) response_); } if (responseCase_ == 11) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(11, (SC2APIProtocol.Sc2Api.ResponseAction) response_); } if (responseCase_ == 12) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(12, (SC2APIProtocol.Sc2Api.ResponseStep) response_); } if (responseCase_ == 13) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(13, (SC2APIProtocol.Sc2Api.ResponseData) response_); } if (responseCase_ == 14) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(14, (SC2APIProtocol.Query.ResponseQuery) response_); } if (responseCase_ == 15) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(15, (SC2APIProtocol.Sc2Api.ResponseSaveReplay) response_); } if (responseCase_ == 16) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(16, (SC2APIProtocol.Sc2Api.ResponseReplayInfo) response_); } if (responseCase_ == 17) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(17, (SC2APIProtocol.Sc2Api.ResponseAvailableMaps) response_); } if (responseCase_ == 18) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(18, (SC2APIProtocol.Sc2Api.ResponseSaveMap) response_); } if (responseCase_ == 19) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(19, (SC2APIProtocol.Sc2Api.ResponsePing) response_); } if (responseCase_ == 20) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(20, (SC2APIProtocol.Sc2Api.ResponseDebug) response_); } if (responseCase_ == 21) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(21, (SC2APIProtocol.Sc2Api.ResponseObserverAction) response_); } if (responseCase_ == 22) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(22, (SC2APIProtocol.Sc2Api.ResponseMapCommand) response_); } if (((bitField0_ & 0x00400000) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(97, id_); } { int dataSize = 0; for (int i = 0; i < error_.size(); i++) { dataSize += computeStringSizeNoTag(error_.getRaw(i)); } size += dataSize; size += 2 * getErrorList().size(); } if (((bitField0_ & 0x00800000) != 0)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(99, status_); } 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.Sc2Api.Response)) { return super.equals(obj); } SC2APIProtocol.Sc2Api.Response other = (SC2APIProtocol.Sc2Api.Response) obj; if (hasId() != other.hasId()) return false; if (hasId()) { if (getId() != other.getId()) return false; } if (!getErrorList() .equals(other.getErrorList())) return false; if (hasStatus() != other.hasStatus()) return false; if (hasStatus()) { if (status_ != other.status_) return false; } if (!getResponseCase().equals(other.getResponseCase())) return false; switch (responseCase_) { case 1: if (!getCreateGame() .equals(other.getCreateGame())) return false; break; case 2: if (!getJoinGame() .equals(other.getJoinGame())) return false; break; case 3: if (!getRestartGame() .equals(other.getRestartGame())) return false; break; case 4: if (!getStartReplay() .equals(other.getStartReplay())) return false; break; case 5: if (!getLeaveGame() .equals(other.getLeaveGame())) return false; break; case 6: if (!getQuickSave() .equals(other.getQuickSave())) return false; break; case 7: if (!getQuickLoad() .equals(other.getQuickLoad())) return false; break; case 8: if (!getQuit() .equals(other.getQuit())) return false; break; case 9: if (!getGameInfo() .equals(other.getGameInfo())) return false; break; case 10: if (!getObservation() .equals(other.getObservation())) return false; break; case 11: if (!getAction() .equals(other.getAction())) return false; break; case 21: if (!getObsAction() .equals(other.getObsAction())) return false; break; case 12: if (!getStep() .equals(other.getStep())) return false; break; case 13: if (!getData() .equals(other.getData())) return false; break; case 14: if (!getQuery() .equals(other.getQuery())) return false; break; case 15: if (!getSaveReplay() .equals(other.getSaveReplay())) return false; break; case 16: if (!getReplayInfo() .equals(other.getReplayInfo())) return false; break; case 17: if (!getAvailableMaps() .equals(other.getAvailableMaps())) return false; break; case 18: if (!getSaveMap() .equals(other.getSaveMap())) return false; break; case 22: if (!getMapCommand() .equals(other.getMapCommand())) return false; break; case 19: if (!getPing() .equals(other.getPing())) return false; break; case 20: if (!getDebug() .equals(other.getDebug())) 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(); if (hasId()) { hash = (37 * hash) + ID_FIELD_NUMBER; hash = (53 * hash) + getId(); } if (getErrorCount() > 0) { hash = (37 * hash) + ERROR_FIELD_NUMBER; hash = (53 * hash) + getErrorList().hashCode(); } if (hasStatus()) { hash = (37 * hash) + STATUS_FIELD_NUMBER; hash = (53 * hash) + status_; } switch (responseCase_) { case 1: hash = (37 * hash) + CREATE_GAME_FIELD_NUMBER; hash = (53 * hash) + getCreateGame().hashCode(); break; case 2: hash = (37 * hash) + JOIN_GAME_FIELD_NUMBER; hash = (53 * hash) + getJoinGame().hashCode(); break; case 3: hash = (37 * hash) + RESTART_GAME_FIELD_NUMBER; hash = (53 * hash) + getRestartGame().hashCode(); break; case 4: hash = (37 * hash) + START_REPLAY_FIELD_NUMBER; hash = (53 * hash) + getStartReplay().hashCode(); break; case 5: hash = (37 * hash) + LEAVE_GAME_FIELD_NUMBER; hash = (53 * hash) + getLeaveGame().hashCode(); break; case 6: hash = (37 * hash) + QUICK_SAVE_FIELD_NUMBER; hash = (53 * hash) + getQuickSave().hashCode(); break; case 7: hash = (37 * hash) + QUICK_LOAD_FIELD_NUMBER; hash = (53 * hash) + getQuickLoad().hashCode(); break; case 8: hash = (37 * hash) + QUIT_FIELD_NUMBER; hash = (53 * hash) + getQuit().hashCode(); break; case 9: hash = (37 * hash) + GAME_INFO_FIELD_NUMBER; hash = (53 * hash) + getGameInfo().hashCode(); break; case 10: hash = (37 * hash) + OBSERVATION_FIELD_NUMBER; hash = (53 * hash) + getObservation().hashCode(); break; case 11: hash = (37 * hash) + ACTION_FIELD_NUMBER; hash = (53 * hash) + getAction().hashCode(); break; case 21: hash = (37 * hash) + OBS_ACTION_FIELD_NUMBER; hash = (53 * hash) + getObsAction().hashCode(); break; case 12: hash = (37 * hash) + STEP_FIELD_NUMBER; hash = (53 * hash) + getStep().hashCode(); break; case 13: hash = (37 * hash) + DATA_FIELD_NUMBER; hash = (53 * hash) + getData().hashCode(); break; case 14: hash = (37 * hash) + QUERY_FIELD_NUMBER; hash = (53 * hash) + getQuery().hashCode(); break; case 15: hash = (37 * hash) + SAVE_REPLAY_FIELD_NUMBER; hash = (53 * hash) + getSaveReplay().hashCode(); break; case 16: hash = (37 * hash) + REPLAY_INFO_FIELD_NUMBER; hash = (53 * hash) + getReplayInfo().hashCode(); break; case 17: hash = (37 * hash) + AVAILABLE_MAPS_FIELD_NUMBER; hash = (53 * hash) + getAvailableMaps().hashCode(); break; case 18: hash = (37 * hash) + SAVE_MAP_FIELD_NUMBER; hash = (53 * hash) + getSaveMap().hashCode(); break; case 22: hash = (37 * hash) + MAP_COMMAND_FIELD_NUMBER; hash = (53 * hash) + getMapCommand().hashCode(); break; case 19: hash = (37 * hash) + PING_FIELD_NUMBER; hash = (53 * hash) + getPing().hashCode(); break; case 20: hash = (37 * hash) + DEBUG_FIELD_NUMBER; hash = (53 * hash) + getDebug().hashCode(); break; case 0: default: } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static SC2APIProtocol.Sc2Api.Response parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.Response parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.Response parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.Response parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.Response parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.Response parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.Response parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.Response 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.Sc2Api.Response parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.Response 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.Sc2Api.Response parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.Response 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.Sc2Api.Response 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.Response} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:SC2APIProtocol.Response) SC2APIProtocol.Sc2Api.ResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_Response_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_Response_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Sc2Api.Response.class, SC2APIProtocol.Sc2Api.Response.Builder.class); } // Construct using SC2APIProtocol.Sc2Api.Response.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); if (createGameBuilder_ != null) { createGameBuilder_.clear(); } if (joinGameBuilder_ != null) { joinGameBuilder_.clear(); } if (restartGameBuilder_ != null) { restartGameBuilder_.clear(); } if (startReplayBuilder_ != null) { startReplayBuilder_.clear(); } if (leaveGameBuilder_ != null) { leaveGameBuilder_.clear(); } if (quickSaveBuilder_ != null) { quickSaveBuilder_.clear(); } if (quickLoadBuilder_ != null) { quickLoadBuilder_.clear(); } if (quitBuilder_ != null) { quitBuilder_.clear(); } if (gameInfoBuilder_ != null) { gameInfoBuilder_.clear(); } if (observationBuilder_ != null) { observationBuilder_.clear(); } if (actionBuilder_ != null) { actionBuilder_.clear(); } if (obsActionBuilder_ != null) { obsActionBuilder_.clear(); } if (stepBuilder_ != null) { stepBuilder_.clear(); } if (dataBuilder_ != null) { dataBuilder_.clear(); } if (queryBuilder_ != null) { queryBuilder_.clear(); } if (saveReplayBuilder_ != null) { saveReplayBuilder_.clear(); } if (replayInfoBuilder_ != null) { replayInfoBuilder_.clear(); } if (availableMapsBuilder_ != null) { availableMapsBuilder_.clear(); } if (saveMapBuilder_ != null) { saveMapBuilder_.clear(); } if (mapCommandBuilder_ != null) { mapCommandBuilder_.clear(); } if (pingBuilder_ != null) { pingBuilder_.clear(); } if (debugBuilder_ != null) { debugBuilder_.clear(); } id_ = 0; bitField0_ = (bitField0_ & ~0x00400000); error_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00800000); status_ = 1; bitField0_ = (bitField0_ & ~0x01000000); responseCase_ = 0; response_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_Response_descriptor; } @java.lang.Override public SC2APIProtocol.Sc2Api.Response getDefaultInstanceForType() { return SC2APIProtocol.Sc2Api.Response.getDefaultInstance(); } @java.lang.Override public SC2APIProtocol.Sc2Api.Response build() { SC2APIProtocol.Sc2Api.Response result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public SC2APIProtocol.Sc2Api.Response buildPartial() { SC2APIProtocol.Sc2Api.Response result = new SC2APIProtocol.Sc2Api.Response(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (responseCase_ == 1) { if (createGameBuilder_ == null) { result.response_ = response_; } else { result.response_ = createGameBuilder_.build(); } } if (responseCase_ == 2) { if (joinGameBuilder_ == null) { result.response_ = response_; } else { result.response_ = joinGameBuilder_.build(); } } if (responseCase_ == 3) { if (restartGameBuilder_ == null) { result.response_ = response_; } else { result.response_ = restartGameBuilder_.build(); } } if (responseCase_ == 4) { if (startReplayBuilder_ == null) { result.response_ = response_; } else { result.response_ = startReplayBuilder_.build(); } } if (responseCase_ == 5) { if (leaveGameBuilder_ == null) { result.response_ = response_; } else { result.response_ = leaveGameBuilder_.build(); } } if (responseCase_ == 6) { if (quickSaveBuilder_ == null) { result.response_ = response_; } else { result.response_ = quickSaveBuilder_.build(); } } if (responseCase_ == 7) { if (quickLoadBuilder_ == null) { result.response_ = response_; } else { result.response_ = quickLoadBuilder_.build(); } } if (responseCase_ == 8) { if (quitBuilder_ == null) { result.response_ = response_; } else { result.response_ = quitBuilder_.build(); } } if (responseCase_ == 9) { if (gameInfoBuilder_ == null) { result.response_ = response_; } else { result.response_ = gameInfoBuilder_.build(); } } if (responseCase_ == 10) { if (observationBuilder_ == null) { result.response_ = response_; } else { result.response_ = observationBuilder_.build(); } } if (responseCase_ == 11) { if (actionBuilder_ == null) { result.response_ = response_; } else { result.response_ = actionBuilder_.build(); } } if (responseCase_ == 21) { if (obsActionBuilder_ == null) { result.response_ = response_; } else { result.response_ = obsActionBuilder_.build(); } } if (responseCase_ == 12) { if (stepBuilder_ == null) { result.response_ = response_; } else { result.response_ = stepBuilder_.build(); } } if (responseCase_ == 13) { if (dataBuilder_ == null) { result.response_ = response_; } else { result.response_ = dataBuilder_.build(); } } if (responseCase_ == 14) { if (queryBuilder_ == null) { result.response_ = response_; } else { result.response_ = queryBuilder_.build(); } } if (responseCase_ == 15) { if (saveReplayBuilder_ == null) { result.response_ = response_; } else { result.response_ = saveReplayBuilder_.build(); } } if (responseCase_ == 16) { if (replayInfoBuilder_ == null) { result.response_ = response_; } else { result.response_ = replayInfoBuilder_.build(); } } if (responseCase_ == 17) { if (availableMapsBuilder_ == null) { result.response_ = response_; } else { result.response_ = availableMapsBuilder_.build(); } } if (responseCase_ == 18) { if (saveMapBuilder_ == null) { result.response_ = response_; } else { result.response_ = saveMapBuilder_.build(); } } if (responseCase_ == 22) { if (mapCommandBuilder_ == null) { result.response_ = response_; } else { result.response_ = mapCommandBuilder_.build(); } } if (responseCase_ == 19) { if (pingBuilder_ == null) { result.response_ = response_; } else { result.response_ = pingBuilder_.build(); } } if (responseCase_ == 20) { if (debugBuilder_ == null) { result.response_ = response_; } else { result.response_ = debugBuilder_.build(); } } if (((from_bitField0_ & 0x00400000) != 0)) { result.id_ = id_; to_bitField0_ |= 0x00400000; } if (((bitField0_ & 0x00800000) != 0)) { error_ = error_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00800000); } result.error_ = error_; if (((from_bitField0_ & 0x01000000) != 0)) { to_bitField0_ |= 0x00800000; } result.status_ = status_; result.bitField0_ = to_bitField0_; result.responseCase_ = responseCase_; 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.Sc2Api.Response) { return mergeFrom((SC2APIProtocol.Sc2Api.Response)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(SC2APIProtocol.Sc2Api.Response other) { if (other == SC2APIProtocol.Sc2Api.Response.getDefaultInstance()) return this; if (other.hasId()) { setId(other.getId()); } if (!other.error_.isEmpty()) { if (error_.isEmpty()) { error_ = other.error_; bitField0_ = (bitField0_ & ~0x00800000); } else { ensureErrorIsMutable(); error_.addAll(other.error_); } onChanged(); } if (other.hasStatus()) { setStatus(other.getStatus()); } switch (other.getResponseCase()) { case CREATE_GAME: { mergeCreateGame(other.getCreateGame()); break; } case JOIN_GAME: { mergeJoinGame(other.getJoinGame()); break; } case RESTART_GAME: { mergeRestartGame(other.getRestartGame()); break; } case START_REPLAY: { mergeStartReplay(other.getStartReplay()); break; } case LEAVE_GAME: { mergeLeaveGame(other.getLeaveGame()); break; } case QUICK_SAVE: { mergeQuickSave(other.getQuickSave()); break; } case QUICK_LOAD: { mergeQuickLoad(other.getQuickLoad()); break; } case QUIT: { mergeQuit(other.getQuit()); break; } case GAME_INFO: { mergeGameInfo(other.getGameInfo()); break; } case OBSERVATION: { mergeObservation(other.getObservation()); break; } case ACTION: { mergeAction(other.getAction()); break; } case OBS_ACTION: { mergeObsAction(other.getObsAction()); break; } case STEP: { mergeStep(other.getStep()); break; } case DATA: { mergeData(other.getData()); break; } case QUERY: { mergeQuery(other.getQuery()); break; } case SAVE_REPLAY: { mergeSaveReplay(other.getSaveReplay()); break; } case REPLAY_INFO: { mergeReplayInfo(other.getReplayInfo()); break; } case AVAILABLE_MAPS: { mergeAvailableMaps(other.getAvailableMaps()); break; } case SAVE_MAP: { mergeSaveMap(other.getSaveMap()); break; } case MAP_COMMAND: { mergeMapCommand(other.getMapCommand()); break; } case PING: { mergePing(other.getPing()); break; } case DEBUG: { mergeDebug(other.getDebug()); break; } case RESPONSE_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( getCreateGameFieldBuilder().getBuilder(), extensionRegistry); responseCase_ = 1; break; } // case 10 case 18: { input.readMessage( getJoinGameFieldBuilder().getBuilder(), extensionRegistry); responseCase_ = 2; break; } // case 18 case 26: { input.readMessage( getRestartGameFieldBuilder().getBuilder(), extensionRegistry); responseCase_ = 3; break; } // case 26 case 34: { input.readMessage( getStartReplayFieldBuilder().getBuilder(), extensionRegistry); responseCase_ = 4; break; } // case 34 case 42: { input.readMessage( getLeaveGameFieldBuilder().getBuilder(), extensionRegistry); responseCase_ = 5; break; } // case 42 case 50: { input.readMessage( getQuickSaveFieldBuilder().getBuilder(), extensionRegistry); responseCase_ = 6; break; } // case 50 case 58: { input.readMessage( getQuickLoadFieldBuilder().getBuilder(), extensionRegistry); responseCase_ = 7; break; } // case 58 case 66: { input.readMessage( getQuitFieldBuilder().getBuilder(), extensionRegistry); responseCase_ = 8; break; } // case 66 case 74: { input.readMessage( getGameInfoFieldBuilder().getBuilder(), extensionRegistry); responseCase_ = 9; break; } // case 74 case 82: { input.readMessage( getObservationFieldBuilder().getBuilder(), extensionRegistry); responseCase_ = 10; break; } // case 82 case 90: { input.readMessage( getActionFieldBuilder().getBuilder(), extensionRegistry); responseCase_ = 11; break; } // case 90 case 98: { input.readMessage( getStepFieldBuilder().getBuilder(), extensionRegistry); responseCase_ = 12; break; } // case 98 case 106: { input.readMessage( getDataFieldBuilder().getBuilder(), extensionRegistry); responseCase_ = 13; break; } // case 106 case 114: { input.readMessage( getQueryFieldBuilder().getBuilder(), extensionRegistry); responseCase_ = 14; break; } // case 114 case 122: { input.readMessage( getSaveReplayFieldBuilder().getBuilder(), extensionRegistry); responseCase_ = 15; break; } // case 122 case 130: { input.readMessage( getReplayInfoFieldBuilder().getBuilder(), extensionRegistry); responseCase_ = 16; break; } // case 130 case 138: { input.readMessage( getAvailableMapsFieldBuilder().getBuilder(), extensionRegistry); responseCase_ = 17; break; } // case 138 case 146: { input.readMessage( getSaveMapFieldBuilder().getBuilder(), extensionRegistry); responseCase_ = 18; break; } // case 146 case 154: { input.readMessage( getPingFieldBuilder().getBuilder(), extensionRegistry); responseCase_ = 19; break; } // case 154 case 162: { input.readMessage( getDebugFieldBuilder().getBuilder(), extensionRegistry); responseCase_ = 20; break; } // case 162 case 170: { input.readMessage( getObsActionFieldBuilder().getBuilder(), extensionRegistry); responseCase_ = 21; break; } // case 170 case 178: { input.readMessage( getMapCommandFieldBuilder().getBuilder(), extensionRegistry); responseCase_ = 22; break; } // case 178 case 776: { id_ = input.readUInt32(); bitField0_ |= 0x00400000; break; } // case 776 case 786: { com.google.protobuf.ByteString bs = input.readBytes(); ensureErrorIsMutable(); error_.add(bs); break; } // case 786 case 792: { int tmpRaw = input.readEnum(); SC2APIProtocol.Sc2Api.Status tmpValue = SC2APIProtocol.Sc2Api.Status.forNumber(tmpRaw); if (tmpValue == null) { mergeUnknownVarintField(99, tmpRaw); } else { status_ = tmpRaw; bitField0_ |= 0x01000000; } break; } // case 792 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 responseCase_ = 0; private java.lang.Object response_; public ResponseCase getResponseCase() { return ResponseCase.forNumber( responseCase_); } public Builder clearResponse() { responseCase_ = 0; response_ = null; onChanged(); return this; } private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.ResponseCreateGame, SC2APIProtocol.Sc2Api.ResponseCreateGame.Builder, SC2APIProtocol.Sc2Api.ResponseCreateGameOrBuilder> createGameBuilder_; /** * .SC2APIProtocol.ResponseCreateGame create_game = 1; * @return Whether the createGame field is set. */ @java.lang.Override public boolean hasCreateGame() { return responseCase_ == 1; } /** * .SC2APIProtocol.ResponseCreateGame create_game = 1; * @return The createGame. */ @java.lang.Override public SC2APIProtocol.Sc2Api.ResponseCreateGame getCreateGame() { if (createGameBuilder_ == null) { if (responseCase_ == 1) { return (SC2APIProtocol.Sc2Api.ResponseCreateGame) response_; } return SC2APIProtocol.Sc2Api.ResponseCreateGame.getDefaultInstance(); } else { if (responseCase_ == 1) { return createGameBuilder_.getMessage(); } return SC2APIProtocol.Sc2Api.ResponseCreateGame.getDefaultInstance(); } } /** * .SC2APIProtocol.ResponseCreateGame create_game = 1; */ public Builder setCreateGame(SC2APIProtocol.Sc2Api.ResponseCreateGame value) { if (createGameBuilder_ == null) { if (value == null) { throw new NullPointerException(); } response_ = value; onChanged(); } else { createGameBuilder_.setMessage(value); } responseCase_ = 1; return this; } /** * .SC2APIProtocol.ResponseCreateGame create_game = 1; */ public Builder setCreateGame( SC2APIProtocol.Sc2Api.ResponseCreateGame.Builder builderForValue) { if (createGameBuilder_ == null) { response_ = builderForValue.build(); onChanged(); } else { createGameBuilder_.setMessage(builderForValue.build()); } responseCase_ = 1; return this; } /** * .SC2APIProtocol.ResponseCreateGame create_game = 1; */ public Builder mergeCreateGame(SC2APIProtocol.Sc2Api.ResponseCreateGame value) { if (createGameBuilder_ == null) { if (responseCase_ == 1 && response_ != SC2APIProtocol.Sc2Api.ResponseCreateGame.getDefaultInstance()) { response_ = SC2APIProtocol.Sc2Api.ResponseCreateGame.newBuilder((SC2APIProtocol.Sc2Api.ResponseCreateGame) response_) .mergeFrom(value).buildPartial(); } else { response_ = value; } onChanged(); } else { if (responseCase_ == 1) { createGameBuilder_.mergeFrom(value); } else { createGameBuilder_.setMessage(value); } } responseCase_ = 1; return this; } /** * .SC2APIProtocol.ResponseCreateGame create_game = 1; */ public Builder clearCreateGame() { if (createGameBuilder_ == null) { if (responseCase_ == 1) { responseCase_ = 0; response_ = null; onChanged(); } } else { if (responseCase_ == 1) { responseCase_ = 0; response_ = null; } createGameBuilder_.clear(); } return this; } /** * .SC2APIProtocol.ResponseCreateGame create_game = 1; */ public SC2APIProtocol.Sc2Api.ResponseCreateGame.Builder getCreateGameBuilder() { return getCreateGameFieldBuilder().getBuilder(); } /** * .SC2APIProtocol.ResponseCreateGame create_game = 1; */ @java.lang.Override public SC2APIProtocol.Sc2Api.ResponseCreateGameOrBuilder getCreateGameOrBuilder() { if ((responseCase_ == 1) && (createGameBuilder_ != null)) { return createGameBuilder_.getMessageOrBuilder(); } else { if (responseCase_ == 1) { return (SC2APIProtocol.Sc2Api.ResponseCreateGame) response_; } return SC2APIProtocol.Sc2Api.ResponseCreateGame.getDefaultInstance(); } } /** * .SC2APIProtocol.ResponseCreateGame create_game = 1; */ private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.ResponseCreateGame, SC2APIProtocol.Sc2Api.ResponseCreateGame.Builder, SC2APIProtocol.Sc2Api.ResponseCreateGameOrBuilder> getCreateGameFieldBuilder() { if (createGameBuilder_ == null) { if (!(responseCase_ == 1)) { response_ = SC2APIProtocol.Sc2Api.ResponseCreateGame.getDefaultInstance(); } createGameBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.ResponseCreateGame, SC2APIProtocol.Sc2Api.ResponseCreateGame.Builder, SC2APIProtocol.Sc2Api.ResponseCreateGameOrBuilder>( (SC2APIProtocol.Sc2Api.ResponseCreateGame) response_, getParentForChildren(), isClean()); response_ = null; } responseCase_ = 1; onChanged();; return createGameBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.ResponseJoinGame, SC2APIProtocol.Sc2Api.ResponseJoinGame.Builder, SC2APIProtocol.Sc2Api.ResponseJoinGameOrBuilder> joinGameBuilder_; /** * .SC2APIProtocol.ResponseJoinGame join_game = 2; * @return Whether the joinGame field is set. */ @java.lang.Override public boolean hasJoinGame() { return responseCase_ == 2; } /** * .SC2APIProtocol.ResponseJoinGame join_game = 2; * @return The joinGame. */ @java.lang.Override public SC2APIProtocol.Sc2Api.ResponseJoinGame getJoinGame() { if (joinGameBuilder_ == null) { if (responseCase_ == 2) { return (SC2APIProtocol.Sc2Api.ResponseJoinGame) response_; } return SC2APIProtocol.Sc2Api.ResponseJoinGame.getDefaultInstance(); } else { if (responseCase_ == 2) { return joinGameBuilder_.getMessage(); } return SC2APIProtocol.Sc2Api.ResponseJoinGame.getDefaultInstance(); } } /** * .SC2APIProtocol.ResponseJoinGame join_game = 2; */ public Builder setJoinGame(SC2APIProtocol.Sc2Api.ResponseJoinGame value) { if (joinGameBuilder_ == null) { if (value == null) { throw new NullPointerException(); } response_ = value; onChanged(); } else { joinGameBuilder_.setMessage(value); } responseCase_ = 2; return this; } /** * .SC2APIProtocol.ResponseJoinGame join_game = 2; */ public Builder setJoinGame( SC2APIProtocol.Sc2Api.ResponseJoinGame.Builder builderForValue) { if (joinGameBuilder_ == null) { response_ = builderForValue.build(); onChanged(); } else { joinGameBuilder_.setMessage(builderForValue.build()); } responseCase_ = 2; return this; } /** * .SC2APIProtocol.ResponseJoinGame join_game = 2; */ public Builder mergeJoinGame(SC2APIProtocol.Sc2Api.ResponseJoinGame value) { if (joinGameBuilder_ == null) { if (responseCase_ == 2 && response_ != SC2APIProtocol.Sc2Api.ResponseJoinGame.getDefaultInstance()) { response_ = SC2APIProtocol.Sc2Api.ResponseJoinGame.newBuilder((SC2APIProtocol.Sc2Api.ResponseJoinGame) response_) .mergeFrom(value).buildPartial(); } else { response_ = value; } onChanged(); } else { if (responseCase_ == 2) { joinGameBuilder_.mergeFrom(value); } else { joinGameBuilder_.setMessage(value); } } responseCase_ = 2; return this; } /** * .SC2APIProtocol.ResponseJoinGame join_game = 2; */ public Builder clearJoinGame() { if (joinGameBuilder_ == null) { if (responseCase_ == 2) { responseCase_ = 0; response_ = null; onChanged(); } } else { if (responseCase_ == 2) { responseCase_ = 0; response_ = null; } joinGameBuilder_.clear(); } return this; } /** * .SC2APIProtocol.ResponseJoinGame join_game = 2; */ public SC2APIProtocol.Sc2Api.ResponseJoinGame.Builder getJoinGameBuilder() { return getJoinGameFieldBuilder().getBuilder(); } /** * .SC2APIProtocol.ResponseJoinGame join_game = 2; */ @java.lang.Override public SC2APIProtocol.Sc2Api.ResponseJoinGameOrBuilder getJoinGameOrBuilder() { if ((responseCase_ == 2) && (joinGameBuilder_ != null)) { return joinGameBuilder_.getMessageOrBuilder(); } else { if (responseCase_ == 2) { return (SC2APIProtocol.Sc2Api.ResponseJoinGame) response_; } return SC2APIProtocol.Sc2Api.ResponseJoinGame.getDefaultInstance(); } } /** * .SC2APIProtocol.ResponseJoinGame join_game = 2; */ private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.ResponseJoinGame, SC2APIProtocol.Sc2Api.ResponseJoinGame.Builder, SC2APIProtocol.Sc2Api.ResponseJoinGameOrBuilder> getJoinGameFieldBuilder() { if (joinGameBuilder_ == null) { if (!(responseCase_ == 2)) { response_ = SC2APIProtocol.Sc2Api.ResponseJoinGame.getDefaultInstance(); } joinGameBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.ResponseJoinGame, SC2APIProtocol.Sc2Api.ResponseJoinGame.Builder, SC2APIProtocol.Sc2Api.ResponseJoinGameOrBuilder>( (SC2APIProtocol.Sc2Api.ResponseJoinGame) response_, getParentForChildren(), isClean()); response_ = null; } responseCase_ = 2; onChanged();; return joinGameBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.ResponseRestartGame, SC2APIProtocol.Sc2Api.ResponseRestartGame.Builder, SC2APIProtocol.Sc2Api.ResponseRestartGameOrBuilder> restartGameBuilder_; /** * .SC2APIProtocol.ResponseRestartGame restart_game = 3; * @return Whether the restartGame field is set. */ @java.lang.Override public boolean hasRestartGame() { return responseCase_ == 3; } /** * .SC2APIProtocol.ResponseRestartGame restart_game = 3; * @return The restartGame. */ @java.lang.Override public SC2APIProtocol.Sc2Api.ResponseRestartGame getRestartGame() { if (restartGameBuilder_ == null) { if (responseCase_ == 3) { return (SC2APIProtocol.Sc2Api.ResponseRestartGame) response_; } return SC2APIProtocol.Sc2Api.ResponseRestartGame.getDefaultInstance(); } else { if (responseCase_ == 3) { return restartGameBuilder_.getMessage(); } return SC2APIProtocol.Sc2Api.ResponseRestartGame.getDefaultInstance(); } } /** * .SC2APIProtocol.ResponseRestartGame restart_game = 3; */ public Builder setRestartGame(SC2APIProtocol.Sc2Api.ResponseRestartGame value) { if (restartGameBuilder_ == null) { if (value == null) { throw new NullPointerException(); } response_ = value; onChanged(); } else { restartGameBuilder_.setMessage(value); } responseCase_ = 3; return this; } /** * .SC2APIProtocol.ResponseRestartGame restart_game = 3; */ public Builder setRestartGame( SC2APIProtocol.Sc2Api.ResponseRestartGame.Builder builderForValue) { if (restartGameBuilder_ == null) { response_ = builderForValue.build(); onChanged(); } else { restartGameBuilder_.setMessage(builderForValue.build()); } responseCase_ = 3; return this; } /** * .SC2APIProtocol.ResponseRestartGame restart_game = 3; */ public Builder mergeRestartGame(SC2APIProtocol.Sc2Api.ResponseRestartGame value) { if (restartGameBuilder_ == null) { if (responseCase_ == 3 && response_ != SC2APIProtocol.Sc2Api.ResponseRestartGame.getDefaultInstance()) { response_ = SC2APIProtocol.Sc2Api.ResponseRestartGame.newBuilder((SC2APIProtocol.Sc2Api.ResponseRestartGame) response_) .mergeFrom(value).buildPartial(); } else { response_ = value; } onChanged(); } else { if (responseCase_ == 3) { restartGameBuilder_.mergeFrom(value); } else { restartGameBuilder_.setMessage(value); } } responseCase_ = 3; return this; } /** * .SC2APIProtocol.ResponseRestartGame restart_game = 3; */ public Builder clearRestartGame() { if (restartGameBuilder_ == null) { if (responseCase_ == 3) { responseCase_ = 0; response_ = null; onChanged(); } } else { if (responseCase_ == 3) { responseCase_ = 0; response_ = null; } restartGameBuilder_.clear(); } return this; } /** * .SC2APIProtocol.ResponseRestartGame restart_game = 3; */ public SC2APIProtocol.Sc2Api.ResponseRestartGame.Builder getRestartGameBuilder() { return getRestartGameFieldBuilder().getBuilder(); } /** * .SC2APIProtocol.ResponseRestartGame restart_game = 3; */ @java.lang.Override public SC2APIProtocol.Sc2Api.ResponseRestartGameOrBuilder getRestartGameOrBuilder() { if ((responseCase_ == 3) && (restartGameBuilder_ != null)) { return restartGameBuilder_.getMessageOrBuilder(); } else { if (responseCase_ == 3) { return (SC2APIProtocol.Sc2Api.ResponseRestartGame) response_; } return SC2APIProtocol.Sc2Api.ResponseRestartGame.getDefaultInstance(); } } /** * .SC2APIProtocol.ResponseRestartGame restart_game = 3; */ private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.ResponseRestartGame, SC2APIProtocol.Sc2Api.ResponseRestartGame.Builder, SC2APIProtocol.Sc2Api.ResponseRestartGameOrBuilder> getRestartGameFieldBuilder() { if (restartGameBuilder_ == null) { if (!(responseCase_ == 3)) { response_ = SC2APIProtocol.Sc2Api.ResponseRestartGame.getDefaultInstance(); } restartGameBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.ResponseRestartGame, SC2APIProtocol.Sc2Api.ResponseRestartGame.Builder, SC2APIProtocol.Sc2Api.ResponseRestartGameOrBuilder>( (SC2APIProtocol.Sc2Api.ResponseRestartGame) response_, getParentForChildren(), isClean()); response_ = null; } responseCase_ = 3; onChanged();; return restartGameBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.ResponseStartReplay, SC2APIProtocol.Sc2Api.ResponseStartReplay.Builder, SC2APIProtocol.Sc2Api.ResponseStartReplayOrBuilder> startReplayBuilder_; /** * .SC2APIProtocol.ResponseStartReplay start_replay = 4; * @return Whether the startReplay field is set. */ @java.lang.Override public boolean hasStartReplay() { return responseCase_ == 4; } /** * .SC2APIProtocol.ResponseStartReplay start_replay = 4; * @return The startReplay. */ @java.lang.Override public SC2APIProtocol.Sc2Api.ResponseStartReplay getStartReplay() { if (startReplayBuilder_ == null) { if (responseCase_ == 4) { return (SC2APIProtocol.Sc2Api.ResponseStartReplay) response_; } return SC2APIProtocol.Sc2Api.ResponseStartReplay.getDefaultInstance(); } else { if (responseCase_ == 4) { return startReplayBuilder_.getMessage(); } return SC2APIProtocol.Sc2Api.ResponseStartReplay.getDefaultInstance(); } } /** * .SC2APIProtocol.ResponseStartReplay start_replay = 4; */ public Builder setStartReplay(SC2APIProtocol.Sc2Api.ResponseStartReplay value) { if (startReplayBuilder_ == null) { if (value == null) { throw new NullPointerException(); } response_ = value; onChanged(); } else { startReplayBuilder_.setMessage(value); } responseCase_ = 4; return this; } /** * .SC2APIProtocol.ResponseStartReplay start_replay = 4; */ public Builder setStartReplay( SC2APIProtocol.Sc2Api.ResponseStartReplay.Builder builderForValue) { if (startReplayBuilder_ == null) { response_ = builderForValue.build(); onChanged(); } else { startReplayBuilder_.setMessage(builderForValue.build()); } responseCase_ = 4; return this; } /** * .SC2APIProtocol.ResponseStartReplay start_replay = 4; */ public Builder mergeStartReplay(SC2APIProtocol.Sc2Api.ResponseStartReplay value) { if (startReplayBuilder_ == null) { if (responseCase_ == 4 && response_ != SC2APIProtocol.Sc2Api.ResponseStartReplay.getDefaultInstance()) { response_ = SC2APIProtocol.Sc2Api.ResponseStartReplay.newBuilder((SC2APIProtocol.Sc2Api.ResponseStartReplay) response_) .mergeFrom(value).buildPartial(); } else { response_ = value; } onChanged(); } else { if (responseCase_ == 4) { startReplayBuilder_.mergeFrom(value); } else { startReplayBuilder_.setMessage(value); } } responseCase_ = 4; return this; } /** * .SC2APIProtocol.ResponseStartReplay start_replay = 4; */ public Builder clearStartReplay() { if (startReplayBuilder_ == null) { if (responseCase_ == 4) { responseCase_ = 0; response_ = null; onChanged(); } } else { if (responseCase_ == 4) { responseCase_ = 0; response_ = null; } startReplayBuilder_.clear(); } return this; } /** * .SC2APIProtocol.ResponseStartReplay start_replay = 4; */ public SC2APIProtocol.Sc2Api.ResponseStartReplay.Builder getStartReplayBuilder() { return getStartReplayFieldBuilder().getBuilder(); } /** * .SC2APIProtocol.ResponseStartReplay start_replay = 4; */ @java.lang.Override public SC2APIProtocol.Sc2Api.ResponseStartReplayOrBuilder getStartReplayOrBuilder() { if ((responseCase_ == 4) && (startReplayBuilder_ != null)) { return startReplayBuilder_.getMessageOrBuilder(); } else { if (responseCase_ == 4) { return (SC2APIProtocol.Sc2Api.ResponseStartReplay) response_; } return SC2APIProtocol.Sc2Api.ResponseStartReplay.getDefaultInstance(); } } /** * .SC2APIProtocol.ResponseStartReplay start_replay = 4; */ private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.ResponseStartReplay, SC2APIProtocol.Sc2Api.ResponseStartReplay.Builder, SC2APIProtocol.Sc2Api.ResponseStartReplayOrBuilder> getStartReplayFieldBuilder() { if (startReplayBuilder_ == null) { if (!(responseCase_ == 4)) { response_ = SC2APIProtocol.Sc2Api.ResponseStartReplay.getDefaultInstance(); } startReplayBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.ResponseStartReplay, SC2APIProtocol.Sc2Api.ResponseStartReplay.Builder, SC2APIProtocol.Sc2Api.ResponseStartReplayOrBuilder>( (SC2APIProtocol.Sc2Api.ResponseStartReplay) response_, getParentForChildren(), isClean()); response_ = null; } responseCase_ = 4; onChanged();; return startReplayBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.ResponseLeaveGame, SC2APIProtocol.Sc2Api.ResponseLeaveGame.Builder, SC2APIProtocol.Sc2Api.ResponseLeaveGameOrBuilder> leaveGameBuilder_; /** * .SC2APIProtocol.ResponseLeaveGame leave_game = 5; * @return Whether the leaveGame field is set. */ @java.lang.Override public boolean hasLeaveGame() { return responseCase_ == 5; } /** * .SC2APIProtocol.ResponseLeaveGame leave_game = 5; * @return The leaveGame. */ @java.lang.Override public SC2APIProtocol.Sc2Api.ResponseLeaveGame getLeaveGame() { if (leaveGameBuilder_ == null) { if (responseCase_ == 5) { return (SC2APIProtocol.Sc2Api.ResponseLeaveGame) response_; } return SC2APIProtocol.Sc2Api.ResponseLeaveGame.getDefaultInstance(); } else { if (responseCase_ == 5) { return leaveGameBuilder_.getMessage(); } return SC2APIProtocol.Sc2Api.ResponseLeaveGame.getDefaultInstance(); } } /** * .SC2APIProtocol.ResponseLeaveGame leave_game = 5; */ public Builder setLeaveGame(SC2APIProtocol.Sc2Api.ResponseLeaveGame value) { if (leaveGameBuilder_ == null) { if (value == null) { throw new NullPointerException(); } response_ = value; onChanged(); } else { leaveGameBuilder_.setMessage(value); } responseCase_ = 5; return this; } /** * .SC2APIProtocol.ResponseLeaveGame leave_game = 5; */ public Builder setLeaveGame( SC2APIProtocol.Sc2Api.ResponseLeaveGame.Builder builderForValue) { if (leaveGameBuilder_ == null) { response_ = builderForValue.build(); onChanged(); } else { leaveGameBuilder_.setMessage(builderForValue.build()); } responseCase_ = 5; return this; } /** * .SC2APIProtocol.ResponseLeaveGame leave_game = 5; */ public Builder mergeLeaveGame(SC2APIProtocol.Sc2Api.ResponseLeaveGame value) { if (leaveGameBuilder_ == null) { if (responseCase_ == 5 && response_ != SC2APIProtocol.Sc2Api.ResponseLeaveGame.getDefaultInstance()) { response_ = SC2APIProtocol.Sc2Api.ResponseLeaveGame.newBuilder((SC2APIProtocol.Sc2Api.ResponseLeaveGame) response_) .mergeFrom(value).buildPartial(); } else { response_ = value; } onChanged(); } else { if (responseCase_ == 5) { leaveGameBuilder_.mergeFrom(value); } else { leaveGameBuilder_.setMessage(value); } } responseCase_ = 5; return this; } /** * .SC2APIProtocol.ResponseLeaveGame leave_game = 5; */ public Builder clearLeaveGame() { if (leaveGameBuilder_ == null) { if (responseCase_ == 5) { responseCase_ = 0; response_ = null; onChanged(); } } else { if (responseCase_ == 5) { responseCase_ = 0; response_ = null; } leaveGameBuilder_.clear(); } return this; } /** * .SC2APIProtocol.ResponseLeaveGame leave_game = 5; */ public SC2APIProtocol.Sc2Api.ResponseLeaveGame.Builder getLeaveGameBuilder() { return getLeaveGameFieldBuilder().getBuilder(); } /** * .SC2APIProtocol.ResponseLeaveGame leave_game = 5; */ @java.lang.Override public SC2APIProtocol.Sc2Api.ResponseLeaveGameOrBuilder getLeaveGameOrBuilder() { if ((responseCase_ == 5) && (leaveGameBuilder_ != null)) { return leaveGameBuilder_.getMessageOrBuilder(); } else { if (responseCase_ == 5) { return (SC2APIProtocol.Sc2Api.ResponseLeaveGame) response_; } return SC2APIProtocol.Sc2Api.ResponseLeaveGame.getDefaultInstance(); } } /** * .SC2APIProtocol.ResponseLeaveGame leave_game = 5; */ private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.ResponseLeaveGame, SC2APIProtocol.Sc2Api.ResponseLeaveGame.Builder, SC2APIProtocol.Sc2Api.ResponseLeaveGameOrBuilder> getLeaveGameFieldBuilder() { if (leaveGameBuilder_ == null) { if (!(responseCase_ == 5)) { response_ = SC2APIProtocol.Sc2Api.ResponseLeaveGame.getDefaultInstance(); } leaveGameBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.ResponseLeaveGame, SC2APIProtocol.Sc2Api.ResponseLeaveGame.Builder, SC2APIProtocol.Sc2Api.ResponseLeaveGameOrBuilder>( (SC2APIProtocol.Sc2Api.ResponseLeaveGame) response_, getParentForChildren(), isClean()); response_ = null; } responseCase_ = 5; onChanged();; return leaveGameBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.ResponseQuickSave, SC2APIProtocol.Sc2Api.ResponseQuickSave.Builder, SC2APIProtocol.Sc2Api.ResponseQuickSaveOrBuilder> quickSaveBuilder_; /** * .SC2APIProtocol.ResponseQuickSave quick_save = 6; * @return Whether the quickSave field is set. */ @java.lang.Override public boolean hasQuickSave() { return responseCase_ == 6; } /** * .SC2APIProtocol.ResponseQuickSave quick_save = 6; * @return The quickSave. */ @java.lang.Override public SC2APIProtocol.Sc2Api.ResponseQuickSave getQuickSave() { if (quickSaveBuilder_ == null) { if (responseCase_ == 6) { return (SC2APIProtocol.Sc2Api.ResponseQuickSave) response_; } return SC2APIProtocol.Sc2Api.ResponseQuickSave.getDefaultInstance(); } else { if (responseCase_ == 6) { return quickSaveBuilder_.getMessage(); } return SC2APIProtocol.Sc2Api.ResponseQuickSave.getDefaultInstance(); } } /** * .SC2APIProtocol.ResponseQuickSave quick_save = 6; */ public Builder setQuickSave(SC2APIProtocol.Sc2Api.ResponseQuickSave value) { if (quickSaveBuilder_ == null) { if (value == null) { throw new NullPointerException(); } response_ = value; onChanged(); } else { quickSaveBuilder_.setMessage(value); } responseCase_ = 6; return this; } /** * .SC2APIProtocol.ResponseQuickSave quick_save = 6; */ public Builder setQuickSave( SC2APIProtocol.Sc2Api.ResponseQuickSave.Builder builderForValue) { if (quickSaveBuilder_ == null) { response_ = builderForValue.build(); onChanged(); } else { quickSaveBuilder_.setMessage(builderForValue.build()); } responseCase_ = 6; return this; } /** * .SC2APIProtocol.ResponseQuickSave quick_save = 6; */ public Builder mergeQuickSave(SC2APIProtocol.Sc2Api.ResponseQuickSave value) { if (quickSaveBuilder_ == null) { if (responseCase_ == 6 && response_ != SC2APIProtocol.Sc2Api.ResponseQuickSave.getDefaultInstance()) { response_ = SC2APIProtocol.Sc2Api.ResponseQuickSave.newBuilder((SC2APIProtocol.Sc2Api.ResponseQuickSave) response_) .mergeFrom(value).buildPartial(); } else { response_ = value; } onChanged(); } else { if (responseCase_ == 6) { quickSaveBuilder_.mergeFrom(value); } else { quickSaveBuilder_.setMessage(value); } } responseCase_ = 6; return this; } /** * .SC2APIProtocol.ResponseQuickSave quick_save = 6; */ public Builder clearQuickSave() { if (quickSaveBuilder_ == null) { if (responseCase_ == 6) { responseCase_ = 0; response_ = null; onChanged(); } } else { if (responseCase_ == 6) { responseCase_ = 0; response_ = null; } quickSaveBuilder_.clear(); } return this; } /** * .SC2APIProtocol.ResponseQuickSave quick_save = 6; */ public SC2APIProtocol.Sc2Api.ResponseQuickSave.Builder getQuickSaveBuilder() { return getQuickSaveFieldBuilder().getBuilder(); } /** * .SC2APIProtocol.ResponseQuickSave quick_save = 6; */ @java.lang.Override public SC2APIProtocol.Sc2Api.ResponseQuickSaveOrBuilder getQuickSaveOrBuilder() { if ((responseCase_ == 6) && (quickSaveBuilder_ != null)) { return quickSaveBuilder_.getMessageOrBuilder(); } else { if (responseCase_ == 6) { return (SC2APIProtocol.Sc2Api.ResponseQuickSave) response_; } return SC2APIProtocol.Sc2Api.ResponseQuickSave.getDefaultInstance(); } } /** * .SC2APIProtocol.ResponseQuickSave quick_save = 6; */ private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.ResponseQuickSave, SC2APIProtocol.Sc2Api.ResponseQuickSave.Builder, SC2APIProtocol.Sc2Api.ResponseQuickSaveOrBuilder> getQuickSaveFieldBuilder() { if (quickSaveBuilder_ == null) { if (!(responseCase_ == 6)) { response_ = SC2APIProtocol.Sc2Api.ResponseQuickSave.getDefaultInstance(); } quickSaveBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.ResponseQuickSave, SC2APIProtocol.Sc2Api.ResponseQuickSave.Builder, SC2APIProtocol.Sc2Api.ResponseQuickSaveOrBuilder>( (SC2APIProtocol.Sc2Api.ResponseQuickSave) response_, getParentForChildren(), isClean()); response_ = null; } responseCase_ = 6; onChanged();; return quickSaveBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.ResponseQuickLoad, SC2APIProtocol.Sc2Api.ResponseQuickLoad.Builder, SC2APIProtocol.Sc2Api.ResponseQuickLoadOrBuilder> quickLoadBuilder_; /** * .SC2APIProtocol.ResponseQuickLoad quick_load = 7; * @return Whether the quickLoad field is set. */ @java.lang.Override public boolean hasQuickLoad() { return responseCase_ == 7; } /** * .SC2APIProtocol.ResponseQuickLoad quick_load = 7; * @return The quickLoad. */ @java.lang.Override public SC2APIProtocol.Sc2Api.ResponseQuickLoad getQuickLoad() { if (quickLoadBuilder_ == null) { if (responseCase_ == 7) { return (SC2APIProtocol.Sc2Api.ResponseQuickLoad) response_; } return SC2APIProtocol.Sc2Api.ResponseQuickLoad.getDefaultInstance(); } else { if (responseCase_ == 7) { return quickLoadBuilder_.getMessage(); } return SC2APIProtocol.Sc2Api.ResponseQuickLoad.getDefaultInstance(); } } /** * .SC2APIProtocol.ResponseQuickLoad quick_load = 7; */ public Builder setQuickLoad(SC2APIProtocol.Sc2Api.ResponseQuickLoad value) { if (quickLoadBuilder_ == null) { if (value == null) { throw new NullPointerException(); } response_ = value; onChanged(); } else { quickLoadBuilder_.setMessage(value); } responseCase_ = 7; return this; } /** * .SC2APIProtocol.ResponseQuickLoad quick_load = 7; */ public Builder setQuickLoad( SC2APIProtocol.Sc2Api.ResponseQuickLoad.Builder builderForValue) { if (quickLoadBuilder_ == null) { response_ = builderForValue.build(); onChanged(); } else { quickLoadBuilder_.setMessage(builderForValue.build()); } responseCase_ = 7; return this; } /** * .SC2APIProtocol.ResponseQuickLoad quick_load = 7; */ public Builder mergeQuickLoad(SC2APIProtocol.Sc2Api.ResponseQuickLoad value) { if (quickLoadBuilder_ == null) { if (responseCase_ == 7 && response_ != SC2APIProtocol.Sc2Api.ResponseQuickLoad.getDefaultInstance()) { response_ = SC2APIProtocol.Sc2Api.ResponseQuickLoad.newBuilder((SC2APIProtocol.Sc2Api.ResponseQuickLoad) response_) .mergeFrom(value).buildPartial(); } else { response_ = value; } onChanged(); } else { if (responseCase_ == 7) { quickLoadBuilder_.mergeFrom(value); } else { quickLoadBuilder_.setMessage(value); } } responseCase_ = 7; return this; } /** * .SC2APIProtocol.ResponseQuickLoad quick_load = 7; */ public Builder clearQuickLoad() { if (quickLoadBuilder_ == null) { if (responseCase_ == 7) { responseCase_ = 0; response_ = null; onChanged(); } } else { if (responseCase_ == 7) { responseCase_ = 0; response_ = null; } quickLoadBuilder_.clear(); } return this; } /** * .SC2APIProtocol.ResponseQuickLoad quick_load = 7; */ public SC2APIProtocol.Sc2Api.ResponseQuickLoad.Builder getQuickLoadBuilder() { return getQuickLoadFieldBuilder().getBuilder(); } /** * .SC2APIProtocol.ResponseQuickLoad quick_load = 7; */ @java.lang.Override public SC2APIProtocol.Sc2Api.ResponseQuickLoadOrBuilder getQuickLoadOrBuilder() { if ((responseCase_ == 7) && (quickLoadBuilder_ != null)) { return quickLoadBuilder_.getMessageOrBuilder(); } else { if (responseCase_ == 7) { return (SC2APIProtocol.Sc2Api.ResponseQuickLoad) response_; } return SC2APIProtocol.Sc2Api.ResponseQuickLoad.getDefaultInstance(); } } /** * .SC2APIProtocol.ResponseQuickLoad quick_load = 7; */ private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.ResponseQuickLoad, SC2APIProtocol.Sc2Api.ResponseQuickLoad.Builder, SC2APIProtocol.Sc2Api.ResponseQuickLoadOrBuilder> getQuickLoadFieldBuilder() { if (quickLoadBuilder_ == null) { if (!(responseCase_ == 7)) { response_ = SC2APIProtocol.Sc2Api.ResponseQuickLoad.getDefaultInstance(); } quickLoadBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.ResponseQuickLoad, SC2APIProtocol.Sc2Api.ResponseQuickLoad.Builder, SC2APIProtocol.Sc2Api.ResponseQuickLoadOrBuilder>( (SC2APIProtocol.Sc2Api.ResponseQuickLoad) response_, getParentForChildren(), isClean()); response_ = null; } responseCase_ = 7; onChanged();; return quickLoadBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.ResponseQuit, SC2APIProtocol.Sc2Api.ResponseQuit.Builder, SC2APIProtocol.Sc2Api.ResponseQuitOrBuilder> quitBuilder_; /** * .SC2APIProtocol.ResponseQuit quit = 8; * @return Whether the quit field is set. */ @java.lang.Override public boolean hasQuit() { return responseCase_ == 8; } /** * .SC2APIProtocol.ResponseQuit quit = 8; * @return The quit. */ @java.lang.Override public SC2APIProtocol.Sc2Api.ResponseQuit getQuit() { if (quitBuilder_ == null) { if (responseCase_ == 8) { return (SC2APIProtocol.Sc2Api.ResponseQuit) response_; } return SC2APIProtocol.Sc2Api.ResponseQuit.getDefaultInstance(); } else { if (responseCase_ == 8) { return quitBuilder_.getMessage(); } return SC2APIProtocol.Sc2Api.ResponseQuit.getDefaultInstance(); } } /** * .SC2APIProtocol.ResponseQuit quit = 8; */ public Builder setQuit(SC2APIProtocol.Sc2Api.ResponseQuit value) { if (quitBuilder_ == null) { if (value == null) { throw new NullPointerException(); } response_ = value; onChanged(); } else { quitBuilder_.setMessage(value); } responseCase_ = 8; return this; } /** * .SC2APIProtocol.ResponseQuit quit = 8; */ public Builder setQuit( SC2APIProtocol.Sc2Api.ResponseQuit.Builder builderForValue) { if (quitBuilder_ == null) { response_ = builderForValue.build(); onChanged(); } else { quitBuilder_.setMessage(builderForValue.build()); } responseCase_ = 8; return this; } /** * .SC2APIProtocol.ResponseQuit quit = 8; */ public Builder mergeQuit(SC2APIProtocol.Sc2Api.ResponseQuit value) { if (quitBuilder_ == null) { if (responseCase_ == 8 && response_ != SC2APIProtocol.Sc2Api.ResponseQuit.getDefaultInstance()) { response_ = SC2APIProtocol.Sc2Api.ResponseQuit.newBuilder((SC2APIProtocol.Sc2Api.ResponseQuit) response_) .mergeFrom(value).buildPartial(); } else { response_ = value; } onChanged(); } else { if (responseCase_ == 8) { quitBuilder_.mergeFrom(value); } else { quitBuilder_.setMessage(value); } } responseCase_ = 8; return this; } /** * .SC2APIProtocol.ResponseQuit quit = 8; */ public Builder clearQuit() { if (quitBuilder_ == null) { if (responseCase_ == 8) { responseCase_ = 0; response_ = null; onChanged(); } } else { if (responseCase_ == 8) { responseCase_ = 0; response_ = null; } quitBuilder_.clear(); } return this; } /** * .SC2APIProtocol.ResponseQuit quit = 8; */ public SC2APIProtocol.Sc2Api.ResponseQuit.Builder getQuitBuilder() { return getQuitFieldBuilder().getBuilder(); } /** * .SC2APIProtocol.ResponseQuit quit = 8; */ @java.lang.Override public SC2APIProtocol.Sc2Api.ResponseQuitOrBuilder getQuitOrBuilder() { if ((responseCase_ == 8) && (quitBuilder_ != null)) { return quitBuilder_.getMessageOrBuilder(); } else { if (responseCase_ == 8) { return (SC2APIProtocol.Sc2Api.ResponseQuit) response_; } return SC2APIProtocol.Sc2Api.ResponseQuit.getDefaultInstance(); } } /** * .SC2APIProtocol.ResponseQuit quit = 8; */ private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.ResponseQuit, SC2APIProtocol.Sc2Api.ResponseQuit.Builder, SC2APIProtocol.Sc2Api.ResponseQuitOrBuilder> getQuitFieldBuilder() { if (quitBuilder_ == null) { if (!(responseCase_ == 8)) { response_ = SC2APIProtocol.Sc2Api.ResponseQuit.getDefaultInstance(); } quitBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.ResponseQuit, SC2APIProtocol.Sc2Api.ResponseQuit.Builder, SC2APIProtocol.Sc2Api.ResponseQuitOrBuilder>( (SC2APIProtocol.Sc2Api.ResponseQuit) response_, getParentForChildren(), isClean()); response_ = null; } responseCase_ = 8; onChanged();; return quitBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.ResponseGameInfo, SC2APIProtocol.Sc2Api.ResponseGameInfo.Builder, SC2APIProtocol.Sc2Api.ResponseGameInfoOrBuilder> gameInfoBuilder_; /** * .SC2APIProtocol.ResponseGameInfo game_info = 9; * @return Whether the gameInfo field is set. */ @java.lang.Override public boolean hasGameInfo() { return responseCase_ == 9; } /** * .SC2APIProtocol.ResponseGameInfo game_info = 9; * @return The gameInfo. */ @java.lang.Override public SC2APIProtocol.Sc2Api.ResponseGameInfo getGameInfo() { if (gameInfoBuilder_ == null) { if (responseCase_ == 9) { return (SC2APIProtocol.Sc2Api.ResponseGameInfo) response_; } return SC2APIProtocol.Sc2Api.ResponseGameInfo.getDefaultInstance(); } else { if (responseCase_ == 9) { return gameInfoBuilder_.getMessage(); } return SC2APIProtocol.Sc2Api.ResponseGameInfo.getDefaultInstance(); } } /** * .SC2APIProtocol.ResponseGameInfo game_info = 9; */ public Builder setGameInfo(SC2APIProtocol.Sc2Api.ResponseGameInfo value) { if (gameInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } response_ = value; onChanged(); } else { gameInfoBuilder_.setMessage(value); } responseCase_ = 9; return this; } /** * .SC2APIProtocol.ResponseGameInfo game_info = 9; */ public Builder setGameInfo( SC2APIProtocol.Sc2Api.ResponseGameInfo.Builder builderForValue) { if (gameInfoBuilder_ == null) { response_ = builderForValue.build(); onChanged(); } else { gameInfoBuilder_.setMessage(builderForValue.build()); } responseCase_ = 9; return this; } /** * .SC2APIProtocol.ResponseGameInfo game_info = 9; */ public Builder mergeGameInfo(SC2APIProtocol.Sc2Api.ResponseGameInfo value) { if (gameInfoBuilder_ == null) { if (responseCase_ == 9 && response_ != SC2APIProtocol.Sc2Api.ResponseGameInfo.getDefaultInstance()) { response_ = SC2APIProtocol.Sc2Api.ResponseGameInfo.newBuilder((SC2APIProtocol.Sc2Api.ResponseGameInfo) response_) .mergeFrom(value).buildPartial(); } else { response_ = value; } onChanged(); } else { if (responseCase_ == 9) { gameInfoBuilder_.mergeFrom(value); } else { gameInfoBuilder_.setMessage(value); } } responseCase_ = 9; return this; } /** * .SC2APIProtocol.ResponseGameInfo game_info = 9; */ public Builder clearGameInfo() { if (gameInfoBuilder_ == null) { if (responseCase_ == 9) { responseCase_ = 0; response_ = null; onChanged(); } } else { if (responseCase_ == 9) { responseCase_ = 0; response_ = null; } gameInfoBuilder_.clear(); } return this; } /** * .SC2APIProtocol.ResponseGameInfo game_info = 9; */ public SC2APIProtocol.Sc2Api.ResponseGameInfo.Builder getGameInfoBuilder() { return getGameInfoFieldBuilder().getBuilder(); } /** * .SC2APIProtocol.ResponseGameInfo game_info = 9; */ @java.lang.Override public SC2APIProtocol.Sc2Api.ResponseGameInfoOrBuilder getGameInfoOrBuilder() { if ((responseCase_ == 9) && (gameInfoBuilder_ != null)) { return gameInfoBuilder_.getMessageOrBuilder(); } else { if (responseCase_ == 9) { return (SC2APIProtocol.Sc2Api.ResponseGameInfo) response_; } return SC2APIProtocol.Sc2Api.ResponseGameInfo.getDefaultInstance(); } } /** * .SC2APIProtocol.ResponseGameInfo game_info = 9; */ private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.ResponseGameInfo, SC2APIProtocol.Sc2Api.ResponseGameInfo.Builder, SC2APIProtocol.Sc2Api.ResponseGameInfoOrBuilder> getGameInfoFieldBuilder() { if (gameInfoBuilder_ == null) { if (!(responseCase_ == 9)) { response_ = SC2APIProtocol.Sc2Api.ResponseGameInfo.getDefaultInstance(); } gameInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.ResponseGameInfo, SC2APIProtocol.Sc2Api.ResponseGameInfo.Builder, SC2APIProtocol.Sc2Api.ResponseGameInfoOrBuilder>( (SC2APIProtocol.Sc2Api.ResponseGameInfo) response_, getParentForChildren(), isClean()); response_ = null; } responseCase_ = 9; onChanged();; return gameInfoBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.ResponseObservation, SC2APIProtocol.Sc2Api.ResponseObservation.Builder, SC2APIProtocol.Sc2Api.ResponseObservationOrBuilder> observationBuilder_; /** * .SC2APIProtocol.ResponseObservation observation = 10; * @return Whether the observation field is set. */ @java.lang.Override public boolean hasObservation() { return responseCase_ == 10; } /** * .SC2APIProtocol.ResponseObservation observation = 10; * @return The observation. */ @java.lang.Override public SC2APIProtocol.Sc2Api.ResponseObservation getObservation() { if (observationBuilder_ == null) { if (responseCase_ == 10) { return (SC2APIProtocol.Sc2Api.ResponseObservation) response_; } return SC2APIProtocol.Sc2Api.ResponseObservation.getDefaultInstance(); } else { if (responseCase_ == 10) { return observationBuilder_.getMessage(); } return SC2APIProtocol.Sc2Api.ResponseObservation.getDefaultInstance(); } } /** * .SC2APIProtocol.ResponseObservation observation = 10; */ public Builder setObservation(SC2APIProtocol.Sc2Api.ResponseObservation value) { if (observationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } response_ = value; onChanged(); } else { observationBuilder_.setMessage(value); } responseCase_ = 10; return this; } /** * .SC2APIProtocol.ResponseObservation observation = 10; */ public Builder setObservation( SC2APIProtocol.Sc2Api.ResponseObservation.Builder builderForValue) { if (observationBuilder_ == null) { response_ = builderForValue.build(); onChanged(); } else { observationBuilder_.setMessage(builderForValue.build()); } responseCase_ = 10; return this; } /** * .SC2APIProtocol.ResponseObservation observation = 10; */ public Builder mergeObservation(SC2APIProtocol.Sc2Api.ResponseObservation value) { if (observationBuilder_ == null) { if (responseCase_ == 10 && response_ != SC2APIProtocol.Sc2Api.ResponseObservation.getDefaultInstance()) { response_ = SC2APIProtocol.Sc2Api.ResponseObservation.newBuilder((SC2APIProtocol.Sc2Api.ResponseObservation) response_) .mergeFrom(value).buildPartial(); } else { response_ = value; } onChanged(); } else { if (responseCase_ == 10) { observationBuilder_.mergeFrom(value); } else { observationBuilder_.setMessage(value); } } responseCase_ = 10; return this; } /** * .SC2APIProtocol.ResponseObservation observation = 10; */ public Builder clearObservation() { if (observationBuilder_ == null) { if (responseCase_ == 10) { responseCase_ = 0; response_ = null; onChanged(); } } else { if (responseCase_ == 10) { responseCase_ = 0; response_ = null; } observationBuilder_.clear(); } return this; } /** * .SC2APIProtocol.ResponseObservation observation = 10; */ public SC2APIProtocol.Sc2Api.ResponseObservation.Builder getObservationBuilder() { return getObservationFieldBuilder().getBuilder(); } /** * .SC2APIProtocol.ResponseObservation observation = 10; */ @java.lang.Override public SC2APIProtocol.Sc2Api.ResponseObservationOrBuilder getObservationOrBuilder() { if ((responseCase_ == 10) && (observationBuilder_ != null)) { return observationBuilder_.getMessageOrBuilder(); } else { if (responseCase_ == 10) { return (SC2APIProtocol.Sc2Api.ResponseObservation) response_; } return SC2APIProtocol.Sc2Api.ResponseObservation.getDefaultInstance(); } } /** * .SC2APIProtocol.ResponseObservation observation = 10; */ private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.ResponseObservation, SC2APIProtocol.Sc2Api.ResponseObservation.Builder, SC2APIProtocol.Sc2Api.ResponseObservationOrBuilder> getObservationFieldBuilder() { if (observationBuilder_ == null) { if (!(responseCase_ == 10)) { response_ = SC2APIProtocol.Sc2Api.ResponseObservation.getDefaultInstance(); } observationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.ResponseObservation, SC2APIProtocol.Sc2Api.ResponseObservation.Builder, SC2APIProtocol.Sc2Api.ResponseObservationOrBuilder>( (SC2APIProtocol.Sc2Api.ResponseObservation) response_, getParentForChildren(), isClean()); response_ = null; } responseCase_ = 10; onChanged();; return observationBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.ResponseAction, SC2APIProtocol.Sc2Api.ResponseAction.Builder, SC2APIProtocol.Sc2Api.ResponseActionOrBuilder> actionBuilder_; /** * .SC2APIProtocol.ResponseAction action = 11; * @return Whether the action field is set. */ @java.lang.Override public boolean hasAction() { return responseCase_ == 11; } /** * .SC2APIProtocol.ResponseAction action = 11; * @return The action. */ @java.lang.Override public SC2APIProtocol.Sc2Api.ResponseAction getAction() { if (actionBuilder_ == null) { if (responseCase_ == 11) { return (SC2APIProtocol.Sc2Api.ResponseAction) response_; } return SC2APIProtocol.Sc2Api.ResponseAction.getDefaultInstance(); } else { if (responseCase_ == 11) { return actionBuilder_.getMessage(); } return SC2APIProtocol.Sc2Api.ResponseAction.getDefaultInstance(); } } /** * .SC2APIProtocol.ResponseAction action = 11; */ public Builder setAction(SC2APIProtocol.Sc2Api.ResponseAction value) { if (actionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } response_ = value; onChanged(); } else { actionBuilder_.setMessage(value); } responseCase_ = 11; return this; } /** * .SC2APIProtocol.ResponseAction action = 11; */ public Builder setAction( SC2APIProtocol.Sc2Api.ResponseAction.Builder builderForValue) { if (actionBuilder_ == null) { response_ = builderForValue.build(); onChanged(); } else { actionBuilder_.setMessage(builderForValue.build()); } responseCase_ = 11; return this; } /** * .SC2APIProtocol.ResponseAction action = 11; */ public Builder mergeAction(SC2APIProtocol.Sc2Api.ResponseAction value) { if (actionBuilder_ == null) { if (responseCase_ == 11 && response_ != SC2APIProtocol.Sc2Api.ResponseAction.getDefaultInstance()) { response_ = SC2APIProtocol.Sc2Api.ResponseAction.newBuilder((SC2APIProtocol.Sc2Api.ResponseAction) response_) .mergeFrom(value).buildPartial(); } else { response_ = value; } onChanged(); } else { if (responseCase_ == 11) { actionBuilder_.mergeFrom(value); } else { actionBuilder_.setMessage(value); } } responseCase_ = 11; return this; } /** * .SC2APIProtocol.ResponseAction action = 11; */ public Builder clearAction() { if (actionBuilder_ == null) { if (responseCase_ == 11) { responseCase_ = 0; response_ = null; onChanged(); } } else { if (responseCase_ == 11) { responseCase_ = 0; response_ = null; } actionBuilder_.clear(); } return this; } /** * .SC2APIProtocol.ResponseAction action = 11; */ public SC2APIProtocol.Sc2Api.ResponseAction.Builder getActionBuilder() { return getActionFieldBuilder().getBuilder(); } /** * .SC2APIProtocol.ResponseAction action = 11; */ @java.lang.Override public SC2APIProtocol.Sc2Api.ResponseActionOrBuilder getActionOrBuilder() { if ((responseCase_ == 11) && (actionBuilder_ != null)) { return actionBuilder_.getMessageOrBuilder(); } else { if (responseCase_ == 11) { return (SC2APIProtocol.Sc2Api.ResponseAction) response_; } return SC2APIProtocol.Sc2Api.ResponseAction.getDefaultInstance(); } } /** * .SC2APIProtocol.ResponseAction action = 11; */ private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.ResponseAction, SC2APIProtocol.Sc2Api.ResponseAction.Builder, SC2APIProtocol.Sc2Api.ResponseActionOrBuilder> getActionFieldBuilder() { if (actionBuilder_ == null) { if (!(responseCase_ == 11)) { response_ = SC2APIProtocol.Sc2Api.ResponseAction.getDefaultInstance(); } actionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.ResponseAction, SC2APIProtocol.Sc2Api.ResponseAction.Builder, SC2APIProtocol.Sc2Api.ResponseActionOrBuilder>( (SC2APIProtocol.Sc2Api.ResponseAction) response_, getParentForChildren(), isClean()); response_ = null; } responseCase_ = 11; onChanged();; return actionBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.ResponseObserverAction, SC2APIProtocol.Sc2Api.ResponseObserverAction.Builder, SC2APIProtocol.Sc2Api.ResponseObserverActionOrBuilder> obsActionBuilder_; /** * .SC2APIProtocol.ResponseObserverAction obs_action = 21; * @return Whether the obsAction field is set. */ @java.lang.Override public boolean hasObsAction() { return responseCase_ == 21; } /** * .SC2APIProtocol.ResponseObserverAction obs_action = 21; * @return The obsAction. */ @java.lang.Override public SC2APIProtocol.Sc2Api.ResponseObserverAction getObsAction() { if (obsActionBuilder_ == null) { if (responseCase_ == 21) { return (SC2APIProtocol.Sc2Api.ResponseObserverAction) response_; } return SC2APIProtocol.Sc2Api.ResponseObserverAction.getDefaultInstance(); } else { if (responseCase_ == 21) { return obsActionBuilder_.getMessage(); } return SC2APIProtocol.Sc2Api.ResponseObserverAction.getDefaultInstance(); } } /** * .SC2APIProtocol.ResponseObserverAction obs_action = 21; */ public Builder setObsAction(SC2APIProtocol.Sc2Api.ResponseObserverAction value) { if (obsActionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } response_ = value; onChanged(); } else { obsActionBuilder_.setMessage(value); } responseCase_ = 21; return this; } /** * .SC2APIProtocol.ResponseObserverAction obs_action = 21; */ public Builder setObsAction( SC2APIProtocol.Sc2Api.ResponseObserverAction.Builder builderForValue) { if (obsActionBuilder_ == null) { response_ = builderForValue.build(); onChanged(); } else { obsActionBuilder_.setMessage(builderForValue.build()); } responseCase_ = 21; return this; } /** * .SC2APIProtocol.ResponseObserverAction obs_action = 21; */ public Builder mergeObsAction(SC2APIProtocol.Sc2Api.ResponseObserverAction value) { if (obsActionBuilder_ == null) { if (responseCase_ == 21 && response_ != SC2APIProtocol.Sc2Api.ResponseObserverAction.getDefaultInstance()) { response_ = SC2APIProtocol.Sc2Api.ResponseObserverAction.newBuilder((SC2APIProtocol.Sc2Api.ResponseObserverAction) response_) .mergeFrom(value).buildPartial(); } else { response_ = value; } onChanged(); } else { if (responseCase_ == 21) { obsActionBuilder_.mergeFrom(value); } else { obsActionBuilder_.setMessage(value); } } responseCase_ = 21; return this; } /** * .SC2APIProtocol.ResponseObserverAction obs_action = 21; */ public Builder clearObsAction() { if (obsActionBuilder_ == null) { if (responseCase_ == 21) { responseCase_ = 0; response_ = null; onChanged(); } } else { if (responseCase_ == 21) { responseCase_ = 0; response_ = null; } obsActionBuilder_.clear(); } return this; } /** * .SC2APIProtocol.ResponseObserverAction obs_action = 21; */ public SC2APIProtocol.Sc2Api.ResponseObserverAction.Builder getObsActionBuilder() { return getObsActionFieldBuilder().getBuilder(); } /** * .SC2APIProtocol.ResponseObserverAction obs_action = 21; */ @java.lang.Override public SC2APIProtocol.Sc2Api.ResponseObserverActionOrBuilder getObsActionOrBuilder() { if ((responseCase_ == 21) && (obsActionBuilder_ != null)) { return obsActionBuilder_.getMessageOrBuilder(); } else { if (responseCase_ == 21) { return (SC2APIProtocol.Sc2Api.ResponseObserverAction) response_; } return SC2APIProtocol.Sc2Api.ResponseObserverAction.getDefaultInstance(); } } /** * .SC2APIProtocol.ResponseObserverAction obs_action = 21; */ private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.ResponseObserverAction, SC2APIProtocol.Sc2Api.ResponseObserverAction.Builder, SC2APIProtocol.Sc2Api.ResponseObserverActionOrBuilder> getObsActionFieldBuilder() { if (obsActionBuilder_ == null) { if (!(responseCase_ == 21)) { response_ = SC2APIProtocol.Sc2Api.ResponseObserverAction.getDefaultInstance(); } obsActionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.ResponseObserverAction, SC2APIProtocol.Sc2Api.ResponseObserverAction.Builder, SC2APIProtocol.Sc2Api.ResponseObserverActionOrBuilder>( (SC2APIProtocol.Sc2Api.ResponseObserverAction) response_, getParentForChildren(), isClean()); response_ = null; } responseCase_ = 21; onChanged();; return obsActionBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.ResponseStep, SC2APIProtocol.Sc2Api.ResponseStep.Builder, SC2APIProtocol.Sc2Api.ResponseStepOrBuilder> stepBuilder_; /** * .SC2APIProtocol.ResponseStep step = 12; * @return Whether the step field is set. */ @java.lang.Override public boolean hasStep() { return responseCase_ == 12; } /** * .SC2APIProtocol.ResponseStep step = 12; * @return The step. */ @java.lang.Override public SC2APIProtocol.Sc2Api.ResponseStep getStep() { if (stepBuilder_ == null) { if (responseCase_ == 12) { return (SC2APIProtocol.Sc2Api.ResponseStep) response_; } return SC2APIProtocol.Sc2Api.ResponseStep.getDefaultInstance(); } else { if (responseCase_ == 12) { return stepBuilder_.getMessage(); } return SC2APIProtocol.Sc2Api.ResponseStep.getDefaultInstance(); } } /** * .SC2APIProtocol.ResponseStep step = 12; */ public Builder setStep(SC2APIProtocol.Sc2Api.ResponseStep value) { if (stepBuilder_ == null) { if (value == null) { throw new NullPointerException(); } response_ = value; onChanged(); } else { stepBuilder_.setMessage(value); } responseCase_ = 12; return this; } /** * .SC2APIProtocol.ResponseStep step = 12; */ public Builder setStep( SC2APIProtocol.Sc2Api.ResponseStep.Builder builderForValue) { if (stepBuilder_ == null) { response_ = builderForValue.build(); onChanged(); } else { stepBuilder_.setMessage(builderForValue.build()); } responseCase_ = 12; return this; } /** * .SC2APIProtocol.ResponseStep step = 12; */ public Builder mergeStep(SC2APIProtocol.Sc2Api.ResponseStep value) { if (stepBuilder_ == null) { if (responseCase_ == 12 && response_ != SC2APIProtocol.Sc2Api.ResponseStep.getDefaultInstance()) { response_ = SC2APIProtocol.Sc2Api.ResponseStep.newBuilder((SC2APIProtocol.Sc2Api.ResponseStep) response_) .mergeFrom(value).buildPartial(); } else { response_ = value; } onChanged(); } else { if (responseCase_ == 12) { stepBuilder_.mergeFrom(value); } else { stepBuilder_.setMessage(value); } } responseCase_ = 12; return this; } /** * .SC2APIProtocol.ResponseStep step = 12; */ public Builder clearStep() { if (stepBuilder_ == null) { if (responseCase_ == 12) { responseCase_ = 0; response_ = null; onChanged(); } } else { if (responseCase_ == 12) { responseCase_ = 0; response_ = null; } stepBuilder_.clear(); } return this; } /** * .SC2APIProtocol.ResponseStep step = 12; */ public SC2APIProtocol.Sc2Api.ResponseStep.Builder getStepBuilder() { return getStepFieldBuilder().getBuilder(); } /** * .SC2APIProtocol.ResponseStep step = 12; */ @java.lang.Override public SC2APIProtocol.Sc2Api.ResponseStepOrBuilder getStepOrBuilder() { if ((responseCase_ == 12) && (stepBuilder_ != null)) { return stepBuilder_.getMessageOrBuilder(); } else { if (responseCase_ == 12) { return (SC2APIProtocol.Sc2Api.ResponseStep) response_; } return SC2APIProtocol.Sc2Api.ResponseStep.getDefaultInstance(); } } /** * .SC2APIProtocol.ResponseStep step = 12; */ private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.ResponseStep, SC2APIProtocol.Sc2Api.ResponseStep.Builder, SC2APIProtocol.Sc2Api.ResponseStepOrBuilder> getStepFieldBuilder() { if (stepBuilder_ == null) { if (!(responseCase_ == 12)) { response_ = SC2APIProtocol.Sc2Api.ResponseStep.getDefaultInstance(); } stepBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.ResponseStep, SC2APIProtocol.Sc2Api.ResponseStep.Builder, SC2APIProtocol.Sc2Api.ResponseStepOrBuilder>( (SC2APIProtocol.Sc2Api.ResponseStep) response_, getParentForChildren(), isClean()); response_ = null; } responseCase_ = 12; onChanged();; return stepBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.ResponseData, SC2APIProtocol.Sc2Api.ResponseData.Builder, SC2APIProtocol.Sc2Api.ResponseDataOrBuilder> dataBuilder_; /** * .SC2APIProtocol.ResponseData data = 13; * @return Whether the data field is set. */ @java.lang.Override public boolean hasData() { return responseCase_ == 13; } /** * .SC2APIProtocol.ResponseData data = 13; * @return The data. */ @java.lang.Override public SC2APIProtocol.Sc2Api.ResponseData getData() { if (dataBuilder_ == null) { if (responseCase_ == 13) { return (SC2APIProtocol.Sc2Api.ResponseData) response_; } return SC2APIProtocol.Sc2Api.ResponseData.getDefaultInstance(); } else { if (responseCase_ == 13) { return dataBuilder_.getMessage(); } return SC2APIProtocol.Sc2Api.ResponseData.getDefaultInstance(); } } /** * .SC2APIProtocol.ResponseData data = 13; */ public Builder setData(SC2APIProtocol.Sc2Api.ResponseData value) { if (dataBuilder_ == null) { if (value == null) { throw new NullPointerException(); } response_ = value; onChanged(); } else { dataBuilder_.setMessage(value); } responseCase_ = 13; return this; } /** * .SC2APIProtocol.ResponseData data = 13; */ public Builder setData( SC2APIProtocol.Sc2Api.ResponseData.Builder builderForValue) { if (dataBuilder_ == null) { response_ = builderForValue.build(); onChanged(); } else { dataBuilder_.setMessage(builderForValue.build()); } responseCase_ = 13; return this; } /** * .SC2APIProtocol.ResponseData data = 13; */ public Builder mergeData(SC2APIProtocol.Sc2Api.ResponseData value) { if (dataBuilder_ == null) { if (responseCase_ == 13 && response_ != SC2APIProtocol.Sc2Api.ResponseData.getDefaultInstance()) { response_ = SC2APIProtocol.Sc2Api.ResponseData.newBuilder((SC2APIProtocol.Sc2Api.ResponseData) response_) .mergeFrom(value).buildPartial(); } else { response_ = value; } onChanged(); } else { if (responseCase_ == 13) { dataBuilder_.mergeFrom(value); } else { dataBuilder_.setMessage(value); } } responseCase_ = 13; return this; } /** * .SC2APIProtocol.ResponseData data = 13; */ public Builder clearData() { if (dataBuilder_ == null) { if (responseCase_ == 13) { responseCase_ = 0; response_ = null; onChanged(); } } else { if (responseCase_ == 13) { responseCase_ = 0; response_ = null; } dataBuilder_.clear(); } return this; } /** * .SC2APIProtocol.ResponseData data = 13; */ public SC2APIProtocol.Sc2Api.ResponseData.Builder getDataBuilder() { return getDataFieldBuilder().getBuilder(); } /** * .SC2APIProtocol.ResponseData data = 13; */ @java.lang.Override public SC2APIProtocol.Sc2Api.ResponseDataOrBuilder getDataOrBuilder() { if ((responseCase_ == 13) && (dataBuilder_ != null)) { return dataBuilder_.getMessageOrBuilder(); } else { if (responseCase_ == 13) { return (SC2APIProtocol.Sc2Api.ResponseData) response_; } return SC2APIProtocol.Sc2Api.ResponseData.getDefaultInstance(); } } /** * .SC2APIProtocol.ResponseData data = 13; */ private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.ResponseData, SC2APIProtocol.Sc2Api.ResponseData.Builder, SC2APIProtocol.Sc2Api.ResponseDataOrBuilder> getDataFieldBuilder() { if (dataBuilder_ == null) { if (!(responseCase_ == 13)) { response_ = SC2APIProtocol.Sc2Api.ResponseData.getDefaultInstance(); } dataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.ResponseData, SC2APIProtocol.Sc2Api.ResponseData.Builder, SC2APIProtocol.Sc2Api.ResponseDataOrBuilder>( (SC2APIProtocol.Sc2Api.ResponseData) response_, getParentForChildren(), isClean()); response_ = null; } responseCase_ = 13; onChanged();; return dataBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Query.ResponseQuery, SC2APIProtocol.Query.ResponseQuery.Builder, SC2APIProtocol.Query.ResponseQueryOrBuilder> queryBuilder_; /** * .SC2APIProtocol.ResponseQuery query = 14; * @return Whether the query field is set. */ @java.lang.Override public boolean hasQuery() { return responseCase_ == 14; } /** * .SC2APIProtocol.ResponseQuery query = 14; * @return The query. */ @java.lang.Override public SC2APIProtocol.Query.ResponseQuery getQuery() { if (queryBuilder_ == null) { if (responseCase_ == 14) { return (SC2APIProtocol.Query.ResponseQuery) response_; } return SC2APIProtocol.Query.ResponseQuery.getDefaultInstance(); } else { if (responseCase_ == 14) { return queryBuilder_.getMessage(); } return SC2APIProtocol.Query.ResponseQuery.getDefaultInstance(); } } /** * .SC2APIProtocol.ResponseQuery query = 14; */ public Builder setQuery(SC2APIProtocol.Query.ResponseQuery value) { if (queryBuilder_ == null) { if (value == null) { throw new NullPointerException(); } response_ = value; onChanged(); } else { queryBuilder_.setMessage(value); } responseCase_ = 14; return this; } /** * .SC2APIProtocol.ResponseQuery query = 14; */ public Builder setQuery( SC2APIProtocol.Query.ResponseQuery.Builder builderForValue) { if (queryBuilder_ == null) { response_ = builderForValue.build(); onChanged(); } else { queryBuilder_.setMessage(builderForValue.build()); } responseCase_ = 14; return this; } /** * .SC2APIProtocol.ResponseQuery query = 14; */ public Builder mergeQuery(SC2APIProtocol.Query.ResponseQuery value) { if (queryBuilder_ == null) { if (responseCase_ == 14 && response_ != SC2APIProtocol.Query.ResponseQuery.getDefaultInstance()) { response_ = SC2APIProtocol.Query.ResponseQuery.newBuilder((SC2APIProtocol.Query.ResponseQuery) response_) .mergeFrom(value).buildPartial(); } else { response_ = value; } onChanged(); } else { if (responseCase_ == 14) { queryBuilder_.mergeFrom(value); } else { queryBuilder_.setMessage(value); } } responseCase_ = 14; return this; } /** * .SC2APIProtocol.ResponseQuery query = 14; */ public Builder clearQuery() { if (queryBuilder_ == null) { if (responseCase_ == 14) { responseCase_ = 0; response_ = null; onChanged(); } } else { if (responseCase_ == 14) { responseCase_ = 0; response_ = null; } queryBuilder_.clear(); } return this; } /** * .SC2APIProtocol.ResponseQuery query = 14; */ public SC2APIProtocol.Query.ResponseQuery.Builder getQueryBuilder() { return getQueryFieldBuilder().getBuilder(); } /** * .SC2APIProtocol.ResponseQuery query = 14; */ @java.lang.Override public SC2APIProtocol.Query.ResponseQueryOrBuilder getQueryOrBuilder() { if ((responseCase_ == 14) && (queryBuilder_ != null)) { return queryBuilder_.getMessageOrBuilder(); } else { if (responseCase_ == 14) { return (SC2APIProtocol.Query.ResponseQuery) response_; } return SC2APIProtocol.Query.ResponseQuery.getDefaultInstance(); } } /** * .SC2APIProtocol.ResponseQuery query = 14; */ private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Query.ResponseQuery, SC2APIProtocol.Query.ResponseQuery.Builder, SC2APIProtocol.Query.ResponseQueryOrBuilder> getQueryFieldBuilder() { if (queryBuilder_ == null) { if (!(responseCase_ == 14)) { response_ = SC2APIProtocol.Query.ResponseQuery.getDefaultInstance(); } queryBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Query.ResponseQuery, SC2APIProtocol.Query.ResponseQuery.Builder, SC2APIProtocol.Query.ResponseQueryOrBuilder>( (SC2APIProtocol.Query.ResponseQuery) response_, getParentForChildren(), isClean()); response_ = null; } responseCase_ = 14; onChanged();; return queryBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.ResponseSaveReplay, SC2APIProtocol.Sc2Api.ResponseSaveReplay.Builder, SC2APIProtocol.Sc2Api.ResponseSaveReplayOrBuilder> saveReplayBuilder_; /** * .SC2APIProtocol.ResponseSaveReplay save_replay = 15; * @return Whether the saveReplay field is set. */ @java.lang.Override public boolean hasSaveReplay() { return responseCase_ == 15; } /** * .SC2APIProtocol.ResponseSaveReplay save_replay = 15; * @return The saveReplay. */ @java.lang.Override public SC2APIProtocol.Sc2Api.ResponseSaveReplay getSaveReplay() { if (saveReplayBuilder_ == null) { if (responseCase_ == 15) { return (SC2APIProtocol.Sc2Api.ResponseSaveReplay) response_; } return SC2APIProtocol.Sc2Api.ResponseSaveReplay.getDefaultInstance(); } else { if (responseCase_ == 15) { return saveReplayBuilder_.getMessage(); } return SC2APIProtocol.Sc2Api.ResponseSaveReplay.getDefaultInstance(); } } /** * .SC2APIProtocol.ResponseSaveReplay save_replay = 15; */ public Builder setSaveReplay(SC2APIProtocol.Sc2Api.ResponseSaveReplay value) { if (saveReplayBuilder_ == null) { if (value == null) { throw new NullPointerException(); } response_ = value; onChanged(); } else { saveReplayBuilder_.setMessage(value); } responseCase_ = 15; return this; } /** * .SC2APIProtocol.ResponseSaveReplay save_replay = 15; */ public Builder setSaveReplay( SC2APIProtocol.Sc2Api.ResponseSaveReplay.Builder builderForValue) { if (saveReplayBuilder_ == null) { response_ = builderForValue.build(); onChanged(); } else { saveReplayBuilder_.setMessage(builderForValue.build()); } responseCase_ = 15; return this; } /** * .SC2APIProtocol.ResponseSaveReplay save_replay = 15; */ public Builder mergeSaveReplay(SC2APIProtocol.Sc2Api.ResponseSaveReplay value) { if (saveReplayBuilder_ == null) { if (responseCase_ == 15 && response_ != SC2APIProtocol.Sc2Api.ResponseSaveReplay.getDefaultInstance()) { response_ = SC2APIProtocol.Sc2Api.ResponseSaveReplay.newBuilder((SC2APIProtocol.Sc2Api.ResponseSaveReplay) response_) .mergeFrom(value).buildPartial(); } else { response_ = value; } onChanged(); } else { if (responseCase_ == 15) { saveReplayBuilder_.mergeFrom(value); } else { saveReplayBuilder_.setMessage(value); } } responseCase_ = 15; return this; } /** * .SC2APIProtocol.ResponseSaveReplay save_replay = 15; */ public Builder clearSaveReplay() { if (saveReplayBuilder_ == null) { if (responseCase_ == 15) { responseCase_ = 0; response_ = null; onChanged(); } } else { if (responseCase_ == 15) { responseCase_ = 0; response_ = null; } saveReplayBuilder_.clear(); } return this; } /** * .SC2APIProtocol.ResponseSaveReplay save_replay = 15; */ public SC2APIProtocol.Sc2Api.ResponseSaveReplay.Builder getSaveReplayBuilder() { return getSaveReplayFieldBuilder().getBuilder(); } /** * .SC2APIProtocol.ResponseSaveReplay save_replay = 15; */ @java.lang.Override public SC2APIProtocol.Sc2Api.ResponseSaveReplayOrBuilder getSaveReplayOrBuilder() { if ((responseCase_ == 15) && (saveReplayBuilder_ != null)) { return saveReplayBuilder_.getMessageOrBuilder(); } else { if (responseCase_ == 15) { return (SC2APIProtocol.Sc2Api.ResponseSaveReplay) response_; } return SC2APIProtocol.Sc2Api.ResponseSaveReplay.getDefaultInstance(); } } /** * .SC2APIProtocol.ResponseSaveReplay save_replay = 15; */ private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.ResponseSaveReplay, SC2APIProtocol.Sc2Api.ResponseSaveReplay.Builder, SC2APIProtocol.Sc2Api.ResponseSaveReplayOrBuilder> getSaveReplayFieldBuilder() { if (saveReplayBuilder_ == null) { if (!(responseCase_ == 15)) { response_ = SC2APIProtocol.Sc2Api.ResponseSaveReplay.getDefaultInstance(); } saveReplayBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.ResponseSaveReplay, SC2APIProtocol.Sc2Api.ResponseSaveReplay.Builder, SC2APIProtocol.Sc2Api.ResponseSaveReplayOrBuilder>( (SC2APIProtocol.Sc2Api.ResponseSaveReplay) response_, getParentForChildren(), isClean()); response_ = null; } responseCase_ = 15; onChanged();; return saveReplayBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.ResponseReplayInfo, SC2APIProtocol.Sc2Api.ResponseReplayInfo.Builder, SC2APIProtocol.Sc2Api.ResponseReplayInfoOrBuilder> replayInfoBuilder_; /** * .SC2APIProtocol.ResponseReplayInfo replay_info = 16; * @return Whether the replayInfo field is set. */ @java.lang.Override public boolean hasReplayInfo() { return responseCase_ == 16; } /** * .SC2APIProtocol.ResponseReplayInfo replay_info = 16; * @return The replayInfo. */ @java.lang.Override public SC2APIProtocol.Sc2Api.ResponseReplayInfo getReplayInfo() { if (replayInfoBuilder_ == null) { if (responseCase_ == 16) { return (SC2APIProtocol.Sc2Api.ResponseReplayInfo) response_; } return SC2APIProtocol.Sc2Api.ResponseReplayInfo.getDefaultInstance(); } else { if (responseCase_ == 16) { return replayInfoBuilder_.getMessage(); } return SC2APIProtocol.Sc2Api.ResponseReplayInfo.getDefaultInstance(); } } /** * .SC2APIProtocol.ResponseReplayInfo replay_info = 16; */ public Builder setReplayInfo(SC2APIProtocol.Sc2Api.ResponseReplayInfo value) { if (replayInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } response_ = value; onChanged(); } else { replayInfoBuilder_.setMessage(value); } responseCase_ = 16; return this; } /** * .SC2APIProtocol.ResponseReplayInfo replay_info = 16; */ public Builder setReplayInfo( SC2APIProtocol.Sc2Api.ResponseReplayInfo.Builder builderForValue) { if (replayInfoBuilder_ == null) { response_ = builderForValue.build(); onChanged(); } else { replayInfoBuilder_.setMessage(builderForValue.build()); } responseCase_ = 16; return this; } /** * .SC2APIProtocol.ResponseReplayInfo replay_info = 16; */ public Builder mergeReplayInfo(SC2APIProtocol.Sc2Api.ResponseReplayInfo value) { if (replayInfoBuilder_ == null) { if (responseCase_ == 16 && response_ != SC2APIProtocol.Sc2Api.ResponseReplayInfo.getDefaultInstance()) { response_ = SC2APIProtocol.Sc2Api.ResponseReplayInfo.newBuilder((SC2APIProtocol.Sc2Api.ResponseReplayInfo) response_) .mergeFrom(value).buildPartial(); } else { response_ = value; } onChanged(); } else { if (responseCase_ == 16) { replayInfoBuilder_.mergeFrom(value); } else { replayInfoBuilder_.setMessage(value); } } responseCase_ = 16; return this; } /** * .SC2APIProtocol.ResponseReplayInfo replay_info = 16; */ public Builder clearReplayInfo() { if (replayInfoBuilder_ == null) { if (responseCase_ == 16) { responseCase_ = 0; response_ = null; onChanged(); } } else { if (responseCase_ == 16) { responseCase_ = 0; response_ = null; } replayInfoBuilder_.clear(); } return this; } /** * .SC2APIProtocol.ResponseReplayInfo replay_info = 16; */ public SC2APIProtocol.Sc2Api.ResponseReplayInfo.Builder getReplayInfoBuilder() { return getReplayInfoFieldBuilder().getBuilder(); } /** * .SC2APIProtocol.ResponseReplayInfo replay_info = 16; */ @java.lang.Override public SC2APIProtocol.Sc2Api.ResponseReplayInfoOrBuilder getReplayInfoOrBuilder() { if ((responseCase_ == 16) && (replayInfoBuilder_ != null)) { return replayInfoBuilder_.getMessageOrBuilder(); } else { if (responseCase_ == 16) { return (SC2APIProtocol.Sc2Api.ResponseReplayInfo) response_; } return SC2APIProtocol.Sc2Api.ResponseReplayInfo.getDefaultInstance(); } } /** * .SC2APIProtocol.ResponseReplayInfo replay_info = 16; */ private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.ResponseReplayInfo, SC2APIProtocol.Sc2Api.ResponseReplayInfo.Builder, SC2APIProtocol.Sc2Api.ResponseReplayInfoOrBuilder> getReplayInfoFieldBuilder() { if (replayInfoBuilder_ == null) { if (!(responseCase_ == 16)) { response_ = SC2APIProtocol.Sc2Api.ResponseReplayInfo.getDefaultInstance(); } replayInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.ResponseReplayInfo, SC2APIProtocol.Sc2Api.ResponseReplayInfo.Builder, SC2APIProtocol.Sc2Api.ResponseReplayInfoOrBuilder>( (SC2APIProtocol.Sc2Api.ResponseReplayInfo) response_, getParentForChildren(), isClean()); response_ = null; } responseCase_ = 16; onChanged();; return replayInfoBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.ResponseAvailableMaps, SC2APIProtocol.Sc2Api.ResponseAvailableMaps.Builder, SC2APIProtocol.Sc2Api.ResponseAvailableMapsOrBuilder> availableMapsBuilder_; /** * .SC2APIProtocol.ResponseAvailableMaps available_maps = 17; * @return Whether the availableMaps field is set. */ @java.lang.Override public boolean hasAvailableMaps() { return responseCase_ == 17; } /** * .SC2APIProtocol.ResponseAvailableMaps available_maps = 17; * @return The availableMaps. */ @java.lang.Override public SC2APIProtocol.Sc2Api.ResponseAvailableMaps getAvailableMaps() { if (availableMapsBuilder_ == null) { if (responseCase_ == 17) { return (SC2APIProtocol.Sc2Api.ResponseAvailableMaps) response_; } return SC2APIProtocol.Sc2Api.ResponseAvailableMaps.getDefaultInstance(); } else { if (responseCase_ == 17) { return availableMapsBuilder_.getMessage(); } return SC2APIProtocol.Sc2Api.ResponseAvailableMaps.getDefaultInstance(); } } /** * .SC2APIProtocol.ResponseAvailableMaps available_maps = 17; */ public Builder setAvailableMaps(SC2APIProtocol.Sc2Api.ResponseAvailableMaps value) { if (availableMapsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } response_ = value; onChanged(); } else { availableMapsBuilder_.setMessage(value); } responseCase_ = 17; return this; } /** * .SC2APIProtocol.ResponseAvailableMaps available_maps = 17; */ public Builder setAvailableMaps( SC2APIProtocol.Sc2Api.ResponseAvailableMaps.Builder builderForValue) { if (availableMapsBuilder_ == null) { response_ = builderForValue.build(); onChanged(); } else { availableMapsBuilder_.setMessage(builderForValue.build()); } responseCase_ = 17; return this; } /** * .SC2APIProtocol.ResponseAvailableMaps available_maps = 17; */ public Builder mergeAvailableMaps(SC2APIProtocol.Sc2Api.ResponseAvailableMaps value) { if (availableMapsBuilder_ == null) { if (responseCase_ == 17 && response_ != SC2APIProtocol.Sc2Api.ResponseAvailableMaps.getDefaultInstance()) { response_ = SC2APIProtocol.Sc2Api.ResponseAvailableMaps.newBuilder((SC2APIProtocol.Sc2Api.ResponseAvailableMaps) response_) .mergeFrom(value).buildPartial(); } else { response_ = value; } onChanged(); } else { if (responseCase_ == 17) { availableMapsBuilder_.mergeFrom(value); } else { availableMapsBuilder_.setMessage(value); } } responseCase_ = 17; return this; } /** * .SC2APIProtocol.ResponseAvailableMaps available_maps = 17; */ public Builder clearAvailableMaps() { if (availableMapsBuilder_ == null) { if (responseCase_ == 17) { responseCase_ = 0; response_ = null; onChanged(); } } else { if (responseCase_ == 17) { responseCase_ = 0; response_ = null; } availableMapsBuilder_.clear(); } return this; } /** * .SC2APIProtocol.ResponseAvailableMaps available_maps = 17; */ public SC2APIProtocol.Sc2Api.ResponseAvailableMaps.Builder getAvailableMapsBuilder() { return getAvailableMapsFieldBuilder().getBuilder(); } /** * .SC2APIProtocol.ResponseAvailableMaps available_maps = 17; */ @java.lang.Override public SC2APIProtocol.Sc2Api.ResponseAvailableMapsOrBuilder getAvailableMapsOrBuilder() { if ((responseCase_ == 17) && (availableMapsBuilder_ != null)) { return availableMapsBuilder_.getMessageOrBuilder(); } else { if (responseCase_ == 17) { return (SC2APIProtocol.Sc2Api.ResponseAvailableMaps) response_; } return SC2APIProtocol.Sc2Api.ResponseAvailableMaps.getDefaultInstance(); } } /** * .SC2APIProtocol.ResponseAvailableMaps available_maps = 17; */ private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.ResponseAvailableMaps, SC2APIProtocol.Sc2Api.ResponseAvailableMaps.Builder, SC2APIProtocol.Sc2Api.ResponseAvailableMapsOrBuilder> getAvailableMapsFieldBuilder() { if (availableMapsBuilder_ == null) { if (!(responseCase_ == 17)) { response_ = SC2APIProtocol.Sc2Api.ResponseAvailableMaps.getDefaultInstance(); } availableMapsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.ResponseAvailableMaps, SC2APIProtocol.Sc2Api.ResponseAvailableMaps.Builder, SC2APIProtocol.Sc2Api.ResponseAvailableMapsOrBuilder>( (SC2APIProtocol.Sc2Api.ResponseAvailableMaps) response_, getParentForChildren(), isClean()); response_ = null; } responseCase_ = 17; onChanged();; return availableMapsBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.ResponseSaveMap, SC2APIProtocol.Sc2Api.ResponseSaveMap.Builder, SC2APIProtocol.Sc2Api.ResponseSaveMapOrBuilder> saveMapBuilder_; /** * .SC2APIProtocol.ResponseSaveMap save_map = 18; * @return Whether the saveMap field is set. */ @java.lang.Override public boolean hasSaveMap() { return responseCase_ == 18; } /** * .SC2APIProtocol.ResponseSaveMap save_map = 18; * @return The saveMap. */ @java.lang.Override public SC2APIProtocol.Sc2Api.ResponseSaveMap getSaveMap() { if (saveMapBuilder_ == null) { if (responseCase_ == 18) { return (SC2APIProtocol.Sc2Api.ResponseSaveMap) response_; } return SC2APIProtocol.Sc2Api.ResponseSaveMap.getDefaultInstance(); } else { if (responseCase_ == 18) { return saveMapBuilder_.getMessage(); } return SC2APIProtocol.Sc2Api.ResponseSaveMap.getDefaultInstance(); } } /** * .SC2APIProtocol.ResponseSaveMap save_map = 18; */ public Builder setSaveMap(SC2APIProtocol.Sc2Api.ResponseSaveMap value) { if (saveMapBuilder_ == null) { if (value == null) { throw new NullPointerException(); } response_ = value; onChanged(); } else { saveMapBuilder_.setMessage(value); } responseCase_ = 18; return this; } /** * .SC2APIProtocol.ResponseSaveMap save_map = 18; */ public Builder setSaveMap( SC2APIProtocol.Sc2Api.ResponseSaveMap.Builder builderForValue) { if (saveMapBuilder_ == null) { response_ = builderForValue.build(); onChanged(); } else { saveMapBuilder_.setMessage(builderForValue.build()); } responseCase_ = 18; return this; } /** * .SC2APIProtocol.ResponseSaveMap save_map = 18; */ public Builder mergeSaveMap(SC2APIProtocol.Sc2Api.ResponseSaveMap value) { if (saveMapBuilder_ == null) { if (responseCase_ == 18 && response_ != SC2APIProtocol.Sc2Api.ResponseSaveMap.getDefaultInstance()) { response_ = SC2APIProtocol.Sc2Api.ResponseSaveMap.newBuilder((SC2APIProtocol.Sc2Api.ResponseSaveMap) response_) .mergeFrom(value).buildPartial(); } else { response_ = value; } onChanged(); } else { if (responseCase_ == 18) { saveMapBuilder_.mergeFrom(value); } else { saveMapBuilder_.setMessage(value); } } responseCase_ = 18; return this; } /** * .SC2APIProtocol.ResponseSaveMap save_map = 18; */ public Builder clearSaveMap() { if (saveMapBuilder_ == null) { if (responseCase_ == 18) { responseCase_ = 0; response_ = null; onChanged(); } } else { if (responseCase_ == 18) { responseCase_ = 0; response_ = null; } saveMapBuilder_.clear(); } return this; } /** * .SC2APIProtocol.ResponseSaveMap save_map = 18; */ public SC2APIProtocol.Sc2Api.ResponseSaveMap.Builder getSaveMapBuilder() { return getSaveMapFieldBuilder().getBuilder(); } /** * .SC2APIProtocol.ResponseSaveMap save_map = 18; */ @java.lang.Override public SC2APIProtocol.Sc2Api.ResponseSaveMapOrBuilder getSaveMapOrBuilder() { if ((responseCase_ == 18) && (saveMapBuilder_ != null)) { return saveMapBuilder_.getMessageOrBuilder(); } else { if (responseCase_ == 18) { return (SC2APIProtocol.Sc2Api.ResponseSaveMap) response_; } return SC2APIProtocol.Sc2Api.ResponseSaveMap.getDefaultInstance(); } } /** * .SC2APIProtocol.ResponseSaveMap save_map = 18; */ private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.ResponseSaveMap, SC2APIProtocol.Sc2Api.ResponseSaveMap.Builder, SC2APIProtocol.Sc2Api.ResponseSaveMapOrBuilder> getSaveMapFieldBuilder() { if (saveMapBuilder_ == null) { if (!(responseCase_ == 18)) { response_ = SC2APIProtocol.Sc2Api.ResponseSaveMap.getDefaultInstance(); } saveMapBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.ResponseSaveMap, SC2APIProtocol.Sc2Api.ResponseSaveMap.Builder, SC2APIProtocol.Sc2Api.ResponseSaveMapOrBuilder>( (SC2APIProtocol.Sc2Api.ResponseSaveMap) response_, getParentForChildren(), isClean()); response_ = null; } responseCase_ = 18; onChanged();; return saveMapBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.ResponseMapCommand, SC2APIProtocol.Sc2Api.ResponseMapCommand.Builder, SC2APIProtocol.Sc2Api.ResponseMapCommandOrBuilder> mapCommandBuilder_; /** * .SC2APIProtocol.ResponseMapCommand map_command = 22; * @return Whether the mapCommand field is set. */ @java.lang.Override public boolean hasMapCommand() { return responseCase_ == 22; } /** * .SC2APIProtocol.ResponseMapCommand map_command = 22; * @return The mapCommand. */ @java.lang.Override public SC2APIProtocol.Sc2Api.ResponseMapCommand getMapCommand() { if (mapCommandBuilder_ == null) { if (responseCase_ == 22) { return (SC2APIProtocol.Sc2Api.ResponseMapCommand) response_; } return SC2APIProtocol.Sc2Api.ResponseMapCommand.getDefaultInstance(); } else { if (responseCase_ == 22) { return mapCommandBuilder_.getMessage(); } return SC2APIProtocol.Sc2Api.ResponseMapCommand.getDefaultInstance(); } } /** * .SC2APIProtocol.ResponseMapCommand map_command = 22; */ public Builder setMapCommand(SC2APIProtocol.Sc2Api.ResponseMapCommand value) { if (mapCommandBuilder_ == null) { if (value == null) { throw new NullPointerException(); } response_ = value; onChanged(); } else { mapCommandBuilder_.setMessage(value); } responseCase_ = 22; return this; } /** * .SC2APIProtocol.ResponseMapCommand map_command = 22; */ public Builder setMapCommand( SC2APIProtocol.Sc2Api.ResponseMapCommand.Builder builderForValue) { if (mapCommandBuilder_ == null) { response_ = builderForValue.build(); onChanged(); } else { mapCommandBuilder_.setMessage(builderForValue.build()); } responseCase_ = 22; return this; } /** * .SC2APIProtocol.ResponseMapCommand map_command = 22; */ public Builder mergeMapCommand(SC2APIProtocol.Sc2Api.ResponseMapCommand value) { if (mapCommandBuilder_ == null) { if (responseCase_ == 22 && response_ != SC2APIProtocol.Sc2Api.ResponseMapCommand.getDefaultInstance()) { response_ = SC2APIProtocol.Sc2Api.ResponseMapCommand.newBuilder((SC2APIProtocol.Sc2Api.ResponseMapCommand) response_) .mergeFrom(value).buildPartial(); } else { response_ = value; } onChanged(); } else { if (responseCase_ == 22) { mapCommandBuilder_.mergeFrom(value); } else { mapCommandBuilder_.setMessage(value); } } responseCase_ = 22; return this; } /** * .SC2APIProtocol.ResponseMapCommand map_command = 22; */ public Builder clearMapCommand() { if (mapCommandBuilder_ == null) { if (responseCase_ == 22) { responseCase_ = 0; response_ = null; onChanged(); } } else { if (responseCase_ == 22) { responseCase_ = 0; response_ = null; } mapCommandBuilder_.clear(); } return this; } /** * .SC2APIProtocol.ResponseMapCommand map_command = 22; */ public SC2APIProtocol.Sc2Api.ResponseMapCommand.Builder getMapCommandBuilder() { return getMapCommandFieldBuilder().getBuilder(); } /** * .SC2APIProtocol.ResponseMapCommand map_command = 22; */ @java.lang.Override public SC2APIProtocol.Sc2Api.ResponseMapCommandOrBuilder getMapCommandOrBuilder() { if ((responseCase_ == 22) && (mapCommandBuilder_ != null)) { return mapCommandBuilder_.getMessageOrBuilder(); } else { if (responseCase_ == 22) { return (SC2APIProtocol.Sc2Api.ResponseMapCommand) response_; } return SC2APIProtocol.Sc2Api.ResponseMapCommand.getDefaultInstance(); } } /** * .SC2APIProtocol.ResponseMapCommand map_command = 22; */ private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.ResponseMapCommand, SC2APIProtocol.Sc2Api.ResponseMapCommand.Builder, SC2APIProtocol.Sc2Api.ResponseMapCommandOrBuilder> getMapCommandFieldBuilder() { if (mapCommandBuilder_ == null) { if (!(responseCase_ == 22)) { response_ = SC2APIProtocol.Sc2Api.ResponseMapCommand.getDefaultInstance(); } mapCommandBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.ResponseMapCommand, SC2APIProtocol.Sc2Api.ResponseMapCommand.Builder, SC2APIProtocol.Sc2Api.ResponseMapCommandOrBuilder>( (SC2APIProtocol.Sc2Api.ResponseMapCommand) response_, getParentForChildren(), isClean()); response_ = null; } responseCase_ = 22; onChanged();; return mapCommandBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.ResponsePing, SC2APIProtocol.Sc2Api.ResponsePing.Builder, SC2APIProtocol.Sc2Api.ResponsePingOrBuilder> pingBuilder_; /** *
       * Debugging
       * 
* * .SC2APIProtocol.ResponsePing ping = 19; * @return Whether the ping field is set. */ @java.lang.Override public boolean hasPing() { return responseCase_ == 19; } /** *
       * Debugging
       * 
* * .SC2APIProtocol.ResponsePing ping = 19; * @return The ping. */ @java.lang.Override public SC2APIProtocol.Sc2Api.ResponsePing getPing() { if (pingBuilder_ == null) { if (responseCase_ == 19) { return (SC2APIProtocol.Sc2Api.ResponsePing) response_; } return SC2APIProtocol.Sc2Api.ResponsePing.getDefaultInstance(); } else { if (responseCase_ == 19) { return pingBuilder_.getMessage(); } return SC2APIProtocol.Sc2Api.ResponsePing.getDefaultInstance(); } } /** *
       * Debugging
       * 
* * .SC2APIProtocol.ResponsePing ping = 19; */ public Builder setPing(SC2APIProtocol.Sc2Api.ResponsePing value) { if (pingBuilder_ == null) { if (value == null) { throw new NullPointerException(); } response_ = value; onChanged(); } else { pingBuilder_.setMessage(value); } responseCase_ = 19; return this; } /** *
       * Debugging
       * 
* * .SC2APIProtocol.ResponsePing ping = 19; */ public Builder setPing( SC2APIProtocol.Sc2Api.ResponsePing.Builder builderForValue) { if (pingBuilder_ == null) { response_ = builderForValue.build(); onChanged(); } else { pingBuilder_.setMessage(builderForValue.build()); } responseCase_ = 19; return this; } /** *
       * Debugging
       * 
* * .SC2APIProtocol.ResponsePing ping = 19; */ public Builder mergePing(SC2APIProtocol.Sc2Api.ResponsePing value) { if (pingBuilder_ == null) { if (responseCase_ == 19 && response_ != SC2APIProtocol.Sc2Api.ResponsePing.getDefaultInstance()) { response_ = SC2APIProtocol.Sc2Api.ResponsePing.newBuilder((SC2APIProtocol.Sc2Api.ResponsePing) response_) .mergeFrom(value).buildPartial(); } else { response_ = value; } onChanged(); } else { if (responseCase_ == 19) { pingBuilder_.mergeFrom(value); } else { pingBuilder_.setMessage(value); } } responseCase_ = 19; return this; } /** *
       * Debugging
       * 
* * .SC2APIProtocol.ResponsePing ping = 19; */ public Builder clearPing() { if (pingBuilder_ == null) { if (responseCase_ == 19) { responseCase_ = 0; response_ = null; onChanged(); } } else { if (responseCase_ == 19) { responseCase_ = 0; response_ = null; } pingBuilder_.clear(); } return this; } /** *
       * Debugging
       * 
* * .SC2APIProtocol.ResponsePing ping = 19; */ public SC2APIProtocol.Sc2Api.ResponsePing.Builder getPingBuilder() { return getPingFieldBuilder().getBuilder(); } /** *
       * Debugging
       * 
* * .SC2APIProtocol.ResponsePing ping = 19; */ @java.lang.Override public SC2APIProtocol.Sc2Api.ResponsePingOrBuilder getPingOrBuilder() { if ((responseCase_ == 19) && (pingBuilder_ != null)) { return pingBuilder_.getMessageOrBuilder(); } else { if (responseCase_ == 19) { return (SC2APIProtocol.Sc2Api.ResponsePing) response_; } return SC2APIProtocol.Sc2Api.ResponsePing.getDefaultInstance(); } } /** *
       * Debugging
       * 
* * .SC2APIProtocol.ResponsePing ping = 19; */ private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.ResponsePing, SC2APIProtocol.Sc2Api.ResponsePing.Builder, SC2APIProtocol.Sc2Api.ResponsePingOrBuilder> getPingFieldBuilder() { if (pingBuilder_ == null) { if (!(responseCase_ == 19)) { response_ = SC2APIProtocol.Sc2Api.ResponsePing.getDefaultInstance(); } pingBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.ResponsePing, SC2APIProtocol.Sc2Api.ResponsePing.Builder, SC2APIProtocol.Sc2Api.ResponsePingOrBuilder>( (SC2APIProtocol.Sc2Api.ResponsePing) response_, getParentForChildren(), isClean()); response_ = null; } responseCase_ = 19; onChanged();; return pingBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.ResponseDebug, SC2APIProtocol.Sc2Api.ResponseDebug.Builder, SC2APIProtocol.Sc2Api.ResponseDebugOrBuilder> debugBuilder_; /** * .SC2APIProtocol.ResponseDebug debug = 20; * @return Whether the debug field is set. */ @java.lang.Override public boolean hasDebug() { return responseCase_ == 20; } /** * .SC2APIProtocol.ResponseDebug debug = 20; * @return The debug. */ @java.lang.Override public SC2APIProtocol.Sc2Api.ResponseDebug getDebug() { if (debugBuilder_ == null) { if (responseCase_ == 20) { return (SC2APIProtocol.Sc2Api.ResponseDebug) response_; } return SC2APIProtocol.Sc2Api.ResponseDebug.getDefaultInstance(); } else { if (responseCase_ == 20) { return debugBuilder_.getMessage(); } return SC2APIProtocol.Sc2Api.ResponseDebug.getDefaultInstance(); } } /** * .SC2APIProtocol.ResponseDebug debug = 20; */ public Builder setDebug(SC2APIProtocol.Sc2Api.ResponseDebug value) { if (debugBuilder_ == null) { if (value == null) { throw new NullPointerException(); } response_ = value; onChanged(); } else { debugBuilder_.setMessage(value); } responseCase_ = 20; return this; } /** * .SC2APIProtocol.ResponseDebug debug = 20; */ public Builder setDebug( SC2APIProtocol.Sc2Api.ResponseDebug.Builder builderForValue) { if (debugBuilder_ == null) { response_ = builderForValue.build(); onChanged(); } else { debugBuilder_.setMessage(builderForValue.build()); } responseCase_ = 20; return this; } /** * .SC2APIProtocol.ResponseDebug debug = 20; */ public Builder mergeDebug(SC2APIProtocol.Sc2Api.ResponseDebug value) { if (debugBuilder_ == null) { if (responseCase_ == 20 && response_ != SC2APIProtocol.Sc2Api.ResponseDebug.getDefaultInstance()) { response_ = SC2APIProtocol.Sc2Api.ResponseDebug.newBuilder((SC2APIProtocol.Sc2Api.ResponseDebug) response_) .mergeFrom(value).buildPartial(); } else { response_ = value; } onChanged(); } else { if (responseCase_ == 20) { debugBuilder_.mergeFrom(value); } else { debugBuilder_.setMessage(value); } } responseCase_ = 20; return this; } /** * .SC2APIProtocol.ResponseDebug debug = 20; */ public Builder clearDebug() { if (debugBuilder_ == null) { if (responseCase_ == 20) { responseCase_ = 0; response_ = null; onChanged(); } } else { if (responseCase_ == 20) { responseCase_ = 0; response_ = null; } debugBuilder_.clear(); } return this; } /** * .SC2APIProtocol.ResponseDebug debug = 20; */ public SC2APIProtocol.Sc2Api.ResponseDebug.Builder getDebugBuilder() { return getDebugFieldBuilder().getBuilder(); } /** * .SC2APIProtocol.ResponseDebug debug = 20; */ @java.lang.Override public SC2APIProtocol.Sc2Api.ResponseDebugOrBuilder getDebugOrBuilder() { if ((responseCase_ == 20) && (debugBuilder_ != null)) { return debugBuilder_.getMessageOrBuilder(); } else { if (responseCase_ == 20) { return (SC2APIProtocol.Sc2Api.ResponseDebug) response_; } return SC2APIProtocol.Sc2Api.ResponseDebug.getDefaultInstance(); } } /** * .SC2APIProtocol.ResponseDebug debug = 20; */ private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.ResponseDebug, SC2APIProtocol.Sc2Api.ResponseDebug.Builder, SC2APIProtocol.Sc2Api.ResponseDebugOrBuilder> getDebugFieldBuilder() { if (debugBuilder_ == null) { if (!(responseCase_ == 20)) { response_ = SC2APIProtocol.Sc2Api.ResponseDebug.getDefaultInstance(); } debugBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.ResponseDebug, SC2APIProtocol.Sc2Api.ResponseDebug.Builder, SC2APIProtocol.Sc2Api.ResponseDebugOrBuilder>( (SC2APIProtocol.Sc2Api.ResponseDebug) response_, getParentForChildren(), isClean()); response_ = null; } responseCase_ = 20; onChanged();; return debugBuilder_; } private int id_ ; /** * optional uint32 id = 97; * @return Whether the id field is set. */ @java.lang.Override public boolean hasId() { return ((bitField0_ & 0x00400000) != 0); } /** * optional uint32 id = 97; * @return The id. */ @java.lang.Override public int getId() { return id_; } /** * optional uint32 id = 97; * @param value The id to set. * @return This builder for chaining. */ public Builder setId(int value) { bitField0_ |= 0x00400000; id_ = value; onChanged(); return this; } /** * optional uint32 id = 97; * @return This builder for chaining. */ public Builder clearId() { bitField0_ = (bitField0_ & ~0x00400000); id_ = 0; onChanged(); return this; } private com.google.protobuf.LazyStringList error_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureErrorIsMutable() { if (!((bitField0_ & 0x00800000) != 0)) { error_ = new com.google.protobuf.LazyStringArrayList(error_); bitField0_ |= 0x00800000; } } /** *
       * If command is missing, this will contain the error. Otherwise this will contain any warnings.
       * 
* * repeated string error = 98; * @return A list containing the error. */ public com.google.protobuf.ProtocolStringList getErrorList() { return error_.getUnmodifiableView(); } /** *
       * If command is missing, this will contain the error. Otherwise this will contain any warnings.
       * 
* * repeated string error = 98; * @return The count of error. */ public int getErrorCount() { return error_.size(); } /** *
       * If command is missing, this will contain the error. Otherwise this will contain any warnings.
       * 
* * repeated string error = 98; * @param index The index of the element to return. * @return The error at the given index. */ public java.lang.String getError(int index) { return error_.get(index); } /** *
       * If command is missing, this will contain the error. Otherwise this will contain any warnings.
       * 
* * repeated string error = 98; * @param index The index of the value to return. * @return The bytes of the error at the given index. */ public com.google.protobuf.ByteString getErrorBytes(int index) { return error_.getByteString(index); } /** *
       * If command is missing, this will contain the error. Otherwise this will contain any warnings.
       * 
* * repeated string error = 98; * @param index The index to set the value at. * @param value The error to set. * @return This builder for chaining. */ public Builder setError( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureErrorIsMutable(); error_.set(index, value); onChanged(); return this; } /** *
       * If command is missing, this will contain the error. Otherwise this will contain any warnings.
       * 
* * repeated string error = 98; * @param value The error to add. * @return This builder for chaining. */ public Builder addError( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureErrorIsMutable(); error_.add(value); onChanged(); return this; } /** *
       * If command is missing, this will contain the error. Otherwise this will contain any warnings.
       * 
* * repeated string error = 98; * @param values The error to add. * @return This builder for chaining. */ public Builder addAllError( java.lang.Iterable values) { ensureErrorIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, error_); onChanged(); return this; } /** *
       * If command is missing, this will contain the error. Otherwise this will contain any warnings.
       * 
* * repeated string error = 98; * @return This builder for chaining. */ public Builder clearError() { error_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00800000); onChanged(); return this; } /** *
       * If command is missing, this will contain the error. Otherwise this will contain any warnings.
       * 
* * repeated string error = 98; * @param value The bytes of the error to add. * @return This builder for chaining. */ public Builder addErrorBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureErrorIsMutable(); error_.add(value); onChanged(); return this; } private int status_ = 1; /** *
       * Should be sent back with all responses.
       * 
* * optional .SC2APIProtocol.Status status = 99; * @return Whether the status field is set. */ @java.lang.Override public boolean hasStatus() { return ((bitField0_ & 0x01000000) != 0); } /** *
       * Should be sent back with all responses.
       * 
* * optional .SC2APIProtocol.Status status = 99; * @return The status. */ @java.lang.Override public SC2APIProtocol.Sc2Api.Status getStatus() { @SuppressWarnings("deprecation") SC2APIProtocol.Sc2Api.Status result = SC2APIProtocol.Sc2Api.Status.valueOf(status_); return result == null ? SC2APIProtocol.Sc2Api.Status.launched : result; } /** *
       * Should be sent back with all responses.
       * 
* * optional .SC2APIProtocol.Status status = 99; * @param value The status to set. * @return This builder for chaining. */ public Builder setStatus(SC2APIProtocol.Sc2Api.Status value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x01000000; status_ = value.getNumber(); onChanged(); return this; } /** *
       * Should be sent back with all responses.
       * 
* * optional .SC2APIProtocol.Status status = 99; * @return This builder for chaining. */ public Builder clearStatus() { bitField0_ = (bitField0_ & ~0x01000000); status_ = 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.Response) } // @@protoc_insertion_point(class_scope:SC2APIProtocol.Response) private static final SC2APIProtocol.Sc2Api.Response DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new SC2APIProtocol.Sc2Api.Response(); } public static SC2APIProtocol.Sc2Api.Response getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Response 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.Sc2Api.Response getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RequestCreateGameOrBuilder extends // @@protoc_insertion_point(interface_extends:SC2APIProtocol.RequestCreateGame) com.google.protobuf.MessageOrBuilder { /** *
     * Local .SC2Map file
     * 
* * .SC2APIProtocol.LocalMap local_map = 1; * @return Whether the localMap field is set. */ boolean hasLocalMap(); /** *
     * Local .SC2Map file
     * 
* * .SC2APIProtocol.LocalMap local_map = 1; * @return The localMap. */ SC2APIProtocol.Sc2Api.LocalMap getLocalMap(); /** *
     * Local .SC2Map file
     * 
* * .SC2APIProtocol.LocalMap local_map = 1; */ SC2APIProtocol.Sc2Api.LocalMapOrBuilder getLocalMapOrBuilder(); /** *
     * Map published to BattleNet
     * 
* * string battlenet_map_name = 2; * @return Whether the battlenetMapName field is set. */ boolean hasBattlenetMapName(); /** *
     * Map published to BattleNet
     * 
* * string battlenet_map_name = 2; * @return The battlenetMapName. */ java.lang.String getBattlenetMapName(); /** *
     * Map published to BattleNet
     * 
* * string battlenet_map_name = 2; * @return The bytes for battlenetMapName. */ com.google.protobuf.ByteString getBattlenetMapNameBytes(); /** * repeated .SC2APIProtocol.PlayerSetup player_setup = 3; */ java.util.List getPlayerSetupList(); /** * repeated .SC2APIProtocol.PlayerSetup player_setup = 3; */ SC2APIProtocol.Sc2Api.PlayerSetup getPlayerSetup(int index); /** * repeated .SC2APIProtocol.PlayerSetup player_setup = 3; */ int getPlayerSetupCount(); /** * repeated .SC2APIProtocol.PlayerSetup player_setup = 3; */ java.util.List getPlayerSetupOrBuilderList(); /** * repeated .SC2APIProtocol.PlayerSetup player_setup = 3; */ SC2APIProtocol.Sc2Api.PlayerSetupOrBuilder getPlayerSetupOrBuilder( int index); /** * optional bool disable_fog = 4; * @return Whether the disableFog field is set. */ boolean hasDisableFog(); /** * optional bool disable_fog = 4; * @return The disableFog. */ boolean getDisableFog(); /** *
     * Sets the pseudo-random seed for the game.
     * 
* * optional uint32 random_seed = 5; * @return Whether the randomSeed field is set. */ boolean hasRandomSeed(); /** *
     * Sets the pseudo-random seed for the game.
     * 
* * optional uint32 random_seed = 5; * @return The randomSeed. */ int getRandomSeed(); /** *
     * If set, the game plays in real time.
     * 
* * optional bool realtime = 6; * @return Whether the realtime field is set. */ boolean hasRealtime(); /** *
     * If set, the game plays in real time.
     * 
* * optional bool realtime = 6; * @return The realtime. */ boolean getRealtime(); public SC2APIProtocol.Sc2Api.RequestCreateGame.MapCase getMapCase(); } /** *
   *-----------------------------------------------------------------------------
   * If successful, puts the game into the status: init_game.
   * The next expected request should be RequestJoinGame. Can also quit (exit).
   * 
* * Protobuf type {@code SC2APIProtocol.RequestCreateGame} */ public static final class RequestCreateGame extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:SC2APIProtocol.RequestCreateGame) RequestCreateGameOrBuilder { private static final long serialVersionUID = 0L; // Use RequestCreateGame.newBuilder() to construct. private RequestCreateGame(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RequestCreateGame() { playerSetup_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new RequestCreateGame(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_RequestCreateGame_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_RequestCreateGame_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Sc2Api.RequestCreateGame.class, SC2APIProtocol.Sc2Api.RequestCreateGame.Builder.class); } private int bitField0_; private int mapCase_ = 0; private java.lang.Object map_; public enum MapCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { LOCAL_MAP(1), BATTLENET_MAP_NAME(2), MAP_NOT_SET(0); private final int value; private MapCase(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 MapCase valueOf(int value) { return forNumber(value); } public static MapCase forNumber(int value) { switch (value) { case 1: return LOCAL_MAP; case 2: return BATTLENET_MAP_NAME; case 0: return MAP_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public MapCase getMapCase() { return MapCase.forNumber( mapCase_); } public static final int LOCAL_MAP_FIELD_NUMBER = 1; /** *
     * Local .SC2Map file
     * 
* * .SC2APIProtocol.LocalMap local_map = 1; * @return Whether the localMap field is set. */ @java.lang.Override public boolean hasLocalMap() { return mapCase_ == 1; } /** *
     * Local .SC2Map file
     * 
* * .SC2APIProtocol.LocalMap local_map = 1; * @return The localMap. */ @java.lang.Override public SC2APIProtocol.Sc2Api.LocalMap getLocalMap() { if (mapCase_ == 1) { return (SC2APIProtocol.Sc2Api.LocalMap) map_; } return SC2APIProtocol.Sc2Api.LocalMap.getDefaultInstance(); } /** *
     * Local .SC2Map file
     * 
* * .SC2APIProtocol.LocalMap local_map = 1; */ @java.lang.Override public SC2APIProtocol.Sc2Api.LocalMapOrBuilder getLocalMapOrBuilder() { if (mapCase_ == 1) { return (SC2APIProtocol.Sc2Api.LocalMap) map_; } return SC2APIProtocol.Sc2Api.LocalMap.getDefaultInstance(); } public static final int BATTLENET_MAP_NAME_FIELD_NUMBER = 2; /** *
     * Map published to BattleNet
     * 
* * string battlenet_map_name = 2; * @return Whether the battlenetMapName field is set. */ public boolean hasBattlenetMapName() { return mapCase_ == 2; } /** *
     * Map published to BattleNet
     * 
* * string battlenet_map_name = 2; * @return The battlenetMapName. */ public java.lang.String getBattlenetMapName() { java.lang.Object ref = ""; if (mapCase_ == 2) { ref = map_; } 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() && (mapCase_ == 2)) { map_ = s; } return s; } } /** *
     * Map published to BattleNet
     * 
* * string battlenet_map_name = 2; * @return The bytes for battlenetMapName. */ public com.google.protobuf.ByteString getBattlenetMapNameBytes() { java.lang.Object ref = ""; if (mapCase_ == 2) { ref = map_; } if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (mapCase_ == 2) { map_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PLAYER_SETUP_FIELD_NUMBER = 3; private java.util.List playerSetup_; /** * repeated .SC2APIProtocol.PlayerSetup player_setup = 3; */ @java.lang.Override public java.util.List getPlayerSetupList() { return playerSetup_; } /** * repeated .SC2APIProtocol.PlayerSetup player_setup = 3; */ @java.lang.Override public java.util.List getPlayerSetupOrBuilderList() { return playerSetup_; } /** * repeated .SC2APIProtocol.PlayerSetup player_setup = 3; */ @java.lang.Override public int getPlayerSetupCount() { return playerSetup_.size(); } /** * repeated .SC2APIProtocol.PlayerSetup player_setup = 3; */ @java.lang.Override public SC2APIProtocol.Sc2Api.PlayerSetup getPlayerSetup(int index) { return playerSetup_.get(index); } /** * repeated .SC2APIProtocol.PlayerSetup player_setup = 3; */ @java.lang.Override public SC2APIProtocol.Sc2Api.PlayerSetupOrBuilder getPlayerSetupOrBuilder( int index) { return playerSetup_.get(index); } public static final int DISABLE_FOG_FIELD_NUMBER = 4; private boolean disableFog_; /** * optional bool disable_fog = 4; * @return Whether the disableFog field is set. */ @java.lang.Override public boolean hasDisableFog() { return ((bitField0_ & 0x00000004) != 0); } /** * optional bool disable_fog = 4; * @return The disableFog. */ @java.lang.Override public boolean getDisableFog() { return disableFog_; } public static final int RANDOM_SEED_FIELD_NUMBER = 5; private int randomSeed_; /** *
     * Sets the pseudo-random seed for the game.
     * 
* * optional uint32 random_seed = 5; * @return Whether the randomSeed field is set. */ @java.lang.Override public boolean hasRandomSeed() { return ((bitField0_ & 0x00000008) != 0); } /** *
     * Sets the pseudo-random seed for the game.
     * 
* * optional uint32 random_seed = 5; * @return The randomSeed. */ @java.lang.Override public int getRandomSeed() { return randomSeed_; } public static final int REALTIME_FIELD_NUMBER = 6; private boolean realtime_; /** *
     * If set, the game plays in real time.
     * 
* * optional bool realtime = 6; * @return Whether the realtime field is set. */ @java.lang.Override public boolean hasRealtime() { return ((bitField0_ & 0x00000010) != 0); } /** *
     * If set, the game plays in real time.
     * 
* * optional bool realtime = 6; * @return The realtime. */ @java.lang.Override public boolean getRealtime() { return realtime_; } 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 (mapCase_ == 1) { output.writeMessage(1, (SC2APIProtocol.Sc2Api.LocalMap) map_); } if (mapCase_ == 2) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, map_); } for (int i = 0; i < playerSetup_.size(); i++) { output.writeMessage(3, playerSetup_.get(i)); } if (((bitField0_ & 0x00000004) != 0)) { output.writeBool(4, disableFog_); } if (((bitField0_ & 0x00000008) != 0)) { output.writeUInt32(5, randomSeed_); } if (((bitField0_ & 0x00000010) != 0)) { output.writeBool(6, realtime_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (mapCase_ == 1) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, (SC2APIProtocol.Sc2Api.LocalMap) map_); } if (mapCase_ == 2) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, map_); } for (int i = 0; i < playerSetup_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, playerSetup_.get(i)); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(4, disableFog_); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(5, randomSeed_); } if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(6, realtime_); } 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.Sc2Api.RequestCreateGame)) { return super.equals(obj); } SC2APIProtocol.Sc2Api.RequestCreateGame other = (SC2APIProtocol.Sc2Api.RequestCreateGame) obj; if (!getPlayerSetupList() .equals(other.getPlayerSetupList())) return false; if (hasDisableFog() != other.hasDisableFog()) return false; if (hasDisableFog()) { if (getDisableFog() != other.getDisableFog()) return false; } if (hasRandomSeed() != other.hasRandomSeed()) return false; if (hasRandomSeed()) { if (getRandomSeed() != other.getRandomSeed()) return false; } if (hasRealtime() != other.hasRealtime()) return false; if (hasRealtime()) { if (getRealtime() != other.getRealtime()) return false; } if (!getMapCase().equals(other.getMapCase())) return false; switch (mapCase_) { case 1: if (!getLocalMap() .equals(other.getLocalMap())) return false; break; case 2: if (!getBattlenetMapName() .equals(other.getBattlenetMapName())) 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(); if (getPlayerSetupCount() > 0) { hash = (37 * hash) + PLAYER_SETUP_FIELD_NUMBER; hash = (53 * hash) + getPlayerSetupList().hashCode(); } if (hasDisableFog()) { hash = (37 * hash) + DISABLE_FOG_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getDisableFog()); } if (hasRandomSeed()) { hash = (37 * hash) + RANDOM_SEED_FIELD_NUMBER; hash = (53 * hash) + getRandomSeed(); } if (hasRealtime()) { hash = (37 * hash) + REALTIME_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getRealtime()); } switch (mapCase_) { case 1: hash = (37 * hash) + LOCAL_MAP_FIELD_NUMBER; hash = (53 * hash) + getLocalMap().hashCode(); break; case 2: hash = (37 * hash) + BATTLENET_MAP_NAME_FIELD_NUMBER; hash = (53 * hash) + getBattlenetMapName().hashCode(); break; case 0: default: } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static SC2APIProtocol.Sc2Api.RequestCreateGame parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.RequestCreateGame parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.RequestCreateGame parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.RequestCreateGame parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.RequestCreateGame parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.RequestCreateGame parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.RequestCreateGame parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.RequestCreateGame 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.Sc2Api.RequestCreateGame parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.RequestCreateGame 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.Sc2Api.RequestCreateGame parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.RequestCreateGame 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.Sc2Api.RequestCreateGame 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; } /** *
     *-----------------------------------------------------------------------------
     * If successful, puts the game into the status: init_game.
     * The next expected request should be RequestJoinGame. Can also quit (exit).
     * 
* * Protobuf type {@code SC2APIProtocol.RequestCreateGame} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:SC2APIProtocol.RequestCreateGame) SC2APIProtocol.Sc2Api.RequestCreateGameOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_RequestCreateGame_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_RequestCreateGame_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Sc2Api.RequestCreateGame.class, SC2APIProtocol.Sc2Api.RequestCreateGame.Builder.class); } // Construct using SC2APIProtocol.Sc2Api.RequestCreateGame.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); if (localMapBuilder_ != null) { localMapBuilder_.clear(); } if (playerSetupBuilder_ == null) { playerSetup_ = java.util.Collections.emptyList(); } else { playerSetup_ = null; playerSetupBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); disableFog_ = false; bitField0_ = (bitField0_ & ~0x00000008); randomSeed_ = 0; bitField0_ = (bitField0_ & ~0x00000010); realtime_ = false; bitField0_ = (bitField0_ & ~0x00000020); mapCase_ = 0; map_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_RequestCreateGame_descriptor; } @java.lang.Override public SC2APIProtocol.Sc2Api.RequestCreateGame getDefaultInstanceForType() { return SC2APIProtocol.Sc2Api.RequestCreateGame.getDefaultInstance(); } @java.lang.Override public SC2APIProtocol.Sc2Api.RequestCreateGame build() { SC2APIProtocol.Sc2Api.RequestCreateGame result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public SC2APIProtocol.Sc2Api.RequestCreateGame buildPartial() { SC2APIProtocol.Sc2Api.RequestCreateGame result = new SC2APIProtocol.Sc2Api.RequestCreateGame(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (mapCase_ == 1) { if (localMapBuilder_ == null) { result.map_ = map_; } else { result.map_ = localMapBuilder_.build(); } } if (mapCase_ == 2) { result.map_ = map_; } if (playerSetupBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0)) { playerSetup_ = java.util.Collections.unmodifiableList(playerSetup_); bitField0_ = (bitField0_ & ~0x00000004); } result.playerSetup_ = playerSetup_; } else { result.playerSetup_ = playerSetupBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { result.disableFog_ = disableFog_; to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000010) != 0)) { result.randomSeed_ = randomSeed_; to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000020) != 0)) { result.realtime_ = realtime_; to_bitField0_ |= 0x00000010; } result.bitField0_ = to_bitField0_; result.mapCase_ = mapCase_; 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.Sc2Api.RequestCreateGame) { return mergeFrom((SC2APIProtocol.Sc2Api.RequestCreateGame)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(SC2APIProtocol.Sc2Api.RequestCreateGame other) { if (other == SC2APIProtocol.Sc2Api.RequestCreateGame.getDefaultInstance()) return this; if (playerSetupBuilder_ == null) { if (!other.playerSetup_.isEmpty()) { if (playerSetup_.isEmpty()) { playerSetup_ = other.playerSetup_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensurePlayerSetupIsMutable(); playerSetup_.addAll(other.playerSetup_); } onChanged(); } } else { if (!other.playerSetup_.isEmpty()) { if (playerSetupBuilder_.isEmpty()) { playerSetupBuilder_.dispose(); playerSetupBuilder_ = null; playerSetup_ = other.playerSetup_; bitField0_ = (bitField0_ & ~0x00000004); playerSetupBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getPlayerSetupFieldBuilder() : null; } else { playerSetupBuilder_.addAllMessages(other.playerSetup_); } } } if (other.hasDisableFog()) { setDisableFog(other.getDisableFog()); } if (other.hasRandomSeed()) { setRandomSeed(other.getRandomSeed()); } if (other.hasRealtime()) { setRealtime(other.getRealtime()); } switch (other.getMapCase()) { case LOCAL_MAP: { mergeLocalMap(other.getLocalMap()); break; } case BATTLENET_MAP_NAME: { mapCase_ = 2; map_ = other.map_; onChanged(); break; } case MAP_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( getLocalMapFieldBuilder().getBuilder(), extensionRegistry); mapCase_ = 1; break; } // case 10 case 18: { com.google.protobuf.ByteString bs = input.readBytes(); mapCase_ = 2; map_ = bs; break; } // case 18 case 26: { SC2APIProtocol.Sc2Api.PlayerSetup m = input.readMessage( SC2APIProtocol.Sc2Api.PlayerSetup.PARSER, extensionRegistry); if (playerSetupBuilder_ == null) { ensurePlayerSetupIsMutable(); playerSetup_.add(m); } else { playerSetupBuilder_.addMessage(m); } break; } // case 26 case 32: { disableFog_ = input.readBool(); bitField0_ |= 0x00000008; break; } // case 32 case 40: { randomSeed_ = input.readUInt32(); bitField0_ |= 0x00000010; break; } // case 40 case 48: { realtime_ = input.readBool(); bitField0_ |= 0x00000020; break; } // case 48 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 mapCase_ = 0; private java.lang.Object map_; public MapCase getMapCase() { return MapCase.forNumber( mapCase_); } public Builder clearMap() { mapCase_ = 0; map_ = null; onChanged(); return this; } private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.LocalMap, SC2APIProtocol.Sc2Api.LocalMap.Builder, SC2APIProtocol.Sc2Api.LocalMapOrBuilder> localMapBuilder_; /** *
       * Local .SC2Map file
       * 
* * .SC2APIProtocol.LocalMap local_map = 1; * @return Whether the localMap field is set. */ @java.lang.Override public boolean hasLocalMap() { return mapCase_ == 1; } /** *
       * Local .SC2Map file
       * 
* * .SC2APIProtocol.LocalMap local_map = 1; * @return The localMap. */ @java.lang.Override public SC2APIProtocol.Sc2Api.LocalMap getLocalMap() { if (localMapBuilder_ == null) { if (mapCase_ == 1) { return (SC2APIProtocol.Sc2Api.LocalMap) map_; } return SC2APIProtocol.Sc2Api.LocalMap.getDefaultInstance(); } else { if (mapCase_ == 1) { return localMapBuilder_.getMessage(); } return SC2APIProtocol.Sc2Api.LocalMap.getDefaultInstance(); } } /** *
       * Local .SC2Map file
       * 
* * .SC2APIProtocol.LocalMap local_map = 1; */ public Builder setLocalMap(SC2APIProtocol.Sc2Api.LocalMap value) { if (localMapBuilder_ == null) { if (value == null) { throw new NullPointerException(); } map_ = value; onChanged(); } else { localMapBuilder_.setMessage(value); } mapCase_ = 1; return this; } /** *
       * Local .SC2Map file
       * 
* * .SC2APIProtocol.LocalMap local_map = 1; */ public Builder setLocalMap( SC2APIProtocol.Sc2Api.LocalMap.Builder builderForValue) { if (localMapBuilder_ == null) { map_ = builderForValue.build(); onChanged(); } else { localMapBuilder_.setMessage(builderForValue.build()); } mapCase_ = 1; return this; } /** *
       * Local .SC2Map file
       * 
* * .SC2APIProtocol.LocalMap local_map = 1; */ public Builder mergeLocalMap(SC2APIProtocol.Sc2Api.LocalMap value) { if (localMapBuilder_ == null) { if (mapCase_ == 1 && map_ != SC2APIProtocol.Sc2Api.LocalMap.getDefaultInstance()) { map_ = SC2APIProtocol.Sc2Api.LocalMap.newBuilder((SC2APIProtocol.Sc2Api.LocalMap) map_) .mergeFrom(value).buildPartial(); } else { map_ = value; } onChanged(); } else { if (mapCase_ == 1) { localMapBuilder_.mergeFrom(value); } else { localMapBuilder_.setMessage(value); } } mapCase_ = 1; return this; } /** *
       * Local .SC2Map file
       * 
* * .SC2APIProtocol.LocalMap local_map = 1; */ public Builder clearLocalMap() { if (localMapBuilder_ == null) { if (mapCase_ == 1) { mapCase_ = 0; map_ = null; onChanged(); } } else { if (mapCase_ == 1) { mapCase_ = 0; map_ = null; } localMapBuilder_.clear(); } return this; } /** *
       * Local .SC2Map file
       * 
* * .SC2APIProtocol.LocalMap local_map = 1; */ public SC2APIProtocol.Sc2Api.LocalMap.Builder getLocalMapBuilder() { return getLocalMapFieldBuilder().getBuilder(); } /** *
       * Local .SC2Map file
       * 
* * .SC2APIProtocol.LocalMap local_map = 1; */ @java.lang.Override public SC2APIProtocol.Sc2Api.LocalMapOrBuilder getLocalMapOrBuilder() { if ((mapCase_ == 1) && (localMapBuilder_ != null)) { return localMapBuilder_.getMessageOrBuilder(); } else { if (mapCase_ == 1) { return (SC2APIProtocol.Sc2Api.LocalMap) map_; } return SC2APIProtocol.Sc2Api.LocalMap.getDefaultInstance(); } } /** *
       * Local .SC2Map file
       * 
* * .SC2APIProtocol.LocalMap local_map = 1; */ private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.LocalMap, SC2APIProtocol.Sc2Api.LocalMap.Builder, SC2APIProtocol.Sc2Api.LocalMapOrBuilder> getLocalMapFieldBuilder() { if (localMapBuilder_ == null) { if (!(mapCase_ == 1)) { map_ = SC2APIProtocol.Sc2Api.LocalMap.getDefaultInstance(); } localMapBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.LocalMap, SC2APIProtocol.Sc2Api.LocalMap.Builder, SC2APIProtocol.Sc2Api.LocalMapOrBuilder>( (SC2APIProtocol.Sc2Api.LocalMap) map_, getParentForChildren(), isClean()); map_ = null; } mapCase_ = 1; onChanged();; return localMapBuilder_; } /** *
       * Map published to BattleNet
       * 
* * string battlenet_map_name = 2; * @return Whether the battlenetMapName field is set. */ @java.lang.Override public boolean hasBattlenetMapName() { return mapCase_ == 2; } /** *
       * Map published to BattleNet
       * 
* * string battlenet_map_name = 2; * @return The battlenetMapName. */ @java.lang.Override public java.lang.String getBattlenetMapName() { java.lang.Object ref = ""; if (mapCase_ == 2) { ref = map_; } if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (mapCase_ == 2) { if (bs.isValidUtf8()) { map_ = s; } } return s; } else { return (java.lang.String) ref; } } /** *
       * Map published to BattleNet
       * 
* * string battlenet_map_name = 2; * @return The bytes for battlenetMapName. */ @java.lang.Override public com.google.protobuf.ByteString getBattlenetMapNameBytes() { java.lang.Object ref = ""; if (mapCase_ == 2) { ref = map_; } if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (mapCase_ == 2) { map_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Map published to BattleNet
       * 
* * string battlenet_map_name = 2; * @param value The battlenetMapName to set. * @return This builder for chaining. */ public Builder setBattlenetMapName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } mapCase_ = 2; map_ = value; onChanged(); return this; } /** *
       * Map published to BattleNet
       * 
* * string battlenet_map_name = 2; * @return This builder for chaining. */ public Builder clearBattlenetMapName() { if (mapCase_ == 2) { mapCase_ = 0; map_ = null; onChanged(); } return this; } /** *
       * Map published to BattleNet
       * 
* * string battlenet_map_name = 2; * @param value The bytes for battlenetMapName to set. * @return This builder for chaining. */ public Builder setBattlenetMapNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } mapCase_ = 2; map_ = value; onChanged(); return this; } private java.util.List playerSetup_ = java.util.Collections.emptyList(); private void ensurePlayerSetupIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { playerSetup_ = new java.util.ArrayList(playerSetup_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilderV3< SC2APIProtocol.Sc2Api.PlayerSetup, SC2APIProtocol.Sc2Api.PlayerSetup.Builder, SC2APIProtocol.Sc2Api.PlayerSetupOrBuilder> playerSetupBuilder_; /** * repeated .SC2APIProtocol.PlayerSetup player_setup = 3; */ public java.util.List getPlayerSetupList() { if (playerSetupBuilder_ == null) { return java.util.Collections.unmodifiableList(playerSetup_); } else { return playerSetupBuilder_.getMessageList(); } } /** * repeated .SC2APIProtocol.PlayerSetup player_setup = 3; */ public int getPlayerSetupCount() { if (playerSetupBuilder_ == null) { return playerSetup_.size(); } else { return playerSetupBuilder_.getCount(); } } /** * repeated .SC2APIProtocol.PlayerSetup player_setup = 3; */ public SC2APIProtocol.Sc2Api.PlayerSetup getPlayerSetup(int index) { if (playerSetupBuilder_ == null) { return playerSetup_.get(index); } else { return playerSetupBuilder_.getMessage(index); } } /** * repeated .SC2APIProtocol.PlayerSetup player_setup = 3; */ public Builder setPlayerSetup( int index, SC2APIProtocol.Sc2Api.PlayerSetup value) { if (playerSetupBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePlayerSetupIsMutable(); playerSetup_.set(index, value); onChanged(); } else { playerSetupBuilder_.setMessage(index, value); } return this; } /** * repeated .SC2APIProtocol.PlayerSetup player_setup = 3; */ public Builder setPlayerSetup( int index, SC2APIProtocol.Sc2Api.PlayerSetup.Builder builderForValue) { if (playerSetupBuilder_ == null) { ensurePlayerSetupIsMutable(); playerSetup_.set(index, builderForValue.build()); onChanged(); } else { playerSetupBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .SC2APIProtocol.PlayerSetup player_setup = 3; */ public Builder addPlayerSetup(SC2APIProtocol.Sc2Api.PlayerSetup value) { if (playerSetupBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePlayerSetupIsMutable(); playerSetup_.add(value); onChanged(); } else { playerSetupBuilder_.addMessage(value); } return this; } /** * repeated .SC2APIProtocol.PlayerSetup player_setup = 3; */ public Builder addPlayerSetup( int index, SC2APIProtocol.Sc2Api.PlayerSetup value) { if (playerSetupBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePlayerSetupIsMutable(); playerSetup_.add(index, value); onChanged(); } else { playerSetupBuilder_.addMessage(index, value); } return this; } /** * repeated .SC2APIProtocol.PlayerSetup player_setup = 3; */ public Builder addPlayerSetup( SC2APIProtocol.Sc2Api.PlayerSetup.Builder builderForValue) { if (playerSetupBuilder_ == null) { ensurePlayerSetupIsMutable(); playerSetup_.add(builderForValue.build()); onChanged(); } else { playerSetupBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .SC2APIProtocol.PlayerSetup player_setup = 3; */ public Builder addPlayerSetup( int index, SC2APIProtocol.Sc2Api.PlayerSetup.Builder builderForValue) { if (playerSetupBuilder_ == null) { ensurePlayerSetupIsMutable(); playerSetup_.add(index, builderForValue.build()); onChanged(); } else { playerSetupBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .SC2APIProtocol.PlayerSetup player_setup = 3; */ public Builder addAllPlayerSetup( java.lang.Iterable values) { if (playerSetupBuilder_ == null) { ensurePlayerSetupIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, playerSetup_); onChanged(); } else { playerSetupBuilder_.addAllMessages(values); } return this; } /** * repeated .SC2APIProtocol.PlayerSetup player_setup = 3; */ public Builder clearPlayerSetup() { if (playerSetupBuilder_ == null) { playerSetup_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { playerSetupBuilder_.clear(); } return this; } /** * repeated .SC2APIProtocol.PlayerSetup player_setup = 3; */ public Builder removePlayerSetup(int index) { if (playerSetupBuilder_ == null) { ensurePlayerSetupIsMutable(); playerSetup_.remove(index); onChanged(); } else { playerSetupBuilder_.remove(index); } return this; } /** * repeated .SC2APIProtocol.PlayerSetup player_setup = 3; */ public SC2APIProtocol.Sc2Api.PlayerSetup.Builder getPlayerSetupBuilder( int index) { return getPlayerSetupFieldBuilder().getBuilder(index); } /** * repeated .SC2APIProtocol.PlayerSetup player_setup = 3; */ public SC2APIProtocol.Sc2Api.PlayerSetupOrBuilder getPlayerSetupOrBuilder( int index) { if (playerSetupBuilder_ == null) { return playerSetup_.get(index); } else { return playerSetupBuilder_.getMessageOrBuilder(index); } } /** * repeated .SC2APIProtocol.PlayerSetup player_setup = 3; */ public java.util.List getPlayerSetupOrBuilderList() { if (playerSetupBuilder_ != null) { return playerSetupBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(playerSetup_); } } /** * repeated .SC2APIProtocol.PlayerSetup player_setup = 3; */ public SC2APIProtocol.Sc2Api.PlayerSetup.Builder addPlayerSetupBuilder() { return getPlayerSetupFieldBuilder().addBuilder( SC2APIProtocol.Sc2Api.PlayerSetup.getDefaultInstance()); } /** * repeated .SC2APIProtocol.PlayerSetup player_setup = 3; */ public SC2APIProtocol.Sc2Api.PlayerSetup.Builder addPlayerSetupBuilder( int index) { return getPlayerSetupFieldBuilder().addBuilder( index, SC2APIProtocol.Sc2Api.PlayerSetup.getDefaultInstance()); } /** * repeated .SC2APIProtocol.PlayerSetup player_setup = 3; */ public java.util.List getPlayerSetupBuilderList() { return getPlayerSetupFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< SC2APIProtocol.Sc2Api.PlayerSetup, SC2APIProtocol.Sc2Api.PlayerSetup.Builder, SC2APIProtocol.Sc2Api.PlayerSetupOrBuilder> getPlayerSetupFieldBuilder() { if (playerSetupBuilder_ == null) { playerSetupBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< SC2APIProtocol.Sc2Api.PlayerSetup, SC2APIProtocol.Sc2Api.PlayerSetup.Builder, SC2APIProtocol.Sc2Api.PlayerSetupOrBuilder>( playerSetup_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); playerSetup_ = null; } return playerSetupBuilder_; } private boolean disableFog_ ; /** * optional bool disable_fog = 4; * @return Whether the disableFog field is set. */ @java.lang.Override public boolean hasDisableFog() { return ((bitField0_ & 0x00000008) != 0); } /** * optional bool disable_fog = 4; * @return The disableFog. */ @java.lang.Override public boolean getDisableFog() { return disableFog_; } /** * optional bool disable_fog = 4; * @param value The disableFog to set. * @return This builder for chaining. */ public Builder setDisableFog(boolean value) { bitField0_ |= 0x00000008; disableFog_ = value; onChanged(); return this; } /** * optional bool disable_fog = 4; * @return This builder for chaining. */ public Builder clearDisableFog() { bitField0_ = (bitField0_ & ~0x00000008); disableFog_ = false; onChanged(); return this; } private int randomSeed_ ; /** *
       * Sets the pseudo-random seed for the game.
       * 
* * optional uint32 random_seed = 5; * @return Whether the randomSeed field is set. */ @java.lang.Override public boolean hasRandomSeed() { return ((bitField0_ & 0x00000010) != 0); } /** *
       * Sets the pseudo-random seed for the game.
       * 
* * optional uint32 random_seed = 5; * @return The randomSeed. */ @java.lang.Override public int getRandomSeed() { return randomSeed_; } /** *
       * Sets the pseudo-random seed for the game.
       * 
* * optional uint32 random_seed = 5; * @param value The randomSeed to set. * @return This builder for chaining. */ public Builder setRandomSeed(int value) { bitField0_ |= 0x00000010; randomSeed_ = value; onChanged(); return this; } /** *
       * Sets the pseudo-random seed for the game.
       * 
* * optional uint32 random_seed = 5; * @return This builder for chaining. */ public Builder clearRandomSeed() { bitField0_ = (bitField0_ & ~0x00000010); randomSeed_ = 0; onChanged(); return this; } private boolean realtime_ ; /** *
       * If set, the game plays in real time.
       * 
* * optional bool realtime = 6; * @return Whether the realtime field is set. */ @java.lang.Override public boolean hasRealtime() { return ((bitField0_ & 0x00000020) != 0); } /** *
       * If set, the game plays in real time.
       * 
* * optional bool realtime = 6; * @return The realtime. */ @java.lang.Override public boolean getRealtime() { return realtime_; } /** *
       * If set, the game plays in real time.
       * 
* * optional bool realtime = 6; * @param value The realtime to set. * @return This builder for chaining. */ public Builder setRealtime(boolean value) { bitField0_ |= 0x00000020; realtime_ = value; onChanged(); return this; } /** *
       * If set, the game plays in real time.
       * 
* * optional bool realtime = 6; * @return This builder for chaining. */ public Builder clearRealtime() { bitField0_ = (bitField0_ & ~0x00000020); realtime_ = false; 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.RequestCreateGame) } // @@protoc_insertion_point(class_scope:SC2APIProtocol.RequestCreateGame) private static final SC2APIProtocol.Sc2Api.RequestCreateGame DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new SC2APIProtocol.Sc2Api.RequestCreateGame(); } public static SC2APIProtocol.Sc2Api.RequestCreateGame getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public RequestCreateGame 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.Sc2Api.RequestCreateGame getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface LocalMapOrBuilder extends // @@protoc_insertion_point(interface_extends:SC2APIProtocol.LocalMap) com.google.protobuf.MessageOrBuilder { /** *
     * A map can be specified either by a file path or the data of the .SC2Map file.
     * If you provide both, it will play the game using map_data and store map_path
     * into the replay. (260 character max)
     * 
* * optional string map_path = 1; * @return Whether the mapPath field is set. */ boolean hasMapPath(); /** *
     * A map can be specified either by a file path or the data of the .SC2Map file.
     * If you provide both, it will play the game using map_data and store map_path
     * into the replay. (260 character max)
     * 
* * optional string map_path = 1; * @return The mapPath. */ java.lang.String getMapPath(); /** *
     * A map can be specified either by a file path or the data of the .SC2Map file.
     * If you provide both, it will play the game using map_data and store map_path
     * into the replay. (260 character max)
     * 
* * optional string map_path = 1; * @return The bytes for mapPath. */ com.google.protobuf.ByteString getMapPathBytes(); /** * optional bytes map_data = 7; * @return Whether the mapData field is set. */ boolean hasMapData(); /** * optional bytes map_data = 7; * @return The mapData. */ com.google.protobuf.ByteString getMapData(); } /** * Protobuf type {@code SC2APIProtocol.LocalMap} */ public static final class LocalMap extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:SC2APIProtocol.LocalMap) LocalMapOrBuilder { private static final long serialVersionUID = 0L; // Use LocalMap.newBuilder() to construct. private LocalMap(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private LocalMap() { mapPath_ = ""; mapData_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new LocalMap(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_LocalMap_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_LocalMap_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Sc2Api.LocalMap.class, SC2APIProtocol.Sc2Api.LocalMap.Builder.class); } private int bitField0_; public static final int MAP_PATH_FIELD_NUMBER = 1; private volatile java.lang.Object mapPath_; /** *
     * A map can be specified either by a file path or the data of the .SC2Map file.
     * If you provide both, it will play the game using map_data and store map_path
     * into the replay. (260 character max)
     * 
* * optional string map_path = 1; * @return Whether the mapPath field is set. */ @java.lang.Override public boolean hasMapPath() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * A map can be specified either by a file path or the data of the .SC2Map file.
     * If you provide both, it will play the game using map_data and store map_path
     * into the replay. (260 character max)
     * 
* * optional string map_path = 1; * @return The mapPath. */ @java.lang.Override public java.lang.String getMapPath() { java.lang.Object ref = mapPath_; 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()) { mapPath_ = s; } return s; } } /** *
     * A map can be specified either by a file path or the data of the .SC2Map file.
     * If you provide both, it will play the game using map_data and store map_path
     * into the replay. (260 character max)
     * 
* * optional string map_path = 1; * @return The bytes for mapPath. */ @java.lang.Override public com.google.protobuf.ByteString getMapPathBytes() { java.lang.Object ref = mapPath_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); mapPath_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int MAP_DATA_FIELD_NUMBER = 7; private com.google.protobuf.ByteString mapData_; /** * optional bytes map_data = 7; * @return Whether the mapData field is set. */ @java.lang.Override public boolean hasMapData() { return ((bitField0_ & 0x00000002) != 0); } /** * optional bytes map_data = 7; * @return The mapData. */ @java.lang.Override public com.google.protobuf.ByteString getMapData() { return mapData_; } 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)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, mapPath_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeBytes(7, mapData_); } 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.GeneratedMessageV3.computeStringSize(1, mapPath_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(7, mapData_); } 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.Sc2Api.LocalMap)) { return super.equals(obj); } SC2APIProtocol.Sc2Api.LocalMap other = (SC2APIProtocol.Sc2Api.LocalMap) obj; if (hasMapPath() != other.hasMapPath()) return false; if (hasMapPath()) { if (!getMapPath() .equals(other.getMapPath())) return false; } if (hasMapData() != other.hasMapData()) return false; if (hasMapData()) { if (!getMapData() .equals(other.getMapData())) 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 (hasMapPath()) { hash = (37 * hash) + MAP_PATH_FIELD_NUMBER; hash = (53 * hash) + getMapPath().hashCode(); } if (hasMapData()) { hash = (37 * hash) + MAP_DATA_FIELD_NUMBER; hash = (53 * hash) + getMapData().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static SC2APIProtocol.Sc2Api.LocalMap parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.LocalMap parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.LocalMap parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.LocalMap parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.LocalMap parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.LocalMap parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.LocalMap parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.LocalMap 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.Sc2Api.LocalMap parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.LocalMap 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.Sc2Api.LocalMap parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.LocalMap 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.Sc2Api.LocalMap 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.LocalMap} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:SC2APIProtocol.LocalMap) SC2APIProtocol.Sc2Api.LocalMapOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_LocalMap_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_LocalMap_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Sc2Api.LocalMap.class, SC2APIProtocol.Sc2Api.LocalMap.Builder.class); } // Construct using SC2APIProtocol.Sc2Api.LocalMap.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); mapPath_ = ""; bitField0_ = (bitField0_ & ~0x00000001); mapData_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_LocalMap_descriptor; } @java.lang.Override public SC2APIProtocol.Sc2Api.LocalMap getDefaultInstanceForType() { return SC2APIProtocol.Sc2Api.LocalMap.getDefaultInstance(); } @java.lang.Override public SC2APIProtocol.Sc2Api.LocalMap build() { SC2APIProtocol.Sc2Api.LocalMap result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public SC2APIProtocol.Sc2Api.LocalMap buildPartial() { SC2APIProtocol.Sc2Api.LocalMap result = new SC2APIProtocol.Sc2Api.LocalMap(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { to_bitField0_ |= 0x00000001; } result.mapPath_ = mapPath_; if (((from_bitField0_ & 0x00000002) != 0)) { to_bitField0_ |= 0x00000002; } result.mapData_ = mapData_; 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.Sc2Api.LocalMap) { return mergeFrom((SC2APIProtocol.Sc2Api.LocalMap)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(SC2APIProtocol.Sc2Api.LocalMap other) { if (other == SC2APIProtocol.Sc2Api.LocalMap.getDefaultInstance()) return this; if (other.hasMapPath()) { bitField0_ |= 0x00000001; mapPath_ = other.mapPath_; onChanged(); } if (other.hasMapData()) { setMapData(other.getMapData()); } 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: { mapPath_ = input.readBytes(); bitField0_ |= 0x00000001; break; } // case 10 case 58: { mapData_ = input.readBytes(); bitField0_ |= 0x00000002; break; } // case 58 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.lang.Object mapPath_ = ""; /** *
       * A map can be specified either by a file path or the data of the .SC2Map file.
       * If you provide both, it will play the game using map_data and store map_path
       * into the replay. (260 character max)
       * 
* * optional string map_path = 1; * @return Whether the mapPath field is set. */ public boolean hasMapPath() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * A map can be specified either by a file path or the data of the .SC2Map file.
       * If you provide both, it will play the game using map_data and store map_path
       * into the replay. (260 character max)
       * 
* * optional string map_path = 1; * @return The mapPath. */ public java.lang.String getMapPath() { java.lang.Object ref = mapPath_; 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()) { mapPath_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
       * A map can be specified either by a file path or the data of the .SC2Map file.
       * If you provide both, it will play the game using map_data and store map_path
       * into the replay. (260 character max)
       * 
* * optional string map_path = 1; * @return The bytes for mapPath. */ public com.google.protobuf.ByteString getMapPathBytes() { java.lang.Object ref = mapPath_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); mapPath_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * A map can be specified either by a file path or the data of the .SC2Map file.
       * If you provide both, it will play the game using map_data and store map_path
       * into the replay. (260 character max)
       * 
* * optional string map_path = 1; * @param value The mapPath to set. * @return This builder for chaining. */ public Builder setMapPath( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; mapPath_ = value; onChanged(); return this; } /** *
       * A map can be specified either by a file path or the data of the .SC2Map file.
       * If you provide both, it will play the game using map_data and store map_path
       * into the replay. (260 character max)
       * 
* * optional string map_path = 1; * @return This builder for chaining. */ public Builder clearMapPath() { bitField0_ = (bitField0_ & ~0x00000001); mapPath_ = getDefaultInstance().getMapPath(); onChanged(); return this; } /** *
       * A map can be specified either by a file path or the data of the .SC2Map file.
       * If you provide both, it will play the game using map_data and store map_path
       * into the replay. (260 character max)
       * 
* * optional string map_path = 1; * @param value The bytes for mapPath to set. * @return This builder for chaining. */ public Builder setMapPathBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; mapPath_ = value; onChanged(); return this; } private com.google.protobuf.ByteString mapData_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes map_data = 7; * @return Whether the mapData field is set. */ @java.lang.Override public boolean hasMapData() { return ((bitField0_ & 0x00000002) != 0); } /** * optional bytes map_data = 7; * @return The mapData. */ @java.lang.Override public com.google.protobuf.ByteString getMapData() { return mapData_; } /** * optional bytes map_data = 7; * @param value The mapData to set. * @return This builder for chaining. */ public Builder setMapData(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; mapData_ = value; onChanged(); return this; } /** * optional bytes map_data = 7; * @return This builder for chaining. */ public Builder clearMapData() { bitField0_ = (bitField0_ & ~0x00000002); mapData_ = getDefaultInstance().getMapData(); 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.LocalMap) } // @@protoc_insertion_point(class_scope:SC2APIProtocol.LocalMap) private static final SC2APIProtocol.Sc2Api.LocalMap DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new SC2APIProtocol.Sc2Api.LocalMap(); } public static SC2APIProtocol.Sc2Api.LocalMap getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public LocalMap 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.Sc2Api.LocalMap getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ResponseCreateGameOrBuilder extends // @@protoc_insertion_point(interface_extends:SC2APIProtocol.ResponseCreateGame) com.google.protobuf.MessageOrBuilder { /** * optional .SC2APIProtocol.ResponseCreateGame.Error error = 1; * @return Whether the error field is set. */ boolean hasError(); /** * optional .SC2APIProtocol.ResponseCreateGame.Error error = 1; * @return The error. */ SC2APIProtocol.Sc2Api.ResponseCreateGame.Error getError(); /** * optional string error_details = 2; * @return Whether the errorDetails field is set. */ boolean hasErrorDetails(); /** * optional string error_details = 2; * @return The errorDetails. */ java.lang.String getErrorDetails(); /** * optional string error_details = 2; * @return The bytes for errorDetails. */ com.google.protobuf.ByteString getErrorDetailsBytes(); } /** * Protobuf type {@code SC2APIProtocol.ResponseCreateGame} */ public static final class ResponseCreateGame extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:SC2APIProtocol.ResponseCreateGame) ResponseCreateGameOrBuilder { private static final long serialVersionUID = 0L; // Use ResponseCreateGame.newBuilder() to construct. private ResponseCreateGame(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ResponseCreateGame() { error_ = 1; errorDetails_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ResponseCreateGame(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_ResponseCreateGame_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_ResponseCreateGame_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Sc2Api.ResponseCreateGame.class, SC2APIProtocol.Sc2Api.ResponseCreateGame.Builder.class); } /** * Protobuf enum {@code SC2APIProtocol.ResponseCreateGame.Error} */ public enum Error implements com.google.protobuf.ProtocolMessageEnum { /** * MissingMap = 1; */ MissingMap(1), /** * InvalidMapPath = 2; */ InvalidMapPath(2), /** * InvalidMapData = 3; */ InvalidMapData(3), /** * InvalidMapName = 4; */ InvalidMapName(4), /** * InvalidMapHandle = 5; */ InvalidMapHandle(5), /** * MissingPlayerSetup = 6; */ MissingPlayerSetup(6), /** * InvalidPlayerSetup = 7; */ InvalidPlayerSetup(7), /** *
       * Multiplayer is not supported in the current build.
       * 
* * MultiplayerUnsupported = 8; */ MultiplayerUnsupported(8), ; /** * MissingMap = 1; */ public static final int MissingMap_VALUE = 1; /** * InvalidMapPath = 2; */ public static final int InvalidMapPath_VALUE = 2; /** * InvalidMapData = 3; */ public static final int InvalidMapData_VALUE = 3; /** * InvalidMapName = 4; */ public static final int InvalidMapName_VALUE = 4; /** * InvalidMapHandle = 5; */ public static final int InvalidMapHandle_VALUE = 5; /** * MissingPlayerSetup = 6; */ public static final int MissingPlayerSetup_VALUE = 6; /** * InvalidPlayerSetup = 7; */ public static final int InvalidPlayerSetup_VALUE = 7; /** *
       * Multiplayer is not supported in the current build.
       * 
* * MultiplayerUnsupported = 8; */ public static final int MultiplayerUnsupported_VALUE = 8; 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 Error 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 Error forNumber(int value) { switch (value) { case 1: return MissingMap; case 2: return InvalidMapPath; case 3: return InvalidMapData; case 4: return InvalidMapName; case 5: return InvalidMapHandle; case 6: return MissingPlayerSetup; case 7: return InvalidPlayerSetup; case 8: return MultiplayerUnsupported; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Error> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Error findValueByNumber(int number) { return Error.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.Sc2Api.ResponseCreateGame.getDescriptor().getEnumTypes().get(0); } private static final Error[] VALUES = values(); public static Error 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 Error(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:SC2APIProtocol.ResponseCreateGame.Error) } private int bitField0_; public static final int ERROR_FIELD_NUMBER = 1; private int error_; /** * optional .SC2APIProtocol.ResponseCreateGame.Error error = 1; * @return Whether the error field is set. */ @java.lang.Override public boolean hasError() { return ((bitField0_ & 0x00000001) != 0); } /** * optional .SC2APIProtocol.ResponseCreateGame.Error error = 1; * @return The error. */ @java.lang.Override public SC2APIProtocol.Sc2Api.ResponseCreateGame.Error getError() { @SuppressWarnings("deprecation") SC2APIProtocol.Sc2Api.ResponseCreateGame.Error result = SC2APIProtocol.Sc2Api.ResponseCreateGame.Error.valueOf(error_); return result == null ? SC2APIProtocol.Sc2Api.ResponseCreateGame.Error.MissingMap : result; } public static final int ERROR_DETAILS_FIELD_NUMBER = 2; private volatile java.lang.Object errorDetails_; /** * optional string error_details = 2; * @return Whether the errorDetails field is set. */ @java.lang.Override public boolean hasErrorDetails() { return ((bitField0_ & 0x00000002) != 0); } /** * optional string error_details = 2; * @return The errorDetails. */ @java.lang.Override public java.lang.String getErrorDetails() { java.lang.Object ref = errorDetails_; 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()) { errorDetails_ = s; } return s; } } /** * optional string error_details = 2; * @return The bytes for errorDetails. */ @java.lang.Override public com.google.protobuf.ByteString getErrorDetailsBytes() { java.lang.Object ref = errorDetails_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); errorDetails_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } 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, error_); } if (((bitField0_ & 0x00000002) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, errorDetails_); } 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, error_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, errorDetails_); } 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.Sc2Api.ResponseCreateGame)) { return super.equals(obj); } SC2APIProtocol.Sc2Api.ResponseCreateGame other = (SC2APIProtocol.Sc2Api.ResponseCreateGame) obj; if (hasError() != other.hasError()) return false; if (hasError()) { if (error_ != other.error_) return false; } if (hasErrorDetails() != other.hasErrorDetails()) return false; if (hasErrorDetails()) { if (!getErrorDetails() .equals(other.getErrorDetails())) 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 (hasError()) { hash = (37 * hash) + ERROR_FIELD_NUMBER; hash = (53 * hash) + error_; } if (hasErrorDetails()) { hash = (37 * hash) + ERROR_DETAILS_FIELD_NUMBER; hash = (53 * hash) + getErrorDetails().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static SC2APIProtocol.Sc2Api.ResponseCreateGame parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.ResponseCreateGame parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.ResponseCreateGame parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.ResponseCreateGame parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.ResponseCreateGame parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.ResponseCreateGame parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.ResponseCreateGame parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.ResponseCreateGame 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.Sc2Api.ResponseCreateGame parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.ResponseCreateGame 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.Sc2Api.ResponseCreateGame parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.ResponseCreateGame 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.Sc2Api.ResponseCreateGame 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.ResponseCreateGame} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:SC2APIProtocol.ResponseCreateGame) SC2APIProtocol.Sc2Api.ResponseCreateGameOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_ResponseCreateGame_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_ResponseCreateGame_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Sc2Api.ResponseCreateGame.class, SC2APIProtocol.Sc2Api.ResponseCreateGame.Builder.class); } // Construct using SC2APIProtocol.Sc2Api.ResponseCreateGame.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); error_ = 1; bitField0_ = (bitField0_ & ~0x00000001); errorDetails_ = ""; bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_ResponseCreateGame_descriptor; } @java.lang.Override public SC2APIProtocol.Sc2Api.ResponseCreateGame getDefaultInstanceForType() { return SC2APIProtocol.Sc2Api.ResponseCreateGame.getDefaultInstance(); } @java.lang.Override public SC2APIProtocol.Sc2Api.ResponseCreateGame build() { SC2APIProtocol.Sc2Api.ResponseCreateGame result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public SC2APIProtocol.Sc2Api.ResponseCreateGame buildPartial() { SC2APIProtocol.Sc2Api.ResponseCreateGame result = new SC2APIProtocol.Sc2Api.ResponseCreateGame(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { to_bitField0_ |= 0x00000001; } result.error_ = error_; if (((from_bitField0_ & 0x00000002) != 0)) { to_bitField0_ |= 0x00000002; } result.errorDetails_ = errorDetails_; 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.Sc2Api.ResponseCreateGame) { return mergeFrom((SC2APIProtocol.Sc2Api.ResponseCreateGame)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(SC2APIProtocol.Sc2Api.ResponseCreateGame other) { if (other == SC2APIProtocol.Sc2Api.ResponseCreateGame.getDefaultInstance()) return this; if (other.hasError()) { setError(other.getError()); } if (other.hasErrorDetails()) { bitField0_ |= 0x00000002; errorDetails_ = other.errorDetails_; 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: { int tmpRaw = input.readEnum(); SC2APIProtocol.Sc2Api.ResponseCreateGame.Error tmpValue = SC2APIProtocol.Sc2Api.ResponseCreateGame.Error.forNumber(tmpRaw); if (tmpValue == null) { mergeUnknownVarintField(1, tmpRaw); } else { error_ = tmpRaw; bitField0_ |= 0x00000001; } break; } // case 8 case 18: { errorDetails_ = input.readBytes(); 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 int error_ = 1; /** * optional .SC2APIProtocol.ResponseCreateGame.Error error = 1; * @return Whether the error field is set. */ @java.lang.Override public boolean hasError() { return ((bitField0_ & 0x00000001) != 0); } /** * optional .SC2APIProtocol.ResponseCreateGame.Error error = 1; * @return The error. */ @java.lang.Override public SC2APIProtocol.Sc2Api.ResponseCreateGame.Error getError() { @SuppressWarnings("deprecation") SC2APIProtocol.Sc2Api.ResponseCreateGame.Error result = SC2APIProtocol.Sc2Api.ResponseCreateGame.Error.valueOf(error_); return result == null ? SC2APIProtocol.Sc2Api.ResponseCreateGame.Error.MissingMap : result; } /** * optional .SC2APIProtocol.ResponseCreateGame.Error error = 1; * @param value The error to set. * @return This builder for chaining. */ public Builder setError(SC2APIProtocol.Sc2Api.ResponseCreateGame.Error value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; error_ = value.getNumber(); onChanged(); return this; } /** * optional .SC2APIProtocol.ResponseCreateGame.Error error = 1; * @return This builder for chaining. */ public Builder clearError() { bitField0_ = (bitField0_ & ~0x00000001); error_ = 1; onChanged(); return this; } private java.lang.Object errorDetails_ = ""; /** * optional string error_details = 2; * @return Whether the errorDetails field is set. */ public boolean hasErrorDetails() { return ((bitField0_ & 0x00000002) != 0); } /** * optional string error_details = 2; * @return The errorDetails. */ public java.lang.String getErrorDetails() { java.lang.Object ref = errorDetails_; 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()) { errorDetails_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string error_details = 2; * @return The bytes for errorDetails. */ public com.google.protobuf.ByteString getErrorDetailsBytes() { java.lang.Object ref = errorDetails_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); errorDetails_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string error_details = 2; * @param value The errorDetails to set. * @return This builder for chaining. */ public Builder setErrorDetails( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; errorDetails_ = value; onChanged(); return this; } /** * optional string error_details = 2; * @return This builder for chaining. */ public Builder clearErrorDetails() { bitField0_ = (bitField0_ & ~0x00000002); errorDetails_ = getDefaultInstance().getErrorDetails(); onChanged(); return this; } /** * optional string error_details = 2; * @param value The bytes for errorDetails to set. * @return This builder for chaining. */ public Builder setErrorDetailsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; errorDetails_ = value; 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.ResponseCreateGame) } // @@protoc_insertion_point(class_scope:SC2APIProtocol.ResponseCreateGame) private static final SC2APIProtocol.Sc2Api.ResponseCreateGame DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new SC2APIProtocol.Sc2Api.ResponseCreateGame(); } public static SC2APIProtocol.Sc2Api.ResponseCreateGame getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ResponseCreateGame 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.Sc2Api.ResponseCreateGame getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RequestJoinGameOrBuilder extends // @@protoc_insertion_point(interface_extends:SC2APIProtocol.RequestJoinGame) com.google.protobuf.MessageOrBuilder { /** *
     * Join as participant
     * 
* * .SC2APIProtocol.Race race = 1; * @return Whether the race field is set. */ boolean hasRace(); /** *
     * Join as participant
     * 
* * .SC2APIProtocol.Race race = 1; * @return The race. */ SC2APIProtocol.Common.Race getRace(); /** *
     * Join as observer
     * 
* * uint32 observed_player_id = 2; * @return Whether the observedPlayerId field is set. */ boolean hasObservedPlayerId(); /** *
     * Join as observer
     * 
* * uint32 observed_player_id = 2; * @return The observedPlayerId. */ int getObservedPlayerId(); /** *
     * This is limited to what is specified in RequestCreateGame, but you can request less information if you want.
     * 
* * optional .SC2APIProtocol.InterfaceOptions options = 3; * @return Whether the options field is set. */ boolean hasOptions(); /** *
     * This is limited to what is specified in RequestCreateGame, but you can request less information if you want.
     * 
* * optional .SC2APIProtocol.InterfaceOptions options = 3; * @return The options. */ SC2APIProtocol.Sc2Api.InterfaceOptions getOptions(); /** *
     * This is limited to what is specified in RequestCreateGame, but you can request less information if you want.
     * 
* * optional .SC2APIProtocol.InterfaceOptions options = 3; */ SC2APIProtocol.Sc2Api.InterfaceOptionsOrBuilder getOptionsOrBuilder(); /** *
     * Do not set in the single-player case. This is the port a server will use.
     * 
* * optional .SC2APIProtocol.PortSet server_ports = 4; * @return Whether the serverPorts field is set. */ boolean hasServerPorts(); /** *
     * Do not set in the single-player case. This is the port a server will use.
     * 
* * optional .SC2APIProtocol.PortSet server_ports = 4; * @return The serverPorts. */ SC2APIProtocol.Sc2Api.PortSet getServerPorts(); /** *
     * Do not set in the single-player case. This is the port a server will use.
     * 
* * optional .SC2APIProtocol.PortSet server_ports = 4; */ SC2APIProtocol.Sc2Api.PortSetOrBuilder getServerPortsOrBuilder(); /** *
     * Do not set in the single-player case. These are the ports clients will use to initialize communication.
     * 
* * repeated .SC2APIProtocol.PortSet client_ports = 5; */ java.util.List getClientPortsList(); /** *
     * Do not set in the single-player case. These are the ports clients will use to initialize communication.
     * 
* * repeated .SC2APIProtocol.PortSet client_ports = 5; */ SC2APIProtocol.Sc2Api.PortSet getClientPorts(int index); /** *
     * Do not set in the single-player case. These are the ports clients will use to initialize communication.
     * 
* * repeated .SC2APIProtocol.PortSet client_ports = 5; */ int getClientPortsCount(); /** *
     * Do not set in the single-player case. These are the ports clients will use to initialize communication.
     * 
* * repeated .SC2APIProtocol.PortSet client_ports = 5; */ java.util.List getClientPortsOrBuilderList(); /** *
     * Do not set in the single-player case. These are the ports clients will use to initialize communication.
     * 
* * repeated .SC2APIProtocol.PortSet client_ports = 5; */ SC2APIProtocol.Sc2Api.PortSetOrBuilder getClientPortsOrBuilder( int index); /** *
     * Currently only a singe client is supported.
     * 
* * optional int32 shared_port = 6; * @return Whether the sharedPort field is set. */ boolean hasSharedPort(); /** *
     * Currently only a singe client is supported.
     * 
* * optional int32 shared_port = 6; * @return The sharedPort. */ int getSharedPort(); /** *
     * Use this to set the player's name to something other than autogenerated name.
     * 
* * optional string player_name = 7; * @return Whether the playerName field is set. */ boolean hasPlayerName(); /** *
     * Use this to set the player's name to something other than autogenerated name.
     * 
* * optional string player_name = 7; * @return The playerName. */ java.lang.String getPlayerName(); /** *
     * Use this to set the player's name to something other than autogenerated name.
     * 
* * optional string player_name = 7; * @return The bytes for playerName. */ com.google.protobuf.ByteString getPlayerNameBytes(); /** *
     * Both game creator and joiner should provide the ip address of the game creator in order to play remotely. Defaults to localhost.
     * 
* * optional string host_ip = 8; * @return Whether the hostIp field is set. */ boolean hasHostIp(); /** *
     * Both game creator and joiner should provide the ip address of the game creator in order to play remotely. Defaults to localhost.
     * 
* * optional string host_ip = 8; * @return The hostIp. */ java.lang.String getHostIp(); /** *
     * Both game creator and joiner should provide the ip address of the game creator in order to play remotely. Defaults to localhost.
     * 
* * optional string host_ip = 8; * @return The bytes for hostIp. */ com.google.protobuf.ByteString getHostIpBytes(); public SC2APIProtocol.Sc2Api.RequestJoinGame.ParticipationCase getParticipationCase(); } /** *
   *-----------------------------------------------------------------------------
   * If successful, puts the game into the status: in_game. Will be able to
   * request actions, observations and step the game.
   * 
* * Protobuf type {@code SC2APIProtocol.RequestJoinGame} */ public static final class RequestJoinGame extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:SC2APIProtocol.RequestJoinGame) RequestJoinGameOrBuilder { private static final long serialVersionUID = 0L; // Use RequestJoinGame.newBuilder() to construct. private RequestJoinGame(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RequestJoinGame() { clientPorts_ = java.util.Collections.emptyList(); playerName_ = ""; hostIp_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new RequestJoinGame(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_RequestJoinGame_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_RequestJoinGame_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Sc2Api.RequestJoinGame.class, SC2APIProtocol.Sc2Api.RequestJoinGame.Builder.class); } private int bitField0_; private int participationCase_ = 0; private java.lang.Object participation_; public enum ParticipationCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { RACE(1), OBSERVED_PLAYER_ID(2), PARTICIPATION_NOT_SET(0); private final int value; private ParticipationCase(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 ParticipationCase valueOf(int value) { return forNumber(value); } public static ParticipationCase forNumber(int value) { switch (value) { case 1: return RACE; case 2: return OBSERVED_PLAYER_ID; case 0: return PARTICIPATION_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public ParticipationCase getParticipationCase() { return ParticipationCase.forNumber( participationCase_); } public static final int RACE_FIELD_NUMBER = 1; /** *
     * Join as participant
     * 
* * .SC2APIProtocol.Race race = 1; * @return Whether the race field is set. */ public boolean hasRace() { return participationCase_ == 1; } /** *
     * Join as participant
     * 
* * .SC2APIProtocol.Race race = 1; * @return The race. */ public SC2APIProtocol.Common.Race getRace() { if (participationCase_ == 1) { @SuppressWarnings("deprecation") SC2APIProtocol.Common.Race result = SC2APIProtocol.Common.Race.valueOf( (java.lang.Integer) participation_); return result == null ? SC2APIProtocol.Common.Race.NoRace : result; } return SC2APIProtocol.Common.Race.NoRace; } public static final int OBSERVED_PLAYER_ID_FIELD_NUMBER = 2; /** *
     * Join as observer
     * 
* * uint32 observed_player_id = 2; * @return Whether the observedPlayerId field is set. */ @java.lang.Override public boolean hasObservedPlayerId() { return participationCase_ == 2; } /** *
     * Join as observer
     * 
* * uint32 observed_player_id = 2; * @return The observedPlayerId. */ @java.lang.Override public int getObservedPlayerId() { if (participationCase_ == 2) { return (java.lang.Integer) participation_; } return 0; } public static final int OPTIONS_FIELD_NUMBER = 3; private SC2APIProtocol.Sc2Api.InterfaceOptions options_; /** *
     * This is limited to what is specified in RequestCreateGame, but you can request less information if you want.
     * 
* * optional .SC2APIProtocol.InterfaceOptions options = 3; * @return Whether the options field is set. */ @java.lang.Override public boolean hasOptions() { return ((bitField0_ & 0x00000004) != 0); } /** *
     * This is limited to what is specified in RequestCreateGame, but you can request less information if you want.
     * 
* * optional .SC2APIProtocol.InterfaceOptions options = 3; * @return The options. */ @java.lang.Override public SC2APIProtocol.Sc2Api.InterfaceOptions getOptions() { return options_ == null ? SC2APIProtocol.Sc2Api.InterfaceOptions.getDefaultInstance() : options_; } /** *
     * This is limited to what is specified in RequestCreateGame, but you can request less information if you want.
     * 
* * optional .SC2APIProtocol.InterfaceOptions options = 3; */ @java.lang.Override public SC2APIProtocol.Sc2Api.InterfaceOptionsOrBuilder getOptionsOrBuilder() { return options_ == null ? SC2APIProtocol.Sc2Api.InterfaceOptions.getDefaultInstance() : options_; } public static final int SERVER_PORTS_FIELD_NUMBER = 4; private SC2APIProtocol.Sc2Api.PortSet serverPorts_; /** *
     * Do not set in the single-player case. This is the port a server will use.
     * 
* * optional .SC2APIProtocol.PortSet server_ports = 4; * @return Whether the serverPorts field is set. */ @java.lang.Override public boolean hasServerPorts() { return ((bitField0_ & 0x00000008) != 0); } /** *
     * Do not set in the single-player case. This is the port a server will use.
     * 
* * optional .SC2APIProtocol.PortSet server_ports = 4; * @return The serverPorts. */ @java.lang.Override public SC2APIProtocol.Sc2Api.PortSet getServerPorts() { return serverPorts_ == null ? SC2APIProtocol.Sc2Api.PortSet.getDefaultInstance() : serverPorts_; } /** *
     * Do not set in the single-player case. This is the port a server will use.
     * 
* * optional .SC2APIProtocol.PortSet server_ports = 4; */ @java.lang.Override public SC2APIProtocol.Sc2Api.PortSetOrBuilder getServerPortsOrBuilder() { return serverPorts_ == null ? SC2APIProtocol.Sc2Api.PortSet.getDefaultInstance() : serverPorts_; } public static final int CLIENT_PORTS_FIELD_NUMBER = 5; private java.util.List clientPorts_; /** *
     * Do not set in the single-player case. These are the ports clients will use to initialize communication.
     * 
* * repeated .SC2APIProtocol.PortSet client_ports = 5; */ @java.lang.Override public java.util.List getClientPortsList() { return clientPorts_; } /** *
     * Do not set in the single-player case. These are the ports clients will use to initialize communication.
     * 
* * repeated .SC2APIProtocol.PortSet client_ports = 5; */ @java.lang.Override public java.util.List getClientPortsOrBuilderList() { return clientPorts_; } /** *
     * Do not set in the single-player case. These are the ports clients will use to initialize communication.
     * 
* * repeated .SC2APIProtocol.PortSet client_ports = 5; */ @java.lang.Override public int getClientPortsCount() { return clientPorts_.size(); } /** *
     * Do not set in the single-player case. These are the ports clients will use to initialize communication.
     * 
* * repeated .SC2APIProtocol.PortSet client_ports = 5; */ @java.lang.Override public SC2APIProtocol.Sc2Api.PortSet getClientPorts(int index) { return clientPorts_.get(index); } /** *
     * Do not set in the single-player case. These are the ports clients will use to initialize communication.
     * 
* * repeated .SC2APIProtocol.PortSet client_ports = 5; */ @java.lang.Override public SC2APIProtocol.Sc2Api.PortSetOrBuilder getClientPortsOrBuilder( int index) { return clientPorts_.get(index); } public static final int SHARED_PORT_FIELD_NUMBER = 6; private int sharedPort_; /** *
     * Currently only a singe client is supported.
     * 
* * optional int32 shared_port = 6; * @return Whether the sharedPort field is set. */ @java.lang.Override public boolean hasSharedPort() { return ((bitField0_ & 0x00000010) != 0); } /** *
     * Currently only a singe client is supported.
     * 
* * optional int32 shared_port = 6; * @return The sharedPort. */ @java.lang.Override public int getSharedPort() { return sharedPort_; } public static final int PLAYER_NAME_FIELD_NUMBER = 7; private volatile java.lang.Object playerName_; /** *
     * Use this to set the player's name to something other than autogenerated name.
     * 
* * optional string player_name = 7; * @return Whether the playerName field is set. */ @java.lang.Override public boolean hasPlayerName() { return ((bitField0_ & 0x00000020) != 0); } /** *
     * Use this to set the player's name to something other than autogenerated name.
     * 
* * optional string player_name = 7; * @return The playerName. */ @java.lang.Override public java.lang.String getPlayerName() { java.lang.Object ref = playerName_; 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()) { playerName_ = s; } return s; } } /** *
     * Use this to set the player's name to something other than autogenerated name.
     * 
* * optional string player_name = 7; * @return The bytes for playerName. */ @java.lang.Override public com.google.protobuf.ByteString getPlayerNameBytes() { java.lang.Object ref = playerName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); playerName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int HOST_IP_FIELD_NUMBER = 8; private volatile java.lang.Object hostIp_; /** *
     * Both game creator and joiner should provide the ip address of the game creator in order to play remotely. Defaults to localhost.
     * 
* * optional string host_ip = 8; * @return Whether the hostIp field is set. */ @java.lang.Override public boolean hasHostIp() { return ((bitField0_ & 0x00000040) != 0); } /** *
     * Both game creator and joiner should provide the ip address of the game creator in order to play remotely. Defaults to localhost.
     * 
* * optional string host_ip = 8; * @return The hostIp. */ @java.lang.Override public java.lang.String getHostIp() { java.lang.Object ref = hostIp_; 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()) { hostIp_ = s; } return s; } } /** *
     * Both game creator and joiner should provide the ip address of the game creator in order to play remotely. Defaults to localhost.
     * 
* * optional string host_ip = 8; * @return The bytes for hostIp. */ @java.lang.Override public com.google.protobuf.ByteString getHostIpBytes() { java.lang.Object ref = hostIp_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); hostIp_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } 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 (participationCase_ == 1) { output.writeEnum(1, ((java.lang.Integer) participation_)); } if (participationCase_ == 2) { output.writeUInt32( 2, (int)((java.lang.Integer) participation_)); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(3, getOptions()); } if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(4, getServerPorts()); } for (int i = 0; i < clientPorts_.size(); i++) { output.writeMessage(5, clientPorts_.get(i)); } if (((bitField0_ & 0x00000010) != 0)) { output.writeInt32(6, sharedPort_); } if (((bitField0_ & 0x00000020) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, playerName_); } if (((bitField0_ & 0x00000040) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, hostIp_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (participationCase_ == 1) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, ((java.lang.Integer) participation_)); } if (participationCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size( 2, (int)((java.lang.Integer) participation_)); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getOptions()); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getServerPorts()); } for (int i = 0; i < clientPorts_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, clientPorts_.get(i)); } if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(6, sharedPort_); } if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, playerName_); } if (((bitField0_ & 0x00000040) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, hostIp_); } 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.Sc2Api.RequestJoinGame)) { return super.equals(obj); } SC2APIProtocol.Sc2Api.RequestJoinGame other = (SC2APIProtocol.Sc2Api.RequestJoinGame) obj; if (hasOptions() != other.hasOptions()) return false; if (hasOptions()) { if (!getOptions() .equals(other.getOptions())) return false; } if (hasServerPorts() != other.hasServerPorts()) return false; if (hasServerPorts()) { if (!getServerPorts() .equals(other.getServerPorts())) return false; } if (!getClientPortsList() .equals(other.getClientPortsList())) return false; if (hasSharedPort() != other.hasSharedPort()) return false; if (hasSharedPort()) { if (getSharedPort() != other.getSharedPort()) return false; } if (hasPlayerName() != other.hasPlayerName()) return false; if (hasPlayerName()) { if (!getPlayerName() .equals(other.getPlayerName())) return false; } if (hasHostIp() != other.hasHostIp()) return false; if (hasHostIp()) { if (!getHostIp() .equals(other.getHostIp())) return false; } if (!getParticipationCase().equals(other.getParticipationCase())) return false; switch (participationCase_) { case 1: if (!getRace() .equals(other.getRace())) return false; break; case 2: if (getObservedPlayerId() != other.getObservedPlayerId()) 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(); if (hasOptions()) { hash = (37 * hash) + OPTIONS_FIELD_NUMBER; hash = (53 * hash) + getOptions().hashCode(); } if (hasServerPorts()) { hash = (37 * hash) + SERVER_PORTS_FIELD_NUMBER; hash = (53 * hash) + getServerPorts().hashCode(); } if (getClientPortsCount() > 0) { hash = (37 * hash) + CLIENT_PORTS_FIELD_NUMBER; hash = (53 * hash) + getClientPortsList().hashCode(); } if (hasSharedPort()) { hash = (37 * hash) + SHARED_PORT_FIELD_NUMBER; hash = (53 * hash) + getSharedPort(); } if (hasPlayerName()) { hash = (37 * hash) + PLAYER_NAME_FIELD_NUMBER; hash = (53 * hash) + getPlayerName().hashCode(); } if (hasHostIp()) { hash = (37 * hash) + HOST_IP_FIELD_NUMBER; hash = (53 * hash) + getHostIp().hashCode(); } switch (participationCase_) { case 1: hash = (37 * hash) + RACE_FIELD_NUMBER; hash = (53 * hash) + getRace().getNumber(); break; case 2: hash = (37 * hash) + OBSERVED_PLAYER_ID_FIELD_NUMBER; hash = (53 * hash) + getObservedPlayerId(); break; case 0: default: } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static SC2APIProtocol.Sc2Api.RequestJoinGame parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.RequestJoinGame parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.RequestJoinGame parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.RequestJoinGame parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.RequestJoinGame parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.RequestJoinGame parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.RequestJoinGame parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.RequestJoinGame 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.Sc2Api.RequestJoinGame parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.RequestJoinGame 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.Sc2Api.RequestJoinGame parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.RequestJoinGame 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.Sc2Api.RequestJoinGame 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; } /** *
     *-----------------------------------------------------------------------------
     * If successful, puts the game into the status: in_game. Will be able to
     * request actions, observations and step the game.
     * 
* * Protobuf type {@code SC2APIProtocol.RequestJoinGame} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:SC2APIProtocol.RequestJoinGame) SC2APIProtocol.Sc2Api.RequestJoinGameOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_RequestJoinGame_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_RequestJoinGame_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Sc2Api.RequestJoinGame.class, SC2APIProtocol.Sc2Api.RequestJoinGame.Builder.class); } // Construct using SC2APIProtocol.Sc2Api.RequestJoinGame.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getOptionsFieldBuilder(); getServerPortsFieldBuilder(); getClientPortsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (optionsBuilder_ == null) { options_ = null; } else { optionsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); if (serverPortsBuilder_ == null) { serverPorts_ = null; } else { serverPortsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); if (clientPortsBuilder_ == null) { clientPorts_ = java.util.Collections.emptyList(); } else { clientPorts_ = null; clientPortsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); sharedPort_ = 0; bitField0_ = (bitField0_ & ~0x00000020); playerName_ = ""; bitField0_ = (bitField0_ & ~0x00000040); hostIp_ = ""; bitField0_ = (bitField0_ & ~0x00000080); participationCase_ = 0; participation_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_RequestJoinGame_descriptor; } @java.lang.Override public SC2APIProtocol.Sc2Api.RequestJoinGame getDefaultInstanceForType() { return SC2APIProtocol.Sc2Api.RequestJoinGame.getDefaultInstance(); } @java.lang.Override public SC2APIProtocol.Sc2Api.RequestJoinGame build() { SC2APIProtocol.Sc2Api.RequestJoinGame result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public SC2APIProtocol.Sc2Api.RequestJoinGame buildPartial() { SC2APIProtocol.Sc2Api.RequestJoinGame result = new SC2APIProtocol.Sc2Api.RequestJoinGame(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (participationCase_ == 1) { result.participation_ = participation_; } if (participationCase_ == 2) { result.participation_ = participation_; } if (((from_bitField0_ & 0x00000004) != 0)) { if (optionsBuilder_ == null) { result.options_ = options_; } else { result.options_ = optionsBuilder_.build(); } to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000008) != 0)) { if (serverPortsBuilder_ == null) { result.serverPorts_ = serverPorts_; } else { result.serverPorts_ = serverPortsBuilder_.build(); } to_bitField0_ |= 0x00000008; } if (clientPortsBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0)) { clientPorts_ = java.util.Collections.unmodifiableList(clientPorts_); bitField0_ = (bitField0_ & ~0x00000010); } result.clientPorts_ = clientPorts_; } else { result.clientPorts_ = clientPortsBuilder_.build(); } if (((from_bitField0_ & 0x00000020) != 0)) { result.sharedPort_ = sharedPort_; to_bitField0_ |= 0x00000010; } if (((from_bitField0_ & 0x00000040) != 0)) { to_bitField0_ |= 0x00000020; } result.playerName_ = playerName_; if (((from_bitField0_ & 0x00000080) != 0)) { to_bitField0_ |= 0x00000040; } result.hostIp_ = hostIp_; result.bitField0_ = to_bitField0_; result.participationCase_ = participationCase_; 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.Sc2Api.RequestJoinGame) { return mergeFrom((SC2APIProtocol.Sc2Api.RequestJoinGame)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(SC2APIProtocol.Sc2Api.RequestJoinGame other) { if (other == SC2APIProtocol.Sc2Api.RequestJoinGame.getDefaultInstance()) return this; if (other.hasOptions()) { mergeOptions(other.getOptions()); } if (other.hasServerPorts()) { mergeServerPorts(other.getServerPorts()); } if (clientPortsBuilder_ == null) { if (!other.clientPorts_.isEmpty()) { if (clientPorts_.isEmpty()) { clientPorts_ = other.clientPorts_; bitField0_ = (bitField0_ & ~0x00000010); } else { ensureClientPortsIsMutable(); clientPorts_.addAll(other.clientPorts_); } onChanged(); } } else { if (!other.clientPorts_.isEmpty()) { if (clientPortsBuilder_.isEmpty()) { clientPortsBuilder_.dispose(); clientPortsBuilder_ = null; clientPorts_ = other.clientPorts_; bitField0_ = (bitField0_ & ~0x00000010); clientPortsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getClientPortsFieldBuilder() : null; } else { clientPortsBuilder_.addAllMessages(other.clientPorts_); } } } if (other.hasSharedPort()) { setSharedPort(other.getSharedPort()); } if (other.hasPlayerName()) { bitField0_ |= 0x00000040; playerName_ = other.playerName_; onChanged(); } if (other.hasHostIp()) { bitField0_ |= 0x00000080; hostIp_ = other.hostIp_; onChanged(); } switch (other.getParticipationCase()) { case RACE: { setRace(other.getRace()); break; } case OBSERVED_PLAYER_ID: { setObservedPlayerId(other.getObservedPlayerId()); break; } case PARTICIPATION_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 8: { int rawValue = input.readEnum(); SC2APIProtocol.Common.Race value = SC2APIProtocol.Common.Race.forNumber(rawValue); if (value == null) { mergeUnknownVarintField(1, rawValue); } else { participationCase_ = 1; participation_ = rawValue; } break; } // case 8 case 16: { participation_ = input.readUInt32(); participationCase_ = 2; break; } // case 16 case 26: { input.readMessage( getOptionsFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 26 case 34: { input.readMessage( getServerPortsFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000008; break; } // case 34 case 42: { SC2APIProtocol.Sc2Api.PortSet m = input.readMessage( SC2APIProtocol.Sc2Api.PortSet.PARSER, extensionRegistry); if (clientPortsBuilder_ == null) { ensureClientPortsIsMutable(); clientPorts_.add(m); } else { clientPortsBuilder_.addMessage(m); } break; } // case 42 case 48: { sharedPort_ = input.readInt32(); bitField0_ |= 0x00000020; break; } // case 48 case 58: { playerName_ = input.readBytes(); bitField0_ |= 0x00000040; break; } // case 58 case 66: { hostIp_ = input.readBytes(); bitField0_ |= 0x00000080; 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 participationCase_ = 0; private java.lang.Object participation_; public ParticipationCase getParticipationCase() { return ParticipationCase.forNumber( participationCase_); } public Builder clearParticipation() { participationCase_ = 0; participation_ = null; onChanged(); return this; } private int bitField0_; /** *
       * Join as participant
       * 
* * .SC2APIProtocol.Race race = 1; * @return Whether the race field is set. */ @java.lang.Override public boolean hasRace() { return participationCase_ == 1; } /** *
       * Join as participant
       * 
* * .SC2APIProtocol.Race race = 1; * @return The race. */ @java.lang.Override public SC2APIProtocol.Common.Race getRace() { if (participationCase_ == 1) { @SuppressWarnings("deprecation") SC2APIProtocol.Common.Race result = SC2APIProtocol.Common.Race.valueOf( (java.lang.Integer) participation_); return result == null ? SC2APIProtocol.Common.Race.NoRace : result; } return SC2APIProtocol.Common.Race.NoRace; } /** *
       * Join as participant
       * 
* * .SC2APIProtocol.Race race = 1; * @param value The race to set. * @return This builder for chaining. */ public Builder setRace(SC2APIProtocol.Common.Race value) { if (value == null) { throw new NullPointerException(); } participationCase_ = 1; participation_ = value.getNumber(); onChanged(); return this; } /** *
       * Join as participant
       * 
* * .SC2APIProtocol.Race race = 1; * @return This builder for chaining. */ public Builder clearRace() { if (participationCase_ == 1) { participationCase_ = 0; participation_ = null; onChanged(); } return this; } /** *
       * Join as observer
       * 
* * uint32 observed_player_id = 2; * @return Whether the observedPlayerId field is set. */ public boolean hasObservedPlayerId() { return participationCase_ == 2; } /** *
       * Join as observer
       * 
* * uint32 observed_player_id = 2; * @return The observedPlayerId. */ public int getObservedPlayerId() { if (participationCase_ == 2) { return (java.lang.Integer) participation_; } return 0; } /** *
       * Join as observer
       * 
* * uint32 observed_player_id = 2; * @param value The observedPlayerId to set. * @return This builder for chaining. */ public Builder setObservedPlayerId(int value) { participationCase_ = 2; participation_ = value; onChanged(); return this; } /** *
       * Join as observer
       * 
* * uint32 observed_player_id = 2; * @return This builder for chaining. */ public Builder clearObservedPlayerId() { if (participationCase_ == 2) { participationCase_ = 0; participation_ = null; onChanged(); } return this; } private SC2APIProtocol.Sc2Api.InterfaceOptions options_; private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.InterfaceOptions, SC2APIProtocol.Sc2Api.InterfaceOptions.Builder, SC2APIProtocol.Sc2Api.InterfaceOptionsOrBuilder> optionsBuilder_; /** *
       * This is limited to what is specified in RequestCreateGame, but you can request less information if you want.
       * 
* * optional .SC2APIProtocol.InterfaceOptions options = 3; * @return Whether the options field is set. */ public boolean hasOptions() { return ((bitField0_ & 0x00000004) != 0); } /** *
       * This is limited to what is specified in RequestCreateGame, but you can request less information if you want.
       * 
* * optional .SC2APIProtocol.InterfaceOptions options = 3; * @return The options. */ public SC2APIProtocol.Sc2Api.InterfaceOptions getOptions() { if (optionsBuilder_ == null) { return options_ == null ? SC2APIProtocol.Sc2Api.InterfaceOptions.getDefaultInstance() : options_; } else { return optionsBuilder_.getMessage(); } } /** *
       * This is limited to what is specified in RequestCreateGame, but you can request less information if you want.
       * 
* * optional .SC2APIProtocol.InterfaceOptions options = 3; */ public Builder setOptions(SC2APIProtocol.Sc2Api.InterfaceOptions value) { if (optionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } options_ = value; onChanged(); } else { optionsBuilder_.setMessage(value); } bitField0_ |= 0x00000004; return this; } /** *
       * This is limited to what is specified in RequestCreateGame, but you can request less information if you want.
       * 
* * optional .SC2APIProtocol.InterfaceOptions options = 3; */ public Builder setOptions( SC2APIProtocol.Sc2Api.InterfaceOptions.Builder builderForValue) { if (optionsBuilder_ == null) { options_ = builderForValue.build(); onChanged(); } else { optionsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; return this; } /** *
       * This is limited to what is specified in RequestCreateGame, but you can request less information if you want.
       * 
* * optional .SC2APIProtocol.InterfaceOptions options = 3; */ public Builder mergeOptions(SC2APIProtocol.Sc2Api.InterfaceOptions value) { if (optionsBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && options_ != null && options_ != SC2APIProtocol.Sc2Api.InterfaceOptions.getDefaultInstance()) { options_ = SC2APIProtocol.Sc2Api.InterfaceOptions.newBuilder(options_).mergeFrom(value).buildPartial(); } else { options_ = value; } onChanged(); } else { optionsBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; return this; } /** *
       * This is limited to what is specified in RequestCreateGame, but you can request less information if you want.
       * 
* * optional .SC2APIProtocol.InterfaceOptions options = 3; */ public Builder clearOptions() { if (optionsBuilder_ == null) { options_ = null; onChanged(); } else { optionsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } /** *
       * This is limited to what is specified in RequestCreateGame, but you can request less information if you want.
       * 
* * optional .SC2APIProtocol.InterfaceOptions options = 3; */ public SC2APIProtocol.Sc2Api.InterfaceOptions.Builder getOptionsBuilder() { bitField0_ |= 0x00000004; onChanged(); return getOptionsFieldBuilder().getBuilder(); } /** *
       * This is limited to what is specified in RequestCreateGame, but you can request less information if you want.
       * 
* * optional .SC2APIProtocol.InterfaceOptions options = 3; */ public SC2APIProtocol.Sc2Api.InterfaceOptionsOrBuilder getOptionsOrBuilder() { if (optionsBuilder_ != null) { return optionsBuilder_.getMessageOrBuilder(); } else { return options_ == null ? SC2APIProtocol.Sc2Api.InterfaceOptions.getDefaultInstance() : options_; } } /** *
       * This is limited to what is specified in RequestCreateGame, but you can request less information if you want.
       * 
* * optional .SC2APIProtocol.InterfaceOptions options = 3; */ private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.InterfaceOptions, SC2APIProtocol.Sc2Api.InterfaceOptions.Builder, SC2APIProtocol.Sc2Api.InterfaceOptionsOrBuilder> getOptionsFieldBuilder() { if (optionsBuilder_ == null) { optionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.InterfaceOptions, SC2APIProtocol.Sc2Api.InterfaceOptions.Builder, SC2APIProtocol.Sc2Api.InterfaceOptionsOrBuilder>( getOptions(), getParentForChildren(), isClean()); options_ = null; } return optionsBuilder_; } private SC2APIProtocol.Sc2Api.PortSet serverPorts_; private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.PortSet, SC2APIProtocol.Sc2Api.PortSet.Builder, SC2APIProtocol.Sc2Api.PortSetOrBuilder> serverPortsBuilder_; /** *
       * Do not set in the single-player case. This is the port a server will use.
       * 
* * optional .SC2APIProtocol.PortSet server_ports = 4; * @return Whether the serverPorts field is set. */ public boolean hasServerPorts() { return ((bitField0_ & 0x00000008) != 0); } /** *
       * Do not set in the single-player case. This is the port a server will use.
       * 
* * optional .SC2APIProtocol.PortSet server_ports = 4; * @return The serverPorts. */ public SC2APIProtocol.Sc2Api.PortSet getServerPorts() { if (serverPortsBuilder_ == null) { return serverPorts_ == null ? SC2APIProtocol.Sc2Api.PortSet.getDefaultInstance() : serverPorts_; } else { return serverPortsBuilder_.getMessage(); } } /** *
       * Do not set in the single-player case. This is the port a server will use.
       * 
* * optional .SC2APIProtocol.PortSet server_ports = 4; */ public Builder setServerPorts(SC2APIProtocol.Sc2Api.PortSet value) { if (serverPortsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } serverPorts_ = value; onChanged(); } else { serverPortsBuilder_.setMessage(value); } bitField0_ |= 0x00000008; return this; } /** *
       * Do not set in the single-player case. This is the port a server will use.
       * 
* * optional .SC2APIProtocol.PortSet server_ports = 4; */ public Builder setServerPorts( SC2APIProtocol.Sc2Api.PortSet.Builder builderForValue) { if (serverPortsBuilder_ == null) { serverPorts_ = builderForValue.build(); onChanged(); } else { serverPortsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; return this; } /** *
       * Do not set in the single-player case. This is the port a server will use.
       * 
* * optional .SC2APIProtocol.PortSet server_ports = 4; */ public Builder mergeServerPorts(SC2APIProtocol.Sc2Api.PortSet value) { if (serverPortsBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0) && serverPorts_ != null && serverPorts_ != SC2APIProtocol.Sc2Api.PortSet.getDefaultInstance()) { serverPorts_ = SC2APIProtocol.Sc2Api.PortSet.newBuilder(serverPorts_).mergeFrom(value).buildPartial(); } else { serverPorts_ = value; } onChanged(); } else { serverPortsBuilder_.mergeFrom(value); } bitField0_ |= 0x00000008; return this; } /** *
       * Do not set in the single-player case. This is the port a server will use.
       * 
* * optional .SC2APIProtocol.PortSet server_ports = 4; */ public Builder clearServerPorts() { if (serverPortsBuilder_ == null) { serverPorts_ = null; onChanged(); } else { serverPortsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); return this; } /** *
       * Do not set in the single-player case. This is the port a server will use.
       * 
* * optional .SC2APIProtocol.PortSet server_ports = 4; */ public SC2APIProtocol.Sc2Api.PortSet.Builder getServerPortsBuilder() { bitField0_ |= 0x00000008; onChanged(); return getServerPortsFieldBuilder().getBuilder(); } /** *
       * Do not set in the single-player case. This is the port a server will use.
       * 
* * optional .SC2APIProtocol.PortSet server_ports = 4; */ public SC2APIProtocol.Sc2Api.PortSetOrBuilder getServerPortsOrBuilder() { if (serverPortsBuilder_ != null) { return serverPortsBuilder_.getMessageOrBuilder(); } else { return serverPorts_ == null ? SC2APIProtocol.Sc2Api.PortSet.getDefaultInstance() : serverPorts_; } } /** *
       * Do not set in the single-player case. This is the port a server will use.
       * 
* * optional .SC2APIProtocol.PortSet server_ports = 4; */ private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.PortSet, SC2APIProtocol.Sc2Api.PortSet.Builder, SC2APIProtocol.Sc2Api.PortSetOrBuilder> getServerPortsFieldBuilder() { if (serverPortsBuilder_ == null) { serverPortsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.PortSet, SC2APIProtocol.Sc2Api.PortSet.Builder, SC2APIProtocol.Sc2Api.PortSetOrBuilder>( getServerPorts(), getParentForChildren(), isClean()); serverPorts_ = null; } return serverPortsBuilder_; } private java.util.List clientPorts_ = java.util.Collections.emptyList(); private void ensureClientPortsIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { clientPorts_ = new java.util.ArrayList(clientPorts_); bitField0_ |= 0x00000010; } } private com.google.protobuf.RepeatedFieldBuilderV3< SC2APIProtocol.Sc2Api.PortSet, SC2APIProtocol.Sc2Api.PortSet.Builder, SC2APIProtocol.Sc2Api.PortSetOrBuilder> clientPortsBuilder_; /** *
       * Do not set in the single-player case. These are the ports clients will use to initialize communication.
       * 
* * repeated .SC2APIProtocol.PortSet client_ports = 5; */ public java.util.List getClientPortsList() { if (clientPortsBuilder_ == null) { return java.util.Collections.unmodifiableList(clientPorts_); } else { return clientPortsBuilder_.getMessageList(); } } /** *
       * Do not set in the single-player case. These are the ports clients will use to initialize communication.
       * 
* * repeated .SC2APIProtocol.PortSet client_ports = 5; */ public int getClientPortsCount() { if (clientPortsBuilder_ == null) { return clientPorts_.size(); } else { return clientPortsBuilder_.getCount(); } } /** *
       * Do not set in the single-player case. These are the ports clients will use to initialize communication.
       * 
* * repeated .SC2APIProtocol.PortSet client_ports = 5; */ public SC2APIProtocol.Sc2Api.PortSet getClientPorts(int index) { if (clientPortsBuilder_ == null) { return clientPorts_.get(index); } else { return clientPortsBuilder_.getMessage(index); } } /** *
       * Do not set in the single-player case. These are the ports clients will use to initialize communication.
       * 
* * repeated .SC2APIProtocol.PortSet client_ports = 5; */ public Builder setClientPorts( int index, SC2APIProtocol.Sc2Api.PortSet value) { if (clientPortsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureClientPortsIsMutable(); clientPorts_.set(index, value); onChanged(); } else { clientPortsBuilder_.setMessage(index, value); } return this; } /** *
       * Do not set in the single-player case. These are the ports clients will use to initialize communication.
       * 
* * repeated .SC2APIProtocol.PortSet client_ports = 5; */ public Builder setClientPorts( int index, SC2APIProtocol.Sc2Api.PortSet.Builder builderForValue) { if (clientPortsBuilder_ == null) { ensureClientPortsIsMutable(); clientPorts_.set(index, builderForValue.build()); onChanged(); } else { clientPortsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * Do not set in the single-player case. These are the ports clients will use to initialize communication.
       * 
* * repeated .SC2APIProtocol.PortSet client_ports = 5; */ public Builder addClientPorts(SC2APIProtocol.Sc2Api.PortSet value) { if (clientPortsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureClientPortsIsMutable(); clientPorts_.add(value); onChanged(); } else { clientPortsBuilder_.addMessage(value); } return this; } /** *
       * Do not set in the single-player case. These are the ports clients will use to initialize communication.
       * 
* * repeated .SC2APIProtocol.PortSet client_ports = 5; */ public Builder addClientPorts( int index, SC2APIProtocol.Sc2Api.PortSet value) { if (clientPortsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureClientPortsIsMutable(); clientPorts_.add(index, value); onChanged(); } else { clientPortsBuilder_.addMessage(index, value); } return this; } /** *
       * Do not set in the single-player case. These are the ports clients will use to initialize communication.
       * 
* * repeated .SC2APIProtocol.PortSet client_ports = 5; */ public Builder addClientPorts( SC2APIProtocol.Sc2Api.PortSet.Builder builderForValue) { if (clientPortsBuilder_ == null) { ensureClientPortsIsMutable(); clientPorts_.add(builderForValue.build()); onChanged(); } else { clientPortsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * Do not set in the single-player case. These are the ports clients will use to initialize communication.
       * 
* * repeated .SC2APIProtocol.PortSet client_ports = 5; */ public Builder addClientPorts( int index, SC2APIProtocol.Sc2Api.PortSet.Builder builderForValue) { if (clientPortsBuilder_ == null) { ensureClientPortsIsMutable(); clientPorts_.add(index, builderForValue.build()); onChanged(); } else { clientPortsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * Do not set in the single-player case. These are the ports clients will use to initialize communication.
       * 
* * repeated .SC2APIProtocol.PortSet client_ports = 5; */ public Builder addAllClientPorts( java.lang.Iterable values) { if (clientPortsBuilder_ == null) { ensureClientPortsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, clientPorts_); onChanged(); } else { clientPortsBuilder_.addAllMessages(values); } return this; } /** *
       * Do not set in the single-player case. These are the ports clients will use to initialize communication.
       * 
* * repeated .SC2APIProtocol.PortSet client_ports = 5; */ public Builder clearClientPorts() { if (clientPortsBuilder_ == null) { clientPorts_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); } else { clientPortsBuilder_.clear(); } return this; } /** *
       * Do not set in the single-player case. These are the ports clients will use to initialize communication.
       * 
* * repeated .SC2APIProtocol.PortSet client_ports = 5; */ public Builder removeClientPorts(int index) { if (clientPortsBuilder_ == null) { ensureClientPortsIsMutable(); clientPorts_.remove(index); onChanged(); } else { clientPortsBuilder_.remove(index); } return this; } /** *
       * Do not set in the single-player case. These are the ports clients will use to initialize communication.
       * 
* * repeated .SC2APIProtocol.PortSet client_ports = 5; */ public SC2APIProtocol.Sc2Api.PortSet.Builder getClientPortsBuilder( int index) { return getClientPortsFieldBuilder().getBuilder(index); } /** *
       * Do not set in the single-player case. These are the ports clients will use to initialize communication.
       * 
* * repeated .SC2APIProtocol.PortSet client_ports = 5; */ public SC2APIProtocol.Sc2Api.PortSetOrBuilder getClientPortsOrBuilder( int index) { if (clientPortsBuilder_ == null) { return clientPorts_.get(index); } else { return clientPortsBuilder_.getMessageOrBuilder(index); } } /** *
       * Do not set in the single-player case. These are the ports clients will use to initialize communication.
       * 
* * repeated .SC2APIProtocol.PortSet client_ports = 5; */ public java.util.List getClientPortsOrBuilderList() { if (clientPortsBuilder_ != null) { return clientPortsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(clientPorts_); } } /** *
       * Do not set in the single-player case. These are the ports clients will use to initialize communication.
       * 
* * repeated .SC2APIProtocol.PortSet client_ports = 5; */ public SC2APIProtocol.Sc2Api.PortSet.Builder addClientPortsBuilder() { return getClientPortsFieldBuilder().addBuilder( SC2APIProtocol.Sc2Api.PortSet.getDefaultInstance()); } /** *
       * Do not set in the single-player case. These are the ports clients will use to initialize communication.
       * 
* * repeated .SC2APIProtocol.PortSet client_ports = 5; */ public SC2APIProtocol.Sc2Api.PortSet.Builder addClientPortsBuilder( int index) { return getClientPortsFieldBuilder().addBuilder( index, SC2APIProtocol.Sc2Api.PortSet.getDefaultInstance()); } /** *
       * Do not set in the single-player case. These are the ports clients will use to initialize communication.
       * 
* * repeated .SC2APIProtocol.PortSet client_ports = 5; */ public java.util.List getClientPortsBuilderList() { return getClientPortsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< SC2APIProtocol.Sc2Api.PortSet, SC2APIProtocol.Sc2Api.PortSet.Builder, SC2APIProtocol.Sc2Api.PortSetOrBuilder> getClientPortsFieldBuilder() { if (clientPortsBuilder_ == null) { clientPortsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< SC2APIProtocol.Sc2Api.PortSet, SC2APIProtocol.Sc2Api.PortSet.Builder, SC2APIProtocol.Sc2Api.PortSetOrBuilder>( clientPorts_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); clientPorts_ = null; } return clientPortsBuilder_; } private int sharedPort_ ; /** *
       * Currently only a singe client is supported.
       * 
* * optional int32 shared_port = 6; * @return Whether the sharedPort field is set. */ @java.lang.Override public boolean hasSharedPort() { return ((bitField0_ & 0x00000020) != 0); } /** *
       * Currently only a singe client is supported.
       * 
* * optional int32 shared_port = 6; * @return The sharedPort. */ @java.lang.Override public int getSharedPort() { return sharedPort_; } /** *
       * Currently only a singe client is supported.
       * 
* * optional int32 shared_port = 6; * @param value The sharedPort to set. * @return This builder for chaining. */ public Builder setSharedPort(int value) { bitField0_ |= 0x00000020; sharedPort_ = value; onChanged(); return this; } /** *
       * Currently only a singe client is supported.
       * 
* * optional int32 shared_port = 6; * @return This builder for chaining. */ public Builder clearSharedPort() { bitField0_ = (bitField0_ & ~0x00000020); sharedPort_ = 0; onChanged(); return this; } private java.lang.Object playerName_ = ""; /** *
       * Use this to set the player's name to something other than autogenerated name.
       * 
* * optional string player_name = 7; * @return Whether the playerName field is set. */ public boolean hasPlayerName() { return ((bitField0_ & 0x00000040) != 0); } /** *
       * Use this to set the player's name to something other than autogenerated name.
       * 
* * optional string player_name = 7; * @return The playerName. */ public java.lang.String getPlayerName() { java.lang.Object ref = playerName_; 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()) { playerName_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
       * Use this to set the player's name to something other than autogenerated name.
       * 
* * optional string player_name = 7; * @return The bytes for playerName. */ public com.google.protobuf.ByteString getPlayerNameBytes() { java.lang.Object ref = playerName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); playerName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Use this to set the player's name to something other than autogenerated name.
       * 
* * optional string player_name = 7; * @param value The playerName to set. * @return This builder for chaining. */ public Builder setPlayerName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000040; playerName_ = value; onChanged(); return this; } /** *
       * Use this to set the player's name to something other than autogenerated name.
       * 
* * optional string player_name = 7; * @return This builder for chaining. */ public Builder clearPlayerName() { bitField0_ = (bitField0_ & ~0x00000040); playerName_ = getDefaultInstance().getPlayerName(); onChanged(); return this; } /** *
       * Use this to set the player's name to something other than autogenerated name.
       * 
* * optional string player_name = 7; * @param value The bytes for playerName to set. * @return This builder for chaining. */ public Builder setPlayerNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000040; playerName_ = value; onChanged(); return this; } private java.lang.Object hostIp_ = ""; /** *
       * Both game creator and joiner should provide the ip address of the game creator in order to play remotely. Defaults to localhost.
       * 
* * optional string host_ip = 8; * @return Whether the hostIp field is set. */ public boolean hasHostIp() { return ((bitField0_ & 0x00000080) != 0); } /** *
       * Both game creator and joiner should provide the ip address of the game creator in order to play remotely. Defaults to localhost.
       * 
* * optional string host_ip = 8; * @return The hostIp. */ public java.lang.String getHostIp() { java.lang.Object ref = hostIp_; 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()) { hostIp_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
       * Both game creator and joiner should provide the ip address of the game creator in order to play remotely. Defaults to localhost.
       * 
* * optional string host_ip = 8; * @return The bytes for hostIp. */ public com.google.protobuf.ByteString getHostIpBytes() { java.lang.Object ref = hostIp_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); hostIp_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Both game creator and joiner should provide the ip address of the game creator in order to play remotely. Defaults to localhost.
       * 
* * optional string host_ip = 8; * @param value The hostIp to set. * @return This builder for chaining. */ public Builder setHostIp( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000080; hostIp_ = value; onChanged(); return this; } /** *
       * Both game creator and joiner should provide the ip address of the game creator in order to play remotely. Defaults to localhost.
       * 
* * optional string host_ip = 8; * @return This builder for chaining. */ public Builder clearHostIp() { bitField0_ = (bitField0_ & ~0x00000080); hostIp_ = getDefaultInstance().getHostIp(); onChanged(); return this; } /** *
       * Both game creator and joiner should provide the ip address of the game creator in order to play remotely. Defaults to localhost.
       * 
* * optional string host_ip = 8; * @param value The bytes for hostIp to set. * @return This builder for chaining. */ public Builder setHostIpBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000080; hostIp_ = value; 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.RequestJoinGame) } // @@protoc_insertion_point(class_scope:SC2APIProtocol.RequestJoinGame) private static final SC2APIProtocol.Sc2Api.RequestJoinGame DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new SC2APIProtocol.Sc2Api.RequestJoinGame(); } public static SC2APIProtocol.Sc2Api.RequestJoinGame getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public RequestJoinGame 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.Sc2Api.RequestJoinGame getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PortSetOrBuilder extends // @@protoc_insertion_point(interface_extends:SC2APIProtocol.PortSet) com.google.protobuf.MessageOrBuilder { /** *
     * Game right now needs two internal ports to establish a multiplay game on the local host.
     * 
* * optional int32 game_port = 1; * @return Whether the gamePort field is set. */ boolean hasGamePort(); /** *
     * Game right now needs two internal ports to establish a multiplay game on the local host.
     * 
* * optional int32 game_port = 1; * @return The gamePort. */ int getGamePort(); /** * optional int32 base_port = 2; * @return Whether the basePort field is set. */ boolean hasBasePort(); /** * optional int32 base_port = 2; * @return The basePort. */ int getBasePort(); } /** * Protobuf type {@code SC2APIProtocol.PortSet} */ public static final class PortSet extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:SC2APIProtocol.PortSet) PortSetOrBuilder { private static final long serialVersionUID = 0L; // Use PortSet.newBuilder() to construct. private PortSet(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PortSet() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new PortSet(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_PortSet_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_PortSet_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Sc2Api.PortSet.class, SC2APIProtocol.Sc2Api.PortSet.Builder.class); } private int bitField0_; public static final int GAME_PORT_FIELD_NUMBER = 1; private int gamePort_; /** *
     * Game right now needs two internal ports to establish a multiplay game on the local host.
     * 
* * optional int32 game_port = 1; * @return Whether the gamePort field is set. */ @java.lang.Override public boolean hasGamePort() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * Game right now needs two internal ports to establish a multiplay game on the local host.
     * 
* * optional int32 game_port = 1; * @return The gamePort. */ @java.lang.Override public int getGamePort() { return gamePort_; } public static final int BASE_PORT_FIELD_NUMBER = 2; private int basePort_; /** * optional int32 base_port = 2; * @return Whether the basePort field is set. */ @java.lang.Override public boolean hasBasePort() { return ((bitField0_ & 0x00000002) != 0); } /** * optional int32 base_port = 2; * @return The basePort. */ @java.lang.Override public int getBasePort() { return basePort_; } 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.writeInt32(1, gamePort_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeInt32(2, basePort_); } 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 .computeInt32Size(1, gamePort_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, basePort_); } 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.Sc2Api.PortSet)) { return super.equals(obj); } SC2APIProtocol.Sc2Api.PortSet other = (SC2APIProtocol.Sc2Api.PortSet) obj; if (hasGamePort() != other.hasGamePort()) return false; if (hasGamePort()) { if (getGamePort() != other.getGamePort()) return false; } if (hasBasePort() != other.hasBasePort()) return false; if (hasBasePort()) { if (getBasePort() != other.getBasePort()) 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 (hasGamePort()) { hash = (37 * hash) + GAME_PORT_FIELD_NUMBER; hash = (53 * hash) + getGamePort(); } if (hasBasePort()) { hash = (37 * hash) + BASE_PORT_FIELD_NUMBER; hash = (53 * hash) + getBasePort(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static SC2APIProtocol.Sc2Api.PortSet parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.PortSet parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.PortSet parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.PortSet parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.PortSet parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.PortSet parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.PortSet parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.PortSet 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.Sc2Api.PortSet parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.PortSet 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.Sc2Api.PortSet parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.PortSet 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.Sc2Api.PortSet 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.PortSet} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:SC2APIProtocol.PortSet) SC2APIProtocol.Sc2Api.PortSetOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_PortSet_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_PortSet_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Sc2Api.PortSet.class, SC2APIProtocol.Sc2Api.PortSet.Builder.class); } // Construct using SC2APIProtocol.Sc2Api.PortSet.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); gamePort_ = 0; bitField0_ = (bitField0_ & ~0x00000001); basePort_ = 0; bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_PortSet_descriptor; } @java.lang.Override public SC2APIProtocol.Sc2Api.PortSet getDefaultInstanceForType() { return SC2APIProtocol.Sc2Api.PortSet.getDefaultInstance(); } @java.lang.Override public SC2APIProtocol.Sc2Api.PortSet build() { SC2APIProtocol.Sc2Api.PortSet result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public SC2APIProtocol.Sc2Api.PortSet buildPartial() { SC2APIProtocol.Sc2Api.PortSet result = new SC2APIProtocol.Sc2Api.PortSet(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.gamePort_ = gamePort_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.basePort_ = basePort_; 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.Sc2Api.PortSet) { return mergeFrom((SC2APIProtocol.Sc2Api.PortSet)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(SC2APIProtocol.Sc2Api.PortSet other) { if (other == SC2APIProtocol.Sc2Api.PortSet.getDefaultInstance()) return this; if (other.hasGamePort()) { setGamePort(other.getGamePort()); } if (other.hasBasePort()) { setBasePort(other.getBasePort()); } 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: { gamePort_ = input.readInt32(); bitField0_ |= 0x00000001; break; } // case 8 case 16: { basePort_ = 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 gamePort_ ; /** *
       * Game right now needs two internal ports to establish a multiplay game on the local host.
       * 
* * optional int32 game_port = 1; * @return Whether the gamePort field is set. */ @java.lang.Override public boolean hasGamePort() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * Game right now needs two internal ports to establish a multiplay game on the local host.
       * 
* * optional int32 game_port = 1; * @return The gamePort. */ @java.lang.Override public int getGamePort() { return gamePort_; } /** *
       * Game right now needs two internal ports to establish a multiplay game on the local host.
       * 
* * optional int32 game_port = 1; * @param value The gamePort to set. * @return This builder for chaining. */ public Builder setGamePort(int value) { bitField0_ |= 0x00000001; gamePort_ = value; onChanged(); return this; } /** *
       * Game right now needs two internal ports to establish a multiplay game on the local host.
       * 
* * optional int32 game_port = 1; * @return This builder for chaining. */ public Builder clearGamePort() { bitField0_ = (bitField0_ & ~0x00000001); gamePort_ = 0; onChanged(); return this; } private int basePort_ ; /** * optional int32 base_port = 2; * @return Whether the basePort field is set. */ @java.lang.Override public boolean hasBasePort() { return ((bitField0_ & 0x00000002) != 0); } /** * optional int32 base_port = 2; * @return The basePort. */ @java.lang.Override public int getBasePort() { return basePort_; } /** * optional int32 base_port = 2; * @param value The basePort to set. * @return This builder for chaining. */ public Builder setBasePort(int value) { bitField0_ |= 0x00000002; basePort_ = value; onChanged(); return this; } /** * optional int32 base_port = 2; * @return This builder for chaining. */ public Builder clearBasePort() { bitField0_ = (bitField0_ & ~0x00000002); basePort_ = 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.PortSet) } // @@protoc_insertion_point(class_scope:SC2APIProtocol.PortSet) private static final SC2APIProtocol.Sc2Api.PortSet DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new SC2APIProtocol.Sc2Api.PortSet(); } public static SC2APIProtocol.Sc2Api.PortSet getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PortSet 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.Sc2Api.PortSet getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ResponseJoinGameOrBuilder extends // @@protoc_insertion_point(interface_extends:SC2APIProtocol.ResponseJoinGame) com.google.protobuf.MessageOrBuilder { /** * optional uint32 player_id = 1; * @return Whether the playerId field is set. */ boolean hasPlayerId(); /** * optional uint32 player_id = 1; * @return The playerId. */ int getPlayerId(); /** * optional .SC2APIProtocol.ResponseJoinGame.Error error = 2; * @return Whether the error field is set. */ boolean hasError(); /** * optional .SC2APIProtocol.ResponseJoinGame.Error error = 2; * @return The error. */ SC2APIProtocol.Sc2Api.ResponseJoinGame.Error getError(); /** * optional string error_details = 3; * @return Whether the errorDetails field is set. */ boolean hasErrorDetails(); /** * optional string error_details = 3; * @return The errorDetails. */ java.lang.String getErrorDetails(); /** * optional string error_details = 3; * @return The bytes for errorDetails. */ com.google.protobuf.ByteString getErrorDetailsBytes(); } /** * Protobuf type {@code SC2APIProtocol.ResponseJoinGame} */ public static final class ResponseJoinGame extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:SC2APIProtocol.ResponseJoinGame) ResponseJoinGameOrBuilder { private static final long serialVersionUID = 0L; // Use ResponseJoinGame.newBuilder() to construct. private ResponseJoinGame(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ResponseJoinGame() { error_ = 1; errorDetails_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ResponseJoinGame(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_ResponseJoinGame_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_ResponseJoinGame_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Sc2Api.ResponseJoinGame.class, SC2APIProtocol.Sc2Api.ResponseJoinGame.Builder.class); } /** * Protobuf enum {@code SC2APIProtocol.ResponseJoinGame.Error} */ public enum Error implements com.google.protobuf.ProtocolMessageEnum { /** * MissingParticipation = 1; */ MissingParticipation(1), /** * InvalidObservedPlayerId = 2; */ InvalidObservedPlayerId(2), /** * MissingOptions = 3; */ MissingOptions(3), /** * MissingPorts = 4; */ MissingPorts(4), /** * GameFull = 5; */ GameFull(5), /** * LaunchError = 6; */ LaunchError(6), /** *
       * Multiplayer specific.
       * 
* * FeatureUnsupported = 7; */ FeatureUnsupported(7), /** * NoSpaceForUser = 8; */ NoSpaceForUser(8), /** * MapDoesNotExist = 9; */ MapDoesNotExist(9), /** * CannotOpenMap = 10; */ CannotOpenMap(10), /** * ChecksumError = 11; */ ChecksumError(11), /** * NetworkError = 12; */ NetworkError(12), /** * OtherError = 13; */ OtherError(13), ; /** * MissingParticipation = 1; */ public static final int MissingParticipation_VALUE = 1; /** * InvalidObservedPlayerId = 2; */ public static final int InvalidObservedPlayerId_VALUE = 2; /** * MissingOptions = 3; */ public static final int MissingOptions_VALUE = 3; /** * MissingPorts = 4; */ public static final int MissingPorts_VALUE = 4; /** * GameFull = 5; */ public static final int GameFull_VALUE = 5; /** * LaunchError = 6; */ public static final int LaunchError_VALUE = 6; /** *
       * Multiplayer specific.
       * 
* * FeatureUnsupported = 7; */ public static final int FeatureUnsupported_VALUE = 7; /** * NoSpaceForUser = 8; */ public static final int NoSpaceForUser_VALUE = 8; /** * MapDoesNotExist = 9; */ public static final int MapDoesNotExist_VALUE = 9; /** * CannotOpenMap = 10; */ public static final int CannotOpenMap_VALUE = 10; /** * ChecksumError = 11; */ public static final int ChecksumError_VALUE = 11; /** * NetworkError = 12; */ public static final int NetworkError_VALUE = 12; /** * OtherError = 13; */ public static final int OtherError_VALUE = 13; 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 Error 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 Error forNumber(int value) { switch (value) { case 1: return MissingParticipation; case 2: return InvalidObservedPlayerId; case 3: return MissingOptions; case 4: return MissingPorts; case 5: return GameFull; case 6: return LaunchError; case 7: return FeatureUnsupported; case 8: return NoSpaceForUser; case 9: return MapDoesNotExist; case 10: return CannotOpenMap; case 11: return ChecksumError; case 12: return NetworkError; case 13: return OtherError; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Error> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Error findValueByNumber(int number) { return Error.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.Sc2Api.ResponseJoinGame.getDescriptor().getEnumTypes().get(0); } private static final Error[] VALUES = values(); public static Error 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 Error(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:SC2APIProtocol.ResponseJoinGame.Error) } private int bitField0_; public static final int PLAYER_ID_FIELD_NUMBER = 1; private int playerId_; /** * optional uint32 player_id = 1; * @return Whether the playerId field is set. */ @java.lang.Override public boolean hasPlayerId() { return ((bitField0_ & 0x00000001) != 0); } /** * optional uint32 player_id = 1; * @return The playerId. */ @java.lang.Override public int getPlayerId() { return playerId_; } public static final int ERROR_FIELD_NUMBER = 2; private int error_; /** * optional .SC2APIProtocol.ResponseJoinGame.Error error = 2; * @return Whether the error field is set. */ @java.lang.Override public boolean hasError() { return ((bitField0_ & 0x00000002) != 0); } /** * optional .SC2APIProtocol.ResponseJoinGame.Error error = 2; * @return The error. */ @java.lang.Override public SC2APIProtocol.Sc2Api.ResponseJoinGame.Error getError() { @SuppressWarnings("deprecation") SC2APIProtocol.Sc2Api.ResponseJoinGame.Error result = SC2APIProtocol.Sc2Api.ResponseJoinGame.Error.valueOf(error_); return result == null ? SC2APIProtocol.Sc2Api.ResponseJoinGame.Error.MissingParticipation : result; } public static final int ERROR_DETAILS_FIELD_NUMBER = 3; private volatile java.lang.Object errorDetails_; /** * optional string error_details = 3; * @return Whether the errorDetails field is set. */ @java.lang.Override public boolean hasErrorDetails() { return ((bitField0_ & 0x00000004) != 0); } /** * optional string error_details = 3; * @return The errorDetails. */ @java.lang.Override public java.lang.String getErrorDetails() { java.lang.Object ref = errorDetails_; 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()) { errorDetails_ = s; } return s; } } /** * optional string error_details = 3; * @return The bytes for errorDetails. */ @java.lang.Override public com.google.protobuf.ByteString getErrorDetailsBytes() { java.lang.Object ref = errorDetails_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); errorDetails_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } 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, playerId_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeEnum(2, error_); } if (((bitField0_ & 0x00000004) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, errorDetails_); } 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, playerId_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, error_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, errorDetails_); } 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.Sc2Api.ResponseJoinGame)) { return super.equals(obj); } SC2APIProtocol.Sc2Api.ResponseJoinGame other = (SC2APIProtocol.Sc2Api.ResponseJoinGame) obj; if (hasPlayerId() != other.hasPlayerId()) return false; if (hasPlayerId()) { if (getPlayerId() != other.getPlayerId()) return false; } if (hasError() != other.hasError()) return false; if (hasError()) { if (error_ != other.error_) return false; } if (hasErrorDetails() != other.hasErrorDetails()) return false; if (hasErrorDetails()) { if (!getErrorDetails() .equals(other.getErrorDetails())) 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 (hasPlayerId()) { hash = (37 * hash) + PLAYER_ID_FIELD_NUMBER; hash = (53 * hash) + getPlayerId(); } if (hasError()) { hash = (37 * hash) + ERROR_FIELD_NUMBER; hash = (53 * hash) + error_; } if (hasErrorDetails()) { hash = (37 * hash) + ERROR_DETAILS_FIELD_NUMBER; hash = (53 * hash) + getErrorDetails().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static SC2APIProtocol.Sc2Api.ResponseJoinGame parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.ResponseJoinGame parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.ResponseJoinGame parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.ResponseJoinGame parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.ResponseJoinGame parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.ResponseJoinGame parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.ResponseJoinGame parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.ResponseJoinGame 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.Sc2Api.ResponseJoinGame parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.ResponseJoinGame 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.Sc2Api.ResponseJoinGame parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.ResponseJoinGame 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.Sc2Api.ResponseJoinGame 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.ResponseJoinGame} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:SC2APIProtocol.ResponseJoinGame) SC2APIProtocol.Sc2Api.ResponseJoinGameOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_ResponseJoinGame_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_ResponseJoinGame_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Sc2Api.ResponseJoinGame.class, SC2APIProtocol.Sc2Api.ResponseJoinGame.Builder.class); } // Construct using SC2APIProtocol.Sc2Api.ResponseJoinGame.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); playerId_ = 0; bitField0_ = (bitField0_ & ~0x00000001); error_ = 1; bitField0_ = (bitField0_ & ~0x00000002); errorDetails_ = ""; bitField0_ = (bitField0_ & ~0x00000004); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_ResponseJoinGame_descriptor; } @java.lang.Override public SC2APIProtocol.Sc2Api.ResponseJoinGame getDefaultInstanceForType() { return SC2APIProtocol.Sc2Api.ResponseJoinGame.getDefaultInstance(); } @java.lang.Override public SC2APIProtocol.Sc2Api.ResponseJoinGame build() { SC2APIProtocol.Sc2Api.ResponseJoinGame result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public SC2APIProtocol.Sc2Api.ResponseJoinGame buildPartial() { SC2APIProtocol.Sc2Api.ResponseJoinGame result = new SC2APIProtocol.Sc2Api.ResponseJoinGame(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.playerId_ = playerId_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { to_bitField0_ |= 0x00000002; } result.error_ = error_; if (((from_bitField0_ & 0x00000004) != 0)) { to_bitField0_ |= 0x00000004; } result.errorDetails_ = errorDetails_; 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.Sc2Api.ResponseJoinGame) { return mergeFrom((SC2APIProtocol.Sc2Api.ResponseJoinGame)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(SC2APIProtocol.Sc2Api.ResponseJoinGame other) { if (other == SC2APIProtocol.Sc2Api.ResponseJoinGame.getDefaultInstance()) return this; if (other.hasPlayerId()) { setPlayerId(other.getPlayerId()); } if (other.hasError()) { setError(other.getError()); } if (other.hasErrorDetails()) { bitField0_ |= 0x00000004; errorDetails_ = other.errorDetails_; 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: { playerId_ = input.readUInt32(); bitField0_ |= 0x00000001; break; } // case 8 case 16: { int tmpRaw = input.readEnum(); SC2APIProtocol.Sc2Api.ResponseJoinGame.Error tmpValue = SC2APIProtocol.Sc2Api.ResponseJoinGame.Error.forNumber(tmpRaw); if (tmpValue == null) { mergeUnknownVarintField(2, tmpRaw); } else { error_ = tmpRaw; bitField0_ |= 0x00000002; } break; } // case 16 case 26: { errorDetails_ = input.readBytes(); 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 int playerId_ ; /** * optional uint32 player_id = 1; * @return Whether the playerId field is set. */ @java.lang.Override public boolean hasPlayerId() { return ((bitField0_ & 0x00000001) != 0); } /** * optional uint32 player_id = 1; * @return The playerId. */ @java.lang.Override public int getPlayerId() { return playerId_; } /** * optional uint32 player_id = 1; * @param value The playerId to set. * @return This builder for chaining. */ public Builder setPlayerId(int value) { bitField0_ |= 0x00000001; playerId_ = value; onChanged(); return this; } /** * optional uint32 player_id = 1; * @return This builder for chaining. */ public Builder clearPlayerId() { bitField0_ = (bitField0_ & ~0x00000001); playerId_ = 0; onChanged(); return this; } private int error_ = 1; /** * optional .SC2APIProtocol.ResponseJoinGame.Error error = 2; * @return Whether the error field is set. */ @java.lang.Override public boolean hasError() { return ((bitField0_ & 0x00000002) != 0); } /** * optional .SC2APIProtocol.ResponseJoinGame.Error error = 2; * @return The error. */ @java.lang.Override public SC2APIProtocol.Sc2Api.ResponseJoinGame.Error getError() { @SuppressWarnings("deprecation") SC2APIProtocol.Sc2Api.ResponseJoinGame.Error result = SC2APIProtocol.Sc2Api.ResponseJoinGame.Error.valueOf(error_); return result == null ? SC2APIProtocol.Sc2Api.ResponseJoinGame.Error.MissingParticipation : result; } /** * optional .SC2APIProtocol.ResponseJoinGame.Error error = 2; * @param value The error to set. * @return This builder for chaining. */ public Builder setError(SC2APIProtocol.Sc2Api.ResponseJoinGame.Error value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; error_ = value.getNumber(); onChanged(); return this; } /** * optional .SC2APIProtocol.ResponseJoinGame.Error error = 2; * @return This builder for chaining. */ public Builder clearError() { bitField0_ = (bitField0_ & ~0x00000002); error_ = 1; onChanged(); return this; } private java.lang.Object errorDetails_ = ""; /** * optional string error_details = 3; * @return Whether the errorDetails field is set. */ public boolean hasErrorDetails() { return ((bitField0_ & 0x00000004) != 0); } /** * optional string error_details = 3; * @return The errorDetails. */ public java.lang.String getErrorDetails() { java.lang.Object ref = errorDetails_; 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()) { errorDetails_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string error_details = 3; * @return The bytes for errorDetails. */ public com.google.protobuf.ByteString getErrorDetailsBytes() { java.lang.Object ref = errorDetails_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); errorDetails_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string error_details = 3; * @param value The errorDetails to set. * @return This builder for chaining. */ public Builder setErrorDetails( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; errorDetails_ = value; onChanged(); return this; } /** * optional string error_details = 3; * @return This builder for chaining. */ public Builder clearErrorDetails() { bitField0_ = (bitField0_ & ~0x00000004); errorDetails_ = getDefaultInstance().getErrorDetails(); onChanged(); return this; } /** * optional string error_details = 3; * @param value The bytes for errorDetails to set. * @return This builder for chaining. */ public Builder setErrorDetailsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; errorDetails_ = value; 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.ResponseJoinGame) } // @@protoc_insertion_point(class_scope:SC2APIProtocol.ResponseJoinGame) private static final SC2APIProtocol.Sc2Api.ResponseJoinGame DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new SC2APIProtocol.Sc2Api.ResponseJoinGame(); } public static SC2APIProtocol.Sc2Api.ResponseJoinGame getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ResponseJoinGame 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.Sc2Api.ResponseJoinGame getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RequestRestartGameOrBuilder extends // @@protoc_insertion_point(interface_extends:SC2APIProtocol.RequestRestartGame) com.google.protobuf.MessageOrBuilder { } /** *
   *-----------------------------------------------------------------------------
   * 
* * Protobuf type {@code SC2APIProtocol.RequestRestartGame} */ public static final class RequestRestartGame extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:SC2APIProtocol.RequestRestartGame) RequestRestartGameOrBuilder { private static final long serialVersionUID = 0L; // Use RequestRestartGame.newBuilder() to construct. private RequestRestartGame(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RequestRestartGame() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new RequestRestartGame(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_RequestRestartGame_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_RequestRestartGame_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Sc2Api.RequestRestartGame.class, SC2APIProtocol.Sc2Api.RequestRestartGame.Builder.class); } 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 { getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; 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.Sc2Api.RequestRestartGame)) { return super.equals(obj); } SC2APIProtocol.Sc2Api.RequestRestartGame other = (SC2APIProtocol.Sc2Api.RequestRestartGame) obj; 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(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static SC2APIProtocol.Sc2Api.RequestRestartGame parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.RequestRestartGame parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.RequestRestartGame parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.RequestRestartGame parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.RequestRestartGame parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.RequestRestartGame parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.RequestRestartGame parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.RequestRestartGame 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.Sc2Api.RequestRestartGame parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.RequestRestartGame 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.Sc2Api.RequestRestartGame parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.RequestRestartGame 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.Sc2Api.RequestRestartGame 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.RequestRestartGame} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:SC2APIProtocol.RequestRestartGame) SC2APIProtocol.Sc2Api.RequestRestartGameOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_RequestRestartGame_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_RequestRestartGame_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Sc2Api.RequestRestartGame.class, SC2APIProtocol.Sc2Api.RequestRestartGame.Builder.class); } // Construct using SC2APIProtocol.Sc2Api.RequestRestartGame.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_RequestRestartGame_descriptor; } @java.lang.Override public SC2APIProtocol.Sc2Api.RequestRestartGame getDefaultInstanceForType() { return SC2APIProtocol.Sc2Api.RequestRestartGame.getDefaultInstance(); } @java.lang.Override public SC2APIProtocol.Sc2Api.RequestRestartGame build() { SC2APIProtocol.Sc2Api.RequestRestartGame result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public SC2APIProtocol.Sc2Api.RequestRestartGame buildPartial() { SC2APIProtocol.Sc2Api.RequestRestartGame result = new SC2APIProtocol.Sc2Api.RequestRestartGame(this); 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.Sc2Api.RequestRestartGame) { return mergeFrom((SC2APIProtocol.Sc2Api.RequestRestartGame)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(SC2APIProtocol.Sc2Api.RequestRestartGame other) { if (other == SC2APIProtocol.Sc2Api.RequestRestartGame.getDefaultInstance()) return this; 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; 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; } @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.RequestRestartGame) } // @@protoc_insertion_point(class_scope:SC2APIProtocol.RequestRestartGame) private static final SC2APIProtocol.Sc2Api.RequestRestartGame DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new SC2APIProtocol.Sc2Api.RequestRestartGame(); } public static SC2APIProtocol.Sc2Api.RequestRestartGame getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public RequestRestartGame 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.Sc2Api.RequestRestartGame getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ResponseRestartGameOrBuilder extends // @@protoc_insertion_point(interface_extends:SC2APIProtocol.ResponseRestartGame) com.google.protobuf.MessageOrBuilder { /** * optional .SC2APIProtocol.ResponseRestartGame.Error error = 1; * @return Whether the error field is set. */ boolean hasError(); /** * optional .SC2APIProtocol.ResponseRestartGame.Error error = 1; * @return The error. */ SC2APIProtocol.Sc2Api.ResponseRestartGame.Error getError(); /** * optional string error_details = 2; * @return Whether the errorDetails field is set. */ boolean hasErrorDetails(); /** * optional string error_details = 2; * @return The errorDetails. */ java.lang.String getErrorDetails(); /** * optional string error_details = 2; * @return The bytes for errorDetails. */ com.google.protobuf.ByteString getErrorDetailsBytes(); /** *
     * This will occur once the simulation_loop is greater then defaultRestartGameLoops
     * 
* * optional bool need_hard_reset = 3; * @return Whether the needHardReset field is set. */ boolean hasNeedHardReset(); /** *
     * This will occur once the simulation_loop is greater then defaultRestartGameLoops
     * 
* * optional bool need_hard_reset = 3; * @return The needHardReset. */ boolean getNeedHardReset(); } /** *
   * The defaultRestartGameLoops is specified to be (1<<18) by default
   * 
* * Protobuf type {@code SC2APIProtocol.ResponseRestartGame} */ public static final class ResponseRestartGame extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:SC2APIProtocol.ResponseRestartGame) ResponseRestartGameOrBuilder { private static final long serialVersionUID = 0L; // Use ResponseRestartGame.newBuilder() to construct. private ResponseRestartGame(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ResponseRestartGame() { error_ = 1; errorDetails_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ResponseRestartGame(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_ResponseRestartGame_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_ResponseRestartGame_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Sc2Api.ResponseRestartGame.class, SC2APIProtocol.Sc2Api.ResponseRestartGame.Builder.class); } /** * Protobuf enum {@code SC2APIProtocol.ResponseRestartGame.Error} */ public enum Error implements com.google.protobuf.ProtocolMessageEnum { /** * LaunchError = 1; */ LaunchError(1), ; /** * LaunchError = 1; */ public static final int LaunchError_VALUE = 1; 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 Error 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 Error forNumber(int value) { switch (value) { case 1: return LaunchError; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Error> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Error findValueByNumber(int number) { return Error.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.Sc2Api.ResponseRestartGame.getDescriptor().getEnumTypes().get(0); } private static final Error[] VALUES = values(); public static Error 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 Error(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:SC2APIProtocol.ResponseRestartGame.Error) } private int bitField0_; public static final int ERROR_FIELD_NUMBER = 1; private int error_; /** * optional .SC2APIProtocol.ResponseRestartGame.Error error = 1; * @return Whether the error field is set. */ @java.lang.Override public boolean hasError() { return ((bitField0_ & 0x00000001) != 0); } /** * optional .SC2APIProtocol.ResponseRestartGame.Error error = 1; * @return The error. */ @java.lang.Override public SC2APIProtocol.Sc2Api.ResponseRestartGame.Error getError() { @SuppressWarnings("deprecation") SC2APIProtocol.Sc2Api.ResponseRestartGame.Error result = SC2APIProtocol.Sc2Api.ResponseRestartGame.Error.valueOf(error_); return result == null ? SC2APIProtocol.Sc2Api.ResponseRestartGame.Error.LaunchError : result; } public static final int ERROR_DETAILS_FIELD_NUMBER = 2; private volatile java.lang.Object errorDetails_; /** * optional string error_details = 2; * @return Whether the errorDetails field is set. */ @java.lang.Override public boolean hasErrorDetails() { return ((bitField0_ & 0x00000002) != 0); } /** * optional string error_details = 2; * @return The errorDetails. */ @java.lang.Override public java.lang.String getErrorDetails() { java.lang.Object ref = errorDetails_; 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()) { errorDetails_ = s; } return s; } } /** * optional string error_details = 2; * @return The bytes for errorDetails. */ @java.lang.Override public com.google.protobuf.ByteString getErrorDetailsBytes() { java.lang.Object ref = errorDetails_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); errorDetails_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int NEED_HARD_RESET_FIELD_NUMBER = 3; private boolean needHardReset_; /** *
     * This will occur once the simulation_loop is greater then defaultRestartGameLoops
     * 
* * optional bool need_hard_reset = 3; * @return Whether the needHardReset field is set. */ @java.lang.Override public boolean hasNeedHardReset() { return ((bitField0_ & 0x00000004) != 0); } /** *
     * This will occur once the simulation_loop is greater then defaultRestartGameLoops
     * 
* * optional bool need_hard_reset = 3; * @return The needHardReset. */ @java.lang.Override public boolean getNeedHardReset() { return needHardReset_; } 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, error_); } if (((bitField0_ & 0x00000002) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, errorDetails_); } if (((bitField0_ & 0x00000004) != 0)) { output.writeBool(3, needHardReset_); } 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, error_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, errorDetails_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(3, needHardReset_); } 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.Sc2Api.ResponseRestartGame)) { return super.equals(obj); } SC2APIProtocol.Sc2Api.ResponseRestartGame other = (SC2APIProtocol.Sc2Api.ResponseRestartGame) obj; if (hasError() != other.hasError()) return false; if (hasError()) { if (error_ != other.error_) return false; } if (hasErrorDetails() != other.hasErrorDetails()) return false; if (hasErrorDetails()) { if (!getErrorDetails() .equals(other.getErrorDetails())) return false; } if (hasNeedHardReset() != other.hasNeedHardReset()) return false; if (hasNeedHardReset()) { if (getNeedHardReset() != other.getNeedHardReset()) 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 (hasError()) { hash = (37 * hash) + ERROR_FIELD_NUMBER; hash = (53 * hash) + error_; } if (hasErrorDetails()) { hash = (37 * hash) + ERROR_DETAILS_FIELD_NUMBER; hash = (53 * hash) + getErrorDetails().hashCode(); } if (hasNeedHardReset()) { hash = (37 * hash) + NEED_HARD_RESET_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getNeedHardReset()); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static SC2APIProtocol.Sc2Api.ResponseRestartGame parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.ResponseRestartGame parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.ResponseRestartGame parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.ResponseRestartGame parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.ResponseRestartGame parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.ResponseRestartGame parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.ResponseRestartGame parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.ResponseRestartGame 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.Sc2Api.ResponseRestartGame parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.ResponseRestartGame 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.Sc2Api.ResponseRestartGame parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.ResponseRestartGame 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.Sc2Api.ResponseRestartGame 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; } /** *
     * The defaultRestartGameLoops is specified to be (1<<18) by default
     * 
* * Protobuf type {@code SC2APIProtocol.ResponseRestartGame} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:SC2APIProtocol.ResponseRestartGame) SC2APIProtocol.Sc2Api.ResponseRestartGameOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_ResponseRestartGame_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_ResponseRestartGame_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Sc2Api.ResponseRestartGame.class, SC2APIProtocol.Sc2Api.ResponseRestartGame.Builder.class); } // Construct using SC2APIProtocol.Sc2Api.ResponseRestartGame.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); error_ = 1; bitField0_ = (bitField0_ & ~0x00000001); errorDetails_ = ""; bitField0_ = (bitField0_ & ~0x00000002); needHardReset_ = false; bitField0_ = (bitField0_ & ~0x00000004); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_ResponseRestartGame_descriptor; } @java.lang.Override public SC2APIProtocol.Sc2Api.ResponseRestartGame getDefaultInstanceForType() { return SC2APIProtocol.Sc2Api.ResponseRestartGame.getDefaultInstance(); } @java.lang.Override public SC2APIProtocol.Sc2Api.ResponseRestartGame build() { SC2APIProtocol.Sc2Api.ResponseRestartGame result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public SC2APIProtocol.Sc2Api.ResponseRestartGame buildPartial() { SC2APIProtocol.Sc2Api.ResponseRestartGame result = new SC2APIProtocol.Sc2Api.ResponseRestartGame(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { to_bitField0_ |= 0x00000001; } result.error_ = error_; if (((from_bitField0_ & 0x00000002) != 0)) { to_bitField0_ |= 0x00000002; } result.errorDetails_ = errorDetails_; if (((from_bitField0_ & 0x00000004) != 0)) { result.needHardReset_ = needHardReset_; 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.Sc2Api.ResponseRestartGame) { return mergeFrom((SC2APIProtocol.Sc2Api.ResponseRestartGame)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(SC2APIProtocol.Sc2Api.ResponseRestartGame other) { if (other == SC2APIProtocol.Sc2Api.ResponseRestartGame.getDefaultInstance()) return this; if (other.hasError()) { setError(other.getError()); } if (other.hasErrorDetails()) { bitField0_ |= 0x00000002; errorDetails_ = other.errorDetails_; onChanged(); } if (other.hasNeedHardReset()) { setNeedHardReset(other.getNeedHardReset()); } 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.Sc2Api.ResponseRestartGame.Error tmpValue = SC2APIProtocol.Sc2Api.ResponseRestartGame.Error.forNumber(tmpRaw); if (tmpValue == null) { mergeUnknownVarintField(1, tmpRaw); } else { error_ = tmpRaw; bitField0_ |= 0x00000001; } break; } // case 8 case 18: { errorDetails_ = input.readBytes(); bitField0_ |= 0x00000002; break; } // case 18 case 24: { needHardReset_ = input.readBool(); 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 error_ = 1; /** * optional .SC2APIProtocol.ResponseRestartGame.Error error = 1; * @return Whether the error field is set. */ @java.lang.Override public boolean hasError() { return ((bitField0_ & 0x00000001) != 0); } /** * optional .SC2APIProtocol.ResponseRestartGame.Error error = 1; * @return The error. */ @java.lang.Override public SC2APIProtocol.Sc2Api.ResponseRestartGame.Error getError() { @SuppressWarnings("deprecation") SC2APIProtocol.Sc2Api.ResponseRestartGame.Error result = SC2APIProtocol.Sc2Api.ResponseRestartGame.Error.valueOf(error_); return result == null ? SC2APIProtocol.Sc2Api.ResponseRestartGame.Error.LaunchError : result; } /** * optional .SC2APIProtocol.ResponseRestartGame.Error error = 1; * @param value The error to set. * @return This builder for chaining. */ public Builder setError(SC2APIProtocol.Sc2Api.ResponseRestartGame.Error value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; error_ = value.getNumber(); onChanged(); return this; } /** * optional .SC2APIProtocol.ResponseRestartGame.Error error = 1; * @return This builder for chaining. */ public Builder clearError() { bitField0_ = (bitField0_ & ~0x00000001); error_ = 1; onChanged(); return this; } private java.lang.Object errorDetails_ = ""; /** * optional string error_details = 2; * @return Whether the errorDetails field is set. */ public boolean hasErrorDetails() { return ((bitField0_ & 0x00000002) != 0); } /** * optional string error_details = 2; * @return The errorDetails. */ public java.lang.String getErrorDetails() { java.lang.Object ref = errorDetails_; 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()) { errorDetails_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string error_details = 2; * @return The bytes for errorDetails. */ public com.google.protobuf.ByteString getErrorDetailsBytes() { java.lang.Object ref = errorDetails_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); errorDetails_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string error_details = 2; * @param value The errorDetails to set. * @return This builder for chaining. */ public Builder setErrorDetails( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; errorDetails_ = value; onChanged(); return this; } /** * optional string error_details = 2; * @return This builder for chaining. */ public Builder clearErrorDetails() { bitField0_ = (bitField0_ & ~0x00000002); errorDetails_ = getDefaultInstance().getErrorDetails(); onChanged(); return this; } /** * optional string error_details = 2; * @param value The bytes for errorDetails to set. * @return This builder for chaining. */ public Builder setErrorDetailsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; errorDetails_ = value; onChanged(); return this; } private boolean needHardReset_ ; /** *
       * This will occur once the simulation_loop is greater then defaultRestartGameLoops
       * 
* * optional bool need_hard_reset = 3; * @return Whether the needHardReset field is set. */ @java.lang.Override public boolean hasNeedHardReset() { return ((bitField0_ & 0x00000004) != 0); } /** *
       * This will occur once the simulation_loop is greater then defaultRestartGameLoops
       * 
* * optional bool need_hard_reset = 3; * @return The needHardReset. */ @java.lang.Override public boolean getNeedHardReset() { return needHardReset_; } /** *
       * This will occur once the simulation_loop is greater then defaultRestartGameLoops
       * 
* * optional bool need_hard_reset = 3; * @param value The needHardReset to set. * @return This builder for chaining. */ public Builder setNeedHardReset(boolean value) { bitField0_ |= 0x00000004; needHardReset_ = value; onChanged(); return this; } /** *
       * This will occur once the simulation_loop is greater then defaultRestartGameLoops
       * 
* * optional bool need_hard_reset = 3; * @return This builder for chaining. */ public Builder clearNeedHardReset() { bitField0_ = (bitField0_ & ~0x00000004); needHardReset_ = false; 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.ResponseRestartGame) } // @@protoc_insertion_point(class_scope:SC2APIProtocol.ResponseRestartGame) private static final SC2APIProtocol.Sc2Api.ResponseRestartGame DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new SC2APIProtocol.Sc2Api.ResponseRestartGame(); } public static SC2APIProtocol.Sc2Api.ResponseRestartGame getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ResponseRestartGame 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.Sc2Api.ResponseRestartGame getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RequestStartReplayOrBuilder extends // @@protoc_insertion_point(interface_extends:SC2APIProtocol.RequestStartReplay) com.google.protobuf.MessageOrBuilder { /** * string replay_path = 1; * @return Whether the replayPath field is set. */ boolean hasReplayPath(); /** * string replay_path = 1; * @return The replayPath. */ java.lang.String getReplayPath(); /** * string replay_path = 1; * @return The bytes for replayPath. */ com.google.protobuf.ByteString getReplayPathBytes(); /** * bytes replay_data = 5; * @return Whether the replayData field is set. */ boolean hasReplayData(); /** * bytes replay_data = 5; * @return The replayData. */ com.google.protobuf.ByteString getReplayData(); /** *
     * Overrides the map path stored in the replay.
     * 
* * optional bytes map_data = 6; * @return Whether the mapData field is set. */ boolean hasMapData(); /** *
     * Overrides the map path stored in the replay.
     * 
* * optional bytes map_data = 6; * @return The mapData. */ com.google.protobuf.ByteString getMapData(); /** * optional int32 observed_player_id = 2; * @return Whether the observedPlayerId field is set. */ boolean hasObservedPlayerId(); /** * optional int32 observed_player_id = 2; * @return The observedPlayerId. */ int getObservedPlayerId(); /** * optional .SC2APIProtocol.InterfaceOptions options = 3; * @return Whether the options field is set. */ boolean hasOptions(); /** * optional .SC2APIProtocol.InterfaceOptions options = 3; * @return The options. */ SC2APIProtocol.Sc2Api.InterfaceOptions getOptions(); /** * optional .SC2APIProtocol.InterfaceOptions options = 3; */ SC2APIProtocol.Sc2Api.InterfaceOptionsOrBuilder getOptionsOrBuilder(); /** * optional bool disable_fog = 4; * @return Whether the disableFog field is set. */ boolean hasDisableFog(); /** * optional bool disable_fog = 4; * @return The disableFog. */ boolean getDisableFog(); /** * optional bool realtime = 7; * @return Whether the realtime field is set. */ boolean hasRealtime(); /** * optional bool realtime = 7; * @return The realtime. */ boolean getRealtime(); /** *
     * Allow RequestSaveReplay from a replay. Useful for truncating a replay, or restoring tracker.events.
     * 
* * optional bool record_replay = 8; * @return Whether the recordReplay field is set. */ boolean hasRecordReplay(); /** *
     * Allow RequestSaveReplay from a replay. Useful for truncating a replay, or restoring tracker.events.
     * 
* * optional bool record_replay = 8; * @return The recordReplay. */ boolean getRecordReplay(); public SC2APIProtocol.Sc2Api.RequestStartReplay.ReplayCase getReplayCase(); } /** *
   *-----------------------------------------------------------------------------
   * 
* * Protobuf type {@code SC2APIProtocol.RequestStartReplay} */ public static final class RequestStartReplay extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:SC2APIProtocol.RequestStartReplay) RequestStartReplayOrBuilder { private static final long serialVersionUID = 0L; // Use RequestStartReplay.newBuilder() to construct. private RequestStartReplay(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RequestStartReplay() { mapData_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new RequestStartReplay(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_RequestStartReplay_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_RequestStartReplay_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Sc2Api.RequestStartReplay.class, SC2APIProtocol.Sc2Api.RequestStartReplay.Builder.class); } private int bitField0_; private int replayCase_ = 0; private java.lang.Object replay_; public enum ReplayCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { REPLAY_PATH(1), REPLAY_DATA(5), REPLAY_NOT_SET(0); private final int value; private ReplayCase(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 ReplayCase valueOf(int value) { return forNumber(value); } public static ReplayCase forNumber(int value) { switch (value) { case 1: return REPLAY_PATH; case 5: return REPLAY_DATA; case 0: return REPLAY_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public ReplayCase getReplayCase() { return ReplayCase.forNumber( replayCase_); } public static final int REPLAY_PATH_FIELD_NUMBER = 1; /** * string replay_path = 1; * @return Whether the replayPath field is set. */ public boolean hasReplayPath() { return replayCase_ == 1; } /** * string replay_path = 1; * @return The replayPath. */ public java.lang.String getReplayPath() { java.lang.Object ref = ""; if (replayCase_ == 1) { ref = replay_; } 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() && (replayCase_ == 1)) { replay_ = s; } return s; } } /** * string replay_path = 1; * @return The bytes for replayPath. */ public com.google.protobuf.ByteString getReplayPathBytes() { java.lang.Object ref = ""; if (replayCase_ == 1) { ref = replay_; } if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (replayCase_ == 1) { replay_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int REPLAY_DATA_FIELD_NUMBER = 5; /** * bytes replay_data = 5; * @return Whether the replayData field is set. */ @java.lang.Override public boolean hasReplayData() { return replayCase_ == 5; } /** * bytes replay_data = 5; * @return The replayData. */ @java.lang.Override public com.google.protobuf.ByteString getReplayData() { if (replayCase_ == 5) { return (com.google.protobuf.ByteString) replay_; } return com.google.protobuf.ByteString.EMPTY; } public static final int MAP_DATA_FIELD_NUMBER = 6; private com.google.protobuf.ByteString mapData_; /** *
     * Overrides the map path stored in the replay.
     * 
* * optional bytes map_data = 6; * @return Whether the mapData field is set. */ @java.lang.Override public boolean hasMapData() { return ((bitField0_ & 0x00000004) != 0); } /** *
     * Overrides the map path stored in the replay.
     * 
* * optional bytes map_data = 6; * @return The mapData. */ @java.lang.Override public com.google.protobuf.ByteString getMapData() { return mapData_; } public static final int OBSERVED_PLAYER_ID_FIELD_NUMBER = 2; private int observedPlayerId_; /** * optional int32 observed_player_id = 2; * @return Whether the observedPlayerId field is set. */ @java.lang.Override public boolean hasObservedPlayerId() { return ((bitField0_ & 0x00000008) != 0); } /** * optional int32 observed_player_id = 2; * @return The observedPlayerId. */ @java.lang.Override public int getObservedPlayerId() { return observedPlayerId_; } public static final int OPTIONS_FIELD_NUMBER = 3; private SC2APIProtocol.Sc2Api.InterfaceOptions options_; /** * optional .SC2APIProtocol.InterfaceOptions options = 3; * @return Whether the options field is set. */ @java.lang.Override public boolean hasOptions() { return ((bitField0_ & 0x00000010) != 0); } /** * optional .SC2APIProtocol.InterfaceOptions options = 3; * @return The options. */ @java.lang.Override public SC2APIProtocol.Sc2Api.InterfaceOptions getOptions() { return options_ == null ? SC2APIProtocol.Sc2Api.InterfaceOptions.getDefaultInstance() : options_; } /** * optional .SC2APIProtocol.InterfaceOptions options = 3; */ @java.lang.Override public SC2APIProtocol.Sc2Api.InterfaceOptionsOrBuilder getOptionsOrBuilder() { return options_ == null ? SC2APIProtocol.Sc2Api.InterfaceOptions.getDefaultInstance() : options_; } public static final int DISABLE_FOG_FIELD_NUMBER = 4; private boolean disableFog_; /** * optional bool disable_fog = 4; * @return Whether the disableFog field is set. */ @java.lang.Override public boolean hasDisableFog() { return ((bitField0_ & 0x00000020) != 0); } /** * optional bool disable_fog = 4; * @return The disableFog. */ @java.lang.Override public boolean getDisableFog() { return disableFog_; } public static final int REALTIME_FIELD_NUMBER = 7; private boolean realtime_; /** * optional bool realtime = 7; * @return Whether the realtime field is set. */ @java.lang.Override public boolean hasRealtime() { return ((bitField0_ & 0x00000040) != 0); } /** * optional bool realtime = 7; * @return The realtime. */ @java.lang.Override public boolean getRealtime() { return realtime_; } public static final int RECORD_REPLAY_FIELD_NUMBER = 8; private boolean recordReplay_; /** *
     * Allow RequestSaveReplay from a replay. Useful for truncating a replay, or restoring tracker.events.
     * 
* * optional bool record_replay = 8; * @return Whether the recordReplay field is set. */ @java.lang.Override public boolean hasRecordReplay() { return ((bitField0_ & 0x00000080) != 0); } /** *
     * Allow RequestSaveReplay from a replay. Useful for truncating a replay, or restoring tracker.events.
     * 
* * optional bool record_replay = 8; * @return The recordReplay. */ @java.lang.Override public boolean getRecordReplay() { return recordReplay_; } 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 (replayCase_ == 1) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, replay_); } if (((bitField0_ & 0x00000008) != 0)) { output.writeInt32(2, observedPlayerId_); } if (((bitField0_ & 0x00000010) != 0)) { output.writeMessage(3, getOptions()); } if (((bitField0_ & 0x00000020) != 0)) { output.writeBool(4, disableFog_); } if (replayCase_ == 5) { output.writeBytes( 5, (com.google.protobuf.ByteString) replay_); } if (((bitField0_ & 0x00000004) != 0)) { output.writeBytes(6, mapData_); } if (((bitField0_ & 0x00000040) != 0)) { output.writeBool(7, realtime_); } if (((bitField0_ & 0x00000080) != 0)) { output.writeBool(8, recordReplay_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (replayCase_ == 1) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, replay_); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(2, observedPlayerId_); } if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getOptions()); } if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(4, disableFog_); } if (replayCase_ == 5) { size += com.google.protobuf.CodedOutputStream .computeBytesSize( 5, (com.google.protobuf.ByteString) replay_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(6, mapData_); } if (((bitField0_ & 0x00000040) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(7, realtime_); } if (((bitField0_ & 0x00000080) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(8, recordReplay_); } 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.Sc2Api.RequestStartReplay)) { return super.equals(obj); } SC2APIProtocol.Sc2Api.RequestStartReplay other = (SC2APIProtocol.Sc2Api.RequestStartReplay) obj; if (hasMapData() != other.hasMapData()) return false; if (hasMapData()) { if (!getMapData() .equals(other.getMapData())) return false; } if (hasObservedPlayerId() != other.hasObservedPlayerId()) return false; if (hasObservedPlayerId()) { if (getObservedPlayerId() != other.getObservedPlayerId()) return false; } if (hasOptions() != other.hasOptions()) return false; if (hasOptions()) { if (!getOptions() .equals(other.getOptions())) return false; } if (hasDisableFog() != other.hasDisableFog()) return false; if (hasDisableFog()) { if (getDisableFog() != other.getDisableFog()) return false; } if (hasRealtime() != other.hasRealtime()) return false; if (hasRealtime()) { if (getRealtime() != other.getRealtime()) return false; } if (hasRecordReplay() != other.hasRecordReplay()) return false; if (hasRecordReplay()) { if (getRecordReplay() != other.getRecordReplay()) return false; } if (!getReplayCase().equals(other.getReplayCase())) return false; switch (replayCase_) { case 1: if (!getReplayPath() .equals(other.getReplayPath())) return false; break; case 5: if (!getReplayData() .equals(other.getReplayData())) 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(); if (hasMapData()) { hash = (37 * hash) + MAP_DATA_FIELD_NUMBER; hash = (53 * hash) + getMapData().hashCode(); } if (hasObservedPlayerId()) { hash = (37 * hash) + OBSERVED_PLAYER_ID_FIELD_NUMBER; hash = (53 * hash) + getObservedPlayerId(); } if (hasOptions()) { hash = (37 * hash) + OPTIONS_FIELD_NUMBER; hash = (53 * hash) + getOptions().hashCode(); } if (hasDisableFog()) { hash = (37 * hash) + DISABLE_FOG_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getDisableFog()); } if (hasRealtime()) { hash = (37 * hash) + REALTIME_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getRealtime()); } if (hasRecordReplay()) { hash = (37 * hash) + RECORD_REPLAY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getRecordReplay()); } switch (replayCase_) { case 1: hash = (37 * hash) + REPLAY_PATH_FIELD_NUMBER; hash = (53 * hash) + getReplayPath().hashCode(); break; case 5: hash = (37 * hash) + REPLAY_DATA_FIELD_NUMBER; hash = (53 * hash) + getReplayData().hashCode(); break; case 0: default: } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static SC2APIProtocol.Sc2Api.RequestStartReplay parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.RequestStartReplay parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.RequestStartReplay parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.RequestStartReplay parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.RequestStartReplay parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.RequestStartReplay parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.RequestStartReplay parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.RequestStartReplay 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.Sc2Api.RequestStartReplay parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.RequestStartReplay 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.Sc2Api.RequestStartReplay parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.RequestStartReplay 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.Sc2Api.RequestStartReplay 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.RequestStartReplay} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:SC2APIProtocol.RequestStartReplay) SC2APIProtocol.Sc2Api.RequestStartReplayOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_RequestStartReplay_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_RequestStartReplay_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Sc2Api.RequestStartReplay.class, SC2APIProtocol.Sc2Api.RequestStartReplay.Builder.class); } // Construct using SC2APIProtocol.Sc2Api.RequestStartReplay.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getOptionsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); mapData_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000004); observedPlayerId_ = 0; bitField0_ = (bitField0_ & ~0x00000008); if (optionsBuilder_ == null) { options_ = null; } else { optionsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); disableFog_ = false; bitField0_ = (bitField0_ & ~0x00000020); realtime_ = false; bitField0_ = (bitField0_ & ~0x00000040); recordReplay_ = false; bitField0_ = (bitField0_ & ~0x00000080); replayCase_ = 0; replay_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_RequestStartReplay_descriptor; } @java.lang.Override public SC2APIProtocol.Sc2Api.RequestStartReplay getDefaultInstanceForType() { return SC2APIProtocol.Sc2Api.RequestStartReplay.getDefaultInstance(); } @java.lang.Override public SC2APIProtocol.Sc2Api.RequestStartReplay build() { SC2APIProtocol.Sc2Api.RequestStartReplay result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public SC2APIProtocol.Sc2Api.RequestStartReplay buildPartial() { SC2APIProtocol.Sc2Api.RequestStartReplay result = new SC2APIProtocol.Sc2Api.RequestStartReplay(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (replayCase_ == 1) { result.replay_ = replay_; } if (replayCase_ == 5) { result.replay_ = replay_; } if (((from_bitField0_ & 0x00000004) != 0)) { to_bitField0_ |= 0x00000004; } result.mapData_ = mapData_; if (((from_bitField0_ & 0x00000008) != 0)) { result.observedPlayerId_ = observedPlayerId_; to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000010) != 0)) { if (optionsBuilder_ == null) { result.options_ = options_; } else { result.options_ = optionsBuilder_.build(); } to_bitField0_ |= 0x00000010; } if (((from_bitField0_ & 0x00000020) != 0)) { result.disableFog_ = disableFog_; to_bitField0_ |= 0x00000020; } if (((from_bitField0_ & 0x00000040) != 0)) { result.realtime_ = realtime_; to_bitField0_ |= 0x00000040; } if (((from_bitField0_ & 0x00000080) != 0)) { result.recordReplay_ = recordReplay_; to_bitField0_ |= 0x00000080; } result.bitField0_ = to_bitField0_; result.replayCase_ = replayCase_; 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.Sc2Api.RequestStartReplay) { return mergeFrom((SC2APIProtocol.Sc2Api.RequestStartReplay)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(SC2APIProtocol.Sc2Api.RequestStartReplay other) { if (other == SC2APIProtocol.Sc2Api.RequestStartReplay.getDefaultInstance()) return this; if (other.hasMapData()) { setMapData(other.getMapData()); } if (other.hasObservedPlayerId()) { setObservedPlayerId(other.getObservedPlayerId()); } if (other.hasOptions()) { mergeOptions(other.getOptions()); } if (other.hasDisableFog()) { setDisableFog(other.getDisableFog()); } if (other.hasRealtime()) { setRealtime(other.getRealtime()); } if (other.hasRecordReplay()) { setRecordReplay(other.getRecordReplay()); } switch (other.getReplayCase()) { case REPLAY_PATH: { replayCase_ = 1; replay_ = other.replay_; onChanged(); break; } case REPLAY_DATA: { setReplayData(other.getReplayData()); break; } case REPLAY_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: { com.google.protobuf.ByteString bs = input.readBytes(); replayCase_ = 1; replay_ = bs; break; } // case 10 case 16: { observedPlayerId_ = input.readInt32(); bitField0_ |= 0x00000008; break; } // case 16 case 26: { input.readMessage( getOptionsFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000010; break; } // case 26 case 32: { disableFog_ = input.readBool(); bitField0_ |= 0x00000020; break; } // case 32 case 42: { replay_ = input.readBytes(); replayCase_ = 5; break; } // case 42 case 50: { mapData_ = input.readBytes(); bitField0_ |= 0x00000004; break; } // case 50 case 56: { realtime_ = input.readBool(); bitField0_ |= 0x00000040; break; } // case 56 case 64: { recordReplay_ = input.readBool(); bitField0_ |= 0x00000080; break; } // case 64 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 replayCase_ = 0; private java.lang.Object replay_; public ReplayCase getReplayCase() { return ReplayCase.forNumber( replayCase_); } public Builder clearReplay() { replayCase_ = 0; replay_ = null; onChanged(); return this; } private int bitField0_; /** * string replay_path = 1; * @return Whether the replayPath field is set. */ @java.lang.Override public boolean hasReplayPath() { return replayCase_ == 1; } /** * string replay_path = 1; * @return The replayPath. */ @java.lang.Override public java.lang.String getReplayPath() { java.lang.Object ref = ""; if (replayCase_ == 1) { ref = replay_; } if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (replayCase_ == 1) { if (bs.isValidUtf8()) { replay_ = s; } } return s; } else { return (java.lang.String) ref; } } /** * string replay_path = 1; * @return The bytes for replayPath. */ @java.lang.Override public com.google.protobuf.ByteString getReplayPathBytes() { java.lang.Object ref = ""; if (replayCase_ == 1) { ref = replay_; } if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (replayCase_ == 1) { replay_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * string replay_path = 1; * @param value The replayPath to set. * @return This builder for chaining. */ public Builder setReplayPath( java.lang.String value) { if (value == null) { throw new NullPointerException(); } replayCase_ = 1; replay_ = value; onChanged(); return this; } /** * string replay_path = 1; * @return This builder for chaining. */ public Builder clearReplayPath() { if (replayCase_ == 1) { replayCase_ = 0; replay_ = null; onChanged(); } return this; } /** * string replay_path = 1; * @param value The bytes for replayPath to set. * @return This builder for chaining. */ public Builder setReplayPathBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } replayCase_ = 1; replay_ = value; onChanged(); return this; } /** * bytes replay_data = 5; * @return Whether the replayData field is set. */ public boolean hasReplayData() { return replayCase_ == 5; } /** * bytes replay_data = 5; * @return The replayData. */ public com.google.protobuf.ByteString getReplayData() { if (replayCase_ == 5) { return (com.google.protobuf.ByteString) replay_; } return com.google.protobuf.ByteString.EMPTY; } /** * bytes replay_data = 5; * @param value The replayData to set. * @return This builder for chaining. */ public Builder setReplayData(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } replayCase_ = 5; replay_ = value; onChanged(); return this; } /** * bytes replay_data = 5; * @return This builder for chaining. */ public Builder clearReplayData() { if (replayCase_ == 5) { replayCase_ = 0; replay_ = null; onChanged(); } return this; } private com.google.protobuf.ByteString mapData_ = com.google.protobuf.ByteString.EMPTY; /** *
       * Overrides the map path stored in the replay.
       * 
* * optional bytes map_data = 6; * @return Whether the mapData field is set. */ @java.lang.Override public boolean hasMapData() { return ((bitField0_ & 0x00000004) != 0); } /** *
       * Overrides the map path stored in the replay.
       * 
* * optional bytes map_data = 6; * @return The mapData. */ @java.lang.Override public com.google.protobuf.ByteString getMapData() { return mapData_; } /** *
       * Overrides the map path stored in the replay.
       * 
* * optional bytes map_data = 6; * @param value The mapData to set. * @return This builder for chaining. */ public Builder setMapData(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; mapData_ = value; onChanged(); return this; } /** *
       * Overrides the map path stored in the replay.
       * 
* * optional bytes map_data = 6; * @return This builder for chaining. */ public Builder clearMapData() { bitField0_ = (bitField0_ & ~0x00000004); mapData_ = getDefaultInstance().getMapData(); onChanged(); return this; } private int observedPlayerId_ ; /** * optional int32 observed_player_id = 2; * @return Whether the observedPlayerId field is set. */ @java.lang.Override public boolean hasObservedPlayerId() { return ((bitField0_ & 0x00000008) != 0); } /** * optional int32 observed_player_id = 2; * @return The observedPlayerId. */ @java.lang.Override public int getObservedPlayerId() { return observedPlayerId_; } /** * optional int32 observed_player_id = 2; * @param value The observedPlayerId to set. * @return This builder for chaining. */ public Builder setObservedPlayerId(int value) { bitField0_ |= 0x00000008; observedPlayerId_ = value; onChanged(); return this; } /** * optional int32 observed_player_id = 2; * @return This builder for chaining. */ public Builder clearObservedPlayerId() { bitField0_ = (bitField0_ & ~0x00000008); observedPlayerId_ = 0; onChanged(); return this; } private SC2APIProtocol.Sc2Api.InterfaceOptions options_; private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.InterfaceOptions, SC2APIProtocol.Sc2Api.InterfaceOptions.Builder, SC2APIProtocol.Sc2Api.InterfaceOptionsOrBuilder> optionsBuilder_; /** * optional .SC2APIProtocol.InterfaceOptions options = 3; * @return Whether the options field is set. */ public boolean hasOptions() { return ((bitField0_ & 0x00000010) != 0); } /** * optional .SC2APIProtocol.InterfaceOptions options = 3; * @return The options. */ public SC2APIProtocol.Sc2Api.InterfaceOptions getOptions() { if (optionsBuilder_ == null) { return options_ == null ? SC2APIProtocol.Sc2Api.InterfaceOptions.getDefaultInstance() : options_; } else { return optionsBuilder_.getMessage(); } } /** * optional .SC2APIProtocol.InterfaceOptions options = 3; */ public Builder setOptions(SC2APIProtocol.Sc2Api.InterfaceOptions value) { if (optionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } options_ = value; onChanged(); } else { optionsBuilder_.setMessage(value); } bitField0_ |= 0x00000010; return this; } /** * optional .SC2APIProtocol.InterfaceOptions options = 3; */ public Builder setOptions( SC2APIProtocol.Sc2Api.InterfaceOptions.Builder builderForValue) { if (optionsBuilder_ == null) { options_ = builderForValue.build(); onChanged(); } else { optionsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; return this; } /** * optional .SC2APIProtocol.InterfaceOptions options = 3; */ public Builder mergeOptions(SC2APIProtocol.Sc2Api.InterfaceOptions value) { if (optionsBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0) && options_ != null && options_ != SC2APIProtocol.Sc2Api.InterfaceOptions.getDefaultInstance()) { options_ = SC2APIProtocol.Sc2Api.InterfaceOptions.newBuilder(options_).mergeFrom(value).buildPartial(); } else { options_ = value; } onChanged(); } else { optionsBuilder_.mergeFrom(value); } bitField0_ |= 0x00000010; return this; } /** * optional .SC2APIProtocol.InterfaceOptions options = 3; */ public Builder clearOptions() { if (optionsBuilder_ == null) { options_ = null; onChanged(); } else { optionsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); return this; } /** * optional .SC2APIProtocol.InterfaceOptions options = 3; */ public SC2APIProtocol.Sc2Api.InterfaceOptions.Builder getOptionsBuilder() { bitField0_ |= 0x00000010; onChanged(); return getOptionsFieldBuilder().getBuilder(); } /** * optional .SC2APIProtocol.InterfaceOptions options = 3; */ public SC2APIProtocol.Sc2Api.InterfaceOptionsOrBuilder getOptionsOrBuilder() { if (optionsBuilder_ != null) { return optionsBuilder_.getMessageOrBuilder(); } else { return options_ == null ? SC2APIProtocol.Sc2Api.InterfaceOptions.getDefaultInstance() : options_; } } /** * optional .SC2APIProtocol.InterfaceOptions options = 3; */ private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.InterfaceOptions, SC2APIProtocol.Sc2Api.InterfaceOptions.Builder, SC2APIProtocol.Sc2Api.InterfaceOptionsOrBuilder> getOptionsFieldBuilder() { if (optionsBuilder_ == null) { optionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.InterfaceOptions, SC2APIProtocol.Sc2Api.InterfaceOptions.Builder, SC2APIProtocol.Sc2Api.InterfaceOptionsOrBuilder>( getOptions(), getParentForChildren(), isClean()); options_ = null; } return optionsBuilder_; } private boolean disableFog_ ; /** * optional bool disable_fog = 4; * @return Whether the disableFog field is set. */ @java.lang.Override public boolean hasDisableFog() { return ((bitField0_ & 0x00000020) != 0); } /** * optional bool disable_fog = 4; * @return The disableFog. */ @java.lang.Override public boolean getDisableFog() { return disableFog_; } /** * optional bool disable_fog = 4; * @param value The disableFog to set. * @return This builder for chaining. */ public Builder setDisableFog(boolean value) { bitField0_ |= 0x00000020; disableFog_ = value; onChanged(); return this; } /** * optional bool disable_fog = 4; * @return This builder for chaining. */ public Builder clearDisableFog() { bitField0_ = (bitField0_ & ~0x00000020); disableFog_ = false; onChanged(); return this; } private boolean realtime_ ; /** * optional bool realtime = 7; * @return Whether the realtime field is set. */ @java.lang.Override public boolean hasRealtime() { return ((bitField0_ & 0x00000040) != 0); } /** * optional bool realtime = 7; * @return The realtime. */ @java.lang.Override public boolean getRealtime() { return realtime_; } /** * optional bool realtime = 7; * @param value The realtime to set. * @return This builder for chaining. */ public Builder setRealtime(boolean value) { bitField0_ |= 0x00000040; realtime_ = value; onChanged(); return this; } /** * optional bool realtime = 7; * @return This builder for chaining. */ public Builder clearRealtime() { bitField0_ = (bitField0_ & ~0x00000040); realtime_ = false; onChanged(); return this; } private boolean recordReplay_ ; /** *
       * Allow RequestSaveReplay from a replay. Useful for truncating a replay, or restoring tracker.events.
       * 
* * optional bool record_replay = 8; * @return Whether the recordReplay field is set. */ @java.lang.Override public boolean hasRecordReplay() { return ((bitField0_ & 0x00000080) != 0); } /** *
       * Allow RequestSaveReplay from a replay. Useful for truncating a replay, or restoring tracker.events.
       * 
* * optional bool record_replay = 8; * @return The recordReplay. */ @java.lang.Override public boolean getRecordReplay() { return recordReplay_; } /** *
       * Allow RequestSaveReplay from a replay. Useful for truncating a replay, or restoring tracker.events.
       * 
* * optional bool record_replay = 8; * @param value The recordReplay to set. * @return This builder for chaining. */ public Builder setRecordReplay(boolean value) { bitField0_ |= 0x00000080; recordReplay_ = value; onChanged(); return this; } /** *
       * Allow RequestSaveReplay from a replay. Useful for truncating a replay, or restoring tracker.events.
       * 
* * optional bool record_replay = 8; * @return This builder for chaining. */ public Builder clearRecordReplay() { bitField0_ = (bitField0_ & ~0x00000080); recordReplay_ = false; 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.RequestStartReplay) } // @@protoc_insertion_point(class_scope:SC2APIProtocol.RequestStartReplay) private static final SC2APIProtocol.Sc2Api.RequestStartReplay DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new SC2APIProtocol.Sc2Api.RequestStartReplay(); } public static SC2APIProtocol.Sc2Api.RequestStartReplay getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public RequestStartReplay 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.Sc2Api.RequestStartReplay getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ResponseStartReplayOrBuilder extends // @@protoc_insertion_point(interface_extends:SC2APIProtocol.ResponseStartReplay) com.google.protobuf.MessageOrBuilder { /** * optional .SC2APIProtocol.ResponseStartReplay.Error error = 1; * @return Whether the error field is set. */ boolean hasError(); /** * optional .SC2APIProtocol.ResponseStartReplay.Error error = 1; * @return The error. */ SC2APIProtocol.Sc2Api.ResponseStartReplay.Error getError(); /** * optional string error_details = 2; * @return Whether the errorDetails field is set. */ boolean hasErrorDetails(); /** * optional string error_details = 2; * @return The errorDetails. */ java.lang.String getErrorDetails(); /** * optional string error_details = 2; * @return The bytes for errorDetails. */ com.google.protobuf.ByteString getErrorDetailsBytes(); } /** * Protobuf type {@code SC2APIProtocol.ResponseStartReplay} */ public static final class ResponseStartReplay extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:SC2APIProtocol.ResponseStartReplay) ResponseStartReplayOrBuilder { private static final long serialVersionUID = 0L; // Use ResponseStartReplay.newBuilder() to construct. private ResponseStartReplay(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ResponseStartReplay() { error_ = 1; errorDetails_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ResponseStartReplay(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_ResponseStartReplay_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_ResponseStartReplay_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Sc2Api.ResponseStartReplay.class, SC2APIProtocol.Sc2Api.ResponseStartReplay.Builder.class); } /** * Protobuf enum {@code SC2APIProtocol.ResponseStartReplay.Error} */ public enum Error implements com.google.protobuf.ProtocolMessageEnum { /** * MissingReplay = 1; */ MissingReplay(1), /** * InvalidReplayPath = 2; */ InvalidReplayPath(2), /** * InvalidReplayData = 3; */ InvalidReplayData(3), /** * InvalidMapData = 4; */ InvalidMapData(4), /** * InvalidObservedPlayerId = 5; */ InvalidObservedPlayerId(5), /** * MissingOptions = 6; */ MissingOptions(6), /** * LaunchError = 7; */ LaunchError(7), ; /** * MissingReplay = 1; */ public static final int MissingReplay_VALUE = 1; /** * InvalidReplayPath = 2; */ public static final int InvalidReplayPath_VALUE = 2; /** * InvalidReplayData = 3; */ public static final int InvalidReplayData_VALUE = 3; /** * InvalidMapData = 4; */ public static final int InvalidMapData_VALUE = 4; /** * InvalidObservedPlayerId = 5; */ public static final int InvalidObservedPlayerId_VALUE = 5; /** * MissingOptions = 6; */ public static final int MissingOptions_VALUE = 6; /** * LaunchError = 7; */ public static final int LaunchError_VALUE = 7; 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 Error 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 Error forNumber(int value) { switch (value) { case 1: return MissingReplay; case 2: return InvalidReplayPath; case 3: return InvalidReplayData; case 4: return InvalidMapData; case 5: return InvalidObservedPlayerId; case 6: return MissingOptions; case 7: return LaunchError; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Error> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Error findValueByNumber(int number) { return Error.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.Sc2Api.ResponseStartReplay.getDescriptor().getEnumTypes().get(0); } private static final Error[] VALUES = values(); public static Error 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 Error(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:SC2APIProtocol.ResponseStartReplay.Error) } private int bitField0_; public static final int ERROR_FIELD_NUMBER = 1; private int error_; /** * optional .SC2APIProtocol.ResponseStartReplay.Error error = 1; * @return Whether the error field is set. */ @java.lang.Override public boolean hasError() { return ((bitField0_ & 0x00000001) != 0); } /** * optional .SC2APIProtocol.ResponseStartReplay.Error error = 1; * @return The error. */ @java.lang.Override public SC2APIProtocol.Sc2Api.ResponseStartReplay.Error getError() { @SuppressWarnings("deprecation") SC2APIProtocol.Sc2Api.ResponseStartReplay.Error result = SC2APIProtocol.Sc2Api.ResponseStartReplay.Error.valueOf(error_); return result == null ? SC2APIProtocol.Sc2Api.ResponseStartReplay.Error.MissingReplay : result; } public static final int ERROR_DETAILS_FIELD_NUMBER = 2; private volatile java.lang.Object errorDetails_; /** * optional string error_details = 2; * @return Whether the errorDetails field is set. */ @java.lang.Override public boolean hasErrorDetails() { return ((bitField0_ & 0x00000002) != 0); } /** * optional string error_details = 2; * @return The errorDetails. */ @java.lang.Override public java.lang.String getErrorDetails() { java.lang.Object ref = errorDetails_; 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()) { errorDetails_ = s; } return s; } } /** * optional string error_details = 2; * @return The bytes for errorDetails. */ @java.lang.Override public com.google.protobuf.ByteString getErrorDetailsBytes() { java.lang.Object ref = errorDetails_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); errorDetails_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } 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, error_); } if (((bitField0_ & 0x00000002) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, errorDetails_); } 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, error_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, errorDetails_); } 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.Sc2Api.ResponseStartReplay)) { return super.equals(obj); } SC2APIProtocol.Sc2Api.ResponseStartReplay other = (SC2APIProtocol.Sc2Api.ResponseStartReplay) obj; if (hasError() != other.hasError()) return false; if (hasError()) { if (error_ != other.error_) return false; } if (hasErrorDetails() != other.hasErrorDetails()) return false; if (hasErrorDetails()) { if (!getErrorDetails() .equals(other.getErrorDetails())) 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 (hasError()) { hash = (37 * hash) + ERROR_FIELD_NUMBER; hash = (53 * hash) + error_; } if (hasErrorDetails()) { hash = (37 * hash) + ERROR_DETAILS_FIELD_NUMBER; hash = (53 * hash) + getErrorDetails().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static SC2APIProtocol.Sc2Api.ResponseStartReplay parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.ResponseStartReplay parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.ResponseStartReplay parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.ResponseStartReplay parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.ResponseStartReplay parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.ResponseStartReplay parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.ResponseStartReplay parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.ResponseStartReplay 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.Sc2Api.ResponseStartReplay parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.ResponseStartReplay 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.Sc2Api.ResponseStartReplay parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.ResponseStartReplay 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.Sc2Api.ResponseStartReplay 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.ResponseStartReplay} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:SC2APIProtocol.ResponseStartReplay) SC2APIProtocol.Sc2Api.ResponseStartReplayOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_ResponseStartReplay_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_ResponseStartReplay_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Sc2Api.ResponseStartReplay.class, SC2APIProtocol.Sc2Api.ResponseStartReplay.Builder.class); } // Construct using SC2APIProtocol.Sc2Api.ResponseStartReplay.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); error_ = 1; bitField0_ = (bitField0_ & ~0x00000001); errorDetails_ = ""; bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_ResponseStartReplay_descriptor; } @java.lang.Override public SC2APIProtocol.Sc2Api.ResponseStartReplay getDefaultInstanceForType() { return SC2APIProtocol.Sc2Api.ResponseStartReplay.getDefaultInstance(); } @java.lang.Override public SC2APIProtocol.Sc2Api.ResponseStartReplay build() { SC2APIProtocol.Sc2Api.ResponseStartReplay result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public SC2APIProtocol.Sc2Api.ResponseStartReplay buildPartial() { SC2APIProtocol.Sc2Api.ResponseStartReplay result = new SC2APIProtocol.Sc2Api.ResponseStartReplay(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { to_bitField0_ |= 0x00000001; } result.error_ = error_; if (((from_bitField0_ & 0x00000002) != 0)) { to_bitField0_ |= 0x00000002; } result.errorDetails_ = errorDetails_; 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.Sc2Api.ResponseStartReplay) { return mergeFrom((SC2APIProtocol.Sc2Api.ResponseStartReplay)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(SC2APIProtocol.Sc2Api.ResponseStartReplay other) { if (other == SC2APIProtocol.Sc2Api.ResponseStartReplay.getDefaultInstance()) return this; if (other.hasError()) { setError(other.getError()); } if (other.hasErrorDetails()) { bitField0_ |= 0x00000002; errorDetails_ = other.errorDetails_; 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: { int tmpRaw = input.readEnum(); SC2APIProtocol.Sc2Api.ResponseStartReplay.Error tmpValue = SC2APIProtocol.Sc2Api.ResponseStartReplay.Error.forNumber(tmpRaw); if (tmpValue == null) { mergeUnknownVarintField(1, tmpRaw); } else { error_ = tmpRaw; bitField0_ |= 0x00000001; } break; } // case 8 case 18: { errorDetails_ = input.readBytes(); 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 int error_ = 1; /** * optional .SC2APIProtocol.ResponseStartReplay.Error error = 1; * @return Whether the error field is set. */ @java.lang.Override public boolean hasError() { return ((bitField0_ & 0x00000001) != 0); } /** * optional .SC2APIProtocol.ResponseStartReplay.Error error = 1; * @return The error. */ @java.lang.Override public SC2APIProtocol.Sc2Api.ResponseStartReplay.Error getError() { @SuppressWarnings("deprecation") SC2APIProtocol.Sc2Api.ResponseStartReplay.Error result = SC2APIProtocol.Sc2Api.ResponseStartReplay.Error.valueOf(error_); return result == null ? SC2APIProtocol.Sc2Api.ResponseStartReplay.Error.MissingReplay : result; } /** * optional .SC2APIProtocol.ResponseStartReplay.Error error = 1; * @param value The error to set. * @return This builder for chaining. */ public Builder setError(SC2APIProtocol.Sc2Api.ResponseStartReplay.Error value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; error_ = value.getNumber(); onChanged(); return this; } /** * optional .SC2APIProtocol.ResponseStartReplay.Error error = 1; * @return This builder for chaining. */ public Builder clearError() { bitField0_ = (bitField0_ & ~0x00000001); error_ = 1; onChanged(); return this; } private java.lang.Object errorDetails_ = ""; /** * optional string error_details = 2; * @return Whether the errorDetails field is set. */ public boolean hasErrorDetails() { return ((bitField0_ & 0x00000002) != 0); } /** * optional string error_details = 2; * @return The errorDetails. */ public java.lang.String getErrorDetails() { java.lang.Object ref = errorDetails_; 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()) { errorDetails_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string error_details = 2; * @return The bytes for errorDetails. */ public com.google.protobuf.ByteString getErrorDetailsBytes() { java.lang.Object ref = errorDetails_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); errorDetails_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string error_details = 2; * @param value The errorDetails to set. * @return This builder for chaining. */ public Builder setErrorDetails( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; errorDetails_ = value; onChanged(); return this; } /** * optional string error_details = 2; * @return This builder for chaining. */ public Builder clearErrorDetails() { bitField0_ = (bitField0_ & ~0x00000002); errorDetails_ = getDefaultInstance().getErrorDetails(); onChanged(); return this; } /** * optional string error_details = 2; * @param value The bytes for errorDetails to set. * @return This builder for chaining. */ public Builder setErrorDetailsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; errorDetails_ = value; 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.ResponseStartReplay) } // @@protoc_insertion_point(class_scope:SC2APIProtocol.ResponseStartReplay) private static final SC2APIProtocol.Sc2Api.ResponseStartReplay DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new SC2APIProtocol.Sc2Api.ResponseStartReplay(); } public static SC2APIProtocol.Sc2Api.ResponseStartReplay getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ResponseStartReplay 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.Sc2Api.ResponseStartReplay getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RequestMapCommandOrBuilder extends // @@protoc_insertion_point(interface_extends:SC2APIProtocol.RequestMapCommand) com.google.protobuf.MessageOrBuilder { /** * optional string trigger_cmd = 1; * @return Whether the triggerCmd field is set. */ boolean hasTriggerCmd(); /** * optional string trigger_cmd = 1; * @return The triggerCmd. */ java.lang.String getTriggerCmd(); /** * optional string trigger_cmd = 1; * @return The bytes for triggerCmd. */ com.google.protobuf.ByteString getTriggerCmdBytes(); } /** *
   *-----------------------------------------------------------------------------
   * 
* * Protobuf type {@code SC2APIProtocol.RequestMapCommand} */ public static final class RequestMapCommand extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:SC2APIProtocol.RequestMapCommand) RequestMapCommandOrBuilder { private static final long serialVersionUID = 0L; // Use RequestMapCommand.newBuilder() to construct. private RequestMapCommand(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RequestMapCommand() { triggerCmd_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new RequestMapCommand(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_RequestMapCommand_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_RequestMapCommand_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Sc2Api.RequestMapCommand.class, SC2APIProtocol.Sc2Api.RequestMapCommand.Builder.class); } private int bitField0_; public static final int TRIGGER_CMD_FIELD_NUMBER = 1; private volatile java.lang.Object triggerCmd_; /** * optional string trigger_cmd = 1; * @return Whether the triggerCmd field is set. */ @java.lang.Override public boolean hasTriggerCmd() { return ((bitField0_ & 0x00000001) != 0); } /** * optional string trigger_cmd = 1; * @return The triggerCmd. */ @java.lang.Override public java.lang.String getTriggerCmd() { java.lang.Object ref = triggerCmd_; 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()) { triggerCmd_ = s; } return s; } } /** * optional string trigger_cmd = 1; * @return The bytes for triggerCmd. */ @java.lang.Override public com.google.protobuf.ByteString getTriggerCmdBytes() { java.lang.Object ref = triggerCmd_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); triggerCmd_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } 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)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, triggerCmd_); } 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.GeneratedMessageV3.computeStringSize(1, triggerCmd_); } 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.Sc2Api.RequestMapCommand)) { return super.equals(obj); } SC2APIProtocol.Sc2Api.RequestMapCommand other = (SC2APIProtocol.Sc2Api.RequestMapCommand) obj; if (hasTriggerCmd() != other.hasTriggerCmd()) return false; if (hasTriggerCmd()) { if (!getTriggerCmd() .equals(other.getTriggerCmd())) 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 (hasTriggerCmd()) { hash = (37 * hash) + TRIGGER_CMD_FIELD_NUMBER; hash = (53 * hash) + getTriggerCmd().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static SC2APIProtocol.Sc2Api.RequestMapCommand parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.RequestMapCommand parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.RequestMapCommand parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.RequestMapCommand parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.RequestMapCommand parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.RequestMapCommand parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.RequestMapCommand parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.RequestMapCommand 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.Sc2Api.RequestMapCommand parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.RequestMapCommand 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.Sc2Api.RequestMapCommand parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.RequestMapCommand 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.Sc2Api.RequestMapCommand 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.RequestMapCommand} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:SC2APIProtocol.RequestMapCommand) SC2APIProtocol.Sc2Api.RequestMapCommandOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_RequestMapCommand_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_RequestMapCommand_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Sc2Api.RequestMapCommand.class, SC2APIProtocol.Sc2Api.RequestMapCommand.Builder.class); } // Construct using SC2APIProtocol.Sc2Api.RequestMapCommand.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); triggerCmd_ = ""; bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_RequestMapCommand_descriptor; } @java.lang.Override public SC2APIProtocol.Sc2Api.RequestMapCommand getDefaultInstanceForType() { return SC2APIProtocol.Sc2Api.RequestMapCommand.getDefaultInstance(); } @java.lang.Override public SC2APIProtocol.Sc2Api.RequestMapCommand build() { SC2APIProtocol.Sc2Api.RequestMapCommand result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public SC2APIProtocol.Sc2Api.RequestMapCommand buildPartial() { SC2APIProtocol.Sc2Api.RequestMapCommand result = new SC2APIProtocol.Sc2Api.RequestMapCommand(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { to_bitField0_ |= 0x00000001; } result.triggerCmd_ = triggerCmd_; 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.Sc2Api.RequestMapCommand) { return mergeFrom((SC2APIProtocol.Sc2Api.RequestMapCommand)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(SC2APIProtocol.Sc2Api.RequestMapCommand other) { if (other == SC2APIProtocol.Sc2Api.RequestMapCommand.getDefaultInstance()) return this; if (other.hasTriggerCmd()) { bitField0_ |= 0x00000001; triggerCmd_ = other.triggerCmd_; 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 10: { triggerCmd_ = input.readBytes(); bitField0_ |= 0x00000001; 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 java.lang.Object triggerCmd_ = ""; /** * optional string trigger_cmd = 1; * @return Whether the triggerCmd field is set. */ public boolean hasTriggerCmd() { return ((bitField0_ & 0x00000001) != 0); } /** * optional string trigger_cmd = 1; * @return The triggerCmd. */ public java.lang.String getTriggerCmd() { java.lang.Object ref = triggerCmd_; 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()) { triggerCmd_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string trigger_cmd = 1; * @return The bytes for triggerCmd. */ public com.google.protobuf.ByteString getTriggerCmdBytes() { java.lang.Object ref = triggerCmd_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); triggerCmd_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string trigger_cmd = 1; * @param value The triggerCmd to set. * @return This builder for chaining. */ public Builder setTriggerCmd( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; triggerCmd_ = value; onChanged(); return this; } /** * optional string trigger_cmd = 1; * @return This builder for chaining. */ public Builder clearTriggerCmd() { bitField0_ = (bitField0_ & ~0x00000001); triggerCmd_ = getDefaultInstance().getTriggerCmd(); onChanged(); return this; } /** * optional string trigger_cmd = 1; * @param value The bytes for triggerCmd to set. * @return This builder for chaining. */ public Builder setTriggerCmdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; triggerCmd_ = value; 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.RequestMapCommand) } // @@protoc_insertion_point(class_scope:SC2APIProtocol.RequestMapCommand) private static final SC2APIProtocol.Sc2Api.RequestMapCommand DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new SC2APIProtocol.Sc2Api.RequestMapCommand(); } public static SC2APIProtocol.Sc2Api.RequestMapCommand getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public RequestMapCommand 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.Sc2Api.RequestMapCommand getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ResponseMapCommandOrBuilder extends // @@protoc_insertion_point(interface_extends:SC2APIProtocol.ResponseMapCommand) com.google.protobuf.MessageOrBuilder { /** * optional .SC2APIProtocol.ResponseMapCommand.Error error = 1; * @return Whether the error field is set. */ boolean hasError(); /** * optional .SC2APIProtocol.ResponseMapCommand.Error error = 1; * @return The error. */ SC2APIProtocol.Sc2Api.ResponseMapCommand.Error getError(); /** * optional string error_details = 2; * @return Whether the errorDetails field is set. */ boolean hasErrorDetails(); /** * optional string error_details = 2; * @return The errorDetails. */ java.lang.String getErrorDetails(); /** * optional string error_details = 2; * @return The bytes for errorDetails. */ com.google.protobuf.ByteString getErrorDetailsBytes(); } /** * Protobuf type {@code SC2APIProtocol.ResponseMapCommand} */ public static final class ResponseMapCommand extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:SC2APIProtocol.ResponseMapCommand) ResponseMapCommandOrBuilder { private static final long serialVersionUID = 0L; // Use ResponseMapCommand.newBuilder() to construct. private ResponseMapCommand(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ResponseMapCommand() { error_ = 1; errorDetails_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ResponseMapCommand(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_ResponseMapCommand_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_ResponseMapCommand_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Sc2Api.ResponseMapCommand.class, SC2APIProtocol.Sc2Api.ResponseMapCommand.Builder.class); } /** * Protobuf enum {@code SC2APIProtocol.ResponseMapCommand.Error} */ public enum Error implements com.google.protobuf.ProtocolMessageEnum { /** * NoTriggerError = 1; */ NoTriggerError(1), ; /** * NoTriggerError = 1; */ public static final int NoTriggerError_VALUE = 1; 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 Error 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 Error forNumber(int value) { switch (value) { case 1: return NoTriggerError; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Error> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Error findValueByNumber(int number) { return Error.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.Sc2Api.ResponseMapCommand.getDescriptor().getEnumTypes().get(0); } private static final Error[] VALUES = values(); public static Error 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 Error(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:SC2APIProtocol.ResponseMapCommand.Error) } private int bitField0_; public static final int ERROR_FIELD_NUMBER = 1; private int error_; /** * optional .SC2APIProtocol.ResponseMapCommand.Error error = 1; * @return Whether the error field is set. */ @java.lang.Override public boolean hasError() { return ((bitField0_ & 0x00000001) != 0); } /** * optional .SC2APIProtocol.ResponseMapCommand.Error error = 1; * @return The error. */ @java.lang.Override public SC2APIProtocol.Sc2Api.ResponseMapCommand.Error getError() { @SuppressWarnings("deprecation") SC2APIProtocol.Sc2Api.ResponseMapCommand.Error result = SC2APIProtocol.Sc2Api.ResponseMapCommand.Error.valueOf(error_); return result == null ? SC2APIProtocol.Sc2Api.ResponseMapCommand.Error.NoTriggerError : result; } public static final int ERROR_DETAILS_FIELD_NUMBER = 2; private volatile java.lang.Object errorDetails_; /** * optional string error_details = 2; * @return Whether the errorDetails field is set. */ @java.lang.Override public boolean hasErrorDetails() { return ((bitField0_ & 0x00000002) != 0); } /** * optional string error_details = 2; * @return The errorDetails. */ @java.lang.Override public java.lang.String getErrorDetails() { java.lang.Object ref = errorDetails_; 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()) { errorDetails_ = s; } return s; } } /** * optional string error_details = 2; * @return The bytes for errorDetails. */ @java.lang.Override public com.google.protobuf.ByteString getErrorDetailsBytes() { java.lang.Object ref = errorDetails_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); errorDetails_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } 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, error_); } if (((bitField0_ & 0x00000002) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, errorDetails_); } 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, error_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, errorDetails_); } 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.Sc2Api.ResponseMapCommand)) { return super.equals(obj); } SC2APIProtocol.Sc2Api.ResponseMapCommand other = (SC2APIProtocol.Sc2Api.ResponseMapCommand) obj; if (hasError() != other.hasError()) return false; if (hasError()) { if (error_ != other.error_) return false; } if (hasErrorDetails() != other.hasErrorDetails()) return false; if (hasErrorDetails()) { if (!getErrorDetails() .equals(other.getErrorDetails())) 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 (hasError()) { hash = (37 * hash) + ERROR_FIELD_NUMBER; hash = (53 * hash) + error_; } if (hasErrorDetails()) { hash = (37 * hash) + ERROR_DETAILS_FIELD_NUMBER; hash = (53 * hash) + getErrorDetails().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static SC2APIProtocol.Sc2Api.ResponseMapCommand parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.ResponseMapCommand parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.ResponseMapCommand parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.ResponseMapCommand parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.ResponseMapCommand parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.ResponseMapCommand parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.ResponseMapCommand parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.ResponseMapCommand 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.Sc2Api.ResponseMapCommand parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.ResponseMapCommand 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.Sc2Api.ResponseMapCommand parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.ResponseMapCommand 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.Sc2Api.ResponseMapCommand 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.ResponseMapCommand} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:SC2APIProtocol.ResponseMapCommand) SC2APIProtocol.Sc2Api.ResponseMapCommandOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_ResponseMapCommand_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_ResponseMapCommand_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Sc2Api.ResponseMapCommand.class, SC2APIProtocol.Sc2Api.ResponseMapCommand.Builder.class); } // Construct using SC2APIProtocol.Sc2Api.ResponseMapCommand.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); error_ = 1; bitField0_ = (bitField0_ & ~0x00000001); errorDetails_ = ""; bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_ResponseMapCommand_descriptor; } @java.lang.Override public SC2APIProtocol.Sc2Api.ResponseMapCommand getDefaultInstanceForType() { return SC2APIProtocol.Sc2Api.ResponseMapCommand.getDefaultInstance(); } @java.lang.Override public SC2APIProtocol.Sc2Api.ResponseMapCommand build() { SC2APIProtocol.Sc2Api.ResponseMapCommand result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public SC2APIProtocol.Sc2Api.ResponseMapCommand buildPartial() { SC2APIProtocol.Sc2Api.ResponseMapCommand result = new SC2APIProtocol.Sc2Api.ResponseMapCommand(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { to_bitField0_ |= 0x00000001; } result.error_ = error_; if (((from_bitField0_ & 0x00000002) != 0)) { to_bitField0_ |= 0x00000002; } result.errorDetails_ = errorDetails_; 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.Sc2Api.ResponseMapCommand) { return mergeFrom((SC2APIProtocol.Sc2Api.ResponseMapCommand)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(SC2APIProtocol.Sc2Api.ResponseMapCommand other) { if (other == SC2APIProtocol.Sc2Api.ResponseMapCommand.getDefaultInstance()) return this; if (other.hasError()) { setError(other.getError()); } if (other.hasErrorDetails()) { bitField0_ |= 0x00000002; errorDetails_ = other.errorDetails_; 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: { int tmpRaw = input.readEnum(); SC2APIProtocol.Sc2Api.ResponseMapCommand.Error tmpValue = SC2APIProtocol.Sc2Api.ResponseMapCommand.Error.forNumber(tmpRaw); if (tmpValue == null) { mergeUnknownVarintField(1, tmpRaw); } else { error_ = tmpRaw; bitField0_ |= 0x00000001; } break; } // case 8 case 18: { errorDetails_ = input.readBytes(); 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 int error_ = 1; /** * optional .SC2APIProtocol.ResponseMapCommand.Error error = 1; * @return Whether the error field is set. */ @java.lang.Override public boolean hasError() { return ((bitField0_ & 0x00000001) != 0); } /** * optional .SC2APIProtocol.ResponseMapCommand.Error error = 1; * @return The error. */ @java.lang.Override public SC2APIProtocol.Sc2Api.ResponseMapCommand.Error getError() { @SuppressWarnings("deprecation") SC2APIProtocol.Sc2Api.ResponseMapCommand.Error result = SC2APIProtocol.Sc2Api.ResponseMapCommand.Error.valueOf(error_); return result == null ? SC2APIProtocol.Sc2Api.ResponseMapCommand.Error.NoTriggerError : result; } /** * optional .SC2APIProtocol.ResponseMapCommand.Error error = 1; * @param value The error to set. * @return This builder for chaining. */ public Builder setError(SC2APIProtocol.Sc2Api.ResponseMapCommand.Error value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; error_ = value.getNumber(); onChanged(); return this; } /** * optional .SC2APIProtocol.ResponseMapCommand.Error error = 1; * @return This builder for chaining. */ public Builder clearError() { bitField0_ = (bitField0_ & ~0x00000001); error_ = 1; onChanged(); return this; } private java.lang.Object errorDetails_ = ""; /** * optional string error_details = 2; * @return Whether the errorDetails field is set. */ public boolean hasErrorDetails() { return ((bitField0_ & 0x00000002) != 0); } /** * optional string error_details = 2; * @return The errorDetails. */ public java.lang.String getErrorDetails() { java.lang.Object ref = errorDetails_; 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()) { errorDetails_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string error_details = 2; * @return The bytes for errorDetails. */ public com.google.protobuf.ByteString getErrorDetailsBytes() { java.lang.Object ref = errorDetails_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); errorDetails_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string error_details = 2; * @param value The errorDetails to set. * @return This builder for chaining. */ public Builder setErrorDetails( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; errorDetails_ = value; onChanged(); return this; } /** * optional string error_details = 2; * @return This builder for chaining. */ public Builder clearErrorDetails() { bitField0_ = (bitField0_ & ~0x00000002); errorDetails_ = getDefaultInstance().getErrorDetails(); onChanged(); return this; } /** * optional string error_details = 2; * @param value The bytes for errorDetails to set. * @return This builder for chaining. */ public Builder setErrorDetailsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; errorDetails_ = value; 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.ResponseMapCommand) } // @@protoc_insertion_point(class_scope:SC2APIProtocol.ResponseMapCommand) private static final SC2APIProtocol.Sc2Api.ResponseMapCommand DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new SC2APIProtocol.Sc2Api.ResponseMapCommand(); } public static SC2APIProtocol.Sc2Api.ResponseMapCommand getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ResponseMapCommand 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.Sc2Api.ResponseMapCommand getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RequestLeaveGameOrBuilder extends // @@protoc_insertion_point(interface_extends:SC2APIProtocol.RequestLeaveGame) com.google.protobuf.MessageOrBuilder { } /** *
   *-----------------------------------------------------------------------------
   * 
* * Protobuf type {@code SC2APIProtocol.RequestLeaveGame} */ public static final class RequestLeaveGame extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:SC2APIProtocol.RequestLeaveGame) RequestLeaveGameOrBuilder { private static final long serialVersionUID = 0L; // Use RequestLeaveGame.newBuilder() to construct. private RequestLeaveGame(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RequestLeaveGame() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new RequestLeaveGame(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_RequestLeaveGame_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_RequestLeaveGame_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Sc2Api.RequestLeaveGame.class, SC2APIProtocol.Sc2Api.RequestLeaveGame.Builder.class); } 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 { getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; 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.Sc2Api.RequestLeaveGame)) { return super.equals(obj); } SC2APIProtocol.Sc2Api.RequestLeaveGame other = (SC2APIProtocol.Sc2Api.RequestLeaveGame) obj; 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(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static SC2APIProtocol.Sc2Api.RequestLeaveGame parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.RequestLeaveGame parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.RequestLeaveGame parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.RequestLeaveGame parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.RequestLeaveGame parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.RequestLeaveGame parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.RequestLeaveGame parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.RequestLeaveGame 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.Sc2Api.RequestLeaveGame parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.RequestLeaveGame 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.Sc2Api.RequestLeaveGame parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.RequestLeaveGame 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.Sc2Api.RequestLeaveGame 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.RequestLeaveGame} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:SC2APIProtocol.RequestLeaveGame) SC2APIProtocol.Sc2Api.RequestLeaveGameOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_RequestLeaveGame_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_RequestLeaveGame_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Sc2Api.RequestLeaveGame.class, SC2APIProtocol.Sc2Api.RequestLeaveGame.Builder.class); } // Construct using SC2APIProtocol.Sc2Api.RequestLeaveGame.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_RequestLeaveGame_descriptor; } @java.lang.Override public SC2APIProtocol.Sc2Api.RequestLeaveGame getDefaultInstanceForType() { return SC2APIProtocol.Sc2Api.RequestLeaveGame.getDefaultInstance(); } @java.lang.Override public SC2APIProtocol.Sc2Api.RequestLeaveGame build() { SC2APIProtocol.Sc2Api.RequestLeaveGame result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public SC2APIProtocol.Sc2Api.RequestLeaveGame buildPartial() { SC2APIProtocol.Sc2Api.RequestLeaveGame result = new SC2APIProtocol.Sc2Api.RequestLeaveGame(this); 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.Sc2Api.RequestLeaveGame) { return mergeFrom((SC2APIProtocol.Sc2Api.RequestLeaveGame)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(SC2APIProtocol.Sc2Api.RequestLeaveGame other) { if (other == SC2APIProtocol.Sc2Api.RequestLeaveGame.getDefaultInstance()) return this; 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; 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; } @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.RequestLeaveGame) } // @@protoc_insertion_point(class_scope:SC2APIProtocol.RequestLeaveGame) private static final SC2APIProtocol.Sc2Api.RequestLeaveGame DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new SC2APIProtocol.Sc2Api.RequestLeaveGame(); } public static SC2APIProtocol.Sc2Api.RequestLeaveGame getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public RequestLeaveGame 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.Sc2Api.RequestLeaveGame getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ResponseLeaveGameOrBuilder extends // @@protoc_insertion_point(interface_extends:SC2APIProtocol.ResponseLeaveGame) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code SC2APIProtocol.ResponseLeaveGame} */ public static final class ResponseLeaveGame extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:SC2APIProtocol.ResponseLeaveGame) ResponseLeaveGameOrBuilder { private static final long serialVersionUID = 0L; // Use ResponseLeaveGame.newBuilder() to construct. private ResponseLeaveGame(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ResponseLeaveGame() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ResponseLeaveGame(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_ResponseLeaveGame_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_ResponseLeaveGame_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Sc2Api.ResponseLeaveGame.class, SC2APIProtocol.Sc2Api.ResponseLeaveGame.Builder.class); } 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 { getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; 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.Sc2Api.ResponseLeaveGame)) { return super.equals(obj); } SC2APIProtocol.Sc2Api.ResponseLeaveGame other = (SC2APIProtocol.Sc2Api.ResponseLeaveGame) obj; 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(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static SC2APIProtocol.Sc2Api.ResponseLeaveGame parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.ResponseLeaveGame parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.ResponseLeaveGame parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.ResponseLeaveGame parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.ResponseLeaveGame parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.ResponseLeaveGame parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.ResponseLeaveGame parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.ResponseLeaveGame 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.Sc2Api.ResponseLeaveGame parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.ResponseLeaveGame 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.Sc2Api.ResponseLeaveGame parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.ResponseLeaveGame 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.Sc2Api.ResponseLeaveGame 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.ResponseLeaveGame} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:SC2APIProtocol.ResponseLeaveGame) SC2APIProtocol.Sc2Api.ResponseLeaveGameOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_ResponseLeaveGame_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_ResponseLeaveGame_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Sc2Api.ResponseLeaveGame.class, SC2APIProtocol.Sc2Api.ResponseLeaveGame.Builder.class); } // Construct using SC2APIProtocol.Sc2Api.ResponseLeaveGame.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_ResponseLeaveGame_descriptor; } @java.lang.Override public SC2APIProtocol.Sc2Api.ResponseLeaveGame getDefaultInstanceForType() { return SC2APIProtocol.Sc2Api.ResponseLeaveGame.getDefaultInstance(); } @java.lang.Override public SC2APIProtocol.Sc2Api.ResponseLeaveGame build() { SC2APIProtocol.Sc2Api.ResponseLeaveGame result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public SC2APIProtocol.Sc2Api.ResponseLeaveGame buildPartial() { SC2APIProtocol.Sc2Api.ResponseLeaveGame result = new SC2APIProtocol.Sc2Api.ResponseLeaveGame(this); 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.Sc2Api.ResponseLeaveGame) { return mergeFrom((SC2APIProtocol.Sc2Api.ResponseLeaveGame)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(SC2APIProtocol.Sc2Api.ResponseLeaveGame other) { if (other == SC2APIProtocol.Sc2Api.ResponseLeaveGame.getDefaultInstance()) return this; 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; 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; } @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.ResponseLeaveGame) } // @@protoc_insertion_point(class_scope:SC2APIProtocol.ResponseLeaveGame) private static final SC2APIProtocol.Sc2Api.ResponseLeaveGame DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new SC2APIProtocol.Sc2Api.ResponseLeaveGame(); } public static SC2APIProtocol.Sc2Api.ResponseLeaveGame getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ResponseLeaveGame 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.Sc2Api.ResponseLeaveGame getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RequestQuickSaveOrBuilder extends // @@protoc_insertion_point(interface_extends:SC2APIProtocol.RequestQuickSave) com.google.protobuf.MessageOrBuilder { } /** *
   *-----------------------------------------------------------------------------
   * 
* * Protobuf type {@code SC2APIProtocol.RequestQuickSave} */ public static final class RequestQuickSave extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:SC2APIProtocol.RequestQuickSave) RequestQuickSaveOrBuilder { private static final long serialVersionUID = 0L; // Use RequestQuickSave.newBuilder() to construct. private RequestQuickSave(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RequestQuickSave() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new RequestQuickSave(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_RequestQuickSave_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_RequestQuickSave_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Sc2Api.RequestQuickSave.class, SC2APIProtocol.Sc2Api.RequestQuickSave.Builder.class); } 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 { getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; 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.Sc2Api.RequestQuickSave)) { return super.equals(obj); } SC2APIProtocol.Sc2Api.RequestQuickSave other = (SC2APIProtocol.Sc2Api.RequestQuickSave) obj; 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(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static SC2APIProtocol.Sc2Api.RequestQuickSave parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.RequestQuickSave parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.RequestQuickSave parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.RequestQuickSave parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.RequestQuickSave parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.RequestQuickSave parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.RequestQuickSave parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.RequestQuickSave 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.Sc2Api.RequestQuickSave parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.RequestQuickSave 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.Sc2Api.RequestQuickSave parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.RequestQuickSave 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.Sc2Api.RequestQuickSave 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.RequestQuickSave} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:SC2APIProtocol.RequestQuickSave) SC2APIProtocol.Sc2Api.RequestQuickSaveOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_RequestQuickSave_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_RequestQuickSave_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Sc2Api.RequestQuickSave.class, SC2APIProtocol.Sc2Api.RequestQuickSave.Builder.class); } // Construct using SC2APIProtocol.Sc2Api.RequestQuickSave.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_RequestQuickSave_descriptor; } @java.lang.Override public SC2APIProtocol.Sc2Api.RequestQuickSave getDefaultInstanceForType() { return SC2APIProtocol.Sc2Api.RequestQuickSave.getDefaultInstance(); } @java.lang.Override public SC2APIProtocol.Sc2Api.RequestQuickSave build() { SC2APIProtocol.Sc2Api.RequestQuickSave result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public SC2APIProtocol.Sc2Api.RequestQuickSave buildPartial() { SC2APIProtocol.Sc2Api.RequestQuickSave result = new SC2APIProtocol.Sc2Api.RequestQuickSave(this); 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.Sc2Api.RequestQuickSave) { return mergeFrom((SC2APIProtocol.Sc2Api.RequestQuickSave)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(SC2APIProtocol.Sc2Api.RequestQuickSave other) { if (other == SC2APIProtocol.Sc2Api.RequestQuickSave.getDefaultInstance()) return this; 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; 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; } @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.RequestQuickSave) } // @@protoc_insertion_point(class_scope:SC2APIProtocol.RequestQuickSave) private static final SC2APIProtocol.Sc2Api.RequestQuickSave DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new SC2APIProtocol.Sc2Api.RequestQuickSave(); } public static SC2APIProtocol.Sc2Api.RequestQuickSave getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public RequestQuickSave 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.Sc2Api.RequestQuickSave getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ResponseQuickSaveOrBuilder extends // @@protoc_insertion_point(interface_extends:SC2APIProtocol.ResponseQuickSave) com.google.protobuf.MessageOrBuilder { } /** *
   *-----------------------------------------------------------------------------
   * 
* * Protobuf type {@code SC2APIProtocol.ResponseQuickSave} */ public static final class ResponseQuickSave extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:SC2APIProtocol.ResponseQuickSave) ResponseQuickSaveOrBuilder { private static final long serialVersionUID = 0L; // Use ResponseQuickSave.newBuilder() to construct. private ResponseQuickSave(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ResponseQuickSave() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ResponseQuickSave(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_ResponseQuickSave_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_ResponseQuickSave_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Sc2Api.ResponseQuickSave.class, SC2APIProtocol.Sc2Api.ResponseQuickSave.Builder.class); } 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 { getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; 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.Sc2Api.ResponseQuickSave)) { return super.equals(obj); } SC2APIProtocol.Sc2Api.ResponseQuickSave other = (SC2APIProtocol.Sc2Api.ResponseQuickSave) obj; 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(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static SC2APIProtocol.Sc2Api.ResponseQuickSave parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.ResponseQuickSave parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.ResponseQuickSave parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.ResponseQuickSave parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.ResponseQuickSave parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.ResponseQuickSave parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.ResponseQuickSave parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.ResponseQuickSave 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.Sc2Api.ResponseQuickSave parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.ResponseQuickSave 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.Sc2Api.ResponseQuickSave parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.ResponseQuickSave 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.Sc2Api.ResponseQuickSave 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.ResponseQuickSave} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:SC2APIProtocol.ResponseQuickSave) SC2APIProtocol.Sc2Api.ResponseQuickSaveOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_ResponseQuickSave_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_ResponseQuickSave_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Sc2Api.ResponseQuickSave.class, SC2APIProtocol.Sc2Api.ResponseQuickSave.Builder.class); } // Construct using SC2APIProtocol.Sc2Api.ResponseQuickSave.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_ResponseQuickSave_descriptor; } @java.lang.Override public SC2APIProtocol.Sc2Api.ResponseQuickSave getDefaultInstanceForType() { return SC2APIProtocol.Sc2Api.ResponseQuickSave.getDefaultInstance(); } @java.lang.Override public SC2APIProtocol.Sc2Api.ResponseQuickSave build() { SC2APIProtocol.Sc2Api.ResponseQuickSave result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public SC2APIProtocol.Sc2Api.ResponseQuickSave buildPartial() { SC2APIProtocol.Sc2Api.ResponseQuickSave result = new SC2APIProtocol.Sc2Api.ResponseQuickSave(this); 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.Sc2Api.ResponseQuickSave) { return mergeFrom((SC2APIProtocol.Sc2Api.ResponseQuickSave)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(SC2APIProtocol.Sc2Api.ResponseQuickSave other) { if (other == SC2APIProtocol.Sc2Api.ResponseQuickSave.getDefaultInstance()) return this; 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; 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; } @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.ResponseQuickSave) } // @@protoc_insertion_point(class_scope:SC2APIProtocol.ResponseQuickSave) private static final SC2APIProtocol.Sc2Api.ResponseQuickSave DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new SC2APIProtocol.Sc2Api.ResponseQuickSave(); } public static SC2APIProtocol.Sc2Api.ResponseQuickSave getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ResponseQuickSave 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.Sc2Api.ResponseQuickSave getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RequestQuickLoadOrBuilder extends // @@protoc_insertion_point(interface_extends:SC2APIProtocol.RequestQuickLoad) com.google.protobuf.MessageOrBuilder { } /** *
   *-----------------------------------------------------------------------------
   * 
* * Protobuf type {@code SC2APIProtocol.RequestQuickLoad} */ public static final class RequestQuickLoad extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:SC2APIProtocol.RequestQuickLoad) RequestQuickLoadOrBuilder { private static final long serialVersionUID = 0L; // Use RequestQuickLoad.newBuilder() to construct. private RequestQuickLoad(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RequestQuickLoad() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new RequestQuickLoad(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_RequestQuickLoad_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_RequestQuickLoad_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Sc2Api.RequestQuickLoad.class, SC2APIProtocol.Sc2Api.RequestQuickLoad.Builder.class); } 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 { getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; 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.Sc2Api.RequestQuickLoad)) { return super.equals(obj); } SC2APIProtocol.Sc2Api.RequestQuickLoad other = (SC2APIProtocol.Sc2Api.RequestQuickLoad) obj; 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(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static SC2APIProtocol.Sc2Api.RequestQuickLoad parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.RequestQuickLoad parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.RequestQuickLoad parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.RequestQuickLoad parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.RequestQuickLoad parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.RequestQuickLoad parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.RequestQuickLoad parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.RequestQuickLoad 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.Sc2Api.RequestQuickLoad parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.RequestQuickLoad 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.Sc2Api.RequestQuickLoad parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.RequestQuickLoad 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.Sc2Api.RequestQuickLoad 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.RequestQuickLoad} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:SC2APIProtocol.RequestQuickLoad) SC2APIProtocol.Sc2Api.RequestQuickLoadOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_RequestQuickLoad_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_RequestQuickLoad_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Sc2Api.RequestQuickLoad.class, SC2APIProtocol.Sc2Api.RequestQuickLoad.Builder.class); } // Construct using SC2APIProtocol.Sc2Api.RequestQuickLoad.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_RequestQuickLoad_descriptor; } @java.lang.Override public SC2APIProtocol.Sc2Api.RequestQuickLoad getDefaultInstanceForType() { return SC2APIProtocol.Sc2Api.RequestQuickLoad.getDefaultInstance(); } @java.lang.Override public SC2APIProtocol.Sc2Api.RequestQuickLoad build() { SC2APIProtocol.Sc2Api.RequestQuickLoad result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public SC2APIProtocol.Sc2Api.RequestQuickLoad buildPartial() { SC2APIProtocol.Sc2Api.RequestQuickLoad result = new SC2APIProtocol.Sc2Api.RequestQuickLoad(this); 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.Sc2Api.RequestQuickLoad) { return mergeFrom((SC2APIProtocol.Sc2Api.RequestQuickLoad)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(SC2APIProtocol.Sc2Api.RequestQuickLoad other) { if (other == SC2APIProtocol.Sc2Api.RequestQuickLoad.getDefaultInstance()) return this; 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; 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; } @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.RequestQuickLoad) } // @@protoc_insertion_point(class_scope:SC2APIProtocol.RequestQuickLoad) private static final SC2APIProtocol.Sc2Api.RequestQuickLoad DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new SC2APIProtocol.Sc2Api.RequestQuickLoad(); } public static SC2APIProtocol.Sc2Api.RequestQuickLoad getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public RequestQuickLoad 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.Sc2Api.RequestQuickLoad getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ResponseQuickLoadOrBuilder extends // @@protoc_insertion_point(interface_extends:SC2APIProtocol.ResponseQuickLoad) com.google.protobuf.MessageOrBuilder { } /** *
   *-----------------------------------------------------------------------------
   * 
* * Protobuf type {@code SC2APIProtocol.ResponseQuickLoad} */ public static final class ResponseQuickLoad extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:SC2APIProtocol.ResponseQuickLoad) ResponseQuickLoadOrBuilder { private static final long serialVersionUID = 0L; // Use ResponseQuickLoad.newBuilder() to construct. private ResponseQuickLoad(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ResponseQuickLoad() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ResponseQuickLoad(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_ResponseQuickLoad_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_ResponseQuickLoad_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Sc2Api.ResponseQuickLoad.class, SC2APIProtocol.Sc2Api.ResponseQuickLoad.Builder.class); } 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 { getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; 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.Sc2Api.ResponseQuickLoad)) { return super.equals(obj); } SC2APIProtocol.Sc2Api.ResponseQuickLoad other = (SC2APIProtocol.Sc2Api.ResponseQuickLoad) obj; 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(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static SC2APIProtocol.Sc2Api.ResponseQuickLoad parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.ResponseQuickLoad parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.ResponseQuickLoad parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.ResponseQuickLoad parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.ResponseQuickLoad parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.ResponseQuickLoad parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.ResponseQuickLoad parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.ResponseQuickLoad 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.Sc2Api.ResponseQuickLoad parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.ResponseQuickLoad 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.Sc2Api.ResponseQuickLoad parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.ResponseQuickLoad 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.Sc2Api.ResponseQuickLoad 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.ResponseQuickLoad} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:SC2APIProtocol.ResponseQuickLoad) SC2APIProtocol.Sc2Api.ResponseQuickLoadOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_ResponseQuickLoad_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_ResponseQuickLoad_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Sc2Api.ResponseQuickLoad.class, SC2APIProtocol.Sc2Api.ResponseQuickLoad.Builder.class); } // Construct using SC2APIProtocol.Sc2Api.ResponseQuickLoad.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_ResponseQuickLoad_descriptor; } @java.lang.Override public SC2APIProtocol.Sc2Api.ResponseQuickLoad getDefaultInstanceForType() { return SC2APIProtocol.Sc2Api.ResponseQuickLoad.getDefaultInstance(); } @java.lang.Override public SC2APIProtocol.Sc2Api.ResponseQuickLoad build() { SC2APIProtocol.Sc2Api.ResponseQuickLoad result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public SC2APIProtocol.Sc2Api.ResponseQuickLoad buildPartial() { SC2APIProtocol.Sc2Api.ResponseQuickLoad result = new SC2APIProtocol.Sc2Api.ResponseQuickLoad(this); 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.Sc2Api.ResponseQuickLoad) { return mergeFrom((SC2APIProtocol.Sc2Api.ResponseQuickLoad)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(SC2APIProtocol.Sc2Api.ResponseQuickLoad other) { if (other == SC2APIProtocol.Sc2Api.ResponseQuickLoad.getDefaultInstance()) return this; 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; 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; } @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.ResponseQuickLoad) } // @@protoc_insertion_point(class_scope:SC2APIProtocol.ResponseQuickLoad) private static final SC2APIProtocol.Sc2Api.ResponseQuickLoad DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new SC2APIProtocol.Sc2Api.ResponseQuickLoad(); } public static SC2APIProtocol.Sc2Api.ResponseQuickLoad getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ResponseQuickLoad 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.Sc2Api.ResponseQuickLoad getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RequestQuitOrBuilder extends // @@protoc_insertion_point(interface_extends:SC2APIProtocol.RequestQuit) com.google.protobuf.MessageOrBuilder { } /** *
   *-----------------------------------------------------------------------------
   * 
* * Protobuf type {@code SC2APIProtocol.RequestQuit} */ public static final class RequestQuit extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:SC2APIProtocol.RequestQuit) RequestQuitOrBuilder { private static final long serialVersionUID = 0L; // Use RequestQuit.newBuilder() to construct. private RequestQuit(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RequestQuit() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new RequestQuit(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_RequestQuit_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_RequestQuit_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Sc2Api.RequestQuit.class, SC2APIProtocol.Sc2Api.RequestQuit.Builder.class); } 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 { getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; 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.Sc2Api.RequestQuit)) { return super.equals(obj); } SC2APIProtocol.Sc2Api.RequestQuit other = (SC2APIProtocol.Sc2Api.RequestQuit) obj; 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(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static SC2APIProtocol.Sc2Api.RequestQuit parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.RequestQuit parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.RequestQuit parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.RequestQuit parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.RequestQuit parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.RequestQuit parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.RequestQuit parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.RequestQuit 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.Sc2Api.RequestQuit parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.RequestQuit 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.Sc2Api.RequestQuit parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.RequestQuit 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.Sc2Api.RequestQuit 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.RequestQuit} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:SC2APIProtocol.RequestQuit) SC2APIProtocol.Sc2Api.RequestQuitOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_RequestQuit_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_RequestQuit_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Sc2Api.RequestQuit.class, SC2APIProtocol.Sc2Api.RequestQuit.Builder.class); } // Construct using SC2APIProtocol.Sc2Api.RequestQuit.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_RequestQuit_descriptor; } @java.lang.Override public SC2APIProtocol.Sc2Api.RequestQuit getDefaultInstanceForType() { return SC2APIProtocol.Sc2Api.RequestQuit.getDefaultInstance(); } @java.lang.Override public SC2APIProtocol.Sc2Api.RequestQuit build() { SC2APIProtocol.Sc2Api.RequestQuit result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public SC2APIProtocol.Sc2Api.RequestQuit buildPartial() { SC2APIProtocol.Sc2Api.RequestQuit result = new SC2APIProtocol.Sc2Api.RequestQuit(this); 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.Sc2Api.RequestQuit) { return mergeFrom((SC2APIProtocol.Sc2Api.RequestQuit)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(SC2APIProtocol.Sc2Api.RequestQuit other) { if (other == SC2APIProtocol.Sc2Api.RequestQuit.getDefaultInstance()) return this; 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; 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; } @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.RequestQuit) } // @@protoc_insertion_point(class_scope:SC2APIProtocol.RequestQuit) private static final SC2APIProtocol.Sc2Api.RequestQuit DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new SC2APIProtocol.Sc2Api.RequestQuit(); } public static SC2APIProtocol.Sc2Api.RequestQuit getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public RequestQuit 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.Sc2Api.RequestQuit getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ResponseQuitOrBuilder extends // @@protoc_insertion_point(interface_extends:SC2APIProtocol.ResponseQuit) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code SC2APIProtocol.ResponseQuit} */ public static final class ResponseQuit extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:SC2APIProtocol.ResponseQuit) ResponseQuitOrBuilder { private static final long serialVersionUID = 0L; // Use ResponseQuit.newBuilder() to construct. private ResponseQuit(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ResponseQuit() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ResponseQuit(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_ResponseQuit_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_ResponseQuit_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Sc2Api.ResponseQuit.class, SC2APIProtocol.Sc2Api.ResponseQuit.Builder.class); } 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 { getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; 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.Sc2Api.ResponseQuit)) { return super.equals(obj); } SC2APIProtocol.Sc2Api.ResponseQuit other = (SC2APIProtocol.Sc2Api.ResponseQuit) obj; 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(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static SC2APIProtocol.Sc2Api.ResponseQuit parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.ResponseQuit parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.ResponseQuit parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.ResponseQuit parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.ResponseQuit parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.ResponseQuit parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.ResponseQuit parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.ResponseQuit 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.Sc2Api.ResponseQuit parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.ResponseQuit 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.Sc2Api.ResponseQuit parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.ResponseQuit 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.Sc2Api.ResponseQuit 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.ResponseQuit} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:SC2APIProtocol.ResponseQuit) SC2APIProtocol.Sc2Api.ResponseQuitOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_ResponseQuit_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_ResponseQuit_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Sc2Api.ResponseQuit.class, SC2APIProtocol.Sc2Api.ResponseQuit.Builder.class); } // Construct using SC2APIProtocol.Sc2Api.ResponseQuit.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_ResponseQuit_descriptor; } @java.lang.Override public SC2APIProtocol.Sc2Api.ResponseQuit getDefaultInstanceForType() { return SC2APIProtocol.Sc2Api.ResponseQuit.getDefaultInstance(); } @java.lang.Override public SC2APIProtocol.Sc2Api.ResponseQuit build() { SC2APIProtocol.Sc2Api.ResponseQuit result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public SC2APIProtocol.Sc2Api.ResponseQuit buildPartial() { SC2APIProtocol.Sc2Api.ResponseQuit result = new SC2APIProtocol.Sc2Api.ResponseQuit(this); 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.Sc2Api.ResponseQuit) { return mergeFrom((SC2APIProtocol.Sc2Api.ResponseQuit)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(SC2APIProtocol.Sc2Api.ResponseQuit other) { if (other == SC2APIProtocol.Sc2Api.ResponseQuit.getDefaultInstance()) return this; 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; 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; } @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.ResponseQuit) } // @@protoc_insertion_point(class_scope:SC2APIProtocol.ResponseQuit) private static final SC2APIProtocol.Sc2Api.ResponseQuit DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new SC2APIProtocol.Sc2Api.ResponseQuit(); } public static SC2APIProtocol.Sc2Api.ResponseQuit getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ResponseQuit 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.Sc2Api.ResponseQuit getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RequestGameInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:SC2APIProtocol.RequestGameInfo) com.google.protobuf.MessageOrBuilder { } /** *
   *-----------------------------------------------------------------------------
   * 
* * Protobuf type {@code SC2APIProtocol.RequestGameInfo} */ public static final class RequestGameInfo extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:SC2APIProtocol.RequestGameInfo) RequestGameInfoOrBuilder { private static final long serialVersionUID = 0L; // Use RequestGameInfo.newBuilder() to construct. private RequestGameInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RequestGameInfo() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new RequestGameInfo(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_RequestGameInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_RequestGameInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Sc2Api.RequestGameInfo.class, SC2APIProtocol.Sc2Api.RequestGameInfo.Builder.class); } 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 { getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; 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.Sc2Api.RequestGameInfo)) { return super.equals(obj); } SC2APIProtocol.Sc2Api.RequestGameInfo other = (SC2APIProtocol.Sc2Api.RequestGameInfo) obj; 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(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static SC2APIProtocol.Sc2Api.RequestGameInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.RequestGameInfo parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.RequestGameInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.RequestGameInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.RequestGameInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.RequestGameInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.RequestGameInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.RequestGameInfo 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.Sc2Api.RequestGameInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.RequestGameInfo 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.Sc2Api.RequestGameInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.RequestGameInfo 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.Sc2Api.RequestGameInfo 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.RequestGameInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:SC2APIProtocol.RequestGameInfo) SC2APIProtocol.Sc2Api.RequestGameInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_RequestGameInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_RequestGameInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Sc2Api.RequestGameInfo.class, SC2APIProtocol.Sc2Api.RequestGameInfo.Builder.class); } // Construct using SC2APIProtocol.Sc2Api.RequestGameInfo.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_RequestGameInfo_descriptor; } @java.lang.Override public SC2APIProtocol.Sc2Api.RequestGameInfo getDefaultInstanceForType() { return SC2APIProtocol.Sc2Api.RequestGameInfo.getDefaultInstance(); } @java.lang.Override public SC2APIProtocol.Sc2Api.RequestGameInfo build() { SC2APIProtocol.Sc2Api.RequestGameInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public SC2APIProtocol.Sc2Api.RequestGameInfo buildPartial() { SC2APIProtocol.Sc2Api.RequestGameInfo result = new SC2APIProtocol.Sc2Api.RequestGameInfo(this); 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.Sc2Api.RequestGameInfo) { return mergeFrom((SC2APIProtocol.Sc2Api.RequestGameInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(SC2APIProtocol.Sc2Api.RequestGameInfo other) { if (other == SC2APIProtocol.Sc2Api.RequestGameInfo.getDefaultInstance()) return this; 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; 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; } @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.RequestGameInfo) } // @@protoc_insertion_point(class_scope:SC2APIProtocol.RequestGameInfo) private static final SC2APIProtocol.Sc2Api.RequestGameInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new SC2APIProtocol.Sc2Api.RequestGameInfo(); } public static SC2APIProtocol.Sc2Api.RequestGameInfo getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public RequestGameInfo 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.Sc2Api.RequestGameInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ResponseGameInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:SC2APIProtocol.ResponseGameInfo) com.google.protobuf.MessageOrBuilder { /** * optional string map_name = 1; * @return Whether the mapName field is set. */ boolean hasMapName(); /** * optional string map_name = 1; * @return The mapName. */ java.lang.String getMapName(); /** * optional string map_name = 1; * @return The bytes for mapName. */ com.google.protobuf.ByteString getMapNameBytes(); /** * repeated string mod_names = 6; * @return A list containing the modNames. */ java.util.List getModNamesList(); /** * repeated string mod_names = 6; * @return The count of modNames. */ int getModNamesCount(); /** * repeated string mod_names = 6; * @param index The index of the element to return. * @return The modNames at the given index. */ java.lang.String getModNames(int index); /** * repeated string mod_names = 6; * @param index The index of the value to return. * @return The bytes of the modNames at the given index. */ com.google.protobuf.ByteString getModNamesBytes(int index); /** * optional string local_map_path = 2; * @return Whether the localMapPath field is set. */ boolean hasLocalMapPath(); /** * optional string local_map_path = 2; * @return The localMapPath. */ java.lang.String getLocalMapPath(); /** * optional string local_map_path = 2; * @return The bytes for localMapPath. */ com.google.protobuf.ByteString getLocalMapPathBytes(); /** * repeated .SC2APIProtocol.PlayerInfo player_info = 3; */ java.util.List getPlayerInfoList(); /** * repeated .SC2APIProtocol.PlayerInfo player_info = 3; */ SC2APIProtocol.Sc2Api.PlayerInfo getPlayerInfo(int index); /** * repeated .SC2APIProtocol.PlayerInfo player_info = 3; */ int getPlayerInfoCount(); /** * repeated .SC2APIProtocol.PlayerInfo player_info = 3; */ java.util.List getPlayerInfoOrBuilderList(); /** * repeated .SC2APIProtocol.PlayerInfo player_info = 3; */ SC2APIProtocol.Sc2Api.PlayerInfoOrBuilder getPlayerInfoOrBuilder( int index); /** *
     * Populated if Raw interface is enabled.
     * 
* * optional .SC2APIProtocol.StartRaw start_raw = 4; * @return Whether the startRaw field is set. */ boolean hasStartRaw(); /** *
     * Populated if Raw interface is enabled.
     * 
* * optional .SC2APIProtocol.StartRaw start_raw = 4; * @return The startRaw. */ SC2APIProtocol.Raw.StartRaw getStartRaw(); /** *
     * Populated if Raw interface is enabled.
     * 
* * optional .SC2APIProtocol.StartRaw start_raw = 4; */ SC2APIProtocol.Raw.StartRawOrBuilder getStartRawOrBuilder(); /** * optional .SC2APIProtocol.InterfaceOptions options = 5; * @return Whether the options field is set. */ boolean hasOptions(); /** * optional .SC2APIProtocol.InterfaceOptions options = 5; * @return The options. */ SC2APIProtocol.Sc2Api.InterfaceOptions getOptions(); /** * optional .SC2APIProtocol.InterfaceOptions options = 5; */ SC2APIProtocol.Sc2Api.InterfaceOptionsOrBuilder getOptionsOrBuilder(); } /** * Protobuf type {@code SC2APIProtocol.ResponseGameInfo} */ public static final class ResponseGameInfo extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:SC2APIProtocol.ResponseGameInfo) ResponseGameInfoOrBuilder { private static final long serialVersionUID = 0L; // Use ResponseGameInfo.newBuilder() to construct. private ResponseGameInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ResponseGameInfo() { mapName_ = ""; modNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; localMapPath_ = ""; playerInfo_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ResponseGameInfo(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_ResponseGameInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_ResponseGameInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Sc2Api.ResponseGameInfo.class, SC2APIProtocol.Sc2Api.ResponseGameInfo.Builder.class); } private int bitField0_; public static final int MAP_NAME_FIELD_NUMBER = 1; private volatile java.lang.Object mapName_; /** * optional string map_name = 1; * @return Whether the mapName field is set. */ @java.lang.Override public boolean hasMapName() { return ((bitField0_ & 0x00000001) != 0); } /** * optional string map_name = 1; * @return The mapName. */ @java.lang.Override public java.lang.String getMapName() { java.lang.Object ref = mapName_; 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()) { mapName_ = s; } return s; } } /** * optional string map_name = 1; * @return The bytes for mapName. */ @java.lang.Override public com.google.protobuf.ByteString getMapNameBytes() { java.lang.Object ref = mapName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); mapName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int MOD_NAMES_FIELD_NUMBER = 6; private com.google.protobuf.LazyStringList modNames_; /** * repeated string mod_names = 6; * @return A list containing the modNames. */ public com.google.protobuf.ProtocolStringList getModNamesList() { return modNames_; } /** * repeated string mod_names = 6; * @return The count of modNames. */ public int getModNamesCount() { return modNames_.size(); } /** * repeated string mod_names = 6; * @param index The index of the element to return. * @return The modNames at the given index. */ public java.lang.String getModNames(int index) { return modNames_.get(index); } /** * repeated string mod_names = 6; * @param index The index of the value to return. * @return The bytes of the modNames at the given index. */ public com.google.protobuf.ByteString getModNamesBytes(int index) { return modNames_.getByteString(index); } public static final int LOCAL_MAP_PATH_FIELD_NUMBER = 2; private volatile java.lang.Object localMapPath_; /** * optional string local_map_path = 2; * @return Whether the localMapPath field is set. */ @java.lang.Override public boolean hasLocalMapPath() { return ((bitField0_ & 0x00000002) != 0); } /** * optional string local_map_path = 2; * @return The localMapPath. */ @java.lang.Override public java.lang.String getLocalMapPath() { java.lang.Object ref = localMapPath_; 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()) { localMapPath_ = s; } return s; } } /** * optional string local_map_path = 2; * @return The bytes for localMapPath. */ @java.lang.Override public com.google.protobuf.ByteString getLocalMapPathBytes() { java.lang.Object ref = localMapPath_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); localMapPath_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PLAYER_INFO_FIELD_NUMBER = 3; private java.util.List playerInfo_; /** * repeated .SC2APIProtocol.PlayerInfo player_info = 3; */ @java.lang.Override public java.util.List getPlayerInfoList() { return playerInfo_; } /** * repeated .SC2APIProtocol.PlayerInfo player_info = 3; */ @java.lang.Override public java.util.List getPlayerInfoOrBuilderList() { return playerInfo_; } /** * repeated .SC2APIProtocol.PlayerInfo player_info = 3; */ @java.lang.Override public int getPlayerInfoCount() { return playerInfo_.size(); } /** * repeated .SC2APIProtocol.PlayerInfo player_info = 3; */ @java.lang.Override public SC2APIProtocol.Sc2Api.PlayerInfo getPlayerInfo(int index) { return playerInfo_.get(index); } /** * repeated .SC2APIProtocol.PlayerInfo player_info = 3; */ @java.lang.Override public SC2APIProtocol.Sc2Api.PlayerInfoOrBuilder getPlayerInfoOrBuilder( int index) { return playerInfo_.get(index); } public static final int START_RAW_FIELD_NUMBER = 4; private SC2APIProtocol.Raw.StartRaw startRaw_; /** *
     * Populated if Raw interface is enabled.
     * 
* * optional .SC2APIProtocol.StartRaw start_raw = 4; * @return Whether the startRaw field is set. */ @java.lang.Override public boolean hasStartRaw() { return ((bitField0_ & 0x00000004) != 0); } /** *
     * Populated if Raw interface is enabled.
     * 
* * optional .SC2APIProtocol.StartRaw start_raw = 4; * @return The startRaw. */ @java.lang.Override public SC2APIProtocol.Raw.StartRaw getStartRaw() { return startRaw_ == null ? SC2APIProtocol.Raw.StartRaw.getDefaultInstance() : startRaw_; } /** *
     * Populated if Raw interface is enabled.
     * 
* * optional .SC2APIProtocol.StartRaw start_raw = 4; */ @java.lang.Override public SC2APIProtocol.Raw.StartRawOrBuilder getStartRawOrBuilder() { return startRaw_ == null ? SC2APIProtocol.Raw.StartRaw.getDefaultInstance() : startRaw_; } public static final int OPTIONS_FIELD_NUMBER = 5; private SC2APIProtocol.Sc2Api.InterfaceOptions options_; /** * optional .SC2APIProtocol.InterfaceOptions options = 5; * @return Whether the options field is set. */ @java.lang.Override public boolean hasOptions() { return ((bitField0_ & 0x00000008) != 0); } /** * optional .SC2APIProtocol.InterfaceOptions options = 5; * @return The options. */ @java.lang.Override public SC2APIProtocol.Sc2Api.InterfaceOptions getOptions() { return options_ == null ? SC2APIProtocol.Sc2Api.InterfaceOptions.getDefaultInstance() : options_; } /** * optional .SC2APIProtocol.InterfaceOptions options = 5; */ @java.lang.Override public SC2APIProtocol.Sc2Api.InterfaceOptionsOrBuilder getOptionsOrBuilder() { return options_ == null ? SC2APIProtocol.Sc2Api.InterfaceOptions.getDefaultInstance() : options_; } 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)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, mapName_); } if (((bitField0_ & 0x00000002) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, localMapPath_); } for (int i = 0; i < playerInfo_.size(); i++) { output.writeMessage(3, playerInfo_.get(i)); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(4, getStartRaw()); } if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(5, getOptions()); } for (int i = 0; i < modNames_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, modNames_.getRaw(i)); } 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.GeneratedMessageV3.computeStringSize(1, mapName_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, localMapPath_); } for (int i = 0; i < playerInfo_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, playerInfo_.get(i)); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getStartRaw()); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getOptions()); } { int dataSize = 0; for (int i = 0; i < modNames_.size(); i++) { dataSize += computeStringSizeNoTag(modNames_.getRaw(i)); } size += dataSize; size += 1 * getModNamesList().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.Sc2Api.ResponseGameInfo)) { return super.equals(obj); } SC2APIProtocol.Sc2Api.ResponseGameInfo other = (SC2APIProtocol.Sc2Api.ResponseGameInfo) obj; if (hasMapName() != other.hasMapName()) return false; if (hasMapName()) { if (!getMapName() .equals(other.getMapName())) return false; } if (!getModNamesList() .equals(other.getModNamesList())) return false; if (hasLocalMapPath() != other.hasLocalMapPath()) return false; if (hasLocalMapPath()) { if (!getLocalMapPath() .equals(other.getLocalMapPath())) return false; } if (!getPlayerInfoList() .equals(other.getPlayerInfoList())) return false; if (hasStartRaw() != other.hasStartRaw()) return false; if (hasStartRaw()) { if (!getStartRaw() .equals(other.getStartRaw())) return false; } if (hasOptions() != other.hasOptions()) return false; if (hasOptions()) { if (!getOptions() .equals(other.getOptions())) 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 (hasMapName()) { hash = (37 * hash) + MAP_NAME_FIELD_NUMBER; hash = (53 * hash) + getMapName().hashCode(); } if (getModNamesCount() > 0) { hash = (37 * hash) + MOD_NAMES_FIELD_NUMBER; hash = (53 * hash) + getModNamesList().hashCode(); } if (hasLocalMapPath()) { hash = (37 * hash) + LOCAL_MAP_PATH_FIELD_NUMBER; hash = (53 * hash) + getLocalMapPath().hashCode(); } if (getPlayerInfoCount() > 0) { hash = (37 * hash) + PLAYER_INFO_FIELD_NUMBER; hash = (53 * hash) + getPlayerInfoList().hashCode(); } if (hasStartRaw()) { hash = (37 * hash) + START_RAW_FIELD_NUMBER; hash = (53 * hash) + getStartRaw().hashCode(); } if (hasOptions()) { hash = (37 * hash) + OPTIONS_FIELD_NUMBER; hash = (53 * hash) + getOptions().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static SC2APIProtocol.Sc2Api.ResponseGameInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.ResponseGameInfo parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.ResponseGameInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.ResponseGameInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.ResponseGameInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.ResponseGameInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.ResponseGameInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.ResponseGameInfo 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.Sc2Api.ResponseGameInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.ResponseGameInfo 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.Sc2Api.ResponseGameInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.ResponseGameInfo 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.Sc2Api.ResponseGameInfo 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.ResponseGameInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:SC2APIProtocol.ResponseGameInfo) SC2APIProtocol.Sc2Api.ResponseGameInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_ResponseGameInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_ResponseGameInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Sc2Api.ResponseGameInfo.class, SC2APIProtocol.Sc2Api.ResponseGameInfo.Builder.class); } // Construct using SC2APIProtocol.Sc2Api.ResponseGameInfo.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getPlayerInfoFieldBuilder(); getStartRawFieldBuilder(); getOptionsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); mapName_ = ""; bitField0_ = (bitField0_ & ~0x00000001); modNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); localMapPath_ = ""; bitField0_ = (bitField0_ & ~0x00000004); if (playerInfoBuilder_ == null) { playerInfo_ = java.util.Collections.emptyList(); } else { playerInfo_ = null; playerInfoBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); if (startRawBuilder_ == null) { startRaw_ = null; } else { startRawBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); if (optionsBuilder_ == null) { options_ = null; } else { optionsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000020); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_ResponseGameInfo_descriptor; } @java.lang.Override public SC2APIProtocol.Sc2Api.ResponseGameInfo getDefaultInstanceForType() { return SC2APIProtocol.Sc2Api.ResponseGameInfo.getDefaultInstance(); } @java.lang.Override public SC2APIProtocol.Sc2Api.ResponseGameInfo build() { SC2APIProtocol.Sc2Api.ResponseGameInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public SC2APIProtocol.Sc2Api.ResponseGameInfo buildPartial() { SC2APIProtocol.Sc2Api.ResponseGameInfo result = new SC2APIProtocol.Sc2Api.ResponseGameInfo(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { to_bitField0_ |= 0x00000001; } result.mapName_ = mapName_; if (((bitField0_ & 0x00000002) != 0)) { modNames_ = modNames_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000002); } result.modNames_ = modNames_; if (((from_bitField0_ & 0x00000004) != 0)) { to_bitField0_ |= 0x00000002; } result.localMapPath_ = localMapPath_; if (playerInfoBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0)) { playerInfo_ = java.util.Collections.unmodifiableList(playerInfo_); bitField0_ = (bitField0_ & ~0x00000008); } result.playerInfo_ = playerInfo_; } else { result.playerInfo_ = playerInfoBuilder_.build(); } if (((from_bitField0_ & 0x00000010) != 0)) { if (startRawBuilder_ == null) { result.startRaw_ = startRaw_; } else { result.startRaw_ = startRawBuilder_.build(); } to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000020) != 0)) { if (optionsBuilder_ == null) { result.options_ = options_; } else { result.options_ = optionsBuilder_.build(); } 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.Sc2Api.ResponseGameInfo) { return mergeFrom((SC2APIProtocol.Sc2Api.ResponseGameInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(SC2APIProtocol.Sc2Api.ResponseGameInfo other) { if (other == SC2APIProtocol.Sc2Api.ResponseGameInfo.getDefaultInstance()) return this; if (other.hasMapName()) { bitField0_ |= 0x00000001; mapName_ = other.mapName_; onChanged(); } if (!other.modNames_.isEmpty()) { if (modNames_.isEmpty()) { modNames_ = other.modNames_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureModNamesIsMutable(); modNames_.addAll(other.modNames_); } onChanged(); } if (other.hasLocalMapPath()) { bitField0_ |= 0x00000004; localMapPath_ = other.localMapPath_; onChanged(); } if (playerInfoBuilder_ == null) { if (!other.playerInfo_.isEmpty()) { if (playerInfo_.isEmpty()) { playerInfo_ = other.playerInfo_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensurePlayerInfoIsMutable(); playerInfo_.addAll(other.playerInfo_); } onChanged(); } } else { if (!other.playerInfo_.isEmpty()) { if (playerInfoBuilder_.isEmpty()) { playerInfoBuilder_.dispose(); playerInfoBuilder_ = null; playerInfo_ = other.playerInfo_; bitField0_ = (bitField0_ & ~0x00000008); playerInfoBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getPlayerInfoFieldBuilder() : null; } else { playerInfoBuilder_.addAllMessages(other.playerInfo_); } } } if (other.hasStartRaw()) { mergeStartRaw(other.getStartRaw()); } if (other.hasOptions()) { mergeOptions(other.getOptions()); } 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: { mapName_ = input.readBytes(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { localMapPath_ = input.readBytes(); bitField0_ |= 0x00000004; break; } // case 18 case 26: { SC2APIProtocol.Sc2Api.PlayerInfo m = input.readMessage( SC2APIProtocol.Sc2Api.PlayerInfo.PARSER, extensionRegistry); if (playerInfoBuilder_ == null) { ensurePlayerInfoIsMutable(); playerInfo_.add(m); } else { playerInfoBuilder_.addMessage(m); } break; } // case 26 case 34: { input.readMessage( getStartRawFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000010; break; } // case 34 case 42: { input.readMessage( getOptionsFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000020; break; } // case 42 case 50: { com.google.protobuf.ByteString bs = input.readBytes(); ensureModNamesIsMutable(); modNames_.add(bs); break; } // case 50 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.lang.Object mapName_ = ""; /** * optional string map_name = 1; * @return Whether the mapName field is set. */ public boolean hasMapName() { return ((bitField0_ & 0x00000001) != 0); } /** * optional string map_name = 1; * @return The mapName. */ public java.lang.String getMapName() { java.lang.Object ref = mapName_; 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()) { mapName_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string map_name = 1; * @return The bytes for mapName. */ public com.google.protobuf.ByteString getMapNameBytes() { java.lang.Object ref = mapName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); mapName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string map_name = 1; * @param value The mapName to set. * @return This builder for chaining. */ public Builder setMapName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; mapName_ = value; onChanged(); return this; } /** * optional string map_name = 1; * @return This builder for chaining. */ public Builder clearMapName() { bitField0_ = (bitField0_ & ~0x00000001); mapName_ = getDefaultInstance().getMapName(); onChanged(); return this; } /** * optional string map_name = 1; * @param value The bytes for mapName to set. * @return This builder for chaining. */ public Builder setMapNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; mapName_ = value; onChanged(); return this; } private com.google.protobuf.LazyStringList modNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureModNamesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { modNames_ = new com.google.protobuf.LazyStringArrayList(modNames_); bitField0_ |= 0x00000002; } } /** * repeated string mod_names = 6; * @return A list containing the modNames. */ public com.google.protobuf.ProtocolStringList getModNamesList() { return modNames_.getUnmodifiableView(); } /** * repeated string mod_names = 6; * @return The count of modNames. */ public int getModNamesCount() { return modNames_.size(); } /** * repeated string mod_names = 6; * @param index The index of the element to return. * @return The modNames at the given index. */ public java.lang.String getModNames(int index) { return modNames_.get(index); } /** * repeated string mod_names = 6; * @param index The index of the value to return. * @return The bytes of the modNames at the given index. */ public com.google.protobuf.ByteString getModNamesBytes(int index) { return modNames_.getByteString(index); } /** * repeated string mod_names = 6; * @param index The index to set the value at. * @param value The modNames to set. * @return This builder for chaining. */ public Builder setModNames( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureModNamesIsMutable(); modNames_.set(index, value); onChanged(); return this; } /** * repeated string mod_names = 6; * @param value The modNames to add. * @return This builder for chaining. */ public Builder addModNames( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureModNamesIsMutable(); modNames_.add(value); onChanged(); return this; } /** * repeated string mod_names = 6; * @param values The modNames to add. * @return This builder for chaining. */ public Builder addAllModNames( java.lang.Iterable values) { ensureModNamesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, modNames_); onChanged(); return this; } /** * repeated string mod_names = 6; * @return This builder for chaining. */ public Builder clearModNames() { modNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** * repeated string mod_names = 6; * @param value The bytes of the modNames to add. * @return This builder for chaining. */ public Builder addModNamesBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureModNamesIsMutable(); modNames_.add(value); onChanged(); return this; } private java.lang.Object localMapPath_ = ""; /** * optional string local_map_path = 2; * @return Whether the localMapPath field is set. */ public boolean hasLocalMapPath() { return ((bitField0_ & 0x00000004) != 0); } /** * optional string local_map_path = 2; * @return The localMapPath. */ public java.lang.String getLocalMapPath() { java.lang.Object ref = localMapPath_; 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()) { localMapPath_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string local_map_path = 2; * @return The bytes for localMapPath. */ public com.google.protobuf.ByteString getLocalMapPathBytes() { java.lang.Object ref = localMapPath_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); localMapPath_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string local_map_path = 2; * @param value The localMapPath to set. * @return This builder for chaining. */ public Builder setLocalMapPath( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; localMapPath_ = value; onChanged(); return this; } /** * optional string local_map_path = 2; * @return This builder for chaining. */ public Builder clearLocalMapPath() { bitField0_ = (bitField0_ & ~0x00000004); localMapPath_ = getDefaultInstance().getLocalMapPath(); onChanged(); return this; } /** * optional string local_map_path = 2; * @param value The bytes for localMapPath to set. * @return This builder for chaining. */ public Builder setLocalMapPathBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; localMapPath_ = value; onChanged(); return this; } private java.util.List playerInfo_ = java.util.Collections.emptyList(); private void ensurePlayerInfoIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { playerInfo_ = new java.util.ArrayList(playerInfo_); bitField0_ |= 0x00000008; } } private com.google.protobuf.RepeatedFieldBuilderV3< SC2APIProtocol.Sc2Api.PlayerInfo, SC2APIProtocol.Sc2Api.PlayerInfo.Builder, SC2APIProtocol.Sc2Api.PlayerInfoOrBuilder> playerInfoBuilder_; /** * repeated .SC2APIProtocol.PlayerInfo player_info = 3; */ public java.util.List getPlayerInfoList() { if (playerInfoBuilder_ == null) { return java.util.Collections.unmodifiableList(playerInfo_); } else { return playerInfoBuilder_.getMessageList(); } } /** * repeated .SC2APIProtocol.PlayerInfo player_info = 3; */ public int getPlayerInfoCount() { if (playerInfoBuilder_ == null) { return playerInfo_.size(); } else { return playerInfoBuilder_.getCount(); } } /** * repeated .SC2APIProtocol.PlayerInfo player_info = 3; */ public SC2APIProtocol.Sc2Api.PlayerInfo getPlayerInfo(int index) { if (playerInfoBuilder_ == null) { return playerInfo_.get(index); } else { return playerInfoBuilder_.getMessage(index); } } /** * repeated .SC2APIProtocol.PlayerInfo player_info = 3; */ public Builder setPlayerInfo( int index, SC2APIProtocol.Sc2Api.PlayerInfo value) { if (playerInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePlayerInfoIsMutable(); playerInfo_.set(index, value); onChanged(); } else { playerInfoBuilder_.setMessage(index, value); } return this; } /** * repeated .SC2APIProtocol.PlayerInfo player_info = 3; */ public Builder setPlayerInfo( int index, SC2APIProtocol.Sc2Api.PlayerInfo.Builder builderForValue) { if (playerInfoBuilder_ == null) { ensurePlayerInfoIsMutable(); playerInfo_.set(index, builderForValue.build()); onChanged(); } else { playerInfoBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .SC2APIProtocol.PlayerInfo player_info = 3; */ public Builder addPlayerInfo(SC2APIProtocol.Sc2Api.PlayerInfo value) { if (playerInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePlayerInfoIsMutable(); playerInfo_.add(value); onChanged(); } else { playerInfoBuilder_.addMessage(value); } return this; } /** * repeated .SC2APIProtocol.PlayerInfo player_info = 3; */ public Builder addPlayerInfo( int index, SC2APIProtocol.Sc2Api.PlayerInfo value) { if (playerInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePlayerInfoIsMutable(); playerInfo_.add(index, value); onChanged(); } else { playerInfoBuilder_.addMessage(index, value); } return this; } /** * repeated .SC2APIProtocol.PlayerInfo player_info = 3; */ public Builder addPlayerInfo( SC2APIProtocol.Sc2Api.PlayerInfo.Builder builderForValue) { if (playerInfoBuilder_ == null) { ensurePlayerInfoIsMutable(); playerInfo_.add(builderForValue.build()); onChanged(); } else { playerInfoBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .SC2APIProtocol.PlayerInfo player_info = 3; */ public Builder addPlayerInfo( int index, SC2APIProtocol.Sc2Api.PlayerInfo.Builder builderForValue) { if (playerInfoBuilder_ == null) { ensurePlayerInfoIsMutable(); playerInfo_.add(index, builderForValue.build()); onChanged(); } else { playerInfoBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .SC2APIProtocol.PlayerInfo player_info = 3; */ public Builder addAllPlayerInfo( java.lang.Iterable values) { if (playerInfoBuilder_ == null) { ensurePlayerInfoIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, playerInfo_); onChanged(); } else { playerInfoBuilder_.addAllMessages(values); } return this; } /** * repeated .SC2APIProtocol.PlayerInfo player_info = 3; */ public Builder clearPlayerInfo() { if (playerInfoBuilder_ == null) { playerInfo_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { playerInfoBuilder_.clear(); } return this; } /** * repeated .SC2APIProtocol.PlayerInfo player_info = 3; */ public Builder removePlayerInfo(int index) { if (playerInfoBuilder_ == null) { ensurePlayerInfoIsMutable(); playerInfo_.remove(index); onChanged(); } else { playerInfoBuilder_.remove(index); } return this; } /** * repeated .SC2APIProtocol.PlayerInfo player_info = 3; */ public SC2APIProtocol.Sc2Api.PlayerInfo.Builder getPlayerInfoBuilder( int index) { return getPlayerInfoFieldBuilder().getBuilder(index); } /** * repeated .SC2APIProtocol.PlayerInfo player_info = 3; */ public SC2APIProtocol.Sc2Api.PlayerInfoOrBuilder getPlayerInfoOrBuilder( int index) { if (playerInfoBuilder_ == null) { return playerInfo_.get(index); } else { return playerInfoBuilder_.getMessageOrBuilder(index); } } /** * repeated .SC2APIProtocol.PlayerInfo player_info = 3; */ public java.util.List getPlayerInfoOrBuilderList() { if (playerInfoBuilder_ != null) { return playerInfoBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(playerInfo_); } } /** * repeated .SC2APIProtocol.PlayerInfo player_info = 3; */ public SC2APIProtocol.Sc2Api.PlayerInfo.Builder addPlayerInfoBuilder() { return getPlayerInfoFieldBuilder().addBuilder( SC2APIProtocol.Sc2Api.PlayerInfo.getDefaultInstance()); } /** * repeated .SC2APIProtocol.PlayerInfo player_info = 3; */ public SC2APIProtocol.Sc2Api.PlayerInfo.Builder addPlayerInfoBuilder( int index) { return getPlayerInfoFieldBuilder().addBuilder( index, SC2APIProtocol.Sc2Api.PlayerInfo.getDefaultInstance()); } /** * repeated .SC2APIProtocol.PlayerInfo player_info = 3; */ public java.util.List getPlayerInfoBuilderList() { return getPlayerInfoFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< SC2APIProtocol.Sc2Api.PlayerInfo, SC2APIProtocol.Sc2Api.PlayerInfo.Builder, SC2APIProtocol.Sc2Api.PlayerInfoOrBuilder> getPlayerInfoFieldBuilder() { if (playerInfoBuilder_ == null) { playerInfoBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< SC2APIProtocol.Sc2Api.PlayerInfo, SC2APIProtocol.Sc2Api.PlayerInfo.Builder, SC2APIProtocol.Sc2Api.PlayerInfoOrBuilder>( playerInfo_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); playerInfo_ = null; } return playerInfoBuilder_; } private SC2APIProtocol.Raw.StartRaw startRaw_; private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Raw.StartRaw, SC2APIProtocol.Raw.StartRaw.Builder, SC2APIProtocol.Raw.StartRawOrBuilder> startRawBuilder_; /** *
       * Populated if Raw interface is enabled.
       * 
* * optional .SC2APIProtocol.StartRaw start_raw = 4; * @return Whether the startRaw field is set. */ public boolean hasStartRaw() { return ((bitField0_ & 0x00000010) != 0); } /** *
       * Populated if Raw interface is enabled.
       * 
* * optional .SC2APIProtocol.StartRaw start_raw = 4; * @return The startRaw. */ public SC2APIProtocol.Raw.StartRaw getStartRaw() { if (startRawBuilder_ == null) { return startRaw_ == null ? SC2APIProtocol.Raw.StartRaw.getDefaultInstance() : startRaw_; } else { return startRawBuilder_.getMessage(); } } /** *
       * Populated if Raw interface is enabled.
       * 
* * optional .SC2APIProtocol.StartRaw start_raw = 4; */ public Builder setStartRaw(SC2APIProtocol.Raw.StartRaw value) { if (startRawBuilder_ == null) { if (value == null) { throw new NullPointerException(); } startRaw_ = value; onChanged(); } else { startRawBuilder_.setMessage(value); } bitField0_ |= 0x00000010; return this; } /** *
       * Populated if Raw interface is enabled.
       * 
* * optional .SC2APIProtocol.StartRaw start_raw = 4; */ public Builder setStartRaw( SC2APIProtocol.Raw.StartRaw.Builder builderForValue) { if (startRawBuilder_ == null) { startRaw_ = builderForValue.build(); onChanged(); } else { startRawBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; return this; } /** *
       * Populated if Raw interface is enabled.
       * 
* * optional .SC2APIProtocol.StartRaw start_raw = 4; */ public Builder mergeStartRaw(SC2APIProtocol.Raw.StartRaw value) { if (startRawBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0) && startRaw_ != null && startRaw_ != SC2APIProtocol.Raw.StartRaw.getDefaultInstance()) { startRaw_ = SC2APIProtocol.Raw.StartRaw.newBuilder(startRaw_).mergeFrom(value).buildPartial(); } else { startRaw_ = value; } onChanged(); } else { startRawBuilder_.mergeFrom(value); } bitField0_ |= 0x00000010; return this; } /** *
       * Populated if Raw interface is enabled.
       * 
* * optional .SC2APIProtocol.StartRaw start_raw = 4; */ public Builder clearStartRaw() { if (startRawBuilder_ == null) { startRaw_ = null; onChanged(); } else { startRawBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); return this; } /** *
       * Populated if Raw interface is enabled.
       * 
* * optional .SC2APIProtocol.StartRaw start_raw = 4; */ public SC2APIProtocol.Raw.StartRaw.Builder getStartRawBuilder() { bitField0_ |= 0x00000010; onChanged(); return getStartRawFieldBuilder().getBuilder(); } /** *
       * Populated if Raw interface is enabled.
       * 
* * optional .SC2APIProtocol.StartRaw start_raw = 4; */ public SC2APIProtocol.Raw.StartRawOrBuilder getStartRawOrBuilder() { if (startRawBuilder_ != null) { return startRawBuilder_.getMessageOrBuilder(); } else { return startRaw_ == null ? SC2APIProtocol.Raw.StartRaw.getDefaultInstance() : startRaw_; } } /** *
       * Populated if Raw interface is enabled.
       * 
* * optional .SC2APIProtocol.StartRaw start_raw = 4; */ private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Raw.StartRaw, SC2APIProtocol.Raw.StartRaw.Builder, SC2APIProtocol.Raw.StartRawOrBuilder> getStartRawFieldBuilder() { if (startRawBuilder_ == null) { startRawBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Raw.StartRaw, SC2APIProtocol.Raw.StartRaw.Builder, SC2APIProtocol.Raw.StartRawOrBuilder>( getStartRaw(), getParentForChildren(), isClean()); startRaw_ = null; } return startRawBuilder_; } private SC2APIProtocol.Sc2Api.InterfaceOptions options_; private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.InterfaceOptions, SC2APIProtocol.Sc2Api.InterfaceOptions.Builder, SC2APIProtocol.Sc2Api.InterfaceOptionsOrBuilder> optionsBuilder_; /** * optional .SC2APIProtocol.InterfaceOptions options = 5; * @return Whether the options field is set. */ public boolean hasOptions() { return ((bitField0_ & 0x00000020) != 0); } /** * optional .SC2APIProtocol.InterfaceOptions options = 5; * @return The options. */ public SC2APIProtocol.Sc2Api.InterfaceOptions getOptions() { if (optionsBuilder_ == null) { return options_ == null ? SC2APIProtocol.Sc2Api.InterfaceOptions.getDefaultInstance() : options_; } else { return optionsBuilder_.getMessage(); } } /** * optional .SC2APIProtocol.InterfaceOptions options = 5; */ public Builder setOptions(SC2APIProtocol.Sc2Api.InterfaceOptions value) { if (optionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } options_ = value; onChanged(); } else { optionsBuilder_.setMessage(value); } bitField0_ |= 0x00000020; return this; } /** * optional .SC2APIProtocol.InterfaceOptions options = 5; */ public Builder setOptions( SC2APIProtocol.Sc2Api.InterfaceOptions.Builder builderForValue) { if (optionsBuilder_ == null) { options_ = builderForValue.build(); onChanged(); } else { optionsBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000020; return this; } /** * optional .SC2APIProtocol.InterfaceOptions options = 5; */ public Builder mergeOptions(SC2APIProtocol.Sc2Api.InterfaceOptions value) { if (optionsBuilder_ == null) { if (((bitField0_ & 0x00000020) != 0) && options_ != null && options_ != SC2APIProtocol.Sc2Api.InterfaceOptions.getDefaultInstance()) { options_ = SC2APIProtocol.Sc2Api.InterfaceOptions.newBuilder(options_).mergeFrom(value).buildPartial(); } else { options_ = value; } onChanged(); } else { optionsBuilder_.mergeFrom(value); } bitField0_ |= 0x00000020; return this; } /** * optional .SC2APIProtocol.InterfaceOptions options = 5; */ public Builder clearOptions() { if (optionsBuilder_ == null) { options_ = null; onChanged(); } else { optionsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000020); return this; } /** * optional .SC2APIProtocol.InterfaceOptions options = 5; */ public SC2APIProtocol.Sc2Api.InterfaceOptions.Builder getOptionsBuilder() { bitField0_ |= 0x00000020; onChanged(); return getOptionsFieldBuilder().getBuilder(); } /** * optional .SC2APIProtocol.InterfaceOptions options = 5; */ public SC2APIProtocol.Sc2Api.InterfaceOptionsOrBuilder getOptionsOrBuilder() { if (optionsBuilder_ != null) { return optionsBuilder_.getMessageOrBuilder(); } else { return options_ == null ? SC2APIProtocol.Sc2Api.InterfaceOptions.getDefaultInstance() : options_; } } /** * optional .SC2APIProtocol.InterfaceOptions options = 5; */ private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.InterfaceOptions, SC2APIProtocol.Sc2Api.InterfaceOptions.Builder, SC2APIProtocol.Sc2Api.InterfaceOptionsOrBuilder> getOptionsFieldBuilder() { if (optionsBuilder_ == null) { optionsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.InterfaceOptions, SC2APIProtocol.Sc2Api.InterfaceOptions.Builder, SC2APIProtocol.Sc2Api.InterfaceOptionsOrBuilder>( getOptions(), getParentForChildren(), isClean()); options_ = null; } return optionsBuilder_; } @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.ResponseGameInfo) } // @@protoc_insertion_point(class_scope:SC2APIProtocol.ResponseGameInfo) private static final SC2APIProtocol.Sc2Api.ResponseGameInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new SC2APIProtocol.Sc2Api.ResponseGameInfo(); } public static SC2APIProtocol.Sc2Api.ResponseGameInfo getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ResponseGameInfo 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.Sc2Api.ResponseGameInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RequestObservationOrBuilder extends // @@protoc_insertion_point(interface_extends:SC2APIProtocol.RequestObservation) com.google.protobuf.MessageOrBuilder { /** * optional bool disable_fog = 1; * @return Whether the disableFog field is set. */ boolean hasDisableFog(); /** * optional bool disable_fog = 1; * @return The disableFog. */ boolean getDisableFog(); /** *
     * In realtime the request will only return once the simulation game loop has reached this value. When not realtime this value is ignored.
     * 
* * optional uint32 game_loop = 2; * @return Whether the gameLoop field is set. */ boolean hasGameLoop(); /** *
     * In realtime the request will only return once the simulation game loop has reached this value. When not realtime this value is ignored.
     * 
* * optional uint32 game_loop = 2; * @return The gameLoop. */ int getGameLoop(); } /** *
   *-----------------------------------------------------------------------------
   * 
* * Protobuf type {@code SC2APIProtocol.RequestObservation} */ public static final class RequestObservation extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:SC2APIProtocol.RequestObservation) RequestObservationOrBuilder { private static final long serialVersionUID = 0L; // Use RequestObservation.newBuilder() to construct. private RequestObservation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RequestObservation() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new RequestObservation(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_RequestObservation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_RequestObservation_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Sc2Api.RequestObservation.class, SC2APIProtocol.Sc2Api.RequestObservation.Builder.class); } private int bitField0_; public static final int DISABLE_FOG_FIELD_NUMBER = 1; private boolean disableFog_; /** * optional bool disable_fog = 1; * @return Whether the disableFog field is set. */ @java.lang.Override public boolean hasDisableFog() { return ((bitField0_ & 0x00000001) != 0); } /** * optional bool disable_fog = 1; * @return The disableFog. */ @java.lang.Override public boolean getDisableFog() { return disableFog_; } public static final int GAME_LOOP_FIELD_NUMBER = 2; private int gameLoop_; /** *
     * In realtime the request will only return once the simulation game loop has reached this value. When not realtime this value is ignored.
     * 
* * optional uint32 game_loop = 2; * @return Whether the gameLoop field is set. */ @java.lang.Override public boolean hasGameLoop() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * In realtime the request will only return once the simulation game loop has reached this value. When not realtime this value is ignored.
     * 
* * optional uint32 game_loop = 2; * @return The gameLoop. */ @java.lang.Override public int getGameLoop() { return gameLoop_; } 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.writeBool(1, disableFog_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeUInt32(2, gameLoop_); } 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 .computeBoolSize(1, disableFog_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, gameLoop_); } 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.Sc2Api.RequestObservation)) { return super.equals(obj); } SC2APIProtocol.Sc2Api.RequestObservation other = (SC2APIProtocol.Sc2Api.RequestObservation) obj; if (hasDisableFog() != other.hasDisableFog()) return false; if (hasDisableFog()) { if (getDisableFog() != other.getDisableFog()) return false; } if (hasGameLoop() != other.hasGameLoop()) return false; if (hasGameLoop()) { if (getGameLoop() != other.getGameLoop()) 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 (hasDisableFog()) { hash = (37 * hash) + DISABLE_FOG_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getDisableFog()); } if (hasGameLoop()) { hash = (37 * hash) + GAME_LOOP_FIELD_NUMBER; hash = (53 * hash) + getGameLoop(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static SC2APIProtocol.Sc2Api.RequestObservation parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.RequestObservation parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.RequestObservation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.RequestObservation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.RequestObservation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.RequestObservation parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.RequestObservation parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.RequestObservation 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.Sc2Api.RequestObservation parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.RequestObservation 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.Sc2Api.RequestObservation parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.RequestObservation 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.Sc2Api.RequestObservation 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.RequestObservation} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:SC2APIProtocol.RequestObservation) SC2APIProtocol.Sc2Api.RequestObservationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_RequestObservation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_RequestObservation_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Sc2Api.RequestObservation.class, SC2APIProtocol.Sc2Api.RequestObservation.Builder.class); } // Construct using SC2APIProtocol.Sc2Api.RequestObservation.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); disableFog_ = false; bitField0_ = (bitField0_ & ~0x00000001); gameLoop_ = 0; bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_RequestObservation_descriptor; } @java.lang.Override public SC2APIProtocol.Sc2Api.RequestObservation getDefaultInstanceForType() { return SC2APIProtocol.Sc2Api.RequestObservation.getDefaultInstance(); } @java.lang.Override public SC2APIProtocol.Sc2Api.RequestObservation build() { SC2APIProtocol.Sc2Api.RequestObservation result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public SC2APIProtocol.Sc2Api.RequestObservation buildPartial() { SC2APIProtocol.Sc2Api.RequestObservation result = new SC2APIProtocol.Sc2Api.RequestObservation(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.disableFog_ = disableFog_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.gameLoop_ = gameLoop_; 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.Sc2Api.RequestObservation) { return mergeFrom((SC2APIProtocol.Sc2Api.RequestObservation)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(SC2APIProtocol.Sc2Api.RequestObservation other) { if (other == SC2APIProtocol.Sc2Api.RequestObservation.getDefaultInstance()) return this; if (other.hasDisableFog()) { setDisableFog(other.getDisableFog()); } if (other.hasGameLoop()) { setGameLoop(other.getGameLoop()); } 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: { disableFog_ = input.readBool(); bitField0_ |= 0x00000001; break; } // case 8 case 16: { gameLoop_ = input.readUInt32(); 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 boolean disableFog_ ; /** * optional bool disable_fog = 1; * @return Whether the disableFog field is set. */ @java.lang.Override public boolean hasDisableFog() { return ((bitField0_ & 0x00000001) != 0); } /** * optional bool disable_fog = 1; * @return The disableFog. */ @java.lang.Override public boolean getDisableFog() { return disableFog_; } /** * optional bool disable_fog = 1; * @param value The disableFog to set. * @return This builder for chaining. */ public Builder setDisableFog(boolean value) { bitField0_ |= 0x00000001; disableFog_ = value; onChanged(); return this; } /** * optional bool disable_fog = 1; * @return This builder for chaining. */ public Builder clearDisableFog() { bitField0_ = (bitField0_ & ~0x00000001); disableFog_ = false; onChanged(); return this; } private int gameLoop_ ; /** *
       * In realtime the request will only return once the simulation game loop has reached this value. When not realtime this value is ignored.
       * 
* * optional uint32 game_loop = 2; * @return Whether the gameLoop field is set. */ @java.lang.Override public boolean hasGameLoop() { return ((bitField0_ & 0x00000002) != 0); } /** *
       * In realtime the request will only return once the simulation game loop has reached this value. When not realtime this value is ignored.
       * 
* * optional uint32 game_loop = 2; * @return The gameLoop. */ @java.lang.Override public int getGameLoop() { return gameLoop_; } /** *
       * In realtime the request will only return once the simulation game loop has reached this value. When not realtime this value is ignored.
       * 
* * optional uint32 game_loop = 2; * @param value The gameLoop to set. * @return This builder for chaining. */ public Builder setGameLoop(int value) { bitField0_ |= 0x00000002; gameLoop_ = value; onChanged(); return this; } /** *
       * In realtime the request will only return once the simulation game loop has reached this value. When not realtime this value is ignored.
       * 
* * optional uint32 game_loop = 2; * @return This builder for chaining. */ public Builder clearGameLoop() { bitField0_ = (bitField0_ & ~0x00000002); gameLoop_ = 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.RequestObservation) } // @@protoc_insertion_point(class_scope:SC2APIProtocol.RequestObservation) private static final SC2APIProtocol.Sc2Api.RequestObservation DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new SC2APIProtocol.Sc2Api.RequestObservation(); } public static SC2APIProtocol.Sc2Api.RequestObservation getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public RequestObservation 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.Sc2Api.RequestObservation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ResponseObservationOrBuilder extends // @@protoc_insertion_point(interface_extends:SC2APIProtocol.ResponseObservation) com.google.protobuf.MessageOrBuilder { /** *
     * Actions this player did since the last Observation.
     * 
* * repeated .SC2APIProtocol.Action actions = 1; */ java.util.List getActionsList(); /** *
     * Actions this player did since the last Observation.
     * 
* * repeated .SC2APIProtocol.Action actions = 1; */ SC2APIProtocol.Sc2Api.Action getActions(int index); /** *
     * Actions this player did since the last Observation.
     * 
* * repeated .SC2APIProtocol.Action actions = 1; */ int getActionsCount(); /** *
     * Actions this player did since the last Observation.
     * 
* * repeated .SC2APIProtocol.Action actions = 1; */ java.util.List getActionsOrBuilderList(); /** *
     * Actions this player did since the last Observation.
     * 
* * repeated .SC2APIProtocol.Action actions = 1; */ SC2APIProtocol.Sc2Api.ActionOrBuilder getActionsOrBuilder( int index); /** *
     * Equivalent of UI "red text" errors.
     * 
* * repeated .SC2APIProtocol.ActionError action_errors = 2; */ java.util.List getActionErrorsList(); /** *
     * Equivalent of UI "red text" errors.
     * 
* * repeated .SC2APIProtocol.ActionError action_errors = 2; */ SC2APIProtocol.Sc2Api.ActionError getActionErrors(int index); /** *
     * Equivalent of UI "red text" errors.
     * 
* * repeated .SC2APIProtocol.ActionError action_errors = 2; */ int getActionErrorsCount(); /** *
     * Equivalent of UI "red text" errors.
     * 
* * repeated .SC2APIProtocol.ActionError action_errors = 2; */ java.util.List getActionErrorsOrBuilderList(); /** *
     * Equivalent of UI "red text" errors.
     * 
* * repeated .SC2APIProtocol.ActionError action_errors = 2; */ SC2APIProtocol.Sc2Api.ActionErrorOrBuilder getActionErrorsOrBuilder( int index); /** * optional .SC2APIProtocol.Observation observation = 3; * @return Whether the observation field is set. */ boolean hasObservation(); /** * optional .SC2APIProtocol.Observation observation = 3; * @return The observation. */ SC2APIProtocol.Sc2Api.Observation getObservation(); /** * optional .SC2APIProtocol.Observation observation = 3; */ SC2APIProtocol.Sc2Api.ObservationOrBuilder getObservationOrBuilder(); /** *
     * Only populated if the game ended during this step.
     * 
* * repeated .SC2APIProtocol.PlayerResult player_result = 4; */ java.util.List getPlayerResultList(); /** *
     * Only populated if the game ended during this step.
     * 
* * repeated .SC2APIProtocol.PlayerResult player_result = 4; */ SC2APIProtocol.Sc2Api.PlayerResult getPlayerResult(int index); /** *
     * Only populated if the game ended during this step.
     * 
* * repeated .SC2APIProtocol.PlayerResult player_result = 4; */ int getPlayerResultCount(); /** *
     * Only populated if the game ended during this step.
     * 
* * repeated .SC2APIProtocol.PlayerResult player_result = 4; */ java.util.List getPlayerResultOrBuilderList(); /** *
     * Only populated if the game ended during this step.
     * 
* * repeated .SC2APIProtocol.PlayerResult player_result = 4; */ SC2APIProtocol.Sc2Api.PlayerResultOrBuilder getPlayerResultOrBuilder( int index); /** * repeated .SC2APIProtocol.ChatReceived chat = 5; */ java.util.List getChatList(); /** * repeated .SC2APIProtocol.ChatReceived chat = 5; */ SC2APIProtocol.Sc2Api.ChatReceived getChat(int index); /** * repeated .SC2APIProtocol.ChatReceived chat = 5; */ int getChatCount(); /** * repeated .SC2APIProtocol.ChatReceived chat = 5; */ java.util.List getChatOrBuilderList(); /** * repeated .SC2APIProtocol.ChatReceived chat = 5; */ SC2APIProtocol.Sc2Api.ChatReceivedOrBuilder getChatOrBuilder( int index); } /** * Protobuf type {@code SC2APIProtocol.ResponseObservation} */ public static final class ResponseObservation extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:SC2APIProtocol.ResponseObservation) ResponseObservationOrBuilder { private static final long serialVersionUID = 0L; // Use ResponseObservation.newBuilder() to construct. private ResponseObservation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ResponseObservation() { actions_ = java.util.Collections.emptyList(); actionErrors_ = java.util.Collections.emptyList(); playerResult_ = java.util.Collections.emptyList(); chat_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ResponseObservation(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_ResponseObservation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_ResponseObservation_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Sc2Api.ResponseObservation.class, SC2APIProtocol.Sc2Api.ResponseObservation.Builder.class); } private int bitField0_; public static final int ACTIONS_FIELD_NUMBER = 1; private java.util.List actions_; /** *
     * Actions this player did since the last Observation.
     * 
* * repeated .SC2APIProtocol.Action actions = 1; */ @java.lang.Override public java.util.List getActionsList() { return actions_; } /** *
     * Actions this player did since the last Observation.
     * 
* * repeated .SC2APIProtocol.Action actions = 1; */ @java.lang.Override public java.util.List getActionsOrBuilderList() { return actions_; } /** *
     * Actions this player did since the last Observation.
     * 
* * repeated .SC2APIProtocol.Action actions = 1; */ @java.lang.Override public int getActionsCount() { return actions_.size(); } /** *
     * Actions this player did since the last Observation.
     * 
* * repeated .SC2APIProtocol.Action actions = 1; */ @java.lang.Override public SC2APIProtocol.Sc2Api.Action getActions(int index) { return actions_.get(index); } /** *
     * Actions this player did since the last Observation.
     * 
* * repeated .SC2APIProtocol.Action actions = 1; */ @java.lang.Override public SC2APIProtocol.Sc2Api.ActionOrBuilder getActionsOrBuilder( int index) { return actions_.get(index); } public static final int ACTION_ERRORS_FIELD_NUMBER = 2; private java.util.List actionErrors_; /** *
     * Equivalent of UI "red text" errors.
     * 
* * repeated .SC2APIProtocol.ActionError action_errors = 2; */ @java.lang.Override public java.util.List getActionErrorsList() { return actionErrors_; } /** *
     * Equivalent of UI "red text" errors.
     * 
* * repeated .SC2APIProtocol.ActionError action_errors = 2; */ @java.lang.Override public java.util.List getActionErrorsOrBuilderList() { return actionErrors_; } /** *
     * Equivalent of UI "red text" errors.
     * 
* * repeated .SC2APIProtocol.ActionError action_errors = 2; */ @java.lang.Override public int getActionErrorsCount() { return actionErrors_.size(); } /** *
     * Equivalent of UI "red text" errors.
     * 
* * repeated .SC2APIProtocol.ActionError action_errors = 2; */ @java.lang.Override public SC2APIProtocol.Sc2Api.ActionError getActionErrors(int index) { return actionErrors_.get(index); } /** *
     * Equivalent of UI "red text" errors.
     * 
* * repeated .SC2APIProtocol.ActionError action_errors = 2; */ @java.lang.Override public SC2APIProtocol.Sc2Api.ActionErrorOrBuilder getActionErrorsOrBuilder( int index) { return actionErrors_.get(index); } public static final int OBSERVATION_FIELD_NUMBER = 3; private SC2APIProtocol.Sc2Api.Observation observation_; /** * optional .SC2APIProtocol.Observation observation = 3; * @return Whether the observation field is set. */ @java.lang.Override public boolean hasObservation() { return ((bitField0_ & 0x00000001) != 0); } /** * optional .SC2APIProtocol.Observation observation = 3; * @return The observation. */ @java.lang.Override public SC2APIProtocol.Sc2Api.Observation getObservation() { return observation_ == null ? SC2APIProtocol.Sc2Api.Observation.getDefaultInstance() : observation_; } /** * optional .SC2APIProtocol.Observation observation = 3; */ @java.lang.Override public SC2APIProtocol.Sc2Api.ObservationOrBuilder getObservationOrBuilder() { return observation_ == null ? SC2APIProtocol.Sc2Api.Observation.getDefaultInstance() : observation_; } public static final int PLAYER_RESULT_FIELD_NUMBER = 4; private java.util.List playerResult_; /** *
     * Only populated if the game ended during this step.
     * 
* * repeated .SC2APIProtocol.PlayerResult player_result = 4; */ @java.lang.Override public java.util.List getPlayerResultList() { return playerResult_; } /** *
     * Only populated if the game ended during this step.
     * 
* * repeated .SC2APIProtocol.PlayerResult player_result = 4; */ @java.lang.Override public java.util.List getPlayerResultOrBuilderList() { return playerResult_; } /** *
     * Only populated if the game ended during this step.
     * 
* * repeated .SC2APIProtocol.PlayerResult player_result = 4; */ @java.lang.Override public int getPlayerResultCount() { return playerResult_.size(); } /** *
     * Only populated if the game ended during this step.
     * 
* * repeated .SC2APIProtocol.PlayerResult player_result = 4; */ @java.lang.Override public SC2APIProtocol.Sc2Api.PlayerResult getPlayerResult(int index) { return playerResult_.get(index); } /** *
     * Only populated if the game ended during this step.
     * 
* * repeated .SC2APIProtocol.PlayerResult player_result = 4; */ @java.lang.Override public SC2APIProtocol.Sc2Api.PlayerResultOrBuilder getPlayerResultOrBuilder( int index) { return playerResult_.get(index); } public static final int CHAT_FIELD_NUMBER = 5; private java.util.List chat_; /** * repeated .SC2APIProtocol.ChatReceived chat = 5; */ @java.lang.Override public java.util.List getChatList() { return chat_; } /** * repeated .SC2APIProtocol.ChatReceived chat = 5; */ @java.lang.Override public java.util.List getChatOrBuilderList() { return chat_; } /** * repeated .SC2APIProtocol.ChatReceived chat = 5; */ @java.lang.Override public int getChatCount() { return chat_.size(); } /** * repeated .SC2APIProtocol.ChatReceived chat = 5; */ @java.lang.Override public SC2APIProtocol.Sc2Api.ChatReceived getChat(int index) { return chat_.get(index); } /** * repeated .SC2APIProtocol.ChatReceived chat = 5; */ @java.lang.Override public SC2APIProtocol.Sc2Api.ChatReceivedOrBuilder getChatOrBuilder( int index) { return chat_.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 < actions_.size(); i++) { output.writeMessage(1, actions_.get(i)); } for (int i = 0; i < actionErrors_.size(); i++) { output.writeMessage(2, actionErrors_.get(i)); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(3, getObservation()); } for (int i = 0; i < playerResult_.size(); i++) { output.writeMessage(4, playerResult_.get(i)); } for (int i = 0; i < chat_.size(); i++) { output.writeMessage(5, chat_.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 < actions_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, actions_.get(i)); } for (int i = 0; i < actionErrors_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, actionErrors_.get(i)); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getObservation()); } for (int i = 0; i < playerResult_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, playerResult_.get(i)); } for (int i = 0; i < chat_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, chat_.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.Sc2Api.ResponseObservation)) { return super.equals(obj); } SC2APIProtocol.Sc2Api.ResponseObservation other = (SC2APIProtocol.Sc2Api.ResponseObservation) obj; if (!getActionsList() .equals(other.getActionsList())) return false; if (!getActionErrorsList() .equals(other.getActionErrorsList())) return false; if (hasObservation() != other.hasObservation()) return false; if (hasObservation()) { if (!getObservation() .equals(other.getObservation())) return false; } if (!getPlayerResultList() .equals(other.getPlayerResultList())) return false; if (!getChatList() .equals(other.getChatList())) 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 (getActionsCount() > 0) { hash = (37 * hash) + ACTIONS_FIELD_NUMBER; hash = (53 * hash) + getActionsList().hashCode(); } if (getActionErrorsCount() > 0) { hash = (37 * hash) + ACTION_ERRORS_FIELD_NUMBER; hash = (53 * hash) + getActionErrorsList().hashCode(); } if (hasObservation()) { hash = (37 * hash) + OBSERVATION_FIELD_NUMBER; hash = (53 * hash) + getObservation().hashCode(); } if (getPlayerResultCount() > 0) { hash = (37 * hash) + PLAYER_RESULT_FIELD_NUMBER; hash = (53 * hash) + getPlayerResultList().hashCode(); } if (getChatCount() > 0) { hash = (37 * hash) + CHAT_FIELD_NUMBER; hash = (53 * hash) + getChatList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static SC2APIProtocol.Sc2Api.ResponseObservation parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.ResponseObservation parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.ResponseObservation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.ResponseObservation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.ResponseObservation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.ResponseObservation parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.ResponseObservation parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.ResponseObservation 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.Sc2Api.ResponseObservation parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.ResponseObservation 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.Sc2Api.ResponseObservation parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.ResponseObservation 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.Sc2Api.ResponseObservation 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.ResponseObservation} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:SC2APIProtocol.ResponseObservation) SC2APIProtocol.Sc2Api.ResponseObservationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_ResponseObservation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_ResponseObservation_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Sc2Api.ResponseObservation.class, SC2APIProtocol.Sc2Api.ResponseObservation.Builder.class); } // Construct using SC2APIProtocol.Sc2Api.ResponseObservation.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getActionsFieldBuilder(); getActionErrorsFieldBuilder(); getObservationFieldBuilder(); getPlayerResultFieldBuilder(); getChatFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (actionsBuilder_ == null) { actions_ = java.util.Collections.emptyList(); } else { actions_ = null; actionsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); if (actionErrorsBuilder_ == null) { actionErrors_ = java.util.Collections.emptyList(); } else { actionErrors_ = null; actionErrorsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); if (observationBuilder_ == null) { observation_ = null; } else { observationBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); if (playerResultBuilder_ == null) { playerResult_ = java.util.Collections.emptyList(); } else { playerResult_ = null; playerResultBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); if (chatBuilder_ == null) { chat_ = java.util.Collections.emptyList(); } else { chat_ = null; chatBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_ResponseObservation_descriptor; } @java.lang.Override public SC2APIProtocol.Sc2Api.ResponseObservation getDefaultInstanceForType() { return SC2APIProtocol.Sc2Api.ResponseObservation.getDefaultInstance(); } @java.lang.Override public SC2APIProtocol.Sc2Api.ResponseObservation build() { SC2APIProtocol.Sc2Api.ResponseObservation result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public SC2APIProtocol.Sc2Api.ResponseObservation buildPartial() { SC2APIProtocol.Sc2Api.ResponseObservation result = new SC2APIProtocol.Sc2Api.ResponseObservation(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (actionsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { actions_ = java.util.Collections.unmodifiableList(actions_); bitField0_ = (bitField0_ & ~0x00000001); } result.actions_ = actions_; } else { result.actions_ = actionsBuilder_.build(); } if (actionErrorsBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { actionErrors_ = java.util.Collections.unmodifiableList(actionErrors_); bitField0_ = (bitField0_ & ~0x00000002); } result.actionErrors_ = actionErrors_; } else { result.actionErrors_ = actionErrorsBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { if (observationBuilder_ == null) { result.observation_ = observation_; } else { result.observation_ = observationBuilder_.build(); } to_bitField0_ |= 0x00000001; } if (playerResultBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0)) { playerResult_ = java.util.Collections.unmodifiableList(playerResult_); bitField0_ = (bitField0_ & ~0x00000008); } result.playerResult_ = playerResult_; } else { result.playerResult_ = playerResultBuilder_.build(); } if (chatBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0)) { chat_ = java.util.Collections.unmodifiableList(chat_); bitField0_ = (bitField0_ & ~0x00000010); } result.chat_ = chat_; } else { result.chat_ = chatBuilder_.build(); } 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.Sc2Api.ResponseObservation) { return mergeFrom((SC2APIProtocol.Sc2Api.ResponseObservation)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(SC2APIProtocol.Sc2Api.ResponseObservation other) { if (other == SC2APIProtocol.Sc2Api.ResponseObservation.getDefaultInstance()) return this; if (actionsBuilder_ == null) { if (!other.actions_.isEmpty()) { if (actions_.isEmpty()) { actions_ = other.actions_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureActionsIsMutable(); actions_.addAll(other.actions_); } onChanged(); } } else { if (!other.actions_.isEmpty()) { if (actionsBuilder_.isEmpty()) { actionsBuilder_.dispose(); actionsBuilder_ = null; actions_ = other.actions_; bitField0_ = (bitField0_ & ~0x00000001); actionsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getActionsFieldBuilder() : null; } else { actionsBuilder_.addAllMessages(other.actions_); } } } if (actionErrorsBuilder_ == null) { if (!other.actionErrors_.isEmpty()) { if (actionErrors_.isEmpty()) { actionErrors_ = other.actionErrors_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureActionErrorsIsMutable(); actionErrors_.addAll(other.actionErrors_); } onChanged(); } } else { if (!other.actionErrors_.isEmpty()) { if (actionErrorsBuilder_.isEmpty()) { actionErrorsBuilder_.dispose(); actionErrorsBuilder_ = null; actionErrors_ = other.actionErrors_; bitField0_ = (bitField0_ & ~0x00000002); actionErrorsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getActionErrorsFieldBuilder() : null; } else { actionErrorsBuilder_.addAllMessages(other.actionErrors_); } } } if (other.hasObservation()) { mergeObservation(other.getObservation()); } if (playerResultBuilder_ == null) { if (!other.playerResult_.isEmpty()) { if (playerResult_.isEmpty()) { playerResult_ = other.playerResult_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensurePlayerResultIsMutable(); playerResult_.addAll(other.playerResult_); } onChanged(); } } else { if (!other.playerResult_.isEmpty()) { if (playerResultBuilder_.isEmpty()) { playerResultBuilder_.dispose(); playerResultBuilder_ = null; playerResult_ = other.playerResult_; bitField0_ = (bitField0_ & ~0x00000008); playerResultBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getPlayerResultFieldBuilder() : null; } else { playerResultBuilder_.addAllMessages(other.playerResult_); } } } if (chatBuilder_ == null) { if (!other.chat_.isEmpty()) { if (chat_.isEmpty()) { chat_ = other.chat_; bitField0_ = (bitField0_ & ~0x00000010); } else { ensureChatIsMutable(); chat_.addAll(other.chat_); } onChanged(); } } else { if (!other.chat_.isEmpty()) { if (chatBuilder_.isEmpty()) { chatBuilder_.dispose(); chatBuilder_ = null; chat_ = other.chat_; bitField0_ = (bitField0_ & ~0x00000010); chatBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getChatFieldBuilder() : null; } else { chatBuilder_.addAllMessages(other.chat_); } } } 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.Sc2Api.Action m = input.readMessage( SC2APIProtocol.Sc2Api.Action.PARSER, extensionRegistry); if (actionsBuilder_ == null) { ensureActionsIsMutable(); actions_.add(m); } else { actionsBuilder_.addMessage(m); } break; } // case 10 case 18: { SC2APIProtocol.Sc2Api.ActionError m = input.readMessage( SC2APIProtocol.Sc2Api.ActionError.PARSER, extensionRegistry); if (actionErrorsBuilder_ == null) { ensureActionErrorsIsMutable(); actionErrors_.add(m); } else { actionErrorsBuilder_.addMessage(m); } break; } // case 18 case 26: { input.readMessage( getObservationFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 26 case 34: { SC2APIProtocol.Sc2Api.PlayerResult m = input.readMessage( SC2APIProtocol.Sc2Api.PlayerResult.PARSER, extensionRegistry); if (playerResultBuilder_ == null) { ensurePlayerResultIsMutable(); playerResult_.add(m); } else { playerResultBuilder_.addMessage(m); } break; } // case 34 case 42: { SC2APIProtocol.Sc2Api.ChatReceived m = input.readMessage( SC2APIProtocol.Sc2Api.ChatReceived.PARSER, extensionRegistry); if (chatBuilder_ == null) { ensureChatIsMutable(); chat_.add(m); } else { chatBuilder_.addMessage(m); } break; } // case 42 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 actions_ = java.util.Collections.emptyList(); private void ensureActionsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { actions_ = new java.util.ArrayList(actions_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< SC2APIProtocol.Sc2Api.Action, SC2APIProtocol.Sc2Api.Action.Builder, SC2APIProtocol.Sc2Api.ActionOrBuilder> actionsBuilder_; /** *
       * Actions this player did since the last Observation.
       * 
* * repeated .SC2APIProtocol.Action actions = 1; */ public java.util.List getActionsList() { if (actionsBuilder_ == null) { return java.util.Collections.unmodifiableList(actions_); } else { return actionsBuilder_.getMessageList(); } } /** *
       * Actions this player did since the last Observation.
       * 
* * repeated .SC2APIProtocol.Action actions = 1; */ public int getActionsCount() { if (actionsBuilder_ == null) { return actions_.size(); } else { return actionsBuilder_.getCount(); } } /** *
       * Actions this player did since the last Observation.
       * 
* * repeated .SC2APIProtocol.Action actions = 1; */ public SC2APIProtocol.Sc2Api.Action getActions(int index) { if (actionsBuilder_ == null) { return actions_.get(index); } else { return actionsBuilder_.getMessage(index); } } /** *
       * Actions this player did since the last Observation.
       * 
* * repeated .SC2APIProtocol.Action actions = 1; */ public Builder setActions( int index, SC2APIProtocol.Sc2Api.Action value) { if (actionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureActionsIsMutable(); actions_.set(index, value); onChanged(); } else { actionsBuilder_.setMessage(index, value); } return this; } /** *
       * Actions this player did since the last Observation.
       * 
* * repeated .SC2APIProtocol.Action actions = 1; */ public Builder setActions( int index, SC2APIProtocol.Sc2Api.Action.Builder builderForValue) { if (actionsBuilder_ == null) { ensureActionsIsMutable(); actions_.set(index, builderForValue.build()); onChanged(); } else { actionsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * Actions this player did since the last Observation.
       * 
* * repeated .SC2APIProtocol.Action actions = 1; */ public Builder addActions(SC2APIProtocol.Sc2Api.Action value) { if (actionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureActionsIsMutable(); actions_.add(value); onChanged(); } else { actionsBuilder_.addMessage(value); } return this; } /** *
       * Actions this player did since the last Observation.
       * 
* * repeated .SC2APIProtocol.Action actions = 1; */ public Builder addActions( int index, SC2APIProtocol.Sc2Api.Action value) { if (actionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureActionsIsMutable(); actions_.add(index, value); onChanged(); } else { actionsBuilder_.addMessage(index, value); } return this; } /** *
       * Actions this player did since the last Observation.
       * 
* * repeated .SC2APIProtocol.Action actions = 1; */ public Builder addActions( SC2APIProtocol.Sc2Api.Action.Builder builderForValue) { if (actionsBuilder_ == null) { ensureActionsIsMutable(); actions_.add(builderForValue.build()); onChanged(); } else { actionsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * Actions this player did since the last Observation.
       * 
* * repeated .SC2APIProtocol.Action actions = 1; */ public Builder addActions( int index, SC2APIProtocol.Sc2Api.Action.Builder builderForValue) { if (actionsBuilder_ == null) { ensureActionsIsMutable(); actions_.add(index, builderForValue.build()); onChanged(); } else { actionsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * Actions this player did since the last Observation.
       * 
* * repeated .SC2APIProtocol.Action actions = 1; */ public Builder addAllActions( java.lang.Iterable values) { if (actionsBuilder_ == null) { ensureActionsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, actions_); onChanged(); } else { actionsBuilder_.addAllMessages(values); } return this; } /** *
       * Actions this player did since the last Observation.
       * 
* * repeated .SC2APIProtocol.Action actions = 1; */ public Builder clearActions() { if (actionsBuilder_ == null) { actions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { actionsBuilder_.clear(); } return this; } /** *
       * Actions this player did since the last Observation.
       * 
* * repeated .SC2APIProtocol.Action actions = 1; */ public Builder removeActions(int index) { if (actionsBuilder_ == null) { ensureActionsIsMutable(); actions_.remove(index); onChanged(); } else { actionsBuilder_.remove(index); } return this; } /** *
       * Actions this player did since the last Observation.
       * 
* * repeated .SC2APIProtocol.Action actions = 1; */ public SC2APIProtocol.Sc2Api.Action.Builder getActionsBuilder( int index) { return getActionsFieldBuilder().getBuilder(index); } /** *
       * Actions this player did since the last Observation.
       * 
* * repeated .SC2APIProtocol.Action actions = 1; */ public SC2APIProtocol.Sc2Api.ActionOrBuilder getActionsOrBuilder( int index) { if (actionsBuilder_ == null) { return actions_.get(index); } else { return actionsBuilder_.getMessageOrBuilder(index); } } /** *
       * Actions this player did since the last Observation.
       * 
* * repeated .SC2APIProtocol.Action actions = 1; */ public java.util.List getActionsOrBuilderList() { if (actionsBuilder_ != null) { return actionsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(actions_); } } /** *
       * Actions this player did since the last Observation.
       * 
* * repeated .SC2APIProtocol.Action actions = 1; */ public SC2APIProtocol.Sc2Api.Action.Builder addActionsBuilder() { return getActionsFieldBuilder().addBuilder( SC2APIProtocol.Sc2Api.Action.getDefaultInstance()); } /** *
       * Actions this player did since the last Observation.
       * 
* * repeated .SC2APIProtocol.Action actions = 1; */ public SC2APIProtocol.Sc2Api.Action.Builder addActionsBuilder( int index) { return getActionsFieldBuilder().addBuilder( index, SC2APIProtocol.Sc2Api.Action.getDefaultInstance()); } /** *
       * Actions this player did since the last Observation.
       * 
* * repeated .SC2APIProtocol.Action actions = 1; */ public java.util.List getActionsBuilderList() { return getActionsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< SC2APIProtocol.Sc2Api.Action, SC2APIProtocol.Sc2Api.Action.Builder, SC2APIProtocol.Sc2Api.ActionOrBuilder> getActionsFieldBuilder() { if (actionsBuilder_ == null) { actionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< SC2APIProtocol.Sc2Api.Action, SC2APIProtocol.Sc2Api.Action.Builder, SC2APIProtocol.Sc2Api.ActionOrBuilder>( actions_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); actions_ = null; } return actionsBuilder_; } private java.util.List actionErrors_ = java.util.Collections.emptyList(); private void ensureActionErrorsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { actionErrors_ = new java.util.ArrayList(actionErrors_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< SC2APIProtocol.Sc2Api.ActionError, SC2APIProtocol.Sc2Api.ActionError.Builder, SC2APIProtocol.Sc2Api.ActionErrorOrBuilder> actionErrorsBuilder_; /** *
       * Equivalent of UI "red text" errors.
       * 
* * repeated .SC2APIProtocol.ActionError action_errors = 2; */ public java.util.List getActionErrorsList() { if (actionErrorsBuilder_ == null) { return java.util.Collections.unmodifiableList(actionErrors_); } else { return actionErrorsBuilder_.getMessageList(); } } /** *
       * Equivalent of UI "red text" errors.
       * 
* * repeated .SC2APIProtocol.ActionError action_errors = 2; */ public int getActionErrorsCount() { if (actionErrorsBuilder_ == null) { return actionErrors_.size(); } else { return actionErrorsBuilder_.getCount(); } } /** *
       * Equivalent of UI "red text" errors.
       * 
* * repeated .SC2APIProtocol.ActionError action_errors = 2; */ public SC2APIProtocol.Sc2Api.ActionError getActionErrors(int index) { if (actionErrorsBuilder_ == null) { return actionErrors_.get(index); } else { return actionErrorsBuilder_.getMessage(index); } } /** *
       * Equivalent of UI "red text" errors.
       * 
* * repeated .SC2APIProtocol.ActionError action_errors = 2; */ public Builder setActionErrors( int index, SC2APIProtocol.Sc2Api.ActionError value) { if (actionErrorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureActionErrorsIsMutable(); actionErrors_.set(index, value); onChanged(); } else { actionErrorsBuilder_.setMessage(index, value); } return this; } /** *
       * Equivalent of UI "red text" errors.
       * 
* * repeated .SC2APIProtocol.ActionError action_errors = 2; */ public Builder setActionErrors( int index, SC2APIProtocol.Sc2Api.ActionError.Builder builderForValue) { if (actionErrorsBuilder_ == null) { ensureActionErrorsIsMutable(); actionErrors_.set(index, builderForValue.build()); onChanged(); } else { actionErrorsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * Equivalent of UI "red text" errors.
       * 
* * repeated .SC2APIProtocol.ActionError action_errors = 2; */ public Builder addActionErrors(SC2APIProtocol.Sc2Api.ActionError value) { if (actionErrorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureActionErrorsIsMutable(); actionErrors_.add(value); onChanged(); } else { actionErrorsBuilder_.addMessage(value); } return this; } /** *
       * Equivalent of UI "red text" errors.
       * 
* * repeated .SC2APIProtocol.ActionError action_errors = 2; */ public Builder addActionErrors( int index, SC2APIProtocol.Sc2Api.ActionError value) { if (actionErrorsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureActionErrorsIsMutable(); actionErrors_.add(index, value); onChanged(); } else { actionErrorsBuilder_.addMessage(index, value); } return this; } /** *
       * Equivalent of UI "red text" errors.
       * 
* * repeated .SC2APIProtocol.ActionError action_errors = 2; */ public Builder addActionErrors( SC2APIProtocol.Sc2Api.ActionError.Builder builderForValue) { if (actionErrorsBuilder_ == null) { ensureActionErrorsIsMutable(); actionErrors_.add(builderForValue.build()); onChanged(); } else { actionErrorsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * Equivalent of UI "red text" errors.
       * 
* * repeated .SC2APIProtocol.ActionError action_errors = 2; */ public Builder addActionErrors( int index, SC2APIProtocol.Sc2Api.ActionError.Builder builderForValue) { if (actionErrorsBuilder_ == null) { ensureActionErrorsIsMutable(); actionErrors_.add(index, builderForValue.build()); onChanged(); } else { actionErrorsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * Equivalent of UI "red text" errors.
       * 
* * repeated .SC2APIProtocol.ActionError action_errors = 2; */ public Builder addAllActionErrors( java.lang.Iterable values) { if (actionErrorsBuilder_ == null) { ensureActionErrorsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, actionErrors_); onChanged(); } else { actionErrorsBuilder_.addAllMessages(values); } return this; } /** *
       * Equivalent of UI "red text" errors.
       * 
* * repeated .SC2APIProtocol.ActionError action_errors = 2; */ public Builder clearActionErrors() { if (actionErrorsBuilder_ == null) { actionErrors_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { actionErrorsBuilder_.clear(); } return this; } /** *
       * Equivalent of UI "red text" errors.
       * 
* * repeated .SC2APIProtocol.ActionError action_errors = 2; */ public Builder removeActionErrors(int index) { if (actionErrorsBuilder_ == null) { ensureActionErrorsIsMutable(); actionErrors_.remove(index); onChanged(); } else { actionErrorsBuilder_.remove(index); } return this; } /** *
       * Equivalent of UI "red text" errors.
       * 
* * repeated .SC2APIProtocol.ActionError action_errors = 2; */ public SC2APIProtocol.Sc2Api.ActionError.Builder getActionErrorsBuilder( int index) { return getActionErrorsFieldBuilder().getBuilder(index); } /** *
       * Equivalent of UI "red text" errors.
       * 
* * repeated .SC2APIProtocol.ActionError action_errors = 2; */ public SC2APIProtocol.Sc2Api.ActionErrorOrBuilder getActionErrorsOrBuilder( int index) { if (actionErrorsBuilder_ == null) { return actionErrors_.get(index); } else { return actionErrorsBuilder_.getMessageOrBuilder(index); } } /** *
       * Equivalent of UI "red text" errors.
       * 
* * repeated .SC2APIProtocol.ActionError action_errors = 2; */ public java.util.List getActionErrorsOrBuilderList() { if (actionErrorsBuilder_ != null) { return actionErrorsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(actionErrors_); } } /** *
       * Equivalent of UI "red text" errors.
       * 
* * repeated .SC2APIProtocol.ActionError action_errors = 2; */ public SC2APIProtocol.Sc2Api.ActionError.Builder addActionErrorsBuilder() { return getActionErrorsFieldBuilder().addBuilder( SC2APIProtocol.Sc2Api.ActionError.getDefaultInstance()); } /** *
       * Equivalent of UI "red text" errors.
       * 
* * repeated .SC2APIProtocol.ActionError action_errors = 2; */ public SC2APIProtocol.Sc2Api.ActionError.Builder addActionErrorsBuilder( int index) { return getActionErrorsFieldBuilder().addBuilder( index, SC2APIProtocol.Sc2Api.ActionError.getDefaultInstance()); } /** *
       * Equivalent of UI "red text" errors.
       * 
* * repeated .SC2APIProtocol.ActionError action_errors = 2; */ public java.util.List getActionErrorsBuilderList() { return getActionErrorsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< SC2APIProtocol.Sc2Api.ActionError, SC2APIProtocol.Sc2Api.ActionError.Builder, SC2APIProtocol.Sc2Api.ActionErrorOrBuilder> getActionErrorsFieldBuilder() { if (actionErrorsBuilder_ == null) { actionErrorsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< SC2APIProtocol.Sc2Api.ActionError, SC2APIProtocol.Sc2Api.ActionError.Builder, SC2APIProtocol.Sc2Api.ActionErrorOrBuilder>( actionErrors_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); actionErrors_ = null; } return actionErrorsBuilder_; } private SC2APIProtocol.Sc2Api.Observation observation_; private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.Observation, SC2APIProtocol.Sc2Api.Observation.Builder, SC2APIProtocol.Sc2Api.ObservationOrBuilder> observationBuilder_; /** * optional .SC2APIProtocol.Observation observation = 3; * @return Whether the observation field is set. */ public boolean hasObservation() { return ((bitField0_ & 0x00000004) != 0); } /** * optional .SC2APIProtocol.Observation observation = 3; * @return The observation. */ public SC2APIProtocol.Sc2Api.Observation getObservation() { if (observationBuilder_ == null) { return observation_ == null ? SC2APIProtocol.Sc2Api.Observation.getDefaultInstance() : observation_; } else { return observationBuilder_.getMessage(); } } /** * optional .SC2APIProtocol.Observation observation = 3; */ public Builder setObservation(SC2APIProtocol.Sc2Api.Observation value) { if (observationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } observation_ = value; onChanged(); } else { observationBuilder_.setMessage(value); } bitField0_ |= 0x00000004; return this; } /** * optional .SC2APIProtocol.Observation observation = 3; */ public Builder setObservation( SC2APIProtocol.Sc2Api.Observation.Builder builderForValue) { if (observationBuilder_ == null) { observation_ = builderForValue.build(); onChanged(); } else { observationBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; return this; } /** * optional .SC2APIProtocol.Observation observation = 3; */ public Builder mergeObservation(SC2APIProtocol.Sc2Api.Observation value) { if (observationBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && observation_ != null && observation_ != SC2APIProtocol.Sc2Api.Observation.getDefaultInstance()) { observation_ = SC2APIProtocol.Sc2Api.Observation.newBuilder(observation_).mergeFrom(value).buildPartial(); } else { observation_ = value; } onChanged(); } else { observationBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; return this; } /** * optional .SC2APIProtocol.Observation observation = 3; */ public Builder clearObservation() { if (observationBuilder_ == null) { observation_ = null; onChanged(); } else { observationBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } /** * optional .SC2APIProtocol.Observation observation = 3; */ public SC2APIProtocol.Sc2Api.Observation.Builder getObservationBuilder() { bitField0_ |= 0x00000004; onChanged(); return getObservationFieldBuilder().getBuilder(); } /** * optional .SC2APIProtocol.Observation observation = 3; */ public SC2APIProtocol.Sc2Api.ObservationOrBuilder getObservationOrBuilder() { if (observationBuilder_ != null) { return observationBuilder_.getMessageOrBuilder(); } else { return observation_ == null ? SC2APIProtocol.Sc2Api.Observation.getDefaultInstance() : observation_; } } /** * optional .SC2APIProtocol.Observation observation = 3; */ private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.Observation, SC2APIProtocol.Sc2Api.Observation.Builder, SC2APIProtocol.Sc2Api.ObservationOrBuilder> getObservationFieldBuilder() { if (observationBuilder_ == null) { observationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.Observation, SC2APIProtocol.Sc2Api.Observation.Builder, SC2APIProtocol.Sc2Api.ObservationOrBuilder>( getObservation(), getParentForChildren(), isClean()); observation_ = null; } return observationBuilder_; } private java.util.List playerResult_ = java.util.Collections.emptyList(); private void ensurePlayerResultIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { playerResult_ = new java.util.ArrayList(playerResult_); bitField0_ |= 0x00000008; } } private com.google.protobuf.RepeatedFieldBuilderV3< SC2APIProtocol.Sc2Api.PlayerResult, SC2APIProtocol.Sc2Api.PlayerResult.Builder, SC2APIProtocol.Sc2Api.PlayerResultOrBuilder> playerResultBuilder_; /** *
       * Only populated if the game ended during this step.
       * 
* * repeated .SC2APIProtocol.PlayerResult player_result = 4; */ public java.util.List getPlayerResultList() { if (playerResultBuilder_ == null) { return java.util.Collections.unmodifiableList(playerResult_); } else { return playerResultBuilder_.getMessageList(); } } /** *
       * Only populated if the game ended during this step.
       * 
* * repeated .SC2APIProtocol.PlayerResult player_result = 4; */ public int getPlayerResultCount() { if (playerResultBuilder_ == null) { return playerResult_.size(); } else { return playerResultBuilder_.getCount(); } } /** *
       * Only populated if the game ended during this step.
       * 
* * repeated .SC2APIProtocol.PlayerResult player_result = 4; */ public SC2APIProtocol.Sc2Api.PlayerResult getPlayerResult(int index) { if (playerResultBuilder_ == null) { return playerResult_.get(index); } else { return playerResultBuilder_.getMessage(index); } } /** *
       * Only populated if the game ended during this step.
       * 
* * repeated .SC2APIProtocol.PlayerResult player_result = 4; */ public Builder setPlayerResult( int index, SC2APIProtocol.Sc2Api.PlayerResult value) { if (playerResultBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePlayerResultIsMutable(); playerResult_.set(index, value); onChanged(); } else { playerResultBuilder_.setMessage(index, value); } return this; } /** *
       * Only populated if the game ended during this step.
       * 
* * repeated .SC2APIProtocol.PlayerResult player_result = 4; */ public Builder setPlayerResult( int index, SC2APIProtocol.Sc2Api.PlayerResult.Builder builderForValue) { if (playerResultBuilder_ == null) { ensurePlayerResultIsMutable(); playerResult_.set(index, builderForValue.build()); onChanged(); } else { playerResultBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * Only populated if the game ended during this step.
       * 
* * repeated .SC2APIProtocol.PlayerResult player_result = 4; */ public Builder addPlayerResult(SC2APIProtocol.Sc2Api.PlayerResult value) { if (playerResultBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePlayerResultIsMutable(); playerResult_.add(value); onChanged(); } else { playerResultBuilder_.addMessage(value); } return this; } /** *
       * Only populated if the game ended during this step.
       * 
* * repeated .SC2APIProtocol.PlayerResult player_result = 4; */ public Builder addPlayerResult( int index, SC2APIProtocol.Sc2Api.PlayerResult value) { if (playerResultBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePlayerResultIsMutable(); playerResult_.add(index, value); onChanged(); } else { playerResultBuilder_.addMessage(index, value); } return this; } /** *
       * Only populated if the game ended during this step.
       * 
* * repeated .SC2APIProtocol.PlayerResult player_result = 4; */ public Builder addPlayerResult( SC2APIProtocol.Sc2Api.PlayerResult.Builder builderForValue) { if (playerResultBuilder_ == null) { ensurePlayerResultIsMutable(); playerResult_.add(builderForValue.build()); onChanged(); } else { playerResultBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * Only populated if the game ended during this step.
       * 
* * repeated .SC2APIProtocol.PlayerResult player_result = 4; */ public Builder addPlayerResult( int index, SC2APIProtocol.Sc2Api.PlayerResult.Builder builderForValue) { if (playerResultBuilder_ == null) { ensurePlayerResultIsMutable(); playerResult_.add(index, builderForValue.build()); onChanged(); } else { playerResultBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * Only populated if the game ended during this step.
       * 
* * repeated .SC2APIProtocol.PlayerResult player_result = 4; */ public Builder addAllPlayerResult( java.lang.Iterable values) { if (playerResultBuilder_ == null) { ensurePlayerResultIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, playerResult_); onChanged(); } else { playerResultBuilder_.addAllMessages(values); } return this; } /** *
       * Only populated if the game ended during this step.
       * 
* * repeated .SC2APIProtocol.PlayerResult player_result = 4; */ public Builder clearPlayerResult() { if (playerResultBuilder_ == null) { playerResult_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { playerResultBuilder_.clear(); } return this; } /** *
       * Only populated if the game ended during this step.
       * 
* * repeated .SC2APIProtocol.PlayerResult player_result = 4; */ public Builder removePlayerResult(int index) { if (playerResultBuilder_ == null) { ensurePlayerResultIsMutable(); playerResult_.remove(index); onChanged(); } else { playerResultBuilder_.remove(index); } return this; } /** *
       * Only populated if the game ended during this step.
       * 
* * repeated .SC2APIProtocol.PlayerResult player_result = 4; */ public SC2APIProtocol.Sc2Api.PlayerResult.Builder getPlayerResultBuilder( int index) { return getPlayerResultFieldBuilder().getBuilder(index); } /** *
       * Only populated if the game ended during this step.
       * 
* * repeated .SC2APIProtocol.PlayerResult player_result = 4; */ public SC2APIProtocol.Sc2Api.PlayerResultOrBuilder getPlayerResultOrBuilder( int index) { if (playerResultBuilder_ == null) { return playerResult_.get(index); } else { return playerResultBuilder_.getMessageOrBuilder(index); } } /** *
       * Only populated if the game ended during this step.
       * 
* * repeated .SC2APIProtocol.PlayerResult player_result = 4; */ public java.util.List getPlayerResultOrBuilderList() { if (playerResultBuilder_ != null) { return playerResultBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(playerResult_); } } /** *
       * Only populated if the game ended during this step.
       * 
* * repeated .SC2APIProtocol.PlayerResult player_result = 4; */ public SC2APIProtocol.Sc2Api.PlayerResult.Builder addPlayerResultBuilder() { return getPlayerResultFieldBuilder().addBuilder( SC2APIProtocol.Sc2Api.PlayerResult.getDefaultInstance()); } /** *
       * Only populated if the game ended during this step.
       * 
* * repeated .SC2APIProtocol.PlayerResult player_result = 4; */ public SC2APIProtocol.Sc2Api.PlayerResult.Builder addPlayerResultBuilder( int index) { return getPlayerResultFieldBuilder().addBuilder( index, SC2APIProtocol.Sc2Api.PlayerResult.getDefaultInstance()); } /** *
       * Only populated if the game ended during this step.
       * 
* * repeated .SC2APIProtocol.PlayerResult player_result = 4; */ public java.util.List getPlayerResultBuilderList() { return getPlayerResultFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< SC2APIProtocol.Sc2Api.PlayerResult, SC2APIProtocol.Sc2Api.PlayerResult.Builder, SC2APIProtocol.Sc2Api.PlayerResultOrBuilder> getPlayerResultFieldBuilder() { if (playerResultBuilder_ == null) { playerResultBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< SC2APIProtocol.Sc2Api.PlayerResult, SC2APIProtocol.Sc2Api.PlayerResult.Builder, SC2APIProtocol.Sc2Api.PlayerResultOrBuilder>( playerResult_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); playerResult_ = null; } return playerResultBuilder_; } private java.util.List chat_ = java.util.Collections.emptyList(); private void ensureChatIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { chat_ = new java.util.ArrayList(chat_); bitField0_ |= 0x00000010; } } private com.google.protobuf.RepeatedFieldBuilderV3< SC2APIProtocol.Sc2Api.ChatReceived, SC2APIProtocol.Sc2Api.ChatReceived.Builder, SC2APIProtocol.Sc2Api.ChatReceivedOrBuilder> chatBuilder_; /** * repeated .SC2APIProtocol.ChatReceived chat = 5; */ public java.util.List getChatList() { if (chatBuilder_ == null) { return java.util.Collections.unmodifiableList(chat_); } else { return chatBuilder_.getMessageList(); } } /** * repeated .SC2APIProtocol.ChatReceived chat = 5; */ public int getChatCount() { if (chatBuilder_ == null) { return chat_.size(); } else { return chatBuilder_.getCount(); } } /** * repeated .SC2APIProtocol.ChatReceived chat = 5; */ public SC2APIProtocol.Sc2Api.ChatReceived getChat(int index) { if (chatBuilder_ == null) { return chat_.get(index); } else { return chatBuilder_.getMessage(index); } } /** * repeated .SC2APIProtocol.ChatReceived chat = 5; */ public Builder setChat( int index, SC2APIProtocol.Sc2Api.ChatReceived value) { if (chatBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureChatIsMutable(); chat_.set(index, value); onChanged(); } else { chatBuilder_.setMessage(index, value); } return this; } /** * repeated .SC2APIProtocol.ChatReceived chat = 5; */ public Builder setChat( int index, SC2APIProtocol.Sc2Api.ChatReceived.Builder builderForValue) { if (chatBuilder_ == null) { ensureChatIsMutable(); chat_.set(index, builderForValue.build()); onChanged(); } else { chatBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .SC2APIProtocol.ChatReceived chat = 5; */ public Builder addChat(SC2APIProtocol.Sc2Api.ChatReceived value) { if (chatBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureChatIsMutable(); chat_.add(value); onChanged(); } else { chatBuilder_.addMessage(value); } return this; } /** * repeated .SC2APIProtocol.ChatReceived chat = 5; */ public Builder addChat( int index, SC2APIProtocol.Sc2Api.ChatReceived value) { if (chatBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureChatIsMutable(); chat_.add(index, value); onChanged(); } else { chatBuilder_.addMessage(index, value); } return this; } /** * repeated .SC2APIProtocol.ChatReceived chat = 5; */ public Builder addChat( SC2APIProtocol.Sc2Api.ChatReceived.Builder builderForValue) { if (chatBuilder_ == null) { ensureChatIsMutable(); chat_.add(builderForValue.build()); onChanged(); } else { chatBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .SC2APIProtocol.ChatReceived chat = 5; */ public Builder addChat( int index, SC2APIProtocol.Sc2Api.ChatReceived.Builder builderForValue) { if (chatBuilder_ == null) { ensureChatIsMutable(); chat_.add(index, builderForValue.build()); onChanged(); } else { chatBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .SC2APIProtocol.ChatReceived chat = 5; */ public Builder addAllChat( java.lang.Iterable values) { if (chatBuilder_ == null) { ensureChatIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, chat_); onChanged(); } else { chatBuilder_.addAllMessages(values); } return this; } /** * repeated .SC2APIProtocol.ChatReceived chat = 5; */ public Builder clearChat() { if (chatBuilder_ == null) { chat_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); } else { chatBuilder_.clear(); } return this; } /** * repeated .SC2APIProtocol.ChatReceived chat = 5; */ public Builder removeChat(int index) { if (chatBuilder_ == null) { ensureChatIsMutable(); chat_.remove(index); onChanged(); } else { chatBuilder_.remove(index); } return this; } /** * repeated .SC2APIProtocol.ChatReceived chat = 5; */ public SC2APIProtocol.Sc2Api.ChatReceived.Builder getChatBuilder( int index) { return getChatFieldBuilder().getBuilder(index); } /** * repeated .SC2APIProtocol.ChatReceived chat = 5; */ public SC2APIProtocol.Sc2Api.ChatReceivedOrBuilder getChatOrBuilder( int index) { if (chatBuilder_ == null) { return chat_.get(index); } else { return chatBuilder_.getMessageOrBuilder(index); } } /** * repeated .SC2APIProtocol.ChatReceived chat = 5; */ public java.util.List getChatOrBuilderList() { if (chatBuilder_ != null) { return chatBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(chat_); } } /** * repeated .SC2APIProtocol.ChatReceived chat = 5; */ public SC2APIProtocol.Sc2Api.ChatReceived.Builder addChatBuilder() { return getChatFieldBuilder().addBuilder( SC2APIProtocol.Sc2Api.ChatReceived.getDefaultInstance()); } /** * repeated .SC2APIProtocol.ChatReceived chat = 5; */ public SC2APIProtocol.Sc2Api.ChatReceived.Builder addChatBuilder( int index) { return getChatFieldBuilder().addBuilder( index, SC2APIProtocol.Sc2Api.ChatReceived.getDefaultInstance()); } /** * repeated .SC2APIProtocol.ChatReceived chat = 5; */ public java.util.List getChatBuilderList() { return getChatFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< SC2APIProtocol.Sc2Api.ChatReceived, SC2APIProtocol.Sc2Api.ChatReceived.Builder, SC2APIProtocol.Sc2Api.ChatReceivedOrBuilder> getChatFieldBuilder() { if (chatBuilder_ == null) { chatBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< SC2APIProtocol.Sc2Api.ChatReceived, SC2APIProtocol.Sc2Api.ChatReceived.Builder, SC2APIProtocol.Sc2Api.ChatReceivedOrBuilder>( chat_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); chat_ = null; } return chatBuilder_; } @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.ResponseObservation) } // @@protoc_insertion_point(class_scope:SC2APIProtocol.ResponseObservation) private static final SC2APIProtocol.Sc2Api.ResponseObservation DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new SC2APIProtocol.Sc2Api.ResponseObservation(); } public static SC2APIProtocol.Sc2Api.ResponseObservation getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ResponseObservation 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.Sc2Api.ResponseObservation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ChatReceivedOrBuilder extends // @@protoc_insertion_point(interface_extends:SC2APIProtocol.ChatReceived) com.google.protobuf.MessageOrBuilder { /** * optional uint32 player_id = 1; * @return Whether the playerId field is set. */ boolean hasPlayerId(); /** * optional uint32 player_id = 1; * @return The playerId. */ int getPlayerId(); /** * optional string message = 2; * @return Whether the message field is set. */ boolean hasMessage(); /** * optional string message = 2; * @return The message. */ java.lang.String getMessage(); /** * optional string message = 2; * @return The bytes for message. */ com.google.protobuf.ByteString getMessageBytes(); } /** * Protobuf type {@code SC2APIProtocol.ChatReceived} */ public static final class ChatReceived extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:SC2APIProtocol.ChatReceived) ChatReceivedOrBuilder { private static final long serialVersionUID = 0L; // Use ChatReceived.newBuilder() to construct. private ChatReceived(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ChatReceived() { message_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ChatReceived(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_ChatReceived_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_ChatReceived_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Sc2Api.ChatReceived.class, SC2APIProtocol.Sc2Api.ChatReceived.Builder.class); } private int bitField0_; public static final int PLAYER_ID_FIELD_NUMBER = 1; private int playerId_; /** * optional uint32 player_id = 1; * @return Whether the playerId field is set. */ @java.lang.Override public boolean hasPlayerId() { return ((bitField0_ & 0x00000001) != 0); } /** * optional uint32 player_id = 1; * @return The playerId. */ @java.lang.Override public int getPlayerId() { return playerId_; } public static final int MESSAGE_FIELD_NUMBER = 2; private volatile java.lang.Object message_; /** * optional string message = 2; * @return Whether the message field is set. */ @java.lang.Override public boolean hasMessage() { return ((bitField0_ & 0x00000002) != 0); } /** * optional string message = 2; * @return The message. */ @java.lang.Override public java.lang.String getMessage() { java.lang.Object ref = message_; 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()) { message_ = s; } return s; } } /** * optional string message = 2; * @return The bytes for message. */ @java.lang.Override public com.google.protobuf.ByteString getMessageBytes() { java.lang.Object ref = message_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); message_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } 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, playerId_); } if (((bitField0_ & 0x00000002) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, message_); } 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, playerId_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, message_); } 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.Sc2Api.ChatReceived)) { return super.equals(obj); } SC2APIProtocol.Sc2Api.ChatReceived other = (SC2APIProtocol.Sc2Api.ChatReceived) obj; if (hasPlayerId() != other.hasPlayerId()) return false; if (hasPlayerId()) { if (getPlayerId() != other.getPlayerId()) return false; } if (hasMessage() != other.hasMessage()) return false; if (hasMessage()) { if (!getMessage() .equals(other.getMessage())) 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 (hasPlayerId()) { hash = (37 * hash) + PLAYER_ID_FIELD_NUMBER; hash = (53 * hash) + getPlayerId(); } if (hasMessage()) { hash = (37 * hash) + MESSAGE_FIELD_NUMBER; hash = (53 * hash) + getMessage().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static SC2APIProtocol.Sc2Api.ChatReceived parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.ChatReceived parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.ChatReceived parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.ChatReceived parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.ChatReceived parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.ChatReceived parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.ChatReceived parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.ChatReceived 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.Sc2Api.ChatReceived parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.ChatReceived 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.Sc2Api.ChatReceived parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.ChatReceived 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.Sc2Api.ChatReceived 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.ChatReceived} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:SC2APIProtocol.ChatReceived) SC2APIProtocol.Sc2Api.ChatReceivedOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_ChatReceived_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_ChatReceived_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Sc2Api.ChatReceived.class, SC2APIProtocol.Sc2Api.ChatReceived.Builder.class); } // Construct using SC2APIProtocol.Sc2Api.ChatReceived.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); playerId_ = 0; bitField0_ = (bitField0_ & ~0x00000001); message_ = ""; bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_ChatReceived_descriptor; } @java.lang.Override public SC2APIProtocol.Sc2Api.ChatReceived getDefaultInstanceForType() { return SC2APIProtocol.Sc2Api.ChatReceived.getDefaultInstance(); } @java.lang.Override public SC2APIProtocol.Sc2Api.ChatReceived build() { SC2APIProtocol.Sc2Api.ChatReceived result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public SC2APIProtocol.Sc2Api.ChatReceived buildPartial() { SC2APIProtocol.Sc2Api.ChatReceived result = new SC2APIProtocol.Sc2Api.ChatReceived(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.playerId_ = playerId_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { to_bitField0_ |= 0x00000002; } result.message_ = message_; 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.Sc2Api.ChatReceived) { return mergeFrom((SC2APIProtocol.Sc2Api.ChatReceived)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(SC2APIProtocol.Sc2Api.ChatReceived other) { if (other == SC2APIProtocol.Sc2Api.ChatReceived.getDefaultInstance()) return this; if (other.hasPlayerId()) { setPlayerId(other.getPlayerId()); } if (other.hasMessage()) { bitField0_ |= 0x00000002; message_ = other.message_; 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: { playerId_ = input.readUInt32(); bitField0_ |= 0x00000001; break; } // case 8 case 18: { message_ = input.readBytes(); 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 int playerId_ ; /** * optional uint32 player_id = 1; * @return Whether the playerId field is set. */ @java.lang.Override public boolean hasPlayerId() { return ((bitField0_ & 0x00000001) != 0); } /** * optional uint32 player_id = 1; * @return The playerId. */ @java.lang.Override public int getPlayerId() { return playerId_; } /** * optional uint32 player_id = 1; * @param value The playerId to set. * @return This builder for chaining. */ public Builder setPlayerId(int value) { bitField0_ |= 0x00000001; playerId_ = value; onChanged(); return this; } /** * optional uint32 player_id = 1; * @return This builder for chaining. */ public Builder clearPlayerId() { bitField0_ = (bitField0_ & ~0x00000001); playerId_ = 0; onChanged(); return this; } private java.lang.Object message_ = ""; /** * optional string message = 2; * @return Whether the message field is set. */ public boolean hasMessage() { return ((bitField0_ & 0x00000002) != 0); } /** * optional string message = 2; * @return The message. */ public java.lang.String getMessage() { java.lang.Object ref = message_; 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()) { message_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string message = 2; * @return The bytes for message. */ public com.google.protobuf.ByteString getMessageBytes() { java.lang.Object ref = message_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); message_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string message = 2; * @param value The message to set. * @return This builder for chaining. */ public Builder setMessage( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; message_ = value; onChanged(); return this; } /** * optional string message = 2; * @return This builder for chaining. */ public Builder clearMessage() { bitField0_ = (bitField0_ & ~0x00000002); message_ = getDefaultInstance().getMessage(); onChanged(); return this; } /** * optional string message = 2; * @param value The bytes for message to set. * @return This builder for chaining. */ public Builder setMessageBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; message_ = value; 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.ChatReceived) } // @@protoc_insertion_point(class_scope:SC2APIProtocol.ChatReceived) private static final SC2APIProtocol.Sc2Api.ChatReceived DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new SC2APIProtocol.Sc2Api.ChatReceived(); } public static SC2APIProtocol.Sc2Api.ChatReceived getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ChatReceived 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.Sc2Api.ChatReceived getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RequestActionOrBuilder extends // @@protoc_insertion_point(interface_extends:SC2APIProtocol.RequestAction) com.google.protobuf.MessageOrBuilder { /** * repeated .SC2APIProtocol.Action actions = 1; */ java.util.List getActionsList(); /** * repeated .SC2APIProtocol.Action actions = 1; */ SC2APIProtocol.Sc2Api.Action getActions(int index); /** * repeated .SC2APIProtocol.Action actions = 1; */ int getActionsCount(); /** * repeated .SC2APIProtocol.Action actions = 1; */ java.util.List getActionsOrBuilderList(); /** * repeated .SC2APIProtocol.Action actions = 1; */ SC2APIProtocol.Sc2Api.ActionOrBuilder getActionsOrBuilder( int index); } /** *
   *-----------------------------------------------------------------------------
   * 
* * Protobuf type {@code SC2APIProtocol.RequestAction} */ public static final class RequestAction extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:SC2APIProtocol.RequestAction) RequestActionOrBuilder { private static final long serialVersionUID = 0L; // Use RequestAction.newBuilder() to construct. private RequestAction(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RequestAction() { actions_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new RequestAction(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_RequestAction_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_RequestAction_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Sc2Api.RequestAction.class, SC2APIProtocol.Sc2Api.RequestAction.Builder.class); } public static final int ACTIONS_FIELD_NUMBER = 1; private java.util.List actions_; /** * repeated .SC2APIProtocol.Action actions = 1; */ @java.lang.Override public java.util.List getActionsList() { return actions_; } /** * repeated .SC2APIProtocol.Action actions = 1; */ @java.lang.Override public java.util.List getActionsOrBuilderList() { return actions_; } /** * repeated .SC2APIProtocol.Action actions = 1; */ @java.lang.Override public int getActionsCount() { return actions_.size(); } /** * repeated .SC2APIProtocol.Action actions = 1; */ @java.lang.Override public SC2APIProtocol.Sc2Api.Action getActions(int index) { return actions_.get(index); } /** * repeated .SC2APIProtocol.Action actions = 1; */ @java.lang.Override public SC2APIProtocol.Sc2Api.ActionOrBuilder getActionsOrBuilder( int index) { return actions_.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 < actions_.size(); i++) { output.writeMessage(1, actions_.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 < actions_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, actions_.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.Sc2Api.RequestAction)) { return super.equals(obj); } SC2APIProtocol.Sc2Api.RequestAction other = (SC2APIProtocol.Sc2Api.RequestAction) obj; if (!getActionsList() .equals(other.getActionsList())) 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 (getActionsCount() > 0) { hash = (37 * hash) + ACTIONS_FIELD_NUMBER; hash = (53 * hash) + getActionsList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static SC2APIProtocol.Sc2Api.RequestAction parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.RequestAction parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.RequestAction parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.RequestAction parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.RequestAction parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.RequestAction parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.RequestAction parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.RequestAction 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.Sc2Api.RequestAction parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.RequestAction 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.Sc2Api.RequestAction parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.RequestAction 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.Sc2Api.RequestAction 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.RequestAction} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:SC2APIProtocol.RequestAction) SC2APIProtocol.Sc2Api.RequestActionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_RequestAction_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_RequestAction_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Sc2Api.RequestAction.class, SC2APIProtocol.Sc2Api.RequestAction.Builder.class); } // Construct using SC2APIProtocol.Sc2Api.RequestAction.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); if (actionsBuilder_ == null) { actions_ = java.util.Collections.emptyList(); } else { actions_ = null; actionsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_RequestAction_descriptor; } @java.lang.Override public SC2APIProtocol.Sc2Api.RequestAction getDefaultInstanceForType() { return SC2APIProtocol.Sc2Api.RequestAction.getDefaultInstance(); } @java.lang.Override public SC2APIProtocol.Sc2Api.RequestAction build() { SC2APIProtocol.Sc2Api.RequestAction result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public SC2APIProtocol.Sc2Api.RequestAction buildPartial() { SC2APIProtocol.Sc2Api.RequestAction result = new SC2APIProtocol.Sc2Api.RequestAction(this); int from_bitField0_ = bitField0_; if (actionsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { actions_ = java.util.Collections.unmodifiableList(actions_); bitField0_ = (bitField0_ & ~0x00000001); } result.actions_ = actions_; } else { result.actions_ = actionsBuilder_.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.Sc2Api.RequestAction) { return mergeFrom((SC2APIProtocol.Sc2Api.RequestAction)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(SC2APIProtocol.Sc2Api.RequestAction other) { if (other == SC2APIProtocol.Sc2Api.RequestAction.getDefaultInstance()) return this; if (actionsBuilder_ == null) { if (!other.actions_.isEmpty()) { if (actions_.isEmpty()) { actions_ = other.actions_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureActionsIsMutable(); actions_.addAll(other.actions_); } onChanged(); } } else { if (!other.actions_.isEmpty()) { if (actionsBuilder_.isEmpty()) { actionsBuilder_.dispose(); actionsBuilder_ = null; actions_ = other.actions_; bitField0_ = (bitField0_ & ~0x00000001); actionsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getActionsFieldBuilder() : null; } else { actionsBuilder_.addAllMessages(other.actions_); } } } 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.Sc2Api.Action m = input.readMessage( SC2APIProtocol.Sc2Api.Action.PARSER, extensionRegistry); if (actionsBuilder_ == null) { ensureActionsIsMutable(); actions_.add(m); } else { actionsBuilder_.addMessage(m); } 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 java.util.List actions_ = java.util.Collections.emptyList(); private void ensureActionsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { actions_ = new java.util.ArrayList(actions_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< SC2APIProtocol.Sc2Api.Action, SC2APIProtocol.Sc2Api.Action.Builder, SC2APIProtocol.Sc2Api.ActionOrBuilder> actionsBuilder_; /** * repeated .SC2APIProtocol.Action actions = 1; */ public java.util.List getActionsList() { if (actionsBuilder_ == null) { return java.util.Collections.unmodifiableList(actions_); } else { return actionsBuilder_.getMessageList(); } } /** * repeated .SC2APIProtocol.Action actions = 1; */ public int getActionsCount() { if (actionsBuilder_ == null) { return actions_.size(); } else { return actionsBuilder_.getCount(); } } /** * repeated .SC2APIProtocol.Action actions = 1; */ public SC2APIProtocol.Sc2Api.Action getActions(int index) { if (actionsBuilder_ == null) { return actions_.get(index); } else { return actionsBuilder_.getMessage(index); } } /** * repeated .SC2APIProtocol.Action actions = 1; */ public Builder setActions( int index, SC2APIProtocol.Sc2Api.Action value) { if (actionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureActionsIsMutable(); actions_.set(index, value); onChanged(); } else { actionsBuilder_.setMessage(index, value); } return this; } /** * repeated .SC2APIProtocol.Action actions = 1; */ public Builder setActions( int index, SC2APIProtocol.Sc2Api.Action.Builder builderForValue) { if (actionsBuilder_ == null) { ensureActionsIsMutable(); actions_.set(index, builderForValue.build()); onChanged(); } else { actionsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .SC2APIProtocol.Action actions = 1; */ public Builder addActions(SC2APIProtocol.Sc2Api.Action value) { if (actionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureActionsIsMutable(); actions_.add(value); onChanged(); } else { actionsBuilder_.addMessage(value); } return this; } /** * repeated .SC2APIProtocol.Action actions = 1; */ public Builder addActions( int index, SC2APIProtocol.Sc2Api.Action value) { if (actionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureActionsIsMutable(); actions_.add(index, value); onChanged(); } else { actionsBuilder_.addMessage(index, value); } return this; } /** * repeated .SC2APIProtocol.Action actions = 1; */ public Builder addActions( SC2APIProtocol.Sc2Api.Action.Builder builderForValue) { if (actionsBuilder_ == null) { ensureActionsIsMutable(); actions_.add(builderForValue.build()); onChanged(); } else { actionsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .SC2APIProtocol.Action actions = 1; */ public Builder addActions( int index, SC2APIProtocol.Sc2Api.Action.Builder builderForValue) { if (actionsBuilder_ == null) { ensureActionsIsMutable(); actions_.add(index, builderForValue.build()); onChanged(); } else { actionsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .SC2APIProtocol.Action actions = 1; */ public Builder addAllActions( java.lang.Iterable values) { if (actionsBuilder_ == null) { ensureActionsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, actions_); onChanged(); } else { actionsBuilder_.addAllMessages(values); } return this; } /** * repeated .SC2APIProtocol.Action actions = 1; */ public Builder clearActions() { if (actionsBuilder_ == null) { actions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { actionsBuilder_.clear(); } return this; } /** * repeated .SC2APIProtocol.Action actions = 1; */ public Builder removeActions(int index) { if (actionsBuilder_ == null) { ensureActionsIsMutable(); actions_.remove(index); onChanged(); } else { actionsBuilder_.remove(index); } return this; } /** * repeated .SC2APIProtocol.Action actions = 1; */ public SC2APIProtocol.Sc2Api.Action.Builder getActionsBuilder( int index) { return getActionsFieldBuilder().getBuilder(index); } /** * repeated .SC2APIProtocol.Action actions = 1; */ public SC2APIProtocol.Sc2Api.ActionOrBuilder getActionsOrBuilder( int index) { if (actionsBuilder_ == null) { return actions_.get(index); } else { return actionsBuilder_.getMessageOrBuilder(index); } } /** * repeated .SC2APIProtocol.Action actions = 1; */ public java.util.List getActionsOrBuilderList() { if (actionsBuilder_ != null) { return actionsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(actions_); } } /** * repeated .SC2APIProtocol.Action actions = 1; */ public SC2APIProtocol.Sc2Api.Action.Builder addActionsBuilder() { return getActionsFieldBuilder().addBuilder( SC2APIProtocol.Sc2Api.Action.getDefaultInstance()); } /** * repeated .SC2APIProtocol.Action actions = 1; */ public SC2APIProtocol.Sc2Api.Action.Builder addActionsBuilder( int index) { return getActionsFieldBuilder().addBuilder( index, SC2APIProtocol.Sc2Api.Action.getDefaultInstance()); } /** * repeated .SC2APIProtocol.Action actions = 1; */ public java.util.List getActionsBuilderList() { return getActionsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< SC2APIProtocol.Sc2Api.Action, SC2APIProtocol.Sc2Api.Action.Builder, SC2APIProtocol.Sc2Api.ActionOrBuilder> getActionsFieldBuilder() { if (actionsBuilder_ == null) { actionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< SC2APIProtocol.Sc2Api.Action, SC2APIProtocol.Sc2Api.Action.Builder, SC2APIProtocol.Sc2Api.ActionOrBuilder>( actions_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); actions_ = null; } return actionsBuilder_; } @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.RequestAction) } // @@protoc_insertion_point(class_scope:SC2APIProtocol.RequestAction) private static final SC2APIProtocol.Sc2Api.RequestAction DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new SC2APIProtocol.Sc2Api.RequestAction(); } public static SC2APIProtocol.Sc2Api.RequestAction getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public RequestAction 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.Sc2Api.RequestAction getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ResponseActionOrBuilder extends // @@protoc_insertion_point(interface_extends:SC2APIProtocol.ResponseAction) com.google.protobuf.MessageOrBuilder { /** * repeated .SC2APIProtocol.ActionResult result = 1; * @return A list containing the result. */ java.util.List getResultList(); /** * repeated .SC2APIProtocol.ActionResult result = 1; * @return The count of result. */ int getResultCount(); /** * repeated .SC2APIProtocol.ActionResult result = 1; * @param index The index of the element to return. * @return The result at the given index. */ SC2APIProtocol.Error.ActionResult getResult(int index); } /** * Protobuf type {@code SC2APIProtocol.ResponseAction} */ public static final class ResponseAction extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:SC2APIProtocol.ResponseAction) ResponseActionOrBuilder { private static final long serialVersionUID = 0L; // Use ResponseAction.newBuilder() to construct. private ResponseAction(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ResponseAction() { result_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ResponseAction(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_ResponseAction_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_ResponseAction_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Sc2Api.ResponseAction.class, SC2APIProtocol.Sc2Api.ResponseAction.Builder.class); } public static final int RESULT_FIELD_NUMBER = 1; private java.util.List result_; private static final com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, SC2APIProtocol.Error.ActionResult> result_converter_ = new com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, SC2APIProtocol.Error.ActionResult>() { public SC2APIProtocol.Error.ActionResult convert(java.lang.Integer from) { @SuppressWarnings("deprecation") SC2APIProtocol.Error.ActionResult result = SC2APIProtocol.Error.ActionResult.valueOf(from); return result == null ? SC2APIProtocol.Error.ActionResult.Success : result; } }; /** * repeated .SC2APIProtocol.ActionResult result = 1; * @return A list containing the result. */ @java.lang.Override public java.util.List getResultList() { return new com.google.protobuf.Internal.ListAdapter< java.lang.Integer, SC2APIProtocol.Error.ActionResult>(result_, result_converter_); } /** * repeated .SC2APIProtocol.ActionResult result = 1; * @return The count of result. */ @java.lang.Override public int getResultCount() { return result_.size(); } /** * repeated .SC2APIProtocol.ActionResult result = 1; * @param index The index of the element to return. * @return The result at the given index. */ @java.lang.Override public SC2APIProtocol.Error.ActionResult getResult(int index) { return result_converter_.convert(result_.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 < result_.size(); i++) { output.writeEnum(1, result_.get(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 < result_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeEnumSizeNoTag(result_.get(i)); } size += dataSize; size += 1 * result_.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.Sc2Api.ResponseAction)) { return super.equals(obj); } SC2APIProtocol.Sc2Api.ResponseAction other = (SC2APIProtocol.Sc2Api.ResponseAction) obj; if (!result_.equals(other.result_)) 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 (getResultCount() > 0) { hash = (37 * hash) + RESULT_FIELD_NUMBER; hash = (53 * hash) + result_.hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static SC2APIProtocol.Sc2Api.ResponseAction parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.ResponseAction parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.ResponseAction parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.ResponseAction parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.ResponseAction parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.ResponseAction parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.ResponseAction parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.ResponseAction 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.Sc2Api.ResponseAction parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.ResponseAction 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.Sc2Api.ResponseAction parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.ResponseAction 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.Sc2Api.ResponseAction 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.ResponseAction} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:SC2APIProtocol.ResponseAction) SC2APIProtocol.Sc2Api.ResponseActionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_ResponseAction_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_ResponseAction_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Sc2Api.ResponseAction.class, SC2APIProtocol.Sc2Api.ResponseAction.Builder.class); } // Construct using SC2APIProtocol.Sc2Api.ResponseAction.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); result_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_ResponseAction_descriptor; } @java.lang.Override public SC2APIProtocol.Sc2Api.ResponseAction getDefaultInstanceForType() { return SC2APIProtocol.Sc2Api.ResponseAction.getDefaultInstance(); } @java.lang.Override public SC2APIProtocol.Sc2Api.ResponseAction build() { SC2APIProtocol.Sc2Api.ResponseAction result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public SC2APIProtocol.Sc2Api.ResponseAction buildPartial() { SC2APIProtocol.Sc2Api.ResponseAction result = new SC2APIProtocol.Sc2Api.ResponseAction(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { result_ = java.util.Collections.unmodifiableList(result_); bitField0_ = (bitField0_ & ~0x00000001); } result.result_ = result_; 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.Sc2Api.ResponseAction) { return mergeFrom((SC2APIProtocol.Sc2Api.ResponseAction)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(SC2APIProtocol.Sc2Api.ResponseAction other) { if (other == SC2APIProtocol.Sc2Api.ResponseAction.getDefaultInstance()) return this; if (!other.result_.isEmpty()) { if (result_.isEmpty()) { result_ = other.result_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureResultIsMutable(); result_.addAll(other.result_); } 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: { int tmpRaw = input.readEnum(); SC2APIProtocol.Error.ActionResult tmpValue = SC2APIProtocol.Error.ActionResult.forNumber(tmpRaw); if (tmpValue == null) { mergeUnknownVarintField(1, tmpRaw); } else { ensureResultIsMutable(); result_.add(tmpRaw); } break; } // case 8 case 10: { int length = input.readRawVarint32(); int oldLimit = input.pushLimit(length); while(input.getBytesUntilLimit() > 0) { int tmpRaw = input.readEnum(); SC2APIProtocol.Error.ActionResult tmpValue = SC2APIProtocol.Error.ActionResult.forNumber(tmpRaw); if (tmpValue == null) { mergeUnknownVarintField(1, tmpRaw); } else { ensureResultIsMutable(); result_.add(tmpRaw); } } input.popLimit(oldLimit); 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 java.util.List result_ = java.util.Collections.emptyList(); private void ensureResultIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { result_ = new java.util.ArrayList(result_); bitField0_ |= 0x00000001; } } /** * repeated .SC2APIProtocol.ActionResult result = 1; * @return A list containing the result. */ public java.util.List getResultList() { return new com.google.protobuf.Internal.ListAdapter< java.lang.Integer, SC2APIProtocol.Error.ActionResult>(result_, result_converter_); } /** * repeated .SC2APIProtocol.ActionResult result = 1; * @return The count of result. */ public int getResultCount() { return result_.size(); } /** * repeated .SC2APIProtocol.ActionResult result = 1; * @param index The index of the element to return. * @return The result at the given index. */ public SC2APIProtocol.Error.ActionResult getResult(int index) { return result_converter_.convert(result_.get(index)); } /** * repeated .SC2APIProtocol.ActionResult result = 1; * @param index The index to set the value at. * @param value The result to set. * @return This builder for chaining. */ public Builder setResult( int index, SC2APIProtocol.Error.ActionResult value) { if (value == null) { throw new NullPointerException(); } ensureResultIsMutable(); result_.set(index, value.getNumber()); onChanged(); return this; } /** * repeated .SC2APIProtocol.ActionResult result = 1; * @param value The result to add. * @return This builder for chaining. */ public Builder addResult(SC2APIProtocol.Error.ActionResult value) { if (value == null) { throw new NullPointerException(); } ensureResultIsMutable(); result_.add(value.getNumber()); onChanged(); return this; } /** * repeated .SC2APIProtocol.ActionResult result = 1; * @param values The result to add. * @return This builder for chaining. */ public Builder addAllResult( java.lang.Iterable values) { ensureResultIsMutable(); for (SC2APIProtocol.Error.ActionResult value : values) { result_.add(value.getNumber()); } onChanged(); return this; } /** * repeated .SC2APIProtocol.ActionResult result = 1; * @return This builder for chaining. */ public Builder clearResult() { result_ = java.util.Collections.emptyList(); 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.ResponseAction) } // @@protoc_insertion_point(class_scope:SC2APIProtocol.ResponseAction) private static final SC2APIProtocol.Sc2Api.ResponseAction DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new SC2APIProtocol.Sc2Api.ResponseAction(); } public static SC2APIProtocol.Sc2Api.ResponseAction getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ResponseAction 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.Sc2Api.ResponseAction getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RequestObserverActionOrBuilder extends // @@protoc_insertion_point(interface_extends:SC2APIProtocol.RequestObserverAction) com.google.protobuf.MessageOrBuilder { /** * repeated .SC2APIProtocol.ObserverAction actions = 1; */ java.util.List getActionsList(); /** * repeated .SC2APIProtocol.ObserverAction actions = 1; */ SC2APIProtocol.Sc2Api.ObserverAction getActions(int index); /** * repeated .SC2APIProtocol.ObserverAction actions = 1; */ int getActionsCount(); /** * repeated .SC2APIProtocol.ObserverAction actions = 1; */ java.util.List getActionsOrBuilderList(); /** * repeated .SC2APIProtocol.ObserverAction actions = 1; */ SC2APIProtocol.Sc2Api.ObserverActionOrBuilder getActionsOrBuilder( int index); } /** *
   *-----------------------------------------------------------------------------
   * 
* * Protobuf type {@code SC2APIProtocol.RequestObserverAction} */ public static final class RequestObserverAction extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:SC2APIProtocol.RequestObserverAction) RequestObserverActionOrBuilder { private static final long serialVersionUID = 0L; // Use RequestObserverAction.newBuilder() to construct. private RequestObserverAction(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RequestObserverAction() { actions_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new RequestObserverAction(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_RequestObserverAction_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_RequestObserverAction_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Sc2Api.RequestObserverAction.class, SC2APIProtocol.Sc2Api.RequestObserverAction.Builder.class); } public static final int ACTIONS_FIELD_NUMBER = 1; private java.util.List actions_; /** * repeated .SC2APIProtocol.ObserverAction actions = 1; */ @java.lang.Override public java.util.List getActionsList() { return actions_; } /** * repeated .SC2APIProtocol.ObserverAction actions = 1; */ @java.lang.Override public java.util.List getActionsOrBuilderList() { return actions_; } /** * repeated .SC2APIProtocol.ObserverAction actions = 1; */ @java.lang.Override public int getActionsCount() { return actions_.size(); } /** * repeated .SC2APIProtocol.ObserverAction actions = 1; */ @java.lang.Override public SC2APIProtocol.Sc2Api.ObserverAction getActions(int index) { return actions_.get(index); } /** * repeated .SC2APIProtocol.ObserverAction actions = 1; */ @java.lang.Override public SC2APIProtocol.Sc2Api.ObserverActionOrBuilder getActionsOrBuilder( int index) { return actions_.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 < actions_.size(); i++) { output.writeMessage(1, actions_.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 < actions_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, actions_.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.Sc2Api.RequestObserverAction)) { return super.equals(obj); } SC2APIProtocol.Sc2Api.RequestObserverAction other = (SC2APIProtocol.Sc2Api.RequestObserverAction) obj; if (!getActionsList() .equals(other.getActionsList())) 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 (getActionsCount() > 0) { hash = (37 * hash) + ACTIONS_FIELD_NUMBER; hash = (53 * hash) + getActionsList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static SC2APIProtocol.Sc2Api.RequestObserverAction parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.RequestObserverAction parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.RequestObserverAction parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.RequestObserverAction parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.RequestObserverAction parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.RequestObserverAction parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.RequestObserverAction parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.RequestObserverAction 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.Sc2Api.RequestObserverAction parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.RequestObserverAction 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.Sc2Api.RequestObserverAction parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.RequestObserverAction 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.Sc2Api.RequestObserverAction 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.RequestObserverAction} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:SC2APIProtocol.RequestObserverAction) SC2APIProtocol.Sc2Api.RequestObserverActionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_RequestObserverAction_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_RequestObserverAction_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Sc2Api.RequestObserverAction.class, SC2APIProtocol.Sc2Api.RequestObserverAction.Builder.class); } // Construct using SC2APIProtocol.Sc2Api.RequestObserverAction.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); if (actionsBuilder_ == null) { actions_ = java.util.Collections.emptyList(); } else { actions_ = null; actionsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_RequestObserverAction_descriptor; } @java.lang.Override public SC2APIProtocol.Sc2Api.RequestObserverAction getDefaultInstanceForType() { return SC2APIProtocol.Sc2Api.RequestObserverAction.getDefaultInstance(); } @java.lang.Override public SC2APIProtocol.Sc2Api.RequestObserverAction build() { SC2APIProtocol.Sc2Api.RequestObserverAction result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public SC2APIProtocol.Sc2Api.RequestObserverAction buildPartial() { SC2APIProtocol.Sc2Api.RequestObserverAction result = new SC2APIProtocol.Sc2Api.RequestObserverAction(this); int from_bitField0_ = bitField0_; if (actionsBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { actions_ = java.util.Collections.unmodifiableList(actions_); bitField0_ = (bitField0_ & ~0x00000001); } result.actions_ = actions_; } else { result.actions_ = actionsBuilder_.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.Sc2Api.RequestObserverAction) { return mergeFrom((SC2APIProtocol.Sc2Api.RequestObserverAction)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(SC2APIProtocol.Sc2Api.RequestObserverAction other) { if (other == SC2APIProtocol.Sc2Api.RequestObserverAction.getDefaultInstance()) return this; if (actionsBuilder_ == null) { if (!other.actions_.isEmpty()) { if (actions_.isEmpty()) { actions_ = other.actions_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureActionsIsMutable(); actions_.addAll(other.actions_); } onChanged(); } } else { if (!other.actions_.isEmpty()) { if (actionsBuilder_.isEmpty()) { actionsBuilder_.dispose(); actionsBuilder_ = null; actions_ = other.actions_; bitField0_ = (bitField0_ & ~0x00000001); actionsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getActionsFieldBuilder() : null; } else { actionsBuilder_.addAllMessages(other.actions_); } } } 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.Sc2Api.ObserverAction m = input.readMessage( SC2APIProtocol.Sc2Api.ObserverAction.PARSER, extensionRegistry); if (actionsBuilder_ == null) { ensureActionsIsMutable(); actions_.add(m); } else { actionsBuilder_.addMessage(m); } 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 java.util.List actions_ = java.util.Collections.emptyList(); private void ensureActionsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { actions_ = new java.util.ArrayList(actions_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< SC2APIProtocol.Sc2Api.ObserverAction, SC2APIProtocol.Sc2Api.ObserverAction.Builder, SC2APIProtocol.Sc2Api.ObserverActionOrBuilder> actionsBuilder_; /** * repeated .SC2APIProtocol.ObserverAction actions = 1; */ public java.util.List getActionsList() { if (actionsBuilder_ == null) { return java.util.Collections.unmodifiableList(actions_); } else { return actionsBuilder_.getMessageList(); } } /** * repeated .SC2APIProtocol.ObserverAction actions = 1; */ public int getActionsCount() { if (actionsBuilder_ == null) { return actions_.size(); } else { return actionsBuilder_.getCount(); } } /** * repeated .SC2APIProtocol.ObserverAction actions = 1; */ public SC2APIProtocol.Sc2Api.ObserverAction getActions(int index) { if (actionsBuilder_ == null) { return actions_.get(index); } else { return actionsBuilder_.getMessage(index); } } /** * repeated .SC2APIProtocol.ObserverAction actions = 1; */ public Builder setActions( int index, SC2APIProtocol.Sc2Api.ObserverAction value) { if (actionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureActionsIsMutable(); actions_.set(index, value); onChanged(); } else { actionsBuilder_.setMessage(index, value); } return this; } /** * repeated .SC2APIProtocol.ObserverAction actions = 1; */ public Builder setActions( int index, SC2APIProtocol.Sc2Api.ObserverAction.Builder builderForValue) { if (actionsBuilder_ == null) { ensureActionsIsMutable(); actions_.set(index, builderForValue.build()); onChanged(); } else { actionsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .SC2APIProtocol.ObserverAction actions = 1; */ public Builder addActions(SC2APIProtocol.Sc2Api.ObserverAction value) { if (actionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureActionsIsMutable(); actions_.add(value); onChanged(); } else { actionsBuilder_.addMessage(value); } return this; } /** * repeated .SC2APIProtocol.ObserverAction actions = 1; */ public Builder addActions( int index, SC2APIProtocol.Sc2Api.ObserverAction value) { if (actionsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureActionsIsMutable(); actions_.add(index, value); onChanged(); } else { actionsBuilder_.addMessage(index, value); } return this; } /** * repeated .SC2APIProtocol.ObserverAction actions = 1; */ public Builder addActions( SC2APIProtocol.Sc2Api.ObserverAction.Builder builderForValue) { if (actionsBuilder_ == null) { ensureActionsIsMutable(); actions_.add(builderForValue.build()); onChanged(); } else { actionsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .SC2APIProtocol.ObserverAction actions = 1; */ public Builder addActions( int index, SC2APIProtocol.Sc2Api.ObserverAction.Builder builderForValue) { if (actionsBuilder_ == null) { ensureActionsIsMutable(); actions_.add(index, builderForValue.build()); onChanged(); } else { actionsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .SC2APIProtocol.ObserverAction actions = 1; */ public Builder addAllActions( java.lang.Iterable values) { if (actionsBuilder_ == null) { ensureActionsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, actions_); onChanged(); } else { actionsBuilder_.addAllMessages(values); } return this; } /** * repeated .SC2APIProtocol.ObserverAction actions = 1; */ public Builder clearActions() { if (actionsBuilder_ == null) { actions_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { actionsBuilder_.clear(); } return this; } /** * repeated .SC2APIProtocol.ObserverAction actions = 1; */ public Builder removeActions(int index) { if (actionsBuilder_ == null) { ensureActionsIsMutable(); actions_.remove(index); onChanged(); } else { actionsBuilder_.remove(index); } return this; } /** * repeated .SC2APIProtocol.ObserverAction actions = 1; */ public SC2APIProtocol.Sc2Api.ObserverAction.Builder getActionsBuilder( int index) { return getActionsFieldBuilder().getBuilder(index); } /** * repeated .SC2APIProtocol.ObserverAction actions = 1; */ public SC2APIProtocol.Sc2Api.ObserverActionOrBuilder getActionsOrBuilder( int index) { if (actionsBuilder_ == null) { return actions_.get(index); } else { return actionsBuilder_.getMessageOrBuilder(index); } } /** * repeated .SC2APIProtocol.ObserverAction actions = 1; */ public java.util.List getActionsOrBuilderList() { if (actionsBuilder_ != null) { return actionsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(actions_); } } /** * repeated .SC2APIProtocol.ObserverAction actions = 1; */ public SC2APIProtocol.Sc2Api.ObserverAction.Builder addActionsBuilder() { return getActionsFieldBuilder().addBuilder( SC2APIProtocol.Sc2Api.ObserverAction.getDefaultInstance()); } /** * repeated .SC2APIProtocol.ObserverAction actions = 1; */ public SC2APIProtocol.Sc2Api.ObserverAction.Builder addActionsBuilder( int index) { return getActionsFieldBuilder().addBuilder( index, SC2APIProtocol.Sc2Api.ObserverAction.getDefaultInstance()); } /** * repeated .SC2APIProtocol.ObserverAction actions = 1; */ public java.util.List getActionsBuilderList() { return getActionsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< SC2APIProtocol.Sc2Api.ObserverAction, SC2APIProtocol.Sc2Api.ObserverAction.Builder, SC2APIProtocol.Sc2Api.ObserverActionOrBuilder> getActionsFieldBuilder() { if (actionsBuilder_ == null) { actionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< SC2APIProtocol.Sc2Api.ObserverAction, SC2APIProtocol.Sc2Api.ObserverAction.Builder, SC2APIProtocol.Sc2Api.ObserverActionOrBuilder>( actions_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); actions_ = null; } return actionsBuilder_; } @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.RequestObserverAction) } // @@protoc_insertion_point(class_scope:SC2APIProtocol.RequestObserverAction) private static final SC2APIProtocol.Sc2Api.RequestObserverAction DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new SC2APIProtocol.Sc2Api.RequestObserverAction(); } public static SC2APIProtocol.Sc2Api.RequestObserverAction getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public RequestObserverAction 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.Sc2Api.RequestObserverAction getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ResponseObserverActionOrBuilder extends // @@protoc_insertion_point(interface_extends:SC2APIProtocol.ResponseObserverAction) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code SC2APIProtocol.ResponseObserverAction} */ public static final class ResponseObserverAction extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:SC2APIProtocol.ResponseObserverAction) ResponseObserverActionOrBuilder { private static final long serialVersionUID = 0L; // Use ResponseObserverAction.newBuilder() to construct. private ResponseObserverAction(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ResponseObserverAction() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ResponseObserverAction(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_ResponseObserverAction_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_ResponseObserverAction_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Sc2Api.ResponseObserverAction.class, SC2APIProtocol.Sc2Api.ResponseObserverAction.Builder.class); } 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 { getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; 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.Sc2Api.ResponseObserverAction)) { return super.equals(obj); } SC2APIProtocol.Sc2Api.ResponseObserverAction other = (SC2APIProtocol.Sc2Api.ResponseObserverAction) obj; 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(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static SC2APIProtocol.Sc2Api.ResponseObserverAction parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.ResponseObserverAction parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.ResponseObserverAction parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.ResponseObserverAction parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.ResponseObserverAction parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.ResponseObserverAction parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.ResponseObserverAction parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.ResponseObserverAction 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.Sc2Api.ResponseObserverAction parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.ResponseObserverAction 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.Sc2Api.ResponseObserverAction parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.ResponseObserverAction 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.Sc2Api.ResponseObserverAction 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.ResponseObserverAction} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:SC2APIProtocol.ResponseObserverAction) SC2APIProtocol.Sc2Api.ResponseObserverActionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_ResponseObserverAction_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_ResponseObserverAction_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Sc2Api.ResponseObserverAction.class, SC2APIProtocol.Sc2Api.ResponseObserverAction.Builder.class); } // Construct using SC2APIProtocol.Sc2Api.ResponseObserverAction.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_ResponseObserverAction_descriptor; } @java.lang.Override public SC2APIProtocol.Sc2Api.ResponseObserverAction getDefaultInstanceForType() { return SC2APIProtocol.Sc2Api.ResponseObserverAction.getDefaultInstance(); } @java.lang.Override public SC2APIProtocol.Sc2Api.ResponseObserverAction build() { SC2APIProtocol.Sc2Api.ResponseObserverAction result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public SC2APIProtocol.Sc2Api.ResponseObserverAction buildPartial() { SC2APIProtocol.Sc2Api.ResponseObserverAction result = new SC2APIProtocol.Sc2Api.ResponseObserverAction(this); 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.Sc2Api.ResponseObserverAction) { return mergeFrom((SC2APIProtocol.Sc2Api.ResponseObserverAction)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(SC2APIProtocol.Sc2Api.ResponseObserverAction other) { if (other == SC2APIProtocol.Sc2Api.ResponseObserverAction.getDefaultInstance()) return this; 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; 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; } @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.ResponseObserverAction) } // @@protoc_insertion_point(class_scope:SC2APIProtocol.ResponseObserverAction) private static final SC2APIProtocol.Sc2Api.ResponseObserverAction DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new SC2APIProtocol.Sc2Api.ResponseObserverAction(); } public static SC2APIProtocol.Sc2Api.ResponseObserverAction getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ResponseObserverAction 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.Sc2Api.ResponseObserverAction getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RequestStepOrBuilder extends // @@protoc_insertion_point(interface_extends:SC2APIProtocol.RequestStep) com.google.protobuf.MessageOrBuilder { /** *
     * Number of game loops to simulate for the next frame.
     * 
* * optional uint32 count = 1; * @return Whether the count field is set. */ boolean hasCount(); /** *
     * Number of game loops to simulate for the next frame.
     * 
* * optional uint32 count = 1; * @return The count. */ int getCount(); } /** *
   *-----------------------------------------------------------------------------
   * 
* * Protobuf type {@code SC2APIProtocol.RequestStep} */ public static final class RequestStep extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:SC2APIProtocol.RequestStep) RequestStepOrBuilder { private static final long serialVersionUID = 0L; // Use RequestStep.newBuilder() to construct. private RequestStep(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RequestStep() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new RequestStep(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_RequestStep_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_RequestStep_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Sc2Api.RequestStep.class, SC2APIProtocol.Sc2Api.RequestStep.Builder.class); } private int bitField0_; public static final int COUNT_FIELD_NUMBER = 1; private int count_; /** *
     * Number of game loops to simulate for the next frame.
     * 
* * optional uint32 count = 1; * @return Whether the count field is set. */ @java.lang.Override public boolean hasCount() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * Number of game loops to simulate for the next frame.
     * 
* * optional uint32 count = 1; * @return The count. */ @java.lang.Override public int getCount() { return count_; } 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, count_); } 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, count_); } 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.Sc2Api.RequestStep)) { return super.equals(obj); } SC2APIProtocol.Sc2Api.RequestStep other = (SC2APIProtocol.Sc2Api.RequestStep) obj; if (hasCount() != other.hasCount()) return false; if (hasCount()) { if (getCount() != other.getCount()) 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 (hasCount()) { hash = (37 * hash) + COUNT_FIELD_NUMBER; hash = (53 * hash) + getCount(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static SC2APIProtocol.Sc2Api.RequestStep parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.RequestStep parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.RequestStep parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.RequestStep parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.RequestStep parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.RequestStep parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.RequestStep parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.RequestStep 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.Sc2Api.RequestStep parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.RequestStep 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.Sc2Api.RequestStep parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.RequestStep 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.Sc2Api.RequestStep 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.RequestStep} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:SC2APIProtocol.RequestStep) SC2APIProtocol.Sc2Api.RequestStepOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_RequestStep_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_RequestStep_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Sc2Api.RequestStep.class, SC2APIProtocol.Sc2Api.RequestStep.Builder.class); } // Construct using SC2APIProtocol.Sc2Api.RequestStep.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); count_ = 0; bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_RequestStep_descriptor; } @java.lang.Override public SC2APIProtocol.Sc2Api.RequestStep getDefaultInstanceForType() { return SC2APIProtocol.Sc2Api.RequestStep.getDefaultInstance(); } @java.lang.Override public SC2APIProtocol.Sc2Api.RequestStep build() { SC2APIProtocol.Sc2Api.RequestStep result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public SC2APIProtocol.Sc2Api.RequestStep buildPartial() { SC2APIProtocol.Sc2Api.RequestStep result = new SC2APIProtocol.Sc2Api.RequestStep(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.count_ = count_; 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.Sc2Api.RequestStep) { return mergeFrom((SC2APIProtocol.Sc2Api.RequestStep)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(SC2APIProtocol.Sc2Api.RequestStep other) { if (other == SC2APIProtocol.Sc2Api.RequestStep.getDefaultInstance()) return this; if (other.hasCount()) { setCount(other.getCount()); } 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: { count_ = input.readUInt32(); 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 count_ ; /** *
       * Number of game loops to simulate for the next frame.
       * 
* * optional uint32 count = 1; * @return Whether the count field is set. */ @java.lang.Override public boolean hasCount() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * Number of game loops to simulate for the next frame.
       * 
* * optional uint32 count = 1; * @return The count. */ @java.lang.Override public int getCount() { return count_; } /** *
       * Number of game loops to simulate for the next frame.
       * 
* * optional uint32 count = 1; * @param value The count to set. * @return This builder for chaining. */ public Builder setCount(int value) { bitField0_ |= 0x00000001; count_ = value; onChanged(); return this; } /** *
       * Number of game loops to simulate for the next frame.
       * 
* * optional uint32 count = 1; * @return This builder for chaining. */ public Builder clearCount() { bitField0_ = (bitField0_ & ~0x00000001); count_ = 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.RequestStep) } // @@protoc_insertion_point(class_scope:SC2APIProtocol.RequestStep) private static final SC2APIProtocol.Sc2Api.RequestStep DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new SC2APIProtocol.Sc2Api.RequestStep(); } public static SC2APIProtocol.Sc2Api.RequestStep getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public RequestStep 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.Sc2Api.RequestStep getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ResponseStepOrBuilder extends // @@protoc_insertion_point(interface_extends:SC2APIProtocol.ResponseStep) com.google.protobuf.MessageOrBuilder { /** *
     *  Max simulation_loop is (1<<19) before "end of time" will occur
     *  The "end of time" is classified as the maximum number of game loops or absolute game time
     *  representable as a positive fixed point number.
     *  When we reach the "end of time", permanently pause the game and end the game for all.
     * 
* * optional uint32 simulation_loop = 1; * @return Whether the simulationLoop field is set. */ boolean hasSimulationLoop(); /** *
     *  Max simulation_loop is (1<<19) before "end of time" will occur
     *  The "end of time" is classified as the maximum number of game loops or absolute game time
     *  representable as a positive fixed point number.
     *  When we reach the "end of time", permanently pause the game and end the game for all.
     * 
* * optional uint32 simulation_loop = 1; * @return The simulationLoop. */ int getSimulationLoop(); } /** * Protobuf type {@code SC2APIProtocol.ResponseStep} */ public static final class ResponseStep extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:SC2APIProtocol.ResponseStep) ResponseStepOrBuilder { private static final long serialVersionUID = 0L; // Use ResponseStep.newBuilder() to construct. private ResponseStep(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ResponseStep() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ResponseStep(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_ResponseStep_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_ResponseStep_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Sc2Api.ResponseStep.class, SC2APIProtocol.Sc2Api.ResponseStep.Builder.class); } private int bitField0_; public static final int SIMULATION_LOOP_FIELD_NUMBER = 1; private int simulationLoop_; /** *
     *  Max simulation_loop is (1<<19) before "end of time" will occur
     *  The "end of time" is classified as the maximum number of game loops or absolute game time
     *  representable as a positive fixed point number.
     *  When we reach the "end of time", permanently pause the game and end the game for all.
     * 
* * optional uint32 simulation_loop = 1; * @return Whether the simulationLoop field is set. */ @java.lang.Override public boolean hasSimulationLoop() { return ((bitField0_ & 0x00000001) != 0); } /** *
     *  Max simulation_loop is (1<<19) before "end of time" will occur
     *  The "end of time" is classified as the maximum number of game loops or absolute game time
     *  representable as a positive fixed point number.
     *  When we reach the "end of time", permanently pause the game and end the game for all.
     * 
* * optional uint32 simulation_loop = 1; * @return The simulationLoop. */ @java.lang.Override public int getSimulationLoop() { return simulationLoop_; } 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, simulationLoop_); } 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, simulationLoop_); } 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.Sc2Api.ResponseStep)) { return super.equals(obj); } SC2APIProtocol.Sc2Api.ResponseStep other = (SC2APIProtocol.Sc2Api.ResponseStep) obj; if (hasSimulationLoop() != other.hasSimulationLoop()) return false; if (hasSimulationLoop()) { if (getSimulationLoop() != other.getSimulationLoop()) 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 (hasSimulationLoop()) { hash = (37 * hash) + SIMULATION_LOOP_FIELD_NUMBER; hash = (53 * hash) + getSimulationLoop(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static SC2APIProtocol.Sc2Api.ResponseStep parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.ResponseStep parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.ResponseStep parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.ResponseStep parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.ResponseStep parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.ResponseStep parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.ResponseStep parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.ResponseStep 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.Sc2Api.ResponseStep parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.ResponseStep 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.Sc2Api.ResponseStep parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.ResponseStep 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.Sc2Api.ResponseStep 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.ResponseStep} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:SC2APIProtocol.ResponseStep) SC2APIProtocol.Sc2Api.ResponseStepOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_ResponseStep_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_ResponseStep_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Sc2Api.ResponseStep.class, SC2APIProtocol.Sc2Api.ResponseStep.Builder.class); } // Construct using SC2APIProtocol.Sc2Api.ResponseStep.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); simulationLoop_ = 0; bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_ResponseStep_descriptor; } @java.lang.Override public SC2APIProtocol.Sc2Api.ResponseStep getDefaultInstanceForType() { return SC2APIProtocol.Sc2Api.ResponseStep.getDefaultInstance(); } @java.lang.Override public SC2APIProtocol.Sc2Api.ResponseStep build() { SC2APIProtocol.Sc2Api.ResponseStep result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public SC2APIProtocol.Sc2Api.ResponseStep buildPartial() { SC2APIProtocol.Sc2Api.ResponseStep result = new SC2APIProtocol.Sc2Api.ResponseStep(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.simulationLoop_ = simulationLoop_; 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.Sc2Api.ResponseStep) { return mergeFrom((SC2APIProtocol.Sc2Api.ResponseStep)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(SC2APIProtocol.Sc2Api.ResponseStep other) { if (other == SC2APIProtocol.Sc2Api.ResponseStep.getDefaultInstance()) return this; if (other.hasSimulationLoop()) { setSimulationLoop(other.getSimulationLoop()); } 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: { simulationLoop_ = input.readUInt32(); 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 simulationLoop_ ; /** *
       *  Max simulation_loop is (1<<19) before "end of time" will occur
       *  The "end of time" is classified as the maximum number of game loops or absolute game time
       *  representable as a positive fixed point number.
       *  When we reach the "end of time", permanently pause the game and end the game for all.
       * 
* * optional uint32 simulation_loop = 1; * @return Whether the simulationLoop field is set. */ @java.lang.Override public boolean hasSimulationLoop() { return ((bitField0_ & 0x00000001) != 0); } /** *
       *  Max simulation_loop is (1<<19) before "end of time" will occur
       *  The "end of time" is classified as the maximum number of game loops or absolute game time
       *  representable as a positive fixed point number.
       *  When we reach the "end of time", permanently pause the game and end the game for all.
       * 
* * optional uint32 simulation_loop = 1; * @return The simulationLoop. */ @java.lang.Override public int getSimulationLoop() { return simulationLoop_; } /** *
       *  Max simulation_loop is (1<<19) before "end of time" will occur
       *  The "end of time" is classified as the maximum number of game loops or absolute game time
       *  representable as a positive fixed point number.
       *  When we reach the "end of time", permanently pause the game and end the game for all.
       * 
* * optional uint32 simulation_loop = 1; * @param value The simulationLoop to set. * @return This builder for chaining. */ public Builder setSimulationLoop(int value) { bitField0_ |= 0x00000001; simulationLoop_ = value; onChanged(); return this; } /** *
       *  Max simulation_loop is (1<<19) before "end of time" will occur
       *  The "end of time" is classified as the maximum number of game loops or absolute game time
       *  representable as a positive fixed point number.
       *  When we reach the "end of time", permanently pause the game and end the game for all.
       * 
* * optional uint32 simulation_loop = 1; * @return This builder for chaining. */ public Builder clearSimulationLoop() { bitField0_ = (bitField0_ & ~0x00000001); simulationLoop_ = 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.ResponseStep) } // @@protoc_insertion_point(class_scope:SC2APIProtocol.ResponseStep) private static final SC2APIProtocol.Sc2Api.ResponseStep DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new SC2APIProtocol.Sc2Api.ResponseStep(); } public static SC2APIProtocol.Sc2Api.ResponseStep getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ResponseStep 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.Sc2Api.ResponseStep getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RequestDataOrBuilder extends // @@protoc_insertion_point(interface_extends:SC2APIProtocol.RequestData) com.google.protobuf.MessageOrBuilder { /** * optional bool ability_id = 1; * @return Whether the abilityId field is set. */ boolean hasAbilityId(); /** * optional bool ability_id = 1; * @return The abilityId. */ boolean getAbilityId(); /** * optional bool unit_type_id = 2; * @return Whether the unitTypeId field is set. */ boolean hasUnitTypeId(); /** * optional bool unit_type_id = 2; * @return The unitTypeId. */ boolean getUnitTypeId(); /** * optional bool upgrade_id = 3; * @return Whether the upgradeId field is set. */ boolean hasUpgradeId(); /** * optional bool upgrade_id = 3; * @return The upgradeId. */ boolean getUpgradeId(); /** * optional bool buff_id = 4; * @return Whether the buffId field is set. */ boolean hasBuffId(); /** * optional bool buff_id = 4; * @return The buffId. */ boolean getBuffId(); /** * optional bool effect_id = 5; * @return Whether the effectId field is set. */ boolean hasEffectId(); /** * optional bool effect_id = 5; * @return The effectId. */ boolean getEffectId(); } /** *
   *-----------------------------------------------------------------------------
   * 
* * Protobuf type {@code SC2APIProtocol.RequestData} */ public static final class RequestData extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:SC2APIProtocol.RequestData) RequestDataOrBuilder { private static final long serialVersionUID = 0L; // Use RequestData.newBuilder() to construct. private RequestData(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RequestData() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new RequestData(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_RequestData_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_RequestData_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Sc2Api.RequestData.class, SC2APIProtocol.Sc2Api.RequestData.Builder.class); } private int bitField0_; public static final int ABILITY_ID_FIELD_NUMBER = 1; private boolean abilityId_; /** * optional bool ability_id = 1; * @return Whether the abilityId field is set. */ @java.lang.Override public boolean hasAbilityId() { return ((bitField0_ & 0x00000001) != 0); } /** * optional bool ability_id = 1; * @return The abilityId. */ @java.lang.Override public boolean getAbilityId() { return abilityId_; } public static final int UNIT_TYPE_ID_FIELD_NUMBER = 2; private boolean unitTypeId_; /** * optional bool unit_type_id = 2; * @return Whether the unitTypeId field is set. */ @java.lang.Override public boolean hasUnitTypeId() { return ((bitField0_ & 0x00000002) != 0); } /** * optional bool unit_type_id = 2; * @return The unitTypeId. */ @java.lang.Override public boolean getUnitTypeId() { return unitTypeId_; } public static final int UPGRADE_ID_FIELD_NUMBER = 3; private boolean upgradeId_; /** * optional bool upgrade_id = 3; * @return Whether the upgradeId field is set. */ @java.lang.Override public boolean hasUpgradeId() { return ((bitField0_ & 0x00000004) != 0); } /** * optional bool upgrade_id = 3; * @return The upgradeId. */ @java.lang.Override public boolean getUpgradeId() { return upgradeId_; } public static final int BUFF_ID_FIELD_NUMBER = 4; private boolean buffId_; /** * optional bool buff_id = 4; * @return Whether the buffId field is set. */ @java.lang.Override public boolean hasBuffId() { return ((bitField0_ & 0x00000008) != 0); } /** * optional bool buff_id = 4; * @return The buffId. */ @java.lang.Override public boolean getBuffId() { return buffId_; } public static final int EFFECT_ID_FIELD_NUMBER = 5; private boolean effectId_; /** * optional bool effect_id = 5; * @return Whether the effectId field is set. */ @java.lang.Override public boolean hasEffectId() { return ((bitField0_ & 0x00000010) != 0); } /** * optional bool effect_id = 5; * @return The effectId. */ @java.lang.Override public boolean getEffectId() { return effectId_; } 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.writeBool(1, abilityId_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeBool(2, unitTypeId_); } if (((bitField0_ & 0x00000004) != 0)) { output.writeBool(3, upgradeId_); } if (((bitField0_ & 0x00000008) != 0)) { output.writeBool(4, buffId_); } if (((bitField0_ & 0x00000010) != 0)) { output.writeBool(5, effectId_); } 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 .computeBoolSize(1, abilityId_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(2, unitTypeId_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(3, upgradeId_); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(4, buffId_); } if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(5, effectId_); } 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.Sc2Api.RequestData)) { return super.equals(obj); } SC2APIProtocol.Sc2Api.RequestData other = (SC2APIProtocol.Sc2Api.RequestData) obj; if (hasAbilityId() != other.hasAbilityId()) return false; if (hasAbilityId()) { if (getAbilityId() != other.getAbilityId()) return false; } if (hasUnitTypeId() != other.hasUnitTypeId()) return false; if (hasUnitTypeId()) { if (getUnitTypeId() != other.getUnitTypeId()) return false; } if (hasUpgradeId() != other.hasUpgradeId()) return false; if (hasUpgradeId()) { if (getUpgradeId() != other.getUpgradeId()) return false; } if (hasBuffId() != other.hasBuffId()) return false; if (hasBuffId()) { if (getBuffId() != other.getBuffId()) return false; } if (hasEffectId() != other.hasEffectId()) return false; if (hasEffectId()) { if (getEffectId() != other.getEffectId()) 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 (hasAbilityId()) { hash = (37 * hash) + ABILITY_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getAbilityId()); } if (hasUnitTypeId()) { hash = (37 * hash) + UNIT_TYPE_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getUnitTypeId()); } if (hasUpgradeId()) { hash = (37 * hash) + UPGRADE_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getUpgradeId()); } if (hasBuffId()) { hash = (37 * hash) + BUFF_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getBuffId()); } if (hasEffectId()) { hash = (37 * hash) + EFFECT_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getEffectId()); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static SC2APIProtocol.Sc2Api.RequestData parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.RequestData parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.RequestData parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.RequestData parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.RequestData parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.RequestData parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.RequestData parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.RequestData 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.Sc2Api.RequestData parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.RequestData 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.Sc2Api.RequestData parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.RequestData 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.Sc2Api.RequestData 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.RequestData} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:SC2APIProtocol.RequestData) SC2APIProtocol.Sc2Api.RequestDataOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_RequestData_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_RequestData_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Sc2Api.RequestData.class, SC2APIProtocol.Sc2Api.RequestData.Builder.class); } // Construct using SC2APIProtocol.Sc2Api.RequestData.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); abilityId_ = false; bitField0_ = (bitField0_ & ~0x00000001); unitTypeId_ = false; bitField0_ = (bitField0_ & ~0x00000002); upgradeId_ = false; bitField0_ = (bitField0_ & ~0x00000004); buffId_ = false; bitField0_ = (bitField0_ & ~0x00000008); effectId_ = false; bitField0_ = (bitField0_ & ~0x00000010); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_RequestData_descriptor; } @java.lang.Override public SC2APIProtocol.Sc2Api.RequestData getDefaultInstanceForType() { return SC2APIProtocol.Sc2Api.RequestData.getDefaultInstance(); } @java.lang.Override public SC2APIProtocol.Sc2Api.RequestData build() { SC2APIProtocol.Sc2Api.RequestData result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public SC2APIProtocol.Sc2Api.RequestData buildPartial() { SC2APIProtocol.Sc2Api.RequestData result = new SC2APIProtocol.Sc2Api.RequestData(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.abilityId_ = abilityId_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.unitTypeId_ = unitTypeId_; to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { result.upgradeId_ = upgradeId_; to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000008) != 0)) { result.buffId_ = buffId_; to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000010) != 0)) { result.effectId_ = effectId_; 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.Sc2Api.RequestData) { return mergeFrom((SC2APIProtocol.Sc2Api.RequestData)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(SC2APIProtocol.Sc2Api.RequestData other) { if (other == SC2APIProtocol.Sc2Api.RequestData.getDefaultInstance()) return this; if (other.hasAbilityId()) { setAbilityId(other.getAbilityId()); } if (other.hasUnitTypeId()) { setUnitTypeId(other.getUnitTypeId()); } if (other.hasUpgradeId()) { setUpgradeId(other.getUpgradeId()); } if (other.hasBuffId()) { setBuffId(other.getBuffId()); } if (other.hasEffectId()) { setEffectId(other.getEffectId()); } 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: { abilityId_ = input.readBool(); bitField0_ |= 0x00000001; break; } // case 8 case 16: { unitTypeId_ = input.readBool(); bitField0_ |= 0x00000002; break; } // case 16 case 24: { upgradeId_ = input.readBool(); bitField0_ |= 0x00000004; break; } // case 24 case 32: { buffId_ = input.readBool(); bitField0_ |= 0x00000008; break; } // case 32 case 40: { effectId_ = input.readBool(); 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 boolean abilityId_ ; /** * optional bool ability_id = 1; * @return Whether the abilityId field is set. */ @java.lang.Override public boolean hasAbilityId() { return ((bitField0_ & 0x00000001) != 0); } /** * optional bool ability_id = 1; * @return The abilityId. */ @java.lang.Override public boolean getAbilityId() { return abilityId_; } /** * optional bool ability_id = 1; * @param value The abilityId to set. * @return This builder for chaining. */ public Builder setAbilityId(boolean value) { bitField0_ |= 0x00000001; abilityId_ = value; onChanged(); return this; } /** * optional bool ability_id = 1; * @return This builder for chaining. */ public Builder clearAbilityId() { bitField0_ = (bitField0_ & ~0x00000001); abilityId_ = false; onChanged(); return this; } private boolean unitTypeId_ ; /** * optional bool unit_type_id = 2; * @return Whether the unitTypeId field is set. */ @java.lang.Override public boolean hasUnitTypeId() { return ((bitField0_ & 0x00000002) != 0); } /** * optional bool unit_type_id = 2; * @return The unitTypeId. */ @java.lang.Override public boolean getUnitTypeId() { return unitTypeId_; } /** * optional bool unit_type_id = 2; * @param value The unitTypeId to set. * @return This builder for chaining. */ public Builder setUnitTypeId(boolean value) { bitField0_ |= 0x00000002; unitTypeId_ = value; onChanged(); return this; } /** * optional bool unit_type_id = 2; * @return This builder for chaining. */ public Builder clearUnitTypeId() { bitField0_ = (bitField0_ & ~0x00000002); unitTypeId_ = false; onChanged(); return this; } private boolean upgradeId_ ; /** * optional bool upgrade_id = 3; * @return Whether the upgradeId field is set. */ @java.lang.Override public boolean hasUpgradeId() { return ((bitField0_ & 0x00000004) != 0); } /** * optional bool upgrade_id = 3; * @return The upgradeId. */ @java.lang.Override public boolean getUpgradeId() { return upgradeId_; } /** * optional bool upgrade_id = 3; * @param value The upgradeId to set. * @return This builder for chaining. */ public Builder setUpgradeId(boolean value) { bitField0_ |= 0x00000004; upgradeId_ = value; onChanged(); return this; } /** * optional bool upgrade_id = 3; * @return This builder for chaining. */ public Builder clearUpgradeId() { bitField0_ = (bitField0_ & ~0x00000004); upgradeId_ = false; onChanged(); return this; } private boolean buffId_ ; /** * optional bool buff_id = 4; * @return Whether the buffId field is set. */ @java.lang.Override public boolean hasBuffId() { return ((bitField0_ & 0x00000008) != 0); } /** * optional bool buff_id = 4; * @return The buffId. */ @java.lang.Override public boolean getBuffId() { return buffId_; } /** * optional bool buff_id = 4; * @param value The buffId to set. * @return This builder for chaining. */ public Builder setBuffId(boolean value) { bitField0_ |= 0x00000008; buffId_ = value; onChanged(); return this; } /** * optional bool buff_id = 4; * @return This builder for chaining. */ public Builder clearBuffId() { bitField0_ = (bitField0_ & ~0x00000008); buffId_ = false; onChanged(); return this; } private boolean effectId_ ; /** * optional bool effect_id = 5; * @return Whether the effectId field is set. */ @java.lang.Override public boolean hasEffectId() { return ((bitField0_ & 0x00000010) != 0); } /** * optional bool effect_id = 5; * @return The effectId. */ @java.lang.Override public boolean getEffectId() { return effectId_; } /** * optional bool effect_id = 5; * @param value The effectId to set. * @return This builder for chaining. */ public Builder setEffectId(boolean value) { bitField0_ |= 0x00000010; effectId_ = value; onChanged(); return this; } /** * optional bool effect_id = 5; * @return This builder for chaining. */ public Builder clearEffectId() { bitField0_ = (bitField0_ & ~0x00000010); effectId_ = false; 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.RequestData) } // @@protoc_insertion_point(class_scope:SC2APIProtocol.RequestData) private static final SC2APIProtocol.Sc2Api.RequestData DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new SC2APIProtocol.Sc2Api.RequestData(); } public static SC2APIProtocol.Sc2Api.RequestData getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public RequestData 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.Sc2Api.RequestData getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ResponseDataOrBuilder extends // @@protoc_insertion_point(interface_extends:SC2APIProtocol.ResponseData) com.google.protobuf.MessageOrBuilder { /** * repeated .SC2APIProtocol.AbilityData abilities = 1; */ java.util.List getAbilitiesList(); /** * repeated .SC2APIProtocol.AbilityData abilities = 1; */ SC2APIProtocol.Data.AbilityData getAbilities(int index); /** * repeated .SC2APIProtocol.AbilityData abilities = 1; */ int getAbilitiesCount(); /** * repeated .SC2APIProtocol.AbilityData abilities = 1; */ java.util.List getAbilitiesOrBuilderList(); /** * repeated .SC2APIProtocol.AbilityData abilities = 1; */ SC2APIProtocol.Data.AbilityDataOrBuilder getAbilitiesOrBuilder( int index); /** * repeated .SC2APIProtocol.UnitTypeData units = 2; */ java.util.List getUnitsList(); /** * repeated .SC2APIProtocol.UnitTypeData units = 2; */ SC2APIProtocol.Data.UnitTypeData getUnits(int index); /** * repeated .SC2APIProtocol.UnitTypeData units = 2; */ int getUnitsCount(); /** * repeated .SC2APIProtocol.UnitTypeData units = 2; */ java.util.List getUnitsOrBuilderList(); /** * repeated .SC2APIProtocol.UnitTypeData units = 2; */ SC2APIProtocol.Data.UnitTypeDataOrBuilder getUnitsOrBuilder( int index); /** * repeated .SC2APIProtocol.UpgradeData upgrades = 3; */ java.util.List getUpgradesList(); /** * repeated .SC2APIProtocol.UpgradeData upgrades = 3; */ SC2APIProtocol.Data.UpgradeData getUpgrades(int index); /** * repeated .SC2APIProtocol.UpgradeData upgrades = 3; */ int getUpgradesCount(); /** * repeated .SC2APIProtocol.UpgradeData upgrades = 3; */ java.util.List getUpgradesOrBuilderList(); /** * repeated .SC2APIProtocol.UpgradeData upgrades = 3; */ SC2APIProtocol.Data.UpgradeDataOrBuilder getUpgradesOrBuilder( int index); /** * repeated .SC2APIProtocol.BuffData buffs = 4; */ java.util.List getBuffsList(); /** * repeated .SC2APIProtocol.BuffData buffs = 4; */ SC2APIProtocol.Data.BuffData getBuffs(int index); /** * repeated .SC2APIProtocol.BuffData buffs = 4; */ int getBuffsCount(); /** * repeated .SC2APIProtocol.BuffData buffs = 4; */ java.util.List getBuffsOrBuilderList(); /** * repeated .SC2APIProtocol.BuffData buffs = 4; */ SC2APIProtocol.Data.BuffDataOrBuilder getBuffsOrBuilder( int index); /** * repeated .SC2APIProtocol.EffectData effects = 5; */ java.util.List getEffectsList(); /** * repeated .SC2APIProtocol.EffectData effects = 5; */ SC2APIProtocol.Data.EffectData getEffects(int index); /** * repeated .SC2APIProtocol.EffectData effects = 5; */ int getEffectsCount(); /** * repeated .SC2APIProtocol.EffectData effects = 5; */ java.util.List getEffectsOrBuilderList(); /** * repeated .SC2APIProtocol.EffectData effects = 5; */ SC2APIProtocol.Data.EffectDataOrBuilder getEffectsOrBuilder( int index); } /** * Protobuf type {@code SC2APIProtocol.ResponseData} */ public static final class ResponseData extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:SC2APIProtocol.ResponseData) ResponseDataOrBuilder { private static final long serialVersionUID = 0L; // Use ResponseData.newBuilder() to construct. private ResponseData(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ResponseData() { abilities_ = java.util.Collections.emptyList(); units_ = java.util.Collections.emptyList(); upgrades_ = java.util.Collections.emptyList(); buffs_ = java.util.Collections.emptyList(); effects_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ResponseData(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_ResponseData_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_ResponseData_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Sc2Api.ResponseData.class, SC2APIProtocol.Sc2Api.ResponseData.Builder.class); } public static final int ABILITIES_FIELD_NUMBER = 1; private java.util.List abilities_; /** * repeated .SC2APIProtocol.AbilityData abilities = 1; */ @java.lang.Override public java.util.List getAbilitiesList() { return abilities_; } /** * repeated .SC2APIProtocol.AbilityData abilities = 1; */ @java.lang.Override public java.util.List getAbilitiesOrBuilderList() { return abilities_; } /** * repeated .SC2APIProtocol.AbilityData abilities = 1; */ @java.lang.Override public int getAbilitiesCount() { return abilities_.size(); } /** * repeated .SC2APIProtocol.AbilityData abilities = 1; */ @java.lang.Override public SC2APIProtocol.Data.AbilityData getAbilities(int index) { return abilities_.get(index); } /** * repeated .SC2APIProtocol.AbilityData abilities = 1; */ @java.lang.Override public SC2APIProtocol.Data.AbilityDataOrBuilder getAbilitiesOrBuilder( int index) { return abilities_.get(index); } public static final int UNITS_FIELD_NUMBER = 2; private java.util.List units_; /** * repeated .SC2APIProtocol.UnitTypeData units = 2; */ @java.lang.Override public java.util.List getUnitsList() { return units_; } /** * repeated .SC2APIProtocol.UnitTypeData units = 2; */ @java.lang.Override public java.util.List getUnitsOrBuilderList() { return units_; } /** * repeated .SC2APIProtocol.UnitTypeData units = 2; */ @java.lang.Override public int getUnitsCount() { return units_.size(); } /** * repeated .SC2APIProtocol.UnitTypeData units = 2; */ @java.lang.Override public SC2APIProtocol.Data.UnitTypeData getUnits(int index) { return units_.get(index); } /** * repeated .SC2APIProtocol.UnitTypeData units = 2; */ @java.lang.Override public SC2APIProtocol.Data.UnitTypeDataOrBuilder getUnitsOrBuilder( int index) { return units_.get(index); } public static final int UPGRADES_FIELD_NUMBER = 3; private java.util.List upgrades_; /** * repeated .SC2APIProtocol.UpgradeData upgrades = 3; */ @java.lang.Override public java.util.List getUpgradesList() { return upgrades_; } /** * repeated .SC2APIProtocol.UpgradeData upgrades = 3; */ @java.lang.Override public java.util.List getUpgradesOrBuilderList() { return upgrades_; } /** * repeated .SC2APIProtocol.UpgradeData upgrades = 3; */ @java.lang.Override public int getUpgradesCount() { return upgrades_.size(); } /** * repeated .SC2APIProtocol.UpgradeData upgrades = 3; */ @java.lang.Override public SC2APIProtocol.Data.UpgradeData getUpgrades(int index) { return upgrades_.get(index); } /** * repeated .SC2APIProtocol.UpgradeData upgrades = 3; */ @java.lang.Override public SC2APIProtocol.Data.UpgradeDataOrBuilder getUpgradesOrBuilder( int index) { return upgrades_.get(index); } public static final int BUFFS_FIELD_NUMBER = 4; private java.util.List buffs_; /** * repeated .SC2APIProtocol.BuffData buffs = 4; */ @java.lang.Override public java.util.List getBuffsList() { return buffs_; } /** * repeated .SC2APIProtocol.BuffData buffs = 4; */ @java.lang.Override public java.util.List getBuffsOrBuilderList() { return buffs_; } /** * repeated .SC2APIProtocol.BuffData buffs = 4; */ @java.lang.Override public int getBuffsCount() { return buffs_.size(); } /** * repeated .SC2APIProtocol.BuffData buffs = 4; */ @java.lang.Override public SC2APIProtocol.Data.BuffData getBuffs(int index) { return buffs_.get(index); } /** * repeated .SC2APIProtocol.BuffData buffs = 4; */ @java.lang.Override public SC2APIProtocol.Data.BuffDataOrBuilder getBuffsOrBuilder( int index) { return buffs_.get(index); } public static final int EFFECTS_FIELD_NUMBER = 5; private java.util.List effects_; /** * repeated .SC2APIProtocol.EffectData effects = 5; */ @java.lang.Override public java.util.List getEffectsList() { return effects_; } /** * repeated .SC2APIProtocol.EffectData effects = 5; */ @java.lang.Override public java.util.List getEffectsOrBuilderList() { return effects_; } /** * repeated .SC2APIProtocol.EffectData effects = 5; */ @java.lang.Override public int getEffectsCount() { return effects_.size(); } /** * repeated .SC2APIProtocol.EffectData effects = 5; */ @java.lang.Override public SC2APIProtocol.Data.EffectData getEffects(int index) { return effects_.get(index); } /** * repeated .SC2APIProtocol.EffectData effects = 5; */ @java.lang.Override public SC2APIProtocol.Data.EffectDataOrBuilder getEffectsOrBuilder( int index) { return effects_.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 < abilities_.size(); i++) { output.writeMessage(1, abilities_.get(i)); } for (int i = 0; i < units_.size(); i++) { output.writeMessage(2, units_.get(i)); } for (int i = 0; i < upgrades_.size(); i++) { output.writeMessage(3, upgrades_.get(i)); } for (int i = 0; i < buffs_.size(); i++) { output.writeMessage(4, buffs_.get(i)); } for (int i = 0; i < effects_.size(); i++) { output.writeMessage(5, effects_.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 < abilities_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, abilities_.get(i)); } for (int i = 0; i < units_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, units_.get(i)); } for (int i = 0; i < upgrades_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, upgrades_.get(i)); } for (int i = 0; i < buffs_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, buffs_.get(i)); } for (int i = 0; i < effects_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, effects_.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.Sc2Api.ResponseData)) { return super.equals(obj); } SC2APIProtocol.Sc2Api.ResponseData other = (SC2APIProtocol.Sc2Api.ResponseData) obj; if (!getAbilitiesList() .equals(other.getAbilitiesList())) return false; if (!getUnitsList() .equals(other.getUnitsList())) return false; if (!getUpgradesList() .equals(other.getUpgradesList())) return false; if (!getBuffsList() .equals(other.getBuffsList())) return false; if (!getEffectsList() .equals(other.getEffectsList())) 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 (getAbilitiesCount() > 0) { hash = (37 * hash) + ABILITIES_FIELD_NUMBER; hash = (53 * hash) + getAbilitiesList().hashCode(); } if (getUnitsCount() > 0) { hash = (37 * hash) + UNITS_FIELD_NUMBER; hash = (53 * hash) + getUnitsList().hashCode(); } if (getUpgradesCount() > 0) { hash = (37 * hash) + UPGRADES_FIELD_NUMBER; hash = (53 * hash) + getUpgradesList().hashCode(); } if (getBuffsCount() > 0) { hash = (37 * hash) + BUFFS_FIELD_NUMBER; hash = (53 * hash) + getBuffsList().hashCode(); } if (getEffectsCount() > 0) { hash = (37 * hash) + EFFECTS_FIELD_NUMBER; hash = (53 * hash) + getEffectsList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static SC2APIProtocol.Sc2Api.ResponseData parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.ResponseData parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.ResponseData parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.ResponseData parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.ResponseData parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.ResponseData parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.ResponseData parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.ResponseData 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.Sc2Api.ResponseData parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.ResponseData 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.Sc2Api.ResponseData parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.ResponseData 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.Sc2Api.ResponseData 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.ResponseData} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:SC2APIProtocol.ResponseData) SC2APIProtocol.Sc2Api.ResponseDataOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_ResponseData_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_ResponseData_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Sc2Api.ResponseData.class, SC2APIProtocol.Sc2Api.ResponseData.Builder.class); } // Construct using SC2APIProtocol.Sc2Api.ResponseData.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); if (abilitiesBuilder_ == null) { abilities_ = java.util.Collections.emptyList(); } else { abilities_ = null; abilitiesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); if (unitsBuilder_ == null) { units_ = java.util.Collections.emptyList(); } else { units_ = null; unitsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); if (upgradesBuilder_ == null) { upgrades_ = java.util.Collections.emptyList(); } else { upgrades_ = null; upgradesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); if (buffsBuilder_ == null) { buffs_ = java.util.Collections.emptyList(); } else { buffs_ = null; buffsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); if (effectsBuilder_ == null) { effects_ = java.util.Collections.emptyList(); } else { effects_ = null; effectsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_ResponseData_descriptor; } @java.lang.Override public SC2APIProtocol.Sc2Api.ResponseData getDefaultInstanceForType() { return SC2APIProtocol.Sc2Api.ResponseData.getDefaultInstance(); } @java.lang.Override public SC2APIProtocol.Sc2Api.ResponseData build() { SC2APIProtocol.Sc2Api.ResponseData result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public SC2APIProtocol.Sc2Api.ResponseData buildPartial() { SC2APIProtocol.Sc2Api.ResponseData result = new SC2APIProtocol.Sc2Api.ResponseData(this); int from_bitField0_ = bitField0_; if (abilitiesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { abilities_ = java.util.Collections.unmodifiableList(abilities_); bitField0_ = (bitField0_ & ~0x00000001); } result.abilities_ = abilities_; } else { result.abilities_ = abilitiesBuilder_.build(); } if (unitsBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { units_ = java.util.Collections.unmodifiableList(units_); bitField0_ = (bitField0_ & ~0x00000002); } result.units_ = units_; } else { result.units_ = unitsBuilder_.build(); } if (upgradesBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0)) { upgrades_ = java.util.Collections.unmodifiableList(upgrades_); bitField0_ = (bitField0_ & ~0x00000004); } result.upgrades_ = upgrades_; } else { result.upgrades_ = upgradesBuilder_.build(); } if (buffsBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0)) { buffs_ = java.util.Collections.unmodifiableList(buffs_); bitField0_ = (bitField0_ & ~0x00000008); } result.buffs_ = buffs_; } else { result.buffs_ = buffsBuilder_.build(); } if (effectsBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0)) { effects_ = java.util.Collections.unmodifiableList(effects_); bitField0_ = (bitField0_ & ~0x00000010); } result.effects_ = effects_; } else { result.effects_ = effectsBuilder_.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.Sc2Api.ResponseData) { return mergeFrom((SC2APIProtocol.Sc2Api.ResponseData)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(SC2APIProtocol.Sc2Api.ResponseData other) { if (other == SC2APIProtocol.Sc2Api.ResponseData.getDefaultInstance()) return this; if (abilitiesBuilder_ == null) { if (!other.abilities_.isEmpty()) { if (abilities_.isEmpty()) { abilities_ = other.abilities_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureAbilitiesIsMutable(); abilities_.addAll(other.abilities_); } onChanged(); } } else { if (!other.abilities_.isEmpty()) { if (abilitiesBuilder_.isEmpty()) { abilitiesBuilder_.dispose(); abilitiesBuilder_ = null; abilities_ = other.abilities_; bitField0_ = (bitField0_ & ~0x00000001); abilitiesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getAbilitiesFieldBuilder() : null; } else { abilitiesBuilder_.addAllMessages(other.abilities_); } } } if (unitsBuilder_ == null) { if (!other.units_.isEmpty()) { if (units_.isEmpty()) { units_ = other.units_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureUnitsIsMutable(); units_.addAll(other.units_); } onChanged(); } } else { if (!other.units_.isEmpty()) { if (unitsBuilder_.isEmpty()) { unitsBuilder_.dispose(); unitsBuilder_ = null; units_ = other.units_; bitField0_ = (bitField0_ & ~0x00000002); unitsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getUnitsFieldBuilder() : null; } else { unitsBuilder_.addAllMessages(other.units_); } } } if (upgradesBuilder_ == null) { if (!other.upgrades_.isEmpty()) { if (upgrades_.isEmpty()) { upgrades_ = other.upgrades_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureUpgradesIsMutable(); upgrades_.addAll(other.upgrades_); } onChanged(); } } else { if (!other.upgrades_.isEmpty()) { if (upgradesBuilder_.isEmpty()) { upgradesBuilder_.dispose(); upgradesBuilder_ = null; upgrades_ = other.upgrades_; bitField0_ = (bitField0_ & ~0x00000004); upgradesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getUpgradesFieldBuilder() : null; } else { upgradesBuilder_.addAllMessages(other.upgrades_); } } } if (buffsBuilder_ == null) { if (!other.buffs_.isEmpty()) { if (buffs_.isEmpty()) { buffs_ = other.buffs_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureBuffsIsMutable(); buffs_.addAll(other.buffs_); } onChanged(); } } else { if (!other.buffs_.isEmpty()) { if (buffsBuilder_.isEmpty()) { buffsBuilder_.dispose(); buffsBuilder_ = null; buffs_ = other.buffs_; bitField0_ = (bitField0_ & ~0x00000008); buffsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getBuffsFieldBuilder() : null; } else { buffsBuilder_.addAllMessages(other.buffs_); } } } if (effectsBuilder_ == null) { if (!other.effects_.isEmpty()) { if (effects_.isEmpty()) { effects_ = other.effects_; bitField0_ = (bitField0_ & ~0x00000010); } else { ensureEffectsIsMutable(); effects_.addAll(other.effects_); } onChanged(); } } else { if (!other.effects_.isEmpty()) { if (effectsBuilder_.isEmpty()) { effectsBuilder_.dispose(); effectsBuilder_ = null; effects_ = other.effects_; bitField0_ = (bitField0_ & ~0x00000010); effectsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getEffectsFieldBuilder() : null; } else { effectsBuilder_.addAllMessages(other.effects_); } } } 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.Data.AbilityData m = input.readMessage( SC2APIProtocol.Data.AbilityData.PARSER, extensionRegistry); if (abilitiesBuilder_ == null) { ensureAbilitiesIsMutable(); abilities_.add(m); } else { abilitiesBuilder_.addMessage(m); } break; } // case 10 case 18: { SC2APIProtocol.Data.UnitTypeData m = input.readMessage( SC2APIProtocol.Data.UnitTypeData.PARSER, extensionRegistry); if (unitsBuilder_ == null) { ensureUnitsIsMutable(); units_.add(m); } else { unitsBuilder_.addMessage(m); } break; } // case 18 case 26: { SC2APIProtocol.Data.UpgradeData m = input.readMessage( SC2APIProtocol.Data.UpgradeData.PARSER, extensionRegistry); if (upgradesBuilder_ == null) { ensureUpgradesIsMutable(); upgrades_.add(m); } else { upgradesBuilder_.addMessage(m); } break; } // case 26 case 34: { SC2APIProtocol.Data.BuffData m = input.readMessage( SC2APIProtocol.Data.BuffData.PARSER, extensionRegistry); if (buffsBuilder_ == null) { ensureBuffsIsMutable(); buffs_.add(m); } else { buffsBuilder_.addMessage(m); } break; } // case 34 case 42: { SC2APIProtocol.Data.EffectData m = input.readMessage( SC2APIProtocol.Data.EffectData.PARSER, extensionRegistry); if (effectsBuilder_ == null) { ensureEffectsIsMutable(); effects_.add(m); } else { effectsBuilder_.addMessage(m); } break; } // case 42 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 abilities_ = java.util.Collections.emptyList(); private void ensureAbilitiesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { abilities_ = new java.util.ArrayList(abilities_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< SC2APIProtocol.Data.AbilityData, SC2APIProtocol.Data.AbilityData.Builder, SC2APIProtocol.Data.AbilityDataOrBuilder> abilitiesBuilder_; /** * repeated .SC2APIProtocol.AbilityData abilities = 1; */ public java.util.List getAbilitiesList() { if (abilitiesBuilder_ == null) { return java.util.Collections.unmodifiableList(abilities_); } else { return abilitiesBuilder_.getMessageList(); } } /** * repeated .SC2APIProtocol.AbilityData abilities = 1; */ public int getAbilitiesCount() { if (abilitiesBuilder_ == null) { return abilities_.size(); } else { return abilitiesBuilder_.getCount(); } } /** * repeated .SC2APIProtocol.AbilityData abilities = 1; */ public SC2APIProtocol.Data.AbilityData getAbilities(int index) { if (abilitiesBuilder_ == null) { return abilities_.get(index); } else { return abilitiesBuilder_.getMessage(index); } } /** * repeated .SC2APIProtocol.AbilityData abilities = 1; */ public Builder setAbilities( int index, SC2APIProtocol.Data.AbilityData value) { if (abilitiesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAbilitiesIsMutable(); abilities_.set(index, value); onChanged(); } else { abilitiesBuilder_.setMessage(index, value); } return this; } /** * repeated .SC2APIProtocol.AbilityData abilities = 1; */ public Builder setAbilities( int index, SC2APIProtocol.Data.AbilityData.Builder builderForValue) { if (abilitiesBuilder_ == null) { ensureAbilitiesIsMutable(); abilities_.set(index, builderForValue.build()); onChanged(); } else { abilitiesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .SC2APIProtocol.AbilityData abilities = 1; */ public Builder addAbilities(SC2APIProtocol.Data.AbilityData value) { if (abilitiesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAbilitiesIsMutable(); abilities_.add(value); onChanged(); } else { abilitiesBuilder_.addMessage(value); } return this; } /** * repeated .SC2APIProtocol.AbilityData abilities = 1; */ public Builder addAbilities( int index, SC2APIProtocol.Data.AbilityData value) { if (abilitiesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAbilitiesIsMutable(); abilities_.add(index, value); onChanged(); } else { abilitiesBuilder_.addMessage(index, value); } return this; } /** * repeated .SC2APIProtocol.AbilityData abilities = 1; */ public Builder addAbilities( SC2APIProtocol.Data.AbilityData.Builder builderForValue) { if (abilitiesBuilder_ == null) { ensureAbilitiesIsMutable(); abilities_.add(builderForValue.build()); onChanged(); } else { abilitiesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .SC2APIProtocol.AbilityData abilities = 1; */ public Builder addAbilities( int index, SC2APIProtocol.Data.AbilityData.Builder builderForValue) { if (abilitiesBuilder_ == null) { ensureAbilitiesIsMutable(); abilities_.add(index, builderForValue.build()); onChanged(); } else { abilitiesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .SC2APIProtocol.AbilityData abilities = 1; */ public Builder addAllAbilities( java.lang.Iterable values) { if (abilitiesBuilder_ == null) { ensureAbilitiesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, abilities_); onChanged(); } else { abilitiesBuilder_.addAllMessages(values); } return this; } /** * repeated .SC2APIProtocol.AbilityData abilities = 1; */ public Builder clearAbilities() { if (abilitiesBuilder_ == null) { abilities_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { abilitiesBuilder_.clear(); } return this; } /** * repeated .SC2APIProtocol.AbilityData abilities = 1; */ public Builder removeAbilities(int index) { if (abilitiesBuilder_ == null) { ensureAbilitiesIsMutable(); abilities_.remove(index); onChanged(); } else { abilitiesBuilder_.remove(index); } return this; } /** * repeated .SC2APIProtocol.AbilityData abilities = 1; */ public SC2APIProtocol.Data.AbilityData.Builder getAbilitiesBuilder( int index) { return getAbilitiesFieldBuilder().getBuilder(index); } /** * repeated .SC2APIProtocol.AbilityData abilities = 1; */ public SC2APIProtocol.Data.AbilityDataOrBuilder getAbilitiesOrBuilder( int index) { if (abilitiesBuilder_ == null) { return abilities_.get(index); } else { return abilitiesBuilder_.getMessageOrBuilder(index); } } /** * repeated .SC2APIProtocol.AbilityData abilities = 1; */ public java.util.List getAbilitiesOrBuilderList() { if (abilitiesBuilder_ != null) { return abilitiesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(abilities_); } } /** * repeated .SC2APIProtocol.AbilityData abilities = 1; */ public SC2APIProtocol.Data.AbilityData.Builder addAbilitiesBuilder() { return getAbilitiesFieldBuilder().addBuilder( SC2APIProtocol.Data.AbilityData.getDefaultInstance()); } /** * repeated .SC2APIProtocol.AbilityData abilities = 1; */ public SC2APIProtocol.Data.AbilityData.Builder addAbilitiesBuilder( int index) { return getAbilitiesFieldBuilder().addBuilder( index, SC2APIProtocol.Data.AbilityData.getDefaultInstance()); } /** * repeated .SC2APIProtocol.AbilityData abilities = 1; */ public java.util.List getAbilitiesBuilderList() { return getAbilitiesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< SC2APIProtocol.Data.AbilityData, SC2APIProtocol.Data.AbilityData.Builder, SC2APIProtocol.Data.AbilityDataOrBuilder> getAbilitiesFieldBuilder() { if (abilitiesBuilder_ == null) { abilitiesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< SC2APIProtocol.Data.AbilityData, SC2APIProtocol.Data.AbilityData.Builder, SC2APIProtocol.Data.AbilityDataOrBuilder>( abilities_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); abilities_ = null; } return abilitiesBuilder_; } private java.util.List units_ = java.util.Collections.emptyList(); private void ensureUnitsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { units_ = new java.util.ArrayList(units_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< SC2APIProtocol.Data.UnitTypeData, SC2APIProtocol.Data.UnitTypeData.Builder, SC2APIProtocol.Data.UnitTypeDataOrBuilder> unitsBuilder_; /** * repeated .SC2APIProtocol.UnitTypeData units = 2; */ public java.util.List getUnitsList() { if (unitsBuilder_ == null) { return java.util.Collections.unmodifiableList(units_); } else { return unitsBuilder_.getMessageList(); } } /** * repeated .SC2APIProtocol.UnitTypeData units = 2; */ public int getUnitsCount() { if (unitsBuilder_ == null) { return units_.size(); } else { return unitsBuilder_.getCount(); } } /** * repeated .SC2APIProtocol.UnitTypeData units = 2; */ public SC2APIProtocol.Data.UnitTypeData getUnits(int index) { if (unitsBuilder_ == null) { return units_.get(index); } else { return unitsBuilder_.getMessage(index); } } /** * repeated .SC2APIProtocol.UnitTypeData units = 2; */ public Builder setUnits( int index, SC2APIProtocol.Data.UnitTypeData value) { if (unitsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureUnitsIsMutable(); units_.set(index, value); onChanged(); } else { unitsBuilder_.setMessage(index, value); } return this; } /** * repeated .SC2APIProtocol.UnitTypeData units = 2; */ public Builder setUnits( int index, SC2APIProtocol.Data.UnitTypeData.Builder builderForValue) { if (unitsBuilder_ == null) { ensureUnitsIsMutable(); units_.set(index, builderForValue.build()); onChanged(); } else { unitsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .SC2APIProtocol.UnitTypeData units = 2; */ public Builder addUnits(SC2APIProtocol.Data.UnitTypeData value) { if (unitsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureUnitsIsMutable(); units_.add(value); onChanged(); } else { unitsBuilder_.addMessage(value); } return this; } /** * repeated .SC2APIProtocol.UnitTypeData units = 2; */ public Builder addUnits( int index, SC2APIProtocol.Data.UnitTypeData value) { if (unitsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureUnitsIsMutable(); units_.add(index, value); onChanged(); } else { unitsBuilder_.addMessage(index, value); } return this; } /** * repeated .SC2APIProtocol.UnitTypeData units = 2; */ public Builder addUnits( SC2APIProtocol.Data.UnitTypeData.Builder builderForValue) { if (unitsBuilder_ == null) { ensureUnitsIsMutable(); units_.add(builderForValue.build()); onChanged(); } else { unitsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .SC2APIProtocol.UnitTypeData units = 2; */ public Builder addUnits( int index, SC2APIProtocol.Data.UnitTypeData.Builder builderForValue) { if (unitsBuilder_ == null) { ensureUnitsIsMutable(); units_.add(index, builderForValue.build()); onChanged(); } else { unitsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .SC2APIProtocol.UnitTypeData units = 2; */ public Builder addAllUnits( java.lang.Iterable values) { if (unitsBuilder_ == null) { ensureUnitsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, units_); onChanged(); } else { unitsBuilder_.addAllMessages(values); } return this; } /** * repeated .SC2APIProtocol.UnitTypeData units = 2; */ public Builder clearUnits() { if (unitsBuilder_ == null) { units_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { unitsBuilder_.clear(); } return this; } /** * repeated .SC2APIProtocol.UnitTypeData units = 2; */ public Builder removeUnits(int index) { if (unitsBuilder_ == null) { ensureUnitsIsMutable(); units_.remove(index); onChanged(); } else { unitsBuilder_.remove(index); } return this; } /** * repeated .SC2APIProtocol.UnitTypeData units = 2; */ public SC2APIProtocol.Data.UnitTypeData.Builder getUnitsBuilder( int index) { return getUnitsFieldBuilder().getBuilder(index); } /** * repeated .SC2APIProtocol.UnitTypeData units = 2; */ public SC2APIProtocol.Data.UnitTypeDataOrBuilder getUnitsOrBuilder( int index) { if (unitsBuilder_ == null) { return units_.get(index); } else { return unitsBuilder_.getMessageOrBuilder(index); } } /** * repeated .SC2APIProtocol.UnitTypeData units = 2; */ public java.util.List getUnitsOrBuilderList() { if (unitsBuilder_ != null) { return unitsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(units_); } } /** * repeated .SC2APIProtocol.UnitTypeData units = 2; */ public SC2APIProtocol.Data.UnitTypeData.Builder addUnitsBuilder() { return getUnitsFieldBuilder().addBuilder( SC2APIProtocol.Data.UnitTypeData.getDefaultInstance()); } /** * repeated .SC2APIProtocol.UnitTypeData units = 2; */ public SC2APIProtocol.Data.UnitTypeData.Builder addUnitsBuilder( int index) { return getUnitsFieldBuilder().addBuilder( index, SC2APIProtocol.Data.UnitTypeData.getDefaultInstance()); } /** * repeated .SC2APIProtocol.UnitTypeData units = 2; */ public java.util.List getUnitsBuilderList() { return getUnitsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< SC2APIProtocol.Data.UnitTypeData, SC2APIProtocol.Data.UnitTypeData.Builder, SC2APIProtocol.Data.UnitTypeDataOrBuilder> getUnitsFieldBuilder() { if (unitsBuilder_ == null) { unitsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< SC2APIProtocol.Data.UnitTypeData, SC2APIProtocol.Data.UnitTypeData.Builder, SC2APIProtocol.Data.UnitTypeDataOrBuilder>( units_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); units_ = null; } return unitsBuilder_; } private java.util.List upgrades_ = java.util.Collections.emptyList(); private void ensureUpgradesIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { upgrades_ = new java.util.ArrayList(upgrades_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilderV3< SC2APIProtocol.Data.UpgradeData, SC2APIProtocol.Data.UpgradeData.Builder, SC2APIProtocol.Data.UpgradeDataOrBuilder> upgradesBuilder_; /** * repeated .SC2APIProtocol.UpgradeData upgrades = 3; */ public java.util.List getUpgradesList() { if (upgradesBuilder_ == null) { return java.util.Collections.unmodifiableList(upgrades_); } else { return upgradesBuilder_.getMessageList(); } } /** * repeated .SC2APIProtocol.UpgradeData upgrades = 3; */ public int getUpgradesCount() { if (upgradesBuilder_ == null) { return upgrades_.size(); } else { return upgradesBuilder_.getCount(); } } /** * repeated .SC2APIProtocol.UpgradeData upgrades = 3; */ public SC2APIProtocol.Data.UpgradeData getUpgrades(int index) { if (upgradesBuilder_ == null) { return upgrades_.get(index); } else { return upgradesBuilder_.getMessage(index); } } /** * repeated .SC2APIProtocol.UpgradeData upgrades = 3; */ public Builder setUpgrades( int index, SC2APIProtocol.Data.UpgradeData value) { if (upgradesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureUpgradesIsMutable(); upgrades_.set(index, value); onChanged(); } else { upgradesBuilder_.setMessage(index, value); } return this; } /** * repeated .SC2APIProtocol.UpgradeData upgrades = 3; */ public Builder setUpgrades( int index, SC2APIProtocol.Data.UpgradeData.Builder builderForValue) { if (upgradesBuilder_ == null) { ensureUpgradesIsMutable(); upgrades_.set(index, builderForValue.build()); onChanged(); } else { upgradesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .SC2APIProtocol.UpgradeData upgrades = 3; */ public Builder addUpgrades(SC2APIProtocol.Data.UpgradeData value) { if (upgradesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureUpgradesIsMutable(); upgrades_.add(value); onChanged(); } else { upgradesBuilder_.addMessage(value); } return this; } /** * repeated .SC2APIProtocol.UpgradeData upgrades = 3; */ public Builder addUpgrades( int index, SC2APIProtocol.Data.UpgradeData value) { if (upgradesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureUpgradesIsMutable(); upgrades_.add(index, value); onChanged(); } else { upgradesBuilder_.addMessage(index, value); } return this; } /** * repeated .SC2APIProtocol.UpgradeData upgrades = 3; */ public Builder addUpgrades( SC2APIProtocol.Data.UpgradeData.Builder builderForValue) { if (upgradesBuilder_ == null) { ensureUpgradesIsMutable(); upgrades_.add(builderForValue.build()); onChanged(); } else { upgradesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .SC2APIProtocol.UpgradeData upgrades = 3; */ public Builder addUpgrades( int index, SC2APIProtocol.Data.UpgradeData.Builder builderForValue) { if (upgradesBuilder_ == null) { ensureUpgradesIsMutable(); upgrades_.add(index, builderForValue.build()); onChanged(); } else { upgradesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .SC2APIProtocol.UpgradeData upgrades = 3; */ public Builder addAllUpgrades( java.lang.Iterable values) { if (upgradesBuilder_ == null) { ensureUpgradesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, upgrades_); onChanged(); } else { upgradesBuilder_.addAllMessages(values); } return this; } /** * repeated .SC2APIProtocol.UpgradeData upgrades = 3; */ public Builder clearUpgrades() { if (upgradesBuilder_ == null) { upgrades_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { upgradesBuilder_.clear(); } return this; } /** * repeated .SC2APIProtocol.UpgradeData upgrades = 3; */ public Builder removeUpgrades(int index) { if (upgradesBuilder_ == null) { ensureUpgradesIsMutable(); upgrades_.remove(index); onChanged(); } else { upgradesBuilder_.remove(index); } return this; } /** * repeated .SC2APIProtocol.UpgradeData upgrades = 3; */ public SC2APIProtocol.Data.UpgradeData.Builder getUpgradesBuilder( int index) { return getUpgradesFieldBuilder().getBuilder(index); } /** * repeated .SC2APIProtocol.UpgradeData upgrades = 3; */ public SC2APIProtocol.Data.UpgradeDataOrBuilder getUpgradesOrBuilder( int index) { if (upgradesBuilder_ == null) { return upgrades_.get(index); } else { return upgradesBuilder_.getMessageOrBuilder(index); } } /** * repeated .SC2APIProtocol.UpgradeData upgrades = 3; */ public java.util.List getUpgradesOrBuilderList() { if (upgradesBuilder_ != null) { return upgradesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(upgrades_); } } /** * repeated .SC2APIProtocol.UpgradeData upgrades = 3; */ public SC2APIProtocol.Data.UpgradeData.Builder addUpgradesBuilder() { return getUpgradesFieldBuilder().addBuilder( SC2APIProtocol.Data.UpgradeData.getDefaultInstance()); } /** * repeated .SC2APIProtocol.UpgradeData upgrades = 3; */ public SC2APIProtocol.Data.UpgradeData.Builder addUpgradesBuilder( int index) { return getUpgradesFieldBuilder().addBuilder( index, SC2APIProtocol.Data.UpgradeData.getDefaultInstance()); } /** * repeated .SC2APIProtocol.UpgradeData upgrades = 3; */ public java.util.List getUpgradesBuilderList() { return getUpgradesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< SC2APIProtocol.Data.UpgradeData, SC2APIProtocol.Data.UpgradeData.Builder, SC2APIProtocol.Data.UpgradeDataOrBuilder> getUpgradesFieldBuilder() { if (upgradesBuilder_ == null) { upgradesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< SC2APIProtocol.Data.UpgradeData, SC2APIProtocol.Data.UpgradeData.Builder, SC2APIProtocol.Data.UpgradeDataOrBuilder>( upgrades_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); upgrades_ = null; } return upgradesBuilder_; } private java.util.List buffs_ = java.util.Collections.emptyList(); private void ensureBuffsIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { buffs_ = new java.util.ArrayList(buffs_); bitField0_ |= 0x00000008; } } private com.google.protobuf.RepeatedFieldBuilderV3< SC2APIProtocol.Data.BuffData, SC2APIProtocol.Data.BuffData.Builder, SC2APIProtocol.Data.BuffDataOrBuilder> buffsBuilder_; /** * repeated .SC2APIProtocol.BuffData buffs = 4; */ public java.util.List getBuffsList() { if (buffsBuilder_ == null) { return java.util.Collections.unmodifiableList(buffs_); } else { return buffsBuilder_.getMessageList(); } } /** * repeated .SC2APIProtocol.BuffData buffs = 4; */ public int getBuffsCount() { if (buffsBuilder_ == null) { return buffs_.size(); } else { return buffsBuilder_.getCount(); } } /** * repeated .SC2APIProtocol.BuffData buffs = 4; */ public SC2APIProtocol.Data.BuffData getBuffs(int index) { if (buffsBuilder_ == null) { return buffs_.get(index); } else { return buffsBuilder_.getMessage(index); } } /** * repeated .SC2APIProtocol.BuffData buffs = 4; */ public Builder setBuffs( int index, SC2APIProtocol.Data.BuffData value) { if (buffsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureBuffsIsMutable(); buffs_.set(index, value); onChanged(); } else { buffsBuilder_.setMessage(index, value); } return this; } /** * repeated .SC2APIProtocol.BuffData buffs = 4; */ public Builder setBuffs( int index, SC2APIProtocol.Data.BuffData.Builder builderForValue) { if (buffsBuilder_ == null) { ensureBuffsIsMutable(); buffs_.set(index, builderForValue.build()); onChanged(); } else { buffsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .SC2APIProtocol.BuffData buffs = 4; */ public Builder addBuffs(SC2APIProtocol.Data.BuffData value) { if (buffsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureBuffsIsMutable(); buffs_.add(value); onChanged(); } else { buffsBuilder_.addMessage(value); } return this; } /** * repeated .SC2APIProtocol.BuffData buffs = 4; */ public Builder addBuffs( int index, SC2APIProtocol.Data.BuffData value) { if (buffsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureBuffsIsMutable(); buffs_.add(index, value); onChanged(); } else { buffsBuilder_.addMessage(index, value); } return this; } /** * repeated .SC2APIProtocol.BuffData buffs = 4; */ public Builder addBuffs( SC2APIProtocol.Data.BuffData.Builder builderForValue) { if (buffsBuilder_ == null) { ensureBuffsIsMutable(); buffs_.add(builderForValue.build()); onChanged(); } else { buffsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .SC2APIProtocol.BuffData buffs = 4; */ public Builder addBuffs( int index, SC2APIProtocol.Data.BuffData.Builder builderForValue) { if (buffsBuilder_ == null) { ensureBuffsIsMutable(); buffs_.add(index, builderForValue.build()); onChanged(); } else { buffsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .SC2APIProtocol.BuffData buffs = 4; */ public Builder addAllBuffs( java.lang.Iterable values) { if (buffsBuilder_ == null) { ensureBuffsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, buffs_); onChanged(); } else { buffsBuilder_.addAllMessages(values); } return this; } /** * repeated .SC2APIProtocol.BuffData buffs = 4; */ public Builder clearBuffs() { if (buffsBuilder_ == null) { buffs_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { buffsBuilder_.clear(); } return this; } /** * repeated .SC2APIProtocol.BuffData buffs = 4; */ public Builder removeBuffs(int index) { if (buffsBuilder_ == null) { ensureBuffsIsMutable(); buffs_.remove(index); onChanged(); } else { buffsBuilder_.remove(index); } return this; } /** * repeated .SC2APIProtocol.BuffData buffs = 4; */ public SC2APIProtocol.Data.BuffData.Builder getBuffsBuilder( int index) { return getBuffsFieldBuilder().getBuilder(index); } /** * repeated .SC2APIProtocol.BuffData buffs = 4; */ public SC2APIProtocol.Data.BuffDataOrBuilder getBuffsOrBuilder( int index) { if (buffsBuilder_ == null) { return buffs_.get(index); } else { return buffsBuilder_.getMessageOrBuilder(index); } } /** * repeated .SC2APIProtocol.BuffData buffs = 4; */ public java.util.List getBuffsOrBuilderList() { if (buffsBuilder_ != null) { return buffsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(buffs_); } } /** * repeated .SC2APIProtocol.BuffData buffs = 4; */ public SC2APIProtocol.Data.BuffData.Builder addBuffsBuilder() { return getBuffsFieldBuilder().addBuilder( SC2APIProtocol.Data.BuffData.getDefaultInstance()); } /** * repeated .SC2APIProtocol.BuffData buffs = 4; */ public SC2APIProtocol.Data.BuffData.Builder addBuffsBuilder( int index) { return getBuffsFieldBuilder().addBuilder( index, SC2APIProtocol.Data.BuffData.getDefaultInstance()); } /** * repeated .SC2APIProtocol.BuffData buffs = 4; */ public java.util.List getBuffsBuilderList() { return getBuffsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< SC2APIProtocol.Data.BuffData, SC2APIProtocol.Data.BuffData.Builder, SC2APIProtocol.Data.BuffDataOrBuilder> getBuffsFieldBuilder() { if (buffsBuilder_ == null) { buffsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< SC2APIProtocol.Data.BuffData, SC2APIProtocol.Data.BuffData.Builder, SC2APIProtocol.Data.BuffDataOrBuilder>( buffs_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); buffs_ = null; } return buffsBuilder_; } private java.util.List effects_ = java.util.Collections.emptyList(); private void ensureEffectsIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { effects_ = new java.util.ArrayList(effects_); bitField0_ |= 0x00000010; } } private com.google.protobuf.RepeatedFieldBuilderV3< SC2APIProtocol.Data.EffectData, SC2APIProtocol.Data.EffectData.Builder, SC2APIProtocol.Data.EffectDataOrBuilder> effectsBuilder_; /** * repeated .SC2APIProtocol.EffectData effects = 5; */ public java.util.List getEffectsList() { if (effectsBuilder_ == null) { return java.util.Collections.unmodifiableList(effects_); } else { return effectsBuilder_.getMessageList(); } } /** * repeated .SC2APIProtocol.EffectData effects = 5; */ public int getEffectsCount() { if (effectsBuilder_ == null) { return effects_.size(); } else { return effectsBuilder_.getCount(); } } /** * repeated .SC2APIProtocol.EffectData effects = 5; */ public SC2APIProtocol.Data.EffectData getEffects(int index) { if (effectsBuilder_ == null) { return effects_.get(index); } else { return effectsBuilder_.getMessage(index); } } /** * repeated .SC2APIProtocol.EffectData effects = 5; */ public Builder setEffects( int index, SC2APIProtocol.Data.EffectData value) { if (effectsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEffectsIsMutable(); effects_.set(index, value); onChanged(); } else { effectsBuilder_.setMessage(index, value); } return this; } /** * repeated .SC2APIProtocol.EffectData effects = 5; */ public Builder setEffects( int index, SC2APIProtocol.Data.EffectData.Builder builderForValue) { if (effectsBuilder_ == null) { ensureEffectsIsMutable(); effects_.set(index, builderForValue.build()); onChanged(); } else { effectsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .SC2APIProtocol.EffectData effects = 5; */ public Builder addEffects(SC2APIProtocol.Data.EffectData value) { if (effectsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEffectsIsMutable(); effects_.add(value); onChanged(); } else { effectsBuilder_.addMessage(value); } return this; } /** * repeated .SC2APIProtocol.EffectData effects = 5; */ public Builder addEffects( int index, SC2APIProtocol.Data.EffectData value) { if (effectsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEffectsIsMutable(); effects_.add(index, value); onChanged(); } else { effectsBuilder_.addMessage(index, value); } return this; } /** * repeated .SC2APIProtocol.EffectData effects = 5; */ public Builder addEffects( SC2APIProtocol.Data.EffectData.Builder builderForValue) { if (effectsBuilder_ == null) { ensureEffectsIsMutable(); effects_.add(builderForValue.build()); onChanged(); } else { effectsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .SC2APIProtocol.EffectData effects = 5; */ public Builder addEffects( int index, SC2APIProtocol.Data.EffectData.Builder builderForValue) { if (effectsBuilder_ == null) { ensureEffectsIsMutable(); effects_.add(index, builderForValue.build()); onChanged(); } else { effectsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .SC2APIProtocol.EffectData effects = 5; */ public Builder addAllEffects( java.lang.Iterable values) { if (effectsBuilder_ == null) { ensureEffectsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, effects_); onChanged(); } else { effectsBuilder_.addAllMessages(values); } return this; } /** * repeated .SC2APIProtocol.EffectData effects = 5; */ public Builder clearEffects() { if (effectsBuilder_ == null) { effects_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); } else { effectsBuilder_.clear(); } return this; } /** * repeated .SC2APIProtocol.EffectData effects = 5; */ public Builder removeEffects(int index) { if (effectsBuilder_ == null) { ensureEffectsIsMutable(); effects_.remove(index); onChanged(); } else { effectsBuilder_.remove(index); } return this; } /** * repeated .SC2APIProtocol.EffectData effects = 5; */ public SC2APIProtocol.Data.EffectData.Builder getEffectsBuilder( int index) { return getEffectsFieldBuilder().getBuilder(index); } /** * repeated .SC2APIProtocol.EffectData effects = 5; */ public SC2APIProtocol.Data.EffectDataOrBuilder getEffectsOrBuilder( int index) { if (effectsBuilder_ == null) { return effects_.get(index); } else { return effectsBuilder_.getMessageOrBuilder(index); } } /** * repeated .SC2APIProtocol.EffectData effects = 5; */ public java.util.List getEffectsOrBuilderList() { if (effectsBuilder_ != null) { return effectsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(effects_); } } /** * repeated .SC2APIProtocol.EffectData effects = 5; */ public SC2APIProtocol.Data.EffectData.Builder addEffectsBuilder() { return getEffectsFieldBuilder().addBuilder( SC2APIProtocol.Data.EffectData.getDefaultInstance()); } /** * repeated .SC2APIProtocol.EffectData effects = 5; */ public SC2APIProtocol.Data.EffectData.Builder addEffectsBuilder( int index) { return getEffectsFieldBuilder().addBuilder( index, SC2APIProtocol.Data.EffectData.getDefaultInstance()); } /** * repeated .SC2APIProtocol.EffectData effects = 5; */ public java.util.List getEffectsBuilderList() { return getEffectsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< SC2APIProtocol.Data.EffectData, SC2APIProtocol.Data.EffectData.Builder, SC2APIProtocol.Data.EffectDataOrBuilder> getEffectsFieldBuilder() { if (effectsBuilder_ == null) { effectsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< SC2APIProtocol.Data.EffectData, SC2APIProtocol.Data.EffectData.Builder, SC2APIProtocol.Data.EffectDataOrBuilder>( effects_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); effects_ = null; } return effectsBuilder_; } @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.ResponseData) } // @@protoc_insertion_point(class_scope:SC2APIProtocol.ResponseData) private static final SC2APIProtocol.Sc2Api.ResponseData DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new SC2APIProtocol.Sc2Api.ResponseData(); } public static SC2APIProtocol.Sc2Api.ResponseData getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ResponseData 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.Sc2Api.ResponseData getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RequestSaveReplayOrBuilder extends // @@protoc_insertion_point(interface_extends:SC2APIProtocol.RequestSaveReplay) com.google.protobuf.MessageOrBuilder { } /** *
   *-----------------------------------------------------------------------------
   * 
* * Protobuf type {@code SC2APIProtocol.RequestSaveReplay} */ public static final class RequestSaveReplay extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:SC2APIProtocol.RequestSaveReplay) RequestSaveReplayOrBuilder { private static final long serialVersionUID = 0L; // Use RequestSaveReplay.newBuilder() to construct. private RequestSaveReplay(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RequestSaveReplay() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new RequestSaveReplay(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_RequestSaveReplay_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_RequestSaveReplay_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Sc2Api.RequestSaveReplay.class, SC2APIProtocol.Sc2Api.RequestSaveReplay.Builder.class); } 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 { getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; 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.Sc2Api.RequestSaveReplay)) { return super.equals(obj); } SC2APIProtocol.Sc2Api.RequestSaveReplay other = (SC2APIProtocol.Sc2Api.RequestSaveReplay) obj; 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(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static SC2APIProtocol.Sc2Api.RequestSaveReplay parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.RequestSaveReplay parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.RequestSaveReplay parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.RequestSaveReplay parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.RequestSaveReplay parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.RequestSaveReplay parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.RequestSaveReplay parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.RequestSaveReplay 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.Sc2Api.RequestSaveReplay parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.RequestSaveReplay 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.Sc2Api.RequestSaveReplay parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.RequestSaveReplay 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.Sc2Api.RequestSaveReplay 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.RequestSaveReplay} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:SC2APIProtocol.RequestSaveReplay) SC2APIProtocol.Sc2Api.RequestSaveReplayOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_RequestSaveReplay_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_RequestSaveReplay_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Sc2Api.RequestSaveReplay.class, SC2APIProtocol.Sc2Api.RequestSaveReplay.Builder.class); } // Construct using SC2APIProtocol.Sc2Api.RequestSaveReplay.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_RequestSaveReplay_descriptor; } @java.lang.Override public SC2APIProtocol.Sc2Api.RequestSaveReplay getDefaultInstanceForType() { return SC2APIProtocol.Sc2Api.RequestSaveReplay.getDefaultInstance(); } @java.lang.Override public SC2APIProtocol.Sc2Api.RequestSaveReplay build() { SC2APIProtocol.Sc2Api.RequestSaveReplay result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public SC2APIProtocol.Sc2Api.RequestSaveReplay buildPartial() { SC2APIProtocol.Sc2Api.RequestSaveReplay result = new SC2APIProtocol.Sc2Api.RequestSaveReplay(this); 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.Sc2Api.RequestSaveReplay) { return mergeFrom((SC2APIProtocol.Sc2Api.RequestSaveReplay)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(SC2APIProtocol.Sc2Api.RequestSaveReplay other) { if (other == SC2APIProtocol.Sc2Api.RequestSaveReplay.getDefaultInstance()) return this; 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; 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; } @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.RequestSaveReplay) } // @@protoc_insertion_point(class_scope:SC2APIProtocol.RequestSaveReplay) private static final SC2APIProtocol.Sc2Api.RequestSaveReplay DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new SC2APIProtocol.Sc2Api.RequestSaveReplay(); } public static SC2APIProtocol.Sc2Api.RequestSaveReplay getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public RequestSaveReplay 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.Sc2Api.RequestSaveReplay getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ResponseSaveReplayOrBuilder extends // @@protoc_insertion_point(interface_extends:SC2APIProtocol.ResponseSaveReplay) com.google.protobuf.MessageOrBuilder { /** * optional bytes data = 1; * @return Whether the data field is set. */ boolean hasData(); /** * optional bytes data = 1; * @return The data. */ com.google.protobuf.ByteString getData(); } /** * Protobuf type {@code SC2APIProtocol.ResponseSaveReplay} */ public static final class ResponseSaveReplay extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:SC2APIProtocol.ResponseSaveReplay) ResponseSaveReplayOrBuilder { private static final long serialVersionUID = 0L; // Use ResponseSaveReplay.newBuilder() to construct. private ResponseSaveReplay(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ResponseSaveReplay() { data_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ResponseSaveReplay(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_ResponseSaveReplay_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_ResponseSaveReplay_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Sc2Api.ResponseSaveReplay.class, SC2APIProtocol.Sc2Api.ResponseSaveReplay.Builder.class); } private int bitField0_; public static final int DATA_FIELD_NUMBER = 1; private com.google.protobuf.ByteString data_; /** * optional bytes data = 1; * @return Whether the data field is set. */ @java.lang.Override public boolean hasData() { return ((bitField0_ & 0x00000001) != 0); } /** * optional bytes data = 1; * @return The data. */ @java.lang.Override public com.google.protobuf.ByteString getData() { return data_; } 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.writeBytes(1, data_); } 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 .computeBytesSize(1, data_); } 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.Sc2Api.ResponseSaveReplay)) { return super.equals(obj); } SC2APIProtocol.Sc2Api.ResponseSaveReplay other = (SC2APIProtocol.Sc2Api.ResponseSaveReplay) obj; if (hasData() != other.hasData()) return false; if (hasData()) { if (!getData() .equals(other.getData())) 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 (hasData()) { hash = (37 * hash) + DATA_FIELD_NUMBER; hash = (53 * hash) + getData().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static SC2APIProtocol.Sc2Api.ResponseSaveReplay parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.ResponseSaveReplay parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.ResponseSaveReplay parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.ResponseSaveReplay parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.ResponseSaveReplay parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.ResponseSaveReplay parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.ResponseSaveReplay parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.ResponseSaveReplay 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.Sc2Api.ResponseSaveReplay parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.ResponseSaveReplay 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.Sc2Api.ResponseSaveReplay parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.ResponseSaveReplay 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.Sc2Api.ResponseSaveReplay 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.ResponseSaveReplay} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:SC2APIProtocol.ResponseSaveReplay) SC2APIProtocol.Sc2Api.ResponseSaveReplayOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_ResponseSaveReplay_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_ResponseSaveReplay_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Sc2Api.ResponseSaveReplay.class, SC2APIProtocol.Sc2Api.ResponseSaveReplay.Builder.class); } // Construct using SC2APIProtocol.Sc2Api.ResponseSaveReplay.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); data_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_ResponseSaveReplay_descriptor; } @java.lang.Override public SC2APIProtocol.Sc2Api.ResponseSaveReplay getDefaultInstanceForType() { return SC2APIProtocol.Sc2Api.ResponseSaveReplay.getDefaultInstance(); } @java.lang.Override public SC2APIProtocol.Sc2Api.ResponseSaveReplay build() { SC2APIProtocol.Sc2Api.ResponseSaveReplay result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public SC2APIProtocol.Sc2Api.ResponseSaveReplay buildPartial() { SC2APIProtocol.Sc2Api.ResponseSaveReplay result = new SC2APIProtocol.Sc2Api.ResponseSaveReplay(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { to_bitField0_ |= 0x00000001; } result.data_ = data_; 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.Sc2Api.ResponseSaveReplay) { return mergeFrom((SC2APIProtocol.Sc2Api.ResponseSaveReplay)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(SC2APIProtocol.Sc2Api.ResponseSaveReplay other) { if (other == SC2APIProtocol.Sc2Api.ResponseSaveReplay.getDefaultInstance()) return this; if (other.hasData()) { setData(other.getData()); } 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: { data_ = input.readBytes(); bitField0_ |= 0x00000001; 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.ByteString data_ = com.google.protobuf.ByteString.EMPTY; /** * optional bytes data = 1; * @return Whether the data field is set. */ @java.lang.Override public boolean hasData() { return ((bitField0_ & 0x00000001) != 0); } /** * optional bytes data = 1; * @return The data. */ @java.lang.Override public com.google.protobuf.ByteString getData() { return data_; } /** * optional bytes data = 1; * @param value The data to set. * @return This builder for chaining. */ public Builder setData(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; data_ = value; onChanged(); return this; } /** * optional bytes data = 1; * @return This builder for chaining. */ public Builder clearData() { bitField0_ = (bitField0_ & ~0x00000001); data_ = getDefaultInstance().getData(); 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.ResponseSaveReplay) } // @@protoc_insertion_point(class_scope:SC2APIProtocol.ResponseSaveReplay) private static final SC2APIProtocol.Sc2Api.ResponseSaveReplay DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new SC2APIProtocol.Sc2Api.ResponseSaveReplay(); } public static SC2APIProtocol.Sc2Api.ResponseSaveReplay getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ResponseSaveReplay 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.Sc2Api.ResponseSaveReplay getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RequestReplayInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:SC2APIProtocol.RequestReplayInfo) com.google.protobuf.MessageOrBuilder { /** *
     * Limitation: might fail if the replay file is currently loaded.
     * 
* * string replay_path = 1; * @return Whether the replayPath field is set. */ boolean hasReplayPath(); /** *
     * Limitation: might fail if the replay file is currently loaded.
     * 
* * string replay_path = 1; * @return The replayPath. */ java.lang.String getReplayPath(); /** *
     * Limitation: might fail if the replay file is currently loaded.
     * 
* * string replay_path = 1; * @return The bytes for replayPath. */ com.google.protobuf.ByteString getReplayPathBytes(); /** * bytes replay_data = 2; * @return Whether the replayData field is set. */ boolean hasReplayData(); /** * bytes replay_data = 2; * @return The replayData. */ com.google.protobuf.ByteString getReplayData(); /** *
     * Ensure the data and binary are downloaded if this is an old version replay.
     * 
* * optional bool download_data = 3; * @return Whether the downloadData field is set. */ boolean hasDownloadData(); /** *
     * Ensure the data and binary are downloaded if this is an old version replay.
     * 
* * optional bool download_data = 3; * @return The downloadData. */ boolean getDownloadData(); public SC2APIProtocol.Sc2Api.RequestReplayInfo.ReplayCase getReplayCase(); } /** *
   *-----------------------------------------------------------------------------
   * 
* * Protobuf type {@code SC2APIProtocol.RequestReplayInfo} */ public static final class RequestReplayInfo extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:SC2APIProtocol.RequestReplayInfo) RequestReplayInfoOrBuilder { private static final long serialVersionUID = 0L; // Use RequestReplayInfo.newBuilder() to construct. private RequestReplayInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RequestReplayInfo() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new RequestReplayInfo(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_RequestReplayInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_RequestReplayInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Sc2Api.RequestReplayInfo.class, SC2APIProtocol.Sc2Api.RequestReplayInfo.Builder.class); } private int bitField0_; private int replayCase_ = 0; private java.lang.Object replay_; public enum ReplayCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { REPLAY_PATH(1), REPLAY_DATA(2), REPLAY_NOT_SET(0); private final int value; private ReplayCase(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 ReplayCase valueOf(int value) { return forNumber(value); } public static ReplayCase forNumber(int value) { switch (value) { case 1: return REPLAY_PATH; case 2: return REPLAY_DATA; case 0: return REPLAY_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public ReplayCase getReplayCase() { return ReplayCase.forNumber( replayCase_); } public static final int REPLAY_PATH_FIELD_NUMBER = 1; /** *
     * Limitation: might fail if the replay file is currently loaded.
     * 
* * string replay_path = 1; * @return Whether the replayPath field is set. */ public boolean hasReplayPath() { return replayCase_ == 1; } /** *
     * Limitation: might fail if the replay file is currently loaded.
     * 
* * string replay_path = 1; * @return The replayPath. */ public java.lang.String getReplayPath() { java.lang.Object ref = ""; if (replayCase_ == 1) { ref = replay_; } 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() && (replayCase_ == 1)) { replay_ = s; } return s; } } /** *
     * Limitation: might fail if the replay file is currently loaded.
     * 
* * string replay_path = 1; * @return The bytes for replayPath. */ public com.google.protobuf.ByteString getReplayPathBytes() { java.lang.Object ref = ""; if (replayCase_ == 1) { ref = replay_; } if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (replayCase_ == 1) { replay_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int REPLAY_DATA_FIELD_NUMBER = 2; /** * bytes replay_data = 2; * @return Whether the replayData field is set. */ @java.lang.Override public boolean hasReplayData() { return replayCase_ == 2; } /** * bytes replay_data = 2; * @return The replayData. */ @java.lang.Override public com.google.protobuf.ByteString getReplayData() { if (replayCase_ == 2) { return (com.google.protobuf.ByteString) replay_; } return com.google.protobuf.ByteString.EMPTY; } public static final int DOWNLOAD_DATA_FIELD_NUMBER = 3; private boolean downloadData_; /** *
     * Ensure the data and binary are downloaded if this is an old version replay.
     * 
* * optional bool download_data = 3; * @return Whether the downloadData field is set. */ @java.lang.Override public boolean hasDownloadData() { return ((bitField0_ & 0x00000004) != 0); } /** *
     * Ensure the data and binary are downloaded if this is an old version replay.
     * 
* * optional bool download_data = 3; * @return The downloadData. */ @java.lang.Override public boolean getDownloadData() { return downloadData_; } 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 (replayCase_ == 1) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, replay_); } if (replayCase_ == 2) { output.writeBytes( 2, (com.google.protobuf.ByteString) replay_); } if (((bitField0_ & 0x00000004) != 0)) { output.writeBool(3, downloadData_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (replayCase_ == 1) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, replay_); } if (replayCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeBytesSize( 2, (com.google.protobuf.ByteString) replay_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(3, downloadData_); } 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.Sc2Api.RequestReplayInfo)) { return super.equals(obj); } SC2APIProtocol.Sc2Api.RequestReplayInfo other = (SC2APIProtocol.Sc2Api.RequestReplayInfo) obj; if (hasDownloadData() != other.hasDownloadData()) return false; if (hasDownloadData()) { if (getDownloadData() != other.getDownloadData()) return false; } if (!getReplayCase().equals(other.getReplayCase())) return false; switch (replayCase_) { case 1: if (!getReplayPath() .equals(other.getReplayPath())) return false; break; case 2: if (!getReplayData() .equals(other.getReplayData())) 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(); if (hasDownloadData()) { hash = (37 * hash) + DOWNLOAD_DATA_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getDownloadData()); } switch (replayCase_) { case 1: hash = (37 * hash) + REPLAY_PATH_FIELD_NUMBER; hash = (53 * hash) + getReplayPath().hashCode(); break; case 2: hash = (37 * hash) + REPLAY_DATA_FIELD_NUMBER; hash = (53 * hash) + getReplayData().hashCode(); break; case 0: default: } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static SC2APIProtocol.Sc2Api.RequestReplayInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.RequestReplayInfo parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.RequestReplayInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.RequestReplayInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.RequestReplayInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.RequestReplayInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.RequestReplayInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.RequestReplayInfo 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.Sc2Api.RequestReplayInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.RequestReplayInfo 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.Sc2Api.RequestReplayInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.RequestReplayInfo 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.Sc2Api.RequestReplayInfo 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.RequestReplayInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:SC2APIProtocol.RequestReplayInfo) SC2APIProtocol.Sc2Api.RequestReplayInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_RequestReplayInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_RequestReplayInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Sc2Api.RequestReplayInfo.class, SC2APIProtocol.Sc2Api.RequestReplayInfo.Builder.class); } // Construct using SC2APIProtocol.Sc2Api.RequestReplayInfo.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); downloadData_ = false; bitField0_ = (bitField0_ & ~0x00000004); replayCase_ = 0; replay_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_RequestReplayInfo_descriptor; } @java.lang.Override public SC2APIProtocol.Sc2Api.RequestReplayInfo getDefaultInstanceForType() { return SC2APIProtocol.Sc2Api.RequestReplayInfo.getDefaultInstance(); } @java.lang.Override public SC2APIProtocol.Sc2Api.RequestReplayInfo build() { SC2APIProtocol.Sc2Api.RequestReplayInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public SC2APIProtocol.Sc2Api.RequestReplayInfo buildPartial() { SC2APIProtocol.Sc2Api.RequestReplayInfo result = new SC2APIProtocol.Sc2Api.RequestReplayInfo(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (replayCase_ == 1) { result.replay_ = replay_; } if (replayCase_ == 2) { result.replay_ = replay_; } if (((from_bitField0_ & 0x00000004) != 0)) { result.downloadData_ = downloadData_; to_bitField0_ |= 0x00000004; } result.bitField0_ = to_bitField0_; result.replayCase_ = replayCase_; 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.Sc2Api.RequestReplayInfo) { return mergeFrom((SC2APIProtocol.Sc2Api.RequestReplayInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(SC2APIProtocol.Sc2Api.RequestReplayInfo other) { if (other == SC2APIProtocol.Sc2Api.RequestReplayInfo.getDefaultInstance()) return this; if (other.hasDownloadData()) { setDownloadData(other.getDownloadData()); } switch (other.getReplayCase()) { case REPLAY_PATH: { replayCase_ = 1; replay_ = other.replay_; onChanged(); break; } case REPLAY_DATA: { setReplayData(other.getReplayData()); break; } case REPLAY_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: { com.google.protobuf.ByteString bs = input.readBytes(); replayCase_ = 1; replay_ = bs; break; } // case 10 case 18: { replay_ = input.readBytes(); replayCase_ = 2; break; } // case 18 case 24: { downloadData_ = input.readBool(); 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 replayCase_ = 0; private java.lang.Object replay_; public ReplayCase getReplayCase() { return ReplayCase.forNumber( replayCase_); } public Builder clearReplay() { replayCase_ = 0; replay_ = null; onChanged(); return this; } private int bitField0_; /** *
       * Limitation: might fail if the replay file is currently loaded.
       * 
* * string replay_path = 1; * @return Whether the replayPath field is set. */ @java.lang.Override public boolean hasReplayPath() { return replayCase_ == 1; } /** *
       * Limitation: might fail if the replay file is currently loaded.
       * 
* * string replay_path = 1; * @return The replayPath. */ @java.lang.Override public java.lang.String getReplayPath() { java.lang.Object ref = ""; if (replayCase_ == 1) { ref = replay_; } if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (replayCase_ == 1) { if (bs.isValidUtf8()) { replay_ = s; } } return s; } else { return (java.lang.String) ref; } } /** *
       * Limitation: might fail if the replay file is currently loaded.
       * 
* * string replay_path = 1; * @return The bytes for replayPath. */ @java.lang.Override public com.google.protobuf.ByteString getReplayPathBytes() { java.lang.Object ref = ""; if (replayCase_ == 1) { ref = replay_; } if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); if (replayCase_ == 1) { replay_ = b; } return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Limitation: might fail if the replay file is currently loaded.
       * 
* * string replay_path = 1; * @param value The replayPath to set. * @return This builder for chaining. */ public Builder setReplayPath( java.lang.String value) { if (value == null) { throw new NullPointerException(); } replayCase_ = 1; replay_ = value; onChanged(); return this; } /** *
       * Limitation: might fail if the replay file is currently loaded.
       * 
* * string replay_path = 1; * @return This builder for chaining. */ public Builder clearReplayPath() { if (replayCase_ == 1) { replayCase_ = 0; replay_ = null; onChanged(); } return this; } /** *
       * Limitation: might fail if the replay file is currently loaded.
       * 
* * string replay_path = 1; * @param value The bytes for replayPath to set. * @return This builder for chaining. */ public Builder setReplayPathBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } replayCase_ = 1; replay_ = value; onChanged(); return this; } /** * bytes replay_data = 2; * @return Whether the replayData field is set. */ public boolean hasReplayData() { return replayCase_ == 2; } /** * bytes replay_data = 2; * @return The replayData. */ public com.google.protobuf.ByteString getReplayData() { if (replayCase_ == 2) { return (com.google.protobuf.ByteString) replay_; } return com.google.protobuf.ByteString.EMPTY; } /** * bytes replay_data = 2; * @param value The replayData to set. * @return This builder for chaining. */ public Builder setReplayData(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } replayCase_ = 2; replay_ = value; onChanged(); return this; } /** * bytes replay_data = 2; * @return This builder for chaining. */ public Builder clearReplayData() { if (replayCase_ == 2) { replayCase_ = 0; replay_ = null; onChanged(); } return this; } private boolean downloadData_ ; /** *
       * Ensure the data and binary are downloaded if this is an old version replay.
       * 
* * optional bool download_data = 3; * @return Whether the downloadData field is set. */ @java.lang.Override public boolean hasDownloadData() { return ((bitField0_ & 0x00000004) != 0); } /** *
       * Ensure the data and binary are downloaded if this is an old version replay.
       * 
* * optional bool download_data = 3; * @return The downloadData. */ @java.lang.Override public boolean getDownloadData() { return downloadData_; } /** *
       * Ensure the data and binary are downloaded if this is an old version replay.
       * 
* * optional bool download_data = 3; * @param value The downloadData to set. * @return This builder for chaining. */ public Builder setDownloadData(boolean value) { bitField0_ |= 0x00000004; downloadData_ = value; onChanged(); return this; } /** *
       * Ensure the data and binary are downloaded if this is an old version replay.
       * 
* * optional bool download_data = 3; * @return This builder for chaining. */ public Builder clearDownloadData() { bitField0_ = (bitField0_ & ~0x00000004); downloadData_ = false; 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.RequestReplayInfo) } // @@protoc_insertion_point(class_scope:SC2APIProtocol.RequestReplayInfo) private static final SC2APIProtocol.Sc2Api.RequestReplayInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new SC2APIProtocol.Sc2Api.RequestReplayInfo(); } public static SC2APIProtocol.Sc2Api.RequestReplayInfo getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public RequestReplayInfo 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.Sc2Api.RequestReplayInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PlayerInfoExtraOrBuilder extends // @@protoc_insertion_point(interface_extends:SC2APIProtocol.PlayerInfoExtra) com.google.protobuf.MessageOrBuilder { /** * optional .SC2APIProtocol.PlayerInfo player_info = 1; * @return Whether the playerInfo field is set. */ boolean hasPlayerInfo(); /** * optional .SC2APIProtocol.PlayerInfo player_info = 1; * @return The playerInfo. */ SC2APIProtocol.Sc2Api.PlayerInfo getPlayerInfo(); /** * optional .SC2APIProtocol.PlayerInfo player_info = 1; */ SC2APIProtocol.Sc2Api.PlayerInfoOrBuilder getPlayerInfoOrBuilder(); /** * optional .SC2APIProtocol.PlayerResult player_result = 2; * @return Whether the playerResult field is set. */ boolean hasPlayerResult(); /** * optional .SC2APIProtocol.PlayerResult player_result = 2; * @return The playerResult. */ SC2APIProtocol.Sc2Api.PlayerResult getPlayerResult(); /** * optional .SC2APIProtocol.PlayerResult player_result = 2; */ SC2APIProtocol.Sc2Api.PlayerResultOrBuilder getPlayerResultOrBuilder(); /** * optional int32 player_mmr = 3; * @return Whether the playerMmr field is set. */ boolean hasPlayerMmr(); /** * optional int32 player_mmr = 3; * @return The playerMmr. */ int getPlayerMmr(); /** * optional int32 player_apm = 4; * @return Whether the playerApm field is set. */ boolean hasPlayerApm(); /** * optional int32 player_apm = 4; * @return The playerApm. */ int getPlayerApm(); } /** * Protobuf type {@code SC2APIProtocol.PlayerInfoExtra} */ public static final class PlayerInfoExtra extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:SC2APIProtocol.PlayerInfoExtra) PlayerInfoExtraOrBuilder { private static final long serialVersionUID = 0L; // Use PlayerInfoExtra.newBuilder() to construct. private PlayerInfoExtra(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PlayerInfoExtra() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new PlayerInfoExtra(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_PlayerInfoExtra_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_PlayerInfoExtra_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Sc2Api.PlayerInfoExtra.class, SC2APIProtocol.Sc2Api.PlayerInfoExtra.Builder.class); } private int bitField0_; public static final int PLAYER_INFO_FIELD_NUMBER = 1; private SC2APIProtocol.Sc2Api.PlayerInfo playerInfo_; /** * optional .SC2APIProtocol.PlayerInfo player_info = 1; * @return Whether the playerInfo field is set. */ @java.lang.Override public boolean hasPlayerInfo() { return ((bitField0_ & 0x00000001) != 0); } /** * optional .SC2APIProtocol.PlayerInfo player_info = 1; * @return The playerInfo. */ @java.lang.Override public SC2APIProtocol.Sc2Api.PlayerInfo getPlayerInfo() { return playerInfo_ == null ? SC2APIProtocol.Sc2Api.PlayerInfo.getDefaultInstance() : playerInfo_; } /** * optional .SC2APIProtocol.PlayerInfo player_info = 1; */ @java.lang.Override public SC2APIProtocol.Sc2Api.PlayerInfoOrBuilder getPlayerInfoOrBuilder() { return playerInfo_ == null ? SC2APIProtocol.Sc2Api.PlayerInfo.getDefaultInstance() : playerInfo_; } public static final int PLAYER_RESULT_FIELD_NUMBER = 2; private SC2APIProtocol.Sc2Api.PlayerResult playerResult_; /** * optional .SC2APIProtocol.PlayerResult player_result = 2; * @return Whether the playerResult field is set. */ @java.lang.Override public boolean hasPlayerResult() { return ((bitField0_ & 0x00000002) != 0); } /** * optional .SC2APIProtocol.PlayerResult player_result = 2; * @return The playerResult. */ @java.lang.Override public SC2APIProtocol.Sc2Api.PlayerResult getPlayerResult() { return playerResult_ == null ? SC2APIProtocol.Sc2Api.PlayerResult.getDefaultInstance() : playerResult_; } /** * optional .SC2APIProtocol.PlayerResult player_result = 2; */ @java.lang.Override public SC2APIProtocol.Sc2Api.PlayerResultOrBuilder getPlayerResultOrBuilder() { return playerResult_ == null ? SC2APIProtocol.Sc2Api.PlayerResult.getDefaultInstance() : playerResult_; } public static final int PLAYER_MMR_FIELD_NUMBER = 3; private int playerMmr_; /** * optional int32 player_mmr = 3; * @return Whether the playerMmr field is set. */ @java.lang.Override public boolean hasPlayerMmr() { return ((bitField0_ & 0x00000004) != 0); } /** * optional int32 player_mmr = 3; * @return The playerMmr. */ @java.lang.Override public int getPlayerMmr() { return playerMmr_; } public static final int PLAYER_APM_FIELD_NUMBER = 4; private int playerApm_; /** * optional int32 player_apm = 4; * @return Whether the playerApm field is set. */ @java.lang.Override public boolean hasPlayerApm() { return ((bitField0_ & 0x00000008) != 0); } /** * optional int32 player_apm = 4; * @return The playerApm. */ @java.lang.Override public int getPlayerApm() { return playerApm_; } 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, getPlayerInfo()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getPlayerResult()); } if (((bitField0_ & 0x00000004) != 0)) { output.writeInt32(3, playerMmr_); } if (((bitField0_ & 0x00000008) != 0)) { output.writeInt32(4, playerApm_); } 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, getPlayerInfo()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getPlayerResult()); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(3, playerMmr_); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(4, playerApm_); } 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.Sc2Api.PlayerInfoExtra)) { return super.equals(obj); } SC2APIProtocol.Sc2Api.PlayerInfoExtra other = (SC2APIProtocol.Sc2Api.PlayerInfoExtra) obj; if (hasPlayerInfo() != other.hasPlayerInfo()) return false; if (hasPlayerInfo()) { if (!getPlayerInfo() .equals(other.getPlayerInfo())) return false; } if (hasPlayerResult() != other.hasPlayerResult()) return false; if (hasPlayerResult()) { if (!getPlayerResult() .equals(other.getPlayerResult())) return false; } if (hasPlayerMmr() != other.hasPlayerMmr()) return false; if (hasPlayerMmr()) { if (getPlayerMmr() != other.getPlayerMmr()) return false; } if (hasPlayerApm() != other.hasPlayerApm()) return false; if (hasPlayerApm()) { if (getPlayerApm() != other.getPlayerApm()) 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 (hasPlayerInfo()) { hash = (37 * hash) + PLAYER_INFO_FIELD_NUMBER; hash = (53 * hash) + getPlayerInfo().hashCode(); } if (hasPlayerResult()) { hash = (37 * hash) + PLAYER_RESULT_FIELD_NUMBER; hash = (53 * hash) + getPlayerResult().hashCode(); } if (hasPlayerMmr()) { hash = (37 * hash) + PLAYER_MMR_FIELD_NUMBER; hash = (53 * hash) + getPlayerMmr(); } if (hasPlayerApm()) { hash = (37 * hash) + PLAYER_APM_FIELD_NUMBER; hash = (53 * hash) + getPlayerApm(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static SC2APIProtocol.Sc2Api.PlayerInfoExtra parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.PlayerInfoExtra parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.PlayerInfoExtra parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.PlayerInfoExtra parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.PlayerInfoExtra parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.PlayerInfoExtra parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.PlayerInfoExtra parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.PlayerInfoExtra 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.Sc2Api.PlayerInfoExtra parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.PlayerInfoExtra 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.Sc2Api.PlayerInfoExtra parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.PlayerInfoExtra 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.Sc2Api.PlayerInfoExtra 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.PlayerInfoExtra} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:SC2APIProtocol.PlayerInfoExtra) SC2APIProtocol.Sc2Api.PlayerInfoExtraOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_PlayerInfoExtra_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_PlayerInfoExtra_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Sc2Api.PlayerInfoExtra.class, SC2APIProtocol.Sc2Api.PlayerInfoExtra.Builder.class); } // Construct using SC2APIProtocol.Sc2Api.PlayerInfoExtra.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getPlayerInfoFieldBuilder(); getPlayerResultFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (playerInfoBuilder_ == null) { playerInfo_ = null; } else { playerInfoBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); if (playerResultBuilder_ == null) { playerResult_ = null; } else { playerResultBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); playerMmr_ = 0; bitField0_ = (bitField0_ & ~0x00000004); playerApm_ = 0; bitField0_ = (bitField0_ & ~0x00000008); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_PlayerInfoExtra_descriptor; } @java.lang.Override public SC2APIProtocol.Sc2Api.PlayerInfoExtra getDefaultInstanceForType() { return SC2APIProtocol.Sc2Api.PlayerInfoExtra.getDefaultInstance(); } @java.lang.Override public SC2APIProtocol.Sc2Api.PlayerInfoExtra build() { SC2APIProtocol.Sc2Api.PlayerInfoExtra result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public SC2APIProtocol.Sc2Api.PlayerInfoExtra buildPartial() { SC2APIProtocol.Sc2Api.PlayerInfoExtra result = new SC2APIProtocol.Sc2Api.PlayerInfoExtra(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { if (playerInfoBuilder_ == null) { result.playerInfo_ = playerInfo_; } else { result.playerInfo_ = playerInfoBuilder_.build(); } to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { if (playerResultBuilder_ == null) { result.playerResult_ = playerResult_; } else { result.playerResult_ = playerResultBuilder_.build(); } to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { result.playerMmr_ = playerMmr_; to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000008) != 0)) { result.playerApm_ = playerApm_; 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.Sc2Api.PlayerInfoExtra) { return mergeFrom((SC2APIProtocol.Sc2Api.PlayerInfoExtra)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(SC2APIProtocol.Sc2Api.PlayerInfoExtra other) { if (other == SC2APIProtocol.Sc2Api.PlayerInfoExtra.getDefaultInstance()) return this; if (other.hasPlayerInfo()) { mergePlayerInfo(other.getPlayerInfo()); } if (other.hasPlayerResult()) { mergePlayerResult(other.getPlayerResult()); } if (other.hasPlayerMmr()) { setPlayerMmr(other.getPlayerMmr()); } if (other.hasPlayerApm()) { setPlayerApm(other.getPlayerApm()); } 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( getPlayerInfoFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getPlayerResultFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 case 24: { playerMmr_ = input.readInt32(); bitField0_ |= 0x00000004; break; } // case 24 case 32: { playerApm_ = input.readInt32(); 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 SC2APIProtocol.Sc2Api.PlayerInfo playerInfo_; private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.PlayerInfo, SC2APIProtocol.Sc2Api.PlayerInfo.Builder, SC2APIProtocol.Sc2Api.PlayerInfoOrBuilder> playerInfoBuilder_; /** * optional .SC2APIProtocol.PlayerInfo player_info = 1; * @return Whether the playerInfo field is set. */ public boolean hasPlayerInfo() { return ((bitField0_ & 0x00000001) != 0); } /** * optional .SC2APIProtocol.PlayerInfo player_info = 1; * @return The playerInfo. */ public SC2APIProtocol.Sc2Api.PlayerInfo getPlayerInfo() { if (playerInfoBuilder_ == null) { return playerInfo_ == null ? SC2APIProtocol.Sc2Api.PlayerInfo.getDefaultInstance() : playerInfo_; } else { return playerInfoBuilder_.getMessage(); } } /** * optional .SC2APIProtocol.PlayerInfo player_info = 1; */ public Builder setPlayerInfo(SC2APIProtocol.Sc2Api.PlayerInfo value) { if (playerInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } playerInfo_ = value; onChanged(); } else { playerInfoBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * optional .SC2APIProtocol.PlayerInfo player_info = 1; */ public Builder setPlayerInfo( SC2APIProtocol.Sc2Api.PlayerInfo.Builder builderForValue) { if (playerInfoBuilder_ == null) { playerInfo_ = builderForValue.build(); onChanged(); } else { playerInfoBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * optional .SC2APIProtocol.PlayerInfo player_info = 1; */ public Builder mergePlayerInfo(SC2APIProtocol.Sc2Api.PlayerInfo value) { if (playerInfoBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && playerInfo_ != null && playerInfo_ != SC2APIProtocol.Sc2Api.PlayerInfo.getDefaultInstance()) { playerInfo_ = SC2APIProtocol.Sc2Api.PlayerInfo.newBuilder(playerInfo_).mergeFrom(value).buildPartial(); } else { playerInfo_ = value; } onChanged(); } else { playerInfoBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * optional .SC2APIProtocol.PlayerInfo player_info = 1; */ public Builder clearPlayerInfo() { if (playerInfoBuilder_ == null) { playerInfo_ = null; onChanged(); } else { playerInfoBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * optional .SC2APIProtocol.PlayerInfo player_info = 1; */ public SC2APIProtocol.Sc2Api.PlayerInfo.Builder getPlayerInfoBuilder() { bitField0_ |= 0x00000001; onChanged(); return getPlayerInfoFieldBuilder().getBuilder(); } /** * optional .SC2APIProtocol.PlayerInfo player_info = 1; */ public SC2APIProtocol.Sc2Api.PlayerInfoOrBuilder getPlayerInfoOrBuilder() { if (playerInfoBuilder_ != null) { return playerInfoBuilder_.getMessageOrBuilder(); } else { return playerInfo_ == null ? SC2APIProtocol.Sc2Api.PlayerInfo.getDefaultInstance() : playerInfo_; } } /** * optional .SC2APIProtocol.PlayerInfo player_info = 1; */ private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.PlayerInfo, SC2APIProtocol.Sc2Api.PlayerInfo.Builder, SC2APIProtocol.Sc2Api.PlayerInfoOrBuilder> getPlayerInfoFieldBuilder() { if (playerInfoBuilder_ == null) { playerInfoBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.PlayerInfo, SC2APIProtocol.Sc2Api.PlayerInfo.Builder, SC2APIProtocol.Sc2Api.PlayerInfoOrBuilder>( getPlayerInfo(), getParentForChildren(), isClean()); playerInfo_ = null; } return playerInfoBuilder_; } private SC2APIProtocol.Sc2Api.PlayerResult playerResult_; private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.PlayerResult, SC2APIProtocol.Sc2Api.PlayerResult.Builder, SC2APIProtocol.Sc2Api.PlayerResultOrBuilder> playerResultBuilder_; /** * optional .SC2APIProtocol.PlayerResult player_result = 2; * @return Whether the playerResult field is set. */ public boolean hasPlayerResult() { return ((bitField0_ & 0x00000002) != 0); } /** * optional .SC2APIProtocol.PlayerResult player_result = 2; * @return The playerResult. */ public SC2APIProtocol.Sc2Api.PlayerResult getPlayerResult() { if (playerResultBuilder_ == null) { return playerResult_ == null ? SC2APIProtocol.Sc2Api.PlayerResult.getDefaultInstance() : playerResult_; } else { return playerResultBuilder_.getMessage(); } } /** * optional .SC2APIProtocol.PlayerResult player_result = 2; */ public Builder setPlayerResult(SC2APIProtocol.Sc2Api.PlayerResult value) { if (playerResultBuilder_ == null) { if (value == null) { throw new NullPointerException(); } playerResult_ = value; onChanged(); } else { playerResultBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /** * optional .SC2APIProtocol.PlayerResult player_result = 2; */ public Builder setPlayerResult( SC2APIProtocol.Sc2Api.PlayerResult.Builder builderForValue) { if (playerResultBuilder_ == null) { playerResult_ = builderForValue.build(); onChanged(); } else { playerResultBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** * optional .SC2APIProtocol.PlayerResult player_result = 2; */ public Builder mergePlayerResult(SC2APIProtocol.Sc2Api.PlayerResult value) { if (playerResultBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && playerResult_ != null && playerResult_ != SC2APIProtocol.Sc2Api.PlayerResult.getDefaultInstance()) { playerResult_ = SC2APIProtocol.Sc2Api.PlayerResult.newBuilder(playerResult_).mergeFrom(value).buildPartial(); } else { playerResult_ = value; } onChanged(); } else { playerResultBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** * optional .SC2APIProtocol.PlayerResult player_result = 2; */ public Builder clearPlayerResult() { if (playerResultBuilder_ == null) { playerResult_ = null; onChanged(); } else { playerResultBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** * optional .SC2APIProtocol.PlayerResult player_result = 2; */ public SC2APIProtocol.Sc2Api.PlayerResult.Builder getPlayerResultBuilder() { bitField0_ |= 0x00000002; onChanged(); return getPlayerResultFieldBuilder().getBuilder(); } /** * optional .SC2APIProtocol.PlayerResult player_result = 2; */ public SC2APIProtocol.Sc2Api.PlayerResultOrBuilder getPlayerResultOrBuilder() { if (playerResultBuilder_ != null) { return playerResultBuilder_.getMessageOrBuilder(); } else { return playerResult_ == null ? SC2APIProtocol.Sc2Api.PlayerResult.getDefaultInstance() : playerResult_; } } /** * optional .SC2APIProtocol.PlayerResult player_result = 2; */ private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.PlayerResult, SC2APIProtocol.Sc2Api.PlayerResult.Builder, SC2APIProtocol.Sc2Api.PlayerResultOrBuilder> getPlayerResultFieldBuilder() { if (playerResultBuilder_ == null) { playerResultBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.PlayerResult, SC2APIProtocol.Sc2Api.PlayerResult.Builder, SC2APIProtocol.Sc2Api.PlayerResultOrBuilder>( getPlayerResult(), getParentForChildren(), isClean()); playerResult_ = null; } return playerResultBuilder_; } private int playerMmr_ ; /** * optional int32 player_mmr = 3; * @return Whether the playerMmr field is set. */ @java.lang.Override public boolean hasPlayerMmr() { return ((bitField0_ & 0x00000004) != 0); } /** * optional int32 player_mmr = 3; * @return The playerMmr. */ @java.lang.Override public int getPlayerMmr() { return playerMmr_; } /** * optional int32 player_mmr = 3; * @param value The playerMmr to set. * @return This builder for chaining. */ public Builder setPlayerMmr(int value) { bitField0_ |= 0x00000004; playerMmr_ = value; onChanged(); return this; } /** * optional int32 player_mmr = 3; * @return This builder for chaining. */ public Builder clearPlayerMmr() { bitField0_ = (bitField0_ & ~0x00000004); playerMmr_ = 0; onChanged(); return this; } private int playerApm_ ; /** * optional int32 player_apm = 4; * @return Whether the playerApm field is set. */ @java.lang.Override public boolean hasPlayerApm() { return ((bitField0_ & 0x00000008) != 0); } /** * optional int32 player_apm = 4; * @return The playerApm. */ @java.lang.Override public int getPlayerApm() { return playerApm_; } /** * optional int32 player_apm = 4; * @param value The playerApm to set. * @return This builder for chaining. */ public Builder setPlayerApm(int value) { bitField0_ |= 0x00000008; playerApm_ = value; onChanged(); return this; } /** * optional int32 player_apm = 4; * @return This builder for chaining. */ public Builder clearPlayerApm() { bitField0_ = (bitField0_ & ~0x00000008); playerApm_ = 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.PlayerInfoExtra) } // @@protoc_insertion_point(class_scope:SC2APIProtocol.PlayerInfoExtra) private static final SC2APIProtocol.Sc2Api.PlayerInfoExtra DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new SC2APIProtocol.Sc2Api.PlayerInfoExtra(); } public static SC2APIProtocol.Sc2Api.PlayerInfoExtra getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PlayerInfoExtra 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.Sc2Api.PlayerInfoExtra getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ResponseReplayInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:SC2APIProtocol.ResponseReplayInfo) com.google.protobuf.MessageOrBuilder { /** * optional string map_name = 1; * @return Whether the mapName field is set. */ boolean hasMapName(); /** * optional string map_name = 1; * @return The mapName. */ java.lang.String getMapName(); /** * optional string map_name = 1; * @return The bytes for mapName. */ com.google.protobuf.ByteString getMapNameBytes(); /** * optional string local_map_path = 2; * @return Whether the localMapPath field is set. */ boolean hasLocalMapPath(); /** * optional string local_map_path = 2; * @return The localMapPath. */ java.lang.String getLocalMapPath(); /** * optional string local_map_path = 2; * @return The bytes for localMapPath. */ com.google.protobuf.ByteString getLocalMapPathBytes(); /** * repeated .SC2APIProtocol.PlayerInfoExtra player_info = 3; */ java.util.List getPlayerInfoList(); /** * repeated .SC2APIProtocol.PlayerInfoExtra player_info = 3; */ SC2APIProtocol.Sc2Api.PlayerInfoExtra getPlayerInfo(int index); /** * repeated .SC2APIProtocol.PlayerInfoExtra player_info = 3; */ int getPlayerInfoCount(); /** * repeated .SC2APIProtocol.PlayerInfoExtra player_info = 3; */ java.util.List getPlayerInfoOrBuilderList(); /** * repeated .SC2APIProtocol.PlayerInfoExtra player_info = 3; */ SC2APIProtocol.Sc2Api.PlayerInfoExtraOrBuilder getPlayerInfoOrBuilder( int index); /** * optional uint32 game_duration_loops = 4; * @return Whether the gameDurationLoops field is set. */ boolean hasGameDurationLoops(); /** * optional uint32 game_duration_loops = 4; * @return The gameDurationLoops. */ int getGameDurationLoops(); /** * optional float game_duration_seconds = 5; * @return Whether the gameDurationSeconds field is set. */ boolean hasGameDurationSeconds(); /** * optional float game_duration_seconds = 5; * @return The gameDurationSeconds. */ float getGameDurationSeconds(); /** * optional string game_version = 6; * @return Whether the gameVersion field is set. */ boolean hasGameVersion(); /** * optional string game_version = 6; * @return The gameVersion. */ java.lang.String getGameVersion(); /** * optional string game_version = 6; * @return The bytes for gameVersion. */ com.google.protobuf.ByteString getGameVersionBytes(); /** * optional string data_version = 11; * @return Whether the dataVersion field is set. */ boolean hasDataVersion(); /** * optional string data_version = 11; * @return The dataVersion. */ java.lang.String getDataVersion(); /** * optional string data_version = 11; * @return The bytes for dataVersion. */ com.google.protobuf.ByteString getDataVersionBytes(); /** * optional uint32 data_build = 7; * @return Whether the dataBuild field is set. */ boolean hasDataBuild(); /** * optional uint32 data_build = 7; * @return The dataBuild. */ int getDataBuild(); /** * optional uint32 base_build = 8; * @return Whether the baseBuild field is set. */ boolean hasBaseBuild(); /** * optional uint32 base_build = 8; * @return The baseBuild. */ int getBaseBuild(); /** * optional .SC2APIProtocol.ResponseReplayInfo.Error error = 9; * @return Whether the error field is set. */ boolean hasError(); /** * optional .SC2APIProtocol.ResponseReplayInfo.Error error = 9; * @return The error. */ SC2APIProtocol.Sc2Api.ResponseReplayInfo.Error getError(); /** * optional string error_details = 10; * @return Whether the errorDetails field is set. */ boolean hasErrorDetails(); /** * optional string error_details = 10; * @return The errorDetails. */ java.lang.String getErrorDetails(); /** * optional string error_details = 10; * @return The bytes for errorDetails. */ com.google.protobuf.ByteString getErrorDetailsBytes(); } /** * Protobuf type {@code SC2APIProtocol.ResponseReplayInfo} */ public static final class ResponseReplayInfo extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:SC2APIProtocol.ResponseReplayInfo) ResponseReplayInfoOrBuilder { private static final long serialVersionUID = 0L; // Use ResponseReplayInfo.newBuilder() to construct. private ResponseReplayInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ResponseReplayInfo() { mapName_ = ""; localMapPath_ = ""; playerInfo_ = java.util.Collections.emptyList(); gameVersion_ = ""; dataVersion_ = ""; error_ = 1; errorDetails_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ResponseReplayInfo(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_ResponseReplayInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_ResponseReplayInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Sc2Api.ResponseReplayInfo.class, SC2APIProtocol.Sc2Api.ResponseReplayInfo.Builder.class); } /** * Protobuf enum {@code SC2APIProtocol.ResponseReplayInfo.Error} */ public enum Error implements com.google.protobuf.ProtocolMessageEnum { /** * MissingReplay = 1; */ MissingReplay(1), /** * InvalidReplayPath = 2; */ InvalidReplayPath(2), /** * InvalidReplayData = 3; */ InvalidReplayData(3), /** * ParsingError = 4; */ ParsingError(4), /** * DownloadError = 5; */ DownloadError(5), ; /** * MissingReplay = 1; */ public static final int MissingReplay_VALUE = 1; /** * InvalidReplayPath = 2; */ public static final int InvalidReplayPath_VALUE = 2; /** * InvalidReplayData = 3; */ public static final int InvalidReplayData_VALUE = 3; /** * ParsingError = 4; */ public static final int ParsingError_VALUE = 4; /** * DownloadError = 5; */ public static final int DownloadError_VALUE = 5; 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 Error 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 Error forNumber(int value) { switch (value) { case 1: return MissingReplay; case 2: return InvalidReplayPath; case 3: return InvalidReplayData; case 4: return ParsingError; case 5: return DownloadError; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Error> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Error findValueByNumber(int number) { return Error.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.Sc2Api.ResponseReplayInfo.getDescriptor().getEnumTypes().get(0); } private static final Error[] VALUES = values(); public static Error 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 Error(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:SC2APIProtocol.ResponseReplayInfo.Error) } private int bitField0_; public static final int MAP_NAME_FIELD_NUMBER = 1; private volatile java.lang.Object mapName_; /** * optional string map_name = 1; * @return Whether the mapName field is set. */ @java.lang.Override public boolean hasMapName() { return ((bitField0_ & 0x00000001) != 0); } /** * optional string map_name = 1; * @return The mapName. */ @java.lang.Override public java.lang.String getMapName() { java.lang.Object ref = mapName_; 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()) { mapName_ = s; } return s; } } /** * optional string map_name = 1; * @return The bytes for mapName. */ @java.lang.Override public com.google.protobuf.ByteString getMapNameBytes() { java.lang.Object ref = mapName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); mapName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int LOCAL_MAP_PATH_FIELD_NUMBER = 2; private volatile java.lang.Object localMapPath_; /** * optional string local_map_path = 2; * @return Whether the localMapPath field is set. */ @java.lang.Override public boolean hasLocalMapPath() { return ((bitField0_ & 0x00000002) != 0); } /** * optional string local_map_path = 2; * @return The localMapPath. */ @java.lang.Override public java.lang.String getLocalMapPath() { java.lang.Object ref = localMapPath_; 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()) { localMapPath_ = s; } return s; } } /** * optional string local_map_path = 2; * @return The bytes for localMapPath. */ @java.lang.Override public com.google.protobuf.ByteString getLocalMapPathBytes() { java.lang.Object ref = localMapPath_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); localMapPath_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PLAYER_INFO_FIELD_NUMBER = 3; private java.util.List playerInfo_; /** * repeated .SC2APIProtocol.PlayerInfoExtra player_info = 3; */ @java.lang.Override public java.util.List getPlayerInfoList() { return playerInfo_; } /** * repeated .SC2APIProtocol.PlayerInfoExtra player_info = 3; */ @java.lang.Override public java.util.List getPlayerInfoOrBuilderList() { return playerInfo_; } /** * repeated .SC2APIProtocol.PlayerInfoExtra player_info = 3; */ @java.lang.Override public int getPlayerInfoCount() { return playerInfo_.size(); } /** * repeated .SC2APIProtocol.PlayerInfoExtra player_info = 3; */ @java.lang.Override public SC2APIProtocol.Sc2Api.PlayerInfoExtra getPlayerInfo(int index) { return playerInfo_.get(index); } /** * repeated .SC2APIProtocol.PlayerInfoExtra player_info = 3; */ @java.lang.Override public SC2APIProtocol.Sc2Api.PlayerInfoExtraOrBuilder getPlayerInfoOrBuilder( int index) { return playerInfo_.get(index); } public static final int GAME_DURATION_LOOPS_FIELD_NUMBER = 4; private int gameDurationLoops_; /** * optional uint32 game_duration_loops = 4; * @return Whether the gameDurationLoops field is set. */ @java.lang.Override public boolean hasGameDurationLoops() { return ((bitField0_ & 0x00000004) != 0); } /** * optional uint32 game_duration_loops = 4; * @return The gameDurationLoops. */ @java.lang.Override public int getGameDurationLoops() { return gameDurationLoops_; } public static final int GAME_DURATION_SECONDS_FIELD_NUMBER = 5; private float gameDurationSeconds_; /** * optional float game_duration_seconds = 5; * @return Whether the gameDurationSeconds field is set. */ @java.lang.Override public boolean hasGameDurationSeconds() { return ((bitField0_ & 0x00000008) != 0); } /** * optional float game_duration_seconds = 5; * @return The gameDurationSeconds. */ @java.lang.Override public float getGameDurationSeconds() { return gameDurationSeconds_; } public static final int GAME_VERSION_FIELD_NUMBER = 6; private volatile java.lang.Object gameVersion_; /** * optional string game_version = 6; * @return Whether the gameVersion field is set. */ @java.lang.Override public boolean hasGameVersion() { return ((bitField0_ & 0x00000010) != 0); } /** * optional string game_version = 6; * @return The gameVersion. */ @java.lang.Override public java.lang.String getGameVersion() { java.lang.Object ref = gameVersion_; 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()) { gameVersion_ = s; } return s; } } /** * optional string game_version = 6; * @return The bytes for gameVersion. */ @java.lang.Override public com.google.protobuf.ByteString getGameVersionBytes() { java.lang.Object ref = gameVersion_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); gameVersion_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DATA_VERSION_FIELD_NUMBER = 11; private volatile java.lang.Object dataVersion_; /** * optional string data_version = 11; * @return Whether the dataVersion field is set. */ @java.lang.Override public boolean hasDataVersion() { return ((bitField0_ & 0x00000020) != 0); } /** * optional string data_version = 11; * @return The dataVersion. */ @java.lang.Override public java.lang.String getDataVersion() { java.lang.Object ref = dataVersion_; 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()) { dataVersion_ = s; } return s; } } /** * optional string data_version = 11; * @return The bytes for dataVersion. */ @java.lang.Override public com.google.protobuf.ByteString getDataVersionBytes() { java.lang.Object ref = dataVersion_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); dataVersion_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DATA_BUILD_FIELD_NUMBER = 7; private int dataBuild_; /** * optional uint32 data_build = 7; * @return Whether the dataBuild field is set. */ @java.lang.Override public boolean hasDataBuild() { return ((bitField0_ & 0x00000040) != 0); } /** * optional uint32 data_build = 7; * @return The dataBuild. */ @java.lang.Override public int getDataBuild() { return dataBuild_; } public static final int BASE_BUILD_FIELD_NUMBER = 8; private int baseBuild_; /** * optional uint32 base_build = 8; * @return Whether the baseBuild field is set. */ @java.lang.Override public boolean hasBaseBuild() { return ((bitField0_ & 0x00000080) != 0); } /** * optional uint32 base_build = 8; * @return The baseBuild. */ @java.lang.Override public int getBaseBuild() { return baseBuild_; } public static final int ERROR_FIELD_NUMBER = 9; private int error_; /** * optional .SC2APIProtocol.ResponseReplayInfo.Error error = 9; * @return Whether the error field is set. */ @java.lang.Override public boolean hasError() { return ((bitField0_ & 0x00000100) != 0); } /** * optional .SC2APIProtocol.ResponseReplayInfo.Error error = 9; * @return The error. */ @java.lang.Override public SC2APIProtocol.Sc2Api.ResponseReplayInfo.Error getError() { @SuppressWarnings("deprecation") SC2APIProtocol.Sc2Api.ResponseReplayInfo.Error result = SC2APIProtocol.Sc2Api.ResponseReplayInfo.Error.valueOf(error_); return result == null ? SC2APIProtocol.Sc2Api.ResponseReplayInfo.Error.MissingReplay : result; } public static final int ERROR_DETAILS_FIELD_NUMBER = 10; private volatile java.lang.Object errorDetails_; /** * optional string error_details = 10; * @return Whether the errorDetails field is set. */ @java.lang.Override public boolean hasErrorDetails() { return ((bitField0_ & 0x00000200) != 0); } /** * optional string error_details = 10; * @return The errorDetails. */ @java.lang.Override public java.lang.String getErrorDetails() { java.lang.Object ref = errorDetails_; 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()) { errorDetails_ = s; } return s; } } /** * optional string error_details = 10; * @return The bytes for errorDetails. */ @java.lang.Override public com.google.protobuf.ByteString getErrorDetailsBytes() { java.lang.Object ref = errorDetails_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); errorDetails_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } 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)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, mapName_); } if (((bitField0_ & 0x00000002) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, localMapPath_); } for (int i = 0; i < playerInfo_.size(); i++) { output.writeMessage(3, playerInfo_.get(i)); } if (((bitField0_ & 0x00000004) != 0)) { output.writeUInt32(4, gameDurationLoops_); } if (((bitField0_ & 0x00000008) != 0)) { output.writeFloat(5, gameDurationSeconds_); } if (((bitField0_ & 0x00000010) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, gameVersion_); } if (((bitField0_ & 0x00000040) != 0)) { output.writeUInt32(7, dataBuild_); } if (((bitField0_ & 0x00000080) != 0)) { output.writeUInt32(8, baseBuild_); } if (((bitField0_ & 0x00000100) != 0)) { output.writeEnum(9, error_); } if (((bitField0_ & 0x00000200) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 10, errorDetails_); } if (((bitField0_ & 0x00000020) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 11, dataVersion_); } 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.GeneratedMessageV3.computeStringSize(1, mapName_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, localMapPath_); } for (int i = 0; i < playerInfo_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, playerInfo_.get(i)); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(4, gameDurationLoops_); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeFloatSize(5, gameDurationSeconds_); } if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, gameVersion_); } if (((bitField0_ & 0x00000040) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(7, dataBuild_); } if (((bitField0_ & 0x00000080) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(8, baseBuild_); } if (((bitField0_ & 0x00000100) != 0)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(9, error_); } if (((bitField0_ & 0x00000200) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, errorDetails_); } if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, dataVersion_); } 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.Sc2Api.ResponseReplayInfo)) { return super.equals(obj); } SC2APIProtocol.Sc2Api.ResponseReplayInfo other = (SC2APIProtocol.Sc2Api.ResponseReplayInfo) obj; if (hasMapName() != other.hasMapName()) return false; if (hasMapName()) { if (!getMapName() .equals(other.getMapName())) return false; } if (hasLocalMapPath() != other.hasLocalMapPath()) return false; if (hasLocalMapPath()) { if (!getLocalMapPath() .equals(other.getLocalMapPath())) return false; } if (!getPlayerInfoList() .equals(other.getPlayerInfoList())) return false; if (hasGameDurationLoops() != other.hasGameDurationLoops()) return false; if (hasGameDurationLoops()) { if (getGameDurationLoops() != other.getGameDurationLoops()) return false; } if (hasGameDurationSeconds() != other.hasGameDurationSeconds()) return false; if (hasGameDurationSeconds()) { if (java.lang.Float.floatToIntBits(getGameDurationSeconds()) != java.lang.Float.floatToIntBits( other.getGameDurationSeconds())) return false; } if (hasGameVersion() != other.hasGameVersion()) return false; if (hasGameVersion()) { if (!getGameVersion() .equals(other.getGameVersion())) return false; } if (hasDataVersion() != other.hasDataVersion()) return false; if (hasDataVersion()) { if (!getDataVersion() .equals(other.getDataVersion())) return false; } if (hasDataBuild() != other.hasDataBuild()) return false; if (hasDataBuild()) { if (getDataBuild() != other.getDataBuild()) return false; } if (hasBaseBuild() != other.hasBaseBuild()) return false; if (hasBaseBuild()) { if (getBaseBuild() != other.getBaseBuild()) return false; } if (hasError() != other.hasError()) return false; if (hasError()) { if (error_ != other.error_) return false; } if (hasErrorDetails() != other.hasErrorDetails()) return false; if (hasErrorDetails()) { if (!getErrorDetails() .equals(other.getErrorDetails())) 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 (hasMapName()) { hash = (37 * hash) + MAP_NAME_FIELD_NUMBER; hash = (53 * hash) + getMapName().hashCode(); } if (hasLocalMapPath()) { hash = (37 * hash) + LOCAL_MAP_PATH_FIELD_NUMBER; hash = (53 * hash) + getLocalMapPath().hashCode(); } if (getPlayerInfoCount() > 0) { hash = (37 * hash) + PLAYER_INFO_FIELD_NUMBER; hash = (53 * hash) + getPlayerInfoList().hashCode(); } if (hasGameDurationLoops()) { hash = (37 * hash) + GAME_DURATION_LOOPS_FIELD_NUMBER; hash = (53 * hash) + getGameDurationLoops(); } if (hasGameDurationSeconds()) { hash = (37 * hash) + GAME_DURATION_SECONDS_FIELD_NUMBER; hash = (53 * hash) + java.lang.Float.floatToIntBits( getGameDurationSeconds()); } if (hasGameVersion()) { hash = (37 * hash) + GAME_VERSION_FIELD_NUMBER; hash = (53 * hash) + getGameVersion().hashCode(); } if (hasDataVersion()) { hash = (37 * hash) + DATA_VERSION_FIELD_NUMBER; hash = (53 * hash) + getDataVersion().hashCode(); } if (hasDataBuild()) { hash = (37 * hash) + DATA_BUILD_FIELD_NUMBER; hash = (53 * hash) + getDataBuild(); } if (hasBaseBuild()) { hash = (37 * hash) + BASE_BUILD_FIELD_NUMBER; hash = (53 * hash) + getBaseBuild(); } if (hasError()) { hash = (37 * hash) + ERROR_FIELD_NUMBER; hash = (53 * hash) + error_; } if (hasErrorDetails()) { hash = (37 * hash) + ERROR_DETAILS_FIELD_NUMBER; hash = (53 * hash) + getErrorDetails().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static SC2APIProtocol.Sc2Api.ResponseReplayInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.ResponseReplayInfo parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.ResponseReplayInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.ResponseReplayInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.ResponseReplayInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.ResponseReplayInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.ResponseReplayInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.ResponseReplayInfo 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.Sc2Api.ResponseReplayInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.ResponseReplayInfo 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.Sc2Api.ResponseReplayInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.ResponseReplayInfo 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.Sc2Api.ResponseReplayInfo 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.ResponseReplayInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:SC2APIProtocol.ResponseReplayInfo) SC2APIProtocol.Sc2Api.ResponseReplayInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_ResponseReplayInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_ResponseReplayInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Sc2Api.ResponseReplayInfo.class, SC2APIProtocol.Sc2Api.ResponseReplayInfo.Builder.class); } // Construct using SC2APIProtocol.Sc2Api.ResponseReplayInfo.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); mapName_ = ""; bitField0_ = (bitField0_ & ~0x00000001); localMapPath_ = ""; bitField0_ = (bitField0_ & ~0x00000002); if (playerInfoBuilder_ == null) { playerInfo_ = java.util.Collections.emptyList(); } else { playerInfo_ = null; playerInfoBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); gameDurationLoops_ = 0; bitField0_ = (bitField0_ & ~0x00000008); gameDurationSeconds_ = 0F; bitField0_ = (bitField0_ & ~0x00000010); gameVersion_ = ""; bitField0_ = (bitField0_ & ~0x00000020); dataVersion_ = ""; bitField0_ = (bitField0_ & ~0x00000040); dataBuild_ = 0; bitField0_ = (bitField0_ & ~0x00000080); baseBuild_ = 0; bitField0_ = (bitField0_ & ~0x00000100); error_ = 1; bitField0_ = (bitField0_ & ~0x00000200); errorDetails_ = ""; bitField0_ = (bitField0_ & ~0x00000400); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_ResponseReplayInfo_descriptor; } @java.lang.Override public SC2APIProtocol.Sc2Api.ResponseReplayInfo getDefaultInstanceForType() { return SC2APIProtocol.Sc2Api.ResponseReplayInfo.getDefaultInstance(); } @java.lang.Override public SC2APIProtocol.Sc2Api.ResponseReplayInfo build() { SC2APIProtocol.Sc2Api.ResponseReplayInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public SC2APIProtocol.Sc2Api.ResponseReplayInfo buildPartial() { SC2APIProtocol.Sc2Api.ResponseReplayInfo result = new SC2APIProtocol.Sc2Api.ResponseReplayInfo(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { to_bitField0_ |= 0x00000001; } result.mapName_ = mapName_; if (((from_bitField0_ & 0x00000002) != 0)) { to_bitField0_ |= 0x00000002; } result.localMapPath_ = localMapPath_; if (playerInfoBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0)) { playerInfo_ = java.util.Collections.unmodifiableList(playerInfo_); bitField0_ = (bitField0_ & ~0x00000004); } result.playerInfo_ = playerInfo_; } else { result.playerInfo_ = playerInfoBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { result.gameDurationLoops_ = gameDurationLoops_; to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000010) != 0)) { result.gameDurationSeconds_ = gameDurationSeconds_; to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000020) != 0)) { to_bitField0_ |= 0x00000010; } result.gameVersion_ = gameVersion_; if (((from_bitField0_ & 0x00000040) != 0)) { to_bitField0_ |= 0x00000020; } result.dataVersion_ = dataVersion_; if (((from_bitField0_ & 0x00000080) != 0)) { result.dataBuild_ = dataBuild_; to_bitField0_ |= 0x00000040; } if (((from_bitField0_ & 0x00000100) != 0)) { result.baseBuild_ = baseBuild_; to_bitField0_ |= 0x00000080; } if (((from_bitField0_ & 0x00000200) != 0)) { to_bitField0_ |= 0x00000100; } result.error_ = error_; if (((from_bitField0_ & 0x00000400) != 0)) { to_bitField0_ |= 0x00000200; } result.errorDetails_ = errorDetails_; 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.Sc2Api.ResponseReplayInfo) { return mergeFrom((SC2APIProtocol.Sc2Api.ResponseReplayInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(SC2APIProtocol.Sc2Api.ResponseReplayInfo other) { if (other == SC2APIProtocol.Sc2Api.ResponseReplayInfo.getDefaultInstance()) return this; if (other.hasMapName()) { bitField0_ |= 0x00000001; mapName_ = other.mapName_; onChanged(); } if (other.hasLocalMapPath()) { bitField0_ |= 0x00000002; localMapPath_ = other.localMapPath_; onChanged(); } if (playerInfoBuilder_ == null) { if (!other.playerInfo_.isEmpty()) { if (playerInfo_.isEmpty()) { playerInfo_ = other.playerInfo_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensurePlayerInfoIsMutable(); playerInfo_.addAll(other.playerInfo_); } onChanged(); } } else { if (!other.playerInfo_.isEmpty()) { if (playerInfoBuilder_.isEmpty()) { playerInfoBuilder_.dispose(); playerInfoBuilder_ = null; playerInfo_ = other.playerInfo_; bitField0_ = (bitField0_ & ~0x00000004); playerInfoBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getPlayerInfoFieldBuilder() : null; } else { playerInfoBuilder_.addAllMessages(other.playerInfo_); } } } if (other.hasGameDurationLoops()) { setGameDurationLoops(other.getGameDurationLoops()); } if (other.hasGameDurationSeconds()) { setGameDurationSeconds(other.getGameDurationSeconds()); } if (other.hasGameVersion()) { bitField0_ |= 0x00000020; gameVersion_ = other.gameVersion_; onChanged(); } if (other.hasDataVersion()) { bitField0_ |= 0x00000040; dataVersion_ = other.dataVersion_; onChanged(); } if (other.hasDataBuild()) { setDataBuild(other.getDataBuild()); } if (other.hasBaseBuild()) { setBaseBuild(other.getBaseBuild()); } if (other.hasError()) { setError(other.getError()); } if (other.hasErrorDetails()) { bitField0_ |= 0x00000400; errorDetails_ = other.errorDetails_; 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 10: { mapName_ = input.readBytes(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { localMapPath_ = input.readBytes(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { SC2APIProtocol.Sc2Api.PlayerInfoExtra m = input.readMessage( SC2APIProtocol.Sc2Api.PlayerInfoExtra.PARSER, extensionRegistry); if (playerInfoBuilder_ == null) { ensurePlayerInfoIsMutable(); playerInfo_.add(m); } else { playerInfoBuilder_.addMessage(m); } break; } // case 26 case 32: { gameDurationLoops_ = input.readUInt32(); bitField0_ |= 0x00000008; break; } // case 32 case 45: { gameDurationSeconds_ = input.readFloat(); bitField0_ |= 0x00000010; break; } // case 45 case 50: { gameVersion_ = input.readBytes(); bitField0_ |= 0x00000020; break; } // case 50 case 56: { dataBuild_ = input.readUInt32(); bitField0_ |= 0x00000080; break; } // case 56 case 64: { baseBuild_ = input.readUInt32(); bitField0_ |= 0x00000100; break; } // case 64 case 72: { int tmpRaw = input.readEnum(); SC2APIProtocol.Sc2Api.ResponseReplayInfo.Error tmpValue = SC2APIProtocol.Sc2Api.ResponseReplayInfo.Error.forNumber(tmpRaw); if (tmpValue == null) { mergeUnknownVarintField(9, tmpRaw); } else { error_ = tmpRaw; bitField0_ |= 0x00000200; } break; } // case 72 case 82: { errorDetails_ = input.readBytes(); bitField0_ |= 0x00000400; break; } // case 82 case 90: { dataVersion_ = input.readBytes(); bitField0_ |= 0x00000040; break; } // case 90 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.lang.Object mapName_ = ""; /** * optional string map_name = 1; * @return Whether the mapName field is set. */ public boolean hasMapName() { return ((bitField0_ & 0x00000001) != 0); } /** * optional string map_name = 1; * @return The mapName. */ public java.lang.String getMapName() { java.lang.Object ref = mapName_; 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()) { mapName_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string map_name = 1; * @return The bytes for mapName. */ public com.google.protobuf.ByteString getMapNameBytes() { java.lang.Object ref = mapName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); mapName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string map_name = 1; * @param value The mapName to set. * @return This builder for chaining. */ public Builder setMapName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; mapName_ = value; onChanged(); return this; } /** * optional string map_name = 1; * @return This builder for chaining. */ public Builder clearMapName() { bitField0_ = (bitField0_ & ~0x00000001); mapName_ = getDefaultInstance().getMapName(); onChanged(); return this; } /** * optional string map_name = 1; * @param value The bytes for mapName to set. * @return This builder for chaining. */ public Builder setMapNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; mapName_ = value; onChanged(); return this; } private java.lang.Object localMapPath_ = ""; /** * optional string local_map_path = 2; * @return Whether the localMapPath field is set. */ public boolean hasLocalMapPath() { return ((bitField0_ & 0x00000002) != 0); } /** * optional string local_map_path = 2; * @return The localMapPath. */ public java.lang.String getLocalMapPath() { java.lang.Object ref = localMapPath_; 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()) { localMapPath_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string local_map_path = 2; * @return The bytes for localMapPath. */ public com.google.protobuf.ByteString getLocalMapPathBytes() { java.lang.Object ref = localMapPath_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); localMapPath_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string local_map_path = 2; * @param value The localMapPath to set. * @return This builder for chaining. */ public Builder setLocalMapPath( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; localMapPath_ = value; onChanged(); return this; } /** * optional string local_map_path = 2; * @return This builder for chaining. */ public Builder clearLocalMapPath() { bitField0_ = (bitField0_ & ~0x00000002); localMapPath_ = getDefaultInstance().getLocalMapPath(); onChanged(); return this; } /** * optional string local_map_path = 2; * @param value The bytes for localMapPath to set. * @return This builder for chaining. */ public Builder setLocalMapPathBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; localMapPath_ = value; onChanged(); return this; } private java.util.List playerInfo_ = java.util.Collections.emptyList(); private void ensurePlayerInfoIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { playerInfo_ = new java.util.ArrayList(playerInfo_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilderV3< SC2APIProtocol.Sc2Api.PlayerInfoExtra, SC2APIProtocol.Sc2Api.PlayerInfoExtra.Builder, SC2APIProtocol.Sc2Api.PlayerInfoExtraOrBuilder> playerInfoBuilder_; /** * repeated .SC2APIProtocol.PlayerInfoExtra player_info = 3; */ public java.util.List getPlayerInfoList() { if (playerInfoBuilder_ == null) { return java.util.Collections.unmodifiableList(playerInfo_); } else { return playerInfoBuilder_.getMessageList(); } } /** * repeated .SC2APIProtocol.PlayerInfoExtra player_info = 3; */ public int getPlayerInfoCount() { if (playerInfoBuilder_ == null) { return playerInfo_.size(); } else { return playerInfoBuilder_.getCount(); } } /** * repeated .SC2APIProtocol.PlayerInfoExtra player_info = 3; */ public SC2APIProtocol.Sc2Api.PlayerInfoExtra getPlayerInfo(int index) { if (playerInfoBuilder_ == null) { return playerInfo_.get(index); } else { return playerInfoBuilder_.getMessage(index); } } /** * repeated .SC2APIProtocol.PlayerInfoExtra player_info = 3; */ public Builder setPlayerInfo( int index, SC2APIProtocol.Sc2Api.PlayerInfoExtra value) { if (playerInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePlayerInfoIsMutable(); playerInfo_.set(index, value); onChanged(); } else { playerInfoBuilder_.setMessage(index, value); } return this; } /** * repeated .SC2APIProtocol.PlayerInfoExtra player_info = 3; */ public Builder setPlayerInfo( int index, SC2APIProtocol.Sc2Api.PlayerInfoExtra.Builder builderForValue) { if (playerInfoBuilder_ == null) { ensurePlayerInfoIsMutable(); playerInfo_.set(index, builderForValue.build()); onChanged(); } else { playerInfoBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .SC2APIProtocol.PlayerInfoExtra player_info = 3; */ public Builder addPlayerInfo(SC2APIProtocol.Sc2Api.PlayerInfoExtra value) { if (playerInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePlayerInfoIsMutable(); playerInfo_.add(value); onChanged(); } else { playerInfoBuilder_.addMessage(value); } return this; } /** * repeated .SC2APIProtocol.PlayerInfoExtra player_info = 3; */ public Builder addPlayerInfo( int index, SC2APIProtocol.Sc2Api.PlayerInfoExtra value) { if (playerInfoBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePlayerInfoIsMutable(); playerInfo_.add(index, value); onChanged(); } else { playerInfoBuilder_.addMessage(index, value); } return this; } /** * repeated .SC2APIProtocol.PlayerInfoExtra player_info = 3; */ public Builder addPlayerInfo( SC2APIProtocol.Sc2Api.PlayerInfoExtra.Builder builderForValue) { if (playerInfoBuilder_ == null) { ensurePlayerInfoIsMutable(); playerInfo_.add(builderForValue.build()); onChanged(); } else { playerInfoBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .SC2APIProtocol.PlayerInfoExtra player_info = 3; */ public Builder addPlayerInfo( int index, SC2APIProtocol.Sc2Api.PlayerInfoExtra.Builder builderForValue) { if (playerInfoBuilder_ == null) { ensurePlayerInfoIsMutable(); playerInfo_.add(index, builderForValue.build()); onChanged(); } else { playerInfoBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .SC2APIProtocol.PlayerInfoExtra player_info = 3; */ public Builder addAllPlayerInfo( java.lang.Iterable values) { if (playerInfoBuilder_ == null) { ensurePlayerInfoIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, playerInfo_); onChanged(); } else { playerInfoBuilder_.addAllMessages(values); } return this; } /** * repeated .SC2APIProtocol.PlayerInfoExtra player_info = 3; */ public Builder clearPlayerInfo() { if (playerInfoBuilder_ == null) { playerInfo_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { playerInfoBuilder_.clear(); } return this; } /** * repeated .SC2APIProtocol.PlayerInfoExtra player_info = 3; */ public Builder removePlayerInfo(int index) { if (playerInfoBuilder_ == null) { ensurePlayerInfoIsMutable(); playerInfo_.remove(index); onChanged(); } else { playerInfoBuilder_.remove(index); } return this; } /** * repeated .SC2APIProtocol.PlayerInfoExtra player_info = 3; */ public SC2APIProtocol.Sc2Api.PlayerInfoExtra.Builder getPlayerInfoBuilder( int index) { return getPlayerInfoFieldBuilder().getBuilder(index); } /** * repeated .SC2APIProtocol.PlayerInfoExtra player_info = 3; */ public SC2APIProtocol.Sc2Api.PlayerInfoExtraOrBuilder getPlayerInfoOrBuilder( int index) { if (playerInfoBuilder_ == null) { return playerInfo_.get(index); } else { return playerInfoBuilder_.getMessageOrBuilder(index); } } /** * repeated .SC2APIProtocol.PlayerInfoExtra player_info = 3; */ public java.util.List getPlayerInfoOrBuilderList() { if (playerInfoBuilder_ != null) { return playerInfoBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(playerInfo_); } } /** * repeated .SC2APIProtocol.PlayerInfoExtra player_info = 3; */ public SC2APIProtocol.Sc2Api.PlayerInfoExtra.Builder addPlayerInfoBuilder() { return getPlayerInfoFieldBuilder().addBuilder( SC2APIProtocol.Sc2Api.PlayerInfoExtra.getDefaultInstance()); } /** * repeated .SC2APIProtocol.PlayerInfoExtra player_info = 3; */ public SC2APIProtocol.Sc2Api.PlayerInfoExtra.Builder addPlayerInfoBuilder( int index) { return getPlayerInfoFieldBuilder().addBuilder( index, SC2APIProtocol.Sc2Api.PlayerInfoExtra.getDefaultInstance()); } /** * repeated .SC2APIProtocol.PlayerInfoExtra player_info = 3; */ public java.util.List getPlayerInfoBuilderList() { return getPlayerInfoFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< SC2APIProtocol.Sc2Api.PlayerInfoExtra, SC2APIProtocol.Sc2Api.PlayerInfoExtra.Builder, SC2APIProtocol.Sc2Api.PlayerInfoExtraOrBuilder> getPlayerInfoFieldBuilder() { if (playerInfoBuilder_ == null) { playerInfoBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< SC2APIProtocol.Sc2Api.PlayerInfoExtra, SC2APIProtocol.Sc2Api.PlayerInfoExtra.Builder, SC2APIProtocol.Sc2Api.PlayerInfoExtraOrBuilder>( playerInfo_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); playerInfo_ = null; } return playerInfoBuilder_; } private int gameDurationLoops_ ; /** * optional uint32 game_duration_loops = 4; * @return Whether the gameDurationLoops field is set. */ @java.lang.Override public boolean hasGameDurationLoops() { return ((bitField0_ & 0x00000008) != 0); } /** * optional uint32 game_duration_loops = 4; * @return The gameDurationLoops. */ @java.lang.Override public int getGameDurationLoops() { return gameDurationLoops_; } /** * optional uint32 game_duration_loops = 4; * @param value The gameDurationLoops to set. * @return This builder for chaining. */ public Builder setGameDurationLoops(int value) { bitField0_ |= 0x00000008; gameDurationLoops_ = value; onChanged(); return this; } /** * optional uint32 game_duration_loops = 4; * @return This builder for chaining. */ public Builder clearGameDurationLoops() { bitField0_ = (bitField0_ & ~0x00000008); gameDurationLoops_ = 0; onChanged(); return this; } private float gameDurationSeconds_ ; /** * optional float game_duration_seconds = 5; * @return Whether the gameDurationSeconds field is set. */ @java.lang.Override public boolean hasGameDurationSeconds() { return ((bitField0_ & 0x00000010) != 0); } /** * optional float game_duration_seconds = 5; * @return The gameDurationSeconds. */ @java.lang.Override public float getGameDurationSeconds() { return gameDurationSeconds_; } /** * optional float game_duration_seconds = 5; * @param value The gameDurationSeconds to set. * @return This builder for chaining. */ public Builder setGameDurationSeconds(float value) { bitField0_ |= 0x00000010; gameDurationSeconds_ = value; onChanged(); return this; } /** * optional float game_duration_seconds = 5; * @return This builder for chaining. */ public Builder clearGameDurationSeconds() { bitField0_ = (bitField0_ & ~0x00000010); gameDurationSeconds_ = 0F; onChanged(); return this; } private java.lang.Object gameVersion_ = ""; /** * optional string game_version = 6; * @return Whether the gameVersion field is set. */ public boolean hasGameVersion() { return ((bitField0_ & 0x00000020) != 0); } /** * optional string game_version = 6; * @return The gameVersion. */ public java.lang.String getGameVersion() { java.lang.Object ref = gameVersion_; 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()) { gameVersion_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string game_version = 6; * @return The bytes for gameVersion. */ public com.google.protobuf.ByteString getGameVersionBytes() { java.lang.Object ref = gameVersion_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); gameVersion_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string game_version = 6; * @param value The gameVersion to set. * @return This builder for chaining. */ public Builder setGameVersion( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; gameVersion_ = value; onChanged(); return this; } /** * optional string game_version = 6; * @return This builder for chaining. */ public Builder clearGameVersion() { bitField0_ = (bitField0_ & ~0x00000020); gameVersion_ = getDefaultInstance().getGameVersion(); onChanged(); return this; } /** * optional string game_version = 6; * @param value The bytes for gameVersion to set. * @return This builder for chaining. */ public Builder setGameVersionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; gameVersion_ = value; onChanged(); return this; } private java.lang.Object dataVersion_ = ""; /** * optional string data_version = 11; * @return Whether the dataVersion field is set. */ public boolean hasDataVersion() { return ((bitField0_ & 0x00000040) != 0); } /** * optional string data_version = 11; * @return The dataVersion. */ public java.lang.String getDataVersion() { java.lang.Object ref = dataVersion_; 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()) { dataVersion_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string data_version = 11; * @return The bytes for dataVersion. */ public com.google.protobuf.ByteString getDataVersionBytes() { java.lang.Object ref = dataVersion_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); dataVersion_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string data_version = 11; * @param value The dataVersion to set. * @return This builder for chaining. */ public Builder setDataVersion( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000040; dataVersion_ = value; onChanged(); return this; } /** * optional string data_version = 11; * @return This builder for chaining. */ public Builder clearDataVersion() { bitField0_ = (bitField0_ & ~0x00000040); dataVersion_ = getDefaultInstance().getDataVersion(); onChanged(); return this; } /** * optional string data_version = 11; * @param value The bytes for dataVersion to set. * @return This builder for chaining. */ public Builder setDataVersionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000040; dataVersion_ = value; onChanged(); return this; } private int dataBuild_ ; /** * optional uint32 data_build = 7; * @return Whether the dataBuild field is set. */ @java.lang.Override public boolean hasDataBuild() { return ((bitField0_ & 0x00000080) != 0); } /** * optional uint32 data_build = 7; * @return The dataBuild. */ @java.lang.Override public int getDataBuild() { return dataBuild_; } /** * optional uint32 data_build = 7; * @param value The dataBuild to set. * @return This builder for chaining. */ public Builder setDataBuild(int value) { bitField0_ |= 0x00000080; dataBuild_ = value; onChanged(); return this; } /** * optional uint32 data_build = 7; * @return This builder for chaining. */ public Builder clearDataBuild() { bitField0_ = (bitField0_ & ~0x00000080); dataBuild_ = 0; onChanged(); return this; } private int baseBuild_ ; /** * optional uint32 base_build = 8; * @return Whether the baseBuild field is set. */ @java.lang.Override public boolean hasBaseBuild() { return ((bitField0_ & 0x00000100) != 0); } /** * optional uint32 base_build = 8; * @return The baseBuild. */ @java.lang.Override public int getBaseBuild() { return baseBuild_; } /** * optional uint32 base_build = 8; * @param value The baseBuild to set. * @return This builder for chaining. */ public Builder setBaseBuild(int value) { bitField0_ |= 0x00000100; baseBuild_ = value; onChanged(); return this; } /** * optional uint32 base_build = 8; * @return This builder for chaining. */ public Builder clearBaseBuild() { bitField0_ = (bitField0_ & ~0x00000100); baseBuild_ = 0; onChanged(); return this; } private int error_ = 1; /** * optional .SC2APIProtocol.ResponseReplayInfo.Error error = 9; * @return Whether the error field is set. */ @java.lang.Override public boolean hasError() { return ((bitField0_ & 0x00000200) != 0); } /** * optional .SC2APIProtocol.ResponseReplayInfo.Error error = 9; * @return The error. */ @java.lang.Override public SC2APIProtocol.Sc2Api.ResponseReplayInfo.Error getError() { @SuppressWarnings("deprecation") SC2APIProtocol.Sc2Api.ResponseReplayInfo.Error result = SC2APIProtocol.Sc2Api.ResponseReplayInfo.Error.valueOf(error_); return result == null ? SC2APIProtocol.Sc2Api.ResponseReplayInfo.Error.MissingReplay : result; } /** * optional .SC2APIProtocol.ResponseReplayInfo.Error error = 9; * @param value The error to set. * @return This builder for chaining. */ public Builder setError(SC2APIProtocol.Sc2Api.ResponseReplayInfo.Error value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000200; error_ = value.getNumber(); onChanged(); return this; } /** * optional .SC2APIProtocol.ResponseReplayInfo.Error error = 9; * @return This builder for chaining. */ public Builder clearError() { bitField0_ = (bitField0_ & ~0x00000200); error_ = 1; onChanged(); return this; } private java.lang.Object errorDetails_ = ""; /** * optional string error_details = 10; * @return Whether the errorDetails field is set. */ public boolean hasErrorDetails() { return ((bitField0_ & 0x00000400) != 0); } /** * optional string error_details = 10; * @return The errorDetails. */ public java.lang.String getErrorDetails() { java.lang.Object ref = errorDetails_; 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()) { errorDetails_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string error_details = 10; * @return The bytes for errorDetails. */ public com.google.protobuf.ByteString getErrorDetailsBytes() { java.lang.Object ref = errorDetails_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); errorDetails_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string error_details = 10; * @param value The errorDetails to set. * @return This builder for chaining. */ public Builder setErrorDetails( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000400; errorDetails_ = value; onChanged(); return this; } /** * optional string error_details = 10; * @return This builder for chaining. */ public Builder clearErrorDetails() { bitField0_ = (bitField0_ & ~0x00000400); errorDetails_ = getDefaultInstance().getErrorDetails(); onChanged(); return this; } /** * optional string error_details = 10; * @param value The bytes for errorDetails to set. * @return This builder for chaining. */ public Builder setErrorDetailsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000400; errorDetails_ = value; 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.ResponseReplayInfo) } // @@protoc_insertion_point(class_scope:SC2APIProtocol.ResponseReplayInfo) private static final SC2APIProtocol.Sc2Api.ResponseReplayInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new SC2APIProtocol.Sc2Api.ResponseReplayInfo(); } public static SC2APIProtocol.Sc2Api.ResponseReplayInfo getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ResponseReplayInfo 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.Sc2Api.ResponseReplayInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RequestAvailableMapsOrBuilder extends // @@protoc_insertion_point(interface_extends:SC2APIProtocol.RequestAvailableMaps) com.google.protobuf.MessageOrBuilder { } /** *
   *-----------------------------------------------------------------------------
   * 
* * Protobuf type {@code SC2APIProtocol.RequestAvailableMaps} */ public static final class RequestAvailableMaps extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:SC2APIProtocol.RequestAvailableMaps) RequestAvailableMapsOrBuilder { private static final long serialVersionUID = 0L; // Use RequestAvailableMaps.newBuilder() to construct. private RequestAvailableMaps(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RequestAvailableMaps() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new RequestAvailableMaps(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_RequestAvailableMaps_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_RequestAvailableMaps_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Sc2Api.RequestAvailableMaps.class, SC2APIProtocol.Sc2Api.RequestAvailableMaps.Builder.class); } 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 { getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; 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.Sc2Api.RequestAvailableMaps)) { return super.equals(obj); } SC2APIProtocol.Sc2Api.RequestAvailableMaps other = (SC2APIProtocol.Sc2Api.RequestAvailableMaps) obj; 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(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static SC2APIProtocol.Sc2Api.RequestAvailableMaps parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.RequestAvailableMaps parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.RequestAvailableMaps parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.RequestAvailableMaps parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.RequestAvailableMaps parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.RequestAvailableMaps parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.RequestAvailableMaps parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.RequestAvailableMaps 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.Sc2Api.RequestAvailableMaps parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.RequestAvailableMaps 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.Sc2Api.RequestAvailableMaps parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.RequestAvailableMaps 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.Sc2Api.RequestAvailableMaps 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.RequestAvailableMaps} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:SC2APIProtocol.RequestAvailableMaps) SC2APIProtocol.Sc2Api.RequestAvailableMapsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_RequestAvailableMaps_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_RequestAvailableMaps_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Sc2Api.RequestAvailableMaps.class, SC2APIProtocol.Sc2Api.RequestAvailableMaps.Builder.class); } // Construct using SC2APIProtocol.Sc2Api.RequestAvailableMaps.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_RequestAvailableMaps_descriptor; } @java.lang.Override public SC2APIProtocol.Sc2Api.RequestAvailableMaps getDefaultInstanceForType() { return SC2APIProtocol.Sc2Api.RequestAvailableMaps.getDefaultInstance(); } @java.lang.Override public SC2APIProtocol.Sc2Api.RequestAvailableMaps build() { SC2APIProtocol.Sc2Api.RequestAvailableMaps result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public SC2APIProtocol.Sc2Api.RequestAvailableMaps buildPartial() { SC2APIProtocol.Sc2Api.RequestAvailableMaps result = new SC2APIProtocol.Sc2Api.RequestAvailableMaps(this); 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.Sc2Api.RequestAvailableMaps) { return mergeFrom((SC2APIProtocol.Sc2Api.RequestAvailableMaps)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(SC2APIProtocol.Sc2Api.RequestAvailableMaps other) { if (other == SC2APIProtocol.Sc2Api.RequestAvailableMaps.getDefaultInstance()) return this; 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; 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; } @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.RequestAvailableMaps) } // @@protoc_insertion_point(class_scope:SC2APIProtocol.RequestAvailableMaps) private static final SC2APIProtocol.Sc2Api.RequestAvailableMaps DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new SC2APIProtocol.Sc2Api.RequestAvailableMaps(); } public static SC2APIProtocol.Sc2Api.RequestAvailableMaps getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public RequestAvailableMaps 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.Sc2Api.RequestAvailableMaps getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ResponseAvailableMapsOrBuilder extends // @@protoc_insertion_point(interface_extends:SC2APIProtocol.ResponseAvailableMaps) com.google.protobuf.MessageOrBuilder { /** *
     * All the maps in the "Maps/" directory.
     * 
* * repeated string local_map_paths = 1; * @return A list containing the localMapPaths. */ java.util.List getLocalMapPathsList(); /** *
     * All the maps in the "Maps/" directory.
     * 
* * repeated string local_map_paths = 1; * @return The count of localMapPaths. */ int getLocalMapPathsCount(); /** *
     * All the maps in the "Maps/" directory.
     * 
* * repeated string local_map_paths = 1; * @param index The index of the element to return. * @return The localMapPaths at the given index. */ java.lang.String getLocalMapPaths(int index); /** *
     * All the maps in the "Maps/" directory.
     * 
* * repeated string local_map_paths = 1; * @param index The index of the value to return. * @return The bytes of the localMapPaths at the given index. */ com.google.protobuf.ByteString getLocalMapPathsBytes(int index); /** *
     * All the maps in the BattleNet cache.
     * 
* * repeated string battlenet_map_names = 2; * @return A list containing the battlenetMapNames. */ java.util.List getBattlenetMapNamesList(); /** *
     * All the maps in the BattleNet cache.
     * 
* * repeated string battlenet_map_names = 2; * @return The count of battlenetMapNames. */ int getBattlenetMapNamesCount(); /** *
     * All the maps in the BattleNet cache.
     * 
* * repeated string battlenet_map_names = 2; * @param index The index of the element to return. * @return The battlenetMapNames at the given index. */ java.lang.String getBattlenetMapNames(int index); /** *
     * All the maps in the BattleNet cache.
     * 
* * repeated string battlenet_map_names = 2; * @param index The index of the value to return. * @return The bytes of the battlenetMapNames at the given index. */ com.google.protobuf.ByteString getBattlenetMapNamesBytes(int index); } /** *
   * This will only contain locally cached BattleNet maps.
   * To download all ladder maps, log in and queue into a ladder match.
   * To download any other map, play a custom game on that map.
   * 
* * Protobuf type {@code SC2APIProtocol.ResponseAvailableMaps} */ public static final class ResponseAvailableMaps extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:SC2APIProtocol.ResponseAvailableMaps) ResponseAvailableMapsOrBuilder { private static final long serialVersionUID = 0L; // Use ResponseAvailableMaps.newBuilder() to construct. private ResponseAvailableMaps(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ResponseAvailableMaps() { localMapPaths_ = com.google.protobuf.LazyStringArrayList.EMPTY; battlenetMapNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ResponseAvailableMaps(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_ResponseAvailableMaps_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_ResponseAvailableMaps_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Sc2Api.ResponseAvailableMaps.class, SC2APIProtocol.Sc2Api.ResponseAvailableMaps.Builder.class); } public static final int LOCAL_MAP_PATHS_FIELD_NUMBER = 1; private com.google.protobuf.LazyStringList localMapPaths_; /** *
     * All the maps in the "Maps/" directory.
     * 
* * repeated string local_map_paths = 1; * @return A list containing the localMapPaths. */ public com.google.protobuf.ProtocolStringList getLocalMapPathsList() { return localMapPaths_; } /** *
     * All the maps in the "Maps/" directory.
     * 
* * repeated string local_map_paths = 1; * @return The count of localMapPaths. */ public int getLocalMapPathsCount() { return localMapPaths_.size(); } /** *
     * All the maps in the "Maps/" directory.
     * 
* * repeated string local_map_paths = 1; * @param index The index of the element to return. * @return The localMapPaths at the given index. */ public java.lang.String getLocalMapPaths(int index) { return localMapPaths_.get(index); } /** *
     * All the maps in the "Maps/" directory.
     * 
* * repeated string local_map_paths = 1; * @param index The index of the value to return. * @return The bytes of the localMapPaths at the given index. */ public com.google.protobuf.ByteString getLocalMapPathsBytes(int index) { return localMapPaths_.getByteString(index); } public static final int BATTLENET_MAP_NAMES_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList battlenetMapNames_; /** *
     * All the maps in the BattleNet cache.
     * 
* * repeated string battlenet_map_names = 2; * @return A list containing the battlenetMapNames. */ public com.google.protobuf.ProtocolStringList getBattlenetMapNamesList() { return battlenetMapNames_; } /** *
     * All the maps in the BattleNet cache.
     * 
* * repeated string battlenet_map_names = 2; * @return The count of battlenetMapNames. */ public int getBattlenetMapNamesCount() { return battlenetMapNames_.size(); } /** *
     * All the maps in the BattleNet cache.
     * 
* * repeated string battlenet_map_names = 2; * @param index The index of the element to return. * @return The battlenetMapNames at the given index. */ public java.lang.String getBattlenetMapNames(int index) { return battlenetMapNames_.get(index); } /** *
     * All the maps in the BattleNet cache.
     * 
* * repeated string battlenet_map_names = 2; * @param index The index of the value to return. * @return The bytes of the battlenetMapNames at the given index. */ public com.google.protobuf.ByteString getBattlenetMapNamesBytes(int index) { return battlenetMapNames_.getByteString(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 < localMapPaths_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, localMapPaths_.getRaw(i)); } for (int i = 0; i < battlenetMapNames_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, battlenetMapNames_.getRaw(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 < localMapPaths_.size(); i++) { dataSize += computeStringSizeNoTag(localMapPaths_.getRaw(i)); } size += dataSize; size += 1 * getLocalMapPathsList().size(); } { int dataSize = 0; for (int i = 0; i < battlenetMapNames_.size(); i++) { dataSize += computeStringSizeNoTag(battlenetMapNames_.getRaw(i)); } size += dataSize; size += 1 * getBattlenetMapNamesList().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.Sc2Api.ResponseAvailableMaps)) { return super.equals(obj); } SC2APIProtocol.Sc2Api.ResponseAvailableMaps other = (SC2APIProtocol.Sc2Api.ResponseAvailableMaps) obj; if (!getLocalMapPathsList() .equals(other.getLocalMapPathsList())) return false; if (!getBattlenetMapNamesList() .equals(other.getBattlenetMapNamesList())) 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 (getLocalMapPathsCount() > 0) { hash = (37 * hash) + LOCAL_MAP_PATHS_FIELD_NUMBER; hash = (53 * hash) + getLocalMapPathsList().hashCode(); } if (getBattlenetMapNamesCount() > 0) { hash = (37 * hash) + BATTLENET_MAP_NAMES_FIELD_NUMBER; hash = (53 * hash) + getBattlenetMapNamesList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static SC2APIProtocol.Sc2Api.ResponseAvailableMaps parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.ResponseAvailableMaps parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.ResponseAvailableMaps parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.ResponseAvailableMaps parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.ResponseAvailableMaps parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.ResponseAvailableMaps parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.ResponseAvailableMaps parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.ResponseAvailableMaps 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.Sc2Api.ResponseAvailableMaps parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.ResponseAvailableMaps 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.Sc2Api.ResponseAvailableMaps parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.ResponseAvailableMaps 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.Sc2Api.ResponseAvailableMaps 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; } /** *
     * This will only contain locally cached BattleNet maps.
     * To download all ladder maps, log in and queue into a ladder match.
     * To download any other map, play a custom game on that map.
     * 
* * Protobuf type {@code SC2APIProtocol.ResponseAvailableMaps} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:SC2APIProtocol.ResponseAvailableMaps) SC2APIProtocol.Sc2Api.ResponseAvailableMapsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_ResponseAvailableMaps_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_ResponseAvailableMaps_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Sc2Api.ResponseAvailableMaps.class, SC2APIProtocol.Sc2Api.ResponseAvailableMaps.Builder.class); } // Construct using SC2APIProtocol.Sc2Api.ResponseAvailableMaps.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); localMapPaths_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); battlenetMapNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_ResponseAvailableMaps_descriptor; } @java.lang.Override public SC2APIProtocol.Sc2Api.ResponseAvailableMaps getDefaultInstanceForType() { return SC2APIProtocol.Sc2Api.ResponseAvailableMaps.getDefaultInstance(); } @java.lang.Override public SC2APIProtocol.Sc2Api.ResponseAvailableMaps build() { SC2APIProtocol.Sc2Api.ResponseAvailableMaps result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public SC2APIProtocol.Sc2Api.ResponseAvailableMaps buildPartial() { SC2APIProtocol.Sc2Api.ResponseAvailableMaps result = new SC2APIProtocol.Sc2Api.ResponseAvailableMaps(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { localMapPaths_ = localMapPaths_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.localMapPaths_ = localMapPaths_; if (((bitField0_ & 0x00000002) != 0)) { battlenetMapNames_ = battlenetMapNames_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000002); } result.battlenetMapNames_ = battlenetMapNames_; 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.Sc2Api.ResponseAvailableMaps) { return mergeFrom((SC2APIProtocol.Sc2Api.ResponseAvailableMaps)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(SC2APIProtocol.Sc2Api.ResponseAvailableMaps other) { if (other == SC2APIProtocol.Sc2Api.ResponseAvailableMaps.getDefaultInstance()) return this; if (!other.localMapPaths_.isEmpty()) { if (localMapPaths_.isEmpty()) { localMapPaths_ = other.localMapPaths_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureLocalMapPathsIsMutable(); localMapPaths_.addAll(other.localMapPaths_); } onChanged(); } if (!other.battlenetMapNames_.isEmpty()) { if (battlenetMapNames_.isEmpty()) { battlenetMapNames_ = other.battlenetMapNames_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureBattlenetMapNamesIsMutable(); battlenetMapNames_.addAll(other.battlenetMapNames_); } 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 10: { com.google.protobuf.ByteString bs = input.readBytes(); ensureLocalMapPathsIsMutable(); localMapPaths_.add(bs); break; } // case 10 case 18: { com.google.protobuf.ByteString bs = input.readBytes(); ensureBattlenetMapNamesIsMutable(); battlenetMapNames_.add(bs); 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 com.google.protobuf.LazyStringList localMapPaths_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureLocalMapPathsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { localMapPaths_ = new com.google.protobuf.LazyStringArrayList(localMapPaths_); bitField0_ |= 0x00000001; } } /** *
       * All the maps in the "Maps/" directory.
       * 
* * repeated string local_map_paths = 1; * @return A list containing the localMapPaths. */ public com.google.protobuf.ProtocolStringList getLocalMapPathsList() { return localMapPaths_.getUnmodifiableView(); } /** *
       * All the maps in the "Maps/" directory.
       * 
* * repeated string local_map_paths = 1; * @return The count of localMapPaths. */ public int getLocalMapPathsCount() { return localMapPaths_.size(); } /** *
       * All the maps in the "Maps/" directory.
       * 
* * repeated string local_map_paths = 1; * @param index The index of the element to return. * @return The localMapPaths at the given index. */ public java.lang.String getLocalMapPaths(int index) { return localMapPaths_.get(index); } /** *
       * All the maps in the "Maps/" directory.
       * 
* * repeated string local_map_paths = 1; * @param index The index of the value to return. * @return The bytes of the localMapPaths at the given index. */ public com.google.protobuf.ByteString getLocalMapPathsBytes(int index) { return localMapPaths_.getByteString(index); } /** *
       * All the maps in the "Maps/" directory.
       * 
* * repeated string local_map_paths = 1; * @param index The index to set the value at. * @param value The localMapPaths to set. * @return This builder for chaining. */ public Builder setLocalMapPaths( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureLocalMapPathsIsMutable(); localMapPaths_.set(index, value); onChanged(); return this; } /** *
       * All the maps in the "Maps/" directory.
       * 
* * repeated string local_map_paths = 1; * @param value The localMapPaths to add. * @return This builder for chaining. */ public Builder addLocalMapPaths( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureLocalMapPathsIsMutable(); localMapPaths_.add(value); onChanged(); return this; } /** *
       * All the maps in the "Maps/" directory.
       * 
* * repeated string local_map_paths = 1; * @param values The localMapPaths to add. * @return This builder for chaining. */ public Builder addAllLocalMapPaths( java.lang.Iterable values) { ensureLocalMapPathsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, localMapPaths_); onChanged(); return this; } /** *
       * All the maps in the "Maps/" directory.
       * 
* * repeated string local_map_paths = 1; * @return This builder for chaining. */ public Builder clearLocalMapPaths() { localMapPaths_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
       * All the maps in the "Maps/" directory.
       * 
* * repeated string local_map_paths = 1; * @param value The bytes of the localMapPaths to add. * @return This builder for chaining. */ public Builder addLocalMapPathsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureLocalMapPathsIsMutable(); localMapPaths_.add(value); onChanged(); return this; } private com.google.protobuf.LazyStringList battlenetMapNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureBattlenetMapNamesIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { battlenetMapNames_ = new com.google.protobuf.LazyStringArrayList(battlenetMapNames_); bitField0_ |= 0x00000002; } } /** *
       * All the maps in the BattleNet cache.
       * 
* * repeated string battlenet_map_names = 2; * @return A list containing the battlenetMapNames. */ public com.google.protobuf.ProtocolStringList getBattlenetMapNamesList() { return battlenetMapNames_.getUnmodifiableView(); } /** *
       * All the maps in the BattleNet cache.
       * 
* * repeated string battlenet_map_names = 2; * @return The count of battlenetMapNames. */ public int getBattlenetMapNamesCount() { return battlenetMapNames_.size(); } /** *
       * All the maps in the BattleNet cache.
       * 
* * repeated string battlenet_map_names = 2; * @param index The index of the element to return. * @return The battlenetMapNames at the given index. */ public java.lang.String getBattlenetMapNames(int index) { return battlenetMapNames_.get(index); } /** *
       * All the maps in the BattleNet cache.
       * 
* * repeated string battlenet_map_names = 2; * @param index The index of the value to return. * @return The bytes of the battlenetMapNames at the given index. */ public com.google.protobuf.ByteString getBattlenetMapNamesBytes(int index) { return battlenetMapNames_.getByteString(index); } /** *
       * All the maps in the BattleNet cache.
       * 
* * repeated string battlenet_map_names = 2; * @param index The index to set the value at. * @param value The battlenetMapNames to set. * @return This builder for chaining. */ public Builder setBattlenetMapNames( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureBattlenetMapNamesIsMutable(); battlenetMapNames_.set(index, value); onChanged(); return this; } /** *
       * All the maps in the BattleNet cache.
       * 
* * repeated string battlenet_map_names = 2; * @param value The battlenetMapNames to add. * @return This builder for chaining. */ public Builder addBattlenetMapNames( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureBattlenetMapNamesIsMutable(); battlenetMapNames_.add(value); onChanged(); return this; } /** *
       * All the maps in the BattleNet cache.
       * 
* * repeated string battlenet_map_names = 2; * @param values The battlenetMapNames to add. * @return This builder for chaining. */ public Builder addAllBattlenetMapNames( java.lang.Iterable values) { ensureBattlenetMapNamesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, battlenetMapNames_); onChanged(); return this; } /** *
       * All the maps in the BattleNet cache.
       * 
* * repeated string battlenet_map_names = 2; * @return This builder for chaining. */ public Builder clearBattlenetMapNames() { battlenetMapNames_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
       * All the maps in the BattleNet cache.
       * 
* * repeated string battlenet_map_names = 2; * @param value The bytes of the battlenetMapNames to add. * @return This builder for chaining. */ public Builder addBattlenetMapNamesBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureBattlenetMapNamesIsMutable(); battlenetMapNames_.add(value); 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.ResponseAvailableMaps) } // @@protoc_insertion_point(class_scope:SC2APIProtocol.ResponseAvailableMaps) private static final SC2APIProtocol.Sc2Api.ResponseAvailableMaps DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new SC2APIProtocol.Sc2Api.ResponseAvailableMaps(); } public static SC2APIProtocol.Sc2Api.ResponseAvailableMaps getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ResponseAvailableMaps 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.Sc2Api.ResponseAvailableMaps getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RequestSaveMapOrBuilder extends // @@protoc_insertion_point(interface_extends:SC2APIProtocol.RequestSaveMap) com.google.protobuf.MessageOrBuilder { /** *
     * Path the game process will write to, relative to the temp directory. (260 character max)
     * 
* * optional string map_path = 1; * @return Whether the mapPath field is set. */ boolean hasMapPath(); /** *
     * Path the game process will write to, relative to the temp directory. (260 character max)
     * 
* * optional string map_path = 1; * @return The mapPath. */ java.lang.String getMapPath(); /** *
     * Path the game process will write to, relative to the temp directory. (260 character max)
     * 
* * optional string map_path = 1; * @return The bytes for mapPath. */ com.google.protobuf.ByteString getMapPathBytes(); /** *
     * Binary map data of a .SC2Map.
     * 
* * optional bytes map_data = 2; * @return Whether the mapData field is set. */ boolean hasMapData(); /** *
     * Binary map data of a .SC2Map.
     * 
* * optional bytes map_data = 2; * @return The mapData. */ com.google.protobuf.ByteString getMapData(); } /** *
   *-----------------------------------------------------------------------------
   * Copies map data into the path specified.
   * 
* * Protobuf type {@code SC2APIProtocol.RequestSaveMap} */ public static final class RequestSaveMap extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:SC2APIProtocol.RequestSaveMap) RequestSaveMapOrBuilder { private static final long serialVersionUID = 0L; // Use RequestSaveMap.newBuilder() to construct. private RequestSaveMap(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RequestSaveMap() { mapPath_ = ""; mapData_ = com.google.protobuf.ByteString.EMPTY; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new RequestSaveMap(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_RequestSaveMap_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_RequestSaveMap_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Sc2Api.RequestSaveMap.class, SC2APIProtocol.Sc2Api.RequestSaveMap.Builder.class); } private int bitField0_; public static final int MAP_PATH_FIELD_NUMBER = 1; private volatile java.lang.Object mapPath_; /** *
     * Path the game process will write to, relative to the temp directory. (260 character max)
     * 
* * optional string map_path = 1; * @return Whether the mapPath field is set. */ @java.lang.Override public boolean hasMapPath() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * Path the game process will write to, relative to the temp directory. (260 character max)
     * 
* * optional string map_path = 1; * @return The mapPath. */ @java.lang.Override public java.lang.String getMapPath() { java.lang.Object ref = mapPath_; 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()) { mapPath_ = s; } return s; } } /** *
     * Path the game process will write to, relative to the temp directory. (260 character max)
     * 
* * optional string map_path = 1; * @return The bytes for mapPath. */ @java.lang.Override public com.google.protobuf.ByteString getMapPathBytes() { java.lang.Object ref = mapPath_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); mapPath_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int MAP_DATA_FIELD_NUMBER = 2; private com.google.protobuf.ByteString mapData_; /** *
     * Binary map data of a .SC2Map.
     * 
* * optional bytes map_data = 2; * @return Whether the mapData field is set. */ @java.lang.Override public boolean hasMapData() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * Binary map data of a .SC2Map.
     * 
* * optional bytes map_data = 2; * @return The mapData. */ @java.lang.Override public com.google.protobuf.ByteString getMapData() { return mapData_; } 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)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, mapPath_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeBytes(2, mapData_); } 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.GeneratedMessageV3.computeStringSize(1, mapPath_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBytesSize(2, mapData_); } 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.Sc2Api.RequestSaveMap)) { return super.equals(obj); } SC2APIProtocol.Sc2Api.RequestSaveMap other = (SC2APIProtocol.Sc2Api.RequestSaveMap) obj; if (hasMapPath() != other.hasMapPath()) return false; if (hasMapPath()) { if (!getMapPath() .equals(other.getMapPath())) return false; } if (hasMapData() != other.hasMapData()) return false; if (hasMapData()) { if (!getMapData() .equals(other.getMapData())) 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 (hasMapPath()) { hash = (37 * hash) + MAP_PATH_FIELD_NUMBER; hash = (53 * hash) + getMapPath().hashCode(); } if (hasMapData()) { hash = (37 * hash) + MAP_DATA_FIELD_NUMBER; hash = (53 * hash) + getMapData().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static SC2APIProtocol.Sc2Api.RequestSaveMap parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.RequestSaveMap parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.RequestSaveMap parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.RequestSaveMap parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.RequestSaveMap parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.RequestSaveMap parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.RequestSaveMap parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.RequestSaveMap 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.Sc2Api.RequestSaveMap parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.RequestSaveMap 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.Sc2Api.RequestSaveMap parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.RequestSaveMap 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.Sc2Api.RequestSaveMap 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; } /** *
     *-----------------------------------------------------------------------------
     * Copies map data into the path specified.
     * 
* * Protobuf type {@code SC2APIProtocol.RequestSaveMap} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:SC2APIProtocol.RequestSaveMap) SC2APIProtocol.Sc2Api.RequestSaveMapOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_RequestSaveMap_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_RequestSaveMap_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Sc2Api.RequestSaveMap.class, SC2APIProtocol.Sc2Api.RequestSaveMap.Builder.class); } // Construct using SC2APIProtocol.Sc2Api.RequestSaveMap.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); mapPath_ = ""; bitField0_ = (bitField0_ & ~0x00000001); mapData_ = com.google.protobuf.ByteString.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_RequestSaveMap_descriptor; } @java.lang.Override public SC2APIProtocol.Sc2Api.RequestSaveMap getDefaultInstanceForType() { return SC2APIProtocol.Sc2Api.RequestSaveMap.getDefaultInstance(); } @java.lang.Override public SC2APIProtocol.Sc2Api.RequestSaveMap build() { SC2APIProtocol.Sc2Api.RequestSaveMap result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public SC2APIProtocol.Sc2Api.RequestSaveMap buildPartial() { SC2APIProtocol.Sc2Api.RequestSaveMap result = new SC2APIProtocol.Sc2Api.RequestSaveMap(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { to_bitField0_ |= 0x00000001; } result.mapPath_ = mapPath_; if (((from_bitField0_ & 0x00000002) != 0)) { to_bitField0_ |= 0x00000002; } result.mapData_ = mapData_; 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.Sc2Api.RequestSaveMap) { return mergeFrom((SC2APIProtocol.Sc2Api.RequestSaveMap)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(SC2APIProtocol.Sc2Api.RequestSaveMap other) { if (other == SC2APIProtocol.Sc2Api.RequestSaveMap.getDefaultInstance()) return this; if (other.hasMapPath()) { bitField0_ |= 0x00000001; mapPath_ = other.mapPath_; onChanged(); } if (other.hasMapData()) { setMapData(other.getMapData()); } 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: { mapPath_ = input.readBytes(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { mapData_ = input.readBytes(); 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 java.lang.Object mapPath_ = ""; /** *
       * Path the game process will write to, relative to the temp directory. (260 character max)
       * 
* * optional string map_path = 1; * @return Whether the mapPath field is set. */ public boolean hasMapPath() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * Path the game process will write to, relative to the temp directory. (260 character max)
       * 
* * optional string map_path = 1; * @return The mapPath. */ public java.lang.String getMapPath() { java.lang.Object ref = mapPath_; 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()) { mapPath_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
       * Path the game process will write to, relative to the temp directory. (260 character max)
       * 
* * optional string map_path = 1; * @return The bytes for mapPath. */ public com.google.protobuf.ByteString getMapPathBytes() { java.lang.Object ref = mapPath_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); mapPath_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Path the game process will write to, relative to the temp directory. (260 character max)
       * 
* * optional string map_path = 1; * @param value The mapPath to set. * @return This builder for chaining. */ public Builder setMapPath( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; mapPath_ = value; onChanged(); return this; } /** *
       * Path the game process will write to, relative to the temp directory. (260 character max)
       * 
* * optional string map_path = 1; * @return This builder for chaining. */ public Builder clearMapPath() { bitField0_ = (bitField0_ & ~0x00000001); mapPath_ = getDefaultInstance().getMapPath(); onChanged(); return this; } /** *
       * Path the game process will write to, relative to the temp directory. (260 character max)
       * 
* * optional string map_path = 1; * @param value The bytes for mapPath to set. * @return This builder for chaining. */ public Builder setMapPathBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; mapPath_ = value; onChanged(); return this; } private com.google.protobuf.ByteString mapData_ = com.google.protobuf.ByteString.EMPTY; /** *
       * Binary map data of a .SC2Map.
       * 
* * optional bytes map_data = 2; * @return Whether the mapData field is set. */ @java.lang.Override public boolean hasMapData() { return ((bitField0_ & 0x00000002) != 0); } /** *
       * Binary map data of a .SC2Map.
       * 
* * optional bytes map_data = 2; * @return The mapData. */ @java.lang.Override public com.google.protobuf.ByteString getMapData() { return mapData_; } /** *
       * Binary map data of a .SC2Map.
       * 
* * optional bytes map_data = 2; * @param value The mapData to set. * @return This builder for chaining. */ public Builder setMapData(com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; mapData_ = value; onChanged(); return this; } /** *
       * Binary map data of a .SC2Map.
       * 
* * optional bytes map_data = 2; * @return This builder for chaining. */ public Builder clearMapData() { bitField0_ = (bitField0_ & ~0x00000002); mapData_ = getDefaultInstance().getMapData(); 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.RequestSaveMap) } // @@protoc_insertion_point(class_scope:SC2APIProtocol.RequestSaveMap) private static final SC2APIProtocol.Sc2Api.RequestSaveMap DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new SC2APIProtocol.Sc2Api.RequestSaveMap(); } public static SC2APIProtocol.Sc2Api.RequestSaveMap getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public RequestSaveMap 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.Sc2Api.RequestSaveMap getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ResponseSaveMapOrBuilder extends // @@protoc_insertion_point(interface_extends:SC2APIProtocol.ResponseSaveMap) com.google.protobuf.MessageOrBuilder { /** * optional .SC2APIProtocol.ResponseSaveMap.Error error = 1; * @return Whether the error field is set. */ boolean hasError(); /** * optional .SC2APIProtocol.ResponseSaveMap.Error error = 1; * @return The error. */ SC2APIProtocol.Sc2Api.ResponseSaveMap.Error getError(); } /** * Protobuf type {@code SC2APIProtocol.ResponseSaveMap} */ public static final class ResponseSaveMap extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:SC2APIProtocol.ResponseSaveMap) ResponseSaveMapOrBuilder { private static final long serialVersionUID = 0L; // Use ResponseSaveMap.newBuilder() to construct. private ResponseSaveMap(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ResponseSaveMap() { error_ = 1; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ResponseSaveMap(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_ResponseSaveMap_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_ResponseSaveMap_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Sc2Api.ResponseSaveMap.class, SC2APIProtocol.Sc2Api.ResponseSaveMap.Builder.class); } /** * Protobuf enum {@code SC2APIProtocol.ResponseSaveMap.Error} */ public enum Error implements com.google.protobuf.ProtocolMessageEnum { /** * InvalidMapData = 1; */ InvalidMapData(1), ; /** * InvalidMapData = 1; */ public static final int InvalidMapData_VALUE = 1; 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 Error 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 Error forNumber(int value) { switch (value) { case 1: return InvalidMapData; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Error> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Error findValueByNumber(int number) { return Error.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.Sc2Api.ResponseSaveMap.getDescriptor().getEnumTypes().get(0); } private static final Error[] VALUES = values(); public static Error 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 Error(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:SC2APIProtocol.ResponseSaveMap.Error) } private int bitField0_; public static final int ERROR_FIELD_NUMBER = 1; private int error_; /** * optional .SC2APIProtocol.ResponseSaveMap.Error error = 1; * @return Whether the error field is set. */ @java.lang.Override public boolean hasError() { return ((bitField0_ & 0x00000001) != 0); } /** * optional .SC2APIProtocol.ResponseSaveMap.Error error = 1; * @return The error. */ @java.lang.Override public SC2APIProtocol.Sc2Api.ResponseSaveMap.Error getError() { @SuppressWarnings("deprecation") SC2APIProtocol.Sc2Api.ResponseSaveMap.Error result = SC2APIProtocol.Sc2Api.ResponseSaveMap.Error.valueOf(error_); return result == null ? SC2APIProtocol.Sc2Api.ResponseSaveMap.Error.InvalidMapData : 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, error_); } 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, error_); } 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.Sc2Api.ResponseSaveMap)) { return super.equals(obj); } SC2APIProtocol.Sc2Api.ResponseSaveMap other = (SC2APIProtocol.Sc2Api.ResponseSaveMap) obj; if (hasError() != other.hasError()) return false; if (hasError()) { if (error_ != other.error_) 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 (hasError()) { hash = (37 * hash) + ERROR_FIELD_NUMBER; hash = (53 * hash) + error_; } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static SC2APIProtocol.Sc2Api.ResponseSaveMap parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.ResponseSaveMap parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.ResponseSaveMap parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.ResponseSaveMap parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.ResponseSaveMap parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.ResponseSaveMap parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.ResponseSaveMap parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.ResponseSaveMap 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.Sc2Api.ResponseSaveMap parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.ResponseSaveMap 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.Sc2Api.ResponseSaveMap parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.ResponseSaveMap 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.Sc2Api.ResponseSaveMap 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.ResponseSaveMap} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:SC2APIProtocol.ResponseSaveMap) SC2APIProtocol.Sc2Api.ResponseSaveMapOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_ResponseSaveMap_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_ResponseSaveMap_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Sc2Api.ResponseSaveMap.class, SC2APIProtocol.Sc2Api.ResponseSaveMap.Builder.class); } // Construct using SC2APIProtocol.Sc2Api.ResponseSaveMap.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); error_ = 1; bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_ResponseSaveMap_descriptor; } @java.lang.Override public SC2APIProtocol.Sc2Api.ResponseSaveMap getDefaultInstanceForType() { return SC2APIProtocol.Sc2Api.ResponseSaveMap.getDefaultInstance(); } @java.lang.Override public SC2APIProtocol.Sc2Api.ResponseSaveMap build() { SC2APIProtocol.Sc2Api.ResponseSaveMap result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public SC2APIProtocol.Sc2Api.ResponseSaveMap buildPartial() { SC2APIProtocol.Sc2Api.ResponseSaveMap result = new SC2APIProtocol.Sc2Api.ResponseSaveMap(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { to_bitField0_ |= 0x00000001; } result.error_ = error_; 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.Sc2Api.ResponseSaveMap) { return mergeFrom((SC2APIProtocol.Sc2Api.ResponseSaveMap)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(SC2APIProtocol.Sc2Api.ResponseSaveMap other) { if (other == SC2APIProtocol.Sc2Api.ResponseSaveMap.getDefaultInstance()) return this; if (other.hasError()) { setError(other.getError()); } 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.Sc2Api.ResponseSaveMap.Error tmpValue = SC2APIProtocol.Sc2Api.ResponseSaveMap.Error.forNumber(tmpRaw); if (tmpValue == null) { mergeUnknownVarintField(1, tmpRaw); } else { error_ = 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 error_ = 1; /** * optional .SC2APIProtocol.ResponseSaveMap.Error error = 1; * @return Whether the error field is set. */ @java.lang.Override public boolean hasError() { return ((bitField0_ & 0x00000001) != 0); } /** * optional .SC2APIProtocol.ResponseSaveMap.Error error = 1; * @return The error. */ @java.lang.Override public SC2APIProtocol.Sc2Api.ResponseSaveMap.Error getError() { @SuppressWarnings("deprecation") SC2APIProtocol.Sc2Api.ResponseSaveMap.Error result = SC2APIProtocol.Sc2Api.ResponseSaveMap.Error.valueOf(error_); return result == null ? SC2APIProtocol.Sc2Api.ResponseSaveMap.Error.InvalidMapData : result; } /** * optional .SC2APIProtocol.ResponseSaveMap.Error error = 1; * @param value The error to set. * @return This builder for chaining. */ public Builder setError(SC2APIProtocol.Sc2Api.ResponseSaveMap.Error value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; error_ = value.getNumber(); onChanged(); return this; } /** * optional .SC2APIProtocol.ResponseSaveMap.Error error = 1; * @return This builder for chaining. */ public Builder clearError() { bitField0_ = (bitField0_ & ~0x00000001); error_ = 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.ResponseSaveMap) } // @@protoc_insertion_point(class_scope:SC2APIProtocol.ResponseSaveMap) private static final SC2APIProtocol.Sc2Api.ResponseSaveMap DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new SC2APIProtocol.Sc2Api.ResponseSaveMap(); } public static SC2APIProtocol.Sc2Api.ResponseSaveMap getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ResponseSaveMap 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.Sc2Api.ResponseSaveMap getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RequestPingOrBuilder extends // @@protoc_insertion_point(interface_extends:SC2APIProtocol.RequestPing) com.google.protobuf.MessageOrBuilder { } /** *
   *-----------------------------------------------------------------------------
   * 
* * Protobuf type {@code SC2APIProtocol.RequestPing} */ public static final class RequestPing extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:SC2APIProtocol.RequestPing) RequestPingOrBuilder { private static final long serialVersionUID = 0L; // Use RequestPing.newBuilder() to construct. private RequestPing(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RequestPing() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new RequestPing(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_RequestPing_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_RequestPing_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Sc2Api.RequestPing.class, SC2APIProtocol.Sc2Api.RequestPing.Builder.class); } 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 { getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; 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.Sc2Api.RequestPing)) { return super.equals(obj); } SC2APIProtocol.Sc2Api.RequestPing other = (SC2APIProtocol.Sc2Api.RequestPing) obj; 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(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static SC2APIProtocol.Sc2Api.RequestPing parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.RequestPing parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.RequestPing parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.RequestPing parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.RequestPing parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.RequestPing parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.RequestPing parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.RequestPing 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.Sc2Api.RequestPing parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.RequestPing 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.Sc2Api.RequestPing parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.RequestPing 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.Sc2Api.RequestPing 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.RequestPing} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:SC2APIProtocol.RequestPing) SC2APIProtocol.Sc2Api.RequestPingOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_RequestPing_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_RequestPing_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Sc2Api.RequestPing.class, SC2APIProtocol.Sc2Api.RequestPing.Builder.class); } // Construct using SC2APIProtocol.Sc2Api.RequestPing.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_RequestPing_descriptor; } @java.lang.Override public SC2APIProtocol.Sc2Api.RequestPing getDefaultInstanceForType() { return SC2APIProtocol.Sc2Api.RequestPing.getDefaultInstance(); } @java.lang.Override public SC2APIProtocol.Sc2Api.RequestPing build() { SC2APIProtocol.Sc2Api.RequestPing result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public SC2APIProtocol.Sc2Api.RequestPing buildPartial() { SC2APIProtocol.Sc2Api.RequestPing result = new SC2APIProtocol.Sc2Api.RequestPing(this); 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.Sc2Api.RequestPing) { return mergeFrom((SC2APIProtocol.Sc2Api.RequestPing)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(SC2APIProtocol.Sc2Api.RequestPing other) { if (other == SC2APIProtocol.Sc2Api.RequestPing.getDefaultInstance()) return this; 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; 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; } @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.RequestPing) } // @@protoc_insertion_point(class_scope:SC2APIProtocol.RequestPing) private static final SC2APIProtocol.Sc2Api.RequestPing DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new SC2APIProtocol.Sc2Api.RequestPing(); } public static SC2APIProtocol.Sc2Api.RequestPing getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public RequestPing 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.Sc2Api.RequestPing getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ResponsePingOrBuilder extends // @@protoc_insertion_point(interface_extends:SC2APIProtocol.ResponsePing) com.google.protobuf.MessageOrBuilder { /** * optional string game_version = 1; * @return Whether the gameVersion field is set. */ boolean hasGameVersion(); /** * optional string game_version = 1; * @return The gameVersion. */ java.lang.String getGameVersion(); /** * optional string game_version = 1; * @return The bytes for gameVersion. */ com.google.protobuf.ByteString getGameVersionBytes(); /** * optional string data_version = 2; * @return Whether the dataVersion field is set. */ boolean hasDataVersion(); /** * optional string data_version = 2; * @return The dataVersion. */ java.lang.String getDataVersion(); /** * optional string data_version = 2; * @return The bytes for dataVersion. */ com.google.protobuf.ByteString getDataVersionBytes(); /** * optional uint32 data_build = 3; * @return Whether the dataBuild field is set. */ boolean hasDataBuild(); /** * optional uint32 data_build = 3; * @return The dataBuild. */ int getDataBuild(); /** * optional uint32 base_build = 4; * @return Whether the baseBuild field is set. */ boolean hasBaseBuild(); /** * optional uint32 base_build = 4; * @return The baseBuild. */ int getBaseBuild(); } /** * Protobuf type {@code SC2APIProtocol.ResponsePing} */ public static final class ResponsePing extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:SC2APIProtocol.ResponsePing) ResponsePingOrBuilder { private static final long serialVersionUID = 0L; // Use ResponsePing.newBuilder() to construct. private ResponsePing(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ResponsePing() { gameVersion_ = ""; dataVersion_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ResponsePing(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_ResponsePing_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_ResponsePing_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Sc2Api.ResponsePing.class, SC2APIProtocol.Sc2Api.ResponsePing.Builder.class); } private int bitField0_; public static final int GAME_VERSION_FIELD_NUMBER = 1; private volatile java.lang.Object gameVersion_; /** * optional string game_version = 1; * @return Whether the gameVersion field is set. */ @java.lang.Override public boolean hasGameVersion() { return ((bitField0_ & 0x00000001) != 0); } /** * optional string game_version = 1; * @return The gameVersion. */ @java.lang.Override public java.lang.String getGameVersion() { java.lang.Object ref = gameVersion_; 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()) { gameVersion_ = s; } return s; } } /** * optional string game_version = 1; * @return The bytes for gameVersion. */ @java.lang.Override public com.google.protobuf.ByteString getGameVersionBytes() { java.lang.Object ref = gameVersion_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); gameVersion_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DATA_VERSION_FIELD_NUMBER = 2; private volatile java.lang.Object dataVersion_; /** * optional string data_version = 2; * @return Whether the dataVersion field is set. */ @java.lang.Override public boolean hasDataVersion() { return ((bitField0_ & 0x00000002) != 0); } /** * optional string data_version = 2; * @return The dataVersion. */ @java.lang.Override public java.lang.String getDataVersion() { java.lang.Object ref = dataVersion_; 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()) { dataVersion_ = s; } return s; } } /** * optional string data_version = 2; * @return The bytes for dataVersion. */ @java.lang.Override public com.google.protobuf.ByteString getDataVersionBytes() { java.lang.Object ref = dataVersion_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); dataVersion_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int DATA_BUILD_FIELD_NUMBER = 3; private int dataBuild_; /** * optional uint32 data_build = 3; * @return Whether the dataBuild field is set. */ @java.lang.Override public boolean hasDataBuild() { return ((bitField0_ & 0x00000004) != 0); } /** * optional uint32 data_build = 3; * @return The dataBuild. */ @java.lang.Override public int getDataBuild() { return dataBuild_; } public static final int BASE_BUILD_FIELD_NUMBER = 4; private int baseBuild_; /** * optional uint32 base_build = 4; * @return Whether the baseBuild field is set. */ @java.lang.Override public boolean hasBaseBuild() { return ((bitField0_ & 0x00000008) != 0); } /** * optional uint32 base_build = 4; * @return The baseBuild. */ @java.lang.Override public int getBaseBuild() { return baseBuild_; } 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)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, gameVersion_); } if (((bitField0_ & 0x00000002) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, dataVersion_); } if (((bitField0_ & 0x00000004) != 0)) { output.writeUInt32(3, dataBuild_); } if (((bitField0_ & 0x00000008) != 0)) { output.writeUInt32(4, baseBuild_); } 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.GeneratedMessageV3.computeStringSize(1, gameVersion_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, dataVersion_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(3, dataBuild_); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(4, baseBuild_); } 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.Sc2Api.ResponsePing)) { return super.equals(obj); } SC2APIProtocol.Sc2Api.ResponsePing other = (SC2APIProtocol.Sc2Api.ResponsePing) obj; if (hasGameVersion() != other.hasGameVersion()) return false; if (hasGameVersion()) { if (!getGameVersion() .equals(other.getGameVersion())) return false; } if (hasDataVersion() != other.hasDataVersion()) return false; if (hasDataVersion()) { if (!getDataVersion() .equals(other.getDataVersion())) return false; } if (hasDataBuild() != other.hasDataBuild()) return false; if (hasDataBuild()) { if (getDataBuild() != other.getDataBuild()) return false; } if (hasBaseBuild() != other.hasBaseBuild()) return false; if (hasBaseBuild()) { if (getBaseBuild() != other.getBaseBuild()) 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 (hasGameVersion()) { hash = (37 * hash) + GAME_VERSION_FIELD_NUMBER; hash = (53 * hash) + getGameVersion().hashCode(); } if (hasDataVersion()) { hash = (37 * hash) + DATA_VERSION_FIELD_NUMBER; hash = (53 * hash) + getDataVersion().hashCode(); } if (hasDataBuild()) { hash = (37 * hash) + DATA_BUILD_FIELD_NUMBER; hash = (53 * hash) + getDataBuild(); } if (hasBaseBuild()) { hash = (37 * hash) + BASE_BUILD_FIELD_NUMBER; hash = (53 * hash) + getBaseBuild(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static SC2APIProtocol.Sc2Api.ResponsePing parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.ResponsePing parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.ResponsePing parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.ResponsePing parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.ResponsePing parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.ResponsePing parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.ResponsePing parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.ResponsePing 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.Sc2Api.ResponsePing parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.ResponsePing 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.Sc2Api.ResponsePing parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.ResponsePing 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.Sc2Api.ResponsePing 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.ResponsePing} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:SC2APIProtocol.ResponsePing) SC2APIProtocol.Sc2Api.ResponsePingOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_ResponsePing_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_ResponsePing_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Sc2Api.ResponsePing.class, SC2APIProtocol.Sc2Api.ResponsePing.Builder.class); } // Construct using SC2APIProtocol.Sc2Api.ResponsePing.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); gameVersion_ = ""; bitField0_ = (bitField0_ & ~0x00000001); dataVersion_ = ""; bitField0_ = (bitField0_ & ~0x00000002); dataBuild_ = 0; bitField0_ = (bitField0_ & ~0x00000004); baseBuild_ = 0; bitField0_ = (bitField0_ & ~0x00000008); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_ResponsePing_descriptor; } @java.lang.Override public SC2APIProtocol.Sc2Api.ResponsePing getDefaultInstanceForType() { return SC2APIProtocol.Sc2Api.ResponsePing.getDefaultInstance(); } @java.lang.Override public SC2APIProtocol.Sc2Api.ResponsePing build() { SC2APIProtocol.Sc2Api.ResponsePing result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public SC2APIProtocol.Sc2Api.ResponsePing buildPartial() { SC2APIProtocol.Sc2Api.ResponsePing result = new SC2APIProtocol.Sc2Api.ResponsePing(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { to_bitField0_ |= 0x00000001; } result.gameVersion_ = gameVersion_; if (((from_bitField0_ & 0x00000002) != 0)) { to_bitField0_ |= 0x00000002; } result.dataVersion_ = dataVersion_; if (((from_bitField0_ & 0x00000004) != 0)) { result.dataBuild_ = dataBuild_; to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000008) != 0)) { result.baseBuild_ = baseBuild_; 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.Sc2Api.ResponsePing) { return mergeFrom((SC2APIProtocol.Sc2Api.ResponsePing)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(SC2APIProtocol.Sc2Api.ResponsePing other) { if (other == SC2APIProtocol.Sc2Api.ResponsePing.getDefaultInstance()) return this; if (other.hasGameVersion()) { bitField0_ |= 0x00000001; gameVersion_ = other.gameVersion_; onChanged(); } if (other.hasDataVersion()) { bitField0_ |= 0x00000002; dataVersion_ = other.dataVersion_; onChanged(); } if (other.hasDataBuild()) { setDataBuild(other.getDataBuild()); } if (other.hasBaseBuild()) { setBaseBuild(other.getBaseBuild()); } 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: { gameVersion_ = input.readBytes(); bitField0_ |= 0x00000001; break; } // case 10 case 18: { dataVersion_ = input.readBytes(); bitField0_ |= 0x00000002; break; } // case 18 case 24: { dataBuild_ = input.readUInt32(); bitField0_ |= 0x00000004; break; } // case 24 case 32: { baseBuild_ = 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 java.lang.Object gameVersion_ = ""; /** * optional string game_version = 1; * @return Whether the gameVersion field is set. */ public boolean hasGameVersion() { return ((bitField0_ & 0x00000001) != 0); } /** * optional string game_version = 1; * @return The gameVersion. */ public java.lang.String getGameVersion() { java.lang.Object ref = gameVersion_; 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()) { gameVersion_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string game_version = 1; * @return The bytes for gameVersion. */ public com.google.protobuf.ByteString getGameVersionBytes() { java.lang.Object ref = gameVersion_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); gameVersion_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string game_version = 1; * @param value The gameVersion to set. * @return This builder for chaining. */ public Builder setGameVersion( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; gameVersion_ = value; onChanged(); return this; } /** * optional string game_version = 1; * @return This builder for chaining. */ public Builder clearGameVersion() { bitField0_ = (bitField0_ & ~0x00000001); gameVersion_ = getDefaultInstance().getGameVersion(); onChanged(); return this; } /** * optional string game_version = 1; * @param value The bytes for gameVersion to set. * @return This builder for chaining. */ public Builder setGameVersionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; gameVersion_ = value; onChanged(); return this; } private java.lang.Object dataVersion_ = ""; /** * optional string data_version = 2; * @return Whether the dataVersion field is set. */ public boolean hasDataVersion() { return ((bitField0_ & 0x00000002) != 0); } /** * optional string data_version = 2; * @return The dataVersion. */ public java.lang.String getDataVersion() { java.lang.Object ref = dataVersion_; 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()) { dataVersion_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string data_version = 2; * @return The bytes for dataVersion. */ public com.google.protobuf.ByteString getDataVersionBytes() { java.lang.Object ref = dataVersion_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); dataVersion_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string data_version = 2; * @param value The dataVersion to set. * @return This builder for chaining. */ public Builder setDataVersion( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; dataVersion_ = value; onChanged(); return this; } /** * optional string data_version = 2; * @return This builder for chaining. */ public Builder clearDataVersion() { bitField0_ = (bitField0_ & ~0x00000002); dataVersion_ = getDefaultInstance().getDataVersion(); onChanged(); return this; } /** * optional string data_version = 2; * @param value The bytes for dataVersion to set. * @return This builder for chaining. */ public Builder setDataVersionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; dataVersion_ = value; onChanged(); return this; } private int dataBuild_ ; /** * optional uint32 data_build = 3; * @return Whether the dataBuild field is set. */ @java.lang.Override public boolean hasDataBuild() { return ((bitField0_ & 0x00000004) != 0); } /** * optional uint32 data_build = 3; * @return The dataBuild. */ @java.lang.Override public int getDataBuild() { return dataBuild_; } /** * optional uint32 data_build = 3; * @param value The dataBuild to set. * @return This builder for chaining. */ public Builder setDataBuild(int value) { bitField0_ |= 0x00000004; dataBuild_ = value; onChanged(); return this; } /** * optional uint32 data_build = 3; * @return This builder for chaining. */ public Builder clearDataBuild() { bitField0_ = (bitField0_ & ~0x00000004); dataBuild_ = 0; onChanged(); return this; } private int baseBuild_ ; /** * optional uint32 base_build = 4; * @return Whether the baseBuild field is set. */ @java.lang.Override public boolean hasBaseBuild() { return ((bitField0_ & 0x00000008) != 0); } /** * optional uint32 base_build = 4; * @return The baseBuild. */ @java.lang.Override public int getBaseBuild() { return baseBuild_; } /** * optional uint32 base_build = 4; * @param value The baseBuild to set. * @return This builder for chaining. */ public Builder setBaseBuild(int value) { bitField0_ |= 0x00000008; baseBuild_ = value; onChanged(); return this; } /** * optional uint32 base_build = 4; * @return This builder for chaining. */ public Builder clearBaseBuild() { bitField0_ = (bitField0_ & ~0x00000008); baseBuild_ = 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.ResponsePing) } // @@protoc_insertion_point(class_scope:SC2APIProtocol.ResponsePing) private static final SC2APIProtocol.Sc2Api.ResponsePing DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new SC2APIProtocol.Sc2Api.ResponsePing(); } public static SC2APIProtocol.Sc2Api.ResponsePing getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ResponsePing 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.Sc2Api.ResponsePing getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RequestDebugOrBuilder extends // @@protoc_insertion_point(interface_extends:SC2APIProtocol.RequestDebug) com.google.protobuf.MessageOrBuilder { /** * repeated .SC2APIProtocol.DebugCommand debug = 1; */ java.util.List getDebugList(); /** * repeated .SC2APIProtocol.DebugCommand debug = 1; */ SC2APIProtocol.Debug.DebugCommand getDebug(int index); /** * repeated .SC2APIProtocol.DebugCommand debug = 1; */ int getDebugCount(); /** * repeated .SC2APIProtocol.DebugCommand debug = 1; */ java.util.List getDebugOrBuilderList(); /** * repeated .SC2APIProtocol.DebugCommand debug = 1; */ SC2APIProtocol.Debug.DebugCommandOrBuilder getDebugOrBuilder( int index); } /** *
   *-----------------------------------------------------------------------------
   * 
* * Protobuf type {@code SC2APIProtocol.RequestDebug} */ public static final class RequestDebug extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:SC2APIProtocol.RequestDebug) RequestDebugOrBuilder { private static final long serialVersionUID = 0L; // Use RequestDebug.newBuilder() to construct. private RequestDebug(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RequestDebug() { debug_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new RequestDebug(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_RequestDebug_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_RequestDebug_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Sc2Api.RequestDebug.class, SC2APIProtocol.Sc2Api.RequestDebug.Builder.class); } public static final int DEBUG_FIELD_NUMBER = 1; private java.util.List debug_; /** * repeated .SC2APIProtocol.DebugCommand debug = 1; */ @java.lang.Override public java.util.List getDebugList() { return debug_; } /** * repeated .SC2APIProtocol.DebugCommand debug = 1; */ @java.lang.Override public java.util.List getDebugOrBuilderList() { return debug_; } /** * repeated .SC2APIProtocol.DebugCommand debug = 1; */ @java.lang.Override public int getDebugCount() { return debug_.size(); } /** * repeated .SC2APIProtocol.DebugCommand debug = 1; */ @java.lang.Override public SC2APIProtocol.Debug.DebugCommand getDebug(int index) { return debug_.get(index); } /** * repeated .SC2APIProtocol.DebugCommand debug = 1; */ @java.lang.Override public SC2APIProtocol.Debug.DebugCommandOrBuilder getDebugOrBuilder( int index) { return debug_.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 < debug_.size(); i++) { output.writeMessage(1, debug_.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 < debug_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, debug_.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.Sc2Api.RequestDebug)) { return super.equals(obj); } SC2APIProtocol.Sc2Api.RequestDebug other = (SC2APIProtocol.Sc2Api.RequestDebug) obj; if (!getDebugList() .equals(other.getDebugList())) 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 (getDebugCount() > 0) { hash = (37 * hash) + DEBUG_FIELD_NUMBER; hash = (53 * hash) + getDebugList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static SC2APIProtocol.Sc2Api.RequestDebug parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.RequestDebug parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.RequestDebug parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.RequestDebug parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.RequestDebug parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.RequestDebug parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.RequestDebug parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.RequestDebug 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.Sc2Api.RequestDebug parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.RequestDebug 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.Sc2Api.RequestDebug parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.RequestDebug 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.Sc2Api.RequestDebug 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.RequestDebug} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:SC2APIProtocol.RequestDebug) SC2APIProtocol.Sc2Api.RequestDebugOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_RequestDebug_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_RequestDebug_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Sc2Api.RequestDebug.class, SC2APIProtocol.Sc2Api.RequestDebug.Builder.class); } // Construct using SC2APIProtocol.Sc2Api.RequestDebug.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); if (debugBuilder_ == null) { debug_ = java.util.Collections.emptyList(); } else { debug_ = null; debugBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_RequestDebug_descriptor; } @java.lang.Override public SC2APIProtocol.Sc2Api.RequestDebug getDefaultInstanceForType() { return SC2APIProtocol.Sc2Api.RequestDebug.getDefaultInstance(); } @java.lang.Override public SC2APIProtocol.Sc2Api.RequestDebug build() { SC2APIProtocol.Sc2Api.RequestDebug result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public SC2APIProtocol.Sc2Api.RequestDebug buildPartial() { SC2APIProtocol.Sc2Api.RequestDebug result = new SC2APIProtocol.Sc2Api.RequestDebug(this); int from_bitField0_ = bitField0_; if (debugBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { debug_ = java.util.Collections.unmodifiableList(debug_); bitField0_ = (bitField0_ & ~0x00000001); } result.debug_ = debug_; } else { result.debug_ = debugBuilder_.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.Sc2Api.RequestDebug) { return mergeFrom((SC2APIProtocol.Sc2Api.RequestDebug)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(SC2APIProtocol.Sc2Api.RequestDebug other) { if (other == SC2APIProtocol.Sc2Api.RequestDebug.getDefaultInstance()) return this; if (debugBuilder_ == null) { if (!other.debug_.isEmpty()) { if (debug_.isEmpty()) { debug_ = other.debug_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureDebugIsMutable(); debug_.addAll(other.debug_); } onChanged(); } } else { if (!other.debug_.isEmpty()) { if (debugBuilder_.isEmpty()) { debugBuilder_.dispose(); debugBuilder_ = null; debug_ = other.debug_; bitField0_ = (bitField0_ & ~0x00000001); debugBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getDebugFieldBuilder() : null; } else { debugBuilder_.addAllMessages(other.debug_); } } } 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.DebugCommand m = input.readMessage( SC2APIProtocol.Debug.DebugCommand.PARSER, extensionRegistry); if (debugBuilder_ == null) { ensureDebugIsMutable(); debug_.add(m); } else { debugBuilder_.addMessage(m); } 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 java.util.List debug_ = java.util.Collections.emptyList(); private void ensureDebugIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { debug_ = new java.util.ArrayList(debug_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< SC2APIProtocol.Debug.DebugCommand, SC2APIProtocol.Debug.DebugCommand.Builder, SC2APIProtocol.Debug.DebugCommandOrBuilder> debugBuilder_; /** * repeated .SC2APIProtocol.DebugCommand debug = 1; */ public java.util.List getDebugList() { if (debugBuilder_ == null) { return java.util.Collections.unmodifiableList(debug_); } else { return debugBuilder_.getMessageList(); } } /** * repeated .SC2APIProtocol.DebugCommand debug = 1; */ public int getDebugCount() { if (debugBuilder_ == null) { return debug_.size(); } else { return debugBuilder_.getCount(); } } /** * repeated .SC2APIProtocol.DebugCommand debug = 1; */ public SC2APIProtocol.Debug.DebugCommand getDebug(int index) { if (debugBuilder_ == null) { return debug_.get(index); } else { return debugBuilder_.getMessage(index); } } /** * repeated .SC2APIProtocol.DebugCommand debug = 1; */ public Builder setDebug( int index, SC2APIProtocol.Debug.DebugCommand value) { if (debugBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDebugIsMutable(); debug_.set(index, value); onChanged(); } else { debugBuilder_.setMessage(index, value); } return this; } /** * repeated .SC2APIProtocol.DebugCommand debug = 1; */ public Builder setDebug( int index, SC2APIProtocol.Debug.DebugCommand.Builder builderForValue) { if (debugBuilder_ == null) { ensureDebugIsMutable(); debug_.set(index, builderForValue.build()); onChanged(); } else { debugBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .SC2APIProtocol.DebugCommand debug = 1; */ public Builder addDebug(SC2APIProtocol.Debug.DebugCommand value) { if (debugBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDebugIsMutable(); debug_.add(value); onChanged(); } else { debugBuilder_.addMessage(value); } return this; } /** * repeated .SC2APIProtocol.DebugCommand debug = 1; */ public Builder addDebug( int index, SC2APIProtocol.Debug.DebugCommand value) { if (debugBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDebugIsMutable(); debug_.add(index, value); onChanged(); } else { debugBuilder_.addMessage(index, value); } return this; } /** * repeated .SC2APIProtocol.DebugCommand debug = 1; */ public Builder addDebug( SC2APIProtocol.Debug.DebugCommand.Builder builderForValue) { if (debugBuilder_ == null) { ensureDebugIsMutable(); debug_.add(builderForValue.build()); onChanged(); } else { debugBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .SC2APIProtocol.DebugCommand debug = 1; */ public Builder addDebug( int index, SC2APIProtocol.Debug.DebugCommand.Builder builderForValue) { if (debugBuilder_ == null) { ensureDebugIsMutable(); debug_.add(index, builderForValue.build()); onChanged(); } else { debugBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .SC2APIProtocol.DebugCommand debug = 1; */ public Builder addAllDebug( java.lang.Iterable values) { if (debugBuilder_ == null) { ensureDebugIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, debug_); onChanged(); } else { debugBuilder_.addAllMessages(values); } return this; } /** * repeated .SC2APIProtocol.DebugCommand debug = 1; */ public Builder clearDebug() { if (debugBuilder_ == null) { debug_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { debugBuilder_.clear(); } return this; } /** * repeated .SC2APIProtocol.DebugCommand debug = 1; */ public Builder removeDebug(int index) { if (debugBuilder_ == null) { ensureDebugIsMutable(); debug_.remove(index); onChanged(); } else { debugBuilder_.remove(index); } return this; } /** * repeated .SC2APIProtocol.DebugCommand debug = 1; */ public SC2APIProtocol.Debug.DebugCommand.Builder getDebugBuilder( int index) { return getDebugFieldBuilder().getBuilder(index); } /** * repeated .SC2APIProtocol.DebugCommand debug = 1; */ public SC2APIProtocol.Debug.DebugCommandOrBuilder getDebugOrBuilder( int index) { if (debugBuilder_ == null) { return debug_.get(index); } else { return debugBuilder_.getMessageOrBuilder(index); } } /** * repeated .SC2APIProtocol.DebugCommand debug = 1; */ public java.util.List getDebugOrBuilderList() { if (debugBuilder_ != null) { return debugBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(debug_); } } /** * repeated .SC2APIProtocol.DebugCommand debug = 1; */ public SC2APIProtocol.Debug.DebugCommand.Builder addDebugBuilder() { return getDebugFieldBuilder().addBuilder( SC2APIProtocol.Debug.DebugCommand.getDefaultInstance()); } /** * repeated .SC2APIProtocol.DebugCommand debug = 1; */ public SC2APIProtocol.Debug.DebugCommand.Builder addDebugBuilder( int index) { return getDebugFieldBuilder().addBuilder( index, SC2APIProtocol.Debug.DebugCommand.getDefaultInstance()); } /** * repeated .SC2APIProtocol.DebugCommand debug = 1; */ public java.util.List getDebugBuilderList() { return getDebugFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< SC2APIProtocol.Debug.DebugCommand, SC2APIProtocol.Debug.DebugCommand.Builder, SC2APIProtocol.Debug.DebugCommandOrBuilder> getDebugFieldBuilder() { if (debugBuilder_ == null) { debugBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< SC2APIProtocol.Debug.DebugCommand, SC2APIProtocol.Debug.DebugCommand.Builder, SC2APIProtocol.Debug.DebugCommandOrBuilder>( debug_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); debug_ = null; } return debugBuilder_; } @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.RequestDebug) } // @@protoc_insertion_point(class_scope:SC2APIProtocol.RequestDebug) private static final SC2APIProtocol.Sc2Api.RequestDebug DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new SC2APIProtocol.Sc2Api.RequestDebug(); } public static SC2APIProtocol.Sc2Api.RequestDebug getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public RequestDebug 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.Sc2Api.RequestDebug getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ResponseDebugOrBuilder extends // @@protoc_insertion_point(interface_extends:SC2APIProtocol.ResponseDebug) com.google.protobuf.MessageOrBuilder { } /** * Protobuf type {@code SC2APIProtocol.ResponseDebug} */ public static final class ResponseDebug extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:SC2APIProtocol.ResponseDebug) ResponseDebugOrBuilder { private static final long serialVersionUID = 0L; // Use ResponseDebug.newBuilder() to construct. private ResponseDebug(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ResponseDebug() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ResponseDebug(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_ResponseDebug_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_ResponseDebug_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Sc2Api.ResponseDebug.class, SC2APIProtocol.Sc2Api.ResponseDebug.Builder.class); } 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 { getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; 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.Sc2Api.ResponseDebug)) { return super.equals(obj); } SC2APIProtocol.Sc2Api.ResponseDebug other = (SC2APIProtocol.Sc2Api.ResponseDebug) obj; 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(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static SC2APIProtocol.Sc2Api.ResponseDebug parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.ResponseDebug parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.ResponseDebug parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.ResponseDebug parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.ResponseDebug parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.ResponseDebug parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.ResponseDebug parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.ResponseDebug 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.Sc2Api.ResponseDebug parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.ResponseDebug 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.Sc2Api.ResponseDebug parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.ResponseDebug 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.Sc2Api.ResponseDebug 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.ResponseDebug} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:SC2APIProtocol.ResponseDebug) SC2APIProtocol.Sc2Api.ResponseDebugOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_ResponseDebug_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_ResponseDebug_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Sc2Api.ResponseDebug.class, SC2APIProtocol.Sc2Api.ResponseDebug.Builder.class); } // Construct using SC2APIProtocol.Sc2Api.ResponseDebug.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_ResponseDebug_descriptor; } @java.lang.Override public SC2APIProtocol.Sc2Api.ResponseDebug getDefaultInstanceForType() { return SC2APIProtocol.Sc2Api.ResponseDebug.getDefaultInstance(); } @java.lang.Override public SC2APIProtocol.Sc2Api.ResponseDebug build() { SC2APIProtocol.Sc2Api.ResponseDebug result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public SC2APIProtocol.Sc2Api.ResponseDebug buildPartial() { SC2APIProtocol.Sc2Api.ResponseDebug result = new SC2APIProtocol.Sc2Api.ResponseDebug(this); 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.Sc2Api.ResponseDebug) { return mergeFrom((SC2APIProtocol.Sc2Api.ResponseDebug)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(SC2APIProtocol.Sc2Api.ResponseDebug other) { if (other == SC2APIProtocol.Sc2Api.ResponseDebug.getDefaultInstance()) return this; 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; 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; } @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.ResponseDebug) } // @@protoc_insertion_point(class_scope:SC2APIProtocol.ResponseDebug) private static final SC2APIProtocol.Sc2Api.ResponseDebug DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new SC2APIProtocol.Sc2Api.ResponseDebug(); } public static SC2APIProtocol.Sc2Api.ResponseDebug getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ResponseDebug 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.Sc2Api.ResponseDebug getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PlayerSetupOrBuilder extends // @@protoc_insertion_point(interface_extends:SC2APIProtocol.PlayerSetup) com.google.protobuf.MessageOrBuilder { /** * optional .SC2APIProtocol.PlayerType type = 1; * @return Whether the type field is set. */ boolean hasType(); /** * optional .SC2APIProtocol.PlayerType type = 1; * @return The type. */ SC2APIProtocol.Sc2Api.PlayerType getType(); /** *
     * Only used for a computer player.
     * 
* * optional .SC2APIProtocol.Race race = 2; * @return Whether the race field is set. */ boolean hasRace(); /** *
     * Only used for a computer player.
     * 
* * optional .SC2APIProtocol.Race race = 2; * @return The race. */ SC2APIProtocol.Common.Race getRace(); /** * optional .SC2APIProtocol.Difficulty difficulty = 3; * @return Whether the difficulty field is set. */ boolean hasDifficulty(); /** * optional .SC2APIProtocol.Difficulty difficulty = 3; * @return The difficulty. */ SC2APIProtocol.Sc2Api.Difficulty getDifficulty(); /** * optional string player_name = 4; * @return Whether the playerName field is set. */ boolean hasPlayerName(); /** * optional string player_name = 4; * @return The playerName. */ java.lang.String getPlayerName(); /** * optional string player_name = 4; * @return The bytes for playerName. */ com.google.protobuf.ByteString getPlayerNameBytes(); /** * optional .SC2APIProtocol.AIBuild ai_build = 5; * @return Whether the aiBuild field is set. */ boolean hasAiBuild(); /** * optional .SC2APIProtocol.AIBuild ai_build = 5; * @return The aiBuild. */ SC2APIProtocol.Sc2Api.AIBuild getAiBuild(); } /** * Protobuf type {@code SC2APIProtocol.PlayerSetup} */ public static final class PlayerSetup extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:SC2APIProtocol.PlayerSetup) PlayerSetupOrBuilder { private static final long serialVersionUID = 0L; // Use PlayerSetup.newBuilder() to construct. private PlayerSetup(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PlayerSetup() { type_ = 1; race_ = 0; difficulty_ = 1; playerName_ = ""; aiBuild_ = 1; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new PlayerSetup(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_PlayerSetup_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_PlayerSetup_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Sc2Api.PlayerSetup.class, SC2APIProtocol.Sc2Api.PlayerSetup.Builder.class); } private int bitField0_; public static final int TYPE_FIELD_NUMBER = 1; private int type_; /** * optional .SC2APIProtocol.PlayerType type = 1; * @return Whether the type field is set. */ @java.lang.Override public boolean hasType() { return ((bitField0_ & 0x00000001) != 0); } /** * optional .SC2APIProtocol.PlayerType type = 1; * @return The type. */ @java.lang.Override public SC2APIProtocol.Sc2Api.PlayerType getType() { @SuppressWarnings("deprecation") SC2APIProtocol.Sc2Api.PlayerType result = SC2APIProtocol.Sc2Api.PlayerType.valueOf(type_); return result == null ? SC2APIProtocol.Sc2Api.PlayerType.Participant : result; } public static final int RACE_FIELD_NUMBER = 2; private int race_; /** *
     * Only used for a computer player.
     * 
* * optional .SC2APIProtocol.Race race = 2; * @return Whether the race field is set. */ @java.lang.Override public boolean hasRace() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * Only used for a computer player.
     * 
* * optional .SC2APIProtocol.Race race = 2; * @return The race. */ @java.lang.Override public SC2APIProtocol.Common.Race getRace() { @SuppressWarnings("deprecation") SC2APIProtocol.Common.Race result = SC2APIProtocol.Common.Race.valueOf(race_); return result == null ? SC2APIProtocol.Common.Race.NoRace : result; } public static final int DIFFICULTY_FIELD_NUMBER = 3; private int difficulty_; /** * optional .SC2APIProtocol.Difficulty difficulty = 3; * @return Whether the difficulty field is set. */ @java.lang.Override public boolean hasDifficulty() { return ((bitField0_ & 0x00000004) != 0); } /** * optional .SC2APIProtocol.Difficulty difficulty = 3; * @return The difficulty. */ @java.lang.Override public SC2APIProtocol.Sc2Api.Difficulty getDifficulty() { @SuppressWarnings("deprecation") SC2APIProtocol.Sc2Api.Difficulty result = SC2APIProtocol.Sc2Api.Difficulty.valueOf(difficulty_); return result == null ? SC2APIProtocol.Sc2Api.Difficulty.VeryEasy : result; } public static final int PLAYER_NAME_FIELD_NUMBER = 4; private volatile java.lang.Object playerName_; /** * optional string player_name = 4; * @return Whether the playerName field is set. */ @java.lang.Override public boolean hasPlayerName() { return ((bitField0_ & 0x00000008) != 0); } /** * optional string player_name = 4; * @return The playerName. */ @java.lang.Override public java.lang.String getPlayerName() { java.lang.Object ref = playerName_; 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()) { playerName_ = s; } return s; } } /** * optional string player_name = 4; * @return The bytes for playerName. */ @java.lang.Override public com.google.protobuf.ByteString getPlayerNameBytes() { java.lang.Object ref = playerName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); playerName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int AI_BUILD_FIELD_NUMBER = 5; private int aiBuild_; /** * optional .SC2APIProtocol.AIBuild ai_build = 5; * @return Whether the aiBuild field is set. */ @java.lang.Override public boolean hasAiBuild() { return ((bitField0_ & 0x00000010) != 0); } /** * optional .SC2APIProtocol.AIBuild ai_build = 5; * @return The aiBuild. */ @java.lang.Override public SC2APIProtocol.Sc2Api.AIBuild getAiBuild() { @SuppressWarnings("deprecation") SC2APIProtocol.Sc2Api.AIBuild result = SC2APIProtocol.Sc2Api.AIBuild.valueOf(aiBuild_); return result == null ? SC2APIProtocol.Sc2Api.AIBuild.RandomBuild : 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, type_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeEnum(2, race_); } if (((bitField0_ & 0x00000004) != 0)) { output.writeEnum(3, difficulty_); } if (((bitField0_ & 0x00000008) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, playerName_); } if (((bitField0_ & 0x00000010) != 0)) { output.writeEnum(5, aiBuild_); } 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, type_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, race_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(3, difficulty_); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, playerName_); } if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(5, aiBuild_); } 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.Sc2Api.PlayerSetup)) { return super.equals(obj); } SC2APIProtocol.Sc2Api.PlayerSetup other = (SC2APIProtocol.Sc2Api.PlayerSetup) obj; if (hasType() != other.hasType()) return false; if (hasType()) { if (type_ != other.type_) return false; } if (hasRace() != other.hasRace()) return false; if (hasRace()) { if (race_ != other.race_) return false; } if (hasDifficulty() != other.hasDifficulty()) return false; if (hasDifficulty()) { if (difficulty_ != other.difficulty_) return false; } if (hasPlayerName() != other.hasPlayerName()) return false; if (hasPlayerName()) { if (!getPlayerName() .equals(other.getPlayerName())) return false; } if (hasAiBuild() != other.hasAiBuild()) return false; if (hasAiBuild()) { if (aiBuild_ != other.aiBuild_) 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 (hasType()) { hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_; } if (hasRace()) { hash = (37 * hash) + RACE_FIELD_NUMBER; hash = (53 * hash) + race_; } if (hasDifficulty()) { hash = (37 * hash) + DIFFICULTY_FIELD_NUMBER; hash = (53 * hash) + difficulty_; } if (hasPlayerName()) { hash = (37 * hash) + PLAYER_NAME_FIELD_NUMBER; hash = (53 * hash) + getPlayerName().hashCode(); } if (hasAiBuild()) { hash = (37 * hash) + AI_BUILD_FIELD_NUMBER; hash = (53 * hash) + aiBuild_; } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static SC2APIProtocol.Sc2Api.PlayerSetup parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.PlayerSetup parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.PlayerSetup parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.PlayerSetup parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.PlayerSetup parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.PlayerSetup parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.PlayerSetup parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.PlayerSetup 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.Sc2Api.PlayerSetup parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.PlayerSetup 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.Sc2Api.PlayerSetup parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.PlayerSetup 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.Sc2Api.PlayerSetup 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.PlayerSetup} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:SC2APIProtocol.PlayerSetup) SC2APIProtocol.Sc2Api.PlayerSetupOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_PlayerSetup_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_PlayerSetup_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Sc2Api.PlayerSetup.class, SC2APIProtocol.Sc2Api.PlayerSetup.Builder.class); } // Construct using SC2APIProtocol.Sc2Api.PlayerSetup.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); type_ = 1; bitField0_ = (bitField0_ & ~0x00000001); race_ = 0; bitField0_ = (bitField0_ & ~0x00000002); difficulty_ = 1; bitField0_ = (bitField0_ & ~0x00000004); playerName_ = ""; bitField0_ = (bitField0_ & ~0x00000008); aiBuild_ = 1; bitField0_ = (bitField0_ & ~0x00000010); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_PlayerSetup_descriptor; } @java.lang.Override public SC2APIProtocol.Sc2Api.PlayerSetup getDefaultInstanceForType() { return SC2APIProtocol.Sc2Api.PlayerSetup.getDefaultInstance(); } @java.lang.Override public SC2APIProtocol.Sc2Api.PlayerSetup build() { SC2APIProtocol.Sc2Api.PlayerSetup result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public SC2APIProtocol.Sc2Api.PlayerSetup buildPartial() { SC2APIProtocol.Sc2Api.PlayerSetup result = new SC2APIProtocol.Sc2Api.PlayerSetup(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { to_bitField0_ |= 0x00000001; } result.type_ = type_; if (((from_bitField0_ & 0x00000002) != 0)) { to_bitField0_ |= 0x00000002; } result.race_ = race_; if (((from_bitField0_ & 0x00000004) != 0)) { to_bitField0_ |= 0x00000004; } result.difficulty_ = difficulty_; if (((from_bitField0_ & 0x00000008) != 0)) { to_bitField0_ |= 0x00000008; } result.playerName_ = playerName_; if (((from_bitField0_ & 0x00000010) != 0)) { to_bitField0_ |= 0x00000010; } result.aiBuild_ = aiBuild_; 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.Sc2Api.PlayerSetup) { return mergeFrom((SC2APIProtocol.Sc2Api.PlayerSetup)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(SC2APIProtocol.Sc2Api.PlayerSetup other) { if (other == SC2APIProtocol.Sc2Api.PlayerSetup.getDefaultInstance()) return this; if (other.hasType()) { setType(other.getType()); } if (other.hasRace()) { setRace(other.getRace()); } if (other.hasDifficulty()) { setDifficulty(other.getDifficulty()); } if (other.hasPlayerName()) { bitField0_ |= 0x00000008; playerName_ = other.playerName_; onChanged(); } if (other.hasAiBuild()) { setAiBuild(other.getAiBuild()); } 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.Sc2Api.PlayerType tmpValue = SC2APIProtocol.Sc2Api.PlayerType.forNumber(tmpRaw); if (tmpValue == null) { mergeUnknownVarintField(1, tmpRaw); } else { type_ = tmpRaw; bitField0_ |= 0x00000001; } break; } // case 8 case 16: { int tmpRaw = input.readEnum(); SC2APIProtocol.Common.Race tmpValue = SC2APIProtocol.Common.Race.forNumber(tmpRaw); if (tmpValue == null) { mergeUnknownVarintField(2, tmpRaw); } else { race_ = tmpRaw; bitField0_ |= 0x00000002; } break; } // case 16 case 24: { int tmpRaw = input.readEnum(); SC2APIProtocol.Sc2Api.Difficulty tmpValue = SC2APIProtocol.Sc2Api.Difficulty.forNumber(tmpRaw); if (tmpValue == null) { mergeUnknownVarintField(3, tmpRaw); } else { difficulty_ = tmpRaw; bitField0_ |= 0x00000004; } break; } // case 24 case 34: { playerName_ = input.readBytes(); bitField0_ |= 0x00000008; break; } // case 34 case 40: { int tmpRaw = input.readEnum(); SC2APIProtocol.Sc2Api.AIBuild tmpValue = SC2APIProtocol.Sc2Api.AIBuild.forNumber(tmpRaw); if (tmpValue == null) { mergeUnknownVarintField(5, tmpRaw); } else { aiBuild_ = tmpRaw; 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 int type_ = 1; /** * optional .SC2APIProtocol.PlayerType type = 1; * @return Whether the type field is set. */ @java.lang.Override public boolean hasType() { return ((bitField0_ & 0x00000001) != 0); } /** * optional .SC2APIProtocol.PlayerType type = 1; * @return The type. */ @java.lang.Override public SC2APIProtocol.Sc2Api.PlayerType getType() { @SuppressWarnings("deprecation") SC2APIProtocol.Sc2Api.PlayerType result = SC2APIProtocol.Sc2Api.PlayerType.valueOf(type_); return result == null ? SC2APIProtocol.Sc2Api.PlayerType.Participant : result; } /** * optional .SC2APIProtocol.PlayerType type = 1; * @param value The type to set. * @return This builder for chaining. */ public Builder setType(SC2APIProtocol.Sc2Api.PlayerType value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; type_ = value.getNumber(); onChanged(); return this; } /** * optional .SC2APIProtocol.PlayerType type = 1; * @return This builder for chaining. */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000001); type_ = 1; onChanged(); return this; } private int race_ = 0; /** *
       * Only used for a computer player.
       * 
* * optional .SC2APIProtocol.Race race = 2; * @return Whether the race field is set. */ @java.lang.Override public boolean hasRace() { return ((bitField0_ & 0x00000002) != 0); } /** *
       * Only used for a computer player.
       * 
* * optional .SC2APIProtocol.Race race = 2; * @return The race. */ @java.lang.Override public SC2APIProtocol.Common.Race getRace() { @SuppressWarnings("deprecation") SC2APIProtocol.Common.Race result = SC2APIProtocol.Common.Race.valueOf(race_); return result == null ? SC2APIProtocol.Common.Race.NoRace : result; } /** *
       * Only used for a computer player.
       * 
* * optional .SC2APIProtocol.Race race = 2; * @param value The race to set. * @return This builder for chaining. */ public Builder setRace(SC2APIProtocol.Common.Race value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; race_ = value.getNumber(); onChanged(); return this; } /** *
       * Only used for a computer player.
       * 
* * optional .SC2APIProtocol.Race race = 2; * @return This builder for chaining. */ public Builder clearRace() { bitField0_ = (bitField0_ & ~0x00000002); race_ = 0; onChanged(); return this; } private int difficulty_ = 1; /** * optional .SC2APIProtocol.Difficulty difficulty = 3; * @return Whether the difficulty field is set. */ @java.lang.Override public boolean hasDifficulty() { return ((bitField0_ & 0x00000004) != 0); } /** * optional .SC2APIProtocol.Difficulty difficulty = 3; * @return The difficulty. */ @java.lang.Override public SC2APIProtocol.Sc2Api.Difficulty getDifficulty() { @SuppressWarnings("deprecation") SC2APIProtocol.Sc2Api.Difficulty result = SC2APIProtocol.Sc2Api.Difficulty.valueOf(difficulty_); return result == null ? SC2APIProtocol.Sc2Api.Difficulty.VeryEasy : result; } /** * optional .SC2APIProtocol.Difficulty difficulty = 3; * @param value The difficulty to set. * @return This builder for chaining. */ public Builder setDifficulty(SC2APIProtocol.Sc2Api.Difficulty value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; difficulty_ = value.getNumber(); onChanged(); return this; } /** * optional .SC2APIProtocol.Difficulty difficulty = 3; * @return This builder for chaining. */ public Builder clearDifficulty() { bitField0_ = (bitField0_ & ~0x00000004); difficulty_ = 1; onChanged(); return this; } private java.lang.Object playerName_ = ""; /** * optional string player_name = 4; * @return Whether the playerName field is set. */ public boolean hasPlayerName() { return ((bitField0_ & 0x00000008) != 0); } /** * optional string player_name = 4; * @return The playerName. */ public java.lang.String getPlayerName() { java.lang.Object ref = playerName_; 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()) { playerName_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string player_name = 4; * @return The bytes for playerName. */ public com.google.protobuf.ByteString getPlayerNameBytes() { java.lang.Object ref = playerName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); playerName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string player_name = 4; * @param value The playerName to set. * @return This builder for chaining. */ public Builder setPlayerName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; playerName_ = value; onChanged(); return this; } /** * optional string player_name = 4; * @return This builder for chaining. */ public Builder clearPlayerName() { bitField0_ = (bitField0_ & ~0x00000008); playerName_ = getDefaultInstance().getPlayerName(); onChanged(); return this; } /** * optional string player_name = 4; * @param value The bytes for playerName to set. * @return This builder for chaining. */ public Builder setPlayerNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; playerName_ = value; onChanged(); return this; } private int aiBuild_ = 1; /** * optional .SC2APIProtocol.AIBuild ai_build = 5; * @return Whether the aiBuild field is set. */ @java.lang.Override public boolean hasAiBuild() { return ((bitField0_ & 0x00000010) != 0); } /** * optional .SC2APIProtocol.AIBuild ai_build = 5; * @return The aiBuild. */ @java.lang.Override public SC2APIProtocol.Sc2Api.AIBuild getAiBuild() { @SuppressWarnings("deprecation") SC2APIProtocol.Sc2Api.AIBuild result = SC2APIProtocol.Sc2Api.AIBuild.valueOf(aiBuild_); return result == null ? SC2APIProtocol.Sc2Api.AIBuild.RandomBuild : result; } /** * optional .SC2APIProtocol.AIBuild ai_build = 5; * @param value The aiBuild to set. * @return This builder for chaining. */ public Builder setAiBuild(SC2APIProtocol.Sc2Api.AIBuild value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; aiBuild_ = value.getNumber(); onChanged(); return this; } /** * optional .SC2APIProtocol.AIBuild ai_build = 5; * @return This builder for chaining. */ public Builder clearAiBuild() { bitField0_ = (bitField0_ & ~0x00000010); aiBuild_ = 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.PlayerSetup) } // @@protoc_insertion_point(class_scope:SC2APIProtocol.PlayerSetup) private static final SC2APIProtocol.Sc2Api.PlayerSetup DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new SC2APIProtocol.Sc2Api.PlayerSetup(); } public static SC2APIProtocol.Sc2Api.PlayerSetup getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PlayerSetup 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.Sc2Api.PlayerSetup getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface SpatialCameraSetupOrBuilder extends // @@protoc_insertion_point(interface_extends:SC2APIProtocol.SpatialCameraSetup) com.google.protobuf.MessageOrBuilder { /** * optional .SC2APIProtocol.Size2DI resolution = 2; * @return Whether the resolution field is set. */ boolean hasResolution(); /** * optional .SC2APIProtocol.Size2DI resolution = 2; * @return The resolution. */ SC2APIProtocol.Common.Size2DI getResolution(); /** * optional .SC2APIProtocol.Size2DI resolution = 2; */ SC2APIProtocol.Common.Size2DIOrBuilder getResolutionOrBuilder(); /** * optional .SC2APIProtocol.Size2DI minimap_resolution = 3; * @return Whether the minimapResolution field is set. */ boolean hasMinimapResolution(); /** * optional .SC2APIProtocol.Size2DI minimap_resolution = 3; * @return The minimapResolution. */ SC2APIProtocol.Common.Size2DI getMinimapResolution(); /** * optional .SC2APIProtocol.Size2DI minimap_resolution = 3; */ SC2APIProtocol.Common.Size2DIOrBuilder getMinimapResolutionOrBuilder(); /** *
     * Below are only relevant for feature layers.
     * 
* * optional float width = 1; * @return Whether the width field is set. */ boolean hasWidth(); /** *
     * Below are only relevant for feature layers.
     * 
* * optional float width = 1; * @return The width. */ float getWidth(); /** *
     * Crop minimap to the playable area.
     * 
* * optional bool crop_to_playable_area = 4; * @return Whether the cropToPlayableArea field is set. */ boolean hasCropToPlayableArea(); /** *
     * Crop minimap to the playable area.
     * 
* * optional bool crop_to_playable_area = 4; * @return The cropToPlayableArea. */ boolean getCropToPlayableArea(); /** *
     * Return unit_type on the minimap, and potentially other cheating layers.
     * 
* * optional bool allow_cheating_layers = 5; * @return Whether the allowCheatingLayers field is set. */ boolean hasAllowCheatingLayers(); /** *
     * Return unit_type on the minimap, and potentially other cheating layers.
     * 
* * optional bool allow_cheating_layers = 5; * @return The allowCheatingLayers. */ boolean getAllowCheatingLayers(); } /** * Protobuf type {@code SC2APIProtocol.SpatialCameraSetup} */ public static final class SpatialCameraSetup extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:SC2APIProtocol.SpatialCameraSetup) SpatialCameraSetupOrBuilder { private static final long serialVersionUID = 0L; // Use SpatialCameraSetup.newBuilder() to construct. private SpatialCameraSetup(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private SpatialCameraSetup() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new SpatialCameraSetup(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_SpatialCameraSetup_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_SpatialCameraSetup_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Sc2Api.SpatialCameraSetup.class, SC2APIProtocol.Sc2Api.SpatialCameraSetup.Builder.class); } private int bitField0_; public static final int RESOLUTION_FIELD_NUMBER = 2; private SC2APIProtocol.Common.Size2DI resolution_; /** * optional .SC2APIProtocol.Size2DI resolution = 2; * @return Whether the resolution field is set. */ @java.lang.Override public boolean hasResolution() { return ((bitField0_ & 0x00000001) != 0); } /** * optional .SC2APIProtocol.Size2DI resolution = 2; * @return The resolution. */ @java.lang.Override public SC2APIProtocol.Common.Size2DI getResolution() { return resolution_ == null ? SC2APIProtocol.Common.Size2DI.getDefaultInstance() : resolution_; } /** * optional .SC2APIProtocol.Size2DI resolution = 2; */ @java.lang.Override public SC2APIProtocol.Common.Size2DIOrBuilder getResolutionOrBuilder() { return resolution_ == null ? SC2APIProtocol.Common.Size2DI.getDefaultInstance() : resolution_; } public static final int MINIMAP_RESOLUTION_FIELD_NUMBER = 3; private SC2APIProtocol.Common.Size2DI minimapResolution_; /** * optional .SC2APIProtocol.Size2DI minimap_resolution = 3; * @return Whether the minimapResolution field is set. */ @java.lang.Override public boolean hasMinimapResolution() { return ((bitField0_ & 0x00000002) != 0); } /** * optional .SC2APIProtocol.Size2DI minimap_resolution = 3; * @return The minimapResolution. */ @java.lang.Override public SC2APIProtocol.Common.Size2DI getMinimapResolution() { return minimapResolution_ == null ? SC2APIProtocol.Common.Size2DI.getDefaultInstance() : minimapResolution_; } /** * optional .SC2APIProtocol.Size2DI minimap_resolution = 3; */ @java.lang.Override public SC2APIProtocol.Common.Size2DIOrBuilder getMinimapResolutionOrBuilder() { return minimapResolution_ == null ? SC2APIProtocol.Common.Size2DI.getDefaultInstance() : minimapResolution_; } public static final int WIDTH_FIELD_NUMBER = 1; private float width_; /** *
     * Below are only relevant for feature layers.
     * 
* * optional float width = 1; * @return Whether the width field is set. */ @java.lang.Override public boolean hasWidth() { return ((bitField0_ & 0x00000004) != 0); } /** *
     * Below are only relevant for feature layers.
     * 
* * optional float width = 1; * @return The width. */ @java.lang.Override public float getWidth() { return width_; } public static final int CROP_TO_PLAYABLE_AREA_FIELD_NUMBER = 4; private boolean cropToPlayableArea_; /** *
     * Crop minimap to the playable area.
     * 
* * optional bool crop_to_playable_area = 4; * @return Whether the cropToPlayableArea field is set. */ @java.lang.Override public boolean hasCropToPlayableArea() { return ((bitField0_ & 0x00000008) != 0); } /** *
     * Crop minimap to the playable area.
     * 
* * optional bool crop_to_playable_area = 4; * @return The cropToPlayableArea. */ @java.lang.Override public boolean getCropToPlayableArea() { return cropToPlayableArea_; } public static final int ALLOW_CHEATING_LAYERS_FIELD_NUMBER = 5; private boolean allowCheatingLayers_; /** *
     * Return unit_type on the minimap, and potentially other cheating layers.
     * 
* * optional bool allow_cheating_layers = 5; * @return Whether the allowCheatingLayers field is set. */ @java.lang.Override public boolean hasAllowCheatingLayers() { return ((bitField0_ & 0x00000010) != 0); } /** *
     * Return unit_type on the minimap, and potentially other cheating layers.
     * 
* * optional bool allow_cheating_layers = 5; * @return The allowCheatingLayers. */ @java.lang.Override public boolean getAllowCheatingLayers() { return allowCheatingLayers_; } 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_ & 0x00000004) != 0)) { output.writeFloat(1, width_); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getResolution()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(3, getMinimapResolution()); } if (((bitField0_ & 0x00000008) != 0)) { output.writeBool(4, cropToPlayableArea_); } if (((bitField0_ & 0x00000010) != 0)) { output.writeBool(5, allowCheatingLayers_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeFloatSize(1, width_); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getResolution()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getMinimapResolution()); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(4, cropToPlayableArea_); } if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(5, allowCheatingLayers_); } 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.Sc2Api.SpatialCameraSetup)) { return super.equals(obj); } SC2APIProtocol.Sc2Api.SpatialCameraSetup other = (SC2APIProtocol.Sc2Api.SpatialCameraSetup) obj; if (hasResolution() != other.hasResolution()) return false; if (hasResolution()) { if (!getResolution() .equals(other.getResolution())) return false; } if (hasMinimapResolution() != other.hasMinimapResolution()) return false; if (hasMinimapResolution()) { if (!getMinimapResolution() .equals(other.getMinimapResolution())) return false; } if (hasWidth() != other.hasWidth()) return false; if (hasWidth()) { if (java.lang.Float.floatToIntBits(getWidth()) != java.lang.Float.floatToIntBits( other.getWidth())) return false; } if (hasCropToPlayableArea() != other.hasCropToPlayableArea()) return false; if (hasCropToPlayableArea()) { if (getCropToPlayableArea() != other.getCropToPlayableArea()) return false; } if (hasAllowCheatingLayers() != other.hasAllowCheatingLayers()) return false; if (hasAllowCheatingLayers()) { if (getAllowCheatingLayers() != other.getAllowCheatingLayers()) 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 (hasResolution()) { hash = (37 * hash) + RESOLUTION_FIELD_NUMBER; hash = (53 * hash) + getResolution().hashCode(); } if (hasMinimapResolution()) { hash = (37 * hash) + MINIMAP_RESOLUTION_FIELD_NUMBER; hash = (53 * hash) + getMinimapResolution().hashCode(); } if (hasWidth()) { hash = (37 * hash) + WIDTH_FIELD_NUMBER; hash = (53 * hash) + java.lang.Float.floatToIntBits( getWidth()); } if (hasCropToPlayableArea()) { hash = (37 * hash) + CROP_TO_PLAYABLE_AREA_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getCropToPlayableArea()); } if (hasAllowCheatingLayers()) { hash = (37 * hash) + ALLOW_CHEATING_LAYERS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getAllowCheatingLayers()); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static SC2APIProtocol.Sc2Api.SpatialCameraSetup parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.SpatialCameraSetup parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.SpatialCameraSetup parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.SpatialCameraSetup parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.SpatialCameraSetup parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.SpatialCameraSetup parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.SpatialCameraSetup parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.SpatialCameraSetup 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.Sc2Api.SpatialCameraSetup parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.SpatialCameraSetup 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.Sc2Api.SpatialCameraSetup parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.SpatialCameraSetup 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.Sc2Api.SpatialCameraSetup 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.SpatialCameraSetup} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:SC2APIProtocol.SpatialCameraSetup) SC2APIProtocol.Sc2Api.SpatialCameraSetupOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_SpatialCameraSetup_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_SpatialCameraSetup_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Sc2Api.SpatialCameraSetup.class, SC2APIProtocol.Sc2Api.SpatialCameraSetup.Builder.class); } // Construct using SC2APIProtocol.Sc2Api.SpatialCameraSetup.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getResolutionFieldBuilder(); getMinimapResolutionFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (resolutionBuilder_ == null) { resolution_ = null; } else { resolutionBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); if (minimapResolutionBuilder_ == null) { minimapResolution_ = null; } else { minimapResolutionBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); width_ = 0F; bitField0_ = (bitField0_ & ~0x00000004); cropToPlayableArea_ = false; bitField0_ = (bitField0_ & ~0x00000008); allowCheatingLayers_ = false; bitField0_ = (bitField0_ & ~0x00000010); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_SpatialCameraSetup_descriptor; } @java.lang.Override public SC2APIProtocol.Sc2Api.SpatialCameraSetup getDefaultInstanceForType() { return SC2APIProtocol.Sc2Api.SpatialCameraSetup.getDefaultInstance(); } @java.lang.Override public SC2APIProtocol.Sc2Api.SpatialCameraSetup build() { SC2APIProtocol.Sc2Api.SpatialCameraSetup result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public SC2APIProtocol.Sc2Api.SpatialCameraSetup buildPartial() { SC2APIProtocol.Sc2Api.SpatialCameraSetup result = new SC2APIProtocol.Sc2Api.SpatialCameraSetup(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { if (resolutionBuilder_ == null) { result.resolution_ = resolution_; } else { result.resolution_ = resolutionBuilder_.build(); } to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { if (minimapResolutionBuilder_ == null) { result.minimapResolution_ = minimapResolution_; } else { result.minimapResolution_ = minimapResolutionBuilder_.build(); } to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { result.width_ = width_; to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000008) != 0)) { result.cropToPlayableArea_ = cropToPlayableArea_; to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000010) != 0)) { result.allowCheatingLayers_ = allowCheatingLayers_; 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.Sc2Api.SpatialCameraSetup) { return mergeFrom((SC2APIProtocol.Sc2Api.SpatialCameraSetup)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(SC2APIProtocol.Sc2Api.SpatialCameraSetup other) { if (other == SC2APIProtocol.Sc2Api.SpatialCameraSetup.getDefaultInstance()) return this; if (other.hasResolution()) { mergeResolution(other.getResolution()); } if (other.hasMinimapResolution()) { mergeMinimapResolution(other.getMinimapResolution()); } if (other.hasWidth()) { setWidth(other.getWidth()); } if (other.hasCropToPlayableArea()) { setCropToPlayableArea(other.getCropToPlayableArea()); } if (other.hasAllowCheatingLayers()) { setAllowCheatingLayers(other.getAllowCheatingLayers()); } 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: { width_ = input.readFloat(); bitField0_ |= 0x00000004; break; } // case 13 case 18: { input.readMessage( getResolutionFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 18 case 26: { input.readMessage( getMinimapResolutionFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 26 case 32: { cropToPlayableArea_ = input.readBool(); bitField0_ |= 0x00000008; break; } // case 32 case 40: { allowCheatingLayers_ = input.readBool(); 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.Common.Size2DI resolution_; private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Common.Size2DI, SC2APIProtocol.Common.Size2DI.Builder, SC2APIProtocol.Common.Size2DIOrBuilder> resolutionBuilder_; /** * optional .SC2APIProtocol.Size2DI resolution = 2; * @return Whether the resolution field is set. */ public boolean hasResolution() { return ((bitField0_ & 0x00000001) != 0); } /** * optional .SC2APIProtocol.Size2DI resolution = 2; * @return The resolution. */ public SC2APIProtocol.Common.Size2DI getResolution() { if (resolutionBuilder_ == null) { return resolution_ == null ? SC2APIProtocol.Common.Size2DI.getDefaultInstance() : resolution_; } else { return resolutionBuilder_.getMessage(); } } /** * optional .SC2APIProtocol.Size2DI resolution = 2; */ public Builder setResolution(SC2APIProtocol.Common.Size2DI value) { if (resolutionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } resolution_ = value; onChanged(); } else { resolutionBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * optional .SC2APIProtocol.Size2DI resolution = 2; */ public Builder setResolution( SC2APIProtocol.Common.Size2DI.Builder builderForValue) { if (resolutionBuilder_ == null) { resolution_ = builderForValue.build(); onChanged(); } else { resolutionBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * optional .SC2APIProtocol.Size2DI resolution = 2; */ public Builder mergeResolution(SC2APIProtocol.Common.Size2DI value) { if (resolutionBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && resolution_ != null && resolution_ != SC2APIProtocol.Common.Size2DI.getDefaultInstance()) { resolution_ = SC2APIProtocol.Common.Size2DI.newBuilder(resolution_).mergeFrom(value).buildPartial(); } else { resolution_ = value; } onChanged(); } else { resolutionBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * optional .SC2APIProtocol.Size2DI resolution = 2; */ public Builder clearResolution() { if (resolutionBuilder_ == null) { resolution_ = null; onChanged(); } else { resolutionBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * optional .SC2APIProtocol.Size2DI resolution = 2; */ public SC2APIProtocol.Common.Size2DI.Builder getResolutionBuilder() { bitField0_ |= 0x00000001; onChanged(); return getResolutionFieldBuilder().getBuilder(); } /** * optional .SC2APIProtocol.Size2DI resolution = 2; */ public SC2APIProtocol.Common.Size2DIOrBuilder getResolutionOrBuilder() { if (resolutionBuilder_ != null) { return resolutionBuilder_.getMessageOrBuilder(); } else { return resolution_ == null ? SC2APIProtocol.Common.Size2DI.getDefaultInstance() : resolution_; } } /** * optional .SC2APIProtocol.Size2DI resolution = 2; */ private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Common.Size2DI, SC2APIProtocol.Common.Size2DI.Builder, SC2APIProtocol.Common.Size2DIOrBuilder> getResolutionFieldBuilder() { if (resolutionBuilder_ == null) { resolutionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Common.Size2DI, SC2APIProtocol.Common.Size2DI.Builder, SC2APIProtocol.Common.Size2DIOrBuilder>( getResolution(), getParentForChildren(), isClean()); resolution_ = null; } return resolutionBuilder_; } private SC2APIProtocol.Common.Size2DI minimapResolution_; private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Common.Size2DI, SC2APIProtocol.Common.Size2DI.Builder, SC2APIProtocol.Common.Size2DIOrBuilder> minimapResolutionBuilder_; /** * optional .SC2APIProtocol.Size2DI minimap_resolution = 3; * @return Whether the minimapResolution field is set. */ public boolean hasMinimapResolution() { return ((bitField0_ & 0x00000002) != 0); } /** * optional .SC2APIProtocol.Size2DI minimap_resolution = 3; * @return The minimapResolution. */ public SC2APIProtocol.Common.Size2DI getMinimapResolution() { if (minimapResolutionBuilder_ == null) { return minimapResolution_ == null ? SC2APIProtocol.Common.Size2DI.getDefaultInstance() : minimapResolution_; } else { return minimapResolutionBuilder_.getMessage(); } } /** * optional .SC2APIProtocol.Size2DI minimap_resolution = 3; */ public Builder setMinimapResolution(SC2APIProtocol.Common.Size2DI value) { if (minimapResolutionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } minimapResolution_ = value; onChanged(); } else { minimapResolutionBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /** * optional .SC2APIProtocol.Size2DI minimap_resolution = 3; */ public Builder setMinimapResolution( SC2APIProtocol.Common.Size2DI.Builder builderForValue) { if (minimapResolutionBuilder_ == null) { minimapResolution_ = builderForValue.build(); onChanged(); } else { minimapResolutionBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** * optional .SC2APIProtocol.Size2DI minimap_resolution = 3; */ public Builder mergeMinimapResolution(SC2APIProtocol.Common.Size2DI value) { if (minimapResolutionBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && minimapResolution_ != null && minimapResolution_ != SC2APIProtocol.Common.Size2DI.getDefaultInstance()) { minimapResolution_ = SC2APIProtocol.Common.Size2DI.newBuilder(minimapResolution_).mergeFrom(value).buildPartial(); } else { minimapResolution_ = value; } onChanged(); } else { minimapResolutionBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** * optional .SC2APIProtocol.Size2DI minimap_resolution = 3; */ public Builder clearMinimapResolution() { if (minimapResolutionBuilder_ == null) { minimapResolution_ = null; onChanged(); } else { minimapResolutionBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** * optional .SC2APIProtocol.Size2DI minimap_resolution = 3; */ public SC2APIProtocol.Common.Size2DI.Builder getMinimapResolutionBuilder() { bitField0_ |= 0x00000002; onChanged(); return getMinimapResolutionFieldBuilder().getBuilder(); } /** * optional .SC2APIProtocol.Size2DI minimap_resolution = 3; */ public SC2APIProtocol.Common.Size2DIOrBuilder getMinimapResolutionOrBuilder() { if (minimapResolutionBuilder_ != null) { return minimapResolutionBuilder_.getMessageOrBuilder(); } else { return minimapResolution_ == null ? SC2APIProtocol.Common.Size2DI.getDefaultInstance() : minimapResolution_; } } /** * optional .SC2APIProtocol.Size2DI minimap_resolution = 3; */ private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Common.Size2DI, SC2APIProtocol.Common.Size2DI.Builder, SC2APIProtocol.Common.Size2DIOrBuilder> getMinimapResolutionFieldBuilder() { if (minimapResolutionBuilder_ == null) { minimapResolutionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Common.Size2DI, SC2APIProtocol.Common.Size2DI.Builder, SC2APIProtocol.Common.Size2DIOrBuilder>( getMinimapResolution(), getParentForChildren(), isClean()); minimapResolution_ = null; } return minimapResolutionBuilder_; } private float width_ ; /** *
       * Below are only relevant for feature layers.
       * 
* * optional float width = 1; * @return Whether the width field is set. */ @java.lang.Override public boolean hasWidth() { return ((bitField0_ & 0x00000004) != 0); } /** *
       * Below are only relevant for feature layers.
       * 
* * optional float width = 1; * @return The width. */ @java.lang.Override public float getWidth() { return width_; } /** *
       * Below are only relevant for feature layers.
       * 
* * optional float width = 1; * @param value The width to set. * @return This builder for chaining. */ public Builder setWidth(float value) { bitField0_ |= 0x00000004; width_ = value; onChanged(); return this; } /** *
       * Below are only relevant for feature layers.
       * 
* * optional float width = 1; * @return This builder for chaining. */ public Builder clearWidth() { bitField0_ = (bitField0_ & ~0x00000004); width_ = 0F; onChanged(); return this; } private boolean cropToPlayableArea_ ; /** *
       * Crop minimap to the playable area.
       * 
* * optional bool crop_to_playable_area = 4; * @return Whether the cropToPlayableArea field is set. */ @java.lang.Override public boolean hasCropToPlayableArea() { return ((bitField0_ & 0x00000008) != 0); } /** *
       * Crop minimap to the playable area.
       * 
* * optional bool crop_to_playable_area = 4; * @return The cropToPlayableArea. */ @java.lang.Override public boolean getCropToPlayableArea() { return cropToPlayableArea_; } /** *
       * Crop minimap to the playable area.
       * 
* * optional bool crop_to_playable_area = 4; * @param value The cropToPlayableArea to set. * @return This builder for chaining. */ public Builder setCropToPlayableArea(boolean value) { bitField0_ |= 0x00000008; cropToPlayableArea_ = value; onChanged(); return this; } /** *
       * Crop minimap to the playable area.
       * 
* * optional bool crop_to_playable_area = 4; * @return This builder for chaining. */ public Builder clearCropToPlayableArea() { bitField0_ = (bitField0_ & ~0x00000008); cropToPlayableArea_ = false; onChanged(); return this; } private boolean allowCheatingLayers_ ; /** *
       * Return unit_type on the minimap, and potentially other cheating layers.
       * 
* * optional bool allow_cheating_layers = 5; * @return Whether the allowCheatingLayers field is set. */ @java.lang.Override public boolean hasAllowCheatingLayers() { return ((bitField0_ & 0x00000010) != 0); } /** *
       * Return unit_type on the minimap, and potentially other cheating layers.
       * 
* * optional bool allow_cheating_layers = 5; * @return The allowCheatingLayers. */ @java.lang.Override public boolean getAllowCheatingLayers() { return allowCheatingLayers_; } /** *
       * Return unit_type on the minimap, and potentially other cheating layers.
       * 
* * optional bool allow_cheating_layers = 5; * @param value The allowCheatingLayers to set. * @return This builder for chaining. */ public Builder setAllowCheatingLayers(boolean value) { bitField0_ |= 0x00000010; allowCheatingLayers_ = value; onChanged(); return this; } /** *
       * Return unit_type on the minimap, and potentially other cheating layers.
       * 
* * optional bool allow_cheating_layers = 5; * @return This builder for chaining. */ public Builder clearAllowCheatingLayers() { bitField0_ = (bitField0_ & ~0x00000010); allowCheatingLayers_ = false; 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.SpatialCameraSetup) } // @@protoc_insertion_point(class_scope:SC2APIProtocol.SpatialCameraSetup) private static final SC2APIProtocol.Sc2Api.SpatialCameraSetup DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new SC2APIProtocol.Sc2Api.SpatialCameraSetup(); } public static SC2APIProtocol.Sc2Api.SpatialCameraSetup getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public SpatialCameraSetup 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.Sc2Api.SpatialCameraSetup getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface InterfaceOptionsOrBuilder extends // @@protoc_insertion_point(interface_extends:SC2APIProtocol.InterfaceOptions) com.google.protobuf.MessageOrBuilder { /** *
     * Interface options
     * 
* * optional bool raw = 1; * @return Whether the raw field is set. */ boolean hasRaw(); /** *
     * Interface options
     * 
* * optional bool raw = 1; * @return The raw. */ boolean getRaw(); /** * optional bool score = 2; * @return Whether the score field is set. */ boolean hasScore(); /** * optional bool score = 2; * @return The score. */ boolean getScore(); /** *
     * Omit to disable.
     * 
* * optional .SC2APIProtocol.SpatialCameraSetup feature_layer = 3; * @return Whether the featureLayer field is set. */ boolean hasFeatureLayer(); /** *
     * Omit to disable.
     * 
* * optional .SC2APIProtocol.SpatialCameraSetup feature_layer = 3; * @return The featureLayer. */ SC2APIProtocol.Sc2Api.SpatialCameraSetup getFeatureLayer(); /** *
     * Omit to disable.
     * 
* * optional .SC2APIProtocol.SpatialCameraSetup feature_layer = 3; */ SC2APIProtocol.Sc2Api.SpatialCameraSetupOrBuilder getFeatureLayerOrBuilder(); /** *
     * Omit to disable.
     * 
* * optional .SC2APIProtocol.SpatialCameraSetup render = 4; * @return Whether the render field is set. */ boolean hasRender(); /** *
     * Omit to disable.
     * 
* * optional .SC2APIProtocol.SpatialCameraSetup render = 4; * @return The render. */ SC2APIProtocol.Sc2Api.SpatialCameraSetup getRender(); /** *
     * Omit to disable.
     * 
* * optional .SC2APIProtocol.SpatialCameraSetup render = 4; */ SC2APIProtocol.Sc2Api.SpatialCameraSetupOrBuilder getRenderOrBuilder(); /** *
     * By default cloaked units are completely hidden. This shows some details.
     * 
* * optional bool show_cloaked = 5; * @return Whether the showCloaked field is set. */ boolean hasShowCloaked(); /** *
     * By default cloaked units are completely hidden. This shows some details.
     * 
* * optional bool show_cloaked = 5; * @return The showCloaked. */ boolean getShowCloaked(); /** *
     * By default burrowed units are completely hidden. This shows some details for those that produce a shadow.
     * 
* * optional bool show_burrowed_shadows = 9; * @return Whether the showBurrowedShadows field is set. */ boolean hasShowBurrowedShadows(); /** *
     * By default burrowed units are completely hidden. This shows some details for those that produce a shadow.
     * 
* * optional bool show_burrowed_shadows = 9; * @return The showBurrowedShadows. */ boolean getShowBurrowedShadows(); /** *
     * Return placeholder units (buildings to be constructed), both for raw and feature layers.
     * 
* * optional bool show_placeholders = 8; * @return Whether the showPlaceholders field is set. */ boolean hasShowPlaceholders(); /** *
     * Return placeholder units (buildings to be constructed), both for raw and feature layers.
     * 
* * optional bool show_placeholders = 8; * @return The showPlaceholders. */ boolean getShowPlaceholders(); /** *
     * By default raw actions select, act and revert the selection. This is useful
     * if you're playing simultaneously with the agent so it doesn't steal your
     * selection. This inflates APM (due to deselect) and makes the actions hard
     * to follow in a replay. Setting this to true will cause raw actions to do
     * select, act, but not revert the selection.
     * 
* * optional bool raw_affects_selection = 6; * @return Whether the rawAffectsSelection field is set. */ boolean hasRawAffectsSelection(); /** *
     * By default raw actions select, act and revert the selection. This is useful
     * if you're playing simultaneously with the agent so it doesn't steal your
     * selection. This inflates APM (due to deselect) and makes the actions hard
     * to follow in a replay. Setting this to true will cause raw actions to do
     * select, act, but not revert the selection.
     * 
* * optional bool raw_affects_selection = 6; * @return The rawAffectsSelection. */ boolean getRawAffectsSelection(); /** *
     * Changes the coordinates in raw.proto to be relative to the playable area.
     * The map_size and playable_area will be the diagonal of the real playable area.
     * 
* * optional bool raw_crop_to_playable_area = 7; * @return Whether the rawCropToPlayableArea field is set. */ boolean hasRawCropToPlayableArea(); /** *
     * Changes the coordinates in raw.proto to be relative to the playable area.
     * The map_size and playable_area will be the diagonal of the real playable area.
     * 
* * optional bool raw_crop_to_playable_area = 7; * @return The rawCropToPlayableArea. */ boolean getRawCropToPlayableArea(); } /** * Protobuf type {@code SC2APIProtocol.InterfaceOptions} */ public static final class InterfaceOptions extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:SC2APIProtocol.InterfaceOptions) InterfaceOptionsOrBuilder { private static final long serialVersionUID = 0L; // Use InterfaceOptions.newBuilder() to construct. private InterfaceOptions(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private InterfaceOptions() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new InterfaceOptions(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_InterfaceOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_InterfaceOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Sc2Api.InterfaceOptions.class, SC2APIProtocol.Sc2Api.InterfaceOptions.Builder.class); } private int bitField0_; public static final int RAW_FIELD_NUMBER = 1; private boolean raw_; /** *
     * Interface options
     * 
* * optional bool raw = 1; * @return Whether the raw field is set. */ @java.lang.Override public boolean hasRaw() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * Interface options
     * 
* * optional bool raw = 1; * @return The raw. */ @java.lang.Override public boolean getRaw() { return raw_; } public static final int SCORE_FIELD_NUMBER = 2; private boolean score_; /** * optional bool score = 2; * @return Whether the score field is set. */ @java.lang.Override public boolean hasScore() { return ((bitField0_ & 0x00000002) != 0); } /** * optional bool score = 2; * @return The score. */ @java.lang.Override public boolean getScore() { return score_; } public static final int FEATURE_LAYER_FIELD_NUMBER = 3; private SC2APIProtocol.Sc2Api.SpatialCameraSetup featureLayer_; /** *
     * Omit to disable.
     * 
* * optional .SC2APIProtocol.SpatialCameraSetup feature_layer = 3; * @return Whether the featureLayer field is set. */ @java.lang.Override public boolean hasFeatureLayer() { return ((bitField0_ & 0x00000004) != 0); } /** *
     * Omit to disable.
     * 
* * optional .SC2APIProtocol.SpatialCameraSetup feature_layer = 3; * @return The featureLayer. */ @java.lang.Override public SC2APIProtocol.Sc2Api.SpatialCameraSetup getFeatureLayer() { return featureLayer_ == null ? SC2APIProtocol.Sc2Api.SpatialCameraSetup.getDefaultInstance() : featureLayer_; } /** *
     * Omit to disable.
     * 
* * optional .SC2APIProtocol.SpatialCameraSetup feature_layer = 3; */ @java.lang.Override public SC2APIProtocol.Sc2Api.SpatialCameraSetupOrBuilder getFeatureLayerOrBuilder() { return featureLayer_ == null ? SC2APIProtocol.Sc2Api.SpatialCameraSetup.getDefaultInstance() : featureLayer_; } public static final int RENDER_FIELD_NUMBER = 4; private SC2APIProtocol.Sc2Api.SpatialCameraSetup render_; /** *
     * Omit to disable.
     * 
* * optional .SC2APIProtocol.SpatialCameraSetup render = 4; * @return Whether the render field is set. */ @java.lang.Override public boolean hasRender() { return ((bitField0_ & 0x00000008) != 0); } /** *
     * Omit to disable.
     * 
* * optional .SC2APIProtocol.SpatialCameraSetup render = 4; * @return The render. */ @java.lang.Override public SC2APIProtocol.Sc2Api.SpatialCameraSetup getRender() { return render_ == null ? SC2APIProtocol.Sc2Api.SpatialCameraSetup.getDefaultInstance() : render_; } /** *
     * Omit to disable.
     * 
* * optional .SC2APIProtocol.SpatialCameraSetup render = 4; */ @java.lang.Override public SC2APIProtocol.Sc2Api.SpatialCameraSetupOrBuilder getRenderOrBuilder() { return render_ == null ? SC2APIProtocol.Sc2Api.SpatialCameraSetup.getDefaultInstance() : render_; } public static final int SHOW_CLOAKED_FIELD_NUMBER = 5; private boolean showCloaked_; /** *
     * By default cloaked units are completely hidden. This shows some details.
     * 
* * optional bool show_cloaked = 5; * @return Whether the showCloaked field is set. */ @java.lang.Override public boolean hasShowCloaked() { return ((bitField0_ & 0x00000010) != 0); } /** *
     * By default cloaked units are completely hidden. This shows some details.
     * 
* * optional bool show_cloaked = 5; * @return The showCloaked. */ @java.lang.Override public boolean getShowCloaked() { return showCloaked_; } public static final int SHOW_BURROWED_SHADOWS_FIELD_NUMBER = 9; private boolean showBurrowedShadows_; /** *
     * By default burrowed units are completely hidden. This shows some details for those that produce a shadow.
     * 
* * optional bool show_burrowed_shadows = 9; * @return Whether the showBurrowedShadows field is set. */ @java.lang.Override public boolean hasShowBurrowedShadows() { return ((bitField0_ & 0x00000020) != 0); } /** *
     * By default burrowed units are completely hidden. This shows some details for those that produce a shadow.
     * 
* * optional bool show_burrowed_shadows = 9; * @return The showBurrowedShadows. */ @java.lang.Override public boolean getShowBurrowedShadows() { return showBurrowedShadows_; } public static final int SHOW_PLACEHOLDERS_FIELD_NUMBER = 8; private boolean showPlaceholders_; /** *
     * Return placeholder units (buildings to be constructed), both for raw and feature layers.
     * 
* * optional bool show_placeholders = 8; * @return Whether the showPlaceholders field is set. */ @java.lang.Override public boolean hasShowPlaceholders() { return ((bitField0_ & 0x00000040) != 0); } /** *
     * Return placeholder units (buildings to be constructed), both for raw and feature layers.
     * 
* * optional bool show_placeholders = 8; * @return The showPlaceholders. */ @java.lang.Override public boolean getShowPlaceholders() { return showPlaceholders_; } public static final int RAW_AFFECTS_SELECTION_FIELD_NUMBER = 6; private boolean rawAffectsSelection_; /** *
     * By default raw actions select, act and revert the selection. This is useful
     * if you're playing simultaneously with the agent so it doesn't steal your
     * selection. This inflates APM (due to deselect) and makes the actions hard
     * to follow in a replay. Setting this to true will cause raw actions to do
     * select, act, but not revert the selection.
     * 
* * optional bool raw_affects_selection = 6; * @return Whether the rawAffectsSelection field is set. */ @java.lang.Override public boolean hasRawAffectsSelection() { return ((bitField0_ & 0x00000080) != 0); } /** *
     * By default raw actions select, act and revert the selection. This is useful
     * if you're playing simultaneously with the agent so it doesn't steal your
     * selection. This inflates APM (due to deselect) and makes the actions hard
     * to follow in a replay. Setting this to true will cause raw actions to do
     * select, act, but not revert the selection.
     * 
* * optional bool raw_affects_selection = 6; * @return The rawAffectsSelection. */ @java.lang.Override public boolean getRawAffectsSelection() { return rawAffectsSelection_; } public static final int RAW_CROP_TO_PLAYABLE_AREA_FIELD_NUMBER = 7; private boolean rawCropToPlayableArea_; /** *
     * Changes the coordinates in raw.proto to be relative to the playable area.
     * The map_size and playable_area will be the diagonal of the real playable area.
     * 
* * optional bool raw_crop_to_playable_area = 7; * @return Whether the rawCropToPlayableArea field is set. */ @java.lang.Override public boolean hasRawCropToPlayableArea() { return ((bitField0_ & 0x00000100) != 0); } /** *
     * Changes the coordinates in raw.proto to be relative to the playable area.
     * The map_size and playable_area will be the diagonal of the real playable area.
     * 
* * optional bool raw_crop_to_playable_area = 7; * @return The rawCropToPlayableArea. */ @java.lang.Override public boolean getRawCropToPlayableArea() { return rawCropToPlayableArea_; } 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.writeBool(1, raw_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeBool(2, score_); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(3, getFeatureLayer()); } if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(4, getRender()); } if (((bitField0_ & 0x00000010) != 0)) { output.writeBool(5, showCloaked_); } if (((bitField0_ & 0x00000080) != 0)) { output.writeBool(6, rawAffectsSelection_); } if (((bitField0_ & 0x00000100) != 0)) { output.writeBool(7, rawCropToPlayableArea_); } if (((bitField0_ & 0x00000040) != 0)) { output.writeBool(8, showPlaceholders_); } if (((bitField0_ & 0x00000020) != 0)) { output.writeBool(9, showBurrowedShadows_); } 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 .computeBoolSize(1, raw_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(2, score_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getFeatureLayer()); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getRender()); } if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(5, showCloaked_); } if (((bitField0_ & 0x00000080) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(6, rawAffectsSelection_); } if (((bitField0_ & 0x00000100) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(7, rawCropToPlayableArea_); } if (((bitField0_ & 0x00000040) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(8, showPlaceholders_); } if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(9, showBurrowedShadows_); } 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.Sc2Api.InterfaceOptions)) { return super.equals(obj); } SC2APIProtocol.Sc2Api.InterfaceOptions other = (SC2APIProtocol.Sc2Api.InterfaceOptions) obj; if (hasRaw() != other.hasRaw()) return false; if (hasRaw()) { if (getRaw() != other.getRaw()) return false; } if (hasScore() != other.hasScore()) return false; if (hasScore()) { if (getScore() != other.getScore()) return false; } if (hasFeatureLayer() != other.hasFeatureLayer()) return false; if (hasFeatureLayer()) { if (!getFeatureLayer() .equals(other.getFeatureLayer())) return false; } if (hasRender() != other.hasRender()) return false; if (hasRender()) { if (!getRender() .equals(other.getRender())) return false; } if (hasShowCloaked() != other.hasShowCloaked()) return false; if (hasShowCloaked()) { if (getShowCloaked() != other.getShowCloaked()) return false; } if (hasShowBurrowedShadows() != other.hasShowBurrowedShadows()) return false; if (hasShowBurrowedShadows()) { if (getShowBurrowedShadows() != other.getShowBurrowedShadows()) return false; } if (hasShowPlaceholders() != other.hasShowPlaceholders()) return false; if (hasShowPlaceholders()) { if (getShowPlaceholders() != other.getShowPlaceholders()) return false; } if (hasRawAffectsSelection() != other.hasRawAffectsSelection()) return false; if (hasRawAffectsSelection()) { if (getRawAffectsSelection() != other.getRawAffectsSelection()) return false; } if (hasRawCropToPlayableArea() != other.hasRawCropToPlayableArea()) return false; if (hasRawCropToPlayableArea()) { if (getRawCropToPlayableArea() != other.getRawCropToPlayableArea()) 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 (hasRaw()) { hash = (37 * hash) + RAW_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getRaw()); } if (hasScore()) { hash = (37 * hash) + SCORE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getScore()); } if (hasFeatureLayer()) { hash = (37 * hash) + FEATURE_LAYER_FIELD_NUMBER; hash = (53 * hash) + getFeatureLayer().hashCode(); } if (hasRender()) { hash = (37 * hash) + RENDER_FIELD_NUMBER; hash = (53 * hash) + getRender().hashCode(); } if (hasShowCloaked()) { hash = (37 * hash) + SHOW_CLOAKED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getShowCloaked()); } if (hasShowBurrowedShadows()) { hash = (37 * hash) + SHOW_BURROWED_SHADOWS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getShowBurrowedShadows()); } if (hasShowPlaceholders()) { hash = (37 * hash) + SHOW_PLACEHOLDERS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getShowPlaceholders()); } if (hasRawAffectsSelection()) { hash = (37 * hash) + RAW_AFFECTS_SELECTION_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getRawAffectsSelection()); } if (hasRawCropToPlayableArea()) { hash = (37 * hash) + RAW_CROP_TO_PLAYABLE_AREA_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getRawCropToPlayableArea()); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static SC2APIProtocol.Sc2Api.InterfaceOptions parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.InterfaceOptions parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.InterfaceOptions parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.InterfaceOptions parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.InterfaceOptions parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.InterfaceOptions parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.InterfaceOptions parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.InterfaceOptions 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.Sc2Api.InterfaceOptions parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.InterfaceOptions 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.Sc2Api.InterfaceOptions parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.InterfaceOptions 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.Sc2Api.InterfaceOptions 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.InterfaceOptions} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:SC2APIProtocol.InterfaceOptions) SC2APIProtocol.Sc2Api.InterfaceOptionsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_InterfaceOptions_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_InterfaceOptions_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Sc2Api.InterfaceOptions.class, SC2APIProtocol.Sc2Api.InterfaceOptions.Builder.class); } // Construct using SC2APIProtocol.Sc2Api.InterfaceOptions.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getFeatureLayerFieldBuilder(); getRenderFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); raw_ = false; bitField0_ = (bitField0_ & ~0x00000001); score_ = false; bitField0_ = (bitField0_ & ~0x00000002); if (featureLayerBuilder_ == null) { featureLayer_ = null; } else { featureLayerBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); if (renderBuilder_ == null) { render_ = null; } else { renderBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); showCloaked_ = false; bitField0_ = (bitField0_ & ~0x00000010); showBurrowedShadows_ = false; bitField0_ = (bitField0_ & ~0x00000020); showPlaceholders_ = false; bitField0_ = (bitField0_ & ~0x00000040); rawAffectsSelection_ = false; bitField0_ = (bitField0_ & ~0x00000080); rawCropToPlayableArea_ = false; bitField0_ = (bitField0_ & ~0x00000100); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_InterfaceOptions_descriptor; } @java.lang.Override public SC2APIProtocol.Sc2Api.InterfaceOptions getDefaultInstanceForType() { return SC2APIProtocol.Sc2Api.InterfaceOptions.getDefaultInstance(); } @java.lang.Override public SC2APIProtocol.Sc2Api.InterfaceOptions build() { SC2APIProtocol.Sc2Api.InterfaceOptions result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public SC2APIProtocol.Sc2Api.InterfaceOptions buildPartial() { SC2APIProtocol.Sc2Api.InterfaceOptions result = new SC2APIProtocol.Sc2Api.InterfaceOptions(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.raw_ = raw_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.score_ = score_; to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { if (featureLayerBuilder_ == null) { result.featureLayer_ = featureLayer_; } else { result.featureLayer_ = featureLayerBuilder_.build(); } to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000008) != 0)) { if (renderBuilder_ == null) { result.render_ = render_; } else { result.render_ = renderBuilder_.build(); } to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000010) != 0)) { result.showCloaked_ = showCloaked_; to_bitField0_ |= 0x00000010; } if (((from_bitField0_ & 0x00000020) != 0)) { result.showBurrowedShadows_ = showBurrowedShadows_; to_bitField0_ |= 0x00000020; } if (((from_bitField0_ & 0x00000040) != 0)) { result.showPlaceholders_ = showPlaceholders_; to_bitField0_ |= 0x00000040; } if (((from_bitField0_ & 0x00000080) != 0)) { result.rawAffectsSelection_ = rawAffectsSelection_; to_bitField0_ |= 0x00000080; } if (((from_bitField0_ & 0x00000100) != 0)) { result.rawCropToPlayableArea_ = rawCropToPlayableArea_; to_bitField0_ |= 0x00000100; } 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.Sc2Api.InterfaceOptions) { return mergeFrom((SC2APIProtocol.Sc2Api.InterfaceOptions)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(SC2APIProtocol.Sc2Api.InterfaceOptions other) { if (other == SC2APIProtocol.Sc2Api.InterfaceOptions.getDefaultInstance()) return this; if (other.hasRaw()) { setRaw(other.getRaw()); } if (other.hasScore()) { setScore(other.getScore()); } if (other.hasFeatureLayer()) { mergeFeatureLayer(other.getFeatureLayer()); } if (other.hasRender()) { mergeRender(other.getRender()); } if (other.hasShowCloaked()) { setShowCloaked(other.getShowCloaked()); } if (other.hasShowBurrowedShadows()) { setShowBurrowedShadows(other.getShowBurrowedShadows()); } if (other.hasShowPlaceholders()) { setShowPlaceholders(other.getShowPlaceholders()); } if (other.hasRawAffectsSelection()) { setRawAffectsSelection(other.getRawAffectsSelection()); } if (other.hasRawCropToPlayableArea()) { setRawCropToPlayableArea(other.getRawCropToPlayableArea()); } 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: { raw_ = input.readBool(); bitField0_ |= 0x00000001; break; } // case 8 case 16: { score_ = input.readBool(); bitField0_ |= 0x00000002; break; } // case 16 case 26: { input.readMessage( getFeatureLayerFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 26 case 34: { input.readMessage( getRenderFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000008; break; } // case 34 case 40: { showCloaked_ = input.readBool(); bitField0_ |= 0x00000010; break; } // case 40 case 48: { rawAffectsSelection_ = input.readBool(); bitField0_ |= 0x00000080; break; } // case 48 case 56: { rawCropToPlayableArea_ = input.readBool(); bitField0_ |= 0x00000100; break; } // case 56 case 64: { showPlaceholders_ = input.readBool(); bitField0_ |= 0x00000040; break; } // case 64 case 72: { showBurrowedShadows_ = input.readBool(); bitField0_ |= 0x00000020; break; } // case 72 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 boolean raw_ ; /** *
       * Interface options
       * 
* * optional bool raw = 1; * @return Whether the raw field is set. */ @java.lang.Override public boolean hasRaw() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * Interface options
       * 
* * optional bool raw = 1; * @return The raw. */ @java.lang.Override public boolean getRaw() { return raw_; } /** *
       * Interface options
       * 
* * optional bool raw = 1; * @param value The raw to set. * @return This builder for chaining. */ public Builder setRaw(boolean value) { bitField0_ |= 0x00000001; raw_ = value; onChanged(); return this; } /** *
       * Interface options
       * 
* * optional bool raw = 1; * @return This builder for chaining. */ public Builder clearRaw() { bitField0_ = (bitField0_ & ~0x00000001); raw_ = false; onChanged(); return this; } private boolean score_ ; /** * optional bool score = 2; * @return Whether the score field is set. */ @java.lang.Override public boolean hasScore() { return ((bitField0_ & 0x00000002) != 0); } /** * optional bool score = 2; * @return The score. */ @java.lang.Override public boolean getScore() { return score_; } /** * optional bool score = 2; * @param value The score to set. * @return This builder for chaining. */ public Builder setScore(boolean value) { bitField0_ |= 0x00000002; score_ = value; onChanged(); return this; } /** * optional bool score = 2; * @return This builder for chaining. */ public Builder clearScore() { bitField0_ = (bitField0_ & ~0x00000002); score_ = false; onChanged(); return this; } private SC2APIProtocol.Sc2Api.SpatialCameraSetup featureLayer_; private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.SpatialCameraSetup, SC2APIProtocol.Sc2Api.SpatialCameraSetup.Builder, SC2APIProtocol.Sc2Api.SpatialCameraSetupOrBuilder> featureLayerBuilder_; /** *
       * Omit to disable.
       * 
* * optional .SC2APIProtocol.SpatialCameraSetup feature_layer = 3; * @return Whether the featureLayer field is set. */ public boolean hasFeatureLayer() { return ((bitField0_ & 0x00000004) != 0); } /** *
       * Omit to disable.
       * 
* * optional .SC2APIProtocol.SpatialCameraSetup feature_layer = 3; * @return The featureLayer. */ public SC2APIProtocol.Sc2Api.SpatialCameraSetup getFeatureLayer() { if (featureLayerBuilder_ == null) { return featureLayer_ == null ? SC2APIProtocol.Sc2Api.SpatialCameraSetup.getDefaultInstance() : featureLayer_; } else { return featureLayerBuilder_.getMessage(); } } /** *
       * Omit to disable.
       * 
* * optional .SC2APIProtocol.SpatialCameraSetup feature_layer = 3; */ public Builder setFeatureLayer(SC2APIProtocol.Sc2Api.SpatialCameraSetup value) { if (featureLayerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } featureLayer_ = value; onChanged(); } else { featureLayerBuilder_.setMessage(value); } bitField0_ |= 0x00000004; return this; } /** *
       * Omit to disable.
       * 
* * optional .SC2APIProtocol.SpatialCameraSetup feature_layer = 3; */ public Builder setFeatureLayer( SC2APIProtocol.Sc2Api.SpatialCameraSetup.Builder builderForValue) { if (featureLayerBuilder_ == null) { featureLayer_ = builderForValue.build(); onChanged(); } else { featureLayerBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; return this; } /** *
       * Omit to disable.
       * 
* * optional .SC2APIProtocol.SpatialCameraSetup feature_layer = 3; */ public Builder mergeFeatureLayer(SC2APIProtocol.Sc2Api.SpatialCameraSetup value) { if (featureLayerBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && featureLayer_ != null && featureLayer_ != SC2APIProtocol.Sc2Api.SpatialCameraSetup.getDefaultInstance()) { featureLayer_ = SC2APIProtocol.Sc2Api.SpatialCameraSetup.newBuilder(featureLayer_).mergeFrom(value).buildPartial(); } else { featureLayer_ = value; } onChanged(); } else { featureLayerBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; return this; } /** *
       * Omit to disable.
       * 
* * optional .SC2APIProtocol.SpatialCameraSetup feature_layer = 3; */ public Builder clearFeatureLayer() { if (featureLayerBuilder_ == null) { featureLayer_ = null; onChanged(); } else { featureLayerBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } /** *
       * Omit to disable.
       * 
* * optional .SC2APIProtocol.SpatialCameraSetup feature_layer = 3; */ public SC2APIProtocol.Sc2Api.SpatialCameraSetup.Builder getFeatureLayerBuilder() { bitField0_ |= 0x00000004; onChanged(); return getFeatureLayerFieldBuilder().getBuilder(); } /** *
       * Omit to disable.
       * 
* * optional .SC2APIProtocol.SpatialCameraSetup feature_layer = 3; */ public SC2APIProtocol.Sc2Api.SpatialCameraSetupOrBuilder getFeatureLayerOrBuilder() { if (featureLayerBuilder_ != null) { return featureLayerBuilder_.getMessageOrBuilder(); } else { return featureLayer_ == null ? SC2APIProtocol.Sc2Api.SpatialCameraSetup.getDefaultInstance() : featureLayer_; } } /** *
       * Omit to disable.
       * 
* * optional .SC2APIProtocol.SpatialCameraSetup feature_layer = 3; */ private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.SpatialCameraSetup, SC2APIProtocol.Sc2Api.SpatialCameraSetup.Builder, SC2APIProtocol.Sc2Api.SpatialCameraSetupOrBuilder> getFeatureLayerFieldBuilder() { if (featureLayerBuilder_ == null) { featureLayerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.SpatialCameraSetup, SC2APIProtocol.Sc2Api.SpatialCameraSetup.Builder, SC2APIProtocol.Sc2Api.SpatialCameraSetupOrBuilder>( getFeatureLayer(), getParentForChildren(), isClean()); featureLayer_ = null; } return featureLayerBuilder_; } private SC2APIProtocol.Sc2Api.SpatialCameraSetup render_; private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.SpatialCameraSetup, SC2APIProtocol.Sc2Api.SpatialCameraSetup.Builder, SC2APIProtocol.Sc2Api.SpatialCameraSetupOrBuilder> renderBuilder_; /** *
       * Omit to disable.
       * 
* * optional .SC2APIProtocol.SpatialCameraSetup render = 4; * @return Whether the render field is set. */ public boolean hasRender() { return ((bitField0_ & 0x00000008) != 0); } /** *
       * Omit to disable.
       * 
* * optional .SC2APIProtocol.SpatialCameraSetup render = 4; * @return The render. */ public SC2APIProtocol.Sc2Api.SpatialCameraSetup getRender() { if (renderBuilder_ == null) { return render_ == null ? SC2APIProtocol.Sc2Api.SpatialCameraSetup.getDefaultInstance() : render_; } else { return renderBuilder_.getMessage(); } } /** *
       * Omit to disable.
       * 
* * optional .SC2APIProtocol.SpatialCameraSetup render = 4; */ public Builder setRender(SC2APIProtocol.Sc2Api.SpatialCameraSetup value) { if (renderBuilder_ == null) { if (value == null) { throw new NullPointerException(); } render_ = value; onChanged(); } else { renderBuilder_.setMessage(value); } bitField0_ |= 0x00000008; return this; } /** *
       * Omit to disable.
       * 
* * optional .SC2APIProtocol.SpatialCameraSetup render = 4; */ public Builder setRender( SC2APIProtocol.Sc2Api.SpatialCameraSetup.Builder builderForValue) { if (renderBuilder_ == null) { render_ = builderForValue.build(); onChanged(); } else { renderBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; return this; } /** *
       * Omit to disable.
       * 
* * optional .SC2APIProtocol.SpatialCameraSetup render = 4; */ public Builder mergeRender(SC2APIProtocol.Sc2Api.SpatialCameraSetup value) { if (renderBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0) && render_ != null && render_ != SC2APIProtocol.Sc2Api.SpatialCameraSetup.getDefaultInstance()) { render_ = SC2APIProtocol.Sc2Api.SpatialCameraSetup.newBuilder(render_).mergeFrom(value).buildPartial(); } else { render_ = value; } onChanged(); } else { renderBuilder_.mergeFrom(value); } bitField0_ |= 0x00000008; return this; } /** *
       * Omit to disable.
       * 
* * optional .SC2APIProtocol.SpatialCameraSetup render = 4; */ public Builder clearRender() { if (renderBuilder_ == null) { render_ = null; onChanged(); } else { renderBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); return this; } /** *
       * Omit to disable.
       * 
* * optional .SC2APIProtocol.SpatialCameraSetup render = 4; */ public SC2APIProtocol.Sc2Api.SpatialCameraSetup.Builder getRenderBuilder() { bitField0_ |= 0x00000008; onChanged(); return getRenderFieldBuilder().getBuilder(); } /** *
       * Omit to disable.
       * 
* * optional .SC2APIProtocol.SpatialCameraSetup render = 4; */ public SC2APIProtocol.Sc2Api.SpatialCameraSetupOrBuilder getRenderOrBuilder() { if (renderBuilder_ != null) { return renderBuilder_.getMessageOrBuilder(); } else { return render_ == null ? SC2APIProtocol.Sc2Api.SpatialCameraSetup.getDefaultInstance() : render_; } } /** *
       * Omit to disable.
       * 
* * optional .SC2APIProtocol.SpatialCameraSetup render = 4; */ private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.SpatialCameraSetup, SC2APIProtocol.Sc2Api.SpatialCameraSetup.Builder, SC2APIProtocol.Sc2Api.SpatialCameraSetupOrBuilder> getRenderFieldBuilder() { if (renderBuilder_ == null) { renderBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.SpatialCameraSetup, SC2APIProtocol.Sc2Api.SpatialCameraSetup.Builder, SC2APIProtocol.Sc2Api.SpatialCameraSetupOrBuilder>( getRender(), getParentForChildren(), isClean()); render_ = null; } return renderBuilder_; } private boolean showCloaked_ ; /** *
       * By default cloaked units are completely hidden. This shows some details.
       * 
* * optional bool show_cloaked = 5; * @return Whether the showCloaked field is set. */ @java.lang.Override public boolean hasShowCloaked() { return ((bitField0_ & 0x00000010) != 0); } /** *
       * By default cloaked units are completely hidden. This shows some details.
       * 
* * optional bool show_cloaked = 5; * @return The showCloaked. */ @java.lang.Override public boolean getShowCloaked() { return showCloaked_; } /** *
       * By default cloaked units are completely hidden. This shows some details.
       * 
* * optional bool show_cloaked = 5; * @param value The showCloaked to set. * @return This builder for chaining. */ public Builder setShowCloaked(boolean value) { bitField0_ |= 0x00000010; showCloaked_ = value; onChanged(); return this; } /** *
       * By default cloaked units are completely hidden. This shows some details.
       * 
* * optional bool show_cloaked = 5; * @return This builder for chaining. */ public Builder clearShowCloaked() { bitField0_ = (bitField0_ & ~0x00000010); showCloaked_ = false; onChanged(); return this; } private boolean showBurrowedShadows_ ; /** *
       * By default burrowed units are completely hidden. This shows some details for those that produce a shadow.
       * 
* * optional bool show_burrowed_shadows = 9; * @return Whether the showBurrowedShadows field is set. */ @java.lang.Override public boolean hasShowBurrowedShadows() { return ((bitField0_ & 0x00000020) != 0); } /** *
       * By default burrowed units are completely hidden. This shows some details for those that produce a shadow.
       * 
* * optional bool show_burrowed_shadows = 9; * @return The showBurrowedShadows. */ @java.lang.Override public boolean getShowBurrowedShadows() { return showBurrowedShadows_; } /** *
       * By default burrowed units are completely hidden. This shows some details for those that produce a shadow.
       * 
* * optional bool show_burrowed_shadows = 9; * @param value The showBurrowedShadows to set. * @return This builder for chaining. */ public Builder setShowBurrowedShadows(boolean value) { bitField0_ |= 0x00000020; showBurrowedShadows_ = value; onChanged(); return this; } /** *
       * By default burrowed units are completely hidden. This shows some details for those that produce a shadow.
       * 
* * optional bool show_burrowed_shadows = 9; * @return This builder for chaining. */ public Builder clearShowBurrowedShadows() { bitField0_ = (bitField0_ & ~0x00000020); showBurrowedShadows_ = false; onChanged(); return this; } private boolean showPlaceholders_ ; /** *
       * Return placeholder units (buildings to be constructed), both for raw and feature layers.
       * 
* * optional bool show_placeholders = 8; * @return Whether the showPlaceholders field is set. */ @java.lang.Override public boolean hasShowPlaceholders() { return ((bitField0_ & 0x00000040) != 0); } /** *
       * Return placeholder units (buildings to be constructed), both for raw and feature layers.
       * 
* * optional bool show_placeholders = 8; * @return The showPlaceholders. */ @java.lang.Override public boolean getShowPlaceholders() { return showPlaceholders_; } /** *
       * Return placeholder units (buildings to be constructed), both for raw and feature layers.
       * 
* * optional bool show_placeholders = 8; * @param value The showPlaceholders to set. * @return This builder for chaining. */ public Builder setShowPlaceholders(boolean value) { bitField0_ |= 0x00000040; showPlaceholders_ = value; onChanged(); return this; } /** *
       * Return placeholder units (buildings to be constructed), both for raw and feature layers.
       * 
* * optional bool show_placeholders = 8; * @return This builder for chaining. */ public Builder clearShowPlaceholders() { bitField0_ = (bitField0_ & ~0x00000040); showPlaceholders_ = false; onChanged(); return this; } private boolean rawAffectsSelection_ ; /** *
       * By default raw actions select, act and revert the selection. This is useful
       * if you're playing simultaneously with the agent so it doesn't steal your
       * selection. This inflates APM (due to deselect) and makes the actions hard
       * to follow in a replay. Setting this to true will cause raw actions to do
       * select, act, but not revert the selection.
       * 
* * optional bool raw_affects_selection = 6; * @return Whether the rawAffectsSelection field is set. */ @java.lang.Override public boolean hasRawAffectsSelection() { return ((bitField0_ & 0x00000080) != 0); } /** *
       * By default raw actions select, act and revert the selection. This is useful
       * if you're playing simultaneously with the agent so it doesn't steal your
       * selection. This inflates APM (due to deselect) and makes the actions hard
       * to follow in a replay. Setting this to true will cause raw actions to do
       * select, act, but not revert the selection.
       * 
* * optional bool raw_affects_selection = 6; * @return The rawAffectsSelection. */ @java.lang.Override public boolean getRawAffectsSelection() { return rawAffectsSelection_; } /** *
       * By default raw actions select, act and revert the selection. This is useful
       * if you're playing simultaneously with the agent so it doesn't steal your
       * selection. This inflates APM (due to deselect) and makes the actions hard
       * to follow in a replay. Setting this to true will cause raw actions to do
       * select, act, but not revert the selection.
       * 
* * optional bool raw_affects_selection = 6; * @param value The rawAffectsSelection to set. * @return This builder for chaining. */ public Builder setRawAffectsSelection(boolean value) { bitField0_ |= 0x00000080; rawAffectsSelection_ = value; onChanged(); return this; } /** *
       * By default raw actions select, act and revert the selection. This is useful
       * if you're playing simultaneously with the agent so it doesn't steal your
       * selection. This inflates APM (due to deselect) and makes the actions hard
       * to follow in a replay. Setting this to true will cause raw actions to do
       * select, act, but not revert the selection.
       * 
* * optional bool raw_affects_selection = 6; * @return This builder for chaining. */ public Builder clearRawAffectsSelection() { bitField0_ = (bitField0_ & ~0x00000080); rawAffectsSelection_ = false; onChanged(); return this; } private boolean rawCropToPlayableArea_ ; /** *
       * Changes the coordinates in raw.proto to be relative to the playable area.
       * The map_size and playable_area will be the diagonal of the real playable area.
       * 
* * optional bool raw_crop_to_playable_area = 7; * @return Whether the rawCropToPlayableArea field is set. */ @java.lang.Override public boolean hasRawCropToPlayableArea() { return ((bitField0_ & 0x00000100) != 0); } /** *
       * Changes the coordinates in raw.proto to be relative to the playable area.
       * The map_size and playable_area will be the diagonal of the real playable area.
       * 
* * optional bool raw_crop_to_playable_area = 7; * @return The rawCropToPlayableArea. */ @java.lang.Override public boolean getRawCropToPlayableArea() { return rawCropToPlayableArea_; } /** *
       * Changes the coordinates in raw.proto to be relative to the playable area.
       * The map_size and playable_area will be the diagonal of the real playable area.
       * 
* * optional bool raw_crop_to_playable_area = 7; * @param value The rawCropToPlayableArea to set. * @return This builder for chaining. */ public Builder setRawCropToPlayableArea(boolean value) { bitField0_ |= 0x00000100; rawCropToPlayableArea_ = value; onChanged(); return this; } /** *
       * Changes the coordinates in raw.proto to be relative to the playable area.
       * The map_size and playable_area will be the diagonal of the real playable area.
       * 
* * optional bool raw_crop_to_playable_area = 7; * @return This builder for chaining. */ public Builder clearRawCropToPlayableArea() { bitField0_ = (bitField0_ & ~0x00000100); rawCropToPlayableArea_ = false; 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.InterfaceOptions) } // @@protoc_insertion_point(class_scope:SC2APIProtocol.InterfaceOptions) private static final SC2APIProtocol.Sc2Api.InterfaceOptions DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new SC2APIProtocol.Sc2Api.InterfaceOptions(); } public static SC2APIProtocol.Sc2Api.InterfaceOptions getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public InterfaceOptions 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.Sc2Api.InterfaceOptions getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PlayerInfoOrBuilder extends // @@protoc_insertion_point(interface_extends:SC2APIProtocol.PlayerInfo) com.google.protobuf.MessageOrBuilder { /** *
     * Identifier that will be used to reference this player.
     * SC2 will always assign playerIds starting from 1 in standard Melee maps. This may not be true in custom maps.
     * 
* * optional uint32 player_id = 1; * @return Whether the playerId field is set. */ boolean hasPlayerId(); /** *
     * Identifier that will be used to reference this player.
     * SC2 will always assign playerIds starting from 1 in standard Melee maps. This may not be true in custom maps.
     * 
* * optional uint32 player_id = 1; * @return The playerId. */ int getPlayerId(); /** * optional .SC2APIProtocol.PlayerType type = 2; * @return Whether the type field is set. */ boolean hasType(); /** * optional .SC2APIProtocol.PlayerType type = 2; * @return The type. */ SC2APIProtocol.Sc2Api.PlayerType getType(); /** * optional .SC2APIProtocol.Race race_requested = 3; * @return Whether the raceRequested field is set. */ boolean hasRaceRequested(); /** * optional .SC2APIProtocol.Race race_requested = 3; * @return The raceRequested. */ SC2APIProtocol.Common.Race getRaceRequested(); /** *
     * Only populated for your player or when watching replay
     * 
* * optional .SC2APIProtocol.Race race_actual = 4; * @return Whether the raceActual field is set. */ boolean hasRaceActual(); /** *
     * Only populated for your player or when watching replay
     * 
* * optional .SC2APIProtocol.Race race_actual = 4; * @return The raceActual. */ SC2APIProtocol.Common.Race getRaceActual(); /** * optional .SC2APIProtocol.Difficulty difficulty = 5; * @return Whether the difficulty field is set. */ boolean hasDifficulty(); /** * optional .SC2APIProtocol.Difficulty difficulty = 5; * @return The difficulty. */ SC2APIProtocol.Sc2Api.Difficulty getDifficulty(); /** * optional .SC2APIProtocol.AIBuild ai_build = 7; * @return Whether the aiBuild field is set. */ boolean hasAiBuild(); /** * optional .SC2APIProtocol.AIBuild ai_build = 7; * @return The aiBuild. */ SC2APIProtocol.Sc2Api.AIBuild getAiBuild(); /** * optional string player_name = 6; * @return Whether the playerName field is set. */ boolean hasPlayerName(); /** * optional string player_name = 6; * @return The playerName. */ java.lang.String getPlayerName(); /** * optional string player_name = 6; * @return The bytes for playerName. */ com.google.protobuf.ByteString getPlayerNameBytes(); } /** * Protobuf type {@code SC2APIProtocol.PlayerInfo} */ public static final class PlayerInfo extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:SC2APIProtocol.PlayerInfo) PlayerInfoOrBuilder { private static final long serialVersionUID = 0L; // Use PlayerInfo.newBuilder() to construct. private PlayerInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PlayerInfo() { type_ = 1; raceRequested_ = 0; raceActual_ = 0; difficulty_ = 1; aiBuild_ = 1; playerName_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new PlayerInfo(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_PlayerInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_PlayerInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Sc2Api.PlayerInfo.class, SC2APIProtocol.Sc2Api.PlayerInfo.Builder.class); } private int bitField0_; public static final int PLAYER_ID_FIELD_NUMBER = 1; private int playerId_; /** *
     * Identifier that will be used to reference this player.
     * SC2 will always assign playerIds starting from 1 in standard Melee maps. This may not be true in custom maps.
     * 
* * optional uint32 player_id = 1; * @return Whether the playerId field is set. */ @java.lang.Override public boolean hasPlayerId() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * Identifier that will be used to reference this player.
     * SC2 will always assign playerIds starting from 1 in standard Melee maps. This may not be true in custom maps.
     * 
* * optional uint32 player_id = 1; * @return The playerId. */ @java.lang.Override public int getPlayerId() { return playerId_; } public static final int TYPE_FIELD_NUMBER = 2; private int type_; /** * optional .SC2APIProtocol.PlayerType type = 2; * @return Whether the type field is set. */ @java.lang.Override public boolean hasType() { return ((bitField0_ & 0x00000002) != 0); } /** * optional .SC2APIProtocol.PlayerType type = 2; * @return The type. */ @java.lang.Override public SC2APIProtocol.Sc2Api.PlayerType getType() { @SuppressWarnings("deprecation") SC2APIProtocol.Sc2Api.PlayerType result = SC2APIProtocol.Sc2Api.PlayerType.valueOf(type_); return result == null ? SC2APIProtocol.Sc2Api.PlayerType.Participant : result; } public static final int RACE_REQUESTED_FIELD_NUMBER = 3; private int raceRequested_; /** * optional .SC2APIProtocol.Race race_requested = 3; * @return Whether the raceRequested field is set. */ @java.lang.Override public boolean hasRaceRequested() { return ((bitField0_ & 0x00000004) != 0); } /** * optional .SC2APIProtocol.Race race_requested = 3; * @return The raceRequested. */ @java.lang.Override public SC2APIProtocol.Common.Race getRaceRequested() { @SuppressWarnings("deprecation") SC2APIProtocol.Common.Race result = SC2APIProtocol.Common.Race.valueOf(raceRequested_); return result == null ? SC2APIProtocol.Common.Race.NoRace : result; } public static final int RACE_ACTUAL_FIELD_NUMBER = 4; private int raceActual_; /** *
     * Only populated for your player or when watching replay
     * 
* * optional .SC2APIProtocol.Race race_actual = 4; * @return Whether the raceActual field is set. */ @java.lang.Override public boolean hasRaceActual() { return ((bitField0_ & 0x00000008) != 0); } /** *
     * Only populated for your player or when watching replay
     * 
* * optional .SC2APIProtocol.Race race_actual = 4; * @return The raceActual. */ @java.lang.Override public SC2APIProtocol.Common.Race getRaceActual() { @SuppressWarnings("deprecation") SC2APIProtocol.Common.Race result = SC2APIProtocol.Common.Race.valueOf(raceActual_); return result == null ? SC2APIProtocol.Common.Race.NoRace : result; } public static final int DIFFICULTY_FIELD_NUMBER = 5; private int difficulty_; /** * optional .SC2APIProtocol.Difficulty difficulty = 5; * @return Whether the difficulty field is set. */ @java.lang.Override public boolean hasDifficulty() { return ((bitField0_ & 0x00000010) != 0); } /** * optional .SC2APIProtocol.Difficulty difficulty = 5; * @return The difficulty. */ @java.lang.Override public SC2APIProtocol.Sc2Api.Difficulty getDifficulty() { @SuppressWarnings("deprecation") SC2APIProtocol.Sc2Api.Difficulty result = SC2APIProtocol.Sc2Api.Difficulty.valueOf(difficulty_); return result == null ? SC2APIProtocol.Sc2Api.Difficulty.VeryEasy : result; } public static final int AI_BUILD_FIELD_NUMBER = 7; private int aiBuild_; /** * optional .SC2APIProtocol.AIBuild ai_build = 7; * @return Whether the aiBuild field is set. */ @java.lang.Override public boolean hasAiBuild() { return ((bitField0_ & 0x00000020) != 0); } /** * optional .SC2APIProtocol.AIBuild ai_build = 7; * @return The aiBuild. */ @java.lang.Override public SC2APIProtocol.Sc2Api.AIBuild getAiBuild() { @SuppressWarnings("deprecation") SC2APIProtocol.Sc2Api.AIBuild result = SC2APIProtocol.Sc2Api.AIBuild.valueOf(aiBuild_); return result == null ? SC2APIProtocol.Sc2Api.AIBuild.RandomBuild : result; } public static final int PLAYER_NAME_FIELD_NUMBER = 6; private volatile java.lang.Object playerName_; /** * optional string player_name = 6; * @return Whether the playerName field is set. */ @java.lang.Override public boolean hasPlayerName() { return ((bitField0_ & 0x00000040) != 0); } /** * optional string player_name = 6; * @return The playerName. */ @java.lang.Override public java.lang.String getPlayerName() { java.lang.Object ref = playerName_; 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()) { playerName_ = s; } return s; } } /** * optional string player_name = 6; * @return The bytes for playerName. */ @java.lang.Override public com.google.protobuf.ByteString getPlayerNameBytes() { java.lang.Object ref = playerName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); playerName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } 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, playerId_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeEnum(2, type_); } if (((bitField0_ & 0x00000004) != 0)) { output.writeEnum(3, raceRequested_); } if (((bitField0_ & 0x00000008) != 0)) { output.writeEnum(4, raceActual_); } if (((bitField0_ & 0x00000010) != 0)) { output.writeEnum(5, difficulty_); } if (((bitField0_ & 0x00000040) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, playerName_); } if (((bitField0_ & 0x00000020) != 0)) { output.writeEnum(7, aiBuild_); } 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, playerId_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, type_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(3, raceRequested_); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(4, raceActual_); } if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(5, difficulty_); } if (((bitField0_ & 0x00000040) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, playerName_); } if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(7, aiBuild_); } 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.Sc2Api.PlayerInfo)) { return super.equals(obj); } SC2APIProtocol.Sc2Api.PlayerInfo other = (SC2APIProtocol.Sc2Api.PlayerInfo) obj; if (hasPlayerId() != other.hasPlayerId()) return false; if (hasPlayerId()) { if (getPlayerId() != other.getPlayerId()) return false; } if (hasType() != other.hasType()) return false; if (hasType()) { if (type_ != other.type_) return false; } if (hasRaceRequested() != other.hasRaceRequested()) return false; if (hasRaceRequested()) { if (raceRequested_ != other.raceRequested_) return false; } if (hasRaceActual() != other.hasRaceActual()) return false; if (hasRaceActual()) { if (raceActual_ != other.raceActual_) return false; } if (hasDifficulty() != other.hasDifficulty()) return false; if (hasDifficulty()) { if (difficulty_ != other.difficulty_) return false; } if (hasAiBuild() != other.hasAiBuild()) return false; if (hasAiBuild()) { if (aiBuild_ != other.aiBuild_) return false; } if (hasPlayerName() != other.hasPlayerName()) return false; if (hasPlayerName()) { if (!getPlayerName() .equals(other.getPlayerName())) 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 (hasPlayerId()) { hash = (37 * hash) + PLAYER_ID_FIELD_NUMBER; hash = (53 * hash) + getPlayerId(); } if (hasType()) { hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_; } if (hasRaceRequested()) { hash = (37 * hash) + RACE_REQUESTED_FIELD_NUMBER; hash = (53 * hash) + raceRequested_; } if (hasRaceActual()) { hash = (37 * hash) + RACE_ACTUAL_FIELD_NUMBER; hash = (53 * hash) + raceActual_; } if (hasDifficulty()) { hash = (37 * hash) + DIFFICULTY_FIELD_NUMBER; hash = (53 * hash) + difficulty_; } if (hasAiBuild()) { hash = (37 * hash) + AI_BUILD_FIELD_NUMBER; hash = (53 * hash) + aiBuild_; } if (hasPlayerName()) { hash = (37 * hash) + PLAYER_NAME_FIELD_NUMBER; hash = (53 * hash) + getPlayerName().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static SC2APIProtocol.Sc2Api.PlayerInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.PlayerInfo parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.PlayerInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.PlayerInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.PlayerInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.PlayerInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.PlayerInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.PlayerInfo 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.Sc2Api.PlayerInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.PlayerInfo 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.Sc2Api.PlayerInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.PlayerInfo 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.Sc2Api.PlayerInfo 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.PlayerInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:SC2APIProtocol.PlayerInfo) SC2APIProtocol.Sc2Api.PlayerInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_PlayerInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_PlayerInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Sc2Api.PlayerInfo.class, SC2APIProtocol.Sc2Api.PlayerInfo.Builder.class); } // Construct using SC2APIProtocol.Sc2Api.PlayerInfo.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); playerId_ = 0; bitField0_ = (bitField0_ & ~0x00000001); type_ = 1; bitField0_ = (bitField0_ & ~0x00000002); raceRequested_ = 0; bitField0_ = (bitField0_ & ~0x00000004); raceActual_ = 0; bitField0_ = (bitField0_ & ~0x00000008); difficulty_ = 1; bitField0_ = (bitField0_ & ~0x00000010); aiBuild_ = 1; bitField0_ = (bitField0_ & ~0x00000020); playerName_ = ""; bitField0_ = (bitField0_ & ~0x00000040); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_PlayerInfo_descriptor; } @java.lang.Override public SC2APIProtocol.Sc2Api.PlayerInfo getDefaultInstanceForType() { return SC2APIProtocol.Sc2Api.PlayerInfo.getDefaultInstance(); } @java.lang.Override public SC2APIProtocol.Sc2Api.PlayerInfo build() { SC2APIProtocol.Sc2Api.PlayerInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public SC2APIProtocol.Sc2Api.PlayerInfo buildPartial() { SC2APIProtocol.Sc2Api.PlayerInfo result = new SC2APIProtocol.Sc2Api.PlayerInfo(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.playerId_ = playerId_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { to_bitField0_ |= 0x00000002; } result.type_ = type_; if (((from_bitField0_ & 0x00000004) != 0)) { to_bitField0_ |= 0x00000004; } result.raceRequested_ = raceRequested_; if (((from_bitField0_ & 0x00000008) != 0)) { to_bitField0_ |= 0x00000008; } result.raceActual_ = raceActual_; if (((from_bitField0_ & 0x00000010) != 0)) { to_bitField0_ |= 0x00000010; } result.difficulty_ = difficulty_; if (((from_bitField0_ & 0x00000020) != 0)) { to_bitField0_ |= 0x00000020; } result.aiBuild_ = aiBuild_; if (((from_bitField0_ & 0x00000040) != 0)) { to_bitField0_ |= 0x00000040; } result.playerName_ = playerName_; 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.Sc2Api.PlayerInfo) { return mergeFrom((SC2APIProtocol.Sc2Api.PlayerInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(SC2APIProtocol.Sc2Api.PlayerInfo other) { if (other == SC2APIProtocol.Sc2Api.PlayerInfo.getDefaultInstance()) return this; if (other.hasPlayerId()) { setPlayerId(other.getPlayerId()); } if (other.hasType()) { setType(other.getType()); } if (other.hasRaceRequested()) { setRaceRequested(other.getRaceRequested()); } if (other.hasRaceActual()) { setRaceActual(other.getRaceActual()); } if (other.hasDifficulty()) { setDifficulty(other.getDifficulty()); } if (other.hasAiBuild()) { setAiBuild(other.getAiBuild()); } if (other.hasPlayerName()) { bitField0_ |= 0x00000040; playerName_ = other.playerName_; 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: { playerId_ = input.readUInt32(); bitField0_ |= 0x00000001; break; } // case 8 case 16: { int tmpRaw = input.readEnum(); SC2APIProtocol.Sc2Api.PlayerType tmpValue = SC2APIProtocol.Sc2Api.PlayerType.forNumber(tmpRaw); if (tmpValue == null) { mergeUnknownVarintField(2, tmpRaw); } else { type_ = tmpRaw; bitField0_ |= 0x00000002; } break; } // case 16 case 24: { int tmpRaw = input.readEnum(); SC2APIProtocol.Common.Race tmpValue = SC2APIProtocol.Common.Race.forNumber(tmpRaw); if (tmpValue == null) { mergeUnknownVarintField(3, tmpRaw); } else { raceRequested_ = tmpRaw; bitField0_ |= 0x00000004; } break; } // case 24 case 32: { int tmpRaw = input.readEnum(); SC2APIProtocol.Common.Race tmpValue = SC2APIProtocol.Common.Race.forNumber(tmpRaw); if (tmpValue == null) { mergeUnknownVarintField(4, tmpRaw); } else { raceActual_ = tmpRaw; bitField0_ |= 0x00000008; } break; } // case 32 case 40: { int tmpRaw = input.readEnum(); SC2APIProtocol.Sc2Api.Difficulty tmpValue = SC2APIProtocol.Sc2Api.Difficulty.forNumber(tmpRaw); if (tmpValue == null) { mergeUnknownVarintField(5, tmpRaw); } else { difficulty_ = tmpRaw; bitField0_ |= 0x00000010; } break; } // case 40 case 50: { playerName_ = input.readBytes(); bitField0_ |= 0x00000040; break; } // case 50 case 56: { int tmpRaw = input.readEnum(); SC2APIProtocol.Sc2Api.AIBuild tmpValue = SC2APIProtocol.Sc2Api.AIBuild.forNumber(tmpRaw); if (tmpValue == null) { mergeUnknownVarintField(7, tmpRaw); } else { aiBuild_ = tmpRaw; bitField0_ |= 0x00000020; } break; } // case 56 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 playerId_ ; /** *
       * Identifier that will be used to reference this player.
       * SC2 will always assign playerIds starting from 1 in standard Melee maps. This may not be true in custom maps.
       * 
* * optional uint32 player_id = 1; * @return Whether the playerId field is set. */ @java.lang.Override public boolean hasPlayerId() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * Identifier that will be used to reference this player.
       * SC2 will always assign playerIds starting from 1 in standard Melee maps. This may not be true in custom maps.
       * 
* * optional uint32 player_id = 1; * @return The playerId. */ @java.lang.Override public int getPlayerId() { return playerId_; } /** *
       * Identifier that will be used to reference this player.
       * SC2 will always assign playerIds starting from 1 in standard Melee maps. This may not be true in custom maps.
       * 
* * optional uint32 player_id = 1; * @param value The playerId to set. * @return This builder for chaining. */ public Builder setPlayerId(int value) { bitField0_ |= 0x00000001; playerId_ = value; onChanged(); return this; } /** *
       * Identifier that will be used to reference this player.
       * SC2 will always assign playerIds starting from 1 in standard Melee maps. This may not be true in custom maps.
       * 
* * optional uint32 player_id = 1; * @return This builder for chaining. */ public Builder clearPlayerId() { bitField0_ = (bitField0_ & ~0x00000001); playerId_ = 0; onChanged(); return this; } private int type_ = 1; /** * optional .SC2APIProtocol.PlayerType type = 2; * @return Whether the type field is set. */ @java.lang.Override public boolean hasType() { return ((bitField0_ & 0x00000002) != 0); } /** * optional .SC2APIProtocol.PlayerType type = 2; * @return The type. */ @java.lang.Override public SC2APIProtocol.Sc2Api.PlayerType getType() { @SuppressWarnings("deprecation") SC2APIProtocol.Sc2Api.PlayerType result = SC2APIProtocol.Sc2Api.PlayerType.valueOf(type_); return result == null ? SC2APIProtocol.Sc2Api.PlayerType.Participant : result; } /** * optional .SC2APIProtocol.PlayerType type = 2; * @param value The type to set. * @return This builder for chaining. */ public Builder setType(SC2APIProtocol.Sc2Api.PlayerType value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; type_ = value.getNumber(); onChanged(); return this; } /** * optional .SC2APIProtocol.PlayerType type = 2; * @return This builder for chaining. */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000002); type_ = 1; onChanged(); return this; } private int raceRequested_ = 0; /** * optional .SC2APIProtocol.Race race_requested = 3; * @return Whether the raceRequested field is set. */ @java.lang.Override public boolean hasRaceRequested() { return ((bitField0_ & 0x00000004) != 0); } /** * optional .SC2APIProtocol.Race race_requested = 3; * @return The raceRequested. */ @java.lang.Override public SC2APIProtocol.Common.Race getRaceRequested() { @SuppressWarnings("deprecation") SC2APIProtocol.Common.Race result = SC2APIProtocol.Common.Race.valueOf(raceRequested_); return result == null ? SC2APIProtocol.Common.Race.NoRace : result; } /** * optional .SC2APIProtocol.Race race_requested = 3; * @param value The raceRequested to set. * @return This builder for chaining. */ public Builder setRaceRequested(SC2APIProtocol.Common.Race value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; raceRequested_ = value.getNumber(); onChanged(); return this; } /** * optional .SC2APIProtocol.Race race_requested = 3; * @return This builder for chaining. */ public Builder clearRaceRequested() { bitField0_ = (bitField0_ & ~0x00000004); raceRequested_ = 0; onChanged(); return this; } private int raceActual_ = 0; /** *
       * Only populated for your player or when watching replay
       * 
* * optional .SC2APIProtocol.Race race_actual = 4; * @return Whether the raceActual field is set. */ @java.lang.Override public boolean hasRaceActual() { return ((bitField0_ & 0x00000008) != 0); } /** *
       * Only populated for your player or when watching replay
       * 
* * optional .SC2APIProtocol.Race race_actual = 4; * @return The raceActual. */ @java.lang.Override public SC2APIProtocol.Common.Race getRaceActual() { @SuppressWarnings("deprecation") SC2APIProtocol.Common.Race result = SC2APIProtocol.Common.Race.valueOf(raceActual_); return result == null ? SC2APIProtocol.Common.Race.NoRace : result; } /** *
       * Only populated for your player or when watching replay
       * 
* * optional .SC2APIProtocol.Race race_actual = 4; * @param value The raceActual to set. * @return This builder for chaining. */ public Builder setRaceActual(SC2APIProtocol.Common.Race value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; raceActual_ = value.getNumber(); onChanged(); return this; } /** *
       * Only populated for your player or when watching replay
       * 
* * optional .SC2APIProtocol.Race race_actual = 4; * @return This builder for chaining. */ public Builder clearRaceActual() { bitField0_ = (bitField0_ & ~0x00000008); raceActual_ = 0; onChanged(); return this; } private int difficulty_ = 1; /** * optional .SC2APIProtocol.Difficulty difficulty = 5; * @return Whether the difficulty field is set. */ @java.lang.Override public boolean hasDifficulty() { return ((bitField0_ & 0x00000010) != 0); } /** * optional .SC2APIProtocol.Difficulty difficulty = 5; * @return The difficulty. */ @java.lang.Override public SC2APIProtocol.Sc2Api.Difficulty getDifficulty() { @SuppressWarnings("deprecation") SC2APIProtocol.Sc2Api.Difficulty result = SC2APIProtocol.Sc2Api.Difficulty.valueOf(difficulty_); return result == null ? SC2APIProtocol.Sc2Api.Difficulty.VeryEasy : result; } /** * optional .SC2APIProtocol.Difficulty difficulty = 5; * @param value The difficulty to set. * @return This builder for chaining. */ public Builder setDifficulty(SC2APIProtocol.Sc2Api.Difficulty value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; difficulty_ = value.getNumber(); onChanged(); return this; } /** * optional .SC2APIProtocol.Difficulty difficulty = 5; * @return This builder for chaining. */ public Builder clearDifficulty() { bitField0_ = (bitField0_ & ~0x00000010); difficulty_ = 1; onChanged(); return this; } private int aiBuild_ = 1; /** * optional .SC2APIProtocol.AIBuild ai_build = 7; * @return Whether the aiBuild field is set. */ @java.lang.Override public boolean hasAiBuild() { return ((bitField0_ & 0x00000020) != 0); } /** * optional .SC2APIProtocol.AIBuild ai_build = 7; * @return The aiBuild. */ @java.lang.Override public SC2APIProtocol.Sc2Api.AIBuild getAiBuild() { @SuppressWarnings("deprecation") SC2APIProtocol.Sc2Api.AIBuild result = SC2APIProtocol.Sc2Api.AIBuild.valueOf(aiBuild_); return result == null ? SC2APIProtocol.Sc2Api.AIBuild.RandomBuild : result; } /** * optional .SC2APIProtocol.AIBuild ai_build = 7; * @param value The aiBuild to set. * @return This builder for chaining. */ public Builder setAiBuild(SC2APIProtocol.Sc2Api.AIBuild value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; aiBuild_ = value.getNumber(); onChanged(); return this; } /** * optional .SC2APIProtocol.AIBuild ai_build = 7; * @return This builder for chaining. */ public Builder clearAiBuild() { bitField0_ = (bitField0_ & ~0x00000020); aiBuild_ = 1; onChanged(); return this; } private java.lang.Object playerName_ = ""; /** * optional string player_name = 6; * @return Whether the playerName field is set. */ public boolean hasPlayerName() { return ((bitField0_ & 0x00000040) != 0); } /** * optional string player_name = 6; * @return The playerName. */ public java.lang.String getPlayerName() { java.lang.Object ref = playerName_; 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()) { playerName_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string player_name = 6; * @return The bytes for playerName. */ public com.google.protobuf.ByteString getPlayerNameBytes() { java.lang.Object ref = playerName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); playerName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string player_name = 6; * @param value The playerName to set. * @return This builder for chaining. */ public Builder setPlayerName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000040; playerName_ = value; onChanged(); return this; } /** * optional string player_name = 6; * @return This builder for chaining. */ public Builder clearPlayerName() { bitField0_ = (bitField0_ & ~0x00000040); playerName_ = getDefaultInstance().getPlayerName(); onChanged(); return this; } /** * optional string player_name = 6; * @param value The bytes for playerName to set. * @return This builder for chaining. */ public Builder setPlayerNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000040; playerName_ = value; 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.PlayerInfo) } // @@protoc_insertion_point(class_scope:SC2APIProtocol.PlayerInfo) private static final SC2APIProtocol.Sc2Api.PlayerInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new SC2APIProtocol.Sc2Api.PlayerInfo(); } public static SC2APIProtocol.Sc2Api.PlayerInfo getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PlayerInfo 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.Sc2Api.PlayerInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PlayerCommonOrBuilder extends // @@protoc_insertion_point(interface_extends:SC2APIProtocol.PlayerCommon) com.google.protobuf.MessageOrBuilder { /** * optional uint32 player_id = 1; * @return Whether the playerId field is set. */ boolean hasPlayerId(); /** * optional uint32 player_id = 1; * @return The playerId. */ int getPlayerId(); /** * optional uint32 minerals = 2; * @return Whether the minerals field is set. */ boolean hasMinerals(); /** * optional uint32 minerals = 2; * @return The minerals. */ int getMinerals(); /** * optional uint32 vespene = 3; * @return Whether the vespene field is set. */ boolean hasVespene(); /** * optional uint32 vespene = 3; * @return The vespene. */ int getVespene(); /** * optional uint32 food_cap = 4; * @return Whether the foodCap field is set. */ boolean hasFoodCap(); /** * optional uint32 food_cap = 4; * @return The foodCap. */ int getFoodCap(); /** * optional uint32 food_used = 5; * @return Whether the foodUsed field is set. */ boolean hasFoodUsed(); /** * optional uint32 food_used = 5; * @return The foodUsed. */ int getFoodUsed(); /** * optional uint32 food_army = 6; * @return Whether the foodArmy field is set. */ boolean hasFoodArmy(); /** * optional uint32 food_army = 6; * @return The foodArmy. */ int getFoodArmy(); /** * optional uint32 food_workers = 7; * @return Whether the foodWorkers field is set. */ boolean hasFoodWorkers(); /** * optional uint32 food_workers = 7; * @return The foodWorkers. */ int getFoodWorkers(); /** * optional uint32 idle_worker_count = 8; * @return Whether the idleWorkerCount field is set. */ boolean hasIdleWorkerCount(); /** * optional uint32 idle_worker_count = 8; * @return The idleWorkerCount. */ int getIdleWorkerCount(); /** * optional uint32 army_count = 9; * @return Whether the armyCount field is set. */ boolean hasArmyCount(); /** * optional uint32 army_count = 9; * @return The armyCount. */ int getArmyCount(); /** * optional uint32 warp_gate_count = 10; * @return Whether the warpGateCount field is set. */ boolean hasWarpGateCount(); /** * optional uint32 warp_gate_count = 10; * @return The warpGateCount. */ int getWarpGateCount(); /** * optional uint32 larva_count = 11; * @return Whether the larvaCount field is set. */ boolean hasLarvaCount(); /** * optional uint32 larva_count = 11; * @return The larvaCount. */ int getLarvaCount(); } /** * Protobuf type {@code SC2APIProtocol.PlayerCommon} */ public static final class PlayerCommon extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:SC2APIProtocol.PlayerCommon) PlayerCommonOrBuilder { private static final long serialVersionUID = 0L; // Use PlayerCommon.newBuilder() to construct. private PlayerCommon(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PlayerCommon() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new PlayerCommon(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_PlayerCommon_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_PlayerCommon_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Sc2Api.PlayerCommon.class, SC2APIProtocol.Sc2Api.PlayerCommon.Builder.class); } private int bitField0_; public static final int PLAYER_ID_FIELD_NUMBER = 1; private int playerId_; /** * optional uint32 player_id = 1; * @return Whether the playerId field is set. */ @java.lang.Override public boolean hasPlayerId() { return ((bitField0_ & 0x00000001) != 0); } /** * optional uint32 player_id = 1; * @return The playerId. */ @java.lang.Override public int getPlayerId() { return playerId_; } public static final int MINERALS_FIELD_NUMBER = 2; private int minerals_; /** * optional uint32 minerals = 2; * @return Whether the minerals field is set. */ @java.lang.Override public boolean hasMinerals() { return ((bitField0_ & 0x00000002) != 0); } /** * optional uint32 minerals = 2; * @return The minerals. */ @java.lang.Override public int getMinerals() { return minerals_; } public static final int VESPENE_FIELD_NUMBER = 3; private int vespene_; /** * optional uint32 vespene = 3; * @return Whether the vespene field is set. */ @java.lang.Override public boolean hasVespene() { return ((bitField0_ & 0x00000004) != 0); } /** * optional uint32 vespene = 3; * @return The vespene. */ @java.lang.Override public int getVespene() { return vespene_; } public static final int FOOD_CAP_FIELD_NUMBER = 4; private int foodCap_; /** * optional uint32 food_cap = 4; * @return Whether the foodCap field is set. */ @java.lang.Override public boolean hasFoodCap() { return ((bitField0_ & 0x00000008) != 0); } /** * optional uint32 food_cap = 4; * @return The foodCap. */ @java.lang.Override public int getFoodCap() { return foodCap_; } public static final int FOOD_USED_FIELD_NUMBER = 5; private int foodUsed_; /** * optional uint32 food_used = 5; * @return Whether the foodUsed field is set. */ @java.lang.Override public boolean hasFoodUsed() { return ((bitField0_ & 0x00000010) != 0); } /** * optional uint32 food_used = 5; * @return The foodUsed. */ @java.lang.Override public int getFoodUsed() { return foodUsed_; } public static final int FOOD_ARMY_FIELD_NUMBER = 6; private int foodArmy_; /** * optional uint32 food_army = 6; * @return Whether the foodArmy field is set. */ @java.lang.Override public boolean hasFoodArmy() { return ((bitField0_ & 0x00000020) != 0); } /** * optional uint32 food_army = 6; * @return The foodArmy. */ @java.lang.Override public int getFoodArmy() { return foodArmy_; } public static final int FOOD_WORKERS_FIELD_NUMBER = 7; private int foodWorkers_; /** * optional uint32 food_workers = 7; * @return Whether the foodWorkers field is set. */ @java.lang.Override public boolean hasFoodWorkers() { return ((bitField0_ & 0x00000040) != 0); } /** * optional uint32 food_workers = 7; * @return The foodWorkers. */ @java.lang.Override public int getFoodWorkers() { return foodWorkers_; } public static final int IDLE_WORKER_COUNT_FIELD_NUMBER = 8; private int idleWorkerCount_; /** * optional uint32 idle_worker_count = 8; * @return Whether the idleWorkerCount field is set. */ @java.lang.Override public boolean hasIdleWorkerCount() { return ((bitField0_ & 0x00000080) != 0); } /** * optional uint32 idle_worker_count = 8; * @return The idleWorkerCount. */ @java.lang.Override public int getIdleWorkerCount() { return idleWorkerCount_; } public static final int ARMY_COUNT_FIELD_NUMBER = 9; private int armyCount_; /** * optional uint32 army_count = 9; * @return Whether the armyCount field is set. */ @java.lang.Override public boolean hasArmyCount() { return ((bitField0_ & 0x00000100) != 0); } /** * optional uint32 army_count = 9; * @return The armyCount. */ @java.lang.Override public int getArmyCount() { return armyCount_; } public static final int WARP_GATE_COUNT_FIELD_NUMBER = 10; private int warpGateCount_; /** * optional uint32 warp_gate_count = 10; * @return Whether the warpGateCount field is set. */ @java.lang.Override public boolean hasWarpGateCount() { return ((bitField0_ & 0x00000200) != 0); } /** * optional uint32 warp_gate_count = 10; * @return The warpGateCount. */ @java.lang.Override public int getWarpGateCount() { return warpGateCount_; } public static final int LARVA_COUNT_FIELD_NUMBER = 11; private int larvaCount_; /** * optional uint32 larva_count = 11; * @return Whether the larvaCount field is set. */ @java.lang.Override public boolean hasLarvaCount() { return ((bitField0_ & 0x00000400) != 0); } /** * optional uint32 larva_count = 11; * @return The larvaCount. */ @java.lang.Override public int getLarvaCount() { return larvaCount_; } 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, playerId_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeUInt32(2, minerals_); } if (((bitField0_ & 0x00000004) != 0)) { output.writeUInt32(3, vespene_); } if (((bitField0_ & 0x00000008) != 0)) { output.writeUInt32(4, foodCap_); } if (((bitField0_ & 0x00000010) != 0)) { output.writeUInt32(5, foodUsed_); } if (((bitField0_ & 0x00000020) != 0)) { output.writeUInt32(6, foodArmy_); } if (((bitField0_ & 0x00000040) != 0)) { output.writeUInt32(7, foodWorkers_); } if (((bitField0_ & 0x00000080) != 0)) { output.writeUInt32(8, idleWorkerCount_); } if (((bitField0_ & 0x00000100) != 0)) { output.writeUInt32(9, armyCount_); } if (((bitField0_ & 0x00000200) != 0)) { output.writeUInt32(10, warpGateCount_); } if (((bitField0_ & 0x00000400) != 0)) { output.writeUInt32(11, larvaCount_); } 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, playerId_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, minerals_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(3, vespene_); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(4, foodCap_); } if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(5, foodUsed_); } if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(6, foodArmy_); } if (((bitField0_ & 0x00000040) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(7, foodWorkers_); } if (((bitField0_ & 0x00000080) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(8, idleWorkerCount_); } if (((bitField0_ & 0x00000100) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(9, armyCount_); } if (((bitField0_ & 0x00000200) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(10, warpGateCount_); } if (((bitField0_ & 0x00000400) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(11, larvaCount_); } 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.Sc2Api.PlayerCommon)) { return super.equals(obj); } SC2APIProtocol.Sc2Api.PlayerCommon other = (SC2APIProtocol.Sc2Api.PlayerCommon) obj; if (hasPlayerId() != other.hasPlayerId()) return false; if (hasPlayerId()) { if (getPlayerId() != other.getPlayerId()) return false; } if (hasMinerals() != other.hasMinerals()) return false; if (hasMinerals()) { if (getMinerals() != other.getMinerals()) return false; } if (hasVespene() != other.hasVespene()) return false; if (hasVespene()) { if (getVespene() != other.getVespene()) return false; } if (hasFoodCap() != other.hasFoodCap()) return false; if (hasFoodCap()) { if (getFoodCap() != other.getFoodCap()) return false; } if (hasFoodUsed() != other.hasFoodUsed()) return false; if (hasFoodUsed()) { if (getFoodUsed() != other.getFoodUsed()) return false; } if (hasFoodArmy() != other.hasFoodArmy()) return false; if (hasFoodArmy()) { if (getFoodArmy() != other.getFoodArmy()) return false; } if (hasFoodWorkers() != other.hasFoodWorkers()) return false; if (hasFoodWorkers()) { if (getFoodWorkers() != other.getFoodWorkers()) return false; } if (hasIdleWorkerCount() != other.hasIdleWorkerCount()) return false; if (hasIdleWorkerCount()) { if (getIdleWorkerCount() != other.getIdleWorkerCount()) return false; } if (hasArmyCount() != other.hasArmyCount()) return false; if (hasArmyCount()) { if (getArmyCount() != other.getArmyCount()) return false; } if (hasWarpGateCount() != other.hasWarpGateCount()) return false; if (hasWarpGateCount()) { if (getWarpGateCount() != other.getWarpGateCount()) return false; } if (hasLarvaCount() != other.hasLarvaCount()) return false; if (hasLarvaCount()) { if (getLarvaCount() != other.getLarvaCount()) 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 (hasPlayerId()) { hash = (37 * hash) + PLAYER_ID_FIELD_NUMBER; hash = (53 * hash) + getPlayerId(); } if (hasMinerals()) { hash = (37 * hash) + MINERALS_FIELD_NUMBER; hash = (53 * hash) + getMinerals(); } if (hasVespene()) { hash = (37 * hash) + VESPENE_FIELD_NUMBER; hash = (53 * hash) + getVespene(); } if (hasFoodCap()) { hash = (37 * hash) + FOOD_CAP_FIELD_NUMBER; hash = (53 * hash) + getFoodCap(); } if (hasFoodUsed()) { hash = (37 * hash) + FOOD_USED_FIELD_NUMBER; hash = (53 * hash) + getFoodUsed(); } if (hasFoodArmy()) { hash = (37 * hash) + FOOD_ARMY_FIELD_NUMBER; hash = (53 * hash) + getFoodArmy(); } if (hasFoodWorkers()) { hash = (37 * hash) + FOOD_WORKERS_FIELD_NUMBER; hash = (53 * hash) + getFoodWorkers(); } if (hasIdleWorkerCount()) { hash = (37 * hash) + IDLE_WORKER_COUNT_FIELD_NUMBER; hash = (53 * hash) + getIdleWorkerCount(); } if (hasArmyCount()) { hash = (37 * hash) + ARMY_COUNT_FIELD_NUMBER; hash = (53 * hash) + getArmyCount(); } if (hasWarpGateCount()) { hash = (37 * hash) + WARP_GATE_COUNT_FIELD_NUMBER; hash = (53 * hash) + getWarpGateCount(); } if (hasLarvaCount()) { hash = (37 * hash) + LARVA_COUNT_FIELD_NUMBER; hash = (53 * hash) + getLarvaCount(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static SC2APIProtocol.Sc2Api.PlayerCommon parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.PlayerCommon parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.PlayerCommon parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.PlayerCommon parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.PlayerCommon parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.PlayerCommon parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.PlayerCommon parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.PlayerCommon 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.Sc2Api.PlayerCommon parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.PlayerCommon 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.Sc2Api.PlayerCommon parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.PlayerCommon 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.Sc2Api.PlayerCommon 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.PlayerCommon} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:SC2APIProtocol.PlayerCommon) SC2APIProtocol.Sc2Api.PlayerCommonOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_PlayerCommon_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_PlayerCommon_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Sc2Api.PlayerCommon.class, SC2APIProtocol.Sc2Api.PlayerCommon.Builder.class); } // Construct using SC2APIProtocol.Sc2Api.PlayerCommon.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); playerId_ = 0; bitField0_ = (bitField0_ & ~0x00000001); minerals_ = 0; bitField0_ = (bitField0_ & ~0x00000002); vespene_ = 0; bitField0_ = (bitField0_ & ~0x00000004); foodCap_ = 0; bitField0_ = (bitField0_ & ~0x00000008); foodUsed_ = 0; bitField0_ = (bitField0_ & ~0x00000010); foodArmy_ = 0; bitField0_ = (bitField0_ & ~0x00000020); foodWorkers_ = 0; bitField0_ = (bitField0_ & ~0x00000040); idleWorkerCount_ = 0; bitField0_ = (bitField0_ & ~0x00000080); armyCount_ = 0; bitField0_ = (bitField0_ & ~0x00000100); warpGateCount_ = 0; bitField0_ = (bitField0_ & ~0x00000200); larvaCount_ = 0; bitField0_ = (bitField0_ & ~0x00000400); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_PlayerCommon_descriptor; } @java.lang.Override public SC2APIProtocol.Sc2Api.PlayerCommon getDefaultInstanceForType() { return SC2APIProtocol.Sc2Api.PlayerCommon.getDefaultInstance(); } @java.lang.Override public SC2APIProtocol.Sc2Api.PlayerCommon build() { SC2APIProtocol.Sc2Api.PlayerCommon result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public SC2APIProtocol.Sc2Api.PlayerCommon buildPartial() { SC2APIProtocol.Sc2Api.PlayerCommon result = new SC2APIProtocol.Sc2Api.PlayerCommon(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.playerId_ = playerId_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.minerals_ = minerals_; to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { result.vespene_ = vespene_; to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000008) != 0)) { result.foodCap_ = foodCap_; to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000010) != 0)) { result.foodUsed_ = foodUsed_; to_bitField0_ |= 0x00000010; } if (((from_bitField0_ & 0x00000020) != 0)) { result.foodArmy_ = foodArmy_; to_bitField0_ |= 0x00000020; } if (((from_bitField0_ & 0x00000040) != 0)) { result.foodWorkers_ = foodWorkers_; to_bitField0_ |= 0x00000040; } if (((from_bitField0_ & 0x00000080) != 0)) { result.idleWorkerCount_ = idleWorkerCount_; to_bitField0_ |= 0x00000080; } if (((from_bitField0_ & 0x00000100) != 0)) { result.armyCount_ = armyCount_; to_bitField0_ |= 0x00000100; } if (((from_bitField0_ & 0x00000200) != 0)) { result.warpGateCount_ = warpGateCount_; to_bitField0_ |= 0x00000200; } if (((from_bitField0_ & 0x00000400) != 0)) { result.larvaCount_ = larvaCount_; to_bitField0_ |= 0x00000400; } 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.Sc2Api.PlayerCommon) { return mergeFrom((SC2APIProtocol.Sc2Api.PlayerCommon)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(SC2APIProtocol.Sc2Api.PlayerCommon other) { if (other == SC2APIProtocol.Sc2Api.PlayerCommon.getDefaultInstance()) return this; if (other.hasPlayerId()) { setPlayerId(other.getPlayerId()); } if (other.hasMinerals()) { setMinerals(other.getMinerals()); } if (other.hasVespene()) { setVespene(other.getVespene()); } if (other.hasFoodCap()) { setFoodCap(other.getFoodCap()); } if (other.hasFoodUsed()) { setFoodUsed(other.getFoodUsed()); } if (other.hasFoodArmy()) { setFoodArmy(other.getFoodArmy()); } if (other.hasFoodWorkers()) { setFoodWorkers(other.getFoodWorkers()); } if (other.hasIdleWorkerCount()) { setIdleWorkerCount(other.getIdleWorkerCount()); } if (other.hasArmyCount()) { setArmyCount(other.getArmyCount()); } if (other.hasWarpGateCount()) { setWarpGateCount(other.getWarpGateCount()); } if (other.hasLarvaCount()) { setLarvaCount(other.getLarvaCount()); } 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: { playerId_ = input.readUInt32(); bitField0_ |= 0x00000001; break; } // case 8 case 16: { minerals_ = input.readUInt32(); bitField0_ |= 0x00000002; break; } // case 16 case 24: { vespene_ = input.readUInt32(); bitField0_ |= 0x00000004; break; } // case 24 case 32: { foodCap_ = input.readUInt32(); bitField0_ |= 0x00000008; break; } // case 32 case 40: { foodUsed_ = input.readUInt32(); bitField0_ |= 0x00000010; break; } // case 40 case 48: { foodArmy_ = input.readUInt32(); bitField0_ |= 0x00000020; break; } // case 48 case 56: { foodWorkers_ = input.readUInt32(); bitField0_ |= 0x00000040; break; } // case 56 case 64: { idleWorkerCount_ = input.readUInt32(); bitField0_ |= 0x00000080; break; } // case 64 case 72: { armyCount_ = input.readUInt32(); bitField0_ |= 0x00000100; break; } // case 72 case 80: { warpGateCount_ = input.readUInt32(); bitField0_ |= 0x00000200; break; } // case 80 case 88: { larvaCount_ = input.readUInt32(); bitField0_ |= 0x00000400; break; } // case 88 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 playerId_ ; /** * optional uint32 player_id = 1; * @return Whether the playerId field is set. */ @java.lang.Override public boolean hasPlayerId() { return ((bitField0_ & 0x00000001) != 0); } /** * optional uint32 player_id = 1; * @return The playerId. */ @java.lang.Override public int getPlayerId() { return playerId_; } /** * optional uint32 player_id = 1; * @param value The playerId to set. * @return This builder for chaining. */ public Builder setPlayerId(int value) { bitField0_ |= 0x00000001; playerId_ = value; onChanged(); return this; } /** * optional uint32 player_id = 1; * @return This builder for chaining. */ public Builder clearPlayerId() { bitField0_ = (bitField0_ & ~0x00000001); playerId_ = 0; onChanged(); return this; } private int minerals_ ; /** * optional uint32 minerals = 2; * @return Whether the minerals field is set. */ @java.lang.Override public boolean hasMinerals() { return ((bitField0_ & 0x00000002) != 0); } /** * optional uint32 minerals = 2; * @return The minerals. */ @java.lang.Override public int getMinerals() { return minerals_; } /** * optional uint32 minerals = 2; * @param value The minerals to set. * @return This builder for chaining. */ public Builder setMinerals(int value) { bitField0_ |= 0x00000002; minerals_ = value; onChanged(); return this; } /** * optional uint32 minerals = 2; * @return This builder for chaining. */ public Builder clearMinerals() { bitField0_ = (bitField0_ & ~0x00000002); minerals_ = 0; onChanged(); return this; } private int vespene_ ; /** * optional uint32 vespene = 3; * @return Whether the vespene field is set. */ @java.lang.Override public boolean hasVespene() { return ((bitField0_ & 0x00000004) != 0); } /** * optional uint32 vespene = 3; * @return The vespene. */ @java.lang.Override public int getVespene() { return vespene_; } /** * optional uint32 vespene = 3; * @param value The vespene to set. * @return This builder for chaining. */ public Builder setVespene(int value) { bitField0_ |= 0x00000004; vespene_ = value; onChanged(); return this; } /** * optional uint32 vespene = 3; * @return This builder for chaining. */ public Builder clearVespene() { bitField0_ = (bitField0_ & ~0x00000004); vespene_ = 0; onChanged(); return this; } private int foodCap_ ; /** * optional uint32 food_cap = 4; * @return Whether the foodCap field is set. */ @java.lang.Override public boolean hasFoodCap() { return ((bitField0_ & 0x00000008) != 0); } /** * optional uint32 food_cap = 4; * @return The foodCap. */ @java.lang.Override public int getFoodCap() { return foodCap_; } /** * optional uint32 food_cap = 4; * @param value The foodCap to set. * @return This builder for chaining. */ public Builder setFoodCap(int value) { bitField0_ |= 0x00000008; foodCap_ = value; onChanged(); return this; } /** * optional uint32 food_cap = 4; * @return This builder for chaining. */ public Builder clearFoodCap() { bitField0_ = (bitField0_ & ~0x00000008); foodCap_ = 0; onChanged(); return this; } private int foodUsed_ ; /** * optional uint32 food_used = 5; * @return Whether the foodUsed field is set. */ @java.lang.Override public boolean hasFoodUsed() { return ((bitField0_ & 0x00000010) != 0); } /** * optional uint32 food_used = 5; * @return The foodUsed. */ @java.lang.Override public int getFoodUsed() { return foodUsed_; } /** * optional uint32 food_used = 5; * @param value The foodUsed to set. * @return This builder for chaining. */ public Builder setFoodUsed(int value) { bitField0_ |= 0x00000010; foodUsed_ = value; onChanged(); return this; } /** * optional uint32 food_used = 5; * @return This builder for chaining. */ public Builder clearFoodUsed() { bitField0_ = (bitField0_ & ~0x00000010); foodUsed_ = 0; onChanged(); return this; } private int foodArmy_ ; /** * optional uint32 food_army = 6; * @return Whether the foodArmy field is set. */ @java.lang.Override public boolean hasFoodArmy() { return ((bitField0_ & 0x00000020) != 0); } /** * optional uint32 food_army = 6; * @return The foodArmy. */ @java.lang.Override public int getFoodArmy() { return foodArmy_; } /** * optional uint32 food_army = 6; * @param value The foodArmy to set. * @return This builder for chaining. */ public Builder setFoodArmy(int value) { bitField0_ |= 0x00000020; foodArmy_ = value; onChanged(); return this; } /** * optional uint32 food_army = 6; * @return This builder for chaining. */ public Builder clearFoodArmy() { bitField0_ = (bitField0_ & ~0x00000020); foodArmy_ = 0; onChanged(); return this; } private int foodWorkers_ ; /** * optional uint32 food_workers = 7; * @return Whether the foodWorkers field is set. */ @java.lang.Override public boolean hasFoodWorkers() { return ((bitField0_ & 0x00000040) != 0); } /** * optional uint32 food_workers = 7; * @return The foodWorkers. */ @java.lang.Override public int getFoodWorkers() { return foodWorkers_; } /** * optional uint32 food_workers = 7; * @param value The foodWorkers to set. * @return This builder for chaining. */ public Builder setFoodWorkers(int value) { bitField0_ |= 0x00000040; foodWorkers_ = value; onChanged(); return this; } /** * optional uint32 food_workers = 7; * @return This builder for chaining. */ public Builder clearFoodWorkers() { bitField0_ = (bitField0_ & ~0x00000040); foodWorkers_ = 0; onChanged(); return this; } private int idleWorkerCount_ ; /** * optional uint32 idle_worker_count = 8; * @return Whether the idleWorkerCount field is set. */ @java.lang.Override public boolean hasIdleWorkerCount() { return ((bitField0_ & 0x00000080) != 0); } /** * optional uint32 idle_worker_count = 8; * @return The idleWorkerCount. */ @java.lang.Override public int getIdleWorkerCount() { return idleWorkerCount_; } /** * optional uint32 idle_worker_count = 8; * @param value The idleWorkerCount to set. * @return This builder for chaining. */ public Builder setIdleWorkerCount(int value) { bitField0_ |= 0x00000080; idleWorkerCount_ = value; onChanged(); return this; } /** * optional uint32 idle_worker_count = 8; * @return This builder for chaining. */ public Builder clearIdleWorkerCount() { bitField0_ = (bitField0_ & ~0x00000080); idleWorkerCount_ = 0; onChanged(); return this; } private int armyCount_ ; /** * optional uint32 army_count = 9; * @return Whether the armyCount field is set. */ @java.lang.Override public boolean hasArmyCount() { return ((bitField0_ & 0x00000100) != 0); } /** * optional uint32 army_count = 9; * @return The armyCount. */ @java.lang.Override public int getArmyCount() { return armyCount_; } /** * optional uint32 army_count = 9; * @param value The armyCount to set. * @return This builder for chaining. */ public Builder setArmyCount(int value) { bitField0_ |= 0x00000100; armyCount_ = value; onChanged(); return this; } /** * optional uint32 army_count = 9; * @return This builder for chaining. */ public Builder clearArmyCount() { bitField0_ = (bitField0_ & ~0x00000100); armyCount_ = 0; onChanged(); return this; } private int warpGateCount_ ; /** * optional uint32 warp_gate_count = 10; * @return Whether the warpGateCount field is set. */ @java.lang.Override public boolean hasWarpGateCount() { return ((bitField0_ & 0x00000200) != 0); } /** * optional uint32 warp_gate_count = 10; * @return The warpGateCount. */ @java.lang.Override public int getWarpGateCount() { return warpGateCount_; } /** * optional uint32 warp_gate_count = 10; * @param value The warpGateCount to set. * @return This builder for chaining. */ public Builder setWarpGateCount(int value) { bitField0_ |= 0x00000200; warpGateCount_ = value; onChanged(); return this; } /** * optional uint32 warp_gate_count = 10; * @return This builder for chaining. */ public Builder clearWarpGateCount() { bitField0_ = (bitField0_ & ~0x00000200); warpGateCount_ = 0; onChanged(); return this; } private int larvaCount_ ; /** * optional uint32 larva_count = 11; * @return Whether the larvaCount field is set. */ @java.lang.Override public boolean hasLarvaCount() { return ((bitField0_ & 0x00000400) != 0); } /** * optional uint32 larva_count = 11; * @return The larvaCount. */ @java.lang.Override public int getLarvaCount() { return larvaCount_; } /** * optional uint32 larva_count = 11; * @param value The larvaCount to set. * @return This builder for chaining. */ public Builder setLarvaCount(int value) { bitField0_ |= 0x00000400; larvaCount_ = value; onChanged(); return this; } /** * optional uint32 larva_count = 11; * @return This builder for chaining. */ public Builder clearLarvaCount() { bitField0_ = (bitField0_ & ~0x00000400); larvaCount_ = 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.PlayerCommon) } // @@protoc_insertion_point(class_scope:SC2APIProtocol.PlayerCommon) private static final SC2APIProtocol.Sc2Api.PlayerCommon DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new SC2APIProtocol.Sc2Api.PlayerCommon(); } public static SC2APIProtocol.Sc2Api.PlayerCommon getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PlayerCommon 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.Sc2Api.PlayerCommon getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ObservationOrBuilder extends // @@protoc_insertion_point(interface_extends:SC2APIProtocol.Observation) com.google.protobuf.MessageOrBuilder { /** * optional uint32 game_loop = 9; * @return Whether the gameLoop field is set. */ boolean hasGameLoop(); /** * optional uint32 game_loop = 9; * @return The gameLoop. */ int getGameLoop(); /** * optional .SC2APIProtocol.PlayerCommon player_common = 1; * @return Whether the playerCommon field is set. */ boolean hasPlayerCommon(); /** * optional .SC2APIProtocol.PlayerCommon player_common = 1; * @return The playerCommon. */ SC2APIProtocol.Sc2Api.PlayerCommon getPlayerCommon(); /** * optional .SC2APIProtocol.PlayerCommon player_common = 1; */ SC2APIProtocol.Sc2Api.PlayerCommonOrBuilder getPlayerCommonOrBuilder(); /** * repeated .SC2APIProtocol.Alert alerts = 10; * @return A list containing the alerts. */ java.util.List getAlertsList(); /** * repeated .SC2APIProtocol.Alert alerts = 10; * @return The count of alerts. */ int getAlertsCount(); /** * repeated .SC2APIProtocol.Alert alerts = 10; * @param index The index of the element to return. * @return The alerts at the given index. */ SC2APIProtocol.Sc2Api.Alert getAlerts(int index); /** *
     * Abilities available in the selection. Enabled if in this list, disabled otherwise.
     * 
* * repeated .SC2APIProtocol.AvailableAbility abilities = 3; */ java.util.List getAbilitiesList(); /** *
     * Abilities available in the selection. Enabled if in this list, disabled otherwise.
     * 
* * repeated .SC2APIProtocol.AvailableAbility abilities = 3; */ SC2APIProtocol.Common.AvailableAbility getAbilities(int index); /** *
     * Abilities available in the selection. Enabled if in this list, disabled otherwise.
     * 
* * repeated .SC2APIProtocol.AvailableAbility abilities = 3; */ int getAbilitiesCount(); /** *
     * Abilities available in the selection. Enabled if in this list, disabled otherwise.
     * 
* * repeated .SC2APIProtocol.AvailableAbility abilities = 3; */ java.util.List getAbilitiesOrBuilderList(); /** *
     * Abilities available in the selection. Enabled if in this list, disabled otherwise.
     * 
* * repeated .SC2APIProtocol.AvailableAbility abilities = 3; */ SC2APIProtocol.Common.AvailableAbilityOrBuilder getAbilitiesOrBuilder( int index); /** * optional .SC2APIProtocol.Score score = 4; * @return Whether the score field is set. */ boolean hasScore(); /** * optional .SC2APIProtocol.Score score = 4; * @return The score. */ SC2APIProtocol.ScoreOuterClass.Score getScore(); /** * optional .SC2APIProtocol.Score score = 4; */ SC2APIProtocol.ScoreOuterClass.ScoreOrBuilder getScoreOrBuilder(); /** *
     * Populated if Raw interface is enabled.
     * 
* * optional .SC2APIProtocol.ObservationRaw raw_data = 5; * @return Whether the rawData field is set. */ boolean hasRawData(); /** *
     * Populated if Raw interface is enabled.
     * 
* * optional .SC2APIProtocol.ObservationRaw raw_data = 5; * @return The rawData. */ SC2APIProtocol.Raw.ObservationRaw getRawData(); /** *
     * Populated if Raw interface is enabled.
     * 
* * optional .SC2APIProtocol.ObservationRaw raw_data = 5; */ SC2APIProtocol.Raw.ObservationRawOrBuilder getRawDataOrBuilder(); /** *
     * Populated if Feature Layer interface is enabled.
     * 
* * optional .SC2APIProtocol.ObservationFeatureLayer feature_layer_data = 6; * @return Whether the featureLayerData field is set. */ boolean hasFeatureLayerData(); /** *
     * Populated if Feature Layer interface is enabled.
     * 
* * optional .SC2APIProtocol.ObservationFeatureLayer feature_layer_data = 6; * @return The featureLayerData. */ SC2APIProtocol.Spatial.ObservationFeatureLayer getFeatureLayerData(); /** *
     * Populated if Feature Layer interface is enabled.
     * 
* * optional .SC2APIProtocol.ObservationFeatureLayer feature_layer_data = 6; */ SC2APIProtocol.Spatial.ObservationFeatureLayerOrBuilder getFeatureLayerDataOrBuilder(); /** *
     * Populated if Render interface is enabled.
     * 
* * optional .SC2APIProtocol.ObservationRender render_data = 7; * @return Whether the renderData field is set. */ boolean hasRenderData(); /** *
     * Populated if Render interface is enabled.
     * 
* * optional .SC2APIProtocol.ObservationRender render_data = 7; * @return The renderData. */ SC2APIProtocol.Spatial.ObservationRender getRenderData(); /** *
     * Populated if Render interface is enabled.
     * 
* * optional .SC2APIProtocol.ObservationRender render_data = 7; */ SC2APIProtocol.Spatial.ObservationRenderOrBuilder getRenderDataOrBuilder(); /** *
     * Populated if Feature Layer or Render interface is enabled.
     * 
* * optional .SC2APIProtocol.ObservationUI ui_data = 8; * @return Whether the uiData field is set. */ boolean hasUiData(); /** *
     * Populated if Feature Layer or Render interface is enabled.
     * 
* * optional .SC2APIProtocol.ObservationUI ui_data = 8; * @return The uiData. */ SC2APIProtocol.Ui.ObservationUI getUiData(); /** *
     * Populated if Feature Layer or Render interface is enabled.
     * 
* * optional .SC2APIProtocol.ObservationUI ui_data = 8; */ SC2APIProtocol.Ui.ObservationUIOrBuilder getUiDataOrBuilder(); } /** * Protobuf type {@code SC2APIProtocol.Observation} */ public static final class Observation extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:SC2APIProtocol.Observation) ObservationOrBuilder { private static final long serialVersionUID = 0L; // Use Observation.newBuilder() to construct. private Observation(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Observation() { alerts_ = java.util.Collections.emptyList(); abilities_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Observation(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_Observation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_Observation_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Sc2Api.Observation.class, SC2APIProtocol.Sc2Api.Observation.Builder.class); } private int bitField0_; public static final int GAME_LOOP_FIELD_NUMBER = 9; private int gameLoop_; /** * optional uint32 game_loop = 9; * @return Whether the gameLoop field is set. */ @java.lang.Override public boolean hasGameLoop() { return ((bitField0_ & 0x00000001) != 0); } /** * optional uint32 game_loop = 9; * @return The gameLoop. */ @java.lang.Override public int getGameLoop() { return gameLoop_; } public static final int PLAYER_COMMON_FIELD_NUMBER = 1; private SC2APIProtocol.Sc2Api.PlayerCommon playerCommon_; /** * optional .SC2APIProtocol.PlayerCommon player_common = 1; * @return Whether the playerCommon field is set. */ @java.lang.Override public boolean hasPlayerCommon() { return ((bitField0_ & 0x00000002) != 0); } /** * optional .SC2APIProtocol.PlayerCommon player_common = 1; * @return The playerCommon. */ @java.lang.Override public SC2APIProtocol.Sc2Api.PlayerCommon getPlayerCommon() { return playerCommon_ == null ? SC2APIProtocol.Sc2Api.PlayerCommon.getDefaultInstance() : playerCommon_; } /** * optional .SC2APIProtocol.PlayerCommon player_common = 1; */ @java.lang.Override public SC2APIProtocol.Sc2Api.PlayerCommonOrBuilder getPlayerCommonOrBuilder() { return playerCommon_ == null ? SC2APIProtocol.Sc2Api.PlayerCommon.getDefaultInstance() : playerCommon_; } public static final int ALERTS_FIELD_NUMBER = 10; private java.util.List alerts_; private static final com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, SC2APIProtocol.Sc2Api.Alert> alerts_converter_ = new com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, SC2APIProtocol.Sc2Api.Alert>() { public SC2APIProtocol.Sc2Api.Alert convert(java.lang.Integer from) { @SuppressWarnings("deprecation") SC2APIProtocol.Sc2Api.Alert result = SC2APIProtocol.Sc2Api.Alert.valueOf(from); return result == null ? SC2APIProtocol.Sc2Api.Alert.AlertError : result; } }; /** * repeated .SC2APIProtocol.Alert alerts = 10; * @return A list containing the alerts. */ @java.lang.Override public java.util.List getAlertsList() { return new com.google.protobuf.Internal.ListAdapter< java.lang.Integer, SC2APIProtocol.Sc2Api.Alert>(alerts_, alerts_converter_); } /** * repeated .SC2APIProtocol.Alert alerts = 10; * @return The count of alerts. */ @java.lang.Override public int getAlertsCount() { return alerts_.size(); } /** * repeated .SC2APIProtocol.Alert alerts = 10; * @param index The index of the element to return. * @return The alerts at the given index. */ @java.lang.Override public SC2APIProtocol.Sc2Api.Alert getAlerts(int index) { return alerts_converter_.convert(alerts_.get(index)); } public static final int ABILITIES_FIELD_NUMBER = 3; private java.util.List abilities_; /** *
     * Abilities available in the selection. Enabled if in this list, disabled otherwise.
     * 
* * repeated .SC2APIProtocol.AvailableAbility abilities = 3; */ @java.lang.Override public java.util.List getAbilitiesList() { return abilities_; } /** *
     * Abilities available in the selection. Enabled if in this list, disabled otherwise.
     * 
* * repeated .SC2APIProtocol.AvailableAbility abilities = 3; */ @java.lang.Override public java.util.List getAbilitiesOrBuilderList() { return abilities_; } /** *
     * Abilities available in the selection. Enabled if in this list, disabled otherwise.
     * 
* * repeated .SC2APIProtocol.AvailableAbility abilities = 3; */ @java.lang.Override public int getAbilitiesCount() { return abilities_.size(); } /** *
     * Abilities available in the selection. Enabled if in this list, disabled otherwise.
     * 
* * repeated .SC2APIProtocol.AvailableAbility abilities = 3; */ @java.lang.Override public SC2APIProtocol.Common.AvailableAbility getAbilities(int index) { return abilities_.get(index); } /** *
     * Abilities available in the selection. Enabled if in this list, disabled otherwise.
     * 
* * repeated .SC2APIProtocol.AvailableAbility abilities = 3; */ @java.lang.Override public SC2APIProtocol.Common.AvailableAbilityOrBuilder getAbilitiesOrBuilder( int index) { return abilities_.get(index); } public static final int SCORE_FIELD_NUMBER = 4; private SC2APIProtocol.ScoreOuterClass.Score score_; /** * optional .SC2APIProtocol.Score score = 4; * @return Whether the score field is set. */ @java.lang.Override public boolean hasScore() { return ((bitField0_ & 0x00000004) != 0); } /** * optional .SC2APIProtocol.Score score = 4; * @return The score. */ @java.lang.Override public SC2APIProtocol.ScoreOuterClass.Score getScore() { return score_ == null ? SC2APIProtocol.ScoreOuterClass.Score.getDefaultInstance() : score_; } /** * optional .SC2APIProtocol.Score score = 4; */ @java.lang.Override public SC2APIProtocol.ScoreOuterClass.ScoreOrBuilder getScoreOrBuilder() { return score_ == null ? SC2APIProtocol.ScoreOuterClass.Score.getDefaultInstance() : score_; } public static final int RAW_DATA_FIELD_NUMBER = 5; private SC2APIProtocol.Raw.ObservationRaw rawData_; /** *
     * Populated if Raw interface is enabled.
     * 
* * optional .SC2APIProtocol.ObservationRaw raw_data = 5; * @return Whether the rawData field is set. */ @java.lang.Override public boolean hasRawData() { return ((bitField0_ & 0x00000008) != 0); } /** *
     * Populated if Raw interface is enabled.
     * 
* * optional .SC2APIProtocol.ObservationRaw raw_data = 5; * @return The rawData. */ @java.lang.Override public SC2APIProtocol.Raw.ObservationRaw getRawData() { return rawData_ == null ? SC2APIProtocol.Raw.ObservationRaw.getDefaultInstance() : rawData_; } /** *
     * Populated if Raw interface is enabled.
     * 
* * optional .SC2APIProtocol.ObservationRaw raw_data = 5; */ @java.lang.Override public SC2APIProtocol.Raw.ObservationRawOrBuilder getRawDataOrBuilder() { return rawData_ == null ? SC2APIProtocol.Raw.ObservationRaw.getDefaultInstance() : rawData_; } public static final int FEATURE_LAYER_DATA_FIELD_NUMBER = 6; private SC2APIProtocol.Spatial.ObservationFeatureLayer featureLayerData_; /** *
     * Populated if Feature Layer interface is enabled.
     * 
* * optional .SC2APIProtocol.ObservationFeatureLayer feature_layer_data = 6; * @return Whether the featureLayerData field is set. */ @java.lang.Override public boolean hasFeatureLayerData() { return ((bitField0_ & 0x00000010) != 0); } /** *
     * Populated if Feature Layer interface is enabled.
     * 
* * optional .SC2APIProtocol.ObservationFeatureLayer feature_layer_data = 6; * @return The featureLayerData. */ @java.lang.Override public SC2APIProtocol.Spatial.ObservationFeatureLayer getFeatureLayerData() { return featureLayerData_ == null ? SC2APIProtocol.Spatial.ObservationFeatureLayer.getDefaultInstance() : featureLayerData_; } /** *
     * Populated if Feature Layer interface is enabled.
     * 
* * optional .SC2APIProtocol.ObservationFeatureLayer feature_layer_data = 6; */ @java.lang.Override public SC2APIProtocol.Spatial.ObservationFeatureLayerOrBuilder getFeatureLayerDataOrBuilder() { return featureLayerData_ == null ? SC2APIProtocol.Spatial.ObservationFeatureLayer.getDefaultInstance() : featureLayerData_; } public static final int RENDER_DATA_FIELD_NUMBER = 7; private SC2APIProtocol.Spatial.ObservationRender renderData_; /** *
     * Populated if Render interface is enabled.
     * 
* * optional .SC2APIProtocol.ObservationRender render_data = 7; * @return Whether the renderData field is set. */ @java.lang.Override public boolean hasRenderData() { return ((bitField0_ & 0x00000020) != 0); } /** *
     * Populated if Render interface is enabled.
     * 
* * optional .SC2APIProtocol.ObservationRender render_data = 7; * @return The renderData. */ @java.lang.Override public SC2APIProtocol.Spatial.ObservationRender getRenderData() { return renderData_ == null ? SC2APIProtocol.Spatial.ObservationRender.getDefaultInstance() : renderData_; } /** *
     * Populated if Render interface is enabled.
     * 
* * optional .SC2APIProtocol.ObservationRender render_data = 7; */ @java.lang.Override public SC2APIProtocol.Spatial.ObservationRenderOrBuilder getRenderDataOrBuilder() { return renderData_ == null ? SC2APIProtocol.Spatial.ObservationRender.getDefaultInstance() : renderData_; } public static final int UI_DATA_FIELD_NUMBER = 8; private SC2APIProtocol.Ui.ObservationUI uiData_; /** *
     * Populated if Feature Layer or Render interface is enabled.
     * 
* * optional .SC2APIProtocol.ObservationUI ui_data = 8; * @return Whether the uiData field is set. */ @java.lang.Override public boolean hasUiData() { return ((bitField0_ & 0x00000040) != 0); } /** *
     * Populated if Feature Layer or Render interface is enabled.
     * 
* * optional .SC2APIProtocol.ObservationUI ui_data = 8; * @return The uiData. */ @java.lang.Override public SC2APIProtocol.Ui.ObservationUI getUiData() { return uiData_ == null ? SC2APIProtocol.Ui.ObservationUI.getDefaultInstance() : uiData_; } /** *
     * Populated if Feature Layer or Render interface is enabled.
     * 
* * optional .SC2APIProtocol.ObservationUI ui_data = 8; */ @java.lang.Override public SC2APIProtocol.Ui.ObservationUIOrBuilder getUiDataOrBuilder() { return uiData_ == null ? SC2APIProtocol.Ui.ObservationUI.getDefaultInstance() : uiData_; } 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_ & 0x00000002) != 0)) { output.writeMessage(1, getPlayerCommon()); } for (int i = 0; i < abilities_.size(); i++) { output.writeMessage(3, abilities_.get(i)); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(4, getScore()); } if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(5, getRawData()); } if (((bitField0_ & 0x00000010) != 0)) { output.writeMessage(6, getFeatureLayerData()); } if (((bitField0_ & 0x00000020) != 0)) { output.writeMessage(7, getRenderData()); } if (((bitField0_ & 0x00000040) != 0)) { output.writeMessage(8, getUiData()); } if (((bitField0_ & 0x00000001) != 0)) { output.writeUInt32(9, gameLoop_); } for (int i = 0; i < alerts_.size(); i++) { output.writeEnum(10, alerts_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getPlayerCommon()); } for (int i = 0; i < abilities_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, abilities_.get(i)); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getScore()); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getRawData()); } if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getFeatureLayerData()); } if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(7, getRenderData()); } if (((bitField0_ & 0x00000040) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, getUiData()); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(9, gameLoop_); } { int dataSize = 0; for (int i = 0; i < alerts_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeEnumSizeNoTag(alerts_.get(i)); } size += dataSize; size += 1 * alerts_.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.Sc2Api.Observation)) { return super.equals(obj); } SC2APIProtocol.Sc2Api.Observation other = (SC2APIProtocol.Sc2Api.Observation) obj; if (hasGameLoop() != other.hasGameLoop()) return false; if (hasGameLoop()) { if (getGameLoop() != other.getGameLoop()) return false; } if (hasPlayerCommon() != other.hasPlayerCommon()) return false; if (hasPlayerCommon()) { if (!getPlayerCommon() .equals(other.getPlayerCommon())) return false; } if (!alerts_.equals(other.alerts_)) return false; if (!getAbilitiesList() .equals(other.getAbilitiesList())) return false; if (hasScore() != other.hasScore()) return false; if (hasScore()) { if (!getScore() .equals(other.getScore())) return false; } if (hasRawData() != other.hasRawData()) return false; if (hasRawData()) { if (!getRawData() .equals(other.getRawData())) return false; } if (hasFeatureLayerData() != other.hasFeatureLayerData()) return false; if (hasFeatureLayerData()) { if (!getFeatureLayerData() .equals(other.getFeatureLayerData())) return false; } if (hasRenderData() != other.hasRenderData()) return false; if (hasRenderData()) { if (!getRenderData() .equals(other.getRenderData())) return false; } if (hasUiData() != other.hasUiData()) return false; if (hasUiData()) { if (!getUiData() .equals(other.getUiData())) 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 (hasGameLoop()) { hash = (37 * hash) + GAME_LOOP_FIELD_NUMBER; hash = (53 * hash) + getGameLoop(); } if (hasPlayerCommon()) { hash = (37 * hash) + PLAYER_COMMON_FIELD_NUMBER; hash = (53 * hash) + getPlayerCommon().hashCode(); } if (getAlertsCount() > 0) { hash = (37 * hash) + ALERTS_FIELD_NUMBER; hash = (53 * hash) + alerts_.hashCode(); } if (getAbilitiesCount() > 0) { hash = (37 * hash) + ABILITIES_FIELD_NUMBER; hash = (53 * hash) + getAbilitiesList().hashCode(); } if (hasScore()) { hash = (37 * hash) + SCORE_FIELD_NUMBER; hash = (53 * hash) + getScore().hashCode(); } if (hasRawData()) { hash = (37 * hash) + RAW_DATA_FIELD_NUMBER; hash = (53 * hash) + getRawData().hashCode(); } if (hasFeatureLayerData()) { hash = (37 * hash) + FEATURE_LAYER_DATA_FIELD_NUMBER; hash = (53 * hash) + getFeatureLayerData().hashCode(); } if (hasRenderData()) { hash = (37 * hash) + RENDER_DATA_FIELD_NUMBER; hash = (53 * hash) + getRenderData().hashCode(); } if (hasUiData()) { hash = (37 * hash) + UI_DATA_FIELD_NUMBER; hash = (53 * hash) + getUiData().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static SC2APIProtocol.Sc2Api.Observation parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.Observation parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.Observation parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.Observation parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.Observation parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.Observation parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.Observation parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.Observation 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.Sc2Api.Observation parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.Observation 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.Sc2Api.Observation parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.Observation 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.Sc2Api.Observation 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.Observation} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:SC2APIProtocol.Observation) SC2APIProtocol.Sc2Api.ObservationOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_Observation_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_Observation_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Sc2Api.Observation.class, SC2APIProtocol.Sc2Api.Observation.Builder.class); } // Construct using SC2APIProtocol.Sc2Api.Observation.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getPlayerCommonFieldBuilder(); getAbilitiesFieldBuilder(); getScoreFieldBuilder(); getRawDataFieldBuilder(); getFeatureLayerDataFieldBuilder(); getRenderDataFieldBuilder(); getUiDataFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); gameLoop_ = 0; bitField0_ = (bitField0_ & ~0x00000001); if (playerCommonBuilder_ == null) { playerCommon_ = null; } else { playerCommonBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); alerts_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); if (abilitiesBuilder_ == null) { abilities_ = java.util.Collections.emptyList(); } else { abilities_ = null; abilitiesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); if (scoreBuilder_ == null) { score_ = null; } else { scoreBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); if (rawDataBuilder_ == null) { rawData_ = null; } else { rawDataBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000020); if (featureLayerDataBuilder_ == null) { featureLayerData_ = null; } else { featureLayerDataBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000040); if (renderDataBuilder_ == null) { renderData_ = null; } else { renderDataBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000080); if (uiDataBuilder_ == null) { uiData_ = null; } else { uiDataBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000100); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_Observation_descriptor; } @java.lang.Override public SC2APIProtocol.Sc2Api.Observation getDefaultInstanceForType() { return SC2APIProtocol.Sc2Api.Observation.getDefaultInstance(); } @java.lang.Override public SC2APIProtocol.Sc2Api.Observation build() { SC2APIProtocol.Sc2Api.Observation result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public SC2APIProtocol.Sc2Api.Observation buildPartial() { SC2APIProtocol.Sc2Api.Observation result = new SC2APIProtocol.Sc2Api.Observation(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.gameLoop_ = gameLoop_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { if (playerCommonBuilder_ == null) { result.playerCommon_ = playerCommon_; } else { result.playerCommon_ = playerCommonBuilder_.build(); } to_bitField0_ |= 0x00000002; } if (((bitField0_ & 0x00000004) != 0)) { alerts_ = java.util.Collections.unmodifiableList(alerts_); bitField0_ = (bitField0_ & ~0x00000004); } result.alerts_ = alerts_; if (abilitiesBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0)) { abilities_ = java.util.Collections.unmodifiableList(abilities_); bitField0_ = (bitField0_ & ~0x00000008); } result.abilities_ = abilities_; } else { result.abilities_ = abilitiesBuilder_.build(); } if (((from_bitField0_ & 0x00000010) != 0)) { if (scoreBuilder_ == null) { result.score_ = score_; } else { result.score_ = scoreBuilder_.build(); } to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000020) != 0)) { if (rawDataBuilder_ == null) { result.rawData_ = rawData_; } else { result.rawData_ = rawDataBuilder_.build(); } to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000040) != 0)) { if (featureLayerDataBuilder_ == null) { result.featureLayerData_ = featureLayerData_; } else { result.featureLayerData_ = featureLayerDataBuilder_.build(); } to_bitField0_ |= 0x00000010; } if (((from_bitField0_ & 0x00000080) != 0)) { if (renderDataBuilder_ == null) { result.renderData_ = renderData_; } else { result.renderData_ = renderDataBuilder_.build(); } to_bitField0_ |= 0x00000020; } if (((from_bitField0_ & 0x00000100) != 0)) { if (uiDataBuilder_ == null) { result.uiData_ = uiData_; } else { result.uiData_ = uiDataBuilder_.build(); } to_bitField0_ |= 0x00000040; } 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.Sc2Api.Observation) { return mergeFrom((SC2APIProtocol.Sc2Api.Observation)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(SC2APIProtocol.Sc2Api.Observation other) { if (other == SC2APIProtocol.Sc2Api.Observation.getDefaultInstance()) return this; if (other.hasGameLoop()) { setGameLoop(other.getGameLoop()); } if (other.hasPlayerCommon()) { mergePlayerCommon(other.getPlayerCommon()); } if (!other.alerts_.isEmpty()) { if (alerts_.isEmpty()) { alerts_ = other.alerts_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureAlertsIsMutable(); alerts_.addAll(other.alerts_); } onChanged(); } if (abilitiesBuilder_ == null) { if (!other.abilities_.isEmpty()) { if (abilities_.isEmpty()) { abilities_ = other.abilities_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureAbilitiesIsMutable(); abilities_.addAll(other.abilities_); } onChanged(); } } else { if (!other.abilities_.isEmpty()) { if (abilitiesBuilder_.isEmpty()) { abilitiesBuilder_.dispose(); abilitiesBuilder_ = null; abilities_ = other.abilities_; bitField0_ = (bitField0_ & ~0x00000008); abilitiesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getAbilitiesFieldBuilder() : null; } else { abilitiesBuilder_.addAllMessages(other.abilities_); } } } if (other.hasScore()) { mergeScore(other.getScore()); } if (other.hasRawData()) { mergeRawData(other.getRawData()); } if (other.hasFeatureLayerData()) { mergeFeatureLayerData(other.getFeatureLayerData()); } if (other.hasRenderData()) { mergeRenderData(other.getRenderData()); } if (other.hasUiData()) { mergeUiData(other.getUiData()); } 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( getPlayerCommonFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 10 case 26: { SC2APIProtocol.Common.AvailableAbility m = input.readMessage( SC2APIProtocol.Common.AvailableAbility.PARSER, extensionRegistry); if (abilitiesBuilder_ == null) { ensureAbilitiesIsMutable(); abilities_.add(m); } else { abilitiesBuilder_.addMessage(m); } break; } // case 26 case 34: { input.readMessage( getScoreFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000010; break; } // case 34 case 42: { input.readMessage( getRawDataFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000020; break; } // case 42 case 50: { input.readMessage( getFeatureLayerDataFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000040; break; } // case 50 case 58: { input.readMessage( getRenderDataFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000080; break; } // case 58 case 66: { input.readMessage( getUiDataFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000100; break; } // case 66 case 72: { gameLoop_ = input.readUInt32(); bitField0_ |= 0x00000001; break; } // case 72 case 80: { int tmpRaw = input.readEnum(); SC2APIProtocol.Sc2Api.Alert tmpValue = SC2APIProtocol.Sc2Api.Alert.forNumber(tmpRaw); if (tmpValue == null) { mergeUnknownVarintField(10, tmpRaw); } else { ensureAlertsIsMutable(); alerts_.add(tmpRaw); } break; } // case 80 case 82: { int length = input.readRawVarint32(); int oldLimit = input.pushLimit(length); while(input.getBytesUntilLimit() > 0) { int tmpRaw = input.readEnum(); SC2APIProtocol.Sc2Api.Alert tmpValue = SC2APIProtocol.Sc2Api.Alert.forNumber(tmpRaw); if (tmpValue == null) { mergeUnknownVarintField(10, tmpRaw); } else { ensureAlertsIsMutable(); alerts_.add(tmpRaw); } } input.popLimit(oldLimit); break; } // case 82 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 gameLoop_ ; /** * optional uint32 game_loop = 9; * @return Whether the gameLoop field is set. */ @java.lang.Override public boolean hasGameLoop() { return ((bitField0_ & 0x00000001) != 0); } /** * optional uint32 game_loop = 9; * @return The gameLoop. */ @java.lang.Override public int getGameLoop() { return gameLoop_; } /** * optional uint32 game_loop = 9; * @param value The gameLoop to set. * @return This builder for chaining. */ public Builder setGameLoop(int value) { bitField0_ |= 0x00000001; gameLoop_ = value; onChanged(); return this; } /** * optional uint32 game_loop = 9; * @return This builder for chaining. */ public Builder clearGameLoop() { bitField0_ = (bitField0_ & ~0x00000001); gameLoop_ = 0; onChanged(); return this; } private SC2APIProtocol.Sc2Api.PlayerCommon playerCommon_; private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.PlayerCommon, SC2APIProtocol.Sc2Api.PlayerCommon.Builder, SC2APIProtocol.Sc2Api.PlayerCommonOrBuilder> playerCommonBuilder_; /** * optional .SC2APIProtocol.PlayerCommon player_common = 1; * @return Whether the playerCommon field is set. */ public boolean hasPlayerCommon() { return ((bitField0_ & 0x00000002) != 0); } /** * optional .SC2APIProtocol.PlayerCommon player_common = 1; * @return The playerCommon. */ public SC2APIProtocol.Sc2Api.PlayerCommon getPlayerCommon() { if (playerCommonBuilder_ == null) { return playerCommon_ == null ? SC2APIProtocol.Sc2Api.PlayerCommon.getDefaultInstance() : playerCommon_; } else { return playerCommonBuilder_.getMessage(); } } /** * optional .SC2APIProtocol.PlayerCommon player_common = 1; */ public Builder setPlayerCommon(SC2APIProtocol.Sc2Api.PlayerCommon value) { if (playerCommonBuilder_ == null) { if (value == null) { throw new NullPointerException(); } playerCommon_ = value; onChanged(); } else { playerCommonBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /** * optional .SC2APIProtocol.PlayerCommon player_common = 1; */ public Builder setPlayerCommon( SC2APIProtocol.Sc2Api.PlayerCommon.Builder builderForValue) { if (playerCommonBuilder_ == null) { playerCommon_ = builderForValue.build(); onChanged(); } else { playerCommonBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** * optional .SC2APIProtocol.PlayerCommon player_common = 1; */ public Builder mergePlayerCommon(SC2APIProtocol.Sc2Api.PlayerCommon value) { if (playerCommonBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && playerCommon_ != null && playerCommon_ != SC2APIProtocol.Sc2Api.PlayerCommon.getDefaultInstance()) { playerCommon_ = SC2APIProtocol.Sc2Api.PlayerCommon.newBuilder(playerCommon_).mergeFrom(value).buildPartial(); } else { playerCommon_ = value; } onChanged(); } else { playerCommonBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** * optional .SC2APIProtocol.PlayerCommon player_common = 1; */ public Builder clearPlayerCommon() { if (playerCommonBuilder_ == null) { playerCommon_ = null; onChanged(); } else { playerCommonBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** * optional .SC2APIProtocol.PlayerCommon player_common = 1; */ public SC2APIProtocol.Sc2Api.PlayerCommon.Builder getPlayerCommonBuilder() { bitField0_ |= 0x00000002; onChanged(); return getPlayerCommonFieldBuilder().getBuilder(); } /** * optional .SC2APIProtocol.PlayerCommon player_common = 1; */ public SC2APIProtocol.Sc2Api.PlayerCommonOrBuilder getPlayerCommonOrBuilder() { if (playerCommonBuilder_ != null) { return playerCommonBuilder_.getMessageOrBuilder(); } else { return playerCommon_ == null ? SC2APIProtocol.Sc2Api.PlayerCommon.getDefaultInstance() : playerCommon_; } } /** * optional .SC2APIProtocol.PlayerCommon player_common = 1; */ private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.PlayerCommon, SC2APIProtocol.Sc2Api.PlayerCommon.Builder, SC2APIProtocol.Sc2Api.PlayerCommonOrBuilder> getPlayerCommonFieldBuilder() { if (playerCommonBuilder_ == null) { playerCommonBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.PlayerCommon, SC2APIProtocol.Sc2Api.PlayerCommon.Builder, SC2APIProtocol.Sc2Api.PlayerCommonOrBuilder>( getPlayerCommon(), getParentForChildren(), isClean()); playerCommon_ = null; } return playerCommonBuilder_; } private java.util.List alerts_ = java.util.Collections.emptyList(); private void ensureAlertsIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { alerts_ = new java.util.ArrayList(alerts_); bitField0_ |= 0x00000004; } } /** * repeated .SC2APIProtocol.Alert alerts = 10; * @return A list containing the alerts. */ public java.util.List getAlertsList() { return new com.google.protobuf.Internal.ListAdapter< java.lang.Integer, SC2APIProtocol.Sc2Api.Alert>(alerts_, alerts_converter_); } /** * repeated .SC2APIProtocol.Alert alerts = 10; * @return The count of alerts. */ public int getAlertsCount() { return alerts_.size(); } /** * repeated .SC2APIProtocol.Alert alerts = 10; * @param index The index of the element to return. * @return The alerts at the given index. */ public SC2APIProtocol.Sc2Api.Alert getAlerts(int index) { return alerts_converter_.convert(alerts_.get(index)); } /** * repeated .SC2APIProtocol.Alert alerts = 10; * @param index The index to set the value at. * @param value The alerts to set. * @return This builder for chaining. */ public Builder setAlerts( int index, SC2APIProtocol.Sc2Api.Alert value) { if (value == null) { throw new NullPointerException(); } ensureAlertsIsMutable(); alerts_.set(index, value.getNumber()); onChanged(); return this; } /** * repeated .SC2APIProtocol.Alert alerts = 10; * @param value The alerts to add. * @return This builder for chaining. */ public Builder addAlerts(SC2APIProtocol.Sc2Api.Alert value) { if (value == null) { throw new NullPointerException(); } ensureAlertsIsMutable(); alerts_.add(value.getNumber()); onChanged(); return this; } /** * repeated .SC2APIProtocol.Alert alerts = 10; * @param values The alerts to add. * @return This builder for chaining. */ public Builder addAllAlerts( java.lang.Iterable values) { ensureAlertsIsMutable(); for (SC2APIProtocol.Sc2Api.Alert value : values) { alerts_.add(value.getNumber()); } onChanged(); return this; } /** * repeated .SC2APIProtocol.Alert alerts = 10; * @return This builder for chaining. */ public Builder clearAlerts() { alerts_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } private java.util.List abilities_ = java.util.Collections.emptyList(); private void ensureAbilitiesIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { abilities_ = new java.util.ArrayList(abilities_); bitField0_ |= 0x00000008; } } private com.google.protobuf.RepeatedFieldBuilderV3< SC2APIProtocol.Common.AvailableAbility, SC2APIProtocol.Common.AvailableAbility.Builder, SC2APIProtocol.Common.AvailableAbilityOrBuilder> abilitiesBuilder_; /** *
       * Abilities available in the selection. Enabled if in this list, disabled otherwise.
       * 
* * repeated .SC2APIProtocol.AvailableAbility abilities = 3; */ public java.util.List getAbilitiesList() { if (abilitiesBuilder_ == null) { return java.util.Collections.unmodifiableList(abilities_); } else { return abilitiesBuilder_.getMessageList(); } } /** *
       * Abilities available in the selection. Enabled if in this list, disabled otherwise.
       * 
* * repeated .SC2APIProtocol.AvailableAbility abilities = 3; */ public int getAbilitiesCount() { if (abilitiesBuilder_ == null) { return abilities_.size(); } else { return abilitiesBuilder_.getCount(); } } /** *
       * Abilities available in the selection. Enabled if in this list, disabled otherwise.
       * 
* * repeated .SC2APIProtocol.AvailableAbility abilities = 3; */ public SC2APIProtocol.Common.AvailableAbility getAbilities(int index) { if (abilitiesBuilder_ == null) { return abilities_.get(index); } else { return abilitiesBuilder_.getMessage(index); } } /** *
       * Abilities available in the selection. Enabled if in this list, disabled otherwise.
       * 
* * repeated .SC2APIProtocol.AvailableAbility abilities = 3; */ public Builder setAbilities( int index, SC2APIProtocol.Common.AvailableAbility value) { if (abilitiesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAbilitiesIsMutable(); abilities_.set(index, value); onChanged(); } else { abilitiesBuilder_.setMessage(index, value); } return this; } /** *
       * Abilities available in the selection. Enabled if in this list, disabled otherwise.
       * 
* * repeated .SC2APIProtocol.AvailableAbility abilities = 3; */ public Builder setAbilities( int index, SC2APIProtocol.Common.AvailableAbility.Builder builderForValue) { if (abilitiesBuilder_ == null) { ensureAbilitiesIsMutable(); abilities_.set(index, builderForValue.build()); onChanged(); } else { abilitiesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * Abilities available in the selection. Enabled if in this list, disabled otherwise.
       * 
* * repeated .SC2APIProtocol.AvailableAbility abilities = 3; */ public Builder addAbilities(SC2APIProtocol.Common.AvailableAbility value) { if (abilitiesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAbilitiesIsMutable(); abilities_.add(value); onChanged(); } else { abilitiesBuilder_.addMessage(value); } return this; } /** *
       * Abilities available in the selection. Enabled if in this list, disabled otherwise.
       * 
* * repeated .SC2APIProtocol.AvailableAbility abilities = 3; */ public Builder addAbilities( int index, SC2APIProtocol.Common.AvailableAbility value) { if (abilitiesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureAbilitiesIsMutable(); abilities_.add(index, value); onChanged(); } else { abilitiesBuilder_.addMessage(index, value); } return this; } /** *
       * Abilities available in the selection. Enabled if in this list, disabled otherwise.
       * 
* * repeated .SC2APIProtocol.AvailableAbility abilities = 3; */ public Builder addAbilities( SC2APIProtocol.Common.AvailableAbility.Builder builderForValue) { if (abilitiesBuilder_ == null) { ensureAbilitiesIsMutable(); abilities_.add(builderForValue.build()); onChanged(); } else { abilitiesBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * Abilities available in the selection. Enabled if in this list, disabled otherwise.
       * 
* * repeated .SC2APIProtocol.AvailableAbility abilities = 3; */ public Builder addAbilities( int index, SC2APIProtocol.Common.AvailableAbility.Builder builderForValue) { if (abilitiesBuilder_ == null) { ensureAbilitiesIsMutable(); abilities_.add(index, builderForValue.build()); onChanged(); } else { abilitiesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * Abilities available in the selection. Enabled if in this list, disabled otherwise.
       * 
* * repeated .SC2APIProtocol.AvailableAbility abilities = 3; */ public Builder addAllAbilities( java.lang.Iterable values) { if (abilitiesBuilder_ == null) { ensureAbilitiesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, abilities_); onChanged(); } else { abilitiesBuilder_.addAllMessages(values); } return this; } /** *
       * Abilities available in the selection. Enabled if in this list, disabled otherwise.
       * 
* * repeated .SC2APIProtocol.AvailableAbility abilities = 3; */ public Builder clearAbilities() { if (abilitiesBuilder_ == null) { abilities_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); } else { abilitiesBuilder_.clear(); } return this; } /** *
       * Abilities available in the selection. Enabled if in this list, disabled otherwise.
       * 
* * repeated .SC2APIProtocol.AvailableAbility abilities = 3; */ public Builder removeAbilities(int index) { if (abilitiesBuilder_ == null) { ensureAbilitiesIsMutable(); abilities_.remove(index); onChanged(); } else { abilitiesBuilder_.remove(index); } return this; } /** *
       * Abilities available in the selection. Enabled if in this list, disabled otherwise.
       * 
* * repeated .SC2APIProtocol.AvailableAbility abilities = 3; */ public SC2APIProtocol.Common.AvailableAbility.Builder getAbilitiesBuilder( int index) { return getAbilitiesFieldBuilder().getBuilder(index); } /** *
       * Abilities available in the selection. Enabled if in this list, disabled otherwise.
       * 
* * repeated .SC2APIProtocol.AvailableAbility abilities = 3; */ public SC2APIProtocol.Common.AvailableAbilityOrBuilder getAbilitiesOrBuilder( int index) { if (abilitiesBuilder_ == null) { return abilities_.get(index); } else { return abilitiesBuilder_.getMessageOrBuilder(index); } } /** *
       * Abilities available in the selection. Enabled if in this list, disabled otherwise.
       * 
* * repeated .SC2APIProtocol.AvailableAbility abilities = 3; */ public java.util.List getAbilitiesOrBuilderList() { if (abilitiesBuilder_ != null) { return abilitiesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(abilities_); } } /** *
       * Abilities available in the selection. Enabled if in this list, disabled otherwise.
       * 
* * repeated .SC2APIProtocol.AvailableAbility abilities = 3; */ public SC2APIProtocol.Common.AvailableAbility.Builder addAbilitiesBuilder() { return getAbilitiesFieldBuilder().addBuilder( SC2APIProtocol.Common.AvailableAbility.getDefaultInstance()); } /** *
       * Abilities available in the selection. Enabled if in this list, disabled otherwise.
       * 
* * repeated .SC2APIProtocol.AvailableAbility abilities = 3; */ public SC2APIProtocol.Common.AvailableAbility.Builder addAbilitiesBuilder( int index) { return getAbilitiesFieldBuilder().addBuilder( index, SC2APIProtocol.Common.AvailableAbility.getDefaultInstance()); } /** *
       * Abilities available in the selection. Enabled if in this list, disabled otherwise.
       * 
* * repeated .SC2APIProtocol.AvailableAbility abilities = 3; */ public java.util.List getAbilitiesBuilderList() { return getAbilitiesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< SC2APIProtocol.Common.AvailableAbility, SC2APIProtocol.Common.AvailableAbility.Builder, SC2APIProtocol.Common.AvailableAbilityOrBuilder> getAbilitiesFieldBuilder() { if (abilitiesBuilder_ == null) { abilitiesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< SC2APIProtocol.Common.AvailableAbility, SC2APIProtocol.Common.AvailableAbility.Builder, SC2APIProtocol.Common.AvailableAbilityOrBuilder>( abilities_, ((bitField0_ & 0x00000008) != 0), getParentForChildren(), isClean()); abilities_ = null; } return abilitiesBuilder_; } private SC2APIProtocol.ScoreOuterClass.Score score_; private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.ScoreOuterClass.Score, SC2APIProtocol.ScoreOuterClass.Score.Builder, SC2APIProtocol.ScoreOuterClass.ScoreOrBuilder> scoreBuilder_; /** * optional .SC2APIProtocol.Score score = 4; * @return Whether the score field is set. */ public boolean hasScore() { return ((bitField0_ & 0x00000010) != 0); } /** * optional .SC2APIProtocol.Score score = 4; * @return The score. */ public SC2APIProtocol.ScoreOuterClass.Score getScore() { if (scoreBuilder_ == null) { return score_ == null ? SC2APIProtocol.ScoreOuterClass.Score.getDefaultInstance() : score_; } else { return scoreBuilder_.getMessage(); } } /** * optional .SC2APIProtocol.Score score = 4; */ public Builder setScore(SC2APIProtocol.ScoreOuterClass.Score value) { if (scoreBuilder_ == null) { if (value == null) { throw new NullPointerException(); } score_ = value; onChanged(); } else { scoreBuilder_.setMessage(value); } bitField0_ |= 0x00000010; return this; } /** * optional .SC2APIProtocol.Score score = 4; */ public Builder setScore( SC2APIProtocol.ScoreOuterClass.Score.Builder builderForValue) { if (scoreBuilder_ == null) { score_ = builderForValue.build(); onChanged(); } else { scoreBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; return this; } /** * optional .SC2APIProtocol.Score score = 4; */ public Builder mergeScore(SC2APIProtocol.ScoreOuterClass.Score value) { if (scoreBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0) && score_ != null && score_ != SC2APIProtocol.ScoreOuterClass.Score.getDefaultInstance()) { score_ = SC2APIProtocol.ScoreOuterClass.Score.newBuilder(score_).mergeFrom(value).buildPartial(); } else { score_ = value; } onChanged(); } else { scoreBuilder_.mergeFrom(value); } bitField0_ |= 0x00000010; return this; } /** * optional .SC2APIProtocol.Score score = 4; */ public Builder clearScore() { if (scoreBuilder_ == null) { score_ = null; onChanged(); } else { scoreBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); return this; } /** * optional .SC2APIProtocol.Score score = 4; */ public SC2APIProtocol.ScoreOuterClass.Score.Builder getScoreBuilder() { bitField0_ |= 0x00000010; onChanged(); return getScoreFieldBuilder().getBuilder(); } /** * optional .SC2APIProtocol.Score score = 4; */ public SC2APIProtocol.ScoreOuterClass.ScoreOrBuilder getScoreOrBuilder() { if (scoreBuilder_ != null) { return scoreBuilder_.getMessageOrBuilder(); } else { return score_ == null ? SC2APIProtocol.ScoreOuterClass.Score.getDefaultInstance() : score_; } } /** * optional .SC2APIProtocol.Score score = 4; */ private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.ScoreOuterClass.Score, SC2APIProtocol.ScoreOuterClass.Score.Builder, SC2APIProtocol.ScoreOuterClass.ScoreOrBuilder> getScoreFieldBuilder() { if (scoreBuilder_ == null) { scoreBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.ScoreOuterClass.Score, SC2APIProtocol.ScoreOuterClass.Score.Builder, SC2APIProtocol.ScoreOuterClass.ScoreOrBuilder>( getScore(), getParentForChildren(), isClean()); score_ = null; } return scoreBuilder_; } private SC2APIProtocol.Raw.ObservationRaw rawData_; private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Raw.ObservationRaw, SC2APIProtocol.Raw.ObservationRaw.Builder, SC2APIProtocol.Raw.ObservationRawOrBuilder> rawDataBuilder_; /** *
       * Populated if Raw interface is enabled.
       * 
* * optional .SC2APIProtocol.ObservationRaw raw_data = 5; * @return Whether the rawData field is set. */ public boolean hasRawData() { return ((bitField0_ & 0x00000020) != 0); } /** *
       * Populated if Raw interface is enabled.
       * 
* * optional .SC2APIProtocol.ObservationRaw raw_data = 5; * @return The rawData. */ public SC2APIProtocol.Raw.ObservationRaw getRawData() { if (rawDataBuilder_ == null) { return rawData_ == null ? SC2APIProtocol.Raw.ObservationRaw.getDefaultInstance() : rawData_; } else { return rawDataBuilder_.getMessage(); } } /** *
       * Populated if Raw interface is enabled.
       * 
* * optional .SC2APIProtocol.ObservationRaw raw_data = 5; */ public Builder setRawData(SC2APIProtocol.Raw.ObservationRaw value) { if (rawDataBuilder_ == null) { if (value == null) { throw new NullPointerException(); } rawData_ = value; onChanged(); } else { rawDataBuilder_.setMessage(value); } bitField0_ |= 0x00000020; return this; } /** *
       * Populated if Raw interface is enabled.
       * 
* * optional .SC2APIProtocol.ObservationRaw raw_data = 5; */ public Builder setRawData( SC2APIProtocol.Raw.ObservationRaw.Builder builderForValue) { if (rawDataBuilder_ == null) { rawData_ = builderForValue.build(); onChanged(); } else { rawDataBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000020; return this; } /** *
       * Populated if Raw interface is enabled.
       * 
* * optional .SC2APIProtocol.ObservationRaw raw_data = 5; */ public Builder mergeRawData(SC2APIProtocol.Raw.ObservationRaw value) { if (rawDataBuilder_ == null) { if (((bitField0_ & 0x00000020) != 0) && rawData_ != null && rawData_ != SC2APIProtocol.Raw.ObservationRaw.getDefaultInstance()) { rawData_ = SC2APIProtocol.Raw.ObservationRaw.newBuilder(rawData_).mergeFrom(value).buildPartial(); } else { rawData_ = value; } onChanged(); } else { rawDataBuilder_.mergeFrom(value); } bitField0_ |= 0x00000020; return this; } /** *
       * Populated if Raw interface is enabled.
       * 
* * optional .SC2APIProtocol.ObservationRaw raw_data = 5; */ public Builder clearRawData() { if (rawDataBuilder_ == null) { rawData_ = null; onChanged(); } else { rawDataBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000020); return this; } /** *
       * Populated if Raw interface is enabled.
       * 
* * optional .SC2APIProtocol.ObservationRaw raw_data = 5; */ public SC2APIProtocol.Raw.ObservationRaw.Builder getRawDataBuilder() { bitField0_ |= 0x00000020; onChanged(); return getRawDataFieldBuilder().getBuilder(); } /** *
       * Populated if Raw interface is enabled.
       * 
* * optional .SC2APIProtocol.ObservationRaw raw_data = 5; */ public SC2APIProtocol.Raw.ObservationRawOrBuilder getRawDataOrBuilder() { if (rawDataBuilder_ != null) { return rawDataBuilder_.getMessageOrBuilder(); } else { return rawData_ == null ? SC2APIProtocol.Raw.ObservationRaw.getDefaultInstance() : rawData_; } } /** *
       * Populated if Raw interface is enabled.
       * 
* * optional .SC2APIProtocol.ObservationRaw raw_data = 5; */ private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Raw.ObservationRaw, SC2APIProtocol.Raw.ObservationRaw.Builder, SC2APIProtocol.Raw.ObservationRawOrBuilder> getRawDataFieldBuilder() { if (rawDataBuilder_ == null) { rawDataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Raw.ObservationRaw, SC2APIProtocol.Raw.ObservationRaw.Builder, SC2APIProtocol.Raw.ObservationRawOrBuilder>( getRawData(), getParentForChildren(), isClean()); rawData_ = null; } return rawDataBuilder_; } private SC2APIProtocol.Spatial.ObservationFeatureLayer featureLayerData_; private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Spatial.ObservationFeatureLayer, SC2APIProtocol.Spatial.ObservationFeatureLayer.Builder, SC2APIProtocol.Spatial.ObservationFeatureLayerOrBuilder> featureLayerDataBuilder_; /** *
       * Populated if Feature Layer interface is enabled.
       * 
* * optional .SC2APIProtocol.ObservationFeatureLayer feature_layer_data = 6; * @return Whether the featureLayerData field is set. */ public boolean hasFeatureLayerData() { return ((bitField0_ & 0x00000040) != 0); } /** *
       * Populated if Feature Layer interface is enabled.
       * 
* * optional .SC2APIProtocol.ObservationFeatureLayer feature_layer_data = 6; * @return The featureLayerData. */ public SC2APIProtocol.Spatial.ObservationFeatureLayer getFeatureLayerData() { if (featureLayerDataBuilder_ == null) { return featureLayerData_ == null ? SC2APIProtocol.Spatial.ObservationFeatureLayer.getDefaultInstance() : featureLayerData_; } else { return featureLayerDataBuilder_.getMessage(); } } /** *
       * Populated if Feature Layer interface is enabled.
       * 
* * optional .SC2APIProtocol.ObservationFeatureLayer feature_layer_data = 6; */ public Builder setFeatureLayerData(SC2APIProtocol.Spatial.ObservationFeatureLayer value) { if (featureLayerDataBuilder_ == null) { if (value == null) { throw new NullPointerException(); } featureLayerData_ = value; onChanged(); } else { featureLayerDataBuilder_.setMessage(value); } bitField0_ |= 0x00000040; return this; } /** *
       * Populated if Feature Layer interface is enabled.
       * 
* * optional .SC2APIProtocol.ObservationFeatureLayer feature_layer_data = 6; */ public Builder setFeatureLayerData( SC2APIProtocol.Spatial.ObservationFeatureLayer.Builder builderForValue) { if (featureLayerDataBuilder_ == null) { featureLayerData_ = builderForValue.build(); onChanged(); } else { featureLayerDataBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000040; return this; } /** *
       * Populated if Feature Layer interface is enabled.
       * 
* * optional .SC2APIProtocol.ObservationFeatureLayer feature_layer_data = 6; */ public Builder mergeFeatureLayerData(SC2APIProtocol.Spatial.ObservationFeatureLayer value) { if (featureLayerDataBuilder_ == null) { if (((bitField0_ & 0x00000040) != 0) && featureLayerData_ != null && featureLayerData_ != SC2APIProtocol.Spatial.ObservationFeatureLayer.getDefaultInstance()) { featureLayerData_ = SC2APIProtocol.Spatial.ObservationFeatureLayer.newBuilder(featureLayerData_).mergeFrom(value).buildPartial(); } else { featureLayerData_ = value; } onChanged(); } else { featureLayerDataBuilder_.mergeFrom(value); } bitField0_ |= 0x00000040; return this; } /** *
       * Populated if Feature Layer interface is enabled.
       * 
* * optional .SC2APIProtocol.ObservationFeatureLayer feature_layer_data = 6; */ public Builder clearFeatureLayerData() { if (featureLayerDataBuilder_ == null) { featureLayerData_ = null; onChanged(); } else { featureLayerDataBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000040); return this; } /** *
       * Populated if Feature Layer interface is enabled.
       * 
* * optional .SC2APIProtocol.ObservationFeatureLayer feature_layer_data = 6; */ public SC2APIProtocol.Spatial.ObservationFeatureLayer.Builder getFeatureLayerDataBuilder() { bitField0_ |= 0x00000040; onChanged(); return getFeatureLayerDataFieldBuilder().getBuilder(); } /** *
       * Populated if Feature Layer interface is enabled.
       * 
* * optional .SC2APIProtocol.ObservationFeatureLayer feature_layer_data = 6; */ public SC2APIProtocol.Spatial.ObservationFeatureLayerOrBuilder getFeatureLayerDataOrBuilder() { if (featureLayerDataBuilder_ != null) { return featureLayerDataBuilder_.getMessageOrBuilder(); } else { return featureLayerData_ == null ? SC2APIProtocol.Spatial.ObservationFeatureLayer.getDefaultInstance() : featureLayerData_; } } /** *
       * Populated if Feature Layer interface is enabled.
       * 
* * optional .SC2APIProtocol.ObservationFeatureLayer feature_layer_data = 6; */ private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Spatial.ObservationFeatureLayer, SC2APIProtocol.Spatial.ObservationFeatureLayer.Builder, SC2APIProtocol.Spatial.ObservationFeatureLayerOrBuilder> getFeatureLayerDataFieldBuilder() { if (featureLayerDataBuilder_ == null) { featureLayerDataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Spatial.ObservationFeatureLayer, SC2APIProtocol.Spatial.ObservationFeatureLayer.Builder, SC2APIProtocol.Spatial.ObservationFeatureLayerOrBuilder>( getFeatureLayerData(), getParentForChildren(), isClean()); featureLayerData_ = null; } return featureLayerDataBuilder_; } private SC2APIProtocol.Spatial.ObservationRender renderData_; private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Spatial.ObservationRender, SC2APIProtocol.Spatial.ObservationRender.Builder, SC2APIProtocol.Spatial.ObservationRenderOrBuilder> renderDataBuilder_; /** *
       * Populated if Render interface is enabled.
       * 
* * optional .SC2APIProtocol.ObservationRender render_data = 7; * @return Whether the renderData field is set. */ public boolean hasRenderData() { return ((bitField0_ & 0x00000080) != 0); } /** *
       * Populated if Render interface is enabled.
       * 
* * optional .SC2APIProtocol.ObservationRender render_data = 7; * @return The renderData. */ public SC2APIProtocol.Spatial.ObservationRender getRenderData() { if (renderDataBuilder_ == null) { return renderData_ == null ? SC2APIProtocol.Spatial.ObservationRender.getDefaultInstance() : renderData_; } else { return renderDataBuilder_.getMessage(); } } /** *
       * Populated if Render interface is enabled.
       * 
* * optional .SC2APIProtocol.ObservationRender render_data = 7; */ public Builder setRenderData(SC2APIProtocol.Spatial.ObservationRender value) { if (renderDataBuilder_ == null) { if (value == null) { throw new NullPointerException(); } renderData_ = value; onChanged(); } else { renderDataBuilder_.setMessage(value); } bitField0_ |= 0x00000080; return this; } /** *
       * Populated if Render interface is enabled.
       * 
* * optional .SC2APIProtocol.ObservationRender render_data = 7; */ public Builder setRenderData( SC2APIProtocol.Spatial.ObservationRender.Builder builderForValue) { if (renderDataBuilder_ == null) { renderData_ = builderForValue.build(); onChanged(); } else { renderDataBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000080; return this; } /** *
       * Populated if Render interface is enabled.
       * 
* * optional .SC2APIProtocol.ObservationRender render_data = 7; */ public Builder mergeRenderData(SC2APIProtocol.Spatial.ObservationRender value) { if (renderDataBuilder_ == null) { if (((bitField0_ & 0x00000080) != 0) && renderData_ != null && renderData_ != SC2APIProtocol.Spatial.ObservationRender.getDefaultInstance()) { renderData_ = SC2APIProtocol.Spatial.ObservationRender.newBuilder(renderData_).mergeFrom(value).buildPartial(); } else { renderData_ = value; } onChanged(); } else { renderDataBuilder_.mergeFrom(value); } bitField0_ |= 0x00000080; return this; } /** *
       * Populated if Render interface is enabled.
       * 
* * optional .SC2APIProtocol.ObservationRender render_data = 7; */ public Builder clearRenderData() { if (renderDataBuilder_ == null) { renderData_ = null; onChanged(); } else { renderDataBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000080); return this; } /** *
       * Populated if Render interface is enabled.
       * 
* * optional .SC2APIProtocol.ObservationRender render_data = 7; */ public SC2APIProtocol.Spatial.ObservationRender.Builder getRenderDataBuilder() { bitField0_ |= 0x00000080; onChanged(); return getRenderDataFieldBuilder().getBuilder(); } /** *
       * Populated if Render interface is enabled.
       * 
* * optional .SC2APIProtocol.ObservationRender render_data = 7; */ public SC2APIProtocol.Spatial.ObservationRenderOrBuilder getRenderDataOrBuilder() { if (renderDataBuilder_ != null) { return renderDataBuilder_.getMessageOrBuilder(); } else { return renderData_ == null ? SC2APIProtocol.Spatial.ObservationRender.getDefaultInstance() : renderData_; } } /** *
       * Populated if Render interface is enabled.
       * 
* * optional .SC2APIProtocol.ObservationRender render_data = 7; */ private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Spatial.ObservationRender, SC2APIProtocol.Spatial.ObservationRender.Builder, SC2APIProtocol.Spatial.ObservationRenderOrBuilder> getRenderDataFieldBuilder() { if (renderDataBuilder_ == null) { renderDataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Spatial.ObservationRender, SC2APIProtocol.Spatial.ObservationRender.Builder, SC2APIProtocol.Spatial.ObservationRenderOrBuilder>( getRenderData(), getParentForChildren(), isClean()); renderData_ = null; } return renderDataBuilder_; } private SC2APIProtocol.Ui.ObservationUI uiData_; private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Ui.ObservationUI, SC2APIProtocol.Ui.ObservationUI.Builder, SC2APIProtocol.Ui.ObservationUIOrBuilder> uiDataBuilder_; /** *
       * Populated if Feature Layer or Render interface is enabled.
       * 
* * optional .SC2APIProtocol.ObservationUI ui_data = 8; * @return Whether the uiData field is set. */ public boolean hasUiData() { return ((bitField0_ & 0x00000100) != 0); } /** *
       * Populated if Feature Layer or Render interface is enabled.
       * 
* * optional .SC2APIProtocol.ObservationUI ui_data = 8; * @return The uiData. */ public SC2APIProtocol.Ui.ObservationUI getUiData() { if (uiDataBuilder_ == null) { return uiData_ == null ? SC2APIProtocol.Ui.ObservationUI.getDefaultInstance() : uiData_; } else { return uiDataBuilder_.getMessage(); } } /** *
       * Populated if Feature Layer or Render interface is enabled.
       * 
* * optional .SC2APIProtocol.ObservationUI ui_data = 8; */ public Builder setUiData(SC2APIProtocol.Ui.ObservationUI value) { if (uiDataBuilder_ == null) { if (value == null) { throw new NullPointerException(); } uiData_ = value; onChanged(); } else { uiDataBuilder_.setMessage(value); } bitField0_ |= 0x00000100; return this; } /** *
       * Populated if Feature Layer or Render interface is enabled.
       * 
* * optional .SC2APIProtocol.ObservationUI ui_data = 8; */ public Builder setUiData( SC2APIProtocol.Ui.ObservationUI.Builder builderForValue) { if (uiDataBuilder_ == null) { uiData_ = builderForValue.build(); onChanged(); } else { uiDataBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000100; return this; } /** *
       * Populated if Feature Layer or Render interface is enabled.
       * 
* * optional .SC2APIProtocol.ObservationUI ui_data = 8; */ public Builder mergeUiData(SC2APIProtocol.Ui.ObservationUI value) { if (uiDataBuilder_ == null) { if (((bitField0_ & 0x00000100) != 0) && uiData_ != null && uiData_ != SC2APIProtocol.Ui.ObservationUI.getDefaultInstance()) { uiData_ = SC2APIProtocol.Ui.ObservationUI.newBuilder(uiData_).mergeFrom(value).buildPartial(); } else { uiData_ = value; } onChanged(); } else { uiDataBuilder_.mergeFrom(value); } bitField0_ |= 0x00000100; return this; } /** *
       * Populated if Feature Layer or Render interface is enabled.
       * 
* * optional .SC2APIProtocol.ObservationUI ui_data = 8; */ public Builder clearUiData() { if (uiDataBuilder_ == null) { uiData_ = null; onChanged(); } else { uiDataBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000100); return this; } /** *
       * Populated if Feature Layer or Render interface is enabled.
       * 
* * optional .SC2APIProtocol.ObservationUI ui_data = 8; */ public SC2APIProtocol.Ui.ObservationUI.Builder getUiDataBuilder() { bitField0_ |= 0x00000100; onChanged(); return getUiDataFieldBuilder().getBuilder(); } /** *
       * Populated if Feature Layer or Render interface is enabled.
       * 
* * optional .SC2APIProtocol.ObservationUI ui_data = 8; */ public SC2APIProtocol.Ui.ObservationUIOrBuilder getUiDataOrBuilder() { if (uiDataBuilder_ != null) { return uiDataBuilder_.getMessageOrBuilder(); } else { return uiData_ == null ? SC2APIProtocol.Ui.ObservationUI.getDefaultInstance() : uiData_; } } /** *
       * Populated if Feature Layer or Render interface is enabled.
       * 
* * optional .SC2APIProtocol.ObservationUI ui_data = 8; */ private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Ui.ObservationUI, SC2APIProtocol.Ui.ObservationUI.Builder, SC2APIProtocol.Ui.ObservationUIOrBuilder> getUiDataFieldBuilder() { if (uiDataBuilder_ == null) { uiDataBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Ui.ObservationUI, SC2APIProtocol.Ui.ObservationUI.Builder, SC2APIProtocol.Ui.ObservationUIOrBuilder>( getUiData(), getParentForChildren(), isClean()); uiData_ = null; } return uiDataBuilder_; } @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.Observation) } // @@protoc_insertion_point(class_scope:SC2APIProtocol.Observation) private static final SC2APIProtocol.Sc2Api.Observation DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new SC2APIProtocol.Sc2Api.Observation(); } public static SC2APIProtocol.Sc2Api.Observation getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Observation 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.Sc2Api.Observation getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ActionOrBuilder extends // @@protoc_insertion_point(interface_extends:SC2APIProtocol.Action) com.google.protobuf.MessageOrBuilder { /** *
     * Populated if Raw interface is enabled.
     * 
* * optional .SC2APIProtocol.ActionRaw action_raw = 1; * @return Whether the actionRaw field is set. */ boolean hasActionRaw(); /** *
     * Populated if Raw interface is enabled.
     * 
* * optional .SC2APIProtocol.ActionRaw action_raw = 1; * @return The actionRaw. */ SC2APIProtocol.Raw.ActionRaw getActionRaw(); /** *
     * Populated if Raw interface is enabled.
     * 
* * optional .SC2APIProtocol.ActionRaw action_raw = 1; */ SC2APIProtocol.Raw.ActionRawOrBuilder getActionRawOrBuilder(); /** *
     * Populated if Feature Layer interface is enabled.
     * 
* * optional .SC2APIProtocol.ActionSpatial action_feature_layer = 2; * @return Whether the actionFeatureLayer field is set. */ boolean hasActionFeatureLayer(); /** *
     * Populated if Feature Layer interface is enabled.
     * 
* * optional .SC2APIProtocol.ActionSpatial action_feature_layer = 2; * @return The actionFeatureLayer. */ SC2APIProtocol.Spatial.ActionSpatial getActionFeatureLayer(); /** *
     * Populated if Feature Layer interface is enabled.
     * 
* * optional .SC2APIProtocol.ActionSpatial action_feature_layer = 2; */ SC2APIProtocol.Spatial.ActionSpatialOrBuilder getActionFeatureLayerOrBuilder(); /** *
     * Not implemented. Populated if Render interface is enabled.
     * 
* * optional .SC2APIProtocol.ActionSpatial action_render = 3; * @return Whether the actionRender field is set. */ boolean hasActionRender(); /** *
     * Not implemented. Populated if Render interface is enabled.
     * 
* * optional .SC2APIProtocol.ActionSpatial action_render = 3; * @return The actionRender. */ SC2APIProtocol.Spatial.ActionSpatial getActionRender(); /** *
     * Not implemented. Populated if Render interface is enabled.
     * 
* * optional .SC2APIProtocol.ActionSpatial action_render = 3; */ SC2APIProtocol.Spatial.ActionSpatialOrBuilder getActionRenderOrBuilder(); /** *
     * Populated if Feature Layer or Render interface is enabled.
     * 
* * optional .SC2APIProtocol.ActionUI action_ui = 4; * @return Whether the actionUi field is set. */ boolean hasActionUi(); /** *
     * Populated if Feature Layer or Render interface is enabled.
     * 
* * optional .SC2APIProtocol.ActionUI action_ui = 4; * @return The actionUi. */ SC2APIProtocol.Ui.ActionUI getActionUi(); /** *
     * Populated if Feature Layer or Render interface is enabled.
     * 
* * optional .SC2APIProtocol.ActionUI action_ui = 4; */ SC2APIProtocol.Ui.ActionUIOrBuilder getActionUiOrBuilder(); /** *
     * Chat messages as a player typing into the chat channel.
     * 
* * optional .SC2APIProtocol.ActionChat action_chat = 6; * @return Whether the actionChat field is set. */ boolean hasActionChat(); /** *
     * Chat messages as a player typing into the chat channel.
     * 
* * optional .SC2APIProtocol.ActionChat action_chat = 6; * @return The actionChat. */ SC2APIProtocol.Sc2Api.ActionChat getActionChat(); /** *
     * Chat messages as a player typing into the chat channel.
     * 
* * optional .SC2APIProtocol.ActionChat action_chat = 6; */ SC2APIProtocol.Sc2Api.ActionChatOrBuilder getActionChatOrBuilder(); /** *
     * Populated for actions in ResponseObservation. The game loop on which the action was executed.
     * 
* * optional uint32 game_loop = 7; * @return Whether the gameLoop field is set. */ boolean hasGameLoop(); /** *
     * Populated for actions in ResponseObservation. The game loop on which the action was executed.
     * 
* * optional uint32 game_loop = 7; * @return The gameLoop. */ int getGameLoop(); } /** * Protobuf type {@code SC2APIProtocol.Action} */ public static final class Action extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:SC2APIProtocol.Action) ActionOrBuilder { private static final long serialVersionUID = 0L; // Use Action.newBuilder() to construct. private Action(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Action() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Action(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_Action_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_Action_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Sc2Api.Action.class, SC2APIProtocol.Sc2Api.Action.Builder.class); } private int bitField0_; public static final int ACTION_RAW_FIELD_NUMBER = 1; private SC2APIProtocol.Raw.ActionRaw actionRaw_; /** *
     * Populated if Raw interface is enabled.
     * 
* * optional .SC2APIProtocol.ActionRaw action_raw = 1; * @return Whether the actionRaw field is set. */ @java.lang.Override public boolean hasActionRaw() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * Populated if Raw interface is enabled.
     * 
* * optional .SC2APIProtocol.ActionRaw action_raw = 1; * @return The actionRaw. */ @java.lang.Override public SC2APIProtocol.Raw.ActionRaw getActionRaw() { return actionRaw_ == null ? SC2APIProtocol.Raw.ActionRaw.getDefaultInstance() : actionRaw_; } /** *
     * Populated if Raw interface is enabled.
     * 
* * optional .SC2APIProtocol.ActionRaw action_raw = 1; */ @java.lang.Override public SC2APIProtocol.Raw.ActionRawOrBuilder getActionRawOrBuilder() { return actionRaw_ == null ? SC2APIProtocol.Raw.ActionRaw.getDefaultInstance() : actionRaw_; } public static final int ACTION_FEATURE_LAYER_FIELD_NUMBER = 2; private SC2APIProtocol.Spatial.ActionSpatial actionFeatureLayer_; /** *
     * Populated if Feature Layer interface is enabled.
     * 
* * optional .SC2APIProtocol.ActionSpatial action_feature_layer = 2; * @return Whether the actionFeatureLayer field is set. */ @java.lang.Override public boolean hasActionFeatureLayer() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * Populated if Feature Layer interface is enabled.
     * 
* * optional .SC2APIProtocol.ActionSpatial action_feature_layer = 2; * @return The actionFeatureLayer. */ @java.lang.Override public SC2APIProtocol.Spatial.ActionSpatial getActionFeatureLayer() { return actionFeatureLayer_ == null ? SC2APIProtocol.Spatial.ActionSpatial.getDefaultInstance() : actionFeatureLayer_; } /** *
     * Populated if Feature Layer interface is enabled.
     * 
* * optional .SC2APIProtocol.ActionSpatial action_feature_layer = 2; */ @java.lang.Override public SC2APIProtocol.Spatial.ActionSpatialOrBuilder getActionFeatureLayerOrBuilder() { return actionFeatureLayer_ == null ? SC2APIProtocol.Spatial.ActionSpatial.getDefaultInstance() : actionFeatureLayer_; } public static final int ACTION_RENDER_FIELD_NUMBER = 3; private SC2APIProtocol.Spatial.ActionSpatial actionRender_; /** *
     * Not implemented. Populated if Render interface is enabled.
     * 
* * optional .SC2APIProtocol.ActionSpatial action_render = 3; * @return Whether the actionRender field is set. */ @java.lang.Override public boolean hasActionRender() { return ((bitField0_ & 0x00000004) != 0); } /** *
     * Not implemented. Populated if Render interface is enabled.
     * 
* * optional .SC2APIProtocol.ActionSpatial action_render = 3; * @return The actionRender. */ @java.lang.Override public SC2APIProtocol.Spatial.ActionSpatial getActionRender() { return actionRender_ == null ? SC2APIProtocol.Spatial.ActionSpatial.getDefaultInstance() : actionRender_; } /** *
     * Not implemented. Populated if Render interface is enabled.
     * 
* * optional .SC2APIProtocol.ActionSpatial action_render = 3; */ @java.lang.Override public SC2APIProtocol.Spatial.ActionSpatialOrBuilder getActionRenderOrBuilder() { return actionRender_ == null ? SC2APIProtocol.Spatial.ActionSpatial.getDefaultInstance() : actionRender_; } public static final int ACTION_UI_FIELD_NUMBER = 4; private SC2APIProtocol.Ui.ActionUI actionUi_; /** *
     * Populated if Feature Layer or Render interface is enabled.
     * 
* * optional .SC2APIProtocol.ActionUI action_ui = 4; * @return Whether the actionUi field is set. */ @java.lang.Override public boolean hasActionUi() { return ((bitField0_ & 0x00000008) != 0); } /** *
     * Populated if Feature Layer or Render interface is enabled.
     * 
* * optional .SC2APIProtocol.ActionUI action_ui = 4; * @return The actionUi. */ @java.lang.Override public SC2APIProtocol.Ui.ActionUI getActionUi() { return actionUi_ == null ? SC2APIProtocol.Ui.ActionUI.getDefaultInstance() : actionUi_; } /** *
     * Populated if Feature Layer or Render interface is enabled.
     * 
* * optional .SC2APIProtocol.ActionUI action_ui = 4; */ @java.lang.Override public SC2APIProtocol.Ui.ActionUIOrBuilder getActionUiOrBuilder() { return actionUi_ == null ? SC2APIProtocol.Ui.ActionUI.getDefaultInstance() : actionUi_; } public static final int ACTION_CHAT_FIELD_NUMBER = 6; private SC2APIProtocol.Sc2Api.ActionChat actionChat_; /** *
     * Chat messages as a player typing into the chat channel.
     * 
* * optional .SC2APIProtocol.ActionChat action_chat = 6; * @return Whether the actionChat field is set. */ @java.lang.Override public boolean hasActionChat() { return ((bitField0_ & 0x00000010) != 0); } /** *
     * Chat messages as a player typing into the chat channel.
     * 
* * optional .SC2APIProtocol.ActionChat action_chat = 6; * @return The actionChat. */ @java.lang.Override public SC2APIProtocol.Sc2Api.ActionChat getActionChat() { return actionChat_ == null ? SC2APIProtocol.Sc2Api.ActionChat.getDefaultInstance() : actionChat_; } /** *
     * Chat messages as a player typing into the chat channel.
     * 
* * optional .SC2APIProtocol.ActionChat action_chat = 6; */ @java.lang.Override public SC2APIProtocol.Sc2Api.ActionChatOrBuilder getActionChatOrBuilder() { return actionChat_ == null ? SC2APIProtocol.Sc2Api.ActionChat.getDefaultInstance() : actionChat_; } public static final int GAME_LOOP_FIELD_NUMBER = 7; private int gameLoop_; /** *
     * Populated for actions in ResponseObservation. The game loop on which the action was executed.
     * 
* * optional uint32 game_loop = 7; * @return Whether the gameLoop field is set. */ @java.lang.Override public boolean hasGameLoop() { return ((bitField0_ & 0x00000020) != 0); } /** *
     * Populated for actions in ResponseObservation. The game loop on which the action was executed.
     * 
* * optional uint32 game_loop = 7; * @return The gameLoop. */ @java.lang.Override public int getGameLoop() { return gameLoop_; } 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, getActionRaw()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getActionFeatureLayer()); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(3, getActionRender()); } if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(4, getActionUi()); } if (((bitField0_ & 0x00000010) != 0)) { output.writeMessage(6, getActionChat()); } if (((bitField0_ & 0x00000020) != 0)) { output.writeUInt32(7, gameLoop_); } 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, getActionRaw()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getActionFeatureLayer()); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getActionRender()); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getActionUi()); } if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getActionChat()); } if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(7, gameLoop_); } 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.Sc2Api.Action)) { return super.equals(obj); } SC2APIProtocol.Sc2Api.Action other = (SC2APIProtocol.Sc2Api.Action) obj; if (hasActionRaw() != other.hasActionRaw()) return false; if (hasActionRaw()) { if (!getActionRaw() .equals(other.getActionRaw())) return false; } if (hasActionFeatureLayer() != other.hasActionFeatureLayer()) return false; if (hasActionFeatureLayer()) { if (!getActionFeatureLayer() .equals(other.getActionFeatureLayer())) return false; } if (hasActionRender() != other.hasActionRender()) return false; if (hasActionRender()) { if (!getActionRender() .equals(other.getActionRender())) return false; } if (hasActionUi() != other.hasActionUi()) return false; if (hasActionUi()) { if (!getActionUi() .equals(other.getActionUi())) return false; } if (hasActionChat() != other.hasActionChat()) return false; if (hasActionChat()) { if (!getActionChat() .equals(other.getActionChat())) return false; } if (hasGameLoop() != other.hasGameLoop()) return false; if (hasGameLoop()) { if (getGameLoop() != other.getGameLoop()) 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 (hasActionRaw()) { hash = (37 * hash) + ACTION_RAW_FIELD_NUMBER; hash = (53 * hash) + getActionRaw().hashCode(); } if (hasActionFeatureLayer()) { hash = (37 * hash) + ACTION_FEATURE_LAYER_FIELD_NUMBER; hash = (53 * hash) + getActionFeatureLayer().hashCode(); } if (hasActionRender()) { hash = (37 * hash) + ACTION_RENDER_FIELD_NUMBER; hash = (53 * hash) + getActionRender().hashCode(); } if (hasActionUi()) { hash = (37 * hash) + ACTION_UI_FIELD_NUMBER; hash = (53 * hash) + getActionUi().hashCode(); } if (hasActionChat()) { hash = (37 * hash) + ACTION_CHAT_FIELD_NUMBER; hash = (53 * hash) + getActionChat().hashCode(); } if (hasGameLoop()) { hash = (37 * hash) + GAME_LOOP_FIELD_NUMBER; hash = (53 * hash) + getGameLoop(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static SC2APIProtocol.Sc2Api.Action parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.Action parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.Action parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.Action parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.Action parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.Action parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.Action parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.Action 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.Sc2Api.Action parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.Action 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.Sc2Api.Action parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.Action 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.Sc2Api.Action 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.Action} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:SC2APIProtocol.Action) SC2APIProtocol.Sc2Api.ActionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_Action_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_Action_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Sc2Api.Action.class, SC2APIProtocol.Sc2Api.Action.Builder.class); } // Construct using SC2APIProtocol.Sc2Api.Action.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getActionRawFieldBuilder(); getActionFeatureLayerFieldBuilder(); getActionRenderFieldBuilder(); getActionUiFieldBuilder(); getActionChatFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (actionRawBuilder_ == null) { actionRaw_ = null; } else { actionRawBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); if (actionFeatureLayerBuilder_ == null) { actionFeatureLayer_ = null; } else { actionFeatureLayerBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); if (actionRenderBuilder_ == null) { actionRender_ = null; } else { actionRenderBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); if (actionUiBuilder_ == null) { actionUi_ = null; } else { actionUiBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); if (actionChatBuilder_ == null) { actionChat_ = null; } else { actionChatBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); gameLoop_ = 0; bitField0_ = (bitField0_ & ~0x00000020); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_Action_descriptor; } @java.lang.Override public SC2APIProtocol.Sc2Api.Action getDefaultInstanceForType() { return SC2APIProtocol.Sc2Api.Action.getDefaultInstance(); } @java.lang.Override public SC2APIProtocol.Sc2Api.Action build() { SC2APIProtocol.Sc2Api.Action result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public SC2APIProtocol.Sc2Api.Action buildPartial() { SC2APIProtocol.Sc2Api.Action result = new SC2APIProtocol.Sc2Api.Action(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { if (actionRawBuilder_ == null) { result.actionRaw_ = actionRaw_; } else { result.actionRaw_ = actionRawBuilder_.build(); } to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { if (actionFeatureLayerBuilder_ == null) { result.actionFeatureLayer_ = actionFeatureLayer_; } else { result.actionFeatureLayer_ = actionFeatureLayerBuilder_.build(); } to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { if (actionRenderBuilder_ == null) { result.actionRender_ = actionRender_; } else { result.actionRender_ = actionRenderBuilder_.build(); } to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000008) != 0)) { if (actionUiBuilder_ == null) { result.actionUi_ = actionUi_; } else { result.actionUi_ = actionUiBuilder_.build(); } to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000010) != 0)) { if (actionChatBuilder_ == null) { result.actionChat_ = actionChat_; } else { result.actionChat_ = actionChatBuilder_.build(); } to_bitField0_ |= 0x00000010; } if (((from_bitField0_ & 0x00000020) != 0)) { result.gameLoop_ = gameLoop_; to_bitField0_ |= 0x00000020; } 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.Sc2Api.Action) { return mergeFrom((SC2APIProtocol.Sc2Api.Action)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(SC2APIProtocol.Sc2Api.Action other) { if (other == SC2APIProtocol.Sc2Api.Action.getDefaultInstance()) return this; if (other.hasActionRaw()) { mergeActionRaw(other.getActionRaw()); } if (other.hasActionFeatureLayer()) { mergeActionFeatureLayer(other.getActionFeatureLayer()); } if (other.hasActionRender()) { mergeActionRender(other.getActionRender()); } if (other.hasActionUi()) { mergeActionUi(other.getActionUi()); } if (other.hasActionChat()) { mergeActionChat(other.getActionChat()); } if (other.hasGameLoop()) { setGameLoop(other.getGameLoop()); } 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( getActionRawFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getActionFeatureLayerFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 case 26: { input.readMessage( getActionRenderFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 26 case 34: { input.readMessage( getActionUiFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000008; break; } // case 34 case 50: { input.readMessage( getActionChatFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000010; break; } // case 50 case 56: { gameLoop_ = input.readUInt32(); bitField0_ |= 0x00000020; break; } // case 56 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.Raw.ActionRaw actionRaw_; private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Raw.ActionRaw, SC2APIProtocol.Raw.ActionRaw.Builder, SC2APIProtocol.Raw.ActionRawOrBuilder> actionRawBuilder_; /** *
       * Populated if Raw interface is enabled.
       * 
* * optional .SC2APIProtocol.ActionRaw action_raw = 1; * @return Whether the actionRaw field is set. */ public boolean hasActionRaw() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * Populated if Raw interface is enabled.
       * 
* * optional .SC2APIProtocol.ActionRaw action_raw = 1; * @return The actionRaw. */ public SC2APIProtocol.Raw.ActionRaw getActionRaw() { if (actionRawBuilder_ == null) { return actionRaw_ == null ? SC2APIProtocol.Raw.ActionRaw.getDefaultInstance() : actionRaw_; } else { return actionRawBuilder_.getMessage(); } } /** *
       * Populated if Raw interface is enabled.
       * 
* * optional .SC2APIProtocol.ActionRaw action_raw = 1; */ public Builder setActionRaw(SC2APIProtocol.Raw.ActionRaw value) { if (actionRawBuilder_ == null) { if (value == null) { throw new NullPointerException(); } actionRaw_ = value; onChanged(); } else { actionRawBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** *
       * Populated if Raw interface is enabled.
       * 
* * optional .SC2APIProtocol.ActionRaw action_raw = 1; */ public Builder setActionRaw( SC2APIProtocol.Raw.ActionRaw.Builder builderForValue) { if (actionRawBuilder_ == null) { actionRaw_ = builderForValue.build(); onChanged(); } else { actionRawBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** *
       * Populated if Raw interface is enabled.
       * 
* * optional .SC2APIProtocol.ActionRaw action_raw = 1; */ public Builder mergeActionRaw(SC2APIProtocol.Raw.ActionRaw value) { if (actionRawBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && actionRaw_ != null && actionRaw_ != SC2APIProtocol.Raw.ActionRaw.getDefaultInstance()) { actionRaw_ = SC2APIProtocol.Raw.ActionRaw.newBuilder(actionRaw_).mergeFrom(value).buildPartial(); } else { actionRaw_ = value; } onChanged(); } else { actionRawBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** *
       * Populated if Raw interface is enabled.
       * 
* * optional .SC2APIProtocol.ActionRaw action_raw = 1; */ public Builder clearActionRaw() { if (actionRawBuilder_ == null) { actionRaw_ = null; onChanged(); } else { actionRawBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** *
       * Populated if Raw interface is enabled.
       * 
* * optional .SC2APIProtocol.ActionRaw action_raw = 1; */ public SC2APIProtocol.Raw.ActionRaw.Builder getActionRawBuilder() { bitField0_ |= 0x00000001; onChanged(); return getActionRawFieldBuilder().getBuilder(); } /** *
       * Populated if Raw interface is enabled.
       * 
* * optional .SC2APIProtocol.ActionRaw action_raw = 1; */ public SC2APIProtocol.Raw.ActionRawOrBuilder getActionRawOrBuilder() { if (actionRawBuilder_ != null) { return actionRawBuilder_.getMessageOrBuilder(); } else { return actionRaw_ == null ? SC2APIProtocol.Raw.ActionRaw.getDefaultInstance() : actionRaw_; } } /** *
       * Populated if Raw interface is enabled.
       * 
* * optional .SC2APIProtocol.ActionRaw action_raw = 1; */ private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Raw.ActionRaw, SC2APIProtocol.Raw.ActionRaw.Builder, SC2APIProtocol.Raw.ActionRawOrBuilder> getActionRawFieldBuilder() { if (actionRawBuilder_ == null) { actionRawBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Raw.ActionRaw, SC2APIProtocol.Raw.ActionRaw.Builder, SC2APIProtocol.Raw.ActionRawOrBuilder>( getActionRaw(), getParentForChildren(), isClean()); actionRaw_ = null; } return actionRawBuilder_; } private SC2APIProtocol.Spatial.ActionSpatial actionFeatureLayer_; private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Spatial.ActionSpatial, SC2APIProtocol.Spatial.ActionSpatial.Builder, SC2APIProtocol.Spatial.ActionSpatialOrBuilder> actionFeatureLayerBuilder_; /** *
       * Populated if Feature Layer interface is enabled.
       * 
* * optional .SC2APIProtocol.ActionSpatial action_feature_layer = 2; * @return Whether the actionFeatureLayer field is set. */ public boolean hasActionFeatureLayer() { return ((bitField0_ & 0x00000002) != 0); } /** *
       * Populated if Feature Layer interface is enabled.
       * 
* * optional .SC2APIProtocol.ActionSpatial action_feature_layer = 2; * @return The actionFeatureLayer. */ public SC2APIProtocol.Spatial.ActionSpatial getActionFeatureLayer() { if (actionFeatureLayerBuilder_ == null) { return actionFeatureLayer_ == null ? SC2APIProtocol.Spatial.ActionSpatial.getDefaultInstance() : actionFeatureLayer_; } else { return actionFeatureLayerBuilder_.getMessage(); } } /** *
       * Populated if Feature Layer interface is enabled.
       * 
* * optional .SC2APIProtocol.ActionSpatial action_feature_layer = 2; */ public Builder setActionFeatureLayer(SC2APIProtocol.Spatial.ActionSpatial value) { if (actionFeatureLayerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } actionFeatureLayer_ = value; onChanged(); } else { actionFeatureLayerBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /** *
       * Populated if Feature Layer interface is enabled.
       * 
* * optional .SC2APIProtocol.ActionSpatial action_feature_layer = 2; */ public Builder setActionFeatureLayer( SC2APIProtocol.Spatial.ActionSpatial.Builder builderForValue) { if (actionFeatureLayerBuilder_ == null) { actionFeatureLayer_ = builderForValue.build(); onChanged(); } else { actionFeatureLayerBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** *
       * Populated if Feature Layer interface is enabled.
       * 
* * optional .SC2APIProtocol.ActionSpatial action_feature_layer = 2; */ public Builder mergeActionFeatureLayer(SC2APIProtocol.Spatial.ActionSpatial value) { if (actionFeatureLayerBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && actionFeatureLayer_ != null && actionFeatureLayer_ != SC2APIProtocol.Spatial.ActionSpatial.getDefaultInstance()) { actionFeatureLayer_ = SC2APIProtocol.Spatial.ActionSpatial.newBuilder(actionFeatureLayer_).mergeFrom(value).buildPartial(); } else { actionFeatureLayer_ = value; } onChanged(); } else { actionFeatureLayerBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** *
       * Populated if Feature Layer interface is enabled.
       * 
* * optional .SC2APIProtocol.ActionSpatial action_feature_layer = 2; */ public Builder clearActionFeatureLayer() { if (actionFeatureLayerBuilder_ == null) { actionFeatureLayer_ = null; onChanged(); } else { actionFeatureLayerBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** *
       * Populated if Feature Layer interface is enabled.
       * 
* * optional .SC2APIProtocol.ActionSpatial action_feature_layer = 2; */ public SC2APIProtocol.Spatial.ActionSpatial.Builder getActionFeatureLayerBuilder() { bitField0_ |= 0x00000002; onChanged(); return getActionFeatureLayerFieldBuilder().getBuilder(); } /** *
       * Populated if Feature Layer interface is enabled.
       * 
* * optional .SC2APIProtocol.ActionSpatial action_feature_layer = 2; */ public SC2APIProtocol.Spatial.ActionSpatialOrBuilder getActionFeatureLayerOrBuilder() { if (actionFeatureLayerBuilder_ != null) { return actionFeatureLayerBuilder_.getMessageOrBuilder(); } else { return actionFeatureLayer_ == null ? SC2APIProtocol.Spatial.ActionSpatial.getDefaultInstance() : actionFeatureLayer_; } } /** *
       * Populated if Feature Layer interface is enabled.
       * 
* * optional .SC2APIProtocol.ActionSpatial action_feature_layer = 2; */ private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Spatial.ActionSpatial, SC2APIProtocol.Spatial.ActionSpatial.Builder, SC2APIProtocol.Spatial.ActionSpatialOrBuilder> getActionFeatureLayerFieldBuilder() { if (actionFeatureLayerBuilder_ == null) { actionFeatureLayerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Spatial.ActionSpatial, SC2APIProtocol.Spatial.ActionSpatial.Builder, SC2APIProtocol.Spatial.ActionSpatialOrBuilder>( getActionFeatureLayer(), getParentForChildren(), isClean()); actionFeatureLayer_ = null; } return actionFeatureLayerBuilder_; } private SC2APIProtocol.Spatial.ActionSpatial actionRender_; private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Spatial.ActionSpatial, SC2APIProtocol.Spatial.ActionSpatial.Builder, SC2APIProtocol.Spatial.ActionSpatialOrBuilder> actionRenderBuilder_; /** *
       * Not implemented. Populated if Render interface is enabled.
       * 
* * optional .SC2APIProtocol.ActionSpatial action_render = 3; * @return Whether the actionRender field is set. */ public boolean hasActionRender() { return ((bitField0_ & 0x00000004) != 0); } /** *
       * Not implemented. Populated if Render interface is enabled.
       * 
* * optional .SC2APIProtocol.ActionSpatial action_render = 3; * @return The actionRender. */ public SC2APIProtocol.Spatial.ActionSpatial getActionRender() { if (actionRenderBuilder_ == null) { return actionRender_ == null ? SC2APIProtocol.Spatial.ActionSpatial.getDefaultInstance() : actionRender_; } else { return actionRenderBuilder_.getMessage(); } } /** *
       * Not implemented. Populated if Render interface is enabled.
       * 
* * optional .SC2APIProtocol.ActionSpatial action_render = 3; */ public Builder setActionRender(SC2APIProtocol.Spatial.ActionSpatial value) { if (actionRenderBuilder_ == null) { if (value == null) { throw new NullPointerException(); } actionRender_ = value; onChanged(); } else { actionRenderBuilder_.setMessage(value); } bitField0_ |= 0x00000004; return this; } /** *
       * Not implemented. Populated if Render interface is enabled.
       * 
* * optional .SC2APIProtocol.ActionSpatial action_render = 3; */ public Builder setActionRender( SC2APIProtocol.Spatial.ActionSpatial.Builder builderForValue) { if (actionRenderBuilder_ == null) { actionRender_ = builderForValue.build(); onChanged(); } else { actionRenderBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; return this; } /** *
       * Not implemented. Populated if Render interface is enabled.
       * 
* * optional .SC2APIProtocol.ActionSpatial action_render = 3; */ public Builder mergeActionRender(SC2APIProtocol.Spatial.ActionSpatial value) { if (actionRenderBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && actionRender_ != null && actionRender_ != SC2APIProtocol.Spatial.ActionSpatial.getDefaultInstance()) { actionRender_ = SC2APIProtocol.Spatial.ActionSpatial.newBuilder(actionRender_).mergeFrom(value).buildPartial(); } else { actionRender_ = value; } onChanged(); } else { actionRenderBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; return this; } /** *
       * Not implemented. Populated if Render interface is enabled.
       * 
* * optional .SC2APIProtocol.ActionSpatial action_render = 3; */ public Builder clearActionRender() { if (actionRenderBuilder_ == null) { actionRender_ = null; onChanged(); } else { actionRenderBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } /** *
       * Not implemented. Populated if Render interface is enabled.
       * 
* * optional .SC2APIProtocol.ActionSpatial action_render = 3; */ public SC2APIProtocol.Spatial.ActionSpatial.Builder getActionRenderBuilder() { bitField0_ |= 0x00000004; onChanged(); return getActionRenderFieldBuilder().getBuilder(); } /** *
       * Not implemented. Populated if Render interface is enabled.
       * 
* * optional .SC2APIProtocol.ActionSpatial action_render = 3; */ public SC2APIProtocol.Spatial.ActionSpatialOrBuilder getActionRenderOrBuilder() { if (actionRenderBuilder_ != null) { return actionRenderBuilder_.getMessageOrBuilder(); } else { return actionRender_ == null ? SC2APIProtocol.Spatial.ActionSpatial.getDefaultInstance() : actionRender_; } } /** *
       * Not implemented. Populated if Render interface is enabled.
       * 
* * optional .SC2APIProtocol.ActionSpatial action_render = 3; */ private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Spatial.ActionSpatial, SC2APIProtocol.Spatial.ActionSpatial.Builder, SC2APIProtocol.Spatial.ActionSpatialOrBuilder> getActionRenderFieldBuilder() { if (actionRenderBuilder_ == null) { actionRenderBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Spatial.ActionSpatial, SC2APIProtocol.Spatial.ActionSpatial.Builder, SC2APIProtocol.Spatial.ActionSpatialOrBuilder>( getActionRender(), getParentForChildren(), isClean()); actionRender_ = null; } return actionRenderBuilder_; } private SC2APIProtocol.Ui.ActionUI actionUi_; private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Ui.ActionUI, SC2APIProtocol.Ui.ActionUI.Builder, SC2APIProtocol.Ui.ActionUIOrBuilder> actionUiBuilder_; /** *
       * Populated if Feature Layer or Render interface is enabled.
       * 
* * optional .SC2APIProtocol.ActionUI action_ui = 4; * @return Whether the actionUi field is set. */ public boolean hasActionUi() { return ((bitField0_ & 0x00000008) != 0); } /** *
       * Populated if Feature Layer or Render interface is enabled.
       * 
* * optional .SC2APIProtocol.ActionUI action_ui = 4; * @return The actionUi. */ public SC2APIProtocol.Ui.ActionUI getActionUi() { if (actionUiBuilder_ == null) { return actionUi_ == null ? SC2APIProtocol.Ui.ActionUI.getDefaultInstance() : actionUi_; } else { return actionUiBuilder_.getMessage(); } } /** *
       * Populated if Feature Layer or Render interface is enabled.
       * 
* * optional .SC2APIProtocol.ActionUI action_ui = 4; */ public Builder setActionUi(SC2APIProtocol.Ui.ActionUI value) { if (actionUiBuilder_ == null) { if (value == null) { throw new NullPointerException(); } actionUi_ = value; onChanged(); } else { actionUiBuilder_.setMessage(value); } bitField0_ |= 0x00000008; return this; } /** *
       * Populated if Feature Layer or Render interface is enabled.
       * 
* * optional .SC2APIProtocol.ActionUI action_ui = 4; */ public Builder setActionUi( SC2APIProtocol.Ui.ActionUI.Builder builderForValue) { if (actionUiBuilder_ == null) { actionUi_ = builderForValue.build(); onChanged(); } else { actionUiBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; return this; } /** *
       * Populated if Feature Layer or Render interface is enabled.
       * 
* * optional .SC2APIProtocol.ActionUI action_ui = 4; */ public Builder mergeActionUi(SC2APIProtocol.Ui.ActionUI value) { if (actionUiBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0) && actionUi_ != null && actionUi_ != SC2APIProtocol.Ui.ActionUI.getDefaultInstance()) { actionUi_ = SC2APIProtocol.Ui.ActionUI.newBuilder(actionUi_).mergeFrom(value).buildPartial(); } else { actionUi_ = value; } onChanged(); } else { actionUiBuilder_.mergeFrom(value); } bitField0_ |= 0x00000008; return this; } /** *
       * Populated if Feature Layer or Render interface is enabled.
       * 
* * optional .SC2APIProtocol.ActionUI action_ui = 4; */ public Builder clearActionUi() { if (actionUiBuilder_ == null) { actionUi_ = null; onChanged(); } else { actionUiBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); return this; } /** *
       * Populated if Feature Layer or Render interface is enabled.
       * 
* * optional .SC2APIProtocol.ActionUI action_ui = 4; */ public SC2APIProtocol.Ui.ActionUI.Builder getActionUiBuilder() { bitField0_ |= 0x00000008; onChanged(); return getActionUiFieldBuilder().getBuilder(); } /** *
       * Populated if Feature Layer or Render interface is enabled.
       * 
* * optional .SC2APIProtocol.ActionUI action_ui = 4; */ public SC2APIProtocol.Ui.ActionUIOrBuilder getActionUiOrBuilder() { if (actionUiBuilder_ != null) { return actionUiBuilder_.getMessageOrBuilder(); } else { return actionUi_ == null ? SC2APIProtocol.Ui.ActionUI.getDefaultInstance() : actionUi_; } } /** *
       * Populated if Feature Layer or Render interface is enabled.
       * 
* * optional .SC2APIProtocol.ActionUI action_ui = 4; */ private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Ui.ActionUI, SC2APIProtocol.Ui.ActionUI.Builder, SC2APIProtocol.Ui.ActionUIOrBuilder> getActionUiFieldBuilder() { if (actionUiBuilder_ == null) { actionUiBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Ui.ActionUI, SC2APIProtocol.Ui.ActionUI.Builder, SC2APIProtocol.Ui.ActionUIOrBuilder>( getActionUi(), getParentForChildren(), isClean()); actionUi_ = null; } return actionUiBuilder_; } private SC2APIProtocol.Sc2Api.ActionChat actionChat_; private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.ActionChat, SC2APIProtocol.Sc2Api.ActionChat.Builder, SC2APIProtocol.Sc2Api.ActionChatOrBuilder> actionChatBuilder_; /** *
       * Chat messages as a player typing into the chat channel.
       * 
* * optional .SC2APIProtocol.ActionChat action_chat = 6; * @return Whether the actionChat field is set. */ public boolean hasActionChat() { return ((bitField0_ & 0x00000010) != 0); } /** *
       * Chat messages as a player typing into the chat channel.
       * 
* * optional .SC2APIProtocol.ActionChat action_chat = 6; * @return The actionChat. */ public SC2APIProtocol.Sc2Api.ActionChat getActionChat() { if (actionChatBuilder_ == null) { return actionChat_ == null ? SC2APIProtocol.Sc2Api.ActionChat.getDefaultInstance() : actionChat_; } else { return actionChatBuilder_.getMessage(); } } /** *
       * Chat messages as a player typing into the chat channel.
       * 
* * optional .SC2APIProtocol.ActionChat action_chat = 6; */ public Builder setActionChat(SC2APIProtocol.Sc2Api.ActionChat value) { if (actionChatBuilder_ == null) { if (value == null) { throw new NullPointerException(); } actionChat_ = value; onChanged(); } else { actionChatBuilder_.setMessage(value); } bitField0_ |= 0x00000010; return this; } /** *
       * Chat messages as a player typing into the chat channel.
       * 
* * optional .SC2APIProtocol.ActionChat action_chat = 6; */ public Builder setActionChat( SC2APIProtocol.Sc2Api.ActionChat.Builder builderForValue) { if (actionChatBuilder_ == null) { actionChat_ = builderForValue.build(); onChanged(); } else { actionChatBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; return this; } /** *
       * Chat messages as a player typing into the chat channel.
       * 
* * optional .SC2APIProtocol.ActionChat action_chat = 6; */ public Builder mergeActionChat(SC2APIProtocol.Sc2Api.ActionChat value) { if (actionChatBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0) && actionChat_ != null && actionChat_ != SC2APIProtocol.Sc2Api.ActionChat.getDefaultInstance()) { actionChat_ = SC2APIProtocol.Sc2Api.ActionChat.newBuilder(actionChat_).mergeFrom(value).buildPartial(); } else { actionChat_ = value; } onChanged(); } else { actionChatBuilder_.mergeFrom(value); } bitField0_ |= 0x00000010; return this; } /** *
       * Chat messages as a player typing into the chat channel.
       * 
* * optional .SC2APIProtocol.ActionChat action_chat = 6; */ public Builder clearActionChat() { if (actionChatBuilder_ == null) { actionChat_ = null; onChanged(); } else { actionChatBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); return this; } /** *
       * Chat messages as a player typing into the chat channel.
       * 
* * optional .SC2APIProtocol.ActionChat action_chat = 6; */ public SC2APIProtocol.Sc2Api.ActionChat.Builder getActionChatBuilder() { bitField0_ |= 0x00000010; onChanged(); return getActionChatFieldBuilder().getBuilder(); } /** *
       * Chat messages as a player typing into the chat channel.
       * 
* * optional .SC2APIProtocol.ActionChat action_chat = 6; */ public SC2APIProtocol.Sc2Api.ActionChatOrBuilder getActionChatOrBuilder() { if (actionChatBuilder_ != null) { return actionChatBuilder_.getMessageOrBuilder(); } else { return actionChat_ == null ? SC2APIProtocol.Sc2Api.ActionChat.getDefaultInstance() : actionChat_; } } /** *
       * Chat messages as a player typing into the chat channel.
       * 
* * optional .SC2APIProtocol.ActionChat action_chat = 6; */ private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.ActionChat, SC2APIProtocol.Sc2Api.ActionChat.Builder, SC2APIProtocol.Sc2Api.ActionChatOrBuilder> getActionChatFieldBuilder() { if (actionChatBuilder_ == null) { actionChatBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.ActionChat, SC2APIProtocol.Sc2Api.ActionChat.Builder, SC2APIProtocol.Sc2Api.ActionChatOrBuilder>( getActionChat(), getParentForChildren(), isClean()); actionChat_ = null; } return actionChatBuilder_; } private int gameLoop_ ; /** *
       * Populated for actions in ResponseObservation. The game loop on which the action was executed.
       * 
* * optional uint32 game_loop = 7; * @return Whether the gameLoop field is set. */ @java.lang.Override public boolean hasGameLoop() { return ((bitField0_ & 0x00000020) != 0); } /** *
       * Populated for actions in ResponseObservation. The game loop on which the action was executed.
       * 
* * optional uint32 game_loop = 7; * @return The gameLoop. */ @java.lang.Override public int getGameLoop() { return gameLoop_; } /** *
       * Populated for actions in ResponseObservation. The game loop on which the action was executed.
       * 
* * optional uint32 game_loop = 7; * @param value The gameLoop to set. * @return This builder for chaining. */ public Builder setGameLoop(int value) { bitField0_ |= 0x00000020; gameLoop_ = value; onChanged(); return this; } /** *
       * Populated for actions in ResponseObservation. The game loop on which the action was executed.
       * 
* * optional uint32 game_loop = 7; * @return This builder for chaining. */ public Builder clearGameLoop() { bitField0_ = (bitField0_ & ~0x00000020); gameLoop_ = 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.Action) } // @@protoc_insertion_point(class_scope:SC2APIProtocol.Action) private static final SC2APIProtocol.Sc2Api.Action DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new SC2APIProtocol.Sc2Api.Action(); } public static SC2APIProtocol.Sc2Api.Action getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Action 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.Sc2Api.Action getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ActionChatOrBuilder extends // @@protoc_insertion_point(interface_extends:SC2APIProtocol.ActionChat) com.google.protobuf.MessageOrBuilder { /** * optional .SC2APIProtocol.ActionChat.Channel channel = 1; * @return Whether the channel field is set. */ boolean hasChannel(); /** * optional .SC2APIProtocol.ActionChat.Channel channel = 1; * @return The channel. */ SC2APIProtocol.Sc2Api.ActionChat.Channel getChannel(); /** * optional string message = 2; * @return Whether the message field is set. */ boolean hasMessage(); /** * optional string message = 2; * @return The message. */ java.lang.String getMessage(); /** * optional string message = 2; * @return The bytes for message. */ com.google.protobuf.ByteString getMessageBytes(); } /** * Protobuf type {@code SC2APIProtocol.ActionChat} */ public static final class ActionChat extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:SC2APIProtocol.ActionChat) ActionChatOrBuilder { private static final long serialVersionUID = 0L; // Use ActionChat.newBuilder() to construct. private ActionChat(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ActionChat() { channel_ = 1; message_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ActionChat(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_ActionChat_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_ActionChat_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Sc2Api.ActionChat.class, SC2APIProtocol.Sc2Api.ActionChat.Builder.class); } /** * Protobuf enum {@code SC2APIProtocol.ActionChat.Channel} */ public enum Channel implements com.google.protobuf.ProtocolMessageEnum { /** * Broadcast = 1; */ Broadcast(1), /** * Team = 2; */ Team(2), ; /** * Broadcast = 1; */ public static final int Broadcast_VALUE = 1; /** * Team = 2; */ public static final int Team_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 Channel 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 Channel forNumber(int value) { switch (value) { case 1: return Broadcast; case 2: return Team; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Channel> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Channel findValueByNumber(int number) { return Channel.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.Sc2Api.ActionChat.getDescriptor().getEnumTypes().get(0); } private static final Channel[] VALUES = values(); public static Channel 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 Channel(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:SC2APIProtocol.ActionChat.Channel) } private int bitField0_; public static final int CHANNEL_FIELD_NUMBER = 1; private int channel_; /** * optional .SC2APIProtocol.ActionChat.Channel channel = 1; * @return Whether the channel field is set. */ @java.lang.Override public boolean hasChannel() { return ((bitField0_ & 0x00000001) != 0); } /** * optional .SC2APIProtocol.ActionChat.Channel channel = 1; * @return The channel. */ @java.lang.Override public SC2APIProtocol.Sc2Api.ActionChat.Channel getChannel() { @SuppressWarnings("deprecation") SC2APIProtocol.Sc2Api.ActionChat.Channel result = SC2APIProtocol.Sc2Api.ActionChat.Channel.valueOf(channel_); return result == null ? SC2APIProtocol.Sc2Api.ActionChat.Channel.Broadcast : result; } public static final int MESSAGE_FIELD_NUMBER = 2; private volatile java.lang.Object message_; /** * optional string message = 2; * @return Whether the message field is set. */ @java.lang.Override public boolean hasMessage() { return ((bitField0_ & 0x00000002) != 0); } /** * optional string message = 2; * @return The message. */ @java.lang.Override public java.lang.String getMessage() { java.lang.Object ref = message_; 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()) { message_ = s; } return s; } } /** * optional string message = 2; * @return The bytes for message. */ @java.lang.Override public com.google.protobuf.ByteString getMessageBytes() { java.lang.Object ref = message_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); message_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } 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, channel_); } if (((bitField0_ & 0x00000002) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, message_); } 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, channel_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, message_); } 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.Sc2Api.ActionChat)) { return super.equals(obj); } SC2APIProtocol.Sc2Api.ActionChat other = (SC2APIProtocol.Sc2Api.ActionChat) obj; if (hasChannel() != other.hasChannel()) return false; if (hasChannel()) { if (channel_ != other.channel_) return false; } if (hasMessage() != other.hasMessage()) return false; if (hasMessage()) { if (!getMessage() .equals(other.getMessage())) 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 (hasChannel()) { hash = (37 * hash) + CHANNEL_FIELD_NUMBER; hash = (53 * hash) + channel_; } if (hasMessage()) { hash = (37 * hash) + MESSAGE_FIELD_NUMBER; hash = (53 * hash) + getMessage().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static SC2APIProtocol.Sc2Api.ActionChat parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.ActionChat parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.ActionChat parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.ActionChat parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.ActionChat parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.ActionChat parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.ActionChat parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.ActionChat 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.Sc2Api.ActionChat parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.ActionChat 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.Sc2Api.ActionChat parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.ActionChat 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.Sc2Api.ActionChat 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.ActionChat} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:SC2APIProtocol.ActionChat) SC2APIProtocol.Sc2Api.ActionChatOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_ActionChat_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_ActionChat_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Sc2Api.ActionChat.class, SC2APIProtocol.Sc2Api.ActionChat.Builder.class); } // Construct using SC2APIProtocol.Sc2Api.ActionChat.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); channel_ = 1; bitField0_ = (bitField0_ & ~0x00000001); message_ = ""; bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_ActionChat_descriptor; } @java.lang.Override public SC2APIProtocol.Sc2Api.ActionChat getDefaultInstanceForType() { return SC2APIProtocol.Sc2Api.ActionChat.getDefaultInstance(); } @java.lang.Override public SC2APIProtocol.Sc2Api.ActionChat build() { SC2APIProtocol.Sc2Api.ActionChat result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public SC2APIProtocol.Sc2Api.ActionChat buildPartial() { SC2APIProtocol.Sc2Api.ActionChat result = new SC2APIProtocol.Sc2Api.ActionChat(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { to_bitField0_ |= 0x00000001; } result.channel_ = channel_; if (((from_bitField0_ & 0x00000002) != 0)) { to_bitField0_ |= 0x00000002; } result.message_ = message_; 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.Sc2Api.ActionChat) { return mergeFrom((SC2APIProtocol.Sc2Api.ActionChat)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(SC2APIProtocol.Sc2Api.ActionChat other) { if (other == SC2APIProtocol.Sc2Api.ActionChat.getDefaultInstance()) return this; if (other.hasChannel()) { setChannel(other.getChannel()); } if (other.hasMessage()) { bitField0_ |= 0x00000002; message_ = other.message_; 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: { int tmpRaw = input.readEnum(); SC2APIProtocol.Sc2Api.ActionChat.Channel tmpValue = SC2APIProtocol.Sc2Api.ActionChat.Channel.forNumber(tmpRaw); if (tmpValue == null) { mergeUnknownVarintField(1, tmpRaw); } else { channel_ = tmpRaw; bitField0_ |= 0x00000001; } break; } // case 8 case 18: { message_ = input.readBytes(); 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 int channel_ = 1; /** * optional .SC2APIProtocol.ActionChat.Channel channel = 1; * @return Whether the channel field is set. */ @java.lang.Override public boolean hasChannel() { return ((bitField0_ & 0x00000001) != 0); } /** * optional .SC2APIProtocol.ActionChat.Channel channel = 1; * @return The channel. */ @java.lang.Override public SC2APIProtocol.Sc2Api.ActionChat.Channel getChannel() { @SuppressWarnings("deprecation") SC2APIProtocol.Sc2Api.ActionChat.Channel result = SC2APIProtocol.Sc2Api.ActionChat.Channel.valueOf(channel_); return result == null ? SC2APIProtocol.Sc2Api.ActionChat.Channel.Broadcast : result; } /** * optional .SC2APIProtocol.ActionChat.Channel channel = 1; * @param value The channel to set. * @return This builder for chaining. */ public Builder setChannel(SC2APIProtocol.Sc2Api.ActionChat.Channel value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; channel_ = value.getNumber(); onChanged(); return this; } /** * optional .SC2APIProtocol.ActionChat.Channel channel = 1; * @return This builder for chaining. */ public Builder clearChannel() { bitField0_ = (bitField0_ & ~0x00000001); channel_ = 1; onChanged(); return this; } private java.lang.Object message_ = ""; /** * optional string message = 2; * @return Whether the message field is set. */ public boolean hasMessage() { return ((bitField0_ & 0x00000002) != 0); } /** * optional string message = 2; * @return The message. */ public java.lang.String getMessage() { java.lang.Object ref = message_; 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()) { message_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string message = 2; * @return The bytes for message. */ public com.google.protobuf.ByteString getMessageBytes() { java.lang.Object ref = message_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); message_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string message = 2; * @param value The message to set. * @return This builder for chaining. */ public Builder setMessage( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; message_ = value; onChanged(); return this; } /** * optional string message = 2; * @return This builder for chaining. */ public Builder clearMessage() { bitField0_ = (bitField0_ & ~0x00000002); message_ = getDefaultInstance().getMessage(); onChanged(); return this; } /** * optional string message = 2; * @param value The bytes for message to set. * @return This builder for chaining. */ public Builder setMessageBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; message_ = value; 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.ActionChat) } // @@protoc_insertion_point(class_scope:SC2APIProtocol.ActionChat) private static final SC2APIProtocol.Sc2Api.ActionChat DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new SC2APIProtocol.Sc2Api.ActionChat(); } public static SC2APIProtocol.Sc2Api.ActionChat getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ActionChat 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.Sc2Api.ActionChat getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ActionErrorOrBuilder extends // @@protoc_insertion_point(interface_extends:SC2APIProtocol.ActionError) com.google.protobuf.MessageOrBuilder { /** *
     * Only populated when using raw interface.
     * 
* * optional uint64 unit_tag = 1; * @return Whether the unitTag field is set. */ boolean hasUnitTag(); /** *
     * Only populated when using raw interface.
     * 
* * optional uint64 unit_tag = 1; * @return The unitTag. */ long getUnitTag(); /** * optional uint64 ability_id = 2; * @return Whether the abilityId field is set. */ boolean hasAbilityId(); /** * optional uint64 ability_id = 2; * @return The abilityId. */ long getAbilityId(); /** * optional .SC2APIProtocol.ActionResult result = 3; * @return Whether the result field is set. */ boolean hasResult(); /** * optional .SC2APIProtocol.ActionResult result = 3; * @return The result. */ SC2APIProtocol.Error.ActionResult getResult(); } /** * Protobuf type {@code SC2APIProtocol.ActionError} */ public static final class ActionError extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:SC2APIProtocol.ActionError) ActionErrorOrBuilder { private static final long serialVersionUID = 0L; // Use ActionError.newBuilder() to construct. private ActionError(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ActionError() { result_ = 1; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ActionError(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_ActionError_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_ActionError_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Sc2Api.ActionError.class, SC2APIProtocol.Sc2Api.ActionError.Builder.class); } private int bitField0_; public static final int UNIT_TAG_FIELD_NUMBER = 1; private long unitTag_; /** *
     * Only populated when using raw interface.
     * 
* * optional uint64 unit_tag = 1; * @return Whether the unitTag field is set. */ @java.lang.Override public boolean hasUnitTag() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * Only populated when using raw interface.
     * 
* * optional uint64 unit_tag = 1; * @return The unitTag. */ @java.lang.Override public long getUnitTag() { return unitTag_; } public static final int ABILITY_ID_FIELD_NUMBER = 2; private long abilityId_; /** * optional uint64 ability_id = 2; * @return Whether the abilityId field is set. */ @java.lang.Override public boolean hasAbilityId() { return ((bitField0_ & 0x00000002) != 0); } /** * optional uint64 ability_id = 2; * @return The abilityId. */ @java.lang.Override public long getAbilityId() { return abilityId_; } public static final int RESULT_FIELD_NUMBER = 3; private int result_; /** * optional .SC2APIProtocol.ActionResult result = 3; * @return Whether the result field is set. */ @java.lang.Override public boolean hasResult() { return ((bitField0_ & 0x00000004) != 0); } /** * optional .SC2APIProtocol.ActionResult result = 3; * @return The result. */ @java.lang.Override public SC2APIProtocol.Error.ActionResult getResult() { @SuppressWarnings("deprecation") SC2APIProtocol.Error.ActionResult result = SC2APIProtocol.Error.ActionResult.valueOf(result_); return result == null ? SC2APIProtocol.Error.ActionResult.Success : 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.writeUInt64(1, unitTag_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeUInt64(2, abilityId_); } if (((bitField0_ & 0x00000004) != 0)) { output.writeEnum(3, result_); } 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 .computeUInt64Size(1, unitTag_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, abilityId_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(3, result_); } 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.Sc2Api.ActionError)) { return super.equals(obj); } SC2APIProtocol.Sc2Api.ActionError other = (SC2APIProtocol.Sc2Api.ActionError) obj; if (hasUnitTag() != other.hasUnitTag()) return false; if (hasUnitTag()) { if (getUnitTag() != other.getUnitTag()) return false; } if (hasAbilityId() != other.hasAbilityId()) return false; if (hasAbilityId()) { if (getAbilityId() != other.getAbilityId()) return false; } if (hasResult() != other.hasResult()) return false; if (hasResult()) { if (result_ != other.result_) 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 (hasUnitTag()) { hash = (37 * hash) + UNIT_TAG_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getUnitTag()); } if (hasAbilityId()) { hash = (37 * hash) + ABILITY_ID_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getAbilityId()); } if (hasResult()) { hash = (37 * hash) + RESULT_FIELD_NUMBER; hash = (53 * hash) + result_; } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static SC2APIProtocol.Sc2Api.ActionError parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.ActionError parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.ActionError parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.ActionError parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.ActionError parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.ActionError parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.ActionError parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.ActionError 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.Sc2Api.ActionError parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.ActionError 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.Sc2Api.ActionError parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.ActionError 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.Sc2Api.ActionError 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.ActionError} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:SC2APIProtocol.ActionError) SC2APIProtocol.Sc2Api.ActionErrorOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_ActionError_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_ActionError_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Sc2Api.ActionError.class, SC2APIProtocol.Sc2Api.ActionError.Builder.class); } // Construct using SC2APIProtocol.Sc2Api.ActionError.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); unitTag_ = 0L; bitField0_ = (bitField0_ & ~0x00000001); abilityId_ = 0L; bitField0_ = (bitField0_ & ~0x00000002); result_ = 1; bitField0_ = (bitField0_ & ~0x00000004); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_ActionError_descriptor; } @java.lang.Override public SC2APIProtocol.Sc2Api.ActionError getDefaultInstanceForType() { return SC2APIProtocol.Sc2Api.ActionError.getDefaultInstance(); } @java.lang.Override public SC2APIProtocol.Sc2Api.ActionError build() { SC2APIProtocol.Sc2Api.ActionError result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public SC2APIProtocol.Sc2Api.ActionError buildPartial() { SC2APIProtocol.Sc2Api.ActionError result = new SC2APIProtocol.Sc2Api.ActionError(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.unitTag_ = unitTag_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.abilityId_ = abilityId_; to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { to_bitField0_ |= 0x00000004; } result.result_ = result_; 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.Sc2Api.ActionError) { return mergeFrom((SC2APIProtocol.Sc2Api.ActionError)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(SC2APIProtocol.Sc2Api.ActionError other) { if (other == SC2APIProtocol.Sc2Api.ActionError.getDefaultInstance()) return this; if (other.hasUnitTag()) { setUnitTag(other.getUnitTag()); } if (other.hasAbilityId()) { setAbilityId(other.getAbilityId()); } if (other.hasResult()) { setResult(other.getResult()); } 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: { unitTag_ = input.readUInt64(); bitField0_ |= 0x00000001; break; } // case 8 case 16: { abilityId_ = input.readUInt64(); bitField0_ |= 0x00000002; break; } // case 16 case 24: { int tmpRaw = input.readEnum(); SC2APIProtocol.Error.ActionResult tmpValue = SC2APIProtocol.Error.ActionResult.forNumber(tmpRaw); if (tmpValue == null) { mergeUnknownVarintField(3, tmpRaw); } else { result_ = tmpRaw; 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 long unitTag_ ; /** *
       * Only populated when using raw interface.
       * 
* * optional uint64 unit_tag = 1; * @return Whether the unitTag field is set. */ @java.lang.Override public boolean hasUnitTag() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * Only populated when using raw interface.
       * 
* * optional uint64 unit_tag = 1; * @return The unitTag. */ @java.lang.Override public long getUnitTag() { return unitTag_; } /** *
       * Only populated when using raw interface.
       * 
* * optional uint64 unit_tag = 1; * @param value The unitTag to set. * @return This builder for chaining. */ public Builder setUnitTag(long value) { bitField0_ |= 0x00000001; unitTag_ = value; onChanged(); return this; } /** *
       * Only populated when using raw interface.
       * 
* * optional uint64 unit_tag = 1; * @return This builder for chaining. */ public Builder clearUnitTag() { bitField0_ = (bitField0_ & ~0x00000001); unitTag_ = 0L; onChanged(); return this; } private long abilityId_ ; /** * optional uint64 ability_id = 2; * @return Whether the abilityId field is set. */ @java.lang.Override public boolean hasAbilityId() { return ((bitField0_ & 0x00000002) != 0); } /** * optional uint64 ability_id = 2; * @return The abilityId. */ @java.lang.Override public long getAbilityId() { return abilityId_; } /** * optional uint64 ability_id = 2; * @param value The abilityId to set. * @return This builder for chaining. */ public Builder setAbilityId(long value) { bitField0_ |= 0x00000002; abilityId_ = value; onChanged(); return this; } /** * optional uint64 ability_id = 2; * @return This builder for chaining. */ public Builder clearAbilityId() { bitField0_ = (bitField0_ & ~0x00000002); abilityId_ = 0L; onChanged(); return this; } private int result_ = 1; /** * optional .SC2APIProtocol.ActionResult result = 3; * @return Whether the result field is set. */ @java.lang.Override public boolean hasResult() { return ((bitField0_ & 0x00000004) != 0); } /** * optional .SC2APIProtocol.ActionResult result = 3; * @return The result. */ @java.lang.Override public SC2APIProtocol.Error.ActionResult getResult() { @SuppressWarnings("deprecation") SC2APIProtocol.Error.ActionResult result = SC2APIProtocol.Error.ActionResult.valueOf(result_); return result == null ? SC2APIProtocol.Error.ActionResult.Success : result; } /** * optional .SC2APIProtocol.ActionResult result = 3; * @param value The result to set. * @return This builder for chaining. */ public Builder setResult(SC2APIProtocol.Error.ActionResult value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; result_ = value.getNumber(); onChanged(); return this; } /** * optional .SC2APIProtocol.ActionResult result = 3; * @return This builder for chaining. */ public Builder clearResult() { bitField0_ = (bitField0_ & ~0x00000004); result_ = 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.ActionError) } // @@protoc_insertion_point(class_scope:SC2APIProtocol.ActionError) private static final SC2APIProtocol.Sc2Api.ActionError DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new SC2APIProtocol.Sc2Api.ActionError(); } public static SC2APIProtocol.Sc2Api.ActionError getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ActionError 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.Sc2Api.ActionError getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ObserverActionOrBuilder extends // @@protoc_insertion_point(interface_extends:SC2APIProtocol.ObserverAction) com.google.protobuf.MessageOrBuilder { /** *
     * Not implemented
     * 
* * .SC2APIProtocol.ActionObserverPlayerPerspective player_perspective = 1; * @return Whether the playerPerspective field is set. */ boolean hasPlayerPerspective(); /** *
     * Not implemented
     * 
* * .SC2APIProtocol.ActionObserverPlayerPerspective player_perspective = 1; * @return The playerPerspective. */ SC2APIProtocol.Sc2Api.ActionObserverPlayerPerspective getPlayerPerspective(); /** *
     * Not implemented
     * 
* * .SC2APIProtocol.ActionObserverPlayerPerspective player_perspective = 1; */ SC2APIProtocol.Sc2Api.ActionObserverPlayerPerspectiveOrBuilder getPlayerPerspectiveOrBuilder(); /** * .SC2APIProtocol.ActionObserverCameraMove camera_move = 2; * @return Whether the cameraMove field is set. */ boolean hasCameraMove(); /** * .SC2APIProtocol.ActionObserverCameraMove camera_move = 2; * @return The cameraMove. */ SC2APIProtocol.Sc2Api.ActionObserverCameraMove getCameraMove(); /** * .SC2APIProtocol.ActionObserverCameraMove camera_move = 2; */ SC2APIProtocol.Sc2Api.ActionObserverCameraMoveOrBuilder getCameraMoveOrBuilder(); /** * .SC2APIProtocol.ActionObserverCameraFollowPlayer camera_follow_player = 3; * @return Whether the cameraFollowPlayer field is set. */ boolean hasCameraFollowPlayer(); /** * .SC2APIProtocol.ActionObserverCameraFollowPlayer camera_follow_player = 3; * @return The cameraFollowPlayer. */ SC2APIProtocol.Sc2Api.ActionObserverCameraFollowPlayer getCameraFollowPlayer(); /** * .SC2APIProtocol.ActionObserverCameraFollowPlayer camera_follow_player = 3; */ SC2APIProtocol.Sc2Api.ActionObserverCameraFollowPlayerOrBuilder getCameraFollowPlayerOrBuilder(); /** *
     * Not implemented
     * 
* * .SC2APIProtocol.ActionObserverCameraFollowUnits camera_follow_units = 4; * @return Whether the cameraFollowUnits field is set. */ boolean hasCameraFollowUnits(); /** *
     * Not implemented
     * 
* * .SC2APIProtocol.ActionObserverCameraFollowUnits camera_follow_units = 4; * @return The cameraFollowUnits. */ SC2APIProtocol.Sc2Api.ActionObserverCameraFollowUnits getCameraFollowUnits(); /** *
     * Not implemented
     * 
* * .SC2APIProtocol.ActionObserverCameraFollowUnits camera_follow_units = 4; */ SC2APIProtocol.Sc2Api.ActionObserverCameraFollowUnitsOrBuilder getCameraFollowUnitsOrBuilder(); public SC2APIProtocol.Sc2Api.ObserverAction.ActionCase getActionCase(); } /** * Protobuf type {@code SC2APIProtocol.ObserverAction} */ public static final class ObserverAction extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:SC2APIProtocol.ObserverAction) ObserverActionOrBuilder { private static final long serialVersionUID = 0L; // Use ObserverAction.newBuilder() to construct. private ObserverAction(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ObserverAction() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ObserverAction(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_ObserverAction_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_ObserverAction_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Sc2Api.ObserverAction.class, SC2APIProtocol.Sc2Api.ObserverAction.Builder.class); } private int bitField0_; private int actionCase_ = 0; private java.lang.Object action_; public enum ActionCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { PLAYER_PERSPECTIVE(1), CAMERA_MOVE(2), CAMERA_FOLLOW_PLAYER(3), CAMERA_FOLLOW_UNITS(4), ACTION_NOT_SET(0); private final int value; private ActionCase(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 ActionCase valueOf(int value) { return forNumber(value); } public static ActionCase forNumber(int value) { switch (value) { case 1: return PLAYER_PERSPECTIVE; case 2: return CAMERA_MOVE; case 3: return CAMERA_FOLLOW_PLAYER; case 4: return CAMERA_FOLLOW_UNITS; case 0: return ACTION_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public ActionCase getActionCase() { return ActionCase.forNumber( actionCase_); } public static final int PLAYER_PERSPECTIVE_FIELD_NUMBER = 1; /** *
     * Not implemented
     * 
* * .SC2APIProtocol.ActionObserverPlayerPerspective player_perspective = 1; * @return Whether the playerPerspective field is set. */ @java.lang.Override public boolean hasPlayerPerspective() { return actionCase_ == 1; } /** *
     * Not implemented
     * 
* * .SC2APIProtocol.ActionObserverPlayerPerspective player_perspective = 1; * @return The playerPerspective. */ @java.lang.Override public SC2APIProtocol.Sc2Api.ActionObserverPlayerPerspective getPlayerPerspective() { if (actionCase_ == 1) { return (SC2APIProtocol.Sc2Api.ActionObserverPlayerPerspective) action_; } return SC2APIProtocol.Sc2Api.ActionObserverPlayerPerspective.getDefaultInstance(); } /** *
     * Not implemented
     * 
* * .SC2APIProtocol.ActionObserverPlayerPerspective player_perspective = 1; */ @java.lang.Override public SC2APIProtocol.Sc2Api.ActionObserverPlayerPerspectiveOrBuilder getPlayerPerspectiveOrBuilder() { if (actionCase_ == 1) { return (SC2APIProtocol.Sc2Api.ActionObserverPlayerPerspective) action_; } return SC2APIProtocol.Sc2Api.ActionObserverPlayerPerspective.getDefaultInstance(); } public static final int CAMERA_MOVE_FIELD_NUMBER = 2; /** * .SC2APIProtocol.ActionObserverCameraMove camera_move = 2; * @return Whether the cameraMove field is set. */ @java.lang.Override public boolean hasCameraMove() { return actionCase_ == 2; } /** * .SC2APIProtocol.ActionObserverCameraMove camera_move = 2; * @return The cameraMove. */ @java.lang.Override public SC2APIProtocol.Sc2Api.ActionObserverCameraMove getCameraMove() { if (actionCase_ == 2) { return (SC2APIProtocol.Sc2Api.ActionObserverCameraMove) action_; } return SC2APIProtocol.Sc2Api.ActionObserverCameraMove.getDefaultInstance(); } /** * .SC2APIProtocol.ActionObserverCameraMove camera_move = 2; */ @java.lang.Override public SC2APIProtocol.Sc2Api.ActionObserverCameraMoveOrBuilder getCameraMoveOrBuilder() { if (actionCase_ == 2) { return (SC2APIProtocol.Sc2Api.ActionObserverCameraMove) action_; } return SC2APIProtocol.Sc2Api.ActionObserverCameraMove.getDefaultInstance(); } public static final int CAMERA_FOLLOW_PLAYER_FIELD_NUMBER = 3; /** * .SC2APIProtocol.ActionObserverCameraFollowPlayer camera_follow_player = 3; * @return Whether the cameraFollowPlayer field is set. */ @java.lang.Override public boolean hasCameraFollowPlayer() { return actionCase_ == 3; } /** * .SC2APIProtocol.ActionObserverCameraFollowPlayer camera_follow_player = 3; * @return The cameraFollowPlayer. */ @java.lang.Override public SC2APIProtocol.Sc2Api.ActionObserverCameraFollowPlayer getCameraFollowPlayer() { if (actionCase_ == 3) { return (SC2APIProtocol.Sc2Api.ActionObserverCameraFollowPlayer) action_; } return SC2APIProtocol.Sc2Api.ActionObserverCameraFollowPlayer.getDefaultInstance(); } /** * .SC2APIProtocol.ActionObserverCameraFollowPlayer camera_follow_player = 3; */ @java.lang.Override public SC2APIProtocol.Sc2Api.ActionObserverCameraFollowPlayerOrBuilder getCameraFollowPlayerOrBuilder() { if (actionCase_ == 3) { return (SC2APIProtocol.Sc2Api.ActionObserverCameraFollowPlayer) action_; } return SC2APIProtocol.Sc2Api.ActionObserverCameraFollowPlayer.getDefaultInstance(); } public static final int CAMERA_FOLLOW_UNITS_FIELD_NUMBER = 4; /** *
     * Not implemented
     * 
* * .SC2APIProtocol.ActionObserverCameraFollowUnits camera_follow_units = 4; * @return Whether the cameraFollowUnits field is set. */ @java.lang.Override public boolean hasCameraFollowUnits() { return actionCase_ == 4; } /** *
     * Not implemented
     * 
* * .SC2APIProtocol.ActionObserverCameraFollowUnits camera_follow_units = 4; * @return The cameraFollowUnits. */ @java.lang.Override public SC2APIProtocol.Sc2Api.ActionObserverCameraFollowUnits getCameraFollowUnits() { if (actionCase_ == 4) { return (SC2APIProtocol.Sc2Api.ActionObserverCameraFollowUnits) action_; } return SC2APIProtocol.Sc2Api.ActionObserverCameraFollowUnits.getDefaultInstance(); } /** *
     * Not implemented
     * 
* * .SC2APIProtocol.ActionObserverCameraFollowUnits camera_follow_units = 4; */ @java.lang.Override public SC2APIProtocol.Sc2Api.ActionObserverCameraFollowUnitsOrBuilder getCameraFollowUnitsOrBuilder() { if (actionCase_ == 4) { return (SC2APIProtocol.Sc2Api.ActionObserverCameraFollowUnits) action_; } return SC2APIProtocol.Sc2Api.ActionObserverCameraFollowUnits.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 (actionCase_ == 1) { output.writeMessage(1, (SC2APIProtocol.Sc2Api.ActionObserverPlayerPerspective) action_); } if (actionCase_ == 2) { output.writeMessage(2, (SC2APIProtocol.Sc2Api.ActionObserverCameraMove) action_); } if (actionCase_ == 3) { output.writeMessage(3, (SC2APIProtocol.Sc2Api.ActionObserverCameraFollowPlayer) action_); } if (actionCase_ == 4) { output.writeMessage(4, (SC2APIProtocol.Sc2Api.ActionObserverCameraFollowUnits) action_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (actionCase_ == 1) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, (SC2APIProtocol.Sc2Api.ActionObserverPlayerPerspective) action_); } if (actionCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, (SC2APIProtocol.Sc2Api.ActionObserverCameraMove) action_); } if (actionCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, (SC2APIProtocol.Sc2Api.ActionObserverCameraFollowPlayer) action_); } if (actionCase_ == 4) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, (SC2APIProtocol.Sc2Api.ActionObserverCameraFollowUnits) action_); } 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.Sc2Api.ObserverAction)) { return super.equals(obj); } SC2APIProtocol.Sc2Api.ObserverAction other = (SC2APIProtocol.Sc2Api.ObserverAction) obj; if (!getActionCase().equals(other.getActionCase())) return false; switch (actionCase_) { case 1: if (!getPlayerPerspective() .equals(other.getPlayerPerspective())) return false; break; case 2: if (!getCameraMove() .equals(other.getCameraMove())) return false; break; case 3: if (!getCameraFollowPlayer() .equals(other.getCameraFollowPlayer())) return false; break; case 4: if (!getCameraFollowUnits() .equals(other.getCameraFollowUnits())) 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 (actionCase_) { case 1: hash = (37 * hash) + PLAYER_PERSPECTIVE_FIELD_NUMBER; hash = (53 * hash) + getPlayerPerspective().hashCode(); break; case 2: hash = (37 * hash) + CAMERA_MOVE_FIELD_NUMBER; hash = (53 * hash) + getCameraMove().hashCode(); break; case 3: hash = (37 * hash) + CAMERA_FOLLOW_PLAYER_FIELD_NUMBER; hash = (53 * hash) + getCameraFollowPlayer().hashCode(); break; case 4: hash = (37 * hash) + CAMERA_FOLLOW_UNITS_FIELD_NUMBER; hash = (53 * hash) + getCameraFollowUnits().hashCode(); break; case 0: default: } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static SC2APIProtocol.Sc2Api.ObserverAction parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.ObserverAction parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.ObserverAction parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.ObserverAction parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.ObserverAction parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.ObserverAction parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.ObserverAction parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.ObserverAction 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.Sc2Api.ObserverAction parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.ObserverAction 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.Sc2Api.ObserverAction parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.ObserverAction 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.Sc2Api.ObserverAction 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.ObserverAction} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:SC2APIProtocol.ObserverAction) SC2APIProtocol.Sc2Api.ObserverActionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_ObserverAction_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_ObserverAction_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Sc2Api.ObserverAction.class, SC2APIProtocol.Sc2Api.ObserverAction.Builder.class); } // Construct using SC2APIProtocol.Sc2Api.ObserverAction.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); if (playerPerspectiveBuilder_ != null) { playerPerspectiveBuilder_.clear(); } if (cameraMoveBuilder_ != null) { cameraMoveBuilder_.clear(); } if (cameraFollowPlayerBuilder_ != null) { cameraFollowPlayerBuilder_.clear(); } if (cameraFollowUnitsBuilder_ != null) { cameraFollowUnitsBuilder_.clear(); } actionCase_ = 0; action_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_ObserverAction_descriptor; } @java.lang.Override public SC2APIProtocol.Sc2Api.ObserverAction getDefaultInstanceForType() { return SC2APIProtocol.Sc2Api.ObserverAction.getDefaultInstance(); } @java.lang.Override public SC2APIProtocol.Sc2Api.ObserverAction build() { SC2APIProtocol.Sc2Api.ObserverAction result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public SC2APIProtocol.Sc2Api.ObserverAction buildPartial() { SC2APIProtocol.Sc2Api.ObserverAction result = new SC2APIProtocol.Sc2Api.ObserverAction(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (actionCase_ == 1) { if (playerPerspectiveBuilder_ == null) { result.action_ = action_; } else { result.action_ = playerPerspectiveBuilder_.build(); } } if (actionCase_ == 2) { if (cameraMoveBuilder_ == null) { result.action_ = action_; } else { result.action_ = cameraMoveBuilder_.build(); } } if (actionCase_ == 3) { if (cameraFollowPlayerBuilder_ == null) { result.action_ = action_; } else { result.action_ = cameraFollowPlayerBuilder_.build(); } } if (actionCase_ == 4) { if (cameraFollowUnitsBuilder_ == null) { result.action_ = action_; } else { result.action_ = cameraFollowUnitsBuilder_.build(); } } result.bitField0_ = to_bitField0_; result.actionCase_ = actionCase_; 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.Sc2Api.ObserverAction) { return mergeFrom((SC2APIProtocol.Sc2Api.ObserverAction)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(SC2APIProtocol.Sc2Api.ObserverAction other) { if (other == SC2APIProtocol.Sc2Api.ObserverAction.getDefaultInstance()) return this; switch (other.getActionCase()) { case PLAYER_PERSPECTIVE: { mergePlayerPerspective(other.getPlayerPerspective()); break; } case CAMERA_MOVE: { mergeCameraMove(other.getCameraMove()); break; } case CAMERA_FOLLOW_PLAYER: { mergeCameraFollowPlayer(other.getCameraFollowPlayer()); break; } case CAMERA_FOLLOW_UNITS: { mergeCameraFollowUnits(other.getCameraFollowUnits()); break; } case ACTION_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( getPlayerPerspectiveFieldBuilder().getBuilder(), extensionRegistry); actionCase_ = 1; break; } // case 10 case 18: { input.readMessage( getCameraMoveFieldBuilder().getBuilder(), extensionRegistry); actionCase_ = 2; break; } // case 18 case 26: { input.readMessage( getCameraFollowPlayerFieldBuilder().getBuilder(), extensionRegistry); actionCase_ = 3; break; } // case 26 case 34: { input.readMessage( getCameraFollowUnitsFieldBuilder().getBuilder(), extensionRegistry); actionCase_ = 4; 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 actionCase_ = 0; private java.lang.Object action_; public ActionCase getActionCase() { return ActionCase.forNumber( actionCase_); } public Builder clearAction() { actionCase_ = 0; action_ = null; onChanged(); return this; } private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.ActionObserverPlayerPerspective, SC2APIProtocol.Sc2Api.ActionObserverPlayerPerspective.Builder, SC2APIProtocol.Sc2Api.ActionObserverPlayerPerspectiveOrBuilder> playerPerspectiveBuilder_; /** *
       * Not implemented
       * 
* * .SC2APIProtocol.ActionObserverPlayerPerspective player_perspective = 1; * @return Whether the playerPerspective field is set. */ @java.lang.Override public boolean hasPlayerPerspective() { return actionCase_ == 1; } /** *
       * Not implemented
       * 
* * .SC2APIProtocol.ActionObserverPlayerPerspective player_perspective = 1; * @return The playerPerspective. */ @java.lang.Override public SC2APIProtocol.Sc2Api.ActionObserverPlayerPerspective getPlayerPerspective() { if (playerPerspectiveBuilder_ == null) { if (actionCase_ == 1) { return (SC2APIProtocol.Sc2Api.ActionObserverPlayerPerspective) action_; } return SC2APIProtocol.Sc2Api.ActionObserverPlayerPerspective.getDefaultInstance(); } else { if (actionCase_ == 1) { return playerPerspectiveBuilder_.getMessage(); } return SC2APIProtocol.Sc2Api.ActionObserverPlayerPerspective.getDefaultInstance(); } } /** *
       * Not implemented
       * 
* * .SC2APIProtocol.ActionObserverPlayerPerspective player_perspective = 1; */ public Builder setPlayerPerspective(SC2APIProtocol.Sc2Api.ActionObserverPlayerPerspective value) { if (playerPerspectiveBuilder_ == null) { if (value == null) { throw new NullPointerException(); } action_ = value; onChanged(); } else { playerPerspectiveBuilder_.setMessage(value); } actionCase_ = 1; return this; } /** *
       * Not implemented
       * 
* * .SC2APIProtocol.ActionObserverPlayerPerspective player_perspective = 1; */ public Builder setPlayerPerspective( SC2APIProtocol.Sc2Api.ActionObserverPlayerPerspective.Builder builderForValue) { if (playerPerspectiveBuilder_ == null) { action_ = builderForValue.build(); onChanged(); } else { playerPerspectiveBuilder_.setMessage(builderForValue.build()); } actionCase_ = 1; return this; } /** *
       * Not implemented
       * 
* * .SC2APIProtocol.ActionObserverPlayerPerspective player_perspective = 1; */ public Builder mergePlayerPerspective(SC2APIProtocol.Sc2Api.ActionObserverPlayerPerspective value) { if (playerPerspectiveBuilder_ == null) { if (actionCase_ == 1 && action_ != SC2APIProtocol.Sc2Api.ActionObserverPlayerPerspective.getDefaultInstance()) { action_ = SC2APIProtocol.Sc2Api.ActionObserverPlayerPerspective.newBuilder((SC2APIProtocol.Sc2Api.ActionObserverPlayerPerspective) action_) .mergeFrom(value).buildPartial(); } else { action_ = value; } onChanged(); } else { if (actionCase_ == 1) { playerPerspectiveBuilder_.mergeFrom(value); } else { playerPerspectiveBuilder_.setMessage(value); } } actionCase_ = 1; return this; } /** *
       * Not implemented
       * 
* * .SC2APIProtocol.ActionObserverPlayerPerspective player_perspective = 1; */ public Builder clearPlayerPerspective() { if (playerPerspectiveBuilder_ == null) { if (actionCase_ == 1) { actionCase_ = 0; action_ = null; onChanged(); } } else { if (actionCase_ == 1) { actionCase_ = 0; action_ = null; } playerPerspectiveBuilder_.clear(); } return this; } /** *
       * Not implemented
       * 
* * .SC2APIProtocol.ActionObserverPlayerPerspective player_perspective = 1; */ public SC2APIProtocol.Sc2Api.ActionObserverPlayerPerspective.Builder getPlayerPerspectiveBuilder() { return getPlayerPerspectiveFieldBuilder().getBuilder(); } /** *
       * Not implemented
       * 
* * .SC2APIProtocol.ActionObserverPlayerPerspective player_perspective = 1; */ @java.lang.Override public SC2APIProtocol.Sc2Api.ActionObserverPlayerPerspectiveOrBuilder getPlayerPerspectiveOrBuilder() { if ((actionCase_ == 1) && (playerPerspectiveBuilder_ != null)) { return playerPerspectiveBuilder_.getMessageOrBuilder(); } else { if (actionCase_ == 1) { return (SC2APIProtocol.Sc2Api.ActionObserverPlayerPerspective) action_; } return SC2APIProtocol.Sc2Api.ActionObserverPlayerPerspective.getDefaultInstance(); } } /** *
       * Not implemented
       * 
* * .SC2APIProtocol.ActionObserverPlayerPerspective player_perspective = 1; */ private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.ActionObserverPlayerPerspective, SC2APIProtocol.Sc2Api.ActionObserverPlayerPerspective.Builder, SC2APIProtocol.Sc2Api.ActionObserverPlayerPerspectiveOrBuilder> getPlayerPerspectiveFieldBuilder() { if (playerPerspectiveBuilder_ == null) { if (!(actionCase_ == 1)) { action_ = SC2APIProtocol.Sc2Api.ActionObserverPlayerPerspective.getDefaultInstance(); } playerPerspectiveBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.ActionObserverPlayerPerspective, SC2APIProtocol.Sc2Api.ActionObserverPlayerPerspective.Builder, SC2APIProtocol.Sc2Api.ActionObserverPlayerPerspectiveOrBuilder>( (SC2APIProtocol.Sc2Api.ActionObserverPlayerPerspective) action_, getParentForChildren(), isClean()); action_ = null; } actionCase_ = 1; onChanged();; return playerPerspectiveBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.ActionObserverCameraMove, SC2APIProtocol.Sc2Api.ActionObserverCameraMove.Builder, SC2APIProtocol.Sc2Api.ActionObserverCameraMoveOrBuilder> cameraMoveBuilder_; /** * .SC2APIProtocol.ActionObserverCameraMove camera_move = 2; * @return Whether the cameraMove field is set. */ @java.lang.Override public boolean hasCameraMove() { return actionCase_ == 2; } /** * .SC2APIProtocol.ActionObserverCameraMove camera_move = 2; * @return The cameraMove. */ @java.lang.Override public SC2APIProtocol.Sc2Api.ActionObserverCameraMove getCameraMove() { if (cameraMoveBuilder_ == null) { if (actionCase_ == 2) { return (SC2APIProtocol.Sc2Api.ActionObserverCameraMove) action_; } return SC2APIProtocol.Sc2Api.ActionObserverCameraMove.getDefaultInstance(); } else { if (actionCase_ == 2) { return cameraMoveBuilder_.getMessage(); } return SC2APIProtocol.Sc2Api.ActionObserverCameraMove.getDefaultInstance(); } } /** * .SC2APIProtocol.ActionObserverCameraMove camera_move = 2; */ public Builder setCameraMove(SC2APIProtocol.Sc2Api.ActionObserverCameraMove value) { if (cameraMoveBuilder_ == null) { if (value == null) { throw new NullPointerException(); } action_ = value; onChanged(); } else { cameraMoveBuilder_.setMessage(value); } actionCase_ = 2; return this; } /** * .SC2APIProtocol.ActionObserverCameraMove camera_move = 2; */ public Builder setCameraMove( SC2APIProtocol.Sc2Api.ActionObserverCameraMove.Builder builderForValue) { if (cameraMoveBuilder_ == null) { action_ = builderForValue.build(); onChanged(); } else { cameraMoveBuilder_.setMessage(builderForValue.build()); } actionCase_ = 2; return this; } /** * .SC2APIProtocol.ActionObserverCameraMove camera_move = 2; */ public Builder mergeCameraMove(SC2APIProtocol.Sc2Api.ActionObserverCameraMove value) { if (cameraMoveBuilder_ == null) { if (actionCase_ == 2 && action_ != SC2APIProtocol.Sc2Api.ActionObserverCameraMove.getDefaultInstance()) { action_ = SC2APIProtocol.Sc2Api.ActionObserverCameraMove.newBuilder((SC2APIProtocol.Sc2Api.ActionObserverCameraMove) action_) .mergeFrom(value).buildPartial(); } else { action_ = value; } onChanged(); } else { if (actionCase_ == 2) { cameraMoveBuilder_.mergeFrom(value); } else { cameraMoveBuilder_.setMessage(value); } } actionCase_ = 2; return this; } /** * .SC2APIProtocol.ActionObserverCameraMove camera_move = 2; */ public Builder clearCameraMove() { if (cameraMoveBuilder_ == null) { if (actionCase_ == 2) { actionCase_ = 0; action_ = null; onChanged(); } } else { if (actionCase_ == 2) { actionCase_ = 0; action_ = null; } cameraMoveBuilder_.clear(); } return this; } /** * .SC2APIProtocol.ActionObserverCameraMove camera_move = 2; */ public SC2APIProtocol.Sc2Api.ActionObserverCameraMove.Builder getCameraMoveBuilder() { return getCameraMoveFieldBuilder().getBuilder(); } /** * .SC2APIProtocol.ActionObserverCameraMove camera_move = 2; */ @java.lang.Override public SC2APIProtocol.Sc2Api.ActionObserverCameraMoveOrBuilder getCameraMoveOrBuilder() { if ((actionCase_ == 2) && (cameraMoveBuilder_ != null)) { return cameraMoveBuilder_.getMessageOrBuilder(); } else { if (actionCase_ == 2) { return (SC2APIProtocol.Sc2Api.ActionObserverCameraMove) action_; } return SC2APIProtocol.Sc2Api.ActionObserverCameraMove.getDefaultInstance(); } } /** * .SC2APIProtocol.ActionObserverCameraMove camera_move = 2; */ private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.ActionObserverCameraMove, SC2APIProtocol.Sc2Api.ActionObserverCameraMove.Builder, SC2APIProtocol.Sc2Api.ActionObserverCameraMoveOrBuilder> getCameraMoveFieldBuilder() { if (cameraMoveBuilder_ == null) { if (!(actionCase_ == 2)) { action_ = SC2APIProtocol.Sc2Api.ActionObserverCameraMove.getDefaultInstance(); } cameraMoveBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.ActionObserverCameraMove, SC2APIProtocol.Sc2Api.ActionObserverCameraMove.Builder, SC2APIProtocol.Sc2Api.ActionObserverCameraMoveOrBuilder>( (SC2APIProtocol.Sc2Api.ActionObserverCameraMove) action_, getParentForChildren(), isClean()); action_ = null; } actionCase_ = 2; onChanged();; return cameraMoveBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.ActionObserverCameraFollowPlayer, SC2APIProtocol.Sc2Api.ActionObserverCameraFollowPlayer.Builder, SC2APIProtocol.Sc2Api.ActionObserverCameraFollowPlayerOrBuilder> cameraFollowPlayerBuilder_; /** * .SC2APIProtocol.ActionObserverCameraFollowPlayer camera_follow_player = 3; * @return Whether the cameraFollowPlayer field is set. */ @java.lang.Override public boolean hasCameraFollowPlayer() { return actionCase_ == 3; } /** * .SC2APIProtocol.ActionObserverCameraFollowPlayer camera_follow_player = 3; * @return The cameraFollowPlayer. */ @java.lang.Override public SC2APIProtocol.Sc2Api.ActionObserverCameraFollowPlayer getCameraFollowPlayer() { if (cameraFollowPlayerBuilder_ == null) { if (actionCase_ == 3) { return (SC2APIProtocol.Sc2Api.ActionObserverCameraFollowPlayer) action_; } return SC2APIProtocol.Sc2Api.ActionObserverCameraFollowPlayer.getDefaultInstance(); } else { if (actionCase_ == 3) { return cameraFollowPlayerBuilder_.getMessage(); } return SC2APIProtocol.Sc2Api.ActionObserverCameraFollowPlayer.getDefaultInstance(); } } /** * .SC2APIProtocol.ActionObserverCameraFollowPlayer camera_follow_player = 3; */ public Builder setCameraFollowPlayer(SC2APIProtocol.Sc2Api.ActionObserverCameraFollowPlayer value) { if (cameraFollowPlayerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } action_ = value; onChanged(); } else { cameraFollowPlayerBuilder_.setMessage(value); } actionCase_ = 3; return this; } /** * .SC2APIProtocol.ActionObserverCameraFollowPlayer camera_follow_player = 3; */ public Builder setCameraFollowPlayer( SC2APIProtocol.Sc2Api.ActionObserverCameraFollowPlayer.Builder builderForValue) { if (cameraFollowPlayerBuilder_ == null) { action_ = builderForValue.build(); onChanged(); } else { cameraFollowPlayerBuilder_.setMessage(builderForValue.build()); } actionCase_ = 3; return this; } /** * .SC2APIProtocol.ActionObserverCameraFollowPlayer camera_follow_player = 3; */ public Builder mergeCameraFollowPlayer(SC2APIProtocol.Sc2Api.ActionObserverCameraFollowPlayer value) { if (cameraFollowPlayerBuilder_ == null) { if (actionCase_ == 3 && action_ != SC2APIProtocol.Sc2Api.ActionObserverCameraFollowPlayer.getDefaultInstance()) { action_ = SC2APIProtocol.Sc2Api.ActionObserverCameraFollowPlayer.newBuilder((SC2APIProtocol.Sc2Api.ActionObserverCameraFollowPlayer) action_) .mergeFrom(value).buildPartial(); } else { action_ = value; } onChanged(); } else { if (actionCase_ == 3) { cameraFollowPlayerBuilder_.mergeFrom(value); } else { cameraFollowPlayerBuilder_.setMessage(value); } } actionCase_ = 3; return this; } /** * .SC2APIProtocol.ActionObserverCameraFollowPlayer camera_follow_player = 3; */ public Builder clearCameraFollowPlayer() { if (cameraFollowPlayerBuilder_ == null) { if (actionCase_ == 3) { actionCase_ = 0; action_ = null; onChanged(); } } else { if (actionCase_ == 3) { actionCase_ = 0; action_ = null; } cameraFollowPlayerBuilder_.clear(); } return this; } /** * .SC2APIProtocol.ActionObserverCameraFollowPlayer camera_follow_player = 3; */ public SC2APIProtocol.Sc2Api.ActionObserverCameraFollowPlayer.Builder getCameraFollowPlayerBuilder() { return getCameraFollowPlayerFieldBuilder().getBuilder(); } /** * .SC2APIProtocol.ActionObserverCameraFollowPlayer camera_follow_player = 3; */ @java.lang.Override public SC2APIProtocol.Sc2Api.ActionObserverCameraFollowPlayerOrBuilder getCameraFollowPlayerOrBuilder() { if ((actionCase_ == 3) && (cameraFollowPlayerBuilder_ != null)) { return cameraFollowPlayerBuilder_.getMessageOrBuilder(); } else { if (actionCase_ == 3) { return (SC2APIProtocol.Sc2Api.ActionObserverCameraFollowPlayer) action_; } return SC2APIProtocol.Sc2Api.ActionObserverCameraFollowPlayer.getDefaultInstance(); } } /** * .SC2APIProtocol.ActionObserverCameraFollowPlayer camera_follow_player = 3; */ private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.ActionObserverCameraFollowPlayer, SC2APIProtocol.Sc2Api.ActionObserverCameraFollowPlayer.Builder, SC2APIProtocol.Sc2Api.ActionObserverCameraFollowPlayerOrBuilder> getCameraFollowPlayerFieldBuilder() { if (cameraFollowPlayerBuilder_ == null) { if (!(actionCase_ == 3)) { action_ = SC2APIProtocol.Sc2Api.ActionObserverCameraFollowPlayer.getDefaultInstance(); } cameraFollowPlayerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.ActionObserverCameraFollowPlayer, SC2APIProtocol.Sc2Api.ActionObserverCameraFollowPlayer.Builder, SC2APIProtocol.Sc2Api.ActionObserverCameraFollowPlayerOrBuilder>( (SC2APIProtocol.Sc2Api.ActionObserverCameraFollowPlayer) action_, getParentForChildren(), isClean()); action_ = null; } actionCase_ = 3; onChanged();; return cameraFollowPlayerBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.ActionObserverCameraFollowUnits, SC2APIProtocol.Sc2Api.ActionObserverCameraFollowUnits.Builder, SC2APIProtocol.Sc2Api.ActionObserverCameraFollowUnitsOrBuilder> cameraFollowUnitsBuilder_; /** *
       * Not implemented
       * 
* * .SC2APIProtocol.ActionObserverCameraFollowUnits camera_follow_units = 4; * @return Whether the cameraFollowUnits field is set. */ @java.lang.Override public boolean hasCameraFollowUnits() { return actionCase_ == 4; } /** *
       * Not implemented
       * 
* * .SC2APIProtocol.ActionObserverCameraFollowUnits camera_follow_units = 4; * @return The cameraFollowUnits. */ @java.lang.Override public SC2APIProtocol.Sc2Api.ActionObserverCameraFollowUnits getCameraFollowUnits() { if (cameraFollowUnitsBuilder_ == null) { if (actionCase_ == 4) { return (SC2APIProtocol.Sc2Api.ActionObserverCameraFollowUnits) action_; } return SC2APIProtocol.Sc2Api.ActionObserverCameraFollowUnits.getDefaultInstance(); } else { if (actionCase_ == 4) { return cameraFollowUnitsBuilder_.getMessage(); } return SC2APIProtocol.Sc2Api.ActionObserverCameraFollowUnits.getDefaultInstance(); } } /** *
       * Not implemented
       * 
* * .SC2APIProtocol.ActionObserverCameraFollowUnits camera_follow_units = 4; */ public Builder setCameraFollowUnits(SC2APIProtocol.Sc2Api.ActionObserverCameraFollowUnits value) { if (cameraFollowUnitsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } action_ = value; onChanged(); } else { cameraFollowUnitsBuilder_.setMessage(value); } actionCase_ = 4; return this; } /** *
       * Not implemented
       * 
* * .SC2APIProtocol.ActionObserverCameraFollowUnits camera_follow_units = 4; */ public Builder setCameraFollowUnits( SC2APIProtocol.Sc2Api.ActionObserverCameraFollowUnits.Builder builderForValue) { if (cameraFollowUnitsBuilder_ == null) { action_ = builderForValue.build(); onChanged(); } else { cameraFollowUnitsBuilder_.setMessage(builderForValue.build()); } actionCase_ = 4; return this; } /** *
       * Not implemented
       * 
* * .SC2APIProtocol.ActionObserverCameraFollowUnits camera_follow_units = 4; */ public Builder mergeCameraFollowUnits(SC2APIProtocol.Sc2Api.ActionObserverCameraFollowUnits value) { if (cameraFollowUnitsBuilder_ == null) { if (actionCase_ == 4 && action_ != SC2APIProtocol.Sc2Api.ActionObserverCameraFollowUnits.getDefaultInstance()) { action_ = SC2APIProtocol.Sc2Api.ActionObserverCameraFollowUnits.newBuilder((SC2APIProtocol.Sc2Api.ActionObserverCameraFollowUnits) action_) .mergeFrom(value).buildPartial(); } else { action_ = value; } onChanged(); } else { if (actionCase_ == 4) { cameraFollowUnitsBuilder_.mergeFrom(value); } else { cameraFollowUnitsBuilder_.setMessage(value); } } actionCase_ = 4; return this; } /** *
       * Not implemented
       * 
* * .SC2APIProtocol.ActionObserverCameraFollowUnits camera_follow_units = 4; */ public Builder clearCameraFollowUnits() { if (cameraFollowUnitsBuilder_ == null) { if (actionCase_ == 4) { actionCase_ = 0; action_ = null; onChanged(); } } else { if (actionCase_ == 4) { actionCase_ = 0; action_ = null; } cameraFollowUnitsBuilder_.clear(); } return this; } /** *
       * Not implemented
       * 
* * .SC2APIProtocol.ActionObserverCameraFollowUnits camera_follow_units = 4; */ public SC2APIProtocol.Sc2Api.ActionObserverCameraFollowUnits.Builder getCameraFollowUnitsBuilder() { return getCameraFollowUnitsFieldBuilder().getBuilder(); } /** *
       * Not implemented
       * 
* * .SC2APIProtocol.ActionObserverCameraFollowUnits camera_follow_units = 4; */ @java.lang.Override public SC2APIProtocol.Sc2Api.ActionObserverCameraFollowUnitsOrBuilder getCameraFollowUnitsOrBuilder() { if ((actionCase_ == 4) && (cameraFollowUnitsBuilder_ != null)) { return cameraFollowUnitsBuilder_.getMessageOrBuilder(); } else { if (actionCase_ == 4) { return (SC2APIProtocol.Sc2Api.ActionObserverCameraFollowUnits) action_; } return SC2APIProtocol.Sc2Api.ActionObserverCameraFollowUnits.getDefaultInstance(); } } /** *
       * Not implemented
       * 
* * .SC2APIProtocol.ActionObserverCameraFollowUnits camera_follow_units = 4; */ private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.ActionObserverCameraFollowUnits, SC2APIProtocol.Sc2Api.ActionObserverCameraFollowUnits.Builder, SC2APIProtocol.Sc2Api.ActionObserverCameraFollowUnitsOrBuilder> getCameraFollowUnitsFieldBuilder() { if (cameraFollowUnitsBuilder_ == null) { if (!(actionCase_ == 4)) { action_ = SC2APIProtocol.Sc2Api.ActionObserverCameraFollowUnits.getDefaultInstance(); } cameraFollowUnitsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Sc2Api.ActionObserverCameraFollowUnits, SC2APIProtocol.Sc2Api.ActionObserverCameraFollowUnits.Builder, SC2APIProtocol.Sc2Api.ActionObserverCameraFollowUnitsOrBuilder>( (SC2APIProtocol.Sc2Api.ActionObserverCameraFollowUnits) action_, getParentForChildren(), isClean()); action_ = null; } actionCase_ = 4; onChanged();; return cameraFollowUnitsBuilder_; } @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.ObserverAction) } // @@protoc_insertion_point(class_scope:SC2APIProtocol.ObserverAction) private static final SC2APIProtocol.Sc2Api.ObserverAction DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new SC2APIProtocol.Sc2Api.ObserverAction(); } public static SC2APIProtocol.Sc2Api.ObserverAction getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ObserverAction 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.Sc2Api.ObserverAction getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ActionObserverPlayerPerspectiveOrBuilder extends // @@protoc_insertion_point(interface_extends:SC2APIProtocol.ActionObserverPlayerPerspective) com.google.protobuf.MessageOrBuilder { /** *
     * 0 to observe "Everyone"
     * 
* * optional uint32 player_id = 1; * @return Whether the playerId field is set. */ boolean hasPlayerId(); /** *
     * 0 to observe "Everyone"
     * 
* * optional uint32 player_id = 1; * @return The playerId. */ int getPlayerId(); } /** * Protobuf type {@code SC2APIProtocol.ActionObserverPlayerPerspective} */ public static final class ActionObserverPlayerPerspective extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:SC2APIProtocol.ActionObserverPlayerPerspective) ActionObserverPlayerPerspectiveOrBuilder { private static final long serialVersionUID = 0L; // Use ActionObserverPlayerPerspective.newBuilder() to construct. private ActionObserverPlayerPerspective(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ActionObserverPlayerPerspective() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ActionObserverPlayerPerspective(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_ActionObserverPlayerPerspective_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_ActionObserverPlayerPerspective_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Sc2Api.ActionObserverPlayerPerspective.class, SC2APIProtocol.Sc2Api.ActionObserverPlayerPerspective.Builder.class); } private int bitField0_; public static final int PLAYER_ID_FIELD_NUMBER = 1; private int playerId_; /** *
     * 0 to observe "Everyone"
     * 
* * optional uint32 player_id = 1; * @return Whether the playerId field is set. */ @java.lang.Override public boolean hasPlayerId() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * 0 to observe "Everyone"
     * 
* * optional uint32 player_id = 1; * @return The playerId. */ @java.lang.Override public int getPlayerId() { return playerId_; } 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, playerId_); } 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, playerId_); } 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.Sc2Api.ActionObserverPlayerPerspective)) { return super.equals(obj); } SC2APIProtocol.Sc2Api.ActionObserverPlayerPerspective other = (SC2APIProtocol.Sc2Api.ActionObserverPlayerPerspective) obj; if (hasPlayerId() != other.hasPlayerId()) return false; if (hasPlayerId()) { if (getPlayerId() != other.getPlayerId()) 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 (hasPlayerId()) { hash = (37 * hash) + PLAYER_ID_FIELD_NUMBER; hash = (53 * hash) + getPlayerId(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static SC2APIProtocol.Sc2Api.ActionObserverPlayerPerspective parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.ActionObserverPlayerPerspective parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.ActionObserverPlayerPerspective parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.ActionObserverPlayerPerspective parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.ActionObserverPlayerPerspective parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.ActionObserverPlayerPerspective parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.ActionObserverPlayerPerspective parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.ActionObserverPlayerPerspective 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.Sc2Api.ActionObserverPlayerPerspective parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.ActionObserverPlayerPerspective 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.Sc2Api.ActionObserverPlayerPerspective parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.ActionObserverPlayerPerspective 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.Sc2Api.ActionObserverPlayerPerspective 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.ActionObserverPlayerPerspective} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:SC2APIProtocol.ActionObserverPlayerPerspective) SC2APIProtocol.Sc2Api.ActionObserverPlayerPerspectiveOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_ActionObserverPlayerPerspective_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_ActionObserverPlayerPerspective_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Sc2Api.ActionObserverPlayerPerspective.class, SC2APIProtocol.Sc2Api.ActionObserverPlayerPerspective.Builder.class); } // Construct using SC2APIProtocol.Sc2Api.ActionObserverPlayerPerspective.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); playerId_ = 0; bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_ActionObserverPlayerPerspective_descriptor; } @java.lang.Override public SC2APIProtocol.Sc2Api.ActionObserverPlayerPerspective getDefaultInstanceForType() { return SC2APIProtocol.Sc2Api.ActionObserverPlayerPerspective.getDefaultInstance(); } @java.lang.Override public SC2APIProtocol.Sc2Api.ActionObserverPlayerPerspective build() { SC2APIProtocol.Sc2Api.ActionObserverPlayerPerspective result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public SC2APIProtocol.Sc2Api.ActionObserverPlayerPerspective buildPartial() { SC2APIProtocol.Sc2Api.ActionObserverPlayerPerspective result = new SC2APIProtocol.Sc2Api.ActionObserverPlayerPerspective(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.playerId_ = playerId_; 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.Sc2Api.ActionObserverPlayerPerspective) { return mergeFrom((SC2APIProtocol.Sc2Api.ActionObserverPlayerPerspective)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(SC2APIProtocol.Sc2Api.ActionObserverPlayerPerspective other) { if (other == SC2APIProtocol.Sc2Api.ActionObserverPlayerPerspective.getDefaultInstance()) return this; if (other.hasPlayerId()) { setPlayerId(other.getPlayerId()); } 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: { playerId_ = input.readUInt32(); 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 playerId_ ; /** *
       * 0 to observe "Everyone"
       * 
* * optional uint32 player_id = 1; * @return Whether the playerId field is set. */ @java.lang.Override public boolean hasPlayerId() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * 0 to observe "Everyone"
       * 
* * optional uint32 player_id = 1; * @return The playerId. */ @java.lang.Override public int getPlayerId() { return playerId_; } /** *
       * 0 to observe "Everyone"
       * 
* * optional uint32 player_id = 1; * @param value The playerId to set. * @return This builder for chaining. */ public Builder setPlayerId(int value) { bitField0_ |= 0x00000001; playerId_ = value; onChanged(); return this; } /** *
       * 0 to observe "Everyone"
       * 
* * optional uint32 player_id = 1; * @return This builder for chaining. */ public Builder clearPlayerId() { bitField0_ = (bitField0_ & ~0x00000001); playerId_ = 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.ActionObserverPlayerPerspective) } // @@protoc_insertion_point(class_scope:SC2APIProtocol.ActionObserverPlayerPerspective) private static final SC2APIProtocol.Sc2Api.ActionObserverPlayerPerspective DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new SC2APIProtocol.Sc2Api.ActionObserverPlayerPerspective(); } public static SC2APIProtocol.Sc2Api.ActionObserverPlayerPerspective getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ActionObserverPlayerPerspective 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.Sc2Api.ActionObserverPlayerPerspective getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ActionObserverCameraMoveOrBuilder extends // @@protoc_insertion_point(interface_extends:SC2APIProtocol.ActionObserverCameraMove) com.google.protobuf.MessageOrBuilder { /** * optional .SC2APIProtocol.Point2D world_pos = 1; * @return Whether the worldPos field is set. */ boolean hasWorldPos(); /** * optional .SC2APIProtocol.Point2D world_pos = 1; * @return The worldPos. */ SC2APIProtocol.Common.Point2D getWorldPos(); /** * optional .SC2APIProtocol.Point2D world_pos = 1; */ SC2APIProtocol.Common.Point2DOrBuilder getWorldPosOrBuilder(); /** *
     * Distance between camera and terrain. Larger value zooms out camera.
     * Defaults to standard camera distance if set to 0.
     * 
* * optional float distance = 2; * @return Whether the distance field is set. */ boolean hasDistance(); /** *
     * Distance between camera and terrain. Larger value zooms out camera.
     * Defaults to standard camera distance if set to 0.
     * 
* * optional float distance = 2; * @return The distance. */ float getDistance(); } /** * Protobuf type {@code SC2APIProtocol.ActionObserverCameraMove} */ public static final class ActionObserverCameraMove extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:SC2APIProtocol.ActionObserverCameraMove) ActionObserverCameraMoveOrBuilder { private static final long serialVersionUID = 0L; // Use ActionObserverCameraMove.newBuilder() to construct. private ActionObserverCameraMove(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ActionObserverCameraMove() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ActionObserverCameraMove(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_ActionObserverCameraMove_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_ActionObserverCameraMove_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Sc2Api.ActionObserverCameraMove.class, SC2APIProtocol.Sc2Api.ActionObserverCameraMove.Builder.class); } private int bitField0_; public static final int WORLD_POS_FIELD_NUMBER = 1; private SC2APIProtocol.Common.Point2D worldPos_; /** * optional .SC2APIProtocol.Point2D world_pos = 1; * @return Whether the worldPos field is set. */ @java.lang.Override public boolean hasWorldPos() { return ((bitField0_ & 0x00000001) != 0); } /** * optional .SC2APIProtocol.Point2D world_pos = 1; * @return The worldPos. */ @java.lang.Override public SC2APIProtocol.Common.Point2D getWorldPos() { return worldPos_ == null ? SC2APIProtocol.Common.Point2D.getDefaultInstance() : worldPos_; } /** * optional .SC2APIProtocol.Point2D world_pos = 1; */ @java.lang.Override public SC2APIProtocol.Common.Point2DOrBuilder getWorldPosOrBuilder() { return worldPos_ == null ? SC2APIProtocol.Common.Point2D.getDefaultInstance() : worldPos_; } public static final int DISTANCE_FIELD_NUMBER = 2; private float distance_; /** *
     * Distance between camera and terrain. Larger value zooms out camera.
     * Defaults to standard camera distance if set to 0.
     * 
* * optional float distance = 2; * @return Whether the distance field is set. */ @java.lang.Override public boolean hasDistance() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * Distance between camera and terrain. Larger value zooms out camera.
     * Defaults to standard camera distance if set to 0.
     * 
* * optional float distance = 2; * @return The distance. */ @java.lang.Override public float getDistance() { return distance_; } 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, getWorldPos()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeFloat(2, distance_); } 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, getWorldPos()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeFloatSize(2, distance_); } 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.Sc2Api.ActionObserverCameraMove)) { return super.equals(obj); } SC2APIProtocol.Sc2Api.ActionObserverCameraMove other = (SC2APIProtocol.Sc2Api.ActionObserverCameraMove) obj; if (hasWorldPos() != other.hasWorldPos()) return false; if (hasWorldPos()) { if (!getWorldPos() .equals(other.getWorldPos())) return false; } if (hasDistance() != other.hasDistance()) return false; if (hasDistance()) { if (java.lang.Float.floatToIntBits(getDistance()) != java.lang.Float.floatToIntBits( other.getDistance())) 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 (hasWorldPos()) { hash = (37 * hash) + WORLD_POS_FIELD_NUMBER; hash = (53 * hash) + getWorldPos().hashCode(); } if (hasDistance()) { hash = (37 * hash) + DISTANCE_FIELD_NUMBER; hash = (53 * hash) + java.lang.Float.floatToIntBits( getDistance()); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static SC2APIProtocol.Sc2Api.ActionObserverCameraMove parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.ActionObserverCameraMove parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.ActionObserverCameraMove parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.ActionObserverCameraMove parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.ActionObserverCameraMove parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.ActionObserverCameraMove parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.ActionObserverCameraMove parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.ActionObserverCameraMove 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.Sc2Api.ActionObserverCameraMove parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.ActionObserverCameraMove 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.Sc2Api.ActionObserverCameraMove parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.ActionObserverCameraMove 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.Sc2Api.ActionObserverCameraMove 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.ActionObserverCameraMove} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:SC2APIProtocol.ActionObserverCameraMove) SC2APIProtocol.Sc2Api.ActionObserverCameraMoveOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_ActionObserverCameraMove_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_ActionObserverCameraMove_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Sc2Api.ActionObserverCameraMove.class, SC2APIProtocol.Sc2Api.ActionObserverCameraMove.Builder.class); } // Construct using SC2APIProtocol.Sc2Api.ActionObserverCameraMove.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getWorldPosFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (worldPosBuilder_ == null) { worldPos_ = null; } else { worldPosBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); distance_ = 0F; bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_ActionObserverCameraMove_descriptor; } @java.lang.Override public SC2APIProtocol.Sc2Api.ActionObserverCameraMove getDefaultInstanceForType() { return SC2APIProtocol.Sc2Api.ActionObserverCameraMove.getDefaultInstance(); } @java.lang.Override public SC2APIProtocol.Sc2Api.ActionObserverCameraMove build() { SC2APIProtocol.Sc2Api.ActionObserverCameraMove result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public SC2APIProtocol.Sc2Api.ActionObserverCameraMove buildPartial() { SC2APIProtocol.Sc2Api.ActionObserverCameraMove result = new SC2APIProtocol.Sc2Api.ActionObserverCameraMove(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { if (worldPosBuilder_ == null) { result.worldPos_ = worldPos_; } else { result.worldPos_ = worldPosBuilder_.build(); } to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.distance_ = distance_; 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.Sc2Api.ActionObserverCameraMove) { return mergeFrom((SC2APIProtocol.Sc2Api.ActionObserverCameraMove)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(SC2APIProtocol.Sc2Api.ActionObserverCameraMove other) { if (other == SC2APIProtocol.Sc2Api.ActionObserverCameraMove.getDefaultInstance()) return this; if (other.hasWorldPos()) { mergeWorldPos(other.getWorldPos()); } if (other.hasDistance()) { setDistance(other.getDistance()); } 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( getWorldPosFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 21: { distance_ = input.readFloat(); bitField0_ |= 0x00000002; break; } // case 21 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.Point2D worldPos_; private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Common.Point2D, SC2APIProtocol.Common.Point2D.Builder, SC2APIProtocol.Common.Point2DOrBuilder> worldPosBuilder_; /** * optional .SC2APIProtocol.Point2D world_pos = 1; * @return Whether the worldPos field is set. */ public boolean hasWorldPos() { return ((bitField0_ & 0x00000001) != 0); } /** * optional .SC2APIProtocol.Point2D world_pos = 1; * @return The worldPos. */ public SC2APIProtocol.Common.Point2D getWorldPos() { if (worldPosBuilder_ == null) { return worldPos_ == null ? SC2APIProtocol.Common.Point2D.getDefaultInstance() : worldPos_; } else { return worldPosBuilder_.getMessage(); } } /** * optional .SC2APIProtocol.Point2D world_pos = 1; */ public Builder setWorldPos(SC2APIProtocol.Common.Point2D value) { if (worldPosBuilder_ == null) { if (value == null) { throw new NullPointerException(); } worldPos_ = value; onChanged(); } else { worldPosBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * optional .SC2APIProtocol.Point2D world_pos = 1; */ public Builder setWorldPos( SC2APIProtocol.Common.Point2D.Builder builderForValue) { if (worldPosBuilder_ == null) { worldPos_ = builderForValue.build(); onChanged(); } else { worldPosBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * optional .SC2APIProtocol.Point2D world_pos = 1; */ public Builder mergeWorldPos(SC2APIProtocol.Common.Point2D value) { if (worldPosBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && worldPos_ != null && worldPos_ != SC2APIProtocol.Common.Point2D.getDefaultInstance()) { worldPos_ = SC2APIProtocol.Common.Point2D.newBuilder(worldPos_).mergeFrom(value).buildPartial(); } else { worldPos_ = value; } onChanged(); } else { worldPosBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * optional .SC2APIProtocol.Point2D world_pos = 1; */ public Builder clearWorldPos() { if (worldPosBuilder_ == null) { worldPos_ = null; onChanged(); } else { worldPosBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * optional .SC2APIProtocol.Point2D world_pos = 1; */ public SC2APIProtocol.Common.Point2D.Builder getWorldPosBuilder() { bitField0_ |= 0x00000001; onChanged(); return getWorldPosFieldBuilder().getBuilder(); } /** * optional .SC2APIProtocol.Point2D world_pos = 1; */ public SC2APIProtocol.Common.Point2DOrBuilder getWorldPosOrBuilder() { if (worldPosBuilder_ != null) { return worldPosBuilder_.getMessageOrBuilder(); } else { return worldPos_ == null ? SC2APIProtocol.Common.Point2D.getDefaultInstance() : worldPos_; } } /** * optional .SC2APIProtocol.Point2D world_pos = 1; */ private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Common.Point2D, SC2APIProtocol.Common.Point2D.Builder, SC2APIProtocol.Common.Point2DOrBuilder> getWorldPosFieldBuilder() { if (worldPosBuilder_ == null) { worldPosBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Common.Point2D, SC2APIProtocol.Common.Point2D.Builder, SC2APIProtocol.Common.Point2DOrBuilder>( getWorldPos(), getParentForChildren(), isClean()); worldPos_ = null; } return worldPosBuilder_; } private float distance_ ; /** *
       * Distance between camera and terrain. Larger value zooms out camera.
       * Defaults to standard camera distance if set to 0.
       * 
* * optional float distance = 2; * @return Whether the distance field is set. */ @java.lang.Override public boolean hasDistance() { return ((bitField0_ & 0x00000002) != 0); } /** *
       * Distance between camera and terrain. Larger value zooms out camera.
       * Defaults to standard camera distance if set to 0.
       * 
* * optional float distance = 2; * @return The distance. */ @java.lang.Override public float getDistance() { return distance_; } /** *
       * Distance between camera and terrain. Larger value zooms out camera.
       * Defaults to standard camera distance if set to 0.
       * 
* * optional float distance = 2; * @param value The distance to set. * @return This builder for chaining. */ public Builder setDistance(float value) { bitField0_ |= 0x00000002; distance_ = value; onChanged(); return this; } /** *
       * Distance between camera and terrain. Larger value zooms out camera.
       * Defaults to standard camera distance if set to 0.
       * 
* * optional float distance = 2; * @return This builder for chaining. */ public Builder clearDistance() { bitField0_ = (bitField0_ & ~0x00000002); distance_ = 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.ActionObserverCameraMove) } // @@protoc_insertion_point(class_scope:SC2APIProtocol.ActionObserverCameraMove) private static final SC2APIProtocol.Sc2Api.ActionObserverCameraMove DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new SC2APIProtocol.Sc2Api.ActionObserverCameraMove(); } public static SC2APIProtocol.Sc2Api.ActionObserverCameraMove getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ActionObserverCameraMove 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.Sc2Api.ActionObserverCameraMove getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ActionObserverCameraFollowPlayerOrBuilder extends // @@protoc_insertion_point(interface_extends:SC2APIProtocol.ActionObserverCameraFollowPlayer) com.google.protobuf.MessageOrBuilder { /** *
     * Not implemented. Value must be [1, 15]
     * 
* * optional uint32 player_id = 1; * @return Whether the playerId field is set. */ boolean hasPlayerId(); /** *
     * Not implemented. Value must be [1, 15]
     * 
* * optional uint32 player_id = 1; * @return The playerId. */ int getPlayerId(); } /** * Protobuf type {@code SC2APIProtocol.ActionObserverCameraFollowPlayer} */ public static final class ActionObserverCameraFollowPlayer extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:SC2APIProtocol.ActionObserverCameraFollowPlayer) ActionObserverCameraFollowPlayerOrBuilder { private static final long serialVersionUID = 0L; // Use ActionObserverCameraFollowPlayer.newBuilder() to construct. private ActionObserverCameraFollowPlayer(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ActionObserverCameraFollowPlayer() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ActionObserverCameraFollowPlayer(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_ActionObserverCameraFollowPlayer_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_ActionObserverCameraFollowPlayer_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Sc2Api.ActionObserverCameraFollowPlayer.class, SC2APIProtocol.Sc2Api.ActionObserverCameraFollowPlayer.Builder.class); } private int bitField0_; public static final int PLAYER_ID_FIELD_NUMBER = 1; private int playerId_; /** *
     * Not implemented. Value must be [1, 15]
     * 
* * optional uint32 player_id = 1; * @return Whether the playerId field is set. */ @java.lang.Override public boolean hasPlayerId() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * Not implemented. Value must be [1, 15]
     * 
* * optional uint32 player_id = 1; * @return The playerId. */ @java.lang.Override public int getPlayerId() { return playerId_; } 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, playerId_); } 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, playerId_); } 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.Sc2Api.ActionObserverCameraFollowPlayer)) { return super.equals(obj); } SC2APIProtocol.Sc2Api.ActionObserverCameraFollowPlayer other = (SC2APIProtocol.Sc2Api.ActionObserverCameraFollowPlayer) obj; if (hasPlayerId() != other.hasPlayerId()) return false; if (hasPlayerId()) { if (getPlayerId() != other.getPlayerId()) 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 (hasPlayerId()) { hash = (37 * hash) + PLAYER_ID_FIELD_NUMBER; hash = (53 * hash) + getPlayerId(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static SC2APIProtocol.Sc2Api.ActionObserverCameraFollowPlayer parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.ActionObserverCameraFollowPlayer parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.ActionObserverCameraFollowPlayer parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.ActionObserverCameraFollowPlayer parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.ActionObserverCameraFollowPlayer parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.ActionObserverCameraFollowPlayer parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.ActionObserverCameraFollowPlayer parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.ActionObserverCameraFollowPlayer 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.Sc2Api.ActionObserverCameraFollowPlayer parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.ActionObserverCameraFollowPlayer 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.Sc2Api.ActionObserverCameraFollowPlayer parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.ActionObserverCameraFollowPlayer 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.Sc2Api.ActionObserverCameraFollowPlayer 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.ActionObserverCameraFollowPlayer} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:SC2APIProtocol.ActionObserverCameraFollowPlayer) SC2APIProtocol.Sc2Api.ActionObserverCameraFollowPlayerOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_ActionObserverCameraFollowPlayer_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_ActionObserverCameraFollowPlayer_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Sc2Api.ActionObserverCameraFollowPlayer.class, SC2APIProtocol.Sc2Api.ActionObserverCameraFollowPlayer.Builder.class); } // Construct using SC2APIProtocol.Sc2Api.ActionObserverCameraFollowPlayer.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); playerId_ = 0; bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_ActionObserverCameraFollowPlayer_descriptor; } @java.lang.Override public SC2APIProtocol.Sc2Api.ActionObserverCameraFollowPlayer getDefaultInstanceForType() { return SC2APIProtocol.Sc2Api.ActionObserverCameraFollowPlayer.getDefaultInstance(); } @java.lang.Override public SC2APIProtocol.Sc2Api.ActionObserverCameraFollowPlayer build() { SC2APIProtocol.Sc2Api.ActionObserverCameraFollowPlayer result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public SC2APIProtocol.Sc2Api.ActionObserverCameraFollowPlayer buildPartial() { SC2APIProtocol.Sc2Api.ActionObserverCameraFollowPlayer result = new SC2APIProtocol.Sc2Api.ActionObserverCameraFollowPlayer(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.playerId_ = playerId_; 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.Sc2Api.ActionObserverCameraFollowPlayer) { return mergeFrom((SC2APIProtocol.Sc2Api.ActionObserverCameraFollowPlayer)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(SC2APIProtocol.Sc2Api.ActionObserverCameraFollowPlayer other) { if (other == SC2APIProtocol.Sc2Api.ActionObserverCameraFollowPlayer.getDefaultInstance()) return this; if (other.hasPlayerId()) { setPlayerId(other.getPlayerId()); } 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: { playerId_ = input.readUInt32(); 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 playerId_ ; /** *
       * Not implemented. Value must be [1, 15]
       * 
* * optional uint32 player_id = 1; * @return Whether the playerId field is set. */ @java.lang.Override public boolean hasPlayerId() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * Not implemented. Value must be [1, 15]
       * 
* * optional uint32 player_id = 1; * @return The playerId. */ @java.lang.Override public int getPlayerId() { return playerId_; } /** *
       * Not implemented. Value must be [1, 15]
       * 
* * optional uint32 player_id = 1; * @param value The playerId to set. * @return This builder for chaining. */ public Builder setPlayerId(int value) { bitField0_ |= 0x00000001; playerId_ = value; onChanged(); return this; } /** *
       * Not implemented. Value must be [1, 15]
       * 
* * optional uint32 player_id = 1; * @return This builder for chaining. */ public Builder clearPlayerId() { bitField0_ = (bitField0_ & ~0x00000001); playerId_ = 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.ActionObserverCameraFollowPlayer) } // @@protoc_insertion_point(class_scope:SC2APIProtocol.ActionObserverCameraFollowPlayer) private static final SC2APIProtocol.Sc2Api.ActionObserverCameraFollowPlayer DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new SC2APIProtocol.Sc2Api.ActionObserverCameraFollowPlayer(); } public static SC2APIProtocol.Sc2Api.ActionObserverCameraFollowPlayer getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ActionObserverCameraFollowPlayer 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.Sc2Api.ActionObserverCameraFollowPlayer getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ActionObserverCameraFollowUnitsOrBuilder extends // @@protoc_insertion_point(interface_extends:SC2APIProtocol.ActionObserverCameraFollowUnits) com.google.protobuf.MessageOrBuilder { /** * repeated uint64 unit_tags = 1; * @return A list containing the unitTags. */ java.util.List getUnitTagsList(); /** * repeated uint64 unit_tags = 1; * @return The count of unitTags. */ int getUnitTagsCount(); /** * repeated uint64 unit_tags = 1; * @param index The index of the element to return. * @return The unitTags at the given index. */ long getUnitTags(int index); } /** * Protobuf type {@code SC2APIProtocol.ActionObserverCameraFollowUnits} */ public static final class ActionObserverCameraFollowUnits extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:SC2APIProtocol.ActionObserverCameraFollowUnits) ActionObserverCameraFollowUnitsOrBuilder { private static final long serialVersionUID = 0L; // Use ActionObserverCameraFollowUnits.newBuilder() to construct. private ActionObserverCameraFollowUnits(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ActionObserverCameraFollowUnits() { unitTags_ = emptyLongList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ActionObserverCameraFollowUnits(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_ActionObserverCameraFollowUnits_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_ActionObserverCameraFollowUnits_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Sc2Api.ActionObserverCameraFollowUnits.class, SC2APIProtocol.Sc2Api.ActionObserverCameraFollowUnits.Builder.class); } public static final int UNIT_TAGS_FIELD_NUMBER = 1; private com.google.protobuf.Internal.LongList unitTags_; /** * repeated uint64 unit_tags = 1; * @return A list containing the unitTags. */ @java.lang.Override public java.util.List getUnitTagsList() { return unitTags_; } /** * repeated uint64 unit_tags = 1; * @return The count of unitTags. */ public int getUnitTagsCount() { return unitTags_.size(); } /** * repeated uint64 unit_tags = 1; * @param index The index of the element to return. * @return The unitTags at the given index. */ public long getUnitTags(int index) { return unitTags_.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 < unitTags_.size(); i++) { output.writeUInt64(1, unitTags_.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 < unitTags_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeUInt64SizeNoTag(unitTags_.getLong(i)); } size += dataSize; size += 1 * getUnitTagsList().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.Sc2Api.ActionObserverCameraFollowUnits)) { return super.equals(obj); } SC2APIProtocol.Sc2Api.ActionObserverCameraFollowUnits other = (SC2APIProtocol.Sc2Api.ActionObserverCameraFollowUnits) obj; if (!getUnitTagsList() .equals(other.getUnitTagsList())) 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 (getUnitTagsCount() > 0) { hash = (37 * hash) + UNIT_TAGS_FIELD_NUMBER; hash = (53 * hash) + getUnitTagsList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static SC2APIProtocol.Sc2Api.ActionObserverCameraFollowUnits parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.ActionObserverCameraFollowUnits parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.ActionObserverCameraFollowUnits parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.ActionObserverCameraFollowUnits parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.ActionObserverCameraFollowUnits parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.ActionObserverCameraFollowUnits parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.ActionObserverCameraFollowUnits parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.ActionObserverCameraFollowUnits 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.Sc2Api.ActionObserverCameraFollowUnits parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.ActionObserverCameraFollowUnits 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.Sc2Api.ActionObserverCameraFollowUnits parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.ActionObserverCameraFollowUnits 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.Sc2Api.ActionObserverCameraFollowUnits 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.ActionObserverCameraFollowUnits} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:SC2APIProtocol.ActionObserverCameraFollowUnits) SC2APIProtocol.Sc2Api.ActionObserverCameraFollowUnitsOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_ActionObserverCameraFollowUnits_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_ActionObserverCameraFollowUnits_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Sc2Api.ActionObserverCameraFollowUnits.class, SC2APIProtocol.Sc2Api.ActionObserverCameraFollowUnits.Builder.class); } // Construct using SC2APIProtocol.Sc2Api.ActionObserverCameraFollowUnits.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); unitTags_ = emptyLongList(); bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_ActionObserverCameraFollowUnits_descriptor; } @java.lang.Override public SC2APIProtocol.Sc2Api.ActionObserverCameraFollowUnits getDefaultInstanceForType() { return SC2APIProtocol.Sc2Api.ActionObserverCameraFollowUnits.getDefaultInstance(); } @java.lang.Override public SC2APIProtocol.Sc2Api.ActionObserverCameraFollowUnits build() { SC2APIProtocol.Sc2Api.ActionObserverCameraFollowUnits result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public SC2APIProtocol.Sc2Api.ActionObserverCameraFollowUnits buildPartial() { SC2APIProtocol.Sc2Api.ActionObserverCameraFollowUnits result = new SC2APIProtocol.Sc2Api.ActionObserverCameraFollowUnits(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { unitTags_.makeImmutable(); bitField0_ = (bitField0_ & ~0x00000001); } result.unitTags_ = unitTags_; 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.Sc2Api.ActionObserverCameraFollowUnits) { return mergeFrom((SC2APIProtocol.Sc2Api.ActionObserverCameraFollowUnits)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(SC2APIProtocol.Sc2Api.ActionObserverCameraFollowUnits other) { if (other == SC2APIProtocol.Sc2Api.ActionObserverCameraFollowUnits.getDefaultInstance()) return this; if (!other.unitTags_.isEmpty()) { if (unitTags_.isEmpty()) { unitTags_ = other.unitTags_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureUnitTagsIsMutable(); unitTags_.addAll(other.unitTags_); } 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(); ensureUnitTagsIsMutable(); unitTags_.addLong(v); break; } // case 8 case 10: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); ensureUnitTagsIsMutable(); while (input.getBytesUntilLimit() > 0) { unitTags_.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 unitTags_ = emptyLongList(); private void ensureUnitTagsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { unitTags_ = mutableCopy(unitTags_); bitField0_ |= 0x00000001; } } /** * repeated uint64 unit_tags = 1; * @return A list containing the unitTags. */ public java.util.List getUnitTagsList() { return ((bitField0_ & 0x00000001) != 0) ? java.util.Collections.unmodifiableList(unitTags_) : unitTags_; } /** * repeated uint64 unit_tags = 1; * @return The count of unitTags. */ public int getUnitTagsCount() { return unitTags_.size(); } /** * repeated uint64 unit_tags = 1; * @param index The index of the element to return. * @return The unitTags at the given index. */ public long getUnitTags(int index) { return unitTags_.getLong(index); } /** * repeated uint64 unit_tags = 1; * @param index The index to set the value at. * @param value The unitTags to set. * @return This builder for chaining. */ public Builder setUnitTags( int index, long value) { ensureUnitTagsIsMutable(); unitTags_.setLong(index, value); onChanged(); return this; } /** * repeated uint64 unit_tags = 1; * @param value The unitTags to add. * @return This builder for chaining. */ public Builder addUnitTags(long value) { ensureUnitTagsIsMutable(); unitTags_.addLong(value); onChanged(); return this; } /** * repeated uint64 unit_tags = 1; * @param values The unitTags to add. * @return This builder for chaining. */ public Builder addAllUnitTags( java.lang.Iterable values) { ensureUnitTagsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, unitTags_); onChanged(); return this; } /** * repeated uint64 unit_tags = 1; * @return This builder for chaining. */ public Builder clearUnitTags() { unitTags_ = 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.ActionObserverCameraFollowUnits) } // @@protoc_insertion_point(class_scope:SC2APIProtocol.ActionObserverCameraFollowUnits) private static final SC2APIProtocol.Sc2Api.ActionObserverCameraFollowUnits DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new SC2APIProtocol.Sc2Api.ActionObserverCameraFollowUnits(); } public static SC2APIProtocol.Sc2Api.ActionObserverCameraFollowUnits getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ActionObserverCameraFollowUnits 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.Sc2Api.ActionObserverCameraFollowUnits getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PlayerResultOrBuilder extends // @@protoc_insertion_point(interface_extends:SC2APIProtocol.PlayerResult) com.google.protobuf.MessageOrBuilder { /** * optional uint32 player_id = 1; * @return Whether the playerId field is set. */ boolean hasPlayerId(); /** * optional uint32 player_id = 1; * @return The playerId. */ int getPlayerId(); /** * optional .SC2APIProtocol.Result result = 2; * @return Whether the result field is set. */ boolean hasResult(); /** * optional .SC2APIProtocol.Result result = 2; * @return The result. */ SC2APIProtocol.Sc2Api.Result getResult(); } /** * Protobuf type {@code SC2APIProtocol.PlayerResult} */ public static final class PlayerResult extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:SC2APIProtocol.PlayerResult) PlayerResultOrBuilder { private static final long serialVersionUID = 0L; // Use PlayerResult.newBuilder() to construct. private PlayerResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PlayerResult() { result_ = 1; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new PlayerResult(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_PlayerResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_PlayerResult_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Sc2Api.PlayerResult.class, SC2APIProtocol.Sc2Api.PlayerResult.Builder.class); } private int bitField0_; public static final int PLAYER_ID_FIELD_NUMBER = 1; private int playerId_; /** * optional uint32 player_id = 1; * @return Whether the playerId field is set. */ @java.lang.Override public boolean hasPlayerId() { return ((bitField0_ & 0x00000001) != 0); } /** * optional uint32 player_id = 1; * @return The playerId. */ @java.lang.Override public int getPlayerId() { return playerId_; } public static final int RESULT_FIELD_NUMBER = 2; private int result_; /** * optional .SC2APIProtocol.Result result = 2; * @return Whether the result field is set. */ @java.lang.Override public boolean hasResult() { return ((bitField0_ & 0x00000002) != 0); } /** * optional .SC2APIProtocol.Result result = 2; * @return The result. */ @java.lang.Override public SC2APIProtocol.Sc2Api.Result getResult() { @SuppressWarnings("deprecation") SC2APIProtocol.Sc2Api.Result result = SC2APIProtocol.Sc2Api.Result.valueOf(result_); return result == null ? SC2APIProtocol.Sc2Api.Result.Victory : 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.writeUInt32(1, playerId_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeEnum(2, result_); } 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, playerId_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, result_); } 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.Sc2Api.PlayerResult)) { return super.equals(obj); } SC2APIProtocol.Sc2Api.PlayerResult other = (SC2APIProtocol.Sc2Api.PlayerResult) obj; if (hasPlayerId() != other.hasPlayerId()) return false; if (hasPlayerId()) { if (getPlayerId() != other.getPlayerId()) return false; } if (hasResult() != other.hasResult()) return false; if (hasResult()) { if (result_ != other.result_) 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 (hasPlayerId()) { hash = (37 * hash) + PLAYER_ID_FIELD_NUMBER; hash = (53 * hash) + getPlayerId(); } if (hasResult()) { hash = (37 * hash) + RESULT_FIELD_NUMBER; hash = (53 * hash) + result_; } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static SC2APIProtocol.Sc2Api.PlayerResult parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.PlayerResult parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.PlayerResult parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.PlayerResult parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.PlayerResult parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Sc2Api.PlayerResult parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Sc2Api.PlayerResult parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.PlayerResult 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.Sc2Api.PlayerResult parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.PlayerResult 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.Sc2Api.PlayerResult parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Sc2Api.PlayerResult 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.Sc2Api.PlayerResult 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.PlayerResult} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:SC2APIProtocol.PlayerResult) SC2APIProtocol.Sc2Api.PlayerResultOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_PlayerResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_PlayerResult_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Sc2Api.PlayerResult.class, SC2APIProtocol.Sc2Api.PlayerResult.Builder.class); } // Construct using SC2APIProtocol.Sc2Api.PlayerResult.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); playerId_ = 0; bitField0_ = (bitField0_ & ~0x00000001); result_ = 1; bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return SC2APIProtocol.Sc2Api.internal_static_SC2APIProtocol_PlayerResult_descriptor; } @java.lang.Override public SC2APIProtocol.Sc2Api.PlayerResult getDefaultInstanceForType() { return SC2APIProtocol.Sc2Api.PlayerResult.getDefaultInstance(); } @java.lang.Override public SC2APIProtocol.Sc2Api.PlayerResult build() { SC2APIProtocol.Sc2Api.PlayerResult result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public SC2APIProtocol.Sc2Api.PlayerResult buildPartial() { SC2APIProtocol.Sc2Api.PlayerResult result = new SC2APIProtocol.Sc2Api.PlayerResult(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.playerId_ = playerId_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { to_bitField0_ |= 0x00000002; } result.result_ = result_; 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.Sc2Api.PlayerResult) { return mergeFrom((SC2APIProtocol.Sc2Api.PlayerResult)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(SC2APIProtocol.Sc2Api.PlayerResult other) { if (other == SC2APIProtocol.Sc2Api.PlayerResult.getDefaultInstance()) return this; if (other.hasPlayerId()) { setPlayerId(other.getPlayerId()); } if (other.hasResult()) { setResult(other.getResult()); } 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: { playerId_ = input.readUInt32(); bitField0_ |= 0x00000001; break; } // case 8 case 16: { int tmpRaw = input.readEnum(); SC2APIProtocol.Sc2Api.Result tmpValue = SC2APIProtocol.Sc2Api.Result.forNumber(tmpRaw); if (tmpValue == null) { mergeUnknownVarintField(2, tmpRaw); } else { result_ = tmpRaw; 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 playerId_ ; /** * optional uint32 player_id = 1; * @return Whether the playerId field is set. */ @java.lang.Override public boolean hasPlayerId() { return ((bitField0_ & 0x00000001) != 0); } /** * optional uint32 player_id = 1; * @return The playerId. */ @java.lang.Override public int getPlayerId() { return playerId_; } /** * optional uint32 player_id = 1; * @param value The playerId to set. * @return This builder for chaining. */ public Builder setPlayerId(int value) { bitField0_ |= 0x00000001; playerId_ = value; onChanged(); return this; } /** * optional uint32 player_id = 1; * @return This builder for chaining. */ public Builder clearPlayerId() { bitField0_ = (bitField0_ & ~0x00000001); playerId_ = 0; onChanged(); return this; } private int result_ = 1; /** * optional .SC2APIProtocol.Result result = 2; * @return Whether the result field is set. */ @java.lang.Override public boolean hasResult() { return ((bitField0_ & 0x00000002) != 0); } /** * optional .SC2APIProtocol.Result result = 2; * @return The result. */ @java.lang.Override public SC2APIProtocol.Sc2Api.Result getResult() { @SuppressWarnings("deprecation") SC2APIProtocol.Sc2Api.Result result = SC2APIProtocol.Sc2Api.Result.valueOf(result_); return result == null ? SC2APIProtocol.Sc2Api.Result.Victory : result; } /** * optional .SC2APIProtocol.Result result = 2; * @param value The result to set. * @return This builder for chaining. */ public Builder setResult(SC2APIProtocol.Sc2Api.Result value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; result_ = value.getNumber(); onChanged(); return this; } /** * optional .SC2APIProtocol.Result result = 2; * @return This builder for chaining. */ public Builder clearResult() { bitField0_ = (bitField0_ & ~0x00000002); result_ = 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.PlayerResult) } // @@protoc_insertion_point(class_scope:SC2APIProtocol.PlayerResult) private static final SC2APIProtocol.Sc2Api.PlayerResult DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new SC2APIProtocol.Sc2Api.PlayerResult(); } public static SC2APIProtocol.Sc2Api.PlayerResult getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PlayerResult 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.Sc2Api.PlayerResult getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_SC2APIProtocol_Request_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_SC2APIProtocol_Request_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_SC2APIProtocol_Response_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_SC2APIProtocol_Response_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_SC2APIProtocol_RequestCreateGame_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_SC2APIProtocol_RequestCreateGame_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_SC2APIProtocol_LocalMap_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_SC2APIProtocol_LocalMap_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_SC2APIProtocol_ResponseCreateGame_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_SC2APIProtocol_ResponseCreateGame_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_SC2APIProtocol_RequestJoinGame_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_SC2APIProtocol_RequestJoinGame_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_SC2APIProtocol_PortSet_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_SC2APIProtocol_PortSet_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_SC2APIProtocol_ResponseJoinGame_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_SC2APIProtocol_ResponseJoinGame_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_SC2APIProtocol_RequestRestartGame_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_SC2APIProtocol_RequestRestartGame_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_SC2APIProtocol_ResponseRestartGame_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_SC2APIProtocol_ResponseRestartGame_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_SC2APIProtocol_RequestStartReplay_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_SC2APIProtocol_RequestStartReplay_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_SC2APIProtocol_ResponseStartReplay_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_SC2APIProtocol_ResponseStartReplay_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_SC2APIProtocol_RequestMapCommand_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_SC2APIProtocol_RequestMapCommand_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_SC2APIProtocol_ResponseMapCommand_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_SC2APIProtocol_ResponseMapCommand_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_SC2APIProtocol_RequestLeaveGame_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_SC2APIProtocol_RequestLeaveGame_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_SC2APIProtocol_ResponseLeaveGame_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_SC2APIProtocol_ResponseLeaveGame_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_SC2APIProtocol_RequestQuickSave_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_SC2APIProtocol_RequestQuickSave_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_SC2APIProtocol_ResponseQuickSave_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_SC2APIProtocol_ResponseQuickSave_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_SC2APIProtocol_RequestQuickLoad_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_SC2APIProtocol_RequestQuickLoad_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_SC2APIProtocol_ResponseQuickLoad_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_SC2APIProtocol_ResponseQuickLoad_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_SC2APIProtocol_RequestQuit_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_SC2APIProtocol_RequestQuit_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_SC2APIProtocol_ResponseQuit_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_SC2APIProtocol_ResponseQuit_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_SC2APIProtocol_RequestGameInfo_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_SC2APIProtocol_RequestGameInfo_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_SC2APIProtocol_ResponseGameInfo_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_SC2APIProtocol_ResponseGameInfo_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_SC2APIProtocol_RequestObservation_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_SC2APIProtocol_RequestObservation_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_SC2APIProtocol_ResponseObservation_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_SC2APIProtocol_ResponseObservation_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_SC2APIProtocol_ChatReceived_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_SC2APIProtocol_ChatReceived_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_SC2APIProtocol_RequestAction_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_SC2APIProtocol_RequestAction_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_SC2APIProtocol_ResponseAction_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_SC2APIProtocol_ResponseAction_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_SC2APIProtocol_RequestObserverAction_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_SC2APIProtocol_RequestObserverAction_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_SC2APIProtocol_ResponseObserverAction_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_SC2APIProtocol_ResponseObserverAction_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_SC2APIProtocol_RequestStep_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_SC2APIProtocol_RequestStep_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_SC2APIProtocol_ResponseStep_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_SC2APIProtocol_ResponseStep_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_SC2APIProtocol_RequestData_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_SC2APIProtocol_RequestData_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_SC2APIProtocol_ResponseData_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_SC2APIProtocol_ResponseData_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_SC2APIProtocol_RequestSaveReplay_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_SC2APIProtocol_RequestSaveReplay_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_SC2APIProtocol_ResponseSaveReplay_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_SC2APIProtocol_ResponseSaveReplay_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_SC2APIProtocol_RequestReplayInfo_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_SC2APIProtocol_RequestReplayInfo_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_SC2APIProtocol_PlayerInfoExtra_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_SC2APIProtocol_PlayerInfoExtra_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_SC2APIProtocol_ResponseReplayInfo_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_SC2APIProtocol_ResponseReplayInfo_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_SC2APIProtocol_RequestAvailableMaps_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_SC2APIProtocol_RequestAvailableMaps_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_SC2APIProtocol_ResponseAvailableMaps_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_SC2APIProtocol_ResponseAvailableMaps_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_SC2APIProtocol_RequestSaveMap_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_SC2APIProtocol_RequestSaveMap_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_SC2APIProtocol_ResponseSaveMap_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_SC2APIProtocol_ResponseSaveMap_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_SC2APIProtocol_RequestPing_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_SC2APIProtocol_RequestPing_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_SC2APIProtocol_ResponsePing_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_SC2APIProtocol_ResponsePing_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_SC2APIProtocol_RequestDebug_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_SC2APIProtocol_RequestDebug_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_SC2APIProtocol_ResponseDebug_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_SC2APIProtocol_ResponseDebug_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_SC2APIProtocol_PlayerSetup_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_SC2APIProtocol_PlayerSetup_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_SC2APIProtocol_SpatialCameraSetup_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_SC2APIProtocol_SpatialCameraSetup_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_SC2APIProtocol_InterfaceOptions_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_SC2APIProtocol_InterfaceOptions_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_SC2APIProtocol_PlayerInfo_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_SC2APIProtocol_PlayerInfo_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_SC2APIProtocol_PlayerCommon_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_SC2APIProtocol_PlayerCommon_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_SC2APIProtocol_Observation_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_SC2APIProtocol_Observation_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_SC2APIProtocol_Action_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_SC2APIProtocol_Action_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_SC2APIProtocol_ActionChat_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_SC2APIProtocol_ActionChat_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_SC2APIProtocol_ActionError_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_SC2APIProtocol_ActionError_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_SC2APIProtocol_ObserverAction_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_SC2APIProtocol_ObserverAction_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_SC2APIProtocol_ActionObserverPlayerPerspective_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_SC2APIProtocol_ActionObserverPlayerPerspective_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_SC2APIProtocol_ActionObserverCameraMove_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_SC2APIProtocol_ActionObserverCameraMove_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_SC2APIProtocol_ActionObserverCameraFollowPlayer_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_SC2APIProtocol_ActionObserverCameraFollowPlayer_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_SC2APIProtocol_ActionObserverCameraFollowUnits_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_SC2APIProtocol_ActionObserverCameraFollowUnits_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_SC2APIProtocol_PlayerResult_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_SC2APIProtocol_PlayerResult_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\035s2clientprotocol/sc2api.proto\022\016SC2APIP" + "rotocol\032\035s2clientprotocol/common.proto\032\033" + "s2clientprotocol/data.proto\032\034s2clientpro" + "tocol/debug.proto\032\034s2clientprotocol/erro" + "r.proto\032\034s2clientprotocol/query.proto\032\032s" + "2clientprotocol/raw.proto\032\034s2clientproto" + "col/score.proto\032\036s2clientprotocol/spatia" + "l.proto\032\031s2clientprotocol/ui.proto\"\303\t\n\007R" + "equest\0228\n\013create_game\030\001 \001(\0132!.SC2APIProt" + "ocol.RequestCreateGameH\000\0224\n\tjoin_game\030\002 " + "\001(\0132\037.SC2APIProtocol.RequestJoinGameH\000\022:" + "\n\014restart_game\030\003 \001(\0132\".SC2APIProtocol.Re" + "questRestartGameH\000\022:\n\014start_replay\030\004 \001(\013" + "2\".SC2APIProtocol.RequestStartReplayH\000\0226" + "\n\nleave_game\030\005 \001(\0132 .SC2APIProtocol.Requ" + "estLeaveGameH\000\0226\n\nquick_save\030\006 \001(\0132 .SC2" + "APIProtocol.RequestQuickSaveH\000\0226\n\nquick_" + "load\030\007 \001(\0132 .SC2APIProtocol.RequestQuick" + "LoadH\000\022+\n\004quit\030\010 \001(\0132\033.SC2APIProtocol.Re" + "questQuitH\000\0224\n\tgame_info\030\t \001(\0132\037.SC2APIP" + "rotocol.RequestGameInfoH\000\0229\n\013observation" + "\030\n \001(\0132\".SC2APIProtocol.RequestObservati" + "onH\000\022/\n\006action\030\013 \001(\0132\035.SC2APIProtocol.Re" + "questActionH\000\022;\n\nobs_action\030\025 \001(\0132%.SC2A" + "PIProtocol.RequestObserverActionH\000\022+\n\004st" + "ep\030\014 \001(\0132\033.SC2APIProtocol.RequestStepH\000\022" + "+\n\004data\030\r \001(\0132\033.SC2APIProtocol.RequestDa" + "taH\000\022-\n\005query\030\016 \001(\0132\034.SC2APIProtocol.Req" + "uestQueryH\000\0228\n\013save_replay\030\017 \001(\0132!.SC2AP" + "IProtocol.RequestSaveReplayH\000\0228\n\013map_com" + "mand\030\026 \001(\0132!.SC2APIProtocol.RequestMapCo" + "mmandH\000\0228\n\013replay_info\030\020 \001(\0132!.SC2APIPro" + "tocol.RequestReplayInfoH\000\022>\n\016available_m" + "aps\030\021 \001(\0132$.SC2APIProtocol.RequestAvaila" + "bleMapsH\000\0222\n\010save_map\030\022 \001(\0132\036.SC2APIProt" + "ocol.RequestSaveMapH\000\022+\n\004ping\030\023 \001(\0132\033.SC" + "2APIProtocol.RequestPingH\000\022-\n\005debug\030\024 \001(" + "\0132\034.SC2APIProtocol.RequestDebugH\000\022\n\n\002id\030" + "a \001(\rB\t\n\007request\"\222\n\n\010Response\0229\n\013create_" + "game\030\001 \001(\0132\".SC2APIProtocol.ResponseCrea" + "teGameH\000\0225\n\tjoin_game\030\002 \001(\0132 .SC2APIProt" + "ocol.ResponseJoinGameH\000\022;\n\014restart_game\030" + "\003 \001(\0132#.SC2APIProtocol.ResponseRestartGa" + "meH\000\022;\n\014start_replay\030\004 \001(\0132#.SC2APIProto" + "col.ResponseStartReplayH\000\0227\n\nleave_game\030" + "\005 \001(\0132!.SC2APIProtocol.ResponseLeaveGame" + "H\000\0227\n\nquick_save\030\006 \001(\0132!.SC2APIProtocol." + "ResponseQuickSaveH\000\0227\n\nquick_load\030\007 \001(\0132" + "!.SC2APIProtocol.ResponseQuickLoadH\000\022,\n\004" + "quit\030\010 \001(\0132\034.SC2APIProtocol.ResponseQuit" + "H\000\0225\n\tgame_info\030\t \001(\0132 .SC2APIProtocol.R" + "esponseGameInfoH\000\022:\n\013observation\030\n \001(\0132#" + ".SC2APIProtocol.ResponseObservationH\000\0220\n" + "\006action\030\013 \001(\0132\036.SC2APIProtocol.ResponseA" + "ctionH\000\022<\n\nobs_action\030\025 \001(\0132&.SC2APIProt" + "ocol.ResponseObserverActionH\000\022,\n\004step\030\014 " + "\001(\0132\034.SC2APIProtocol.ResponseStepH\000\022,\n\004d" + "ata\030\r \001(\0132\034.SC2APIProtocol.ResponseDataH" + "\000\022.\n\005query\030\016 \001(\0132\035.SC2APIProtocol.Respon" + "seQueryH\000\0229\n\013save_replay\030\017 \001(\0132\".SC2APIP" + "rotocol.ResponseSaveReplayH\000\0229\n\013replay_i" + "nfo\030\020 \001(\0132\".SC2APIProtocol.ResponseRepla" + "yInfoH\000\022?\n\016available_maps\030\021 \001(\0132%.SC2API" + "Protocol.ResponseAvailableMapsH\000\0223\n\010save" + "_map\030\022 \001(\0132\037.SC2APIProtocol.ResponseSave" + "MapH\000\0229\n\013map_command\030\026 \001(\0132\".SC2APIProto" + "col.ResponseMapCommandH\000\022,\n\004ping\030\023 \001(\0132\034" + ".SC2APIProtocol.ResponsePingH\000\022.\n\005debug\030" + "\024 \001(\0132\035.SC2APIProtocol.ResponseDebugH\000\022\n" + "\n\002id\030a \001(\r\022\r\n\005error\030b \003(\t\022&\n\006status\030c \001(" + "\0162\026.SC2APIProtocol.StatusB\n\n\010response\"\326\001" + "\n\021RequestCreateGame\022-\n\tlocal_map\030\001 \001(\0132\030" + ".SC2APIProtocol.LocalMapH\000\022\034\n\022battlenet_" + "map_name\030\002 \001(\tH\000\0221\n\014player_setup\030\003 \003(\0132\033" + ".SC2APIProtocol.PlayerSetup\022\023\n\013disable_f" + "og\030\004 \001(\010\022\023\n\013random_seed\030\005 \001(\r\022\020\n\010realtim" + "e\030\006 \001(\010B\005\n\003Map\".\n\010LocalMap\022\020\n\010map_path\030\001" + " \001(\t\022\020\n\010map_data\030\007 \001(\014\"\234\002\n\022ResponseCreat" + "eGame\0227\n\005error\030\001 \001(\0162(.SC2APIProtocol.Re" + "sponseCreateGame.Error\022\025\n\rerror_details\030" + "\002 \001(\t\"\265\001\n\005Error\022\016\n\nMissingMap\020\001\022\022\n\016Inval" + "idMapPath\020\002\022\022\n\016InvalidMapData\020\003\022\022\n\016Inval" + "idMapName\020\004\022\024\n\020InvalidMapHandle\020\005\022\026\n\022Mis" + "singPlayerSetup\020\006\022\026\n\022InvalidPlayerSetup\020" + "\007\022\032\n\026MultiplayerUnsupported\020\010\"\262\002\n\017Reques" + "tJoinGame\022$\n\004race\030\001 \001(\0162\024.SC2APIProtocol" + ".RaceH\000\022\034\n\022observed_player_id\030\002 \001(\rH\000\0221\n" + "\007options\030\003 \001(\0132 .SC2APIProtocol.Interfac" + "eOptions\022-\n\014server_ports\030\004 \001(\0132\027.SC2APIP" + "rotocol.PortSet\022-\n\014client_ports\030\005 \003(\0132\027." + "SC2APIProtocol.PortSet\022\023\n\013shared_port\030\006 " + "\001(\005\022\023\n\013player_name\030\007 \001(\t\022\017\n\007host_ip\030\010 \001(" + "\tB\017\n\rparticipation\"/\n\007PortSet\022\021\n\tgame_po" + "rt\030\001 \001(\005\022\021\n\tbase_port\030\002 \001(\005\"\202\003\n\020Response" + "JoinGame\022\021\n\tplayer_id\030\001 \001(\r\0225\n\005error\030\002 \001" + "(\0162&.SC2APIProtocol.ResponseJoinGame.Err" + "or\022\025\n\rerror_details\030\003 \001(\t\"\214\002\n\005Error\022\030\n\024M" + "issingParticipation\020\001\022\033\n\027InvalidObserved" + "PlayerId\020\002\022\022\n\016MissingOptions\020\003\022\020\n\014Missin" + "gPorts\020\004\022\014\n\010GameFull\020\005\022\017\n\013LaunchError\020\006\022" + "\026\n\022FeatureUnsupported\020\007\022\022\n\016NoSpaceForUse" + "r\020\010\022\023\n\017MapDoesNotExist\020\t\022\021\n\rCannotOpenMa" + "p\020\n\022\021\n\rChecksumError\020\013\022\020\n\014NetworkError\020\014" + "\022\016\n\nOtherError\020\r\"\024\n\022RequestRestartGame\"\231" + "\001\n\023ResponseRestartGame\0228\n\005error\030\001 \001(\0162)." + "SC2APIProtocol.ResponseRestartGame.Error" + "\022\025\n\rerror_details\030\002 \001(\t\022\027\n\017need_hard_res" + "et\030\003 \001(\010\"\030\n\005Error\022\017\n\013LaunchError\020\001\"\353\001\n\022R" + "equestStartReplay\022\025\n\013replay_path\030\001 \001(\tH\000" + "\022\025\n\013replay_data\030\005 \001(\014H\000\022\020\n\010map_data\030\006 \001(" + "\014\022\032\n\022observed_player_id\030\002 \001(\005\0221\n\007options" + "\030\003 \001(\0132 .SC2APIProtocol.InterfaceOptions" + "\022\023\n\013disable_fog\030\004 \001(\010\022\020\n\010realtime\030\007 \001(\010\022" + "\025\n\rrecord_replay\030\010 \001(\010B\010\n\006replay\"\207\002\n\023Res" + "ponseStartReplay\0228\n\005error\030\001 \001(\0162).SC2API" + "Protocol.ResponseStartReplay.Error\022\025\n\rer" + "ror_details\030\002 \001(\t\"\236\001\n\005Error\022\021\n\rMissingRe" + "play\020\001\022\025\n\021InvalidReplayPath\020\002\022\025\n\021Invalid" + "ReplayData\020\003\022\022\n\016InvalidMapData\020\004\022\033\n\027Inva" + "lidObservedPlayerId\020\005\022\022\n\016MissingOptions\020" + "\006\022\017\n\013LaunchError\020\007\"(\n\021RequestMapCommand\022" + "\023\n\013trigger_cmd\030\001 \001(\t\"\201\001\n\022ResponseMapComm" + "and\0227\n\005error\030\001 \001(\0162(.SC2APIProtocol.Resp" + "onseMapCommand.Error\022\025\n\rerror_details\030\002 " + "\001(\t\"\033\n\005Error\022\022\n\016NoTriggerError\020\001\"\022\n\020Requ" + "estLeaveGame\"\023\n\021ResponseLeaveGame\"\022\n\020Req" + "uestQuickSave\"\023\n\021ResponseQuickSave\"\022\n\020Re" + "questQuickLoad\"\023\n\021ResponseQuickLoad\"\r\n\013R" + "equestQuit\"\016\n\014ResponseQuit\"\021\n\017RequestGam" + "eInfo\"\340\001\n\020ResponseGameInfo\022\020\n\010map_name\030\001" + " \001(\t\022\021\n\tmod_names\030\006 \003(\t\022\026\n\016local_map_pat" + "h\030\002 \001(\t\022/\n\013player_info\030\003 \003(\0132\032.SC2APIPro" + "tocol.PlayerInfo\022+\n\tstart_raw\030\004 \001(\0132\030.SC" + "2APIProtocol.StartRaw\0221\n\007options\030\005 \001(\0132 " + ".SC2APIProtocol.InterfaceOptions\"<\n\022Requ" + "estObservation\022\023\n\013disable_fog\030\001 \001(\010\022\021\n\tg" + "ame_loop\030\002 \001(\r\"\205\002\n\023ResponseObservation\022\'" + "\n\007actions\030\001 \003(\0132\026.SC2APIProtocol.Action\022" + "2\n\raction_errors\030\002 \003(\0132\033.SC2APIProtocol." + "ActionError\0220\n\013observation\030\003 \001(\0132\033.SC2AP" + "IProtocol.Observation\0223\n\rplayer_result\030\004" + " \003(\0132\034.SC2APIProtocol.PlayerResult\022*\n\004ch" + "at\030\005 \003(\0132\034.SC2APIProtocol.ChatReceived\"2" + "\n\014ChatReceived\022\021\n\tplayer_id\030\001 \001(\r\022\017\n\007mes" + "sage\030\002 \001(\t\"8\n\rRequestAction\022\'\n\007actions\030\001" + " \003(\0132\026.SC2APIProtocol.Action\">\n\016Response" + "Action\022,\n\006result\030\001 \003(\0162\034.SC2APIProtocol." + "ActionResult\"H\n\025RequestObserverAction\022/\n" + "\007actions\030\001 \003(\0132\036.SC2APIProtocol.Observer" + "Action\"\030\n\026ResponseObserverAction\"\034\n\013Requ" + "estStep\022\r\n\005count\030\001 \001(\r\"\'\n\014ResponseStep\022\027" + "\n\017simulation_loop\030\001 \001(\r\"o\n\013RequestData\022\022" + "\n\nability_id\030\001 \001(\010\022\024\n\014unit_type_id\030\002 \001(\010" + "\022\022\n\nupgrade_id\030\003 \001(\010\022\017\n\007buff_id\030\004 \001(\010\022\021\n" + "\teffect_id\030\005 \001(\010\"\360\001\n\014ResponseData\022.\n\tabi" + "lities\030\001 \003(\0132\033.SC2APIProtocol.AbilityDat" + "a\022+\n\005units\030\002 \003(\0132\034.SC2APIProtocol.UnitTy" + "peData\022-\n\010upgrades\030\003 \003(\0132\033.SC2APIProtoco" + "l.UpgradeData\022\'\n\005buffs\030\004 \003(\0132\030.SC2APIPro" + "tocol.BuffData\022+\n\007effects\030\005 \003(\0132\032.SC2API" + "Protocol.EffectData\"\023\n\021RequestSaveReplay" + "\"\"\n\022ResponseSaveReplay\022\014\n\004data\030\001 \001(\014\"b\n\021" + "RequestReplayInfo\022\025\n\013replay_path\030\001 \001(\tH\000" + "\022\025\n\013replay_data\030\002 \001(\014H\000\022\025\n\rdownload_data" + "\030\003 \001(\010B\010\n\006replay\"\237\001\n\017PlayerInfoExtra\022/\n\013" + "player_info\030\001 \001(\0132\032.SC2APIProtocol.Playe" + "rInfo\0223\n\rplayer_result\030\002 \001(\0132\034.SC2APIPro" + "tocol.PlayerResult\022\022\n\nplayer_mmr\030\003 \001(\005\022\022" + "\n\nplayer_apm\030\004 \001(\005\"\303\003\n\022ResponseReplayInf" + "o\022\020\n\010map_name\030\001 \001(\t\022\026\n\016local_map_path\030\002 " + "\001(\t\0224\n\013player_info\030\003 \003(\0132\037.SC2APIProtoco" + "l.PlayerInfoExtra\022\033\n\023game_duration_loops" + "\030\004 \001(\r\022\035\n\025game_duration_seconds\030\005 \001(\002\022\024\n" + "\014game_version\030\006 \001(\t\022\024\n\014data_version\030\013 \001(" + "\t\022\022\n\ndata_build\030\007 \001(\r\022\022\n\nbase_build\030\010 \001(" + "\r\0227\n\005error\030\t \001(\0162(.SC2APIProtocol.Respon" + "seReplayInfo.Error\022\025\n\rerror_details\030\n \001(" + "\t\"m\n\005Error\022\021\n\rMissingReplay\020\001\022\025\n\021Invalid" + "ReplayPath\020\002\022\025\n\021InvalidReplayData\020\003\022\020\n\014P" + "arsingError\020\004\022\021\n\rDownloadError\020\005\"\026\n\024Requ" + "estAvailableMaps\"M\n\025ResponseAvailableMap" + "s\022\027\n\017local_map_paths\030\001 \003(\t\022\033\n\023battlenet_" + "map_names\030\002 \003(\t\"4\n\016RequestSaveMap\022\020\n\010map" + "_path\030\001 \001(\t\022\020\n\010map_data\030\002 \001(\014\"d\n\017Respons" + "eSaveMap\0224\n\005error\030\001 \001(\0162%.SC2APIProtocol" + ".ResponseSaveMap.Error\"\033\n\005Error\022\022\n\016Inval" + "idMapData\020\001\"\r\n\013RequestPing\"b\n\014ResponsePi" + "ng\022\024\n\014game_version\030\001 \001(\t\022\024\n\014data_version" + "\030\002 \001(\t\022\022\n\ndata_build\030\003 \001(\r\022\022\n\nbase_build" + "\030\004 \001(\r\";\n\014RequestDebug\022+\n\005debug\030\001 \003(\0132\034." + "SC2APIProtocol.DebugCommand\"\017\n\rResponseD" + "ebug\"\313\001\n\013PlayerSetup\022(\n\004type\030\001 \001(\0162\032.SC2" + "APIProtocol.PlayerType\022\"\n\004race\030\002 \001(\0162\024.S" + "C2APIProtocol.Race\022.\n\ndifficulty\030\003 \001(\0162\032" + ".SC2APIProtocol.Difficulty\022\023\n\013player_nam" + "e\030\004 \001(\t\022)\n\010ai_build\030\005 \001(\0162\027.SC2APIProtoc" + "ol.AIBuild\"\303\001\n\022SpatialCameraSetup\022+\n\nres" + "olution\030\002 \001(\0132\027.SC2APIProtocol.Size2DI\0223" + "\n\022minimap_resolution\030\003 \001(\0132\027.SC2APIProto" + "col.Size2DI\022\r\n\005width\030\001 \001(\002\022\035\n\025crop_to_pl" + "ayable_area\030\004 \001(\010\022\035\n\025allow_cheating_laye" + "rs\030\005 \001(\010\"\257\002\n\020InterfaceOptions\022\013\n\003raw\030\001 \001" + "(\010\022\r\n\005score\030\002 \001(\010\0229\n\rfeature_layer\030\003 \001(\013" + "2\".SC2APIProtocol.SpatialCameraSetup\0222\n\006" + "render\030\004 \001(\0132\".SC2APIProtocol.SpatialCam" + "eraSetup\022\024\n\014show_cloaked\030\005 \001(\010\022\035\n\025show_b" + "urrowed_shadows\030\t \001(\010\022\031\n\021show_placeholde" + "rs\030\010 \001(\010\022\035\n\025raw_affects_selection\030\006 \001(\010\022" + "!\n\031raw_crop_to_playable_area\030\007 \001(\010\"\222\002\n\nP" + "layerInfo\022\021\n\tplayer_id\030\001 \001(\r\022(\n\004type\030\002 \001" + "(\0162\032.SC2APIProtocol.PlayerType\022,\n\016race_r" + "equested\030\003 \001(\0162\024.SC2APIProtocol.Race\022)\n\013" + "race_actual\030\004 \001(\0162\024.SC2APIProtocol.Race\022" + ".\n\ndifficulty\030\005 \001(\0162\032.SC2APIProtocol.Dif" + "ficulty\022)\n\010ai_build\030\007 \001(\0162\027.SC2APIProtoc" + "ol.AIBuild\022\023\n\013player_name\030\006 \001(\t\"\357\001\n\014Play" + "erCommon\022\021\n\tplayer_id\030\001 \001(\r\022\020\n\010minerals\030" + "\002 \001(\r\022\017\n\007vespene\030\003 \001(\r\022\020\n\010food_cap\030\004 \001(\r" + "\022\021\n\tfood_used\030\005 \001(\r\022\021\n\tfood_army\030\006 \001(\r\022\024" + "\n\014food_workers\030\007 \001(\r\022\031\n\021idle_worker_coun" + "t\030\010 \001(\r\022\022\n\narmy_count\030\t \001(\r\022\027\n\017warp_gate" + "_count\030\n \001(\r\022\023\n\013larva_count\030\013 \001(\r\"\266\003\n\013Ob" + "servation\022\021\n\tgame_loop\030\t \001(\r\0223\n\rplayer_c" + "ommon\030\001 \001(\0132\034.SC2APIProtocol.PlayerCommo" + "n\022%\n\006alerts\030\n \003(\0162\025.SC2APIProtocol.Alert" + "\0223\n\tabilities\030\003 \003(\0132 .SC2APIProtocol.Ava" + "ilableAbility\022$\n\005score\030\004 \001(\0132\025.SC2APIPro" + "tocol.Score\0220\n\010raw_data\030\005 \001(\0132\036.SC2APIPr" + "otocol.ObservationRaw\022C\n\022feature_layer_d" + "ata\030\006 \001(\0132\'.SC2APIProtocol.ObservationFe" + "atureLayer\0226\n\013render_data\030\007 \001(\0132!.SC2API" + "Protocol.ObservationRender\022.\n\007ui_data\030\010 " + "\001(\0132\035.SC2APIProtocol.ObservationUI\"\233\002\n\006A" + "ction\022-\n\naction_raw\030\001 \001(\0132\031.SC2APIProtoc" + "ol.ActionRaw\022;\n\024action_feature_layer\030\002 \001" + "(\0132\035.SC2APIProtocol.ActionSpatial\0224\n\ract" + "ion_render\030\003 \001(\0132\035.SC2APIProtocol.Action" + "Spatial\022+\n\taction_ui\030\004 \001(\0132\030.SC2APIProto" + "col.ActionUI\022/\n\013action_chat\030\006 \001(\0132\032.SC2A" + "PIProtocol.ActionChat\022\021\n\tgame_loop\030\007 \001(\r" + "\"v\n\nActionChat\0223\n\007channel\030\001 \001(\0162\".SC2API" + "Protocol.ActionChat.Channel\022\017\n\007message\030\002" + " \001(\t\"\"\n\007Channel\022\r\n\tBroadcast\020\001\022\010\n\004Team\020\002" + "\"a\n\013ActionError\022\020\n\010unit_tag\030\001 \001(\004\022\022\n\nabi" + "lity_id\030\002 \001(\004\022,\n\006result\030\003 \001(\0162\034.SC2APIPr" + "otocol.ActionResult\"\314\002\n\016ObserverAction\022M" + "\n\022player_perspective\030\001 \001(\0132/.SC2APIProto" + "col.ActionObserverPlayerPerspectiveH\000\022?\n" + "\013camera_move\030\002 \001(\0132(.SC2APIProtocol.Acti" + "onObserverCameraMoveH\000\022P\n\024camera_follow_" + "player\030\003 \001(\01320.SC2APIProtocol.ActionObse" + "rverCameraFollowPlayerH\000\022N\n\023camera_follo" + "w_units\030\004 \001(\0132/.SC2APIProtocol.ActionObs" + "erverCameraFollowUnitsH\000B\010\n\006action\"4\n\037Ac" + "tionObserverPlayerPerspective\022\021\n\tplayer_" + "id\030\001 \001(\r\"X\n\030ActionObserverCameraMove\022*\n\t" + "world_pos\030\001 \001(\0132\027.SC2APIProtocol.Point2D" + "\022\020\n\010distance\030\002 \001(\002\"5\n ActionObserverCame" + "raFollowPlayer\022\021\n\tplayer_id\030\001 \001(\r\"4\n\037Act" + "ionObserverCameraFollowUnits\022\021\n\tunit_tag" + "s\030\001 \003(\004\"I\n\014PlayerResult\022\021\n\tplayer_id\030\001 \001" + "(\r\022&\n\006result\030\002 \001(\0162\026.SC2APIProtocol.Resu" + "lt*c\n\006Status\022\014\n\010launched\020\001\022\r\n\tinit_game\020" + "\002\022\013\n\007in_game\020\003\022\r\n\tin_replay\020\004\022\t\n\005ended\020\005" + "\022\010\n\004quit\020\006\022\013\n\007unknown\020c*\226\001\n\nDifficulty\022\014" + "\n\010VeryEasy\020\001\022\010\n\004Easy\020\002\022\n\n\006Medium\020\003\022\016\n\nMe" + "diumHard\020\004\022\010\n\004Hard\020\005\022\n\n\006Harder\020\006\022\014\n\010Very" + "Hard\020\007\022\017\n\013CheatVision\020\010\022\016\n\nCheatMoney\020\t\022" + "\017\n\013CheatInsane\020\n*9\n\nPlayerType\022\017\n\013Partic" + "ipant\020\001\022\014\n\010Computer\020\002\022\014\n\010Observer\020\003*O\n\007A" + "IBuild\022\017\n\013RandomBuild\020\001\022\010\n\004Rush\020\002\022\n\n\006Tim" + "ing\020\003\022\t\n\005Power\020\004\022\t\n\005Macro\020\005\022\007\n\003Air\020\006*\333\003\n" + "\005Alert\022\016\n\nAlertError\020\003\022\021\n\rAddOnComplete\020" + "\004\022\024\n\020BuildingComplete\020\005\022\027\n\023BuildingUnder" + "Attack\020\006\022\020\n\014LarvaHatched\020\007\022\021\n\rMergeCompl" + "ete\020\010\022\025\n\021MineralsExhausted\020\t\022\021\n\rMorphCom" + "plete\020\n\022\026\n\022MothershipComplete\020\013\022\017\n\013MULEE" + "xpired\020\014\022\031\n\025NuclearLaunchDetected\020\001\022\020\n\014N" + "ukeComplete\020\r\022\025\n\021NydusWormDetected\020\002\022\024\n\020" + "ResearchComplete\020\016\022\016\n\nTrainError\020\017\022\025\n\021Tr" + "ainUnitComplete\020\020\022\027\n\023TrainWorkerComplete" + "\020\021\022\032\n\026TransformationComplete\020\022\022\023\n\017UnitUn" + "derAttack\020\023\022\023\n\017UpgradeComplete\020\024\022\024\n\020Vesp" + "eneExhausted\020\025\022\022\n\016WarpInComplete\020\026*9\n\006Re" + "sult\022\013\n\007Victory\020\001\022\n\n\006Defeat\020\002\022\007\n\003Tie\020\003\022\r" + "\n\tUndecided\020\004" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { SC2APIProtocol.Common.getDescriptor(), SC2APIProtocol.Data.getDescriptor(), SC2APIProtocol.Debug.getDescriptor(), SC2APIProtocol.Error.getDescriptor(), SC2APIProtocol.Query.getDescriptor(), SC2APIProtocol.Raw.getDescriptor(), SC2APIProtocol.ScoreOuterClass.getDescriptor(), SC2APIProtocol.Spatial.getDescriptor(), SC2APIProtocol.Ui.getDescriptor(), }); internal_static_SC2APIProtocol_Request_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_SC2APIProtocol_Request_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_SC2APIProtocol_Request_descriptor, new java.lang.String[] { "CreateGame", "JoinGame", "RestartGame", "StartReplay", "LeaveGame", "QuickSave", "QuickLoad", "Quit", "GameInfo", "Observation", "Action", "ObsAction", "Step", "Data", "Query", "SaveReplay", "MapCommand", "ReplayInfo", "AvailableMaps", "SaveMap", "Ping", "Debug", "Id", "Request", }); internal_static_SC2APIProtocol_Response_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_SC2APIProtocol_Response_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_SC2APIProtocol_Response_descriptor, new java.lang.String[] { "CreateGame", "JoinGame", "RestartGame", "StartReplay", "LeaveGame", "QuickSave", "QuickLoad", "Quit", "GameInfo", "Observation", "Action", "ObsAction", "Step", "Data", "Query", "SaveReplay", "ReplayInfo", "AvailableMaps", "SaveMap", "MapCommand", "Ping", "Debug", "Id", "Error", "Status", "Response", }); internal_static_SC2APIProtocol_RequestCreateGame_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_SC2APIProtocol_RequestCreateGame_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_SC2APIProtocol_RequestCreateGame_descriptor, new java.lang.String[] { "LocalMap", "BattlenetMapName", "PlayerSetup", "DisableFog", "RandomSeed", "Realtime", "Map", }); internal_static_SC2APIProtocol_LocalMap_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_SC2APIProtocol_LocalMap_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_SC2APIProtocol_LocalMap_descriptor, new java.lang.String[] { "MapPath", "MapData", }); internal_static_SC2APIProtocol_ResponseCreateGame_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_SC2APIProtocol_ResponseCreateGame_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_SC2APIProtocol_ResponseCreateGame_descriptor, new java.lang.String[] { "Error", "ErrorDetails", }); internal_static_SC2APIProtocol_RequestJoinGame_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_SC2APIProtocol_RequestJoinGame_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_SC2APIProtocol_RequestJoinGame_descriptor, new java.lang.String[] { "Race", "ObservedPlayerId", "Options", "ServerPorts", "ClientPorts", "SharedPort", "PlayerName", "HostIp", "Participation", }); internal_static_SC2APIProtocol_PortSet_descriptor = getDescriptor().getMessageTypes().get(6); internal_static_SC2APIProtocol_PortSet_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_SC2APIProtocol_PortSet_descriptor, new java.lang.String[] { "GamePort", "BasePort", }); internal_static_SC2APIProtocol_ResponseJoinGame_descriptor = getDescriptor().getMessageTypes().get(7); internal_static_SC2APIProtocol_ResponseJoinGame_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_SC2APIProtocol_ResponseJoinGame_descriptor, new java.lang.String[] { "PlayerId", "Error", "ErrorDetails", }); internal_static_SC2APIProtocol_RequestRestartGame_descriptor = getDescriptor().getMessageTypes().get(8); internal_static_SC2APIProtocol_RequestRestartGame_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_SC2APIProtocol_RequestRestartGame_descriptor, new java.lang.String[] { }); internal_static_SC2APIProtocol_ResponseRestartGame_descriptor = getDescriptor().getMessageTypes().get(9); internal_static_SC2APIProtocol_ResponseRestartGame_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_SC2APIProtocol_ResponseRestartGame_descriptor, new java.lang.String[] { "Error", "ErrorDetails", "NeedHardReset", }); internal_static_SC2APIProtocol_RequestStartReplay_descriptor = getDescriptor().getMessageTypes().get(10); internal_static_SC2APIProtocol_RequestStartReplay_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_SC2APIProtocol_RequestStartReplay_descriptor, new java.lang.String[] { "ReplayPath", "ReplayData", "MapData", "ObservedPlayerId", "Options", "DisableFog", "Realtime", "RecordReplay", "Replay", }); internal_static_SC2APIProtocol_ResponseStartReplay_descriptor = getDescriptor().getMessageTypes().get(11); internal_static_SC2APIProtocol_ResponseStartReplay_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_SC2APIProtocol_ResponseStartReplay_descriptor, new java.lang.String[] { "Error", "ErrorDetails", }); internal_static_SC2APIProtocol_RequestMapCommand_descriptor = getDescriptor().getMessageTypes().get(12); internal_static_SC2APIProtocol_RequestMapCommand_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_SC2APIProtocol_RequestMapCommand_descriptor, new java.lang.String[] { "TriggerCmd", }); internal_static_SC2APIProtocol_ResponseMapCommand_descriptor = getDescriptor().getMessageTypes().get(13); internal_static_SC2APIProtocol_ResponseMapCommand_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_SC2APIProtocol_ResponseMapCommand_descriptor, new java.lang.String[] { "Error", "ErrorDetails", }); internal_static_SC2APIProtocol_RequestLeaveGame_descriptor = getDescriptor().getMessageTypes().get(14); internal_static_SC2APIProtocol_RequestLeaveGame_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_SC2APIProtocol_RequestLeaveGame_descriptor, new java.lang.String[] { }); internal_static_SC2APIProtocol_ResponseLeaveGame_descriptor = getDescriptor().getMessageTypes().get(15); internal_static_SC2APIProtocol_ResponseLeaveGame_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_SC2APIProtocol_ResponseLeaveGame_descriptor, new java.lang.String[] { }); internal_static_SC2APIProtocol_RequestQuickSave_descriptor = getDescriptor().getMessageTypes().get(16); internal_static_SC2APIProtocol_RequestQuickSave_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_SC2APIProtocol_RequestQuickSave_descriptor, new java.lang.String[] { }); internal_static_SC2APIProtocol_ResponseQuickSave_descriptor = getDescriptor().getMessageTypes().get(17); internal_static_SC2APIProtocol_ResponseQuickSave_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_SC2APIProtocol_ResponseQuickSave_descriptor, new java.lang.String[] { }); internal_static_SC2APIProtocol_RequestQuickLoad_descriptor = getDescriptor().getMessageTypes().get(18); internal_static_SC2APIProtocol_RequestQuickLoad_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_SC2APIProtocol_RequestQuickLoad_descriptor, new java.lang.String[] { }); internal_static_SC2APIProtocol_ResponseQuickLoad_descriptor = getDescriptor().getMessageTypes().get(19); internal_static_SC2APIProtocol_ResponseQuickLoad_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_SC2APIProtocol_ResponseQuickLoad_descriptor, new java.lang.String[] { }); internal_static_SC2APIProtocol_RequestQuit_descriptor = getDescriptor().getMessageTypes().get(20); internal_static_SC2APIProtocol_RequestQuit_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_SC2APIProtocol_RequestQuit_descriptor, new java.lang.String[] { }); internal_static_SC2APIProtocol_ResponseQuit_descriptor = getDescriptor().getMessageTypes().get(21); internal_static_SC2APIProtocol_ResponseQuit_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_SC2APIProtocol_ResponseQuit_descriptor, new java.lang.String[] { }); internal_static_SC2APIProtocol_RequestGameInfo_descriptor = getDescriptor().getMessageTypes().get(22); internal_static_SC2APIProtocol_RequestGameInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_SC2APIProtocol_RequestGameInfo_descriptor, new java.lang.String[] { }); internal_static_SC2APIProtocol_ResponseGameInfo_descriptor = getDescriptor().getMessageTypes().get(23); internal_static_SC2APIProtocol_ResponseGameInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_SC2APIProtocol_ResponseGameInfo_descriptor, new java.lang.String[] { "MapName", "ModNames", "LocalMapPath", "PlayerInfo", "StartRaw", "Options", }); internal_static_SC2APIProtocol_RequestObservation_descriptor = getDescriptor().getMessageTypes().get(24); internal_static_SC2APIProtocol_RequestObservation_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_SC2APIProtocol_RequestObservation_descriptor, new java.lang.String[] { "DisableFog", "GameLoop", }); internal_static_SC2APIProtocol_ResponseObservation_descriptor = getDescriptor().getMessageTypes().get(25); internal_static_SC2APIProtocol_ResponseObservation_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_SC2APIProtocol_ResponseObservation_descriptor, new java.lang.String[] { "Actions", "ActionErrors", "Observation", "PlayerResult", "Chat", }); internal_static_SC2APIProtocol_ChatReceived_descriptor = getDescriptor().getMessageTypes().get(26); internal_static_SC2APIProtocol_ChatReceived_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_SC2APIProtocol_ChatReceived_descriptor, new java.lang.String[] { "PlayerId", "Message", }); internal_static_SC2APIProtocol_RequestAction_descriptor = getDescriptor().getMessageTypes().get(27); internal_static_SC2APIProtocol_RequestAction_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_SC2APIProtocol_RequestAction_descriptor, new java.lang.String[] { "Actions", }); internal_static_SC2APIProtocol_ResponseAction_descriptor = getDescriptor().getMessageTypes().get(28); internal_static_SC2APIProtocol_ResponseAction_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_SC2APIProtocol_ResponseAction_descriptor, new java.lang.String[] { "Result", }); internal_static_SC2APIProtocol_RequestObserverAction_descriptor = getDescriptor().getMessageTypes().get(29); internal_static_SC2APIProtocol_RequestObserverAction_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_SC2APIProtocol_RequestObserverAction_descriptor, new java.lang.String[] { "Actions", }); internal_static_SC2APIProtocol_ResponseObserverAction_descriptor = getDescriptor().getMessageTypes().get(30); internal_static_SC2APIProtocol_ResponseObserverAction_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_SC2APIProtocol_ResponseObserverAction_descriptor, new java.lang.String[] { }); internal_static_SC2APIProtocol_RequestStep_descriptor = getDescriptor().getMessageTypes().get(31); internal_static_SC2APIProtocol_RequestStep_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_SC2APIProtocol_RequestStep_descriptor, new java.lang.String[] { "Count", }); internal_static_SC2APIProtocol_ResponseStep_descriptor = getDescriptor().getMessageTypes().get(32); internal_static_SC2APIProtocol_ResponseStep_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_SC2APIProtocol_ResponseStep_descriptor, new java.lang.String[] { "SimulationLoop", }); internal_static_SC2APIProtocol_RequestData_descriptor = getDescriptor().getMessageTypes().get(33); internal_static_SC2APIProtocol_RequestData_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_SC2APIProtocol_RequestData_descriptor, new java.lang.String[] { "AbilityId", "UnitTypeId", "UpgradeId", "BuffId", "EffectId", }); internal_static_SC2APIProtocol_ResponseData_descriptor = getDescriptor().getMessageTypes().get(34); internal_static_SC2APIProtocol_ResponseData_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_SC2APIProtocol_ResponseData_descriptor, new java.lang.String[] { "Abilities", "Units", "Upgrades", "Buffs", "Effects", }); internal_static_SC2APIProtocol_RequestSaveReplay_descriptor = getDescriptor().getMessageTypes().get(35); internal_static_SC2APIProtocol_RequestSaveReplay_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_SC2APIProtocol_RequestSaveReplay_descriptor, new java.lang.String[] { }); internal_static_SC2APIProtocol_ResponseSaveReplay_descriptor = getDescriptor().getMessageTypes().get(36); internal_static_SC2APIProtocol_ResponseSaveReplay_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_SC2APIProtocol_ResponseSaveReplay_descriptor, new java.lang.String[] { "Data", }); internal_static_SC2APIProtocol_RequestReplayInfo_descriptor = getDescriptor().getMessageTypes().get(37); internal_static_SC2APIProtocol_RequestReplayInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_SC2APIProtocol_RequestReplayInfo_descriptor, new java.lang.String[] { "ReplayPath", "ReplayData", "DownloadData", "Replay", }); internal_static_SC2APIProtocol_PlayerInfoExtra_descriptor = getDescriptor().getMessageTypes().get(38); internal_static_SC2APIProtocol_PlayerInfoExtra_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_SC2APIProtocol_PlayerInfoExtra_descriptor, new java.lang.String[] { "PlayerInfo", "PlayerResult", "PlayerMmr", "PlayerApm", }); internal_static_SC2APIProtocol_ResponseReplayInfo_descriptor = getDescriptor().getMessageTypes().get(39); internal_static_SC2APIProtocol_ResponseReplayInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_SC2APIProtocol_ResponseReplayInfo_descriptor, new java.lang.String[] { "MapName", "LocalMapPath", "PlayerInfo", "GameDurationLoops", "GameDurationSeconds", "GameVersion", "DataVersion", "DataBuild", "BaseBuild", "Error", "ErrorDetails", }); internal_static_SC2APIProtocol_RequestAvailableMaps_descriptor = getDescriptor().getMessageTypes().get(40); internal_static_SC2APIProtocol_RequestAvailableMaps_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_SC2APIProtocol_RequestAvailableMaps_descriptor, new java.lang.String[] { }); internal_static_SC2APIProtocol_ResponseAvailableMaps_descriptor = getDescriptor().getMessageTypes().get(41); internal_static_SC2APIProtocol_ResponseAvailableMaps_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_SC2APIProtocol_ResponseAvailableMaps_descriptor, new java.lang.String[] { "LocalMapPaths", "BattlenetMapNames", }); internal_static_SC2APIProtocol_RequestSaveMap_descriptor = getDescriptor().getMessageTypes().get(42); internal_static_SC2APIProtocol_RequestSaveMap_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_SC2APIProtocol_RequestSaveMap_descriptor, new java.lang.String[] { "MapPath", "MapData", }); internal_static_SC2APIProtocol_ResponseSaveMap_descriptor = getDescriptor().getMessageTypes().get(43); internal_static_SC2APIProtocol_ResponseSaveMap_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_SC2APIProtocol_ResponseSaveMap_descriptor, new java.lang.String[] { "Error", }); internal_static_SC2APIProtocol_RequestPing_descriptor = getDescriptor().getMessageTypes().get(44); internal_static_SC2APIProtocol_RequestPing_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_SC2APIProtocol_RequestPing_descriptor, new java.lang.String[] { }); internal_static_SC2APIProtocol_ResponsePing_descriptor = getDescriptor().getMessageTypes().get(45); internal_static_SC2APIProtocol_ResponsePing_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_SC2APIProtocol_ResponsePing_descriptor, new java.lang.String[] { "GameVersion", "DataVersion", "DataBuild", "BaseBuild", }); internal_static_SC2APIProtocol_RequestDebug_descriptor = getDescriptor().getMessageTypes().get(46); internal_static_SC2APIProtocol_RequestDebug_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_SC2APIProtocol_RequestDebug_descriptor, new java.lang.String[] { "Debug", }); internal_static_SC2APIProtocol_ResponseDebug_descriptor = getDescriptor().getMessageTypes().get(47); internal_static_SC2APIProtocol_ResponseDebug_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_SC2APIProtocol_ResponseDebug_descriptor, new java.lang.String[] { }); internal_static_SC2APIProtocol_PlayerSetup_descriptor = getDescriptor().getMessageTypes().get(48); internal_static_SC2APIProtocol_PlayerSetup_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_SC2APIProtocol_PlayerSetup_descriptor, new java.lang.String[] { "Type", "Race", "Difficulty", "PlayerName", "AiBuild", }); internal_static_SC2APIProtocol_SpatialCameraSetup_descriptor = getDescriptor().getMessageTypes().get(49); internal_static_SC2APIProtocol_SpatialCameraSetup_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_SC2APIProtocol_SpatialCameraSetup_descriptor, new java.lang.String[] { "Resolution", "MinimapResolution", "Width", "CropToPlayableArea", "AllowCheatingLayers", }); internal_static_SC2APIProtocol_InterfaceOptions_descriptor = getDescriptor().getMessageTypes().get(50); internal_static_SC2APIProtocol_InterfaceOptions_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_SC2APIProtocol_InterfaceOptions_descriptor, new java.lang.String[] { "Raw", "Score", "FeatureLayer", "Render", "ShowCloaked", "ShowBurrowedShadows", "ShowPlaceholders", "RawAffectsSelection", "RawCropToPlayableArea", }); internal_static_SC2APIProtocol_PlayerInfo_descriptor = getDescriptor().getMessageTypes().get(51); internal_static_SC2APIProtocol_PlayerInfo_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_SC2APIProtocol_PlayerInfo_descriptor, new java.lang.String[] { "PlayerId", "Type", "RaceRequested", "RaceActual", "Difficulty", "AiBuild", "PlayerName", }); internal_static_SC2APIProtocol_PlayerCommon_descriptor = getDescriptor().getMessageTypes().get(52); internal_static_SC2APIProtocol_PlayerCommon_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_SC2APIProtocol_PlayerCommon_descriptor, new java.lang.String[] { "PlayerId", "Minerals", "Vespene", "FoodCap", "FoodUsed", "FoodArmy", "FoodWorkers", "IdleWorkerCount", "ArmyCount", "WarpGateCount", "LarvaCount", }); internal_static_SC2APIProtocol_Observation_descriptor = getDescriptor().getMessageTypes().get(53); internal_static_SC2APIProtocol_Observation_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_SC2APIProtocol_Observation_descriptor, new java.lang.String[] { "GameLoop", "PlayerCommon", "Alerts", "Abilities", "Score", "RawData", "FeatureLayerData", "RenderData", "UiData", }); internal_static_SC2APIProtocol_Action_descriptor = getDescriptor().getMessageTypes().get(54); internal_static_SC2APIProtocol_Action_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_SC2APIProtocol_Action_descriptor, new java.lang.String[] { "ActionRaw", "ActionFeatureLayer", "ActionRender", "ActionUi", "ActionChat", "GameLoop", }); internal_static_SC2APIProtocol_ActionChat_descriptor = getDescriptor().getMessageTypes().get(55); internal_static_SC2APIProtocol_ActionChat_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_SC2APIProtocol_ActionChat_descriptor, new java.lang.String[] { "Channel", "Message", }); internal_static_SC2APIProtocol_ActionError_descriptor = getDescriptor().getMessageTypes().get(56); internal_static_SC2APIProtocol_ActionError_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_SC2APIProtocol_ActionError_descriptor, new java.lang.String[] { "UnitTag", "AbilityId", "Result", }); internal_static_SC2APIProtocol_ObserverAction_descriptor = getDescriptor().getMessageTypes().get(57); internal_static_SC2APIProtocol_ObserverAction_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_SC2APIProtocol_ObserverAction_descriptor, new java.lang.String[] { "PlayerPerspective", "CameraMove", "CameraFollowPlayer", "CameraFollowUnits", "Action", }); internal_static_SC2APIProtocol_ActionObserverPlayerPerspective_descriptor = getDescriptor().getMessageTypes().get(58); internal_static_SC2APIProtocol_ActionObserverPlayerPerspective_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_SC2APIProtocol_ActionObserverPlayerPerspective_descriptor, new java.lang.String[] { "PlayerId", }); internal_static_SC2APIProtocol_ActionObserverCameraMove_descriptor = getDescriptor().getMessageTypes().get(59); internal_static_SC2APIProtocol_ActionObserverCameraMove_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_SC2APIProtocol_ActionObserverCameraMove_descriptor, new java.lang.String[] { "WorldPos", "Distance", }); internal_static_SC2APIProtocol_ActionObserverCameraFollowPlayer_descriptor = getDescriptor().getMessageTypes().get(60); internal_static_SC2APIProtocol_ActionObserverCameraFollowPlayer_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_SC2APIProtocol_ActionObserverCameraFollowPlayer_descriptor, new java.lang.String[] { "PlayerId", }); internal_static_SC2APIProtocol_ActionObserverCameraFollowUnits_descriptor = getDescriptor().getMessageTypes().get(61); internal_static_SC2APIProtocol_ActionObserverCameraFollowUnits_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_SC2APIProtocol_ActionObserverCameraFollowUnits_descriptor, new java.lang.String[] { "UnitTags", }); internal_static_SC2APIProtocol_PlayerResult_descriptor = getDescriptor().getMessageTypes().get(62); internal_static_SC2APIProtocol_PlayerResult_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_SC2APIProtocol_PlayerResult_descriptor, new java.lang.String[] { "PlayerId", "Result", }); SC2APIProtocol.Common.getDescriptor(); SC2APIProtocol.Data.getDescriptor(); SC2APIProtocol.Debug.getDescriptor(); SC2APIProtocol.Error.getDescriptor(); SC2APIProtocol.Query.getDescriptor(); SC2APIProtocol.Raw.getDescriptor(); SC2APIProtocol.ScoreOuterClass.getDescriptor(); SC2APIProtocol.Spatial.getDescriptor(); SC2APIProtocol.Ui.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy