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

SC2APIProtocol.Data Maven / Gradle / Ivy

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

package SC2APIProtocol;

public final class Data {
  private Data() {}
  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.Attribute}
   */
  public enum Attribute
      implements com.google.protobuf.ProtocolMessageEnum {
    /**
     * Light = 1;
     */
    Light(1),
    /**
     * Armored = 2;
     */
    Armored(2),
    /**
     * Biological = 3;
     */
    Biological(3),
    /**
     * Mechanical = 4;
     */
    Mechanical(4),
    /**
     * Robotic = 5;
     */
    Robotic(5),
    /**
     * Psionic = 6;
     */
    Psionic(6),
    /**
     * Massive = 7;
     */
    Massive(7),
    /**
     * Structure = 8;
     */
    Structure(8),
    /**
     * Hover = 9;
     */
    Hover(9),
    /**
     * Heroic = 10;
     */
    Heroic(10),
    /**
     * Summoned = 11;
     */
    Summoned(11),
    ;

    /**
     * Light = 1;
     */
    public static final int Light_VALUE = 1;
    /**
     * Armored = 2;
     */
    public static final int Armored_VALUE = 2;
    /**
     * Biological = 3;
     */
    public static final int Biological_VALUE = 3;
    /**
     * Mechanical = 4;
     */
    public static final int Mechanical_VALUE = 4;
    /**
     * Robotic = 5;
     */
    public static final int Robotic_VALUE = 5;
    /**
     * Psionic = 6;
     */
    public static final int Psionic_VALUE = 6;
    /**
     * Massive = 7;
     */
    public static final int Massive_VALUE = 7;
    /**
     * Structure = 8;
     */
    public static final int Structure_VALUE = 8;
    /**
     * Hover = 9;
     */
    public static final int Hover_VALUE = 9;
    /**
     * Heroic = 10;
     */
    public static final int Heroic_VALUE = 10;
    /**
     * Summoned = 11;
     */
    public static final int Summoned_VALUE = 11;


    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 Attribute 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 Attribute forNumber(int value) {
      switch (value) {
        case 1: return Light;
        case 2: return Armored;
        case 3: return Biological;
        case 4: return Mechanical;
        case 5: return Robotic;
        case 6: return Psionic;
        case 7: return Massive;
        case 8: return Structure;
        case 9: return Hover;
        case 10: return Heroic;
        case 11: return Summoned;
        default: return null;
      }
    }

    public static com.google.protobuf.Internal.EnumLiteMap
        internalGetValueMap() {
      return internalValueMap;
    }
    private static final com.google.protobuf.Internal.EnumLiteMap<
        Attribute> internalValueMap =
          new com.google.protobuf.Internal.EnumLiteMap() {
            public Attribute findValueByNumber(int number) {
              return Attribute.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.Data.getDescriptor().getEnumTypes().get(0);
    }

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

    public static Attribute 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 Attribute(int value) {
      this.value = value;
    }

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

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

    /**
     * 
     * Stable ID.
     * 
* * optional uint32 ability_id = 1; * @return Whether the abilityId field is set. */ boolean hasAbilityId(); /** *
     * Stable ID.
     * 
* * optional uint32 ability_id = 1; * @return The abilityId. */ int getAbilityId(); /** *
     * Catalog name of the ability.
     * 
* * optional string link_name = 2; * @return Whether the linkName field is set. */ boolean hasLinkName(); /** *
     * Catalog name of the ability.
     * 
* * optional string link_name = 2; * @return The linkName. */ java.lang.String getLinkName(); /** *
     * Catalog name of the ability.
     * 
* * optional string link_name = 2; * @return The bytes for linkName. */ com.google.protobuf.ByteString getLinkNameBytes(); /** *
     * Catalog index of the ability.
     * 
* * optional uint32 link_index = 3; * @return Whether the linkIndex field is set. */ boolean hasLinkIndex(); /** *
     * Catalog index of the ability.
     * 
* * optional uint32 link_index = 3; * @return The linkIndex. */ int getLinkIndex(); /** *
     * Name used for the command card. May not always be set.
     * 
* * optional string button_name = 4; * @return Whether the buttonName field is set. */ boolean hasButtonName(); /** *
     * Name used for the command card. May not always be set.
     * 
* * optional string button_name = 4; * @return The buttonName. */ java.lang.String getButtonName(); /** *
     * Name used for the command card. May not always be set.
     * 
* * optional string button_name = 4; * @return The bytes for buttonName. */ com.google.protobuf.ByteString getButtonNameBytes(); /** *
     * A human friendly name when the button name or link name isn't descriptive.
     * 
* * optional string friendly_name = 5; * @return Whether the friendlyName field is set. */ boolean hasFriendlyName(); /** *
     * A human friendly name when the button name or link name isn't descriptive.
     * 
* * optional string friendly_name = 5; * @return The friendlyName. */ java.lang.String getFriendlyName(); /** *
     * A human friendly name when the button name or link name isn't descriptive.
     * 
* * optional string friendly_name = 5; * @return The bytes for friendlyName. */ com.google.protobuf.ByteString getFriendlyNameBytes(); /** *
     * Hotkey. May not always be set.
     * 
* * optional string hotkey = 6; * @return Whether the hotkey field is set. */ boolean hasHotkey(); /** *
     * Hotkey. May not always be set.
     * 
* * optional string hotkey = 6; * @return The hotkey. */ java.lang.String getHotkey(); /** *
     * Hotkey. May not always be set.
     * 
* * optional string hotkey = 6; * @return The bytes for hotkey. */ com.google.protobuf.ByteString getHotkeyBytes(); /** *
     * This ability id may be represented by the given more generic id.
     * 
* * optional uint32 remaps_to_ability_id = 7; * @return Whether the remapsToAbilityId field is set. */ boolean hasRemapsToAbilityId(); /** *
     * This ability id may be represented by the given more generic id.
     * 
* * optional uint32 remaps_to_ability_id = 7; * @return The remapsToAbilityId. */ int getRemapsToAbilityId(); /** *
     * If true, the ability may be used by this set of mods/map.
     * 
* * optional bool available = 8; * @return Whether the available field is set. */ boolean hasAvailable(); /** *
     * If true, the ability may be used by this set of mods/map.
     * 
* * optional bool available = 8; * @return The available. */ boolean getAvailable(); /** *
     * Determines if a point is optional or required.
     * 
* * optional .SC2APIProtocol.AbilityData.Target target = 9; * @return Whether the target field is set. */ boolean hasTarget(); /** *
     * Determines if a point is optional or required.
     * 
* * optional .SC2APIProtocol.AbilityData.Target target = 9; * @return The target. */ SC2APIProtocol.Data.AbilityData.Target getTarget(); /** *
     * Can be cast in the minimap.
     * 
* * optional bool allow_minimap = 10; * @return Whether the allowMinimap field is set. */ boolean hasAllowMinimap(); /** *
     * Can be cast in the minimap.
     * 
* * optional bool allow_minimap = 10; * @return The allowMinimap. */ boolean getAllowMinimap(); /** *
     * Autocast can be set.
     * 
* * optional bool allow_autocast = 11; * @return Whether the allowAutocast field is set. */ boolean hasAllowAutocast(); /** *
     * Autocast can be set.
     * 
* * optional bool allow_autocast = 11; * @return The allowAutocast. */ boolean getAllowAutocast(); /** *
     * Requires placement to construct a building.
     * 
* * optional bool is_building = 12; * @return Whether the isBuilding field is set. */ boolean hasIsBuilding(); /** *
     * Requires placement to construct a building.
     * 
* * optional bool is_building = 12; * @return The isBuilding. */ boolean getIsBuilding(); /** *
     * Estimation of the footprint size. Need a better footprint.
     * 
* * optional float footprint_radius = 13; * @return Whether the footprintRadius field is set. */ boolean hasFootprintRadius(); /** *
     * Estimation of the footprint size. Need a better footprint.
     * 
* * optional float footprint_radius = 13; * @return The footprintRadius. */ float getFootprintRadius(); /** *
     * Placement next to an existing structure, e.g., an add-on like a Tech Lab.
     * 
* * optional bool is_instant_placement = 14; * @return Whether the isInstantPlacement field is set. */ boolean hasIsInstantPlacement(); /** *
     * Placement next to an existing structure, e.g., an add-on like a Tech Lab.
     * 
* * optional bool is_instant_placement = 14; * @return The isInstantPlacement. */ boolean getIsInstantPlacement(); /** *
     * Range unit can cast ability without needing to approach target.
     * 
* * optional float cast_range = 15; * @return Whether the castRange field is set. */ boolean hasCastRange(); /** *
     * Range unit can cast ability without needing to approach target.
     * 
* * optional float cast_range = 15; * @return The castRange. */ float getCastRange(); } /** *
   * May not relevant: queueable (everything is queueable).
   * May not be important: AbilSetId - marine stim, marauder stim.
   * Stuff omitted: transient.
   * Stuff that may be important: cost, range, Alignment, targetfilters.
   * 
* * Protobuf type {@code SC2APIProtocol.AbilityData} */ public static final class AbilityData extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:SC2APIProtocol.AbilityData) AbilityDataOrBuilder { private static final long serialVersionUID = 0L; // Use AbilityData.newBuilder() to construct. private AbilityData(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private AbilityData() { linkName_ = ""; buttonName_ = ""; friendlyName_ = ""; hotkey_ = ""; target_ = 1; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new AbilityData(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Data.internal_static_SC2APIProtocol_AbilityData_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Data.internal_static_SC2APIProtocol_AbilityData_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Data.AbilityData.class, SC2APIProtocol.Data.AbilityData.Builder.class); } /** * Protobuf enum {@code SC2APIProtocol.AbilityData.Target} */ public enum Target implements com.google.protobuf.ProtocolMessageEnum { /** *
       * Does not require a target.
       * 
* * None = 1; */ None(1), /** *
       * Requires a target position.
       * 
* * Point = 2; */ Point(2), /** *
       * Requires a unit to target. Given by position using feature layers.
       * 
* * Unit = 3; */ Unit(3), /** *
       * Requires either a target point or target unit.
       * 
* * PointOrUnit = 4; */ PointOrUnit(4), /** *
       * Requires either a target point or no target. (eg. building add-ons)
       * 
* * PointOrNone = 5; */ PointOrNone(5), ; /** *
       * Does not require a target.
       * 
* * None = 1; */ public static final int None_VALUE = 1; /** *
       * Requires a target position.
       * 
* * Point = 2; */ public static final int Point_VALUE = 2; /** *
       * Requires a unit to target. Given by position using feature layers.
       * 
* * Unit = 3; */ public static final int Unit_VALUE = 3; /** *
       * Requires either a target point or target unit.
       * 
* * PointOrUnit = 4; */ public static final int PointOrUnit_VALUE = 4; /** *
       * Requires either a target point or no target. (eg. building add-ons)
       * 
* * PointOrNone = 5; */ public static final int PointOrNone_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 Target 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 Target forNumber(int value) { switch (value) { case 1: return None; case 2: return Point; case 3: return Unit; case 4: return PointOrUnit; case 5: return PointOrNone; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Target> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Target findValueByNumber(int number) { return Target.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.Data.AbilityData.getDescriptor().getEnumTypes().get(0); } private static final Target[] VALUES = values(); public static Target 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 Target(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:SC2APIProtocol.AbilityData.Target) } private int bitField0_; public static final int ABILITY_ID_FIELD_NUMBER = 1; private int abilityId_; /** *
     * Stable ID.
     * 
* * optional uint32 ability_id = 1; * @return Whether the abilityId field is set. */ @java.lang.Override public boolean hasAbilityId() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * Stable ID.
     * 
* * optional uint32 ability_id = 1; * @return The abilityId. */ @java.lang.Override public int getAbilityId() { return abilityId_; } public static final int LINK_NAME_FIELD_NUMBER = 2; private volatile java.lang.Object linkName_; /** *
     * Catalog name of the ability.
     * 
* * optional string link_name = 2; * @return Whether the linkName field is set. */ @java.lang.Override public boolean hasLinkName() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * Catalog name of the ability.
     * 
* * optional string link_name = 2; * @return The linkName. */ @java.lang.Override public java.lang.String getLinkName() { java.lang.Object ref = linkName_; 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()) { linkName_ = s; } return s; } } /** *
     * Catalog name of the ability.
     * 
* * optional string link_name = 2; * @return The bytes for linkName. */ @java.lang.Override public com.google.protobuf.ByteString getLinkNameBytes() { java.lang.Object ref = linkName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); linkName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int LINK_INDEX_FIELD_NUMBER = 3; private int linkIndex_; /** *
     * Catalog index of the ability.
     * 
* * optional uint32 link_index = 3; * @return Whether the linkIndex field is set. */ @java.lang.Override public boolean hasLinkIndex() { return ((bitField0_ & 0x00000004) != 0); } /** *
     * Catalog index of the ability.
     * 
* * optional uint32 link_index = 3; * @return The linkIndex. */ @java.lang.Override public int getLinkIndex() { return linkIndex_; } public static final int BUTTON_NAME_FIELD_NUMBER = 4; private volatile java.lang.Object buttonName_; /** *
     * Name used for the command card. May not always be set.
     * 
* * optional string button_name = 4; * @return Whether the buttonName field is set. */ @java.lang.Override public boolean hasButtonName() { return ((bitField0_ & 0x00000008) != 0); } /** *
     * Name used for the command card. May not always be set.
     * 
* * optional string button_name = 4; * @return The buttonName. */ @java.lang.Override public java.lang.String getButtonName() { java.lang.Object ref = buttonName_; 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()) { buttonName_ = s; } return s; } } /** *
     * Name used for the command card. May not always be set.
     * 
* * optional string button_name = 4; * @return The bytes for buttonName. */ @java.lang.Override public com.google.protobuf.ByteString getButtonNameBytes() { java.lang.Object ref = buttonName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); buttonName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int FRIENDLY_NAME_FIELD_NUMBER = 5; private volatile java.lang.Object friendlyName_; /** *
     * A human friendly name when the button name or link name isn't descriptive.
     * 
* * optional string friendly_name = 5; * @return Whether the friendlyName field is set. */ @java.lang.Override public boolean hasFriendlyName() { return ((bitField0_ & 0x00000010) != 0); } /** *
     * A human friendly name when the button name or link name isn't descriptive.
     * 
* * optional string friendly_name = 5; * @return The friendlyName. */ @java.lang.Override public java.lang.String getFriendlyName() { java.lang.Object ref = friendlyName_; 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()) { friendlyName_ = s; } return s; } } /** *
     * A human friendly name when the button name or link name isn't descriptive.
     * 
* * optional string friendly_name = 5; * @return The bytes for friendlyName. */ @java.lang.Override public com.google.protobuf.ByteString getFriendlyNameBytes() { java.lang.Object ref = friendlyName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); friendlyName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int HOTKEY_FIELD_NUMBER = 6; private volatile java.lang.Object hotkey_; /** *
     * Hotkey. May not always be set.
     * 
* * optional string hotkey = 6; * @return Whether the hotkey field is set. */ @java.lang.Override public boolean hasHotkey() { return ((bitField0_ & 0x00000020) != 0); } /** *
     * Hotkey. May not always be set.
     * 
* * optional string hotkey = 6; * @return The hotkey. */ @java.lang.Override public java.lang.String getHotkey() { java.lang.Object ref = hotkey_; 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()) { hotkey_ = s; } return s; } } /** *
     * Hotkey. May not always be set.
     * 
* * optional string hotkey = 6; * @return The bytes for hotkey. */ @java.lang.Override public com.google.protobuf.ByteString getHotkeyBytes() { java.lang.Object ref = hotkey_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); hotkey_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int REMAPS_TO_ABILITY_ID_FIELD_NUMBER = 7; private int remapsToAbilityId_; /** *
     * This ability id may be represented by the given more generic id.
     * 
* * optional uint32 remaps_to_ability_id = 7; * @return Whether the remapsToAbilityId field is set. */ @java.lang.Override public boolean hasRemapsToAbilityId() { return ((bitField0_ & 0x00000040) != 0); } /** *
     * This ability id may be represented by the given more generic id.
     * 
* * optional uint32 remaps_to_ability_id = 7; * @return The remapsToAbilityId. */ @java.lang.Override public int getRemapsToAbilityId() { return remapsToAbilityId_; } public static final int AVAILABLE_FIELD_NUMBER = 8; private boolean available_; /** *
     * If true, the ability may be used by this set of mods/map.
     * 
* * optional bool available = 8; * @return Whether the available field is set. */ @java.lang.Override public boolean hasAvailable() { return ((bitField0_ & 0x00000080) != 0); } /** *
     * If true, the ability may be used by this set of mods/map.
     * 
* * optional bool available = 8; * @return The available. */ @java.lang.Override public boolean getAvailable() { return available_; } public static final int TARGET_FIELD_NUMBER = 9; private int target_; /** *
     * Determines if a point is optional or required.
     * 
* * optional .SC2APIProtocol.AbilityData.Target target = 9; * @return Whether the target field is set. */ @java.lang.Override public boolean hasTarget() { return ((bitField0_ & 0x00000100) != 0); } /** *
     * Determines if a point is optional or required.
     * 
* * optional .SC2APIProtocol.AbilityData.Target target = 9; * @return The target. */ @java.lang.Override public SC2APIProtocol.Data.AbilityData.Target getTarget() { @SuppressWarnings("deprecation") SC2APIProtocol.Data.AbilityData.Target result = SC2APIProtocol.Data.AbilityData.Target.valueOf(target_); return result == null ? SC2APIProtocol.Data.AbilityData.Target.None : result; } public static final int ALLOW_MINIMAP_FIELD_NUMBER = 10; private boolean allowMinimap_; /** *
     * Can be cast in the minimap.
     * 
* * optional bool allow_minimap = 10; * @return Whether the allowMinimap field is set. */ @java.lang.Override public boolean hasAllowMinimap() { return ((bitField0_ & 0x00000200) != 0); } /** *
     * Can be cast in the minimap.
     * 
* * optional bool allow_minimap = 10; * @return The allowMinimap. */ @java.lang.Override public boolean getAllowMinimap() { return allowMinimap_; } public static final int ALLOW_AUTOCAST_FIELD_NUMBER = 11; private boolean allowAutocast_; /** *
     * Autocast can be set.
     * 
* * optional bool allow_autocast = 11; * @return Whether the allowAutocast field is set. */ @java.lang.Override public boolean hasAllowAutocast() { return ((bitField0_ & 0x00000400) != 0); } /** *
     * Autocast can be set.
     * 
* * optional bool allow_autocast = 11; * @return The allowAutocast. */ @java.lang.Override public boolean getAllowAutocast() { return allowAutocast_; } public static final int IS_BUILDING_FIELD_NUMBER = 12; private boolean isBuilding_; /** *
     * Requires placement to construct a building.
     * 
* * optional bool is_building = 12; * @return Whether the isBuilding field is set. */ @java.lang.Override public boolean hasIsBuilding() { return ((bitField0_ & 0x00000800) != 0); } /** *
     * Requires placement to construct a building.
     * 
* * optional bool is_building = 12; * @return The isBuilding. */ @java.lang.Override public boolean getIsBuilding() { return isBuilding_; } public static final int FOOTPRINT_RADIUS_FIELD_NUMBER = 13; private float footprintRadius_; /** *
     * Estimation of the footprint size. Need a better footprint.
     * 
* * optional float footprint_radius = 13; * @return Whether the footprintRadius field is set. */ @java.lang.Override public boolean hasFootprintRadius() { return ((bitField0_ & 0x00001000) != 0); } /** *
     * Estimation of the footprint size. Need a better footprint.
     * 
* * optional float footprint_radius = 13; * @return The footprintRadius. */ @java.lang.Override public float getFootprintRadius() { return footprintRadius_; } public static final int IS_INSTANT_PLACEMENT_FIELD_NUMBER = 14; private boolean isInstantPlacement_; /** *
     * Placement next to an existing structure, e.g., an add-on like a Tech Lab.
     * 
* * optional bool is_instant_placement = 14; * @return Whether the isInstantPlacement field is set. */ @java.lang.Override public boolean hasIsInstantPlacement() { return ((bitField0_ & 0x00002000) != 0); } /** *
     * Placement next to an existing structure, e.g., an add-on like a Tech Lab.
     * 
* * optional bool is_instant_placement = 14; * @return The isInstantPlacement. */ @java.lang.Override public boolean getIsInstantPlacement() { return isInstantPlacement_; } public static final int CAST_RANGE_FIELD_NUMBER = 15; private float castRange_; /** *
     * Range unit can cast ability without needing to approach target.
     * 
* * optional float cast_range = 15; * @return Whether the castRange field is set. */ @java.lang.Override public boolean hasCastRange() { return ((bitField0_ & 0x00004000) != 0); } /** *
     * Range unit can cast ability without needing to approach target.
     * 
* * optional float cast_range = 15; * @return The castRange. */ @java.lang.Override public float getCastRange() { return castRange_; } 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, abilityId_); } if (((bitField0_ & 0x00000002) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, linkName_); } if (((bitField0_ & 0x00000004) != 0)) { output.writeUInt32(3, linkIndex_); } if (((bitField0_ & 0x00000008) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, buttonName_); } if (((bitField0_ & 0x00000010) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, friendlyName_); } if (((bitField0_ & 0x00000020) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, hotkey_); } if (((bitField0_ & 0x00000040) != 0)) { output.writeUInt32(7, remapsToAbilityId_); } if (((bitField0_ & 0x00000080) != 0)) { output.writeBool(8, available_); } if (((bitField0_ & 0x00000100) != 0)) { output.writeEnum(9, target_); } if (((bitField0_ & 0x00000200) != 0)) { output.writeBool(10, allowMinimap_); } if (((bitField0_ & 0x00000400) != 0)) { output.writeBool(11, allowAutocast_); } if (((bitField0_ & 0x00000800) != 0)) { output.writeBool(12, isBuilding_); } if (((bitField0_ & 0x00001000) != 0)) { output.writeFloat(13, footprintRadius_); } if (((bitField0_ & 0x00002000) != 0)) { output.writeBool(14, isInstantPlacement_); } if (((bitField0_ & 0x00004000) != 0)) { output.writeFloat(15, castRange_); } 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, abilityId_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, linkName_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(3, linkIndex_); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, buttonName_); } if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, friendlyName_); } if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, hotkey_); } if (((bitField0_ & 0x00000040) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(7, remapsToAbilityId_); } if (((bitField0_ & 0x00000080) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(8, available_); } if (((bitField0_ & 0x00000100) != 0)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(9, target_); } if (((bitField0_ & 0x00000200) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(10, allowMinimap_); } if (((bitField0_ & 0x00000400) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(11, allowAutocast_); } if (((bitField0_ & 0x00000800) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(12, isBuilding_); } if (((bitField0_ & 0x00001000) != 0)) { size += com.google.protobuf.CodedOutputStream .computeFloatSize(13, footprintRadius_); } if (((bitField0_ & 0x00002000) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(14, isInstantPlacement_); } if (((bitField0_ & 0x00004000) != 0)) { size += com.google.protobuf.CodedOutputStream .computeFloatSize(15, castRange_); } 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.Data.AbilityData)) { return super.equals(obj); } SC2APIProtocol.Data.AbilityData other = (SC2APIProtocol.Data.AbilityData) obj; if (hasAbilityId() != other.hasAbilityId()) return false; if (hasAbilityId()) { if (getAbilityId() != other.getAbilityId()) return false; } if (hasLinkName() != other.hasLinkName()) return false; if (hasLinkName()) { if (!getLinkName() .equals(other.getLinkName())) return false; } if (hasLinkIndex() != other.hasLinkIndex()) return false; if (hasLinkIndex()) { if (getLinkIndex() != other.getLinkIndex()) return false; } if (hasButtonName() != other.hasButtonName()) return false; if (hasButtonName()) { if (!getButtonName() .equals(other.getButtonName())) return false; } if (hasFriendlyName() != other.hasFriendlyName()) return false; if (hasFriendlyName()) { if (!getFriendlyName() .equals(other.getFriendlyName())) return false; } if (hasHotkey() != other.hasHotkey()) return false; if (hasHotkey()) { if (!getHotkey() .equals(other.getHotkey())) return false; } if (hasRemapsToAbilityId() != other.hasRemapsToAbilityId()) return false; if (hasRemapsToAbilityId()) { if (getRemapsToAbilityId() != other.getRemapsToAbilityId()) return false; } if (hasAvailable() != other.hasAvailable()) return false; if (hasAvailable()) { if (getAvailable() != other.getAvailable()) return false; } if (hasTarget() != other.hasTarget()) return false; if (hasTarget()) { if (target_ != other.target_) return false; } if (hasAllowMinimap() != other.hasAllowMinimap()) return false; if (hasAllowMinimap()) { if (getAllowMinimap() != other.getAllowMinimap()) return false; } if (hasAllowAutocast() != other.hasAllowAutocast()) return false; if (hasAllowAutocast()) { if (getAllowAutocast() != other.getAllowAutocast()) return false; } if (hasIsBuilding() != other.hasIsBuilding()) return false; if (hasIsBuilding()) { if (getIsBuilding() != other.getIsBuilding()) return false; } if (hasFootprintRadius() != other.hasFootprintRadius()) return false; if (hasFootprintRadius()) { if (java.lang.Float.floatToIntBits(getFootprintRadius()) != java.lang.Float.floatToIntBits( other.getFootprintRadius())) return false; } if (hasIsInstantPlacement() != other.hasIsInstantPlacement()) return false; if (hasIsInstantPlacement()) { if (getIsInstantPlacement() != other.getIsInstantPlacement()) return false; } if (hasCastRange() != other.hasCastRange()) return false; if (hasCastRange()) { if (java.lang.Float.floatToIntBits(getCastRange()) != java.lang.Float.floatToIntBits( other.getCastRange())) 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) + getAbilityId(); } if (hasLinkName()) { hash = (37 * hash) + LINK_NAME_FIELD_NUMBER; hash = (53 * hash) + getLinkName().hashCode(); } if (hasLinkIndex()) { hash = (37 * hash) + LINK_INDEX_FIELD_NUMBER; hash = (53 * hash) + getLinkIndex(); } if (hasButtonName()) { hash = (37 * hash) + BUTTON_NAME_FIELD_NUMBER; hash = (53 * hash) + getButtonName().hashCode(); } if (hasFriendlyName()) { hash = (37 * hash) + FRIENDLY_NAME_FIELD_NUMBER; hash = (53 * hash) + getFriendlyName().hashCode(); } if (hasHotkey()) { hash = (37 * hash) + HOTKEY_FIELD_NUMBER; hash = (53 * hash) + getHotkey().hashCode(); } if (hasRemapsToAbilityId()) { hash = (37 * hash) + REMAPS_TO_ABILITY_ID_FIELD_NUMBER; hash = (53 * hash) + getRemapsToAbilityId(); } if (hasAvailable()) { hash = (37 * hash) + AVAILABLE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getAvailable()); } if (hasTarget()) { hash = (37 * hash) + TARGET_FIELD_NUMBER; hash = (53 * hash) + target_; } if (hasAllowMinimap()) { hash = (37 * hash) + ALLOW_MINIMAP_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getAllowMinimap()); } if (hasAllowAutocast()) { hash = (37 * hash) + ALLOW_AUTOCAST_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getAllowAutocast()); } if (hasIsBuilding()) { hash = (37 * hash) + IS_BUILDING_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getIsBuilding()); } if (hasFootprintRadius()) { hash = (37 * hash) + FOOTPRINT_RADIUS_FIELD_NUMBER; hash = (53 * hash) + java.lang.Float.floatToIntBits( getFootprintRadius()); } if (hasIsInstantPlacement()) { hash = (37 * hash) + IS_INSTANT_PLACEMENT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getIsInstantPlacement()); } if (hasCastRange()) { hash = (37 * hash) + CAST_RANGE_FIELD_NUMBER; hash = (53 * hash) + java.lang.Float.floatToIntBits( getCastRange()); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static SC2APIProtocol.Data.AbilityData parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Data.AbilityData parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Data.AbilityData parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Data.AbilityData parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Data.AbilityData parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Data.AbilityData parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Data.AbilityData parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Data.AbilityData 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.Data.AbilityData parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static SC2APIProtocol.Data.AbilityData 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.Data.AbilityData parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Data.AbilityData 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.Data.AbilityData 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; } /** *
     * May not relevant: queueable (everything is queueable).
     * May not be important: AbilSetId - marine stim, marauder stim.
     * Stuff omitted: transient.
     * Stuff that may be important: cost, range, Alignment, targetfilters.
     * 
* * Protobuf type {@code SC2APIProtocol.AbilityData} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:SC2APIProtocol.AbilityData) SC2APIProtocol.Data.AbilityDataOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Data.internal_static_SC2APIProtocol_AbilityData_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Data.internal_static_SC2APIProtocol_AbilityData_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Data.AbilityData.class, SC2APIProtocol.Data.AbilityData.Builder.class); } // Construct using SC2APIProtocol.Data.AbilityData.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); abilityId_ = 0; bitField0_ = (bitField0_ & ~0x00000001); linkName_ = ""; bitField0_ = (bitField0_ & ~0x00000002); linkIndex_ = 0; bitField0_ = (bitField0_ & ~0x00000004); buttonName_ = ""; bitField0_ = (bitField0_ & ~0x00000008); friendlyName_ = ""; bitField0_ = (bitField0_ & ~0x00000010); hotkey_ = ""; bitField0_ = (bitField0_ & ~0x00000020); remapsToAbilityId_ = 0; bitField0_ = (bitField0_ & ~0x00000040); available_ = false; bitField0_ = (bitField0_ & ~0x00000080); target_ = 1; bitField0_ = (bitField0_ & ~0x00000100); allowMinimap_ = false; bitField0_ = (bitField0_ & ~0x00000200); allowAutocast_ = false; bitField0_ = (bitField0_ & ~0x00000400); isBuilding_ = false; bitField0_ = (bitField0_ & ~0x00000800); footprintRadius_ = 0F; bitField0_ = (bitField0_ & ~0x00001000); isInstantPlacement_ = false; bitField0_ = (bitField0_ & ~0x00002000); castRange_ = 0F; bitField0_ = (bitField0_ & ~0x00004000); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return SC2APIProtocol.Data.internal_static_SC2APIProtocol_AbilityData_descriptor; } @java.lang.Override public SC2APIProtocol.Data.AbilityData getDefaultInstanceForType() { return SC2APIProtocol.Data.AbilityData.getDefaultInstance(); } @java.lang.Override public SC2APIProtocol.Data.AbilityData build() { SC2APIProtocol.Data.AbilityData result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public SC2APIProtocol.Data.AbilityData buildPartial() { SC2APIProtocol.Data.AbilityData result = new SC2APIProtocol.Data.AbilityData(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)) { to_bitField0_ |= 0x00000002; } result.linkName_ = linkName_; if (((from_bitField0_ & 0x00000004) != 0)) { result.linkIndex_ = linkIndex_; to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000008) != 0)) { to_bitField0_ |= 0x00000008; } result.buttonName_ = buttonName_; if (((from_bitField0_ & 0x00000010) != 0)) { to_bitField0_ |= 0x00000010; } result.friendlyName_ = friendlyName_; if (((from_bitField0_ & 0x00000020) != 0)) { to_bitField0_ |= 0x00000020; } result.hotkey_ = hotkey_; if (((from_bitField0_ & 0x00000040) != 0)) { result.remapsToAbilityId_ = remapsToAbilityId_; to_bitField0_ |= 0x00000040; } if (((from_bitField0_ & 0x00000080) != 0)) { result.available_ = available_; to_bitField0_ |= 0x00000080; } if (((from_bitField0_ & 0x00000100) != 0)) { to_bitField0_ |= 0x00000100; } result.target_ = target_; if (((from_bitField0_ & 0x00000200) != 0)) { result.allowMinimap_ = allowMinimap_; to_bitField0_ |= 0x00000200; } if (((from_bitField0_ & 0x00000400) != 0)) { result.allowAutocast_ = allowAutocast_; to_bitField0_ |= 0x00000400; } if (((from_bitField0_ & 0x00000800) != 0)) { result.isBuilding_ = isBuilding_; to_bitField0_ |= 0x00000800; } if (((from_bitField0_ & 0x00001000) != 0)) { result.footprintRadius_ = footprintRadius_; to_bitField0_ |= 0x00001000; } if (((from_bitField0_ & 0x00002000) != 0)) { result.isInstantPlacement_ = isInstantPlacement_; to_bitField0_ |= 0x00002000; } if (((from_bitField0_ & 0x00004000) != 0)) { result.castRange_ = castRange_; to_bitField0_ |= 0x00004000; } 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.Data.AbilityData) { return mergeFrom((SC2APIProtocol.Data.AbilityData)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(SC2APIProtocol.Data.AbilityData other) { if (other == SC2APIProtocol.Data.AbilityData.getDefaultInstance()) return this; if (other.hasAbilityId()) { setAbilityId(other.getAbilityId()); } if (other.hasLinkName()) { bitField0_ |= 0x00000002; linkName_ = other.linkName_; onChanged(); } if (other.hasLinkIndex()) { setLinkIndex(other.getLinkIndex()); } if (other.hasButtonName()) { bitField0_ |= 0x00000008; buttonName_ = other.buttonName_; onChanged(); } if (other.hasFriendlyName()) { bitField0_ |= 0x00000010; friendlyName_ = other.friendlyName_; onChanged(); } if (other.hasHotkey()) { bitField0_ |= 0x00000020; hotkey_ = other.hotkey_; onChanged(); } if (other.hasRemapsToAbilityId()) { setRemapsToAbilityId(other.getRemapsToAbilityId()); } if (other.hasAvailable()) { setAvailable(other.getAvailable()); } if (other.hasTarget()) { setTarget(other.getTarget()); } if (other.hasAllowMinimap()) { setAllowMinimap(other.getAllowMinimap()); } if (other.hasAllowAutocast()) { setAllowAutocast(other.getAllowAutocast()); } if (other.hasIsBuilding()) { setIsBuilding(other.getIsBuilding()); } if (other.hasFootprintRadius()) { setFootprintRadius(other.getFootprintRadius()); } if (other.hasIsInstantPlacement()) { setIsInstantPlacement(other.getIsInstantPlacement()); } if (other.hasCastRange()) { setCastRange(other.getCastRange()); } 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.readUInt32(); bitField0_ |= 0x00000001; break; } // case 8 case 18: { linkName_ = input.readBytes(); bitField0_ |= 0x00000002; break; } // case 18 case 24: { linkIndex_ = input.readUInt32(); bitField0_ |= 0x00000004; break; } // case 24 case 34: { buttonName_ = input.readBytes(); bitField0_ |= 0x00000008; break; } // case 34 case 42: { friendlyName_ = input.readBytes(); bitField0_ |= 0x00000010; break; } // case 42 case 50: { hotkey_ = input.readBytes(); bitField0_ |= 0x00000020; break; } // case 50 case 56: { remapsToAbilityId_ = input.readUInt32(); bitField0_ |= 0x00000040; break; } // case 56 case 64: { available_ = input.readBool(); bitField0_ |= 0x00000080; break; } // case 64 case 72: { int tmpRaw = input.readEnum(); SC2APIProtocol.Data.AbilityData.Target tmpValue = SC2APIProtocol.Data.AbilityData.Target.forNumber(tmpRaw); if (tmpValue == null) { mergeUnknownVarintField(9, tmpRaw); } else { target_ = tmpRaw; bitField0_ |= 0x00000100; } break; } // case 72 case 80: { allowMinimap_ = input.readBool(); bitField0_ |= 0x00000200; break; } // case 80 case 88: { allowAutocast_ = input.readBool(); bitField0_ |= 0x00000400; break; } // case 88 case 96: { isBuilding_ = input.readBool(); bitField0_ |= 0x00000800; break; } // case 96 case 109: { footprintRadius_ = input.readFloat(); bitField0_ |= 0x00001000; break; } // case 109 case 112: { isInstantPlacement_ = input.readBool(); bitField0_ |= 0x00002000; break; } // case 112 case 125: { castRange_ = input.readFloat(); bitField0_ |= 0x00004000; break; } // case 125 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 abilityId_ ; /** *
       * Stable ID.
       * 
* * optional uint32 ability_id = 1; * @return Whether the abilityId field is set. */ @java.lang.Override public boolean hasAbilityId() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * Stable ID.
       * 
* * optional uint32 ability_id = 1; * @return The abilityId. */ @java.lang.Override public int getAbilityId() { return abilityId_; } /** *
       * Stable ID.
       * 
* * optional uint32 ability_id = 1; * @param value The abilityId to set. * @return This builder for chaining. */ public Builder setAbilityId(int value) { bitField0_ |= 0x00000001; abilityId_ = value; onChanged(); return this; } /** *
       * Stable ID.
       * 
* * optional uint32 ability_id = 1; * @return This builder for chaining. */ public Builder clearAbilityId() { bitField0_ = (bitField0_ & ~0x00000001); abilityId_ = 0; onChanged(); return this; } private java.lang.Object linkName_ = ""; /** *
       * Catalog name of the ability.
       * 
* * optional string link_name = 2; * @return Whether the linkName field is set. */ public boolean hasLinkName() { return ((bitField0_ & 0x00000002) != 0); } /** *
       * Catalog name of the ability.
       * 
* * optional string link_name = 2; * @return The linkName. */ public java.lang.String getLinkName() { java.lang.Object ref = linkName_; 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()) { linkName_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
       * Catalog name of the ability.
       * 
* * optional string link_name = 2; * @return The bytes for linkName. */ public com.google.protobuf.ByteString getLinkNameBytes() { java.lang.Object ref = linkName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); linkName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Catalog name of the ability.
       * 
* * optional string link_name = 2; * @param value The linkName to set. * @return This builder for chaining. */ public Builder setLinkName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; linkName_ = value; onChanged(); return this; } /** *
       * Catalog name of the ability.
       * 
* * optional string link_name = 2; * @return This builder for chaining. */ public Builder clearLinkName() { bitField0_ = (bitField0_ & ~0x00000002); linkName_ = getDefaultInstance().getLinkName(); onChanged(); return this; } /** *
       * Catalog name of the ability.
       * 
* * optional string link_name = 2; * @param value The bytes for linkName to set. * @return This builder for chaining. */ public Builder setLinkNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; linkName_ = value; onChanged(); return this; } private int linkIndex_ ; /** *
       * Catalog index of the ability.
       * 
* * optional uint32 link_index = 3; * @return Whether the linkIndex field is set. */ @java.lang.Override public boolean hasLinkIndex() { return ((bitField0_ & 0x00000004) != 0); } /** *
       * Catalog index of the ability.
       * 
* * optional uint32 link_index = 3; * @return The linkIndex. */ @java.lang.Override public int getLinkIndex() { return linkIndex_; } /** *
       * Catalog index of the ability.
       * 
* * optional uint32 link_index = 3; * @param value The linkIndex to set. * @return This builder for chaining. */ public Builder setLinkIndex(int value) { bitField0_ |= 0x00000004; linkIndex_ = value; onChanged(); return this; } /** *
       * Catalog index of the ability.
       * 
* * optional uint32 link_index = 3; * @return This builder for chaining. */ public Builder clearLinkIndex() { bitField0_ = (bitField0_ & ~0x00000004); linkIndex_ = 0; onChanged(); return this; } private java.lang.Object buttonName_ = ""; /** *
       * Name used for the command card. May not always be set.
       * 
* * optional string button_name = 4; * @return Whether the buttonName field is set. */ public boolean hasButtonName() { return ((bitField0_ & 0x00000008) != 0); } /** *
       * Name used for the command card. May not always be set.
       * 
* * optional string button_name = 4; * @return The buttonName. */ public java.lang.String getButtonName() { java.lang.Object ref = buttonName_; 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()) { buttonName_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
       * Name used for the command card. May not always be set.
       * 
* * optional string button_name = 4; * @return The bytes for buttonName. */ public com.google.protobuf.ByteString getButtonNameBytes() { java.lang.Object ref = buttonName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); buttonName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Name used for the command card. May not always be set.
       * 
* * optional string button_name = 4; * @param value The buttonName to set. * @return This builder for chaining. */ public Builder setButtonName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; buttonName_ = value; onChanged(); return this; } /** *
       * Name used for the command card. May not always be set.
       * 
* * optional string button_name = 4; * @return This builder for chaining. */ public Builder clearButtonName() { bitField0_ = (bitField0_ & ~0x00000008); buttonName_ = getDefaultInstance().getButtonName(); onChanged(); return this; } /** *
       * Name used for the command card. May not always be set.
       * 
* * optional string button_name = 4; * @param value The bytes for buttonName to set. * @return This builder for chaining. */ public Builder setButtonNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; buttonName_ = value; onChanged(); return this; } private java.lang.Object friendlyName_ = ""; /** *
       * A human friendly name when the button name or link name isn't descriptive.
       * 
* * optional string friendly_name = 5; * @return Whether the friendlyName field is set. */ public boolean hasFriendlyName() { return ((bitField0_ & 0x00000010) != 0); } /** *
       * A human friendly name when the button name or link name isn't descriptive.
       * 
* * optional string friendly_name = 5; * @return The friendlyName. */ public java.lang.String getFriendlyName() { java.lang.Object ref = friendlyName_; 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()) { friendlyName_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
       * A human friendly name when the button name or link name isn't descriptive.
       * 
* * optional string friendly_name = 5; * @return The bytes for friendlyName. */ public com.google.protobuf.ByteString getFriendlyNameBytes() { java.lang.Object ref = friendlyName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); friendlyName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * A human friendly name when the button name or link name isn't descriptive.
       * 
* * optional string friendly_name = 5; * @param value The friendlyName to set. * @return This builder for chaining. */ public Builder setFriendlyName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; friendlyName_ = value; onChanged(); return this; } /** *
       * A human friendly name when the button name or link name isn't descriptive.
       * 
* * optional string friendly_name = 5; * @return This builder for chaining. */ public Builder clearFriendlyName() { bitField0_ = (bitField0_ & ~0x00000010); friendlyName_ = getDefaultInstance().getFriendlyName(); onChanged(); return this; } /** *
       * A human friendly name when the button name or link name isn't descriptive.
       * 
* * optional string friendly_name = 5; * @param value The bytes for friendlyName to set. * @return This builder for chaining. */ public Builder setFriendlyNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000010; friendlyName_ = value; onChanged(); return this; } private java.lang.Object hotkey_ = ""; /** *
       * Hotkey. May not always be set.
       * 
* * optional string hotkey = 6; * @return Whether the hotkey field is set. */ public boolean hasHotkey() { return ((bitField0_ & 0x00000020) != 0); } /** *
       * Hotkey. May not always be set.
       * 
* * optional string hotkey = 6; * @return The hotkey. */ public java.lang.String getHotkey() { java.lang.Object ref = hotkey_; 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()) { hotkey_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
       * Hotkey. May not always be set.
       * 
* * optional string hotkey = 6; * @return The bytes for hotkey. */ public com.google.protobuf.ByteString getHotkeyBytes() { java.lang.Object ref = hotkey_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); hotkey_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Hotkey. May not always be set.
       * 
* * optional string hotkey = 6; * @param value The hotkey to set. * @return This builder for chaining. */ public Builder setHotkey( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; hotkey_ = value; onChanged(); return this; } /** *
       * Hotkey. May not always be set.
       * 
* * optional string hotkey = 6; * @return This builder for chaining. */ public Builder clearHotkey() { bitField0_ = (bitField0_ & ~0x00000020); hotkey_ = getDefaultInstance().getHotkey(); onChanged(); return this; } /** *
       * Hotkey. May not always be set.
       * 
* * optional string hotkey = 6; * @param value The bytes for hotkey to set. * @return This builder for chaining. */ public Builder setHotkeyBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000020; hotkey_ = value; onChanged(); return this; } private int remapsToAbilityId_ ; /** *
       * This ability id may be represented by the given more generic id.
       * 
* * optional uint32 remaps_to_ability_id = 7; * @return Whether the remapsToAbilityId field is set. */ @java.lang.Override public boolean hasRemapsToAbilityId() { return ((bitField0_ & 0x00000040) != 0); } /** *
       * This ability id may be represented by the given more generic id.
       * 
* * optional uint32 remaps_to_ability_id = 7; * @return The remapsToAbilityId. */ @java.lang.Override public int getRemapsToAbilityId() { return remapsToAbilityId_; } /** *
       * This ability id may be represented by the given more generic id.
       * 
* * optional uint32 remaps_to_ability_id = 7; * @param value The remapsToAbilityId to set. * @return This builder for chaining. */ public Builder setRemapsToAbilityId(int value) { bitField0_ |= 0x00000040; remapsToAbilityId_ = value; onChanged(); return this; } /** *
       * This ability id may be represented by the given more generic id.
       * 
* * optional uint32 remaps_to_ability_id = 7; * @return This builder for chaining. */ public Builder clearRemapsToAbilityId() { bitField0_ = (bitField0_ & ~0x00000040); remapsToAbilityId_ = 0; onChanged(); return this; } private boolean available_ ; /** *
       * If true, the ability may be used by this set of mods/map.
       * 
* * optional bool available = 8; * @return Whether the available field is set. */ @java.lang.Override public boolean hasAvailable() { return ((bitField0_ & 0x00000080) != 0); } /** *
       * If true, the ability may be used by this set of mods/map.
       * 
* * optional bool available = 8; * @return The available. */ @java.lang.Override public boolean getAvailable() { return available_; } /** *
       * If true, the ability may be used by this set of mods/map.
       * 
* * optional bool available = 8; * @param value The available to set. * @return This builder for chaining. */ public Builder setAvailable(boolean value) { bitField0_ |= 0x00000080; available_ = value; onChanged(); return this; } /** *
       * If true, the ability may be used by this set of mods/map.
       * 
* * optional bool available = 8; * @return This builder for chaining. */ public Builder clearAvailable() { bitField0_ = (bitField0_ & ~0x00000080); available_ = false; onChanged(); return this; } private int target_ = 1; /** *
       * Determines if a point is optional or required.
       * 
* * optional .SC2APIProtocol.AbilityData.Target target = 9; * @return Whether the target field is set. */ @java.lang.Override public boolean hasTarget() { return ((bitField0_ & 0x00000100) != 0); } /** *
       * Determines if a point is optional or required.
       * 
* * optional .SC2APIProtocol.AbilityData.Target target = 9; * @return The target. */ @java.lang.Override public SC2APIProtocol.Data.AbilityData.Target getTarget() { @SuppressWarnings("deprecation") SC2APIProtocol.Data.AbilityData.Target result = SC2APIProtocol.Data.AbilityData.Target.valueOf(target_); return result == null ? SC2APIProtocol.Data.AbilityData.Target.None : result; } /** *
       * Determines if a point is optional or required.
       * 
* * optional .SC2APIProtocol.AbilityData.Target target = 9; * @param value The target to set. * @return This builder for chaining. */ public Builder setTarget(SC2APIProtocol.Data.AbilityData.Target value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000100; target_ = value.getNumber(); onChanged(); return this; } /** *
       * Determines if a point is optional or required.
       * 
* * optional .SC2APIProtocol.AbilityData.Target target = 9; * @return This builder for chaining. */ public Builder clearTarget() { bitField0_ = (bitField0_ & ~0x00000100); target_ = 1; onChanged(); return this; } private boolean allowMinimap_ ; /** *
       * Can be cast in the minimap.
       * 
* * optional bool allow_minimap = 10; * @return Whether the allowMinimap field is set. */ @java.lang.Override public boolean hasAllowMinimap() { return ((bitField0_ & 0x00000200) != 0); } /** *
       * Can be cast in the minimap.
       * 
* * optional bool allow_minimap = 10; * @return The allowMinimap. */ @java.lang.Override public boolean getAllowMinimap() { return allowMinimap_; } /** *
       * Can be cast in the minimap.
       * 
* * optional bool allow_minimap = 10; * @param value The allowMinimap to set. * @return This builder for chaining. */ public Builder setAllowMinimap(boolean value) { bitField0_ |= 0x00000200; allowMinimap_ = value; onChanged(); return this; } /** *
       * Can be cast in the minimap.
       * 
* * optional bool allow_minimap = 10; * @return This builder for chaining. */ public Builder clearAllowMinimap() { bitField0_ = (bitField0_ & ~0x00000200); allowMinimap_ = false; onChanged(); return this; } private boolean allowAutocast_ ; /** *
       * Autocast can be set.
       * 
* * optional bool allow_autocast = 11; * @return Whether the allowAutocast field is set. */ @java.lang.Override public boolean hasAllowAutocast() { return ((bitField0_ & 0x00000400) != 0); } /** *
       * Autocast can be set.
       * 
* * optional bool allow_autocast = 11; * @return The allowAutocast. */ @java.lang.Override public boolean getAllowAutocast() { return allowAutocast_; } /** *
       * Autocast can be set.
       * 
* * optional bool allow_autocast = 11; * @param value The allowAutocast to set. * @return This builder for chaining. */ public Builder setAllowAutocast(boolean value) { bitField0_ |= 0x00000400; allowAutocast_ = value; onChanged(); return this; } /** *
       * Autocast can be set.
       * 
* * optional bool allow_autocast = 11; * @return This builder for chaining. */ public Builder clearAllowAutocast() { bitField0_ = (bitField0_ & ~0x00000400); allowAutocast_ = false; onChanged(); return this; } private boolean isBuilding_ ; /** *
       * Requires placement to construct a building.
       * 
* * optional bool is_building = 12; * @return Whether the isBuilding field is set. */ @java.lang.Override public boolean hasIsBuilding() { return ((bitField0_ & 0x00000800) != 0); } /** *
       * Requires placement to construct a building.
       * 
* * optional bool is_building = 12; * @return The isBuilding. */ @java.lang.Override public boolean getIsBuilding() { return isBuilding_; } /** *
       * Requires placement to construct a building.
       * 
* * optional bool is_building = 12; * @param value The isBuilding to set. * @return This builder for chaining. */ public Builder setIsBuilding(boolean value) { bitField0_ |= 0x00000800; isBuilding_ = value; onChanged(); return this; } /** *
       * Requires placement to construct a building.
       * 
* * optional bool is_building = 12; * @return This builder for chaining. */ public Builder clearIsBuilding() { bitField0_ = (bitField0_ & ~0x00000800); isBuilding_ = false; onChanged(); return this; } private float footprintRadius_ ; /** *
       * Estimation of the footprint size. Need a better footprint.
       * 
* * optional float footprint_radius = 13; * @return Whether the footprintRadius field is set. */ @java.lang.Override public boolean hasFootprintRadius() { return ((bitField0_ & 0x00001000) != 0); } /** *
       * Estimation of the footprint size. Need a better footprint.
       * 
* * optional float footprint_radius = 13; * @return The footprintRadius. */ @java.lang.Override public float getFootprintRadius() { return footprintRadius_; } /** *
       * Estimation of the footprint size. Need a better footprint.
       * 
* * optional float footprint_radius = 13; * @param value The footprintRadius to set. * @return This builder for chaining. */ public Builder setFootprintRadius(float value) { bitField0_ |= 0x00001000; footprintRadius_ = value; onChanged(); return this; } /** *
       * Estimation of the footprint size. Need a better footprint.
       * 
* * optional float footprint_radius = 13; * @return This builder for chaining. */ public Builder clearFootprintRadius() { bitField0_ = (bitField0_ & ~0x00001000); footprintRadius_ = 0F; onChanged(); return this; } private boolean isInstantPlacement_ ; /** *
       * Placement next to an existing structure, e.g., an add-on like a Tech Lab.
       * 
* * optional bool is_instant_placement = 14; * @return Whether the isInstantPlacement field is set. */ @java.lang.Override public boolean hasIsInstantPlacement() { return ((bitField0_ & 0x00002000) != 0); } /** *
       * Placement next to an existing structure, e.g., an add-on like a Tech Lab.
       * 
* * optional bool is_instant_placement = 14; * @return The isInstantPlacement. */ @java.lang.Override public boolean getIsInstantPlacement() { return isInstantPlacement_; } /** *
       * Placement next to an existing structure, e.g., an add-on like a Tech Lab.
       * 
* * optional bool is_instant_placement = 14; * @param value The isInstantPlacement to set. * @return This builder for chaining. */ public Builder setIsInstantPlacement(boolean value) { bitField0_ |= 0x00002000; isInstantPlacement_ = value; onChanged(); return this; } /** *
       * Placement next to an existing structure, e.g., an add-on like a Tech Lab.
       * 
* * optional bool is_instant_placement = 14; * @return This builder for chaining. */ public Builder clearIsInstantPlacement() { bitField0_ = (bitField0_ & ~0x00002000); isInstantPlacement_ = false; onChanged(); return this; } private float castRange_ ; /** *
       * Range unit can cast ability without needing to approach target.
       * 
* * optional float cast_range = 15; * @return Whether the castRange field is set. */ @java.lang.Override public boolean hasCastRange() { return ((bitField0_ & 0x00004000) != 0); } /** *
       * Range unit can cast ability without needing to approach target.
       * 
* * optional float cast_range = 15; * @return The castRange. */ @java.lang.Override public float getCastRange() { return castRange_; } /** *
       * Range unit can cast ability without needing to approach target.
       * 
* * optional float cast_range = 15; * @param value The castRange to set. * @return This builder for chaining. */ public Builder setCastRange(float value) { bitField0_ |= 0x00004000; castRange_ = value; onChanged(); return this; } /** *
       * Range unit can cast ability without needing to approach target.
       * 
* * optional float cast_range = 15; * @return This builder for chaining. */ public Builder clearCastRange() { bitField0_ = (bitField0_ & ~0x00004000); castRange_ = 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.AbilityData) } // @@protoc_insertion_point(class_scope:SC2APIProtocol.AbilityData) private static final SC2APIProtocol.Data.AbilityData DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new SC2APIProtocol.Data.AbilityData(); } public static SC2APIProtocol.Data.AbilityData getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public AbilityData 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.Data.AbilityData getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface DamageBonusOrBuilder extends // @@protoc_insertion_point(interface_extends:SC2APIProtocol.DamageBonus) com.google.protobuf.MessageOrBuilder { /** * optional .SC2APIProtocol.Attribute attribute = 1; * @return Whether the attribute field is set. */ boolean hasAttribute(); /** * optional .SC2APIProtocol.Attribute attribute = 1; * @return The attribute. */ SC2APIProtocol.Data.Attribute getAttribute(); /** * optional float bonus = 2; * @return Whether the bonus field is set. */ boolean hasBonus(); /** * optional float bonus = 2; * @return The bonus. */ float getBonus(); } /** * Protobuf type {@code SC2APIProtocol.DamageBonus} */ public static final class DamageBonus extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:SC2APIProtocol.DamageBonus) DamageBonusOrBuilder { private static final long serialVersionUID = 0L; // Use DamageBonus.newBuilder() to construct. private DamageBonus(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private DamageBonus() { attribute_ = 1; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new DamageBonus(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Data.internal_static_SC2APIProtocol_DamageBonus_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Data.internal_static_SC2APIProtocol_DamageBonus_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Data.DamageBonus.class, SC2APIProtocol.Data.DamageBonus.Builder.class); } private int bitField0_; public static final int ATTRIBUTE_FIELD_NUMBER = 1; private int attribute_; /** * optional .SC2APIProtocol.Attribute attribute = 1; * @return Whether the attribute field is set. */ @java.lang.Override public boolean hasAttribute() { return ((bitField0_ & 0x00000001) != 0); } /** * optional .SC2APIProtocol.Attribute attribute = 1; * @return The attribute. */ @java.lang.Override public SC2APIProtocol.Data.Attribute getAttribute() { @SuppressWarnings("deprecation") SC2APIProtocol.Data.Attribute result = SC2APIProtocol.Data.Attribute.valueOf(attribute_); return result == null ? SC2APIProtocol.Data.Attribute.Light : result; } public static final int BONUS_FIELD_NUMBER = 2; private float bonus_; /** * optional float bonus = 2; * @return Whether the bonus field is set. */ @java.lang.Override public boolean hasBonus() { return ((bitField0_ & 0x00000002) != 0); } /** * optional float bonus = 2; * @return The bonus. */ @java.lang.Override public float getBonus() { return bonus_; } 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, attribute_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeFloat(2, bonus_); } 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, attribute_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeFloatSize(2, bonus_); } 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.Data.DamageBonus)) { return super.equals(obj); } SC2APIProtocol.Data.DamageBonus other = (SC2APIProtocol.Data.DamageBonus) obj; if (hasAttribute() != other.hasAttribute()) return false; if (hasAttribute()) { if (attribute_ != other.attribute_) return false; } if (hasBonus() != other.hasBonus()) return false; if (hasBonus()) { if (java.lang.Float.floatToIntBits(getBonus()) != java.lang.Float.floatToIntBits( other.getBonus())) 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 (hasAttribute()) { hash = (37 * hash) + ATTRIBUTE_FIELD_NUMBER; hash = (53 * hash) + attribute_; } if (hasBonus()) { hash = (37 * hash) + BONUS_FIELD_NUMBER; hash = (53 * hash) + java.lang.Float.floatToIntBits( getBonus()); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static SC2APIProtocol.Data.DamageBonus parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Data.DamageBonus parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Data.DamageBonus parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Data.DamageBonus parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Data.DamageBonus parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Data.DamageBonus parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Data.DamageBonus parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Data.DamageBonus 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.Data.DamageBonus parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static SC2APIProtocol.Data.DamageBonus 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.Data.DamageBonus parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Data.DamageBonus 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.Data.DamageBonus 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.DamageBonus} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:SC2APIProtocol.DamageBonus) SC2APIProtocol.Data.DamageBonusOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Data.internal_static_SC2APIProtocol_DamageBonus_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Data.internal_static_SC2APIProtocol_DamageBonus_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Data.DamageBonus.class, SC2APIProtocol.Data.DamageBonus.Builder.class); } // Construct using SC2APIProtocol.Data.DamageBonus.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); attribute_ = 1; bitField0_ = (bitField0_ & ~0x00000001); bonus_ = 0F; bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return SC2APIProtocol.Data.internal_static_SC2APIProtocol_DamageBonus_descriptor; } @java.lang.Override public SC2APIProtocol.Data.DamageBonus getDefaultInstanceForType() { return SC2APIProtocol.Data.DamageBonus.getDefaultInstance(); } @java.lang.Override public SC2APIProtocol.Data.DamageBonus build() { SC2APIProtocol.Data.DamageBonus result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public SC2APIProtocol.Data.DamageBonus buildPartial() { SC2APIProtocol.Data.DamageBonus result = new SC2APIProtocol.Data.DamageBonus(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { to_bitField0_ |= 0x00000001; } result.attribute_ = attribute_; if (((from_bitField0_ & 0x00000002) != 0)) { result.bonus_ = bonus_; 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.Data.DamageBonus) { return mergeFrom((SC2APIProtocol.Data.DamageBonus)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(SC2APIProtocol.Data.DamageBonus other) { if (other == SC2APIProtocol.Data.DamageBonus.getDefaultInstance()) return this; if (other.hasAttribute()) { setAttribute(other.getAttribute()); } if (other.hasBonus()) { setBonus(other.getBonus()); } 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.Data.Attribute tmpValue = SC2APIProtocol.Data.Attribute.forNumber(tmpRaw); if (tmpValue == null) { mergeUnknownVarintField(1, tmpRaw); } else { attribute_ = tmpRaw; bitField0_ |= 0x00000001; } break; } // case 8 case 21: { bonus_ = 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 int attribute_ = 1; /** * optional .SC2APIProtocol.Attribute attribute = 1; * @return Whether the attribute field is set. */ @java.lang.Override public boolean hasAttribute() { return ((bitField0_ & 0x00000001) != 0); } /** * optional .SC2APIProtocol.Attribute attribute = 1; * @return The attribute. */ @java.lang.Override public SC2APIProtocol.Data.Attribute getAttribute() { @SuppressWarnings("deprecation") SC2APIProtocol.Data.Attribute result = SC2APIProtocol.Data.Attribute.valueOf(attribute_); return result == null ? SC2APIProtocol.Data.Attribute.Light : result; } /** * optional .SC2APIProtocol.Attribute attribute = 1; * @param value The attribute to set. * @return This builder for chaining. */ public Builder setAttribute(SC2APIProtocol.Data.Attribute value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; attribute_ = value.getNumber(); onChanged(); return this; } /** * optional .SC2APIProtocol.Attribute attribute = 1; * @return This builder for chaining. */ public Builder clearAttribute() { bitField0_ = (bitField0_ & ~0x00000001); attribute_ = 1; onChanged(); return this; } private float bonus_ ; /** * optional float bonus = 2; * @return Whether the bonus field is set. */ @java.lang.Override public boolean hasBonus() { return ((bitField0_ & 0x00000002) != 0); } /** * optional float bonus = 2; * @return The bonus. */ @java.lang.Override public float getBonus() { return bonus_; } /** * optional float bonus = 2; * @param value The bonus to set. * @return This builder for chaining. */ public Builder setBonus(float value) { bitField0_ |= 0x00000002; bonus_ = value; onChanged(); return this; } /** * optional float bonus = 2; * @return This builder for chaining. */ public Builder clearBonus() { bitField0_ = (bitField0_ & ~0x00000002); bonus_ = 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.DamageBonus) } // @@protoc_insertion_point(class_scope:SC2APIProtocol.DamageBonus) private static final SC2APIProtocol.Data.DamageBonus DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new SC2APIProtocol.Data.DamageBonus(); } public static SC2APIProtocol.Data.DamageBonus getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public DamageBonus 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.Data.DamageBonus getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface WeaponOrBuilder extends // @@protoc_insertion_point(interface_extends:SC2APIProtocol.Weapon) com.google.protobuf.MessageOrBuilder { /** * optional .SC2APIProtocol.Weapon.TargetType type = 1; * @return Whether the type field is set. */ boolean hasType(); /** * optional .SC2APIProtocol.Weapon.TargetType type = 1; * @return The type. */ SC2APIProtocol.Data.Weapon.TargetType getType(); /** * optional float damage = 2; * @return Whether the damage field is set. */ boolean hasDamage(); /** * optional float damage = 2; * @return The damage. */ float getDamage(); /** * repeated .SC2APIProtocol.DamageBonus damage_bonus = 3; */ java.util.List getDamageBonusList(); /** * repeated .SC2APIProtocol.DamageBonus damage_bonus = 3; */ SC2APIProtocol.Data.DamageBonus getDamageBonus(int index); /** * repeated .SC2APIProtocol.DamageBonus damage_bonus = 3; */ int getDamageBonusCount(); /** * repeated .SC2APIProtocol.DamageBonus damage_bonus = 3; */ java.util.List getDamageBonusOrBuilderList(); /** * repeated .SC2APIProtocol.DamageBonus damage_bonus = 3; */ SC2APIProtocol.Data.DamageBonusOrBuilder getDamageBonusOrBuilder( int index); /** *
     * Number of hits per attack. (eg. Colossus has 2 beams)
     * 
* * optional uint32 attacks = 4; * @return Whether the attacks field is set. */ boolean hasAttacks(); /** *
     * Number of hits per attack. (eg. Colossus has 2 beams)
     * 
* * optional uint32 attacks = 4; * @return The attacks. */ int getAttacks(); /** * optional float range = 5; * @return Whether the range field is set. */ boolean hasRange(); /** * optional float range = 5; * @return The range. */ float getRange(); /** *
     * Time between attacks.
     * 
* * optional float speed = 6; * @return Whether the speed field is set. */ boolean hasSpeed(); /** *
     * Time between attacks.
     * 
* * optional float speed = 6; * @return The speed. */ float getSpeed(); } /** * Protobuf type {@code SC2APIProtocol.Weapon} */ public static final class Weapon extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:SC2APIProtocol.Weapon) WeaponOrBuilder { private static final long serialVersionUID = 0L; // Use Weapon.newBuilder() to construct. private Weapon(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Weapon() { type_ = 1; damageBonus_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Weapon(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Data.internal_static_SC2APIProtocol_Weapon_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Data.internal_static_SC2APIProtocol_Weapon_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Data.Weapon.class, SC2APIProtocol.Data.Weapon.Builder.class); } /** * Protobuf enum {@code SC2APIProtocol.Weapon.TargetType} */ public enum TargetType implements com.google.protobuf.ProtocolMessageEnum { /** * Ground = 1; */ Ground(1), /** * Air = 2; */ Air(2), /** * Any = 3; */ Any(3), ; /** * Ground = 1; */ public static final int Ground_VALUE = 1; /** * Air = 2; */ public static final int Air_VALUE = 2; /** * Any = 3; */ public static final int Any_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 TargetType 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 TargetType forNumber(int value) { switch (value) { case 1: return Ground; case 2: return Air; case 3: return Any; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< TargetType> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public TargetType findValueByNumber(int number) { return TargetType.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.Data.Weapon.getDescriptor().getEnumTypes().get(0); } private static final TargetType[] VALUES = values(); public static TargetType 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 TargetType(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:SC2APIProtocol.Weapon.TargetType) } private int bitField0_; public static final int TYPE_FIELD_NUMBER = 1; private int type_; /** * optional .SC2APIProtocol.Weapon.TargetType type = 1; * @return Whether the type field is set. */ @java.lang.Override public boolean hasType() { return ((bitField0_ & 0x00000001) != 0); } /** * optional .SC2APIProtocol.Weapon.TargetType type = 1; * @return The type. */ @java.lang.Override public SC2APIProtocol.Data.Weapon.TargetType getType() { @SuppressWarnings("deprecation") SC2APIProtocol.Data.Weapon.TargetType result = SC2APIProtocol.Data.Weapon.TargetType.valueOf(type_); return result == null ? SC2APIProtocol.Data.Weapon.TargetType.Ground : result; } public static final int DAMAGE_FIELD_NUMBER = 2; private float damage_; /** * optional float damage = 2; * @return Whether the damage field is set. */ @java.lang.Override public boolean hasDamage() { return ((bitField0_ & 0x00000002) != 0); } /** * optional float damage = 2; * @return The damage. */ @java.lang.Override public float getDamage() { return damage_; } public static final int DAMAGE_BONUS_FIELD_NUMBER = 3; private java.util.List damageBonus_; /** * repeated .SC2APIProtocol.DamageBonus damage_bonus = 3; */ @java.lang.Override public java.util.List getDamageBonusList() { return damageBonus_; } /** * repeated .SC2APIProtocol.DamageBonus damage_bonus = 3; */ @java.lang.Override public java.util.List getDamageBonusOrBuilderList() { return damageBonus_; } /** * repeated .SC2APIProtocol.DamageBonus damage_bonus = 3; */ @java.lang.Override public int getDamageBonusCount() { return damageBonus_.size(); } /** * repeated .SC2APIProtocol.DamageBonus damage_bonus = 3; */ @java.lang.Override public SC2APIProtocol.Data.DamageBonus getDamageBonus(int index) { return damageBonus_.get(index); } /** * repeated .SC2APIProtocol.DamageBonus damage_bonus = 3; */ @java.lang.Override public SC2APIProtocol.Data.DamageBonusOrBuilder getDamageBonusOrBuilder( int index) { return damageBonus_.get(index); } public static final int ATTACKS_FIELD_NUMBER = 4; private int attacks_; /** *
     * Number of hits per attack. (eg. Colossus has 2 beams)
     * 
* * optional uint32 attacks = 4; * @return Whether the attacks field is set. */ @java.lang.Override public boolean hasAttacks() { return ((bitField0_ & 0x00000004) != 0); } /** *
     * Number of hits per attack. (eg. Colossus has 2 beams)
     * 
* * optional uint32 attacks = 4; * @return The attacks. */ @java.lang.Override public int getAttacks() { return attacks_; } public static final int RANGE_FIELD_NUMBER = 5; private float range_; /** * optional float range = 5; * @return Whether the range field is set. */ @java.lang.Override public boolean hasRange() { return ((bitField0_ & 0x00000008) != 0); } /** * optional float range = 5; * @return The range. */ @java.lang.Override public float getRange() { return range_; } public static final int SPEED_FIELD_NUMBER = 6; private float speed_; /** *
     * Time between attacks.
     * 
* * optional float speed = 6; * @return Whether the speed field is set. */ @java.lang.Override public boolean hasSpeed() { return ((bitField0_ & 0x00000010) != 0); } /** *
     * Time between attacks.
     * 
* * optional float speed = 6; * @return The speed. */ @java.lang.Override public float getSpeed() { return speed_; } 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.writeFloat(2, damage_); } for (int i = 0; i < damageBonus_.size(); i++) { output.writeMessage(3, damageBonus_.get(i)); } if (((bitField0_ & 0x00000004) != 0)) { output.writeUInt32(4, attacks_); } if (((bitField0_ & 0x00000008) != 0)) { output.writeFloat(5, range_); } if (((bitField0_ & 0x00000010) != 0)) { output.writeFloat(6, speed_); } 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 .computeFloatSize(2, damage_); } for (int i = 0; i < damageBonus_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, damageBonus_.get(i)); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(4, attacks_); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeFloatSize(5, range_); } if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream .computeFloatSize(6, speed_); } 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.Data.Weapon)) { return super.equals(obj); } SC2APIProtocol.Data.Weapon other = (SC2APIProtocol.Data.Weapon) obj; if (hasType() != other.hasType()) return false; if (hasType()) { if (type_ != other.type_) return false; } if (hasDamage() != other.hasDamage()) return false; if (hasDamage()) { if (java.lang.Float.floatToIntBits(getDamage()) != java.lang.Float.floatToIntBits( other.getDamage())) return false; } if (!getDamageBonusList() .equals(other.getDamageBonusList())) return false; if (hasAttacks() != other.hasAttacks()) return false; if (hasAttacks()) { if (getAttacks() != other.getAttacks()) return false; } if (hasRange() != other.hasRange()) return false; if (hasRange()) { if (java.lang.Float.floatToIntBits(getRange()) != java.lang.Float.floatToIntBits( other.getRange())) return false; } if (hasSpeed() != other.hasSpeed()) return false; if (hasSpeed()) { if (java.lang.Float.floatToIntBits(getSpeed()) != java.lang.Float.floatToIntBits( other.getSpeed())) 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 (hasDamage()) { hash = (37 * hash) + DAMAGE_FIELD_NUMBER; hash = (53 * hash) + java.lang.Float.floatToIntBits( getDamage()); } if (getDamageBonusCount() > 0) { hash = (37 * hash) + DAMAGE_BONUS_FIELD_NUMBER; hash = (53 * hash) + getDamageBonusList().hashCode(); } if (hasAttacks()) { hash = (37 * hash) + ATTACKS_FIELD_NUMBER; hash = (53 * hash) + getAttacks(); } if (hasRange()) { hash = (37 * hash) + RANGE_FIELD_NUMBER; hash = (53 * hash) + java.lang.Float.floatToIntBits( getRange()); } if (hasSpeed()) { hash = (37 * hash) + SPEED_FIELD_NUMBER; hash = (53 * hash) + java.lang.Float.floatToIntBits( getSpeed()); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static SC2APIProtocol.Data.Weapon parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Data.Weapon parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Data.Weapon parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Data.Weapon parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Data.Weapon parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Data.Weapon parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Data.Weapon parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Data.Weapon 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.Data.Weapon parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static SC2APIProtocol.Data.Weapon 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.Data.Weapon parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Data.Weapon 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.Data.Weapon 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.Weapon} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:SC2APIProtocol.Weapon) SC2APIProtocol.Data.WeaponOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Data.internal_static_SC2APIProtocol_Weapon_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Data.internal_static_SC2APIProtocol_Weapon_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Data.Weapon.class, SC2APIProtocol.Data.Weapon.Builder.class); } // Construct using SC2APIProtocol.Data.Weapon.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); damage_ = 0F; bitField0_ = (bitField0_ & ~0x00000002); if (damageBonusBuilder_ == null) { damageBonus_ = java.util.Collections.emptyList(); } else { damageBonus_ = null; damageBonusBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); attacks_ = 0; bitField0_ = (bitField0_ & ~0x00000008); range_ = 0F; bitField0_ = (bitField0_ & ~0x00000010); speed_ = 0F; bitField0_ = (bitField0_ & ~0x00000020); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return SC2APIProtocol.Data.internal_static_SC2APIProtocol_Weapon_descriptor; } @java.lang.Override public SC2APIProtocol.Data.Weapon getDefaultInstanceForType() { return SC2APIProtocol.Data.Weapon.getDefaultInstance(); } @java.lang.Override public SC2APIProtocol.Data.Weapon build() { SC2APIProtocol.Data.Weapon result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public SC2APIProtocol.Data.Weapon buildPartial() { SC2APIProtocol.Data.Weapon result = new SC2APIProtocol.Data.Weapon(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)) { result.damage_ = damage_; to_bitField0_ |= 0x00000002; } if (damageBonusBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0)) { damageBonus_ = java.util.Collections.unmodifiableList(damageBonus_); bitField0_ = (bitField0_ & ~0x00000004); } result.damageBonus_ = damageBonus_; } else { result.damageBonus_ = damageBonusBuilder_.build(); } if (((from_bitField0_ & 0x00000008) != 0)) { result.attacks_ = attacks_; to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000010) != 0)) { result.range_ = range_; to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000020) != 0)) { result.speed_ = speed_; 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.Data.Weapon) { return mergeFrom((SC2APIProtocol.Data.Weapon)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(SC2APIProtocol.Data.Weapon other) { if (other == SC2APIProtocol.Data.Weapon.getDefaultInstance()) return this; if (other.hasType()) { setType(other.getType()); } if (other.hasDamage()) { setDamage(other.getDamage()); } if (damageBonusBuilder_ == null) { if (!other.damageBonus_.isEmpty()) { if (damageBonus_.isEmpty()) { damageBonus_ = other.damageBonus_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureDamageBonusIsMutable(); damageBonus_.addAll(other.damageBonus_); } onChanged(); } } else { if (!other.damageBonus_.isEmpty()) { if (damageBonusBuilder_.isEmpty()) { damageBonusBuilder_.dispose(); damageBonusBuilder_ = null; damageBonus_ = other.damageBonus_; bitField0_ = (bitField0_ & ~0x00000004); damageBonusBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getDamageBonusFieldBuilder() : null; } else { damageBonusBuilder_.addAllMessages(other.damageBonus_); } } } if (other.hasAttacks()) { setAttacks(other.getAttacks()); } if (other.hasRange()) { setRange(other.getRange()); } if (other.hasSpeed()) { setSpeed(other.getSpeed()); } 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.Data.Weapon.TargetType tmpValue = SC2APIProtocol.Data.Weapon.TargetType.forNumber(tmpRaw); if (tmpValue == null) { mergeUnknownVarintField(1, tmpRaw); } else { type_ = tmpRaw; bitField0_ |= 0x00000001; } break; } // case 8 case 21: { damage_ = input.readFloat(); bitField0_ |= 0x00000002; break; } // case 21 case 26: { SC2APIProtocol.Data.DamageBonus m = input.readMessage( SC2APIProtocol.Data.DamageBonus.PARSER, extensionRegistry); if (damageBonusBuilder_ == null) { ensureDamageBonusIsMutable(); damageBonus_.add(m); } else { damageBonusBuilder_.addMessage(m); } break; } // case 26 case 32: { attacks_ = input.readUInt32(); bitField0_ |= 0x00000008; break; } // case 32 case 45: { range_ = input.readFloat(); bitField0_ |= 0x00000010; break; } // case 45 case 53: { speed_ = input.readFloat(); bitField0_ |= 0x00000020; break; } // case 53 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.Weapon.TargetType type = 1; * @return Whether the type field is set. */ @java.lang.Override public boolean hasType() { return ((bitField0_ & 0x00000001) != 0); } /** * optional .SC2APIProtocol.Weapon.TargetType type = 1; * @return The type. */ @java.lang.Override public SC2APIProtocol.Data.Weapon.TargetType getType() { @SuppressWarnings("deprecation") SC2APIProtocol.Data.Weapon.TargetType result = SC2APIProtocol.Data.Weapon.TargetType.valueOf(type_); return result == null ? SC2APIProtocol.Data.Weapon.TargetType.Ground : result; } /** * optional .SC2APIProtocol.Weapon.TargetType type = 1; * @param value The type to set. * @return This builder for chaining. */ public Builder setType(SC2APIProtocol.Data.Weapon.TargetType value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; type_ = value.getNumber(); onChanged(); return this; } /** * optional .SC2APIProtocol.Weapon.TargetType type = 1; * @return This builder for chaining. */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000001); type_ = 1; onChanged(); return this; } private float damage_ ; /** * optional float damage = 2; * @return Whether the damage field is set. */ @java.lang.Override public boolean hasDamage() { return ((bitField0_ & 0x00000002) != 0); } /** * optional float damage = 2; * @return The damage. */ @java.lang.Override public float getDamage() { return damage_; } /** * optional float damage = 2; * @param value The damage to set. * @return This builder for chaining. */ public Builder setDamage(float value) { bitField0_ |= 0x00000002; damage_ = value; onChanged(); return this; } /** * optional float damage = 2; * @return This builder for chaining. */ public Builder clearDamage() { bitField0_ = (bitField0_ & ~0x00000002); damage_ = 0F; onChanged(); return this; } private java.util.List damageBonus_ = java.util.Collections.emptyList(); private void ensureDamageBonusIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { damageBonus_ = new java.util.ArrayList(damageBonus_); bitField0_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilderV3< SC2APIProtocol.Data.DamageBonus, SC2APIProtocol.Data.DamageBonus.Builder, SC2APIProtocol.Data.DamageBonusOrBuilder> damageBonusBuilder_; /** * repeated .SC2APIProtocol.DamageBonus damage_bonus = 3; */ public java.util.List getDamageBonusList() { if (damageBonusBuilder_ == null) { return java.util.Collections.unmodifiableList(damageBonus_); } else { return damageBonusBuilder_.getMessageList(); } } /** * repeated .SC2APIProtocol.DamageBonus damage_bonus = 3; */ public int getDamageBonusCount() { if (damageBonusBuilder_ == null) { return damageBonus_.size(); } else { return damageBonusBuilder_.getCount(); } } /** * repeated .SC2APIProtocol.DamageBonus damage_bonus = 3; */ public SC2APIProtocol.Data.DamageBonus getDamageBonus(int index) { if (damageBonusBuilder_ == null) { return damageBonus_.get(index); } else { return damageBonusBuilder_.getMessage(index); } } /** * repeated .SC2APIProtocol.DamageBonus damage_bonus = 3; */ public Builder setDamageBonus( int index, SC2APIProtocol.Data.DamageBonus value) { if (damageBonusBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDamageBonusIsMutable(); damageBonus_.set(index, value); onChanged(); } else { damageBonusBuilder_.setMessage(index, value); } return this; } /** * repeated .SC2APIProtocol.DamageBonus damage_bonus = 3; */ public Builder setDamageBonus( int index, SC2APIProtocol.Data.DamageBonus.Builder builderForValue) { if (damageBonusBuilder_ == null) { ensureDamageBonusIsMutable(); damageBonus_.set(index, builderForValue.build()); onChanged(); } else { damageBonusBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .SC2APIProtocol.DamageBonus damage_bonus = 3; */ public Builder addDamageBonus(SC2APIProtocol.Data.DamageBonus value) { if (damageBonusBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDamageBonusIsMutable(); damageBonus_.add(value); onChanged(); } else { damageBonusBuilder_.addMessage(value); } return this; } /** * repeated .SC2APIProtocol.DamageBonus damage_bonus = 3; */ public Builder addDamageBonus( int index, SC2APIProtocol.Data.DamageBonus value) { if (damageBonusBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureDamageBonusIsMutable(); damageBonus_.add(index, value); onChanged(); } else { damageBonusBuilder_.addMessage(index, value); } return this; } /** * repeated .SC2APIProtocol.DamageBonus damage_bonus = 3; */ public Builder addDamageBonus( SC2APIProtocol.Data.DamageBonus.Builder builderForValue) { if (damageBonusBuilder_ == null) { ensureDamageBonusIsMutable(); damageBonus_.add(builderForValue.build()); onChanged(); } else { damageBonusBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .SC2APIProtocol.DamageBonus damage_bonus = 3; */ public Builder addDamageBonus( int index, SC2APIProtocol.Data.DamageBonus.Builder builderForValue) { if (damageBonusBuilder_ == null) { ensureDamageBonusIsMutable(); damageBonus_.add(index, builderForValue.build()); onChanged(); } else { damageBonusBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .SC2APIProtocol.DamageBonus damage_bonus = 3; */ public Builder addAllDamageBonus( java.lang.Iterable values) { if (damageBonusBuilder_ == null) { ensureDamageBonusIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, damageBonus_); onChanged(); } else { damageBonusBuilder_.addAllMessages(values); } return this; } /** * repeated .SC2APIProtocol.DamageBonus damage_bonus = 3; */ public Builder clearDamageBonus() { if (damageBonusBuilder_ == null) { damageBonus_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000004); onChanged(); } else { damageBonusBuilder_.clear(); } return this; } /** * repeated .SC2APIProtocol.DamageBonus damage_bonus = 3; */ public Builder removeDamageBonus(int index) { if (damageBonusBuilder_ == null) { ensureDamageBonusIsMutable(); damageBonus_.remove(index); onChanged(); } else { damageBonusBuilder_.remove(index); } return this; } /** * repeated .SC2APIProtocol.DamageBonus damage_bonus = 3; */ public SC2APIProtocol.Data.DamageBonus.Builder getDamageBonusBuilder( int index) { return getDamageBonusFieldBuilder().getBuilder(index); } /** * repeated .SC2APIProtocol.DamageBonus damage_bonus = 3; */ public SC2APIProtocol.Data.DamageBonusOrBuilder getDamageBonusOrBuilder( int index) { if (damageBonusBuilder_ == null) { return damageBonus_.get(index); } else { return damageBonusBuilder_.getMessageOrBuilder(index); } } /** * repeated .SC2APIProtocol.DamageBonus damage_bonus = 3; */ public java.util.List getDamageBonusOrBuilderList() { if (damageBonusBuilder_ != null) { return damageBonusBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(damageBonus_); } } /** * repeated .SC2APIProtocol.DamageBonus damage_bonus = 3; */ public SC2APIProtocol.Data.DamageBonus.Builder addDamageBonusBuilder() { return getDamageBonusFieldBuilder().addBuilder( SC2APIProtocol.Data.DamageBonus.getDefaultInstance()); } /** * repeated .SC2APIProtocol.DamageBonus damage_bonus = 3; */ public SC2APIProtocol.Data.DamageBonus.Builder addDamageBonusBuilder( int index) { return getDamageBonusFieldBuilder().addBuilder( index, SC2APIProtocol.Data.DamageBonus.getDefaultInstance()); } /** * repeated .SC2APIProtocol.DamageBonus damage_bonus = 3; */ public java.util.List getDamageBonusBuilderList() { return getDamageBonusFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< SC2APIProtocol.Data.DamageBonus, SC2APIProtocol.Data.DamageBonus.Builder, SC2APIProtocol.Data.DamageBonusOrBuilder> getDamageBonusFieldBuilder() { if (damageBonusBuilder_ == null) { damageBonusBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< SC2APIProtocol.Data.DamageBonus, SC2APIProtocol.Data.DamageBonus.Builder, SC2APIProtocol.Data.DamageBonusOrBuilder>( damageBonus_, ((bitField0_ & 0x00000004) != 0), getParentForChildren(), isClean()); damageBonus_ = null; } return damageBonusBuilder_; } private int attacks_ ; /** *
       * Number of hits per attack. (eg. Colossus has 2 beams)
       * 
* * optional uint32 attacks = 4; * @return Whether the attacks field is set. */ @java.lang.Override public boolean hasAttacks() { return ((bitField0_ & 0x00000008) != 0); } /** *
       * Number of hits per attack. (eg. Colossus has 2 beams)
       * 
* * optional uint32 attacks = 4; * @return The attacks. */ @java.lang.Override public int getAttacks() { return attacks_; } /** *
       * Number of hits per attack. (eg. Colossus has 2 beams)
       * 
* * optional uint32 attacks = 4; * @param value The attacks to set. * @return This builder for chaining. */ public Builder setAttacks(int value) { bitField0_ |= 0x00000008; attacks_ = value; onChanged(); return this; } /** *
       * Number of hits per attack. (eg. Colossus has 2 beams)
       * 
* * optional uint32 attacks = 4; * @return This builder for chaining. */ public Builder clearAttacks() { bitField0_ = (bitField0_ & ~0x00000008); attacks_ = 0; onChanged(); return this; } private float range_ ; /** * optional float range = 5; * @return Whether the range field is set. */ @java.lang.Override public boolean hasRange() { return ((bitField0_ & 0x00000010) != 0); } /** * optional float range = 5; * @return The range. */ @java.lang.Override public float getRange() { return range_; } /** * optional float range = 5; * @param value The range to set. * @return This builder for chaining. */ public Builder setRange(float value) { bitField0_ |= 0x00000010; range_ = value; onChanged(); return this; } /** * optional float range = 5; * @return This builder for chaining. */ public Builder clearRange() { bitField0_ = (bitField0_ & ~0x00000010); range_ = 0F; onChanged(); return this; } private float speed_ ; /** *
       * Time between attacks.
       * 
* * optional float speed = 6; * @return Whether the speed field is set. */ @java.lang.Override public boolean hasSpeed() { return ((bitField0_ & 0x00000020) != 0); } /** *
       * Time between attacks.
       * 
* * optional float speed = 6; * @return The speed. */ @java.lang.Override public float getSpeed() { return speed_; } /** *
       * Time between attacks.
       * 
* * optional float speed = 6; * @param value The speed to set. * @return This builder for chaining. */ public Builder setSpeed(float value) { bitField0_ |= 0x00000020; speed_ = value; onChanged(); return this; } /** *
       * Time between attacks.
       * 
* * optional float speed = 6; * @return This builder for chaining. */ public Builder clearSpeed() { bitField0_ = (bitField0_ & ~0x00000020); speed_ = 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.Weapon) } // @@protoc_insertion_point(class_scope:SC2APIProtocol.Weapon) private static final SC2APIProtocol.Data.Weapon DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new SC2APIProtocol.Data.Weapon(); } public static SC2APIProtocol.Data.Weapon getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Weapon 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.Data.Weapon getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface UnitTypeDataOrBuilder extends // @@protoc_insertion_point(interface_extends:SC2APIProtocol.UnitTypeData) com.google.protobuf.MessageOrBuilder { /** *
     * Stable ID.
     * 
* * optional uint32 unit_id = 1; * @return Whether the unitId field is set. */ boolean hasUnitId(); /** *
     * Stable ID.
     * 
* * optional uint32 unit_id = 1; * @return The unitId. */ int getUnitId(); /** *
     * Catalog name of the unit.
     * 
* * optional string name = 2; * @return Whether the name field is set. */ boolean hasName(); /** *
     * Catalog name of the unit.
     * 
* * optional string name = 2; * @return The name. */ java.lang.String getName(); /** *
     * Catalog name of the unit.
     * 
* * optional string name = 2; * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** *
     * If true, the ability may be used by this set of mods/map.
     * 
* * optional bool available = 3; * @return Whether the available field is set. */ boolean hasAvailable(); /** *
     * If true, the ability may be used by this set of mods/map.
     * 
* * optional bool available = 3; * @return The available. */ boolean getAvailable(); /** *
     * Number of cargo slots it occupies in transports.
     * 
* * optional uint32 cargo_size = 4; * @return Whether the cargoSize field is set. */ boolean hasCargoSize(); /** *
     * Number of cargo slots it occupies in transports.
     * 
* * optional uint32 cargo_size = 4; * @return The cargoSize. */ int getCargoSize(); /** * optional uint32 mineral_cost = 12; * @return Whether the mineralCost field is set. */ boolean hasMineralCost(); /** * optional uint32 mineral_cost = 12; * @return The mineralCost. */ int getMineralCost(); /** * optional uint32 vespene_cost = 13; * @return Whether the vespeneCost field is set. */ boolean hasVespeneCost(); /** * optional uint32 vespene_cost = 13; * @return The vespeneCost. */ int getVespeneCost(); /** * optional float food_required = 14; * @return Whether the foodRequired field is set. */ boolean hasFoodRequired(); /** * optional float food_required = 14; * @return The foodRequired. */ float getFoodRequired(); /** * optional float food_provided = 18; * @return Whether the foodProvided field is set. */ boolean hasFoodProvided(); /** * optional float food_provided = 18; * @return The foodProvided. */ float getFoodProvided(); /** *
     * The ability that builds this unit.
     * 
* * optional uint32 ability_id = 15; * @return Whether the abilityId field is set. */ boolean hasAbilityId(); /** *
     * The ability that builds this unit.
     * 
* * optional uint32 ability_id = 15; * @return The abilityId. */ int getAbilityId(); /** * optional .SC2APIProtocol.Race race = 16; * @return Whether the race field is set. */ boolean hasRace(); /** * optional .SC2APIProtocol.Race race = 16; * @return The race. */ SC2APIProtocol.Common.Race getRace(); /** * optional float build_time = 17; * @return Whether the buildTime field is set. */ boolean hasBuildTime(); /** * optional float build_time = 17; * @return The buildTime. */ float getBuildTime(); /** * optional bool has_vespene = 19; * @return Whether the hasVespene field is set. */ boolean hasHasVespene(); /** * optional bool has_vespene = 19; * @return The hasVespene. */ boolean getHasVespene(); /** * optional bool has_minerals = 20; * @return Whether the hasMinerals field is set. */ boolean hasHasMinerals(); /** * optional bool has_minerals = 20; * @return The hasMinerals. */ boolean getHasMinerals(); /** *
     * Range unit reveals vision.
     * 
* * optional float sight_range = 25; * @return Whether the sightRange field is set. */ boolean hasSightRange(); /** *
     * Range unit reveals vision.
     * 
* * optional float sight_range = 25; * @return The sightRange. */ float getSightRange(); /** *
     * Other units that satisfy the same tech requirement.
     * 
* * repeated uint32 tech_alias = 21; * @return A list containing the techAlias. */ java.util.List getTechAliasList(); /** *
     * Other units that satisfy the same tech requirement.
     * 
* * repeated uint32 tech_alias = 21; * @return The count of techAlias. */ int getTechAliasCount(); /** *
     * Other units that satisfy the same tech requirement.
     * 
* * repeated uint32 tech_alias = 21; * @param index The index of the element to return. * @return The techAlias at the given index. */ int getTechAlias(int index); /** *
     * The morphed variant of this unit.
     * 
* * optional uint32 unit_alias = 22; * @return Whether the unitAlias field is set. */ boolean hasUnitAlias(); /** *
     * The morphed variant of this unit.
     * 
* * optional uint32 unit_alias = 22; * @return The unitAlias. */ int getUnitAlias(); /** *
     * Structure required to build this unit. (Or any with the same tech_alias)
     * 
* * optional uint32 tech_requirement = 23; * @return Whether the techRequirement field is set. */ boolean hasTechRequirement(); /** *
     * Structure required to build this unit. (Or any with the same tech_alias)
     * 
* * optional uint32 tech_requirement = 23; * @return The techRequirement. */ int getTechRequirement(); /** *
     * Whether tech_requirement is an add-on.
     * 
* * optional bool require_attached = 24; * @return Whether the requireAttached field is set. */ boolean hasRequireAttached(); /** *
     * Whether tech_requirement is an add-on.
     * 
* * optional bool require_attached = 24; * @return The requireAttached. */ boolean getRequireAttached(); /** *
     * Values include changes from upgrades
     * 
* * repeated .SC2APIProtocol.Attribute attributes = 8; * @return A list containing the attributes. */ java.util.List getAttributesList(); /** *
     * Values include changes from upgrades
     * 
* * repeated .SC2APIProtocol.Attribute attributes = 8; * @return The count of attributes. */ int getAttributesCount(); /** *
     * Values include changes from upgrades
     * 
* * repeated .SC2APIProtocol.Attribute attributes = 8; * @param index The index of the element to return. * @return The attributes at the given index. */ SC2APIProtocol.Data.Attribute getAttributes(int index); /** * optional float movement_speed = 9; * @return Whether the movementSpeed field is set. */ boolean hasMovementSpeed(); /** * optional float movement_speed = 9; * @return The movementSpeed. */ float getMovementSpeed(); /** * optional float armor = 10; * @return Whether the armor field is set. */ boolean hasArmor(); /** * optional float armor = 10; * @return The armor. */ float getArmor(); /** * repeated .SC2APIProtocol.Weapon weapons = 11; */ java.util.List getWeaponsList(); /** * repeated .SC2APIProtocol.Weapon weapons = 11; */ SC2APIProtocol.Data.Weapon getWeapons(int index); /** * repeated .SC2APIProtocol.Weapon weapons = 11; */ int getWeaponsCount(); /** * repeated .SC2APIProtocol.Weapon weapons = 11; */ java.util.List getWeaponsOrBuilderList(); /** * repeated .SC2APIProtocol.Weapon weapons = 11; */ SC2APIProtocol.Data.WeaponOrBuilder getWeaponsOrBuilder( int index); } /** * Protobuf type {@code SC2APIProtocol.UnitTypeData} */ public static final class UnitTypeData extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:SC2APIProtocol.UnitTypeData) UnitTypeDataOrBuilder { private static final long serialVersionUID = 0L; // Use UnitTypeData.newBuilder() to construct. private UnitTypeData(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private UnitTypeData() { name_ = ""; race_ = 0; techAlias_ = emptyIntList(); attributes_ = java.util.Collections.emptyList(); weapons_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new UnitTypeData(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Data.internal_static_SC2APIProtocol_UnitTypeData_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Data.internal_static_SC2APIProtocol_UnitTypeData_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Data.UnitTypeData.class, SC2APIProtocol.Data.UnitTypeData.Builder.class); } private int bitField0_; public static final int UNIT_ID_FIELD_NUMBER = 1; private int unitId_; /** *
     * Stable ID.
     * 
* * optional uint32 unit_id = 1; * @return Whether the unitId field is set. */ @java.lang.Override public boolean hasUnitId() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * Stable ID.
     * 
* * optional uint32 unit_id = 1; * @return The unitId. */ @java.lang.Override public int getUnitId() { return unitId_; } public static final int NAME_FIELD_NUMBER = 2; private volatile java.lang.Object name_; /** *
     * Catalog name of the unit.
     * 
* * optional string name = 2; * @return Whether the name field is set. */ @java.lang.Override public boolean hasName() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * Catalog name of the unit.
     * 
* * optional string name = 2; * @return The name. */ @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; 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()) { name_ = s; } return s; } } /** *
     * Catalog name of the unit.
     * 
* * optional string name = 2; * @return The bytes for name. */ @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int AVAILABLE_FIELD_NUMBER = 3; private boolean available_; /** *
     * If true, the ability may be used by this set of mods/map.
     * 
* * optional bool available = 3; * @return Whether the available field is set. */ @java.lang.Override public boolean hasAvailable() { return ((bitField0_ & 0x00000004) != 0); } /** *
     * If true, the ability may be used by this set of mods/map.
     * 
* * optional bool available = 3; * @return The available. */ @java.lang.Override public boolean getAvailable() { return available_; } public static final int CARGO_SIZE_FIELD_NUMBER = 4; private int cargoSize_; /** *
     * Number of cargo slots it occupies in transports.
     * 
* * optional uint32 cargo_size = 4; * @return Whether the cargoSize field is set. */ @java.lang.Override public boolean hasCargoSize() { return ((bitField0_ & 0x00000008) != 0); } /** *
     * Number of cargo slots it occupies in transports.
     * 
* * optional uint32 cargo_size = 4; * @return The cargoSize. */ @java.lang.Override public int getCargoSize() { return cargoSize_; } public static final int MINERAL_COST_FIELD_NUMBER = 12; private int mineralCost_; /** * optional uint32 mineral_cost = 12; * @return Whether the mineralCost field is set. */ @java.lang.Override public boolean hasMineralCost() { return ((bitField0_ & 0x00000010) != 0); } /** * optional uint32 mineral_cost = 12; * @return The mineralCost. */ @java.lang.Override public int getMineralCost() { return mineralCost_; } public static final int VESPENE_COST_FIELD_NUMBER = 13; private int vespeneCost_; /** * optional uint32 vespene_cost = 13; * @return Whether the vespeneCost field is set. */ @java.lang.Override public boolean hasVespeneCost() { return ((bitField0_ & 0x00000020) != 0); } /** * optional uint32 vespene_cost = 13; * @return The vespeneCost. */ @java.lang.Override public int getVespeneCost() { return vespeneCost_; } public static final int FOOD_REQUIRED_FIELD_NUMBER = 14; private float foodRequired_; /** * optional float food_required = 14; * @return Whether the foodRequired field is set. */ @java.lang.Override public boolean hasFoodRequired() { return ((bitField0_ & 0x00000040) != 0); } /** * optional float food_required = 14; * @return The foodRequired. */ @java.lang.Override public float getFoodRequired() { return foodRequired_; } public static final int FOOD_PROVIDED_FIELD_NUMBER = 18; private float foodProvided_; /** * optional float food_provided = 18; * @return Whether the foodProvided field is set. */ @java.lang.Override public boolean hasFoodProvided() { return ((bitField0_ & 0x00000080) != 0); } /** * optional float food_provided = 18; * @return The foodProvided. */ @java.lang.Override public float getFoodProvided() { return foodProvided_; } public static final int ABILITY_ID_FIELD_NUMBER = 15; private int abilityId_; /** *
     * The ability that builds this unit.
     * 
* * optional uint32 ability_id = 15; * @return Whether the abilityId field is set. */ @java.lang.Override public boolean hasAbilityId() { return ((bitField0_ & 0x00000100) != 0); } /** *
     * The ability that builds this unit.
     * 
* * optional uint32 ability_id = 15; * @return The abilityId. */ @java.lang.Override public int getAbilityId() { return abilityId_; } public static final int RACE_FIELD_NUMBER = 16; private int race_; /** * optional .SC2APIProtocol.Race race = 16; * @return Whether the race field is set. */ @java.lang.Override public boolean hasRace() { return ((bitField0_ & 0x00000200) != 0); } /** * optional .SC2APIProtocol.Race race = 16; * @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 BUILD_TIME_FIELD_NUMBER = 17; private float buildTime_; /** * optional float build_time = 17; * @return Whether the buildTime field is set. */ @java.lang.Override public boolean hasBuildTime() { return ((bitField0_ & 0x00000400) != 0); } /** * optional float build_time = 17; * @return The buildTime. */ @java.lang.Override public float getBuildTime() { return buildTime_; } public static final int HAS_VESPENE_FIELD_NUMBER = 19; private boolean hasVespene_; /** * optional bool has_vespene = 19; * @return Whether the hasVespene field is set. */ @java.lang.Override public boolean hasHasVespene() { return ((bitField0_ & 0x00000800) != 0); } /** * optional bool has_vespene = 19; * @return The hasVespene. */ @java.lang.Override public boolean getHasVespene() { return hasVespene_; } public static final int HAS_MINERALS_FIELD_NUMBER = 20; private boolean hasMinerals_; /** * optional bool has_minerals = 20; * @return Whether the hasMinerals field is set. */ @java.lang.Override public boolean hasHasMinerals() { return ((bitField0_ & 0x00001000) != 0); } /** * optional bool has_minerals = 20; * @return The hasMinerals. */ @java.lang.Override public boolean getHasMinerals() { return hasMinerals_; } public static final int SIGHT_RANGE_FIELD_NUMBER = 25; private float sightRange_; /** *
     * Range unit reveals vision.
     * 
* * optional float sight_range = 25; * @return Whether the sightRange field is set. */ @java.lang.Override public boolean hasSightRange() { return ((bitField0_ & 0x00002000) != 0); } /** *
     * Range unit reveals vision.
     * 
* * optional float sight_range = 25; * @return The sightRange. */ @java.lang.Override public float getSightRange() { return sightRange_; } public static final int TECH_ALIAS_FIELD_NUMBER = 21; private com.google.protobuf.Internal.IntList techAlias_; /** *
     * Other units that satisfy the same tech requirement.
     * 
* * repeated uint32 tech_alias = 21; * @return A list containing the techAlias. */ @java.lang.Override public java.util.List getTechAliasList() { return techAlias_; } /** *
     * Other units that satisfy the same tech requirement.
     * 
* * repeated uint32 tech_alias = 21; * @return The count of techAlias. */ public int getTechAliasCount() { return techAlias_.size(); } /** *
     * Other units that satisfy the same tech requirement.
     * 
* * repeated uint32 tech_alias = 21; * @param index The index of the element to return. * @return The techAlias at the given index. */ public int getTechAlias(int index) { return techAlias_.getInt(index); } public static final int UNIT_ALIAS_FIELD_NUMBER = 22; private int unitAlias_; /** *
     * The morphed variant of this unit.
     * 
* * optional uint32 unit_alias = 22; * @return Whether the unitAlias field is set. */ @java.lang.Override public boolean hasUnitAlias() { return ((bitField0_ & 0x00004000) != 0); } /** *
     * The morphed variant of this unit.
     * 
* * optional uint32 unit_alias = 22; * @return The unitAlias. */ @java.lang.Override public int getUnitAlias() { return unitAlias_; } public static final int TECH_REQUIREMENT_FIELD_NUMBER = 23; private int techRequirement_; /** *
     * Structure required to build this unit. (Or any with the same tech_alias)
     * 
* * optional uint32 tech_requirement = 23; * @return Whether the techRequirement field is set. */ @java.lang.Override public boolean hasTechRequirement() { return ((bitField0_ & 0x00008000) != 0); } /** *
     * Structure required to build this unit. (Or any with the same tech_alias)
     * 
* * optional uint32 tech_requirement = 23; * @return The techRequirement. */ @java.lang.Override public int getTechRequirement() { return techRequirement_; } public static final int REQUIRE_ATTACHED_FIELD_NUMBER = 24; private boolean requireAttached_; /** *
     * Whether tech_requirement is an add-on.
     * 
* * optional bool require_attached = 24; * @return Whether the requireAttached field is set. */ @java.lang.Override public boolean hasRequireAttached() { return ((bitField0_ & 0x00010000) != 0); } /** *
     * Whether tech_requirement is an add-on.
     * 
* * optional bool require_attached = 24; * @return The requireAttached. */ @java.lang.Override public boolean getRequireAttached() { return requireAttached_; } public static final int ATTRIBUTES_FIELD_NUMBER = 8; private java.util.List attributes_; private static final com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, SC2APIProtocol.Data.Attribute> attributes_converter_ = new com.google.protobuf.Internal.ListAdapter.Converter< java.lang.Integer, SC2APIProtocol.Data.Attribute>() { public SC2APIProtocol.Data.Attribute convert(java.lang.Integer from) { @SuppressWarnings("deprecation") SC2APIProtocol.Data.Attribute result = SC2APIProtocol.Data.Attribute.valueOf(from); return result == null ? SC2APIProtocol.Data.Attribute.Light : result; } }; /** *
     * Values include changes from upgrades
     * 
* * repeated .SC2APIProtocol.Attribute attributes = 8; * @return A list containing the attributes. */ @java.lang.Override public java.util.List getAttributesList() { return new com.google.protobuf.Internal.ListAdapter< java.lang.Integer, SC2APIProtocol.Data.Attribute>(attributes_, attributes_converter_); } /** *
     * Values include changes from upgrades
     * 
* * repeated .SC2APIProtocol.Attribute attributes = 8; * @return The count of attributes. */ @java.lang.Override public int getAttributesCount() { return attributes_.size(); } /** *
     * Values include changes from upgrades
     * 
* * repeated .SC2APIProtocol.Attribute attributes = 8; * @param index The index of the element to return. * @return The attributes at the given index. */ @java.lang.Override public SC2APIProtocol.Data.Attribute getAttributes(int index) { return attributes_converter_.convert(attributes_.get(index)); } public static final int MOVEMENT_SPEED_FIELD_NUMBER = 9; private float movementSpeed_; /** * optional float movement_speed = 9; * @return Whether the movementSpeed field is set. */ @java.lang.Override public boolean hasMovementSpeed() { return ((bitField0_ & 0x00020000) != 0); } /** * optional float movement_speed = 9; * @return The movementSpeed. */ @java.lang.Override public float getMovementSpeed() { return movementSpeed_; } public static final int ARMOR_FIELD_NUMBER = 10; private float armor_; /** * optional float armor = 10; * @return Whether the armor field is set. */ @java.lang.Override public boolean hasArmor() { return ((bitField0_ & 0x00040000) != 0); } /** * optional float armor = 10; * @return The armor. */ @java.lang.Override public float getArmor() { return armor_; } public static final int WEAPONS_FIELD_NUMBER = 11; private java.util.List weapons_; /** * repeated .SC2APIProtocol.Weapon weapons = 11; */ @java.lang.Override public java.util.List getWeaponsList() { return weapons_; } /** * repeated .SC2APIProtocol.Weapon weapons = 11; */ @java.lang.Override public java.util.List getWeaponsOrBuilderList() { return weapons_; } /** * repeated .SC2APIProtocol.Weapon weapons = 11; */ @java.lang.Override public int getWeaponsCount() { return weapons_.size(); } /** * repeated .SC2APIProtocol.Weapon weapons = 11; */ @java.lang.Override public SC2APIProtocol.Data.Weapon getWeapons(int index) { return weapons_.get(index); } /** * repeated .SC2APIProtocol.Weapon weapons = 11; */ @java.lang.Override public SC2APIProtocol.Data.WeaponOrBuilder getWeaponsOrBuilder( int index) { return weapons_.get(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeUInt32(1, unitId_); } if (((bitField0_ & 0x00000002) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_); } if (((bitField0_ & 0x00000004) != 0)) { output.writeBool(3, available_); } if (((bitField0_ & 0x00000008) != 0)) { output.writeUInt32(4, cargoSize_); } for (int i = 0; i < attributes_.size(); i++) { output.writeEnum(8, attributes_.get(i)); } if (((bitField0_ & 0x00020000) != 0)) { output.writeFloat(9, movementSpeed_); } if (((bitField0_ & 0x00040000) != 0)) { output.writeFloat(10, armor_); } for (int i = 0; i < weapons_.size(); i++) { output.writeMessage(11, weapons_.get(i)); } if (((bitField0_ & 0x00000010) != 0)) { output.writeUInt32(12, mineralCost_); } if (((bitField0_ & 0x00000020) != 0)) { output.writeUInt32(13, vespeneCost_); } if (((bitField0_ & 0x00000040) != 0)) { output.writeFloat(14, foodRequired_); } if (((bitField0_ & 0x00000100) != 0)) { output.writeUInt32(15, abilityId_); } if (((bitField0_ & 0x00000200) != 0)) { output.writeEnum(16, race_); } if (((bitField0_ & 0x00000400) != 0)) { output.writeFloat(17, buildTime_); } if (((bitField0_ & 0x00000080) != 0)) { output.writeFloat(18, foodProvided_); } if (((bitField0_ & 0x00000800) != 0)) { output.writeBool(19, hasVespene_); } if (((bitField0_ & 0x00001000) != 0)) { output.writeBool(20, hasMinerals_); } for (int i = 0; i < techAlias_.size(); i++) { output.writeUInt32(21, techAlias_.getInt(i)); } if (((bitField0_ & 0x00004000) != 0)) { output.writeUInt32(22, unitAlias_); } if (((bitField0_ & 0x00008000) != 0)) { output.writeUInt32(23, techRequirement_); } if (((bitField0_ & 0x00010000) != 0)) { output.writeBool(24, requireAttached_); } if (((bitField0_ & 0x00002000) != 0)) { output.writeFloat(25, sightRange_); } 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, unitId_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(3, available_); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(4, cargoSize_); } { int dataSize = 0; for (int i = 0; i < attributes_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeEnumSizeNoTag(attributes_.get(i)); } size += dataSize; size += 1 * attributes_.size(); } if (((bitField0_ & 0x00020000) != 0)) { size += com.google.protobuf.CodedOutputStream .computeFloatSize(9, movementSpeed_); } if (((bitField0_ & 0x00040000) != 0)) { size += com.google.protobuf.CodedOutputStream .computeFloatSize(10, armor_); } for (int i = 0; i < weapons_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(11, weapons_.get(i)); } if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(12, mineralCost_); } if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(13, vespeneCost_); } if (((bitField0_ & 0x00000040) != 0)) { size += com.google.protobuf.CodedOutputStream .computeFloatSize(14, foodRequired_); } if (((bitField0_ & 0x00000100) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(15, abilityId_); } if (((bitField0_ & 0x00000200) != 0)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(16, race_); } if (((bitField0_ & 0x00000400) != 0)) { size += com.google.protobuf.CodedOutputStream .computeFloatSize(17, buildTime_); } if (((bitField0_ & 0x00000080) != 0)) { size += com.google.protobuf.CodedOutputStream .computeFloatSize(18, foodProvided_); } if (((bitField0_ & 0x00000800) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(19, hasVespene_); } if (((bitField0_ & 0x00001000) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(20, hasMinerals_); } { int dataSize = 0; for (int i = 0; i < techAlias_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeUInt32SizeNoTag(techAlias_.getInt(i)); } size += dataSize; size += 2 * getTechAliasList().size(); } if (((bitField0_ & 0x00004000) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(22, unitAlias_); } if (((bitField0_ & 0x00008000) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(23, techRequirement_); } if (((bitField0_ & 0x00010000) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(24, requireAttached_); } if (((bitField0_ & 0x00002000) != 0)) { size += com.google.protobuf.CodedOutputStream .computeFloatSize(25, sightRange_); } 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.Data.UnitTypeData)) { return super.equals(obj); } SC2APIProtocol.Data.UnitTypeData other = (SC2APIProtocol.Data.UnitTypeData) obj; if (hasUnitId() != other.hasUnitId()) return false; if (hasUnitId()) { if (getUnitId() != other.getUnitId()) return false; } if (hasName() != other.hasName()) return false; if (hasName()) { if (!getName() .equals(other.getName())) return false; } if (hasAvailable() != other.hasAvailable()) return false; if (hasAvailable()) { if (getAvailable() != other.getAvailable()) return false; } if (hasCargoSize() != other.hasCargoSize()) return false; if (hasCargoSize()) { if (getCargoSize() != other.getCargoSize()) return false; } if (hasMineralCost() != other.hasMineralCost()) return false; if (hasMineralCost()) { if (getMineralCost() != other.getMineralCost()) return false; } if (hasVespeneCost() != other.hasVespeneCost()) return false; if (hasVespeneCost()) { if (getVespeneCost() != other.getVespeneCost()) return false; } if (hasFoodRequired() != other.hasFoodRequired()) return false; if (hasFoodRequired()) { if (java.lang.Float.floatToIntBits(getFoodRequired()) != java.lang.Float.floatToIntBits( other.getFoodRequired())) return false; } if (hasFoodProvided() != other.hasFoodProvided()) return false; if (hasFoodProvided()) { if (java.lang.Float.floatToIntBits(getFoodProvided()) != java.lang.Float.floatToIntBits( other.getFoodProvided())) return false; } if (hasAbilityId() != other.hasAbilityId()) return false; if (hasAbilityId()) { if (getAbilityId() != other.getAbilityId()) return false; } if (hasRace() != other.hasRace()) return false; if (hasRace()) { if (race_ != other.race_) return false; } if (hasBuildTime() != other.hasBuildTime()) return false; if (hasBuildTime()) { if (java.lang.Float.floatToIntBits(getBuildTime()) != java.lang.Float.floatToIntBits( other.getBuildTime())) return false; } if (hasHasVespene() != other.hasHasVespene()) return false; if (hasHasVespene()) { if (getHasVespene() != other.getHasVespene()) return false; } if (hasHasMinerals() != other.hasHasMinerals()) return false; if (hasHasMinerals()) { if (getHasMinerals() != other.getHasMinerals()) return false; } if (hasSightRange() != other.hasSightRange()) return false; if (hasSightRange()) { if (java.lang.Float.floatToIntBits(getSightRange()) != java.lang.Float.floatToIntBits( other.getSightRange())) return false; } if (!getTechAliasList() .equals(other.getTechAliasList())) return false; if (hasUnitAlias() != other.hasUnitAlias()) return false; if (hasUnitAlias()) { if (getUnitAlias() != other.getUnitAlias()) return false; } if (hasTechRequirement() != other.hasTechRequirement()) return false; if (hasTechRequirement()) { if (getTechRequirement() != other.getTechRequirement()) return false; } if (hasRequireAttached() != other.hasRequireAttached()) return false; if (hasRequireAttached()) { if (getRequireAttached() != other.getRequireAttached()) return false; } if (!attributes_.equals(other.attributes_)) return false; if (hasMovementSpeed() != other.hasMovementSpeed()) return false; if (hasMovementSpeed()) { if (java.lang.Float.floatToIntBits(getMovementSpeed()) != java.lang.Float.floatToIntBits( other.getMovementSpeed())) return false; } if (hasArmor() != other.hasArmor()) return false; if (hasArmor()) { if (java.lang.Float.floatToIntBits(getArmor()) != java.lang.Float.floatToIntBits( other.getArmor())) return false; } if (!getWeaponsList() .equals(other.getWeaponsList())) 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 (hasUnitId()) { hash = (37 * hash) + UNIT_ID_FIELD_NUMBER; hash = (53 * hash) + getUnitId(); } if (hasName()) { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); } if (hasAvailable()) { hash = (37 * hash) + AVAILABLE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getAvailable()); } if (hasCargoSize()) { hash = (37 * hash) + CARGO_SIZE_FIELD_NUMBER; hash = (53 * hash) + getCargoSize(); } if (hasMineralCost()) { hash = (37 * hash) + MINERAL_COST_FIELD_NUMBER; hash = (53 * hash) + getMineralCost(); } if (hasVespeneCost()) { hash = (37 * hash) + VESPENE_COST_FIELD_NUMBER; hash = (53 * hash) + getVespeneCost(); } if (hasFoodRequired()) { hash = (37 * hash) + FOOD_REQUIRED_FIELD_NUMBER; hash = (53 * hash) + java.lang.Float.floatToIntBits( getFoodRequired()); } if (hasFoodProvided()) { hash = (37 * hash) + FOOD_PROVIDED_FIELD_NUMBER; hash = (53 * hash) + java.lang.Float.floatToIntBits( getFoodProvided()); } if (hasAbilityId()) { hash = (37 * hash) + ABILITY_ID_FIELD_NUMBER; hash = (53 * hash) + getAbilityId(); } if (hasRace()) { hash = (37 * hash) + RACE_FIELD_NUMBER; hash = (53 * hash) + race_; } if (hasBuildTime()) { hash = (37 * hash) + BUILD_TIME_FIELD_NUMBER; hash = (53 * hash) + java.lang.Float.floatToIntBits( getBuildTime()); } if (hasHasVespene()) { hash = (37 * hash) + HAS_VESPENE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getHasVespene()); } if (hasHasMinerals()) { hash = (37 * hash) + HAS_MINERALS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getHasMinerals()); } if (hasSightRange()) { hash = (37 * hash) + SIGHT_RANGE_FIELD_NUMBER; hash = (53 * hash) + java.lang.Float.floatToIntBits( getSightRange()); } if (getTechAliasCount() > 0) { hash = (37 * hash) + TECH_ALIAS_FIELD_NUMBER; hash = (53 * hash) + getTechAliasList().hashCode(); } if (hasUnitAlias()) { hash = (37 * hash) + UNIT_ALIAS_FIELD_NUMBER; hash = (53 * hash) + getUnitAlias(); } if (hasTechRequirement()) { hash = (37 * hash) + TECH_REQUIREMENT_FIELD_NUMBER; hash = (53 * hash) + getTechRequirement(); } if (hasRequireAttached()) { hash = (37 * hash) + REQUIRE_ATTACHED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getRequireAttached()); } if (getAttributesCount() > 0) { hash = (37 * hash) + ATTRIBUTES_FIELD_NUMBER; hash = (53 * hash) + attributes_.hashCode(); } if (hasMovementSpeed()) { hash = (37 * hash) + MOVEMENT_SPEED_FIELD_NUMBER; hash = (53 * hash) + java.lang.Float.floatToIntBits( getMovementSpeed()); } if (hasArmor()) { hash = (37 * hash) + ARMOR_FIELD_NUMBER; hash = (53 * hash) + java.lang.Float.floatToIntBits( getArmor()); } if (getWeaponsCount() > 0) { hash = (37 * hash) + WEAPONS_FIELD_NUMBER; hash = (53 * hash) + getWeaponsList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static SC2APIProtocol.Data.UnitTypeData parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Data.UnitTypeData parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Data.UnitTypeData parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Data.UnitTypeData parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Data.UnitTypeData parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Data.UnitTypeData parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Data.UnitTypeData parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Data.UnitTypeData 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.Data.UnitTypeData parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static SC2APIProtocol.Data.UnitTypeData 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.Data.UnitTypeData parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Data.UnitTypeData 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.Data.UnitTypeData 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.UnitTypeData} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:SC2APIProtocol.UnitTypeData) SC2APIProtocol.Data.UnitTypeDataOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Data.internal_static_SC2APIProtocol_UnitTypeData_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Data.internal_static_SC2APIProtocol_UnitTypeData_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Data.UnitTypeData.class, SC2APIProtocol.Data.UnitTypeData.Builder.class); } // Construct using SC2APIProtocol.Data.UnitTypeData.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); unitId_ = 0; bitField0_ = (bitField0_ & ~0x00000001); name_ = ""; bitField0_ = (bitField0_ & ~0x00000002); available_ = false; bitField0_ = (bitField0_ & ~0x00000004); cargoSize_ = 0; bitField0_ = (bitField0_ & ~0x00000008); mineralCost_ = 0; bitField0_ = (bitField0_ & ~0x00000010); vespeneCost_ = 0; bitField0_ = (bitField0_ & ~0x00000020); foodRequired_ = 0F; bitField0_ = (bitField0_ & ~0x00000040); foodProvided_ = 0F; bitField0_ = (bitField0_ & ~0x00000080); abilityId_ = 0; bitField0_ = (bitField0_ & ~0x00000100); race_ = 0; bitField0_ = (bitField0_ & ~0x00000200); buildTime_ = 0F; bitField0_ = (bitField0_ & ~0x00000400); hasVespene_ = false; bitField0_ = (bitField0_ & ~0x00000800); hasMinerals_ = false; bitField0_ = (bitField0_ & ~0x00001000); sightRange_ = 0F; bitField0_ = (bitField0_ & ~0x00002000); techAlias_ = emptyIntList(); bitField0_ = (bitField0_ & ~0x00004000); unitAlias_ = 0; bitField0_ = (bitField0_ & ~0x00008000); techRequirement_ = 0; bitField0_ = (bitField0_ & ~0x00010000); requireAttached_ = false; bitField0_ = (bitField0_ & ~0x00020000); attributes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00040000); movementSpeed_ = 0F; bitField0_ = (bitField0_ & ~0x00080000); armor_ = 0F; bitField0_ = (bitField0_ & ~0x00100000); if (weaponsBuilder_ == null) { weapons_ = java.util.Collections.emptyList(); } else { weapons_ = null; weaponsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00200000); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return SC2APIProtocol.Data.internal_static_SC2APIProtocol_UnitTypeData_descriptor; } @java.lang.Override public SC2APIProtocol.Data.UnitTypeData getDefaultInstanceForType() { return SC2APIProtocol.Data.UnitTypeData.getDefaultInstance(); } @java.lang.Override public SC2APIProtocol.Data.UnitTypeData build() { SC2APIProtocol.Data.UnitTypeData result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public SC2APIProtocol.Data.UnitTypeData buildPartial() { SC2APIProtocol.Data.UnitTypeData result = new SC2APIProtocol.Data.UnitTypeData(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.unitId_ = unitId_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { to_bitField0_ |= 0x00000002; } result.name_ = name_; if (((from_bitField0_ & 0x00000004) != 0)) { result.available_ = available_; to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000008) != 0)) { result.cargoSize_ = cargoSize_; to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000010) != 0)) { result.mineralCost_ = mineralCost_; to_bitField0_ |= 0x00000010; } if (((from_bitField0_ & 0x00000020) != 0)) { result.vespeneCost_ = vespeneCost_; to_bitField0_ |= 0x00000020; } if (((from_bitField0_ & 0x00000040) != 0)) { result.foodRequired_ = foodRequired_; to_bitField0_ |= 0x00000040; } if (((from_bitField0_ & 0x00000080) != 0)) { result.foodProvided_ = foodProvided_; to_bitField0_ |= 0x00000080; } if (((from_bitField0_ & 0x00000100) != 0)) { result.abilityId_ = abilityId_; to_bitField0_ |= 0x00000100; } if (((from_bitField0_ & 0x00000200) != 0)) { to_bitField0_ |= 0x00000200; } result.race_ = race_; if (((from_bitField0_ & 0x00000400) != 0)) { result.buildTime_ = buildTime_; to_bitField0_ |= 0x00000400; } if (((from_bitField0_ & 0x00000800) != 0)) { result.hasVespene_ = hasVespene_; to_bitField0_ |= 0x00000800; } if (((from_bitField0_ & 0x00001000) != 0)) { result.hasMinerals_ = hasMinerals_; to_bitField0_ |= 0x00001000; } if (((from_bitField0_ & 0x00002000) != 0)) { result.sightRange_ = sightRange_; to_bitField0_ |= 0x00002000; } if (((bitField0_ & 0x00004000) != 0)) { techAlias_.makeImmutable(); bitField0_ = (bitField0_ & ~0x00004000); } result.techAlias_ = techAlias_; if (((from_bitField0_ & 0x00008000) != 0)) { result.unitAlias_ = unitAlias_; to_bitField0_ |= 0x00004000; } if (((from_bitField0_ & 0x00010000) != 0)) { result.techRequirement_ = techRequirement_; to_bitField0_ |= 0x00008000; } if (((from_bitField0_ & 0x00020000) != 0)) { result.requireAttached_ = requireAttached_; to_bitField0_ |= 0x00010000; } if (((bitField0_ & 0x00040000) != 0)) { attributes_ = java.util.Collections.unmodifiableList(attributes_); bitField0_ = (bitField0_ & ~0x00040000); } result.attributes_ = attributes_; if (((from_bitField0_ & 0x00080000) != 0)) { result.movementSpeed_ = movementSpeed_; to_bitField0_ |= 0x00020000; } if (((from_bitField0_ & 0x00100000) != 0)) { result.armor_ = armor_; to_bitField0_ |= 0x00040000; } if (weaponsBuilder_ == null) { if (((bitField0_ & 0x00200000) != 0)) { weapons_ = java.util.Collections.unmodifiableList(weapons_); bitField0_ = (bitField0_ & ~0x00200000); } result.weapons_ = weapons_; } else { result.weapons_ = weaponsBuilder_.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.Data.UnitTypeData) { return mergeFrom((SC2APIProtocol.Data.UnitTypeData)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(SC2APIProtocol.Data.UnitTypeData other) { if (other == SC2APIProtocol.Data.UnitTypeData.getDefaultInstance()) return this; if (other.hasUnitId()) { setUnitId(other.getUnitId()); } if (other.hasName()) { bitField0_ |= 0x00000002; name_ = other.name_; onChanged(); } if (other.hasAvailable()) { setAvailable(other.getAvailable()); } if (other.hasCargoSize()) { setCargoSize(other.getCargoSize()); } if (other.hasMineralCost()) { setMineralCost(other.getMineralCost()); } if (other.hasVespeneCost()) { setVespeneCost(other.getVespeneCost()); } if (other.hasFoodRequired()) { setFoodRequired(other.getFoodRequired()); } if (other.hasFoodProvided()) { setFoodProvided(other.getFoodProvided()); } if (other.hasAbilityId()) { setAbilityId(other.getAbilityId()); } if (other.hasRace()) { setRace(other.getRace()); } if (other.hasBuildTime()) { setBuildTime(other.getBuildTime()); } if (other.hasHasVespene()) { setHasVespene(other.getHasVespene()); } if (other.hasHasMinerals()) { setHasMinerals(other.getHasMinerals()); } if (other.hasSightRange()) { setSightRange(other.getSightRange()); } if (!other.techAlias_.isEmpty()) { if (techAlias_.isEmpty()) { techAlias_ = other.techAlias_; bitField0_ = (bitField0_ & ~0x00004000); } else { ensureTechAliasIsMutable(); techAlias_.addAll(other.techAlias_); } onChanged(); } if (other.hasUnitAlias()) { setUnitAlias(other.getUnitAlias()); } if (other.hasTechRequirement()) { setTechRequirement(other.getTechRequirement()); } if (other.hasRequireAttached()) { setRequireAttached(other.getRequireAttached()); } if (!other.attributes_.isEmpty()) { if (attributes_.isEmpty()) { attributes_ = other.attributes_; bitField0_ = (bitField0_ & ~0x00040000); } else { ensureAttributesIsMutable(); attributes_.addAll(other.attributes_); } onChanged(); } if (other.hasMovementSpeed()) { setMovementSpeed(other.getMovementSpeed()); } if (other.hasArmor()) { setArmor(other.getArmor()); } if (weaponsBuilder_ == null) { if (!other.weapons_.isEmpty()) { if (weapons_.isEmpty()) { weapons_ = other.weapons_; bitField0_ = (bitField0_ & ~0x00200000); } else { ensureWeaponsIsMutable(); weapons_.addAll(other.weapons_); } onChanged(); } } else { if (!other.weapons_.isEmpty()) { if (weaponsBuilder_.isEmpty()) { weaponsBuilder_.dispose(); weaponsBuilder_ = null; weapons_ = other.weapons_; bitField0_ = (bitField0_ & ~0x00200000); weaponsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getWeaponsFieldBuilder() : null; } else { weaponsBuilder_.addAllMessages(other.weapons_); } } } 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: { unitId_ = input.readUInt32(); bitField0_ |= 0x00000001; break; } // case 8 case 18: { name_ = input.readBytes(); bitField0_ |= 0x00000002; break; } // case 18 case 24: { available_ = input.readBool(); bitField0_ |= 0x00000004; break; } // case 24 case 32: { cargoSize_ = input.readUInt32(); bitField0_ |= 0x00000008; break; } // case 32 case 64: { int tmpRaw = input.readEnum(); SC2APIProtocol.Data.Attribute tmpValue = SC2APIProtocol.Data.Attribute.forNumber(tmpRaw); if (tmpValue == null) { mergeUnknownVarintField(8, tmpRaw); } else { ensureAttributesIsMutable(); attributes_.add(tmpRaw); } break; } // case 64 case 66: { int length = input.readRawVarint32(); int oldLimit = input.pushLimit(length); while(input.getBytesUntilLimit() > 0) { int tmpRaw = input.readEnum(); SC2APIProtocol.Data.Attribute tmpValue = SC2APIProtocol.Data.Attribute.forNumber(tmpRaw); if (tmpValue == null) { mergeUnknownVarintField(8, tmpRaw); } else { ensureAttributesIsMutable(); attributes_.add(tmpRaw); } } input.popLimit(oldLimit); break; } // case 66 case 77: { movementSpeed_ = input.readFloat(); bitField0_ |= 0x00080000; break; } // case 77 case 85: { armor_ = input.readFloat(); bitField0_ |= 0x00100000; break; } // case 85 case 90: { SC2APIProtocol.Data.Weapon m = input.readMessage( SC2APIProtocol.Data.Weapon.PARSER, extensionRegistry); if (weaponsBuilder_ == null) { ensureWeaponsIsMutable(); weapons_.add(m); } else { weaponsBuilder_.addMessage(m); } break; } // case 90 case 96: { mineralCost_ = input.readUInt32(); bitField0_ |= 0x00000010; break; } // case 96 case 104: { vespeneCost_ = input.readUInt32(); bitField0_ |= 0x00000020; break; } // case 104 case 117: { foodRequired_ = input.readFloat(); bitField0_ |= 0x00000040; break; } // case 117 case 120: { abilityId_ = input.readUInt32(); bitField0_ |= 0x00000100; break; } // case 120 case 128: { int tmpRaw = input.readEnum(); SC2APIProtocol.Common.Race tmpValue = SC2APIProtocol.Common.Race.forNumber(tmpRaw); if (tmpValue == null) { mergeUnknownVarintField(16, tmpRaw); } else { race_ = tmpRaw; bitField0_ |= 0x00000200; } break; } // case 128 case 141: { buildTime_ = input.readFloat(); bitField0_ |= 0x00000400; break; } // case 141 case 149: { foodProvided_ = input.readFloat(); bitField0_ |= 0x00000080; break; } // case 149 case 152: { hasVespene_ = input.readBool(); bitField0_ |= 0x00000800; break; } // case 152 case 160: { hasMinerals_ = input.readBool(); bitField0_ |= 0x00001000; break; } // case 160 case 168: { int v = input.readUInt32(); ensureTechAliasIsMutable(); techAlias_.addInt(v); break; } // case 168 case 170: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); ensureTechAliasIsMutable(); while (input.getBytesUntilLimit() > 0) { techAlias_.addInt(input.readUInt32()); } input.popLimit(limit); break; } // case 170 case 176: { unitAlias_ = input.readUInt32(); bitField0_ |= 0x00008000; break; } // case 176 case 184: { techRequirement_ = input.readUInt32(); bitField0_ |= 0x00010000; break; } // case 184 case 192: { requireAttached_ = input.readBool(); bitField0_ |= 0x00020000; break; } // case 192 case 205: { sightRange_ = input.readFloat(); bitField0_ |= 0x00002000; break; } // case 205 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 unitId_ ; /** *
       * Stable ID.
       * 
* * optional uint32 unit_id = 1; * @return Whether the unitId field is set. */ @java.lang.Override public boolean hasUnitId() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * Stable ID.
       * 
* * optional uint32 unit_id = 1; * @return The unitId. */ @java.lang.Override public int getUnitId() { return unitId_; } /** *
       * Stable ID.
       * 
* * optional uint32 unit_id = 1; * @param value The unitId to set. * @return This builder for chaining. */ public Builder setUnitId(int value) { bitField0_ |= 0x00000001; unitId_ = value; onChanged(); return this; } /** *
       * Stable ID.
       * 
* * optional uint32 unit_id = 1; * @return This builder for chaining. */ public Builder clearUnitId() { bitField0_ = (bitField0_ & ~0x00000001); unitId_ = 0; onChanged(); return this; } private java.lang.Object name_ = ""; /** *
       * Catalog name of the unit.
       * 
* * optional string name = 2; * @return Whether the name field is set. */ public boolean hasName() { return ((bitField0_ & 0x00000002) != 0); } /** *
       * Catalog name of the unit.
       * 
* * optional string name = 2; * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; 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()) { name_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
       * Catalog name of the unit.
       * 
* * optional string name = 2; * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
       * Catalog name of the unit.
       * 
* * optional string name = 2; * @param value The name to set. * @return This builder for chaining. */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; name_ = value; onChanged(); return this; } /** *
       * Catalog name of the unit.
       * 
* * optional string name = 2; * @return This builder for chaining. */ public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000002); name_ = getDefaultInstance().getName(); onChanged(); return this; } /** *
       * Catalog name of the unit.
       * 
* * optional string name = 2; * @param value The bytes for name to set. * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; name_ = value; onChanged(); return this; } private boolean available_ ; /** *
       * If true, the ability may be used by this set of mods/map.
       * 
* * optional bool available = 3; * @return Whether the available field is set. */ @java.lang.Override public boolean hasAvailable() { return ((bitField0_ & 0x00000004) != 0); } /** *
       * If true, the ability may be used by this set of mods/map.
       * 
* * optional bool available = 3; * @return The available. */ @java.lang.Override public boolean getAvailable() { return available_; } /** *
       * If true, the ability may be used by this set of mods/map.
       * 
* * optional bool available = 3; * @param value The available to set. * @return This builder for chaining. */ public Builder setAvailable(boolean value) { bitField0_ |= 0x00000004; available_ = value; onChanged(); return this; } /** *
       * If true, the ability may be used by this set of mods/map.
       * 
* * optional bool available = 3; * @return This builder for chaining. */ public Builder clearAvailable() { bitField0_ = (bitField0_ & ~0x00000004); available_ = false; onChanged(); return this; } private int cargoSize_ ; /** *
       * Number of cargo slots it occupies in transports.
       * 
* * optional uint32 cargo_size = 4; * @return Whether the cargoSize field is set. */ @java.lang.Override public boolean hasCargoSize() { return ((bitField0_ & 0x00000008) != 0); } /** *
       * Number of cargo slots it occupies in transports.
       * 
* * optional uint32 cargo_size = 4; * @return The cargoSize. */ @java.lang.Override public int getCargoSize() { return cargoSize_; } /** *
       * Number of cargo slots it occupies in transports.
       * 
* * optional uint32 cargo_size = 4; * @param value The cargoSize to set. * @return This builder for chaining. */ public Builder setCargoSize(int value) { bitField0_ |= 0x00000008; cargoSize_ = value; onChanged(); return this; } /** *
       * Number of cargo slots it occupies in transports.
       * 
* * optional uint32 cargo_size = 4; * @return This builder for chaining. */ public Builder clearCargoSize() { bitField0_ = (bitField0_ & ~0x00000008); cargoSize_ = 0; onChanged(); return this; } private int mineralCost_ ; /** * optional uint32 mineral_cost = 12; * @return Whether the mineralCost field is set. */ @java.lang.Override public boolean hasMineralCost() { return ((bitField0_ & 0x00000010) != 0); } /** * optional uint32 mineral_cost = 12; * @return The mineralCost. */ @java.lang.Override public int getMineralCost() { return mineralCost_; } /** * optional uint32 mineral_cost = 12; * @param value The mineralCost to set. * @return This builder for chaining. */ public Builder setMineralCost(int value) { bitField0_ |= 0x00000010; mineralCost_ = value; onChanged(); return this; } /** * optional uint32 mineral_cost = 12; * @return This builder for chaining. */ public Builder clearMineralCost() { bitField0_ = (bitField0_ & ~0x00000010); mineralCost_ = 0; onChanged(); return this; } private int vespeneCost_ ; /** * optional uint32 vespene_cost = 13; * @return Whether the vespeneCost field is set. */ @java.lang.Override public boolean hasVespeneCost() { return ((bitField0_ & 0x00000020) != 0); } /** * optional uint32 vespene_cost = 13; * @return The vespeneCost. */ @java.lang.Override public int getVespeneCost() { return vespeneCost_; } /** * optional uint32 vespene_cost = 13; * @param value The vespeneCost to set. * @return This builder for chaining. */ public Builder setVespeneCost(int value) { bitField0_ |= 0x00000020; vespeneCost_ = value; onChanged(); return this; } /** * optional uint32 vespene_cost = 13; * @return This builder for chaining. */ public Builder clearVespeneCost() { bitField0_ = (bitField0_ & ~0x00000020); vespeneCost_ = 0; onChanged(); return this; } private float foodRequired_ ; /** * optional float food_required = 14; * @return Whether the foodRequired field is set. */ @java.lang.Override public boolean hasFoodRequired() { return ((bitField0_ & 0x00000040) != 0); } /** * optional float food_required = 14; * @return The foodRequired. */ @java.lang.Override public float getFoodRequired() { return foodRequired_; } /** * optional float food_required = 14; * @param value The foodRequired to set. * @return This builder for chaining. */ public Builder setFoodRequired(float value) { bitField0_ |= 0x00000040; foodRequired_ = value; onChanged(); return this; } /** * optional float food_required = 14; * @return This builder for chaining. */ public Builder clearFoodRequired() { bitField0_ = (bitField0_ & ~0x00000040); foodRequired_ = 0F; onChanged(); return this; } private float foodProvided_ ; /** * optional float food_provided = 18; * @return Whether the foodProvided field is set. */ @java.lang.Override public boolean hasFoodProvided() { return ((bitField0_ & 0x00000080) != 0); } /** * optional float food_provided = 18; * @return The foodProvided. */ @java.lang.Override public float getFoodProvided() { return foodProvided_; } /** * optional float food_provided = 18; * @param value The foodProvided to set. * @return This builder for chaining. */ public Builder setFoodProvided(float value) { bitField0_ |= 0x00000080; foodProvided_ = value; onChanged(); return this; } /** * optional float food_provided = 18; * @return This builder for chaining. */ public Builder clearFoodProvided() { bitField0_ = (bitField0_ & ~0x00000080); foodProvided_ = 0F; onChanged(); return this; } private int abilityId_ ; /** *
       * The ability that builds this unit.
       * 
* * optional uint32 ability_id = 15; * @return Whether the abilityId field is set. */ @java.lang.Override public boolean hasAbilityId() { return ((bitField0_ & 0x00000100) != 0); } /** *
       * The ability that builds this unit.
       * 
* * optional uint32 ability_id = 15; * @return The abilityId. */ @java.lang.Override public int getAbilityId() { return abilityId_; } /** *
       * The ability that builds this unit.
       * 
* * optional uint32 ability_id = 15; * @param value The abilityId to set. * @return This builder for chaining. */ public Builder setAbilityId(int value) { bitField0_ |= 0x00000100; abilityId_ = value; onChanged(); return this; } /** *
       * The ability that builds this unit.
       * 
* * optional uint32 ability_id = 15; * @return This builder for chaining. */ public Builder clearAbilityId() { bitField0_ = (bitField0_ & ~0x00000100); abilityId_ = 0; onChanged(); return this; } private int race_ = 0; /** * optional .SC2APIProtocol.Race race = 16; * @return Whether the race field is set. */ @java.lang.Override public boolean hasRace() { return ((bitField0_ & 0x00000200) != 0); } /** * optional .SC2APIProtocol.Race race = 16; * @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; } /** * optional .SC2APIProtocol.Race race = 16; * @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_ |= 0x00000200; race_ = value.getNumber(); onChanged(); return this; } /** * optional .SC2APIProtocol.Race race = 16; * @return This builder for chaining. */ public Builder clearRace() { bitField0_ = (bitField0_ & ~0x00000200); race_ = 0; onChanged(); return this; } private float buildTime_ ; /** * optional float build_time = 17; * @return Whether the buildTime field is set. */ @java.lang.Override public boolean hasBuildTime() { return ((bitField0_ & 0x00000400) != 0); } /** * optional float build_time = 17; * @return The buildTime. */ @java.lang.Override public float getBuildTime() { return buildTime_; } /** * optional float build_time = 17; * @param value The buildTime to set. * @return This builder for chaining. */ public Builder setBuildTime(float value) { bitField0_ |= 0x00000400; buildTime_ = value; onChanged(); return this; } /** * optional float build_time = 17; * @return This builder for chaining. */ public Builder clearBuildTime() { bitField0_ = (bitField0_ & ~0x00000400); buildTime_ = 0F; onChanged(); return this; } private boolean hasVespene_ ; /** * optional bool has_vespene = 19; * @return Whether the hasVespene field is set. */ @java.lang.Override public boolean hasHasVespene() { return ((bitField0_ & 0x00000800) != 0); } /** * optional bool has_vespene = 19; * @return The hasVespene. */ @java.lang.Override public boolean getHasVespene() { return hasVespene_; } /** * optional bool has_vespene = 19; * @param value The hasVespene to set. * @return This builder for chaining. */ public Builder setHasVespene(boolean value) { bitField0_ |= 0x00000800; hasVespene_ = value; onChanged(); return this; } /** * optional bool has_vespene = 19; * @return This builder for chaining. */ public Builder clearHasVespene() { bitField0_ = (bitField0_ & ~0x00000800); hasVespene_ = false; onChanged(); return this; } private boolean hasMinerals_ ; /** * optional bool has_minerals = 20; * @return Whether the hasMinerals field is set. */ @java.lang.Override public boolean hasHasMinerals() { return ((bitField0_ & 0x00001000) != 0); } /** * optional bool has_minerals = 20; * @return The hasMinerals. */ @java.lang.Override public boolean getHasMinerals() { return hasMinerals_; } /** * optional bool has_minerals = 20; * @param value The hasMinerals to set. * @return This builder for chaining. */ public Builder setHasMinerals(boolean value) { bitField0_ |= 0x00001000; hasMinerals_ = value; onChanged(); return this; } /** * optional bool has_minerals = 20; * @return This builder for chaining. */ public Builder clearHasMinerals() { bitField0_ = (bitField0_ & ~0x00001000); hasMinerals_ = false; onChanged(); return this; } private float sightRange_ ; /** *
       * Range unit reveals vision.
       * 
* * optional float sight_range = 25; * @return Whether the sightRange field is set. */ @java.lang.Override public boolean hasSightRange() { return ((bitField0_ & 0x00002000) != 0); } /** *
       * Range unit reveals vision.
       * 
* * optional float sight_range = 25; * @return The sightRange. */ @java.lang.Override public float getSightRange() { return sightRange_; } /** *
       * Range unit reveals vision.
       * 
* * optional float sight_range = 25; * @param value The sightRange to set. * @return This builder for chaining. */ public Builder setSightRange(float value) { bitField0_ |= 0x00002000; sightRange_ = value; onChanged(); return this; } /** *
       * Range unit reveals vision.
       * 
* * optional float sight_range = 25; * @return This builder for chaining. */ public Builder clearSightRange() { bitField0_ = (bitField0_ & ~0x00002000); sightRange_ = 0F; onChanged(); return this; } private com.google.protobuf.Internal.IntList techAlias_ = emptyIntList(); private void ensureTechAliasIsMutable() { if (!((bitField0_ & 0x00004000) != 0)) { techAlias_ = mutableCopy(techAlias_); bitField0_ |= 0x00004000; } } /** *
       * Other units that satisfy the same tech requirement.
       * 
* * repeated uint32 tech_alias = 21; * @return A list containing the techAlias. */ public java.util.List getTechAliasList() { return ((bitField0_ & 0x00004000) != 0) ? java.util.Collections.unmodifiableList(techAlias_) : techAlias_; } /** *
       * Other units that satisfy the same tech requirement.
       * 
* * repeated uint32 tech_alias = 21; * @return The count of techAlias. */ public int getTechAliasCount() { return techAlias_.size(); } /** *
       * Other units that satisfy the same tech requirement.
       * 
* * repeated uint32 tech_alias = 21; * @param index The index of the element to return. * @return The techAlias at the given index. */ public int getTechAlias(int index) { return techAlias_.getInt(index); } /** *
       * Other units that satisfy the same tech requirement.
       * 
* * repeated uint32 tech_alias = 21; * @param index The index to set the value at. * @param value The techAlias to set. * @return This builder for chaining. */ public Builder setTechAlias( int index, int value) { ensureTechAliasIsMutable(); techAlias_.setInt(index, value); onChanged(); return this; } /** *
       * Other units that satisfy the same tech requirement.
       * 
* * repeated uint32 tech_alias = 21; * @param value The techAlias to add. * @return This builder for chaining. */ public Builder addTechAlias(int value) { ensureTechAliasIsMutable(); techAlias_.addInt(value); onChanged(); return this; } /** *
       * Other units that satisfy the same tech requirement.
       * 
* * repeated uint32 tech_alias = 21; * @param values The techAlias to add. * @return This builder for chaining. */ public Builder addAllTechAlias( java.lang.Iterable values) { ensureTechAliasIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, techAlias_); onChanged(); return this; } /** *
       * Other units that satisfy the same tech requirement.
       * 
* * repeated uint32 tech_alias = 21; * @return This builder for chaining. */ public Builder clearTechAlias() { techAlias_ = emptyIntList(); bitField0_ = (bitField0_ & ~0x00004000); onChanged(); return this; } private int unitAlias_ ; /** *
       * The morphed variant of this unit.
       * 
* * optional uint32 unit_alias = 22; * @return Whether the unitAlias field is set. */ @java.lang.Override public boolean hasUnitAlias() { return ((bitField0_ & 0x00008000) != 0); } /** *
       * The morphed variant of this unit.
       * 
* * optional uint32 unit_alias = 22; * @return The unitAlias. */ @java.lang.Override public int getUnitAlias() { return unitAlias_; } /** *
       * The morphed variant of this unit.
       * 
* * optional uint32 unit_alias = 22; * @param value The unitAlias to set. * @return This builder for chaining. */ public Builder setUnitAlias(int value) { bitField0_ |= 0x00008000; unitAlias_ = value; onChanged(); return this; } /** *
       * The morphed variant of this unit.
       * 
* * optional uint32 unit_alias = 22; * @return This builder for chaining. */ public Builder clearUnitAlias() { bitField0_ = (bitField0_ & ~0x00008000); unitAlias_ = 0; onChanged(); return this; } private int techRequirement_ ; /** *
       * Structure required to build this unit. (Or any with the same tech_alias)
       * 
* * optional uint32 tech_requirement = 23; * @return Whether the techRequirement field is set. */ @java.lang.Override public boolean hasTechRequirement() { return ((bitField0_ & 0x00010000) != 0); } /** *
       * Structure required to build this unit. (Or any with the same tech_alias)
       * 
* * optional uint32 tech_requirement = 23; * @return The techRequirement. */ @java.lang.Override public int getTechRequirement() { return techRequirement_; } /** *
       * Structure required to build this unit. (Or any with the same tech_alias)
       * 
* * optional uint32 tech_requirement = 23; * @param value The techRequirement to set. * @return This builder for chaining. */ public Builder setTechRequirement(int value) { bitField0_ |= 0x00010000; techRequirement_ = value; onChanged(); return this; } /** *
       * Structure required to build this unit. (Or any with the same tech_alias)
       * 
* * optional uint32 tech_requirement = 23; * @return This builder for chaining. */ public Builder clearTechRequirement() { bitField0_ = (bitField0_ & ~0x00010000); techRequirement_ = 0; onChanged(); return this; } private boolean requireAttached_ ; /** *
       * Whether tech_requirement is an add-on.
       * 
* * optional bool require_attached = 24; * @return Whether the requireAttached field is set. */ @java.lang.Override public boolean hasRequireAttached() { return ((bitField0_ & 0x00020000) != 0); } /** *
       * Whether tech_requirement is an add-on.
       * 
* * optional bool require_attached = 24; * @return The requireAttached. */ @java.lang.Override public boolean getRequireAttached() { return requireAttached_; } /** *
       * Whether tech_requirement is an add-on.
       * 
* * optional bool require_attached = 24; * @param value The requireAttached to set. * @return This builder for chaining. */ public Builder setRequireAttached(boolean value) { bitField0_ |= 0x00020000; requireAttached_ = value; onChanged(); return this; } /** *
       * Whether tech_requirement is an add-on.
       * 
* * optional bool require_attached = 24; * @return This builder for chaining. */ public Builder clearRequireAttached() { bitField0_ = (bitField0_ & ~0x00020000); requireAttached_ = false; onChanged(); return this; } private java.util.List attributes_ = java.util.Collections.emptyList(); private void ensureAttributesIsMutable() { if (!((bitField0_ & 0x00040000) != 0)) { attributes_ = new java.util.ArrayList(attributes_); bitField0_ |= 0x00040000; } } /** *
       * Values include changes from upgrades
       * 
* * repeated .SC2APIProtocol.Attribute attributes = 8; * @return A list containing the attributes. */ public java.util.List getAttributesList() { return new com.google.protobuf.Internal.ListAdapter< java.lang.Integer, SC2APIProtocol.Data.Attribute>(attributes_, attributes_converter_); } /** *
       * Values include changes from upgrades
       * 
* * repeated .SC2APIProtocol.Attribute attributes = 8; * @return The count of attributes. */ public int getAttributesCount() { return attributes_.size(); } /** *
       * Values include changes from upgrades
       * 
* * repeated .SC2APIProtocol.Attribute attributes = 8; * @param index The index of the element to return. * @return The attributes at the given index. */ public SC2APIProtocol.Data.Attribute getAttributes(int index) { return attributes_converter_.convert(attributes_.get(index)); } /** *
       * Values include changes from upgrades
       * 
* * repeated .SC2APIProtocol.Attribute attributes = 8; * @param index The index to set the value at. * @param value The attributes to set. * @return This builder for chaining. */ public Builder setAttributes( int index, SC2APIProtocol.Data.Attribute value) { if (value == null) { throw new NullPointerException(); } ensureAttributesIsMutable(); attributes_.set(index, value.getNumber()); onChanged(); return this; } /** *
       * Values include changes from upgrades
       * 
* * repeated .SC2APIProtocol.Attribute attributes = 8; * @param value The attributes to add. * @return This builder for chaining. */ public Builder addAttributes(SC2APIProtocol.Data.Attribute value) { if (value == null) { throw new NullPointerException(); } ensureAttributesIsMutable(); attributes_.add(value.getNumber()); onChanged(); return this; } /** *
       * Values include changes from upgrades
       * 
* * repeated .SC2APIProtocol.Attribute attributes = 8; * @param values The attributes to add. * @return This builder for chaining. */ public Builder addAllAttributes( java.lang.Iterable values) { ensureAttributesIsMutable(); for (SC2APIProtocol.Data.Attribute value : values) { attributes_.add(value.getNumber()); } onChanged(); return this; } /** *
       * Values include changes from upgrades
       * 
* * repeated .SC2APIProtocol.Attribute attributes = 8; * @return This builder for chaining. */ public Builder clearAttributes() { attributes_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00040000); onChanged(); return this; } private float movementSpeed_ ; /** * optional float movement_speed = 9; * @return Whether the movementSpeed field is set. */ @java.lang.Override public boolean hasMovementSpeed() { return ((bitField0_ & 0x00080000) != 0); } /** * optional float movement_speed = 9; * @return The movementSpeed. */ @java.lang.Override public float getMovementSpeed() { return movementSpeed_; } /** * optional float movement_speed = 9; * @param value The movementSpeed to set. * @return This builder for chaining. */ public Builder setMovementSpeed(float value) { bitField0_ |= 0x00080000; movementSpeed_ = value; onChanged(); return this; } /** * optional float movement_speed = 9; * @return This builder for chaining. */ public Builder clearMovementSpeed() { bitField0_ = (bitField0_ & ~0x00080000); movementSpeed_ = 0F; onChanged(); return this; } private float armor_ ; /** * optional float armor = 10; * @return Whether the armor field is set. */ @java.lang.Override public boolean hasArmor() { return ((bitField0_ & 0x00100000) != 0); } /** * optional float armor = 10; * @return The armor. */ @java.lang.Override public float getArmor() { return armor_; } /** * optional float armor = 10; * @param value The armor to set. * @return This builder for chaining. */ public Builder setArmor(float value) { bitField0_ |= 0x00100000; armor_ = value; onChanged(); return this; } /** * optional float armor = 10; * @return This builder for chaining. */ public Builder clearArmor() { bitField0_ = (bitField0_ & ~0x00100000); armor_ = 0F; onChanged(); return this; } private java.util.List weapons_ = java.util.Collections.emptyList(); private void ensureWeaponsIsMutable() { if (!((bitField0_ & 0x00200000) != 0)) { weapons_ = new java.util.ArrayList(weapons_); bitField0_ |= 0x00200000; } } private com.google.protobuf.RepeatedFieldBuilderV3< SC2APIProtocol.Data.Weapon, SC2APIProtocol.Data.Weapon.Builder, SC2APIProtocol.Data.WeaponOrBuilder> weaponsBuilder_; /** * repeated .SC2APIProtocol.Weapon weapons = 11; */ public java.util.List getWeaponsList() { if (weaponsBuilder_ == null) { return java.util.Collections.unmodifiableList(weapons_); } else { return weaponsBuilder_.getMessageList(); } } /** * repeated .SC2APIProtocol.Weapon weapons = 11; */ public int getWeaponsCount() { if (weaponsBuilder_ == null) { return weapons_.size(); } else { return weaponsBuilder_.getCount(); } } /** * repeated .SC2APIProtocol.Weapon weapons = 11; */ public SC2APIProtocol.Data.Weapon getWeapons(int index) { if (weaponsBuilder_ == null) { return weapons_.get(index); } else { return weaponsBuilder_.getMessage(index); } } /** * repeated .SC2APIProtocol.Weapon weapons = 11; */ public Builder setWeapons( int index, SC2APIProtocol.Data.Weapon value) { if (weaponsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureWeaponsIsMutable(); weapons_.set(index, value); onChanged(); } else { weaponsBuilder_.setMessage(index, value); } return this; } /** * repeated .SC2APIProtocol.Weapon weapons = 11; */ public Builder setWeapons( int index, SC2APIProtocol.Data.Weapon.Builder builderForValue) { if (weaponsBuilder_ == null) { ensureWeaponsIsMutable(); weapons_.set(index, builderForValue.build()); onChanged(); } else { weaponsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .SC2APIProtocol.Weapon weapons = 11; */ public Builder addWeapons(SC2APIProtocol.Data.Weapon value) { if (weaponsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureWeaponsIsMutable(); weapons_.add(value); onChanged(); } else { weaponsBuilder_.addMessage(value); } return this; } /** * repeated .SC2APIProtocol.Weapon weapons = 11; */ public Builder addWeapons( int index, SC2APIProtocol.Data.Weapon value) { if (weaponsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureWeaponsIsMutable(); weapons_.add(index, value); onChanged(); } else { weaponsBuilder_.addMessage(index, value); } return this; } /** * repeated .SC2APIProtocol.Weapon weapons = 11; */ public Builder addWeapons( SC2APIProtocol.Data.Weapon.Builder builderForValue) { if (weaponsBuilder_ == null) { ensureWeaponsIsMutable(); weapons_.add(builderForValue.build()); onChanged(); } else { weaponsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .SC2APIProtocol.Weapon weapons = 11; */ public Builder addWeapons( int index, SC2APIProtocol.Data.Weapon.Builder builderForValue) { if (weaponsBuilder_ == null) { ensureWeaponsIsMutable(); weapons_.add(index, builderForValue.build()); onChanged(); } else { weaponsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .SC2APIProtocol.Weapon weapons = 11; */ public Builder addAllWeapons( java.lang.Iterable values) { if (weaponsBuilder_ == null) { ensureWeaponsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, weapons_); onChanged(); } else { weaponsBuilder_.addAllMessages(values); } return this; } /** * repeated .SC2APIProtocol.Weapon weapons = 11; */ public Builder clearWeapons() { if (weaponsBuilder_ == null) { weapons_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00200000); onChanged(); } else { weaponsBuilder_.clear(); } return this; } /** * repeated .SC2APIProtocol.Weapon weapons = 11; */ public Builder removeWeapons(int index) { if (weaponsBuilder_ == null) { ensureWeaponsIsMutable(); weapons_.remove(index); onChanged(); } else { weaponsBuilder_.remove(index); } return this; } /** * repeated .SC2APIProtocol.Weapon weapons = 11; */ public SC2APIProtocol.Data.Weapon.Builder getWeaponsBuilder( int index) { return getWeaponsFieldBuilder().getBuilder(index); } /** * repeated .SC2APIProtocol.Weapon weapons = 11; */ public SC2APIProtocol.Data.WeaponOrBuilder getWeaponsOrBuilder( int index) { if (weaponsBuilder_ == null) { return weapons_.get(index); } else { return weaponsBuilder_.getMessageOrBuilder(index); } } /** * repeated .SC2APIProtocol.Weapon weapons = 11; */ public java.util.List getWeaponsOrBuilderList() { if (weaponsBuilder_ != null) { return weaponsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(weapons_); } } /** * repeated .SC2APIProtocol.Weapon weapons = 11; */ public SC2APIProtocol.Data.Weapon.Builder addWeaponsBuilder() { return getWeaponsFieldBuilder().addBuilder( SC2APIProtocol.Data.Weapon.getDefaultInstance()); } /** * repeated .SC2APIProtocol.Weapon weapons = 11; */ public SC2APIProtocol.Data.Weapon.Builder addWeaponsBuilder( int index) { return getWeaponsFieldBuilder().addBuilder( index, SC2APIProtocol.Data.Weapon.getDefaultInstance()); } /** * repeated .SC2APIProtocol.Weapon weapons = 11; */ public java.util.List getWeaponsBuilderList() { return getWeaponsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< SC2APIProtocol.Data.Weapon, SC2APIProtocol.Data.Weapon.Builder, SC2APIProtocol.Data.WeaponOrBuilder> getWeaponsFieldBuilder() { if (weaponsBuilder_ == null) { weaponsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< SC2APIProtocol.Data.Weapon, SC2APIProtocol.Data.Weapon.Builder, SC2APIProtocol.Data.WeaponOrBuilder>( weapons_, ((bitField0_ & 0x00200000) != 0), getParentForChildren(), isClean()); weapons_ = null; } return weaponsBuilder_; } @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.UnitTypeData) } // @@protoc_insertion_point(class_scope:SC2APIProtocol.UnitTypeData) private static final SC2APIProtocol.Data.UnitTypeData DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new SC2APIProtocol.Data.UnitTypeData(); } public static SC2APIProtocol.Data.UnitTypeData getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public UnitTypeData 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.Data.UnitTypeData getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface UpgradeDataOrBuilder extends // @@protoc_insertion_point(interface_extends:SC2APIProtocol.UpgradeData) com.google.protobuf.MessageOrBuilder { /** *
     * Stable ID.
     * 
* * optional uint32 upgrade_id = 1; * @return Whether the upgradeId field is set. */ boolean hasUpgradeId(); /** *
     * Stable ID.
     * 
* * optional uint32 upgrade_id = 1; * @return The upgradeId. */ int getUpgradeId(); /** * optional string name = 2; * @return Whether the name field is set. */ boolean hasName(); /** * optional string name = 2; * @return The name. */ java.lang.String getName(); /** * optional string name = 2; * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** * optional uint32 mineral_cost = 3; * @return Whether the mineralCost field is set. */ boolean hasMineralCost(); /** * optional uint32 mineral_cost = 3; * @return The mineralCost. */ int getMineralCost(); /** * optional uint32 vespene_cost = 4; * @return Whether the vespeneCost field is set. */ boolean hasVespeneCost(); /** * optional uint32 vespene_cost = 4; * @return The vespeneCost. */ int getVespeneCost(); /** * optional float research_time = 5; * @return Whether the researchTime field is set. */ boolean hasResearchTime(); /** * optional float research_time = 5; * @return The researchTime. */ float getResearchTime(); /** * optional uint32 ability_id = 6; * @return Whether the abilityId field is set. */ boolean hasAbilityId(); /** * optional uint32 ability_id = 6; * @return The abilityId. */ int getAbilityId(); } /** * Protobuf type {@code SC2APIProtocol.UpgradeData} */ public static final class UpgradeData extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:SC2APIProtocol.UpgradeData) UpgradeDataOrBuilder { private static final long serialVersionUID = 0L; // Use UpgradeData.newBuilder() to construct. private UpgradeData(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private UpgradeData() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new UpgradeData(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Data.internal_static_SC2APIProtocol_UpgradeData_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Data.internal_static_SC2APIProtocol_UpgradeData_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Data.UpgradeData.class, SC2APIProtocol.Data.UpgradeData.Builder.class); } private int bitField0_; public static final int UPGRADE_ID_FIELD_NUMBER = 1; private int upgradeId_; /** *
     * Stable ID.
     * 
* * optional uint32 upgrade_id = 1; * @return Whether the upgradeId field is set. */ @java.lang.Override public boolean hasUpgradeId() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * Stable ID.
     * 
* * optional uint32 upgrade_id = 1; * @return The upgradeId. */ @java.lang.Override public int getUpgradeId() { return upgradeId_; } public static final int NAME_FIELD_NUMBER = 2; private volatile java.lang.Object name_; /** * optional string name = 2; * @return Whether the name field is set. */ @java.lang.Override public boolean hasName() { return ((bitField0_ & 0x00000002) != 0); } /** * optional string name = 2; * @return The name. */ @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; 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()) { name_ = s; } return s; } } /** * optional string name = 2; * @return The bytes for name. */ @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int MINERAL_COST_FIELD_NUMBER = 3; private int mineralCost_; /** * optional uint32 mineral_cost = 3; * @return Whether the mineralCost field is set. */ @java.lang.Override public boolean hasMineralCost() { return ((bitField0_ & 0x00000004) != 0); } /** * optional uint32 mineral_cost = 3; * @return The mineralCost. */ @java.lang.Override public int getMineralCost() { return mineralCost_; } public static final int VESPENE_COST_FIELD_NUMBER = 4; private int vespeneCost_; /** * optional uint32 vespene_cost = 4; * @return Whether the vespeneCost field is set. */ @java.lang.Override public boolean hasVespeneCost() { return ((bitField0_ & 0x00000008) != 0); } /** * optional uint32 vespene_cost = 4; * @return The vespeneCost. */ @java.lang.Override public int getVespeneCost() { return vespeneCost_; } public static final int RESEARCH_TIME_FIELD_NUMBER = 5; private float researchTime_; /** * optional float research_time = 5; * @return Whether the researchTime field is set. */ @java.lang.Override public boolean hasResearchTime() { return ((bitField0_ & 0x00000010) != 0); } /** * optional float research_time = 5; * @return The researchTime. */ @java.lang.Override public float getResearchTime() { return researchTime_; } public static final int ABILITY_ID_FIELD_NUMBER = 6; private int abilityId_; /** * optional uint32 ability_id = 6; * @return Whether the abilityId field is set. */ @java.lang.Override public boolean hasAbilityId() { return ((bitField0_ & 0x00000020) != 0); } /** * optional uint32 ability_id = 6; * @return The abilityId. */ @java.lang.Override public int getAbilityId() { return abilityId_; } 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, upgradeId_); } if (((bitField0_ & 0x00000002) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_); } if (((bitField0_ & 0x00000004) != 0)) { output.writeUInt32(3, mineralCost_); } if (((bitField0_ & 0x00000008) != 0)) { output.writeUInt32(4, vespeneCost_); } if (((bitField0_ & 0x00000010) != 0)) { output.writeFloat(5, researchTime_); } if (((bitField0_ & 0x00000020) != 0)) { output.writeUInt32(6, abilityId_); } 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, upgradeId_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(3, mineralCost_); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(4, vespeneCost_); } if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream .computeFloatSize(5, researchTime_); } if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(6, abilityId_); } 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.Data.UpgradeData)) { return super.equals(obj); } SC2APIProtocol.Data.UpgradeData other = (SC2APIProtocol.Data.UpgradeData) obj; if (hasUpgradeId() != other.hasUpgradeId()) return false; if (hasUpgradeId()) { if (getUpgradeId() != other.getUpgradeId()) return false; } if (hasName() != other.hasName()) return false; if (hasName()) { if (!getName() .equals(other.getName())) return false; } if (hasMineralCost() != other.hasMineralCost()) return false; if (hasMineralCost()) { if (getMineralCost() != other.getMineralCost()) return false; } if (hasVespeneCost() != other.hasVespeneCost()) return false; if (hasVespeneCost()) { if (getVespeneCost() != other.getVespeneCost()) return false; } if (hasResearchTime() != other.hasResearchTime()) return false; if (hasResearchTime()) { if (java.lang.Float.floatToIntBits(getResearchTime()) != java.lang.Float.floatToIntBits( other.getResearchTime())) return false; } if (hasAbilityId() != other.hasAbilityId()) return false; if (hasAbilityId()) { if (getAbilityId() != other.getAbilityId()) 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 (hasUpgradeId()) { hash = (37 * hash) + UPGRADE_ID_FIELD_NUMBER; hash = (53 * hash) + getUpgradeId(); } if (hasName()) { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); } if (hasMineralCost()) { hash = (37 * hash) + MINERAL_COST_FIELD_NUMBER; hash = (53 * hash) + getMineralCost(); } if (hasVespeneCost()) { hash = (37 * hash) + VESPENE_COST_FIELD_NUMBER; hash = (53 * hash) + getVespeneCost(); } if (hasResearchTime()) { hash = (37 * hash) + RESEARCH_TIME_FIELD_NUMBER; hash = (53 * hash) + java.lang.Float.floatToIntBits( getResearchTime()); } if (hasAbilityId()) { hash = (37 * hash) + ABILITY_ID_FIELD_NUMBER; hash = (53 * hash) + getAbilityId(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static SC2APIProtocol.Data.UpgradeData parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Data.UpgradeData parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Data.UpgradeData parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Data.UpgradeData parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Data.UpgradeData parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Data.UpgradeData parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Data.UpgradeData parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Data.UpgradeData 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.Data.UpgradeData parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static SC2APIProtocol.Data.UpgradeData 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.Data.UpgradeData parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Data.UpgradeData 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.Data.UpgradeData 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.UpgradeData} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:SC2APIProtocol.UpgradeData) SC2APIProtocol.Data.UpgradeDataOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Data.internal_static_SC2APIProtocol_UpgradeData_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Data.internal_static_SC2APIProtocol_UpgradeData_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Data.UpgradeData.class, SC2APIProtocol.Data.UpgradeData.Builder.class); } // Construct using SC2APIProtocol.Data.UpgradeData.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); upgradeId_ = 0; bitField0_ = (bitField0_ & ~0x00000001); name_ = ""; bitField0_ = (bitField0_ & ~0x00000002); mineralCost_ = 0; bitField0_ = (bitField0_ & ~0x00000004); vespeneCost_ = 0; bitField0_ = (bitField0_ & ~0x00000008); researchTime_ = 0F; bitField0_ = (bitField0_ & ~0x00000010); abilityId_ = 0; bitField0_ = (bitField0_ & ~0x00000020); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return SC2APIProtocol.Data.internal_static_SC2APIProtocol_UpgradeData_descriptor; } @java.lang.Override public SC2APIProtocol.Data.UpgradeData getDefaultInstanceForType() { return SC2APIProtocol.Data.UpgradeData.getDefaultInstance(); } @java.lang.Override public SC2APIProtocol.Data.UpgradeData build() { SC2APIProtocol.Data.UpgradeData result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public SC2APIProtocol.Data.UpgradeData buildPartial() { SC2APIProtocol.Data.UpgradeData result = new SC2APIProtocol.Data.UpgradeData(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.upgradeId_ = upgradeId_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { to_bitField0_ |= 0x00000002; } result.name_ = name_; if (((from_bitField0_ & 0x00000004) != 0)) { result.mineralCost_ = mineralCost_; to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000008) != 0)) { result.vespeneCost_ = vespeneCost_; to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000010) != 0)) { result.researchTime_ = researchTime_; to_bitField0_ |= 0x00000010; } if (((from_bitField0_ & 0x00000020) != 0)) { result.abilityId_ = abilityId_; 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.Data.UpgradeData) { return mergeFrom((SC2APIProtocol.Data.UpgradeData)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(SC2APIProtocol.Data.UpgradeData other) { if (other == SC2APIProtocol.Data.UpgradeData.getDefaultInstance()) return this; if (other.hasUpgradeId()) { setUpgradeId(other.getUpgradeId()); } if (other.hasName()) { bitField0_ |= 0x00000002; name_ = other.name_; onChanged(); } if (other.hasMineralCost()) { setMineralCost(other.getMineralCost()); } if (other.hasVespeneCost()) { setVespeneCost(other.getVespeneCost()); } if (other.hasResearchTime()) { setResearchTime(other.getResearchTime()); } if (other.hasAbilityId()) { setAbilityId(other.getAbilityId()); } 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: { upgradeId_ = input.readUInt32(); bitField0_ |= 0x00000001; break; } // case 8 case 18: { name_ = input.readBytes(); bitField0_ |= 0x00000002; break; } // case 18 case 24: { mineralCost_ = input.readUInt32(); bitField0_ |= 0x00000004; break; } // case 24 case 32: { vespeneCost_ = input.readUInt32(); bitField0_ |= 0x00000008; break; } // case 32 case 45: { researchTime_ = input.readFloat(); bitField0_ |= 0x00000010; break; } // case 45 case 48: { abilityId_ = input.readUInt32(); 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 bitField0_; private int upgradeId_ ; /** *
       * Stable ID.
       * 
* * optional uint32 upgrade_id = 1; * @return Whether the upgradeId field is set. */ @java.lang.Override public boolean hasUpgradeId() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * Stable ID.
       * 
* * optional uint32 upgrade_id = 1; * @return The upgradeId. */ @java.lang.Override public int getUpgradeId() { return upgradeId_; } /** *
       * Stable ID.
       * 
* * optional uint32 upgrade_id = 1; * @param value The upgradeId to set. * @return This builder for chaining. */ public Builder setUpgradeId(int value) { bitField0_ |= 0x00000001; upgradeId_ = value; onChanged(); return this; } /** *
       * Stable ID.
       * 
* * optional uint32 upgrade_id = 1; * @return This builder for chaining. */ public Builder clearUpgradeId() { bitField0_ = (bitField0_ & ~0x00000001); upgradeId_ = 0; onChanged(); return this; } private java.lang.Object name_ = ""; /** * optional string name = 2; * @return Whether the name field is set. */ public boolean hasName() { return ((bitField0_ & 0x00000002) != 0); } /** * optional string name = 2; * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; 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()) { name_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string name = 2; * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string name = 2; * @param value The name to set. * @return This builder for chaining. */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; name_ = value; onChanged(); return this; } /** * optional string name = 2; * @return This builder for chaining. */ public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000002); name_ = getDefaultInstance().getName(); onChanged(); return this; } /** * optional string name = 2; * @param value The bytes for name to set. * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; name_ = value; onChanged(); return this; } private int mineralCost_ ; /** * optional uint32 mineral_cost = 3; * @return Whether the mineralCost field is set. */ @java.lang.Override public boolean hasMineralCost() { return ((bitField0_ & 0x00000004) != 0); } /** * optional uint32 mineral_cost = 3; * @return The mineralCost. */ @java.lang.Override public int getMineralCost() { return mineralCost_; } /** * optional uint32 mineral_cost = 3; * @param value The mineralCost to set. * @return This builder for chaining. */ public Builder setMineralCost(int value) { bitField0_ |= 0x00000004; mineralCost_ = value; onChanged(); return this; } /** * optional uint32 mineral_cost = 3; * @return This builder for chaining. */ public Builder clearMineralCost() { bitField0_ = (bitField0_ & ~0x00000004); mineralCost_ = 0; onChanged(); return this; } private int vespeneCost_ ; /** * optional uint32 vespene_cost = 4; * @return Whether the vespeneCost field is set. */ @java.lang.Override public boolean hasVespeneCost() { return ((bitField0_ & 0x00000008) != 0); } /** * optional uint32 vespene_cost = 4; * @return The vespeneCost. */ @java.lang.Override public int getVespeneCost() { return vespeneCost_; } /** * optional uint32 vespene_cost = 4; * @param value The vespeneCost to set. * @return This builder for chaining. */ public Builder setVespeneCost(int value) { bitField0_ |= 0x00000008; vespeneCost_ = value; onChanged(); return this; } /** * optional uint32 vespene_cost = 4; * @return This builder for chaining. */ public Builder clearVespeneCost() { bitField0_ = (bitField0_ & ~0x00000008); vespeneCost_ = 0; onChanged(); return this; } private float researchTime_ ; /** * optional float research_time = 5; * @return Whether the researchTime field is set. */ @java.lang.Override public boolean hasResearchTime() { return ((bitField0_ & 0x00000010) != 0); } /** * optional float research_time = 5; * @return The researchTime. */ @java.lang.Override public float getResearchTime() { return researchTime_; } /** * optional float research_time = 5; * @param value The researchTime to set. * @return This builder for chaining. */ public Builder setResearchTime(float value) { bitField0_ |= 0x00000010; researchTime_ = value; onChanged(); return this; } /** * optional float research_time = 5; * @return This builder for chaining. */ public Builder clearResearchTime() { bitField0_ = (bitField0_ & ~0x00000010); researchTime_ = 0F; onChanged(); return this; } private int abilityId_ ; /** * optional uint32 ability_id = 6; * @return Whether the abilityId field is set. */ @java.lang.Override public boolean hasAbilityId() { return ((bitField0_ & 0x00000020) != 0); } /** * optional uint32 ability_id = 6; * @return The abilityId. */ @java.lang.Override public int getAbilityId() { return abilityId_; } /** * optional uint32 ability_id = 6; * @param value The abilityId to set. * @return This builder for chaining. */ public Builder setAbilityId(int value) { bitField0_ |= 0x00000020; abilityId_ = value; onChanged(); return this; } /** * optional uint32 ability_id = 6; * @return This builder for chaining. */ public Builder clearAbilityId() { bitField0_ = (bitField0_ & ~0x00000020); abilityId_ = 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.UpgradeData) } // @@protoc_insertion_point(class_scope:SC2APIProtocol.UpgradeData) private static final SC2APIProtocol.Data.UpgradeData DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new SC2APIProtocol.Data.UpgradeData(); } public static SC2APIProtocol.Data.UpgradeData getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public UpgradeData 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.Data.UpgradeData getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface BuffDataOrBuilder extends // @@protoc_insertion_point(interface_extends:SC2APIProtocol.BuffData) com.google.protobuf.MessageOrBuilder { /** *
     * Stable ID.
     * 
* * optional uint32 buff_id = 1; * @return Whether the buffId field is set. */ boolean hasBuffId(); /** *
     * Stable ID.
     * 
* * optional uint32 buff_id = 1; * @return The buffId. */ int getBuffId(); /** * optional string name = 2; * @return Whether the name field is set. */ boolean hasName(); /** * optional string name = 2; * @return The name. */ java.lang.String getName(); /** * optional string name = 2; * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); } /** * Protobuf type {@code SC2APIProtocol.BuffData} */ public static final class BuffData extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:SC2APIProtocol.BuffData) BuffDataOrBuilder { private static final long serialVersionUID = 0L; // Use BuffData.newBuilder() to construct. private BuffData(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private BuffData() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new BuffData(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Data.internal_static_SC2APIProtocol_BuffData_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Data.internal_static_SC2APIProtocol_BuffData_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Data.BuffData.class, SC2APIProtocol.Data.BuffData.Builder.class); } private int bitField0_; public static final int BUFF_ID_FIELD_NUMBER = 1; private int buffId_; /** *
     * Stable ID.
     * 
* * optional uint32 buff_id = 1; * @return Whether the buffId field is set. */ @java.lang.Override public boolean hasBuffId() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * Stable ID.
     * 
* * optional uint32 buff_id = 1; * @return The buffId. */ @java.lang.Override public int getBuffId() { return buffId_; } public static final int NAME_FIELD_NUMBER = 2; private volatile java.lang.Object name_; /** * optional string name = 2; * @return Whether the name field is set. */ @java.lang.Override public boolean hasName() { return ((bitField0_ & 0x00000002) != 0); } /** * optional string name = 2; * @return The name. */ @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; 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()) { name_ = s; } return s; } } /** * optional string name = 2; * @return The bytes for name. */ @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = 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, buffId_); } if (((bitField0_ & 0x00000002) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_); } 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, buffId_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); } 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.Data.BuffData)) { return super.equals(obj); } SC2APIProtocol.Data.BuffData other = (SC2APIProtocol.Data.BuffData) obj; if (hasBuffId() != other.hasBuffId()) return false; if (hasBuffId()) { if (getBuffId() != other.getBuffId()) return false; } if (hasName() != other.hasName()) return false; if (hasName()) { if (!getName() .equals(other.getName())) 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 (hasBuffId()) { hash = (37 * hash) + BUFF_ID_FIELD_NUMBER; hash = (53 * hash) + getBuffId(); } if (hasName()) { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static SC2APIProtocol.Data.BuffData parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Data.BuffData parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Data.BuffData parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Data.BuffData parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Data.BuffData parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Data.BuffData parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Data.BuffData parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Data.BuffData 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.Data.BuffData parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static SC2APIProtocol.Data.BuffData 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.Data.BuffData parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Data.BuffData 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.Data.BuffData 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.BuffData} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:SC2APIProtocol.BuffData) SC2APIProtocol.Data.BuffDataOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Data.internal_static_SC2APIProtocol_BuffData_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Data.internal_static_SC2APIProtocol_BuffData_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Data.BuffData.class, SC2APIProtocol.Data.BuffData.Builder.class); } // Construct using SC2APIProtocol.Data.BuffData.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); buffId_ = 0; bitField0_ = (bitField0_ & ~0x00000001); name_ = ""; bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return SC2APIProtocol.Data.internal_static_SC2APIProtocol_BuffData_descriptor; } @java.lang.Override public SC2APIProtocol.Data.BuffData getDefaultInstanceForType() { return SC2APIProtocol.Data.BuffData.getDefaultInstance(); } @java.lang.Override public SC2APIProtocol.Data.BuffData build() { SC2APIProtocol.Data.BuffData result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public SC2APIProtocol.Data.BuffData buildPartial() { SC2APIProtocol.Data.BuffData result = new SC2APIProtocol.Data.BuffData(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.buffId_ = buffId_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { to_bitField0_ |= 0x00000002; } result.name_ = name_; 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.Data.BuffData) { return mergeFrom((SC2APIProtocol.Data.BuffData)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(SC2APIProtocol.Data.BuffData other) { if (other == SC2APIProtocol.Data.BuffData.getDefaultInstance()) return this; if (other.hasBuffId()) { setBuffId(other.getBuffId()); } if (other.hasName()) { bitField0_ |= 0x00000002; name_ = other.name_; 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: { buffId_ = input.readUInt32(); bitField0_ |= 0x00000001; break; } // case 8 case 18: { name_ = 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 buffId_ ; /** *
       * Stable ID.
       * 
* * optional uint32 buff_id = 1; * @return Whether the buffId field is set. */ @java.lang.Override public boolean hasBuffId() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * Stable ID.
       * 
* * optional uint32 buff_id = 1; * @return The buffId. */ @java.lang.Override public int getBuffId() { return buffId_; } /** *
       * Stable ID.
       * 
* * optional uint32 buff_id = 1; * @param value The buffId to set. * @return This builder for chaining. */ public Builder setBuffId(int value) { bitField0_ |= 0x00000001; buffId_ = value; onChanged(); return this; } /** *
       * Stable ID.
       * 
* * optional uint32 buff_id = 1; * @return This builder for chaining. */ public Builder clearBuffId() { bitField0_ = (bitField0_ & ~0x00000001); buffId_ = 0; onChanged(); return this; } private java.lang.Object name_ = ""; /** * optional string name = 2; * @return Whether the name field is set. */ public boolean hasName() { return ((bitField0_ & 0x00000002) != 0); } /** * optional string name = 2; * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; 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()) { name_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string name = 2; * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string name = 2; * @param value The name to set. * @return This builder for chaining. */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; name_ = value; onChanged(); return this; } /** * optional string name = 2; * @return This builder for chaining. */ public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000002); name_ = getDefaultInstance().getName(); onChanged(); return this; } /** * optional string name = 2; * @param value The bytes for name to set. * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; name_ = 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.BuffData) } // @@protoc_insertion_point(class_scope:SC2APIProtocol.BuffData) private static final SC2APIProtocol.Data.BuffData DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new SC2APIProtocol.Data.BuffData(); } public static SC2APIProtocol.Data.BuffData getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public BuffData 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.Data.BuffData getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface EffectDataOrBuilder extends // @@protoc_insertion_point(interface_extends:SC2APIProtocol.EffectData) com.google.protobuf.MessageOrBuilder { /** *
     * Stable ID.
     * 
* * optional uint32 effect_id = 1; * @return Whether the effectId field is set. */ boolean hasEffectId(); /** *
     * Stable ID.
     * 
* * optional uint32 effect_id = 1; * @return The effectId. */ int getEffectId(); /** * optional string name = 2; * @return Whether the name field is set. */ boolean hasName(); /** * optional string name = 2; * @return The name. */ java.lang.String getName(); /** * optional string name = 2; * @return The bytes for name. */ com.google.protobuf.ByteString getNameBytes(); /** * optional string friendly_name = 3; * @return Whether the friendlyName field is set. */ boolean hasFriendlyName(); /** * optional string friendly_name = 3; * @return The friendlyName. */ java.lang.String getFriendlyName(); /** * optional string friendly_name = 3; * @return The bytes for friendlyName. */ com.google.protobuf.ByteString getFriendlyNameBytes(); /** * optional float radius = 4; * @return Whether the radius field is set. */ boolean hasRadius(); /** * optional float radius = 4; * @return The radius. */ float getRadius(); } /** * Protobuf type {@code SC2APIProtocol.EffectData} */ public static final class EffectData extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:SC2APIProtocol.EffectData) EffectDataOrBuilder { private static final long serialVersionUID = 0L; // Use EffectData.newBuilder() to construct. private EffectData(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private EffectData() { name_ = ""; friendlyName_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new EffectData(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Data.internal_static_SC2APIProtocol_EffectData_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Data.internal_static_SC2APIProtocol_EffectData_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Data.EffectData.class, SC2APIProtocol.Data.EffectData.Builder.class); } private int bitField0_; public static final int EFFECT_ID_FIELD_NUMBER = 1; private int effectId_; /** *
     * Stable ID.
     * 
* * optional uint32 effect_id = 1; * @return Whether the effectId field is set. */ @java.lang.Override public boolean hasEffectId() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * Stable ID.
     * 
* * optional uint32 effect_id = 1; * @return The effectId. */ @java.lang.Override public int getEffectId() { return effectId_; } public static final int NAME_FIELD_NUMBER = 2; private volatile java.lang.Object name_; /** * optional string name = 2; * @return Whether the name field is set. */ @java.lang.Override public boolean hasName() { return ((bitField0_ & 0x00000002) != 0); } /** * optional string name = 2; * @return The name. */ @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; 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()) { name_ = s; } return s; } } /** * optional string name = 2; * @return The bytes for name. */ @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int FRIENDLY_NAME_FIELD_NUMBER = 3; private volatile java.lang.Object friendlyName_; /** * optional string friendly_name = 3; * @return Whether the friendlyName field is set. */ @java.lang.Override public boolean hasFriendlyName() { return ((bitField0_ & 0x00000004) != 0); } /** * optional string friendly_name = 3; * @return The friendlyName. */ @java.lang.Override public java.lang.String getFriendlyName() { java.lang.Object ref = friendlyName_; 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()) { friendlyName_ = s; } return s; } } /** * optional string friendly_name = 3; * @return The bytes for friendlyName. */ @java.lang.Override public com.google.protobuf.ByteString getFriendlyNameBytes() { java.lang.Object ref = friendlyName_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); friendlyName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int RADIUS_FIELD_NUMBER = 4; private float radius_; /** * optional float radius = 4; * @return Whether the radius field is set. */ @java.lang.Override public boolean hasRadius() { return ((bitField0_ & 0x00000008) != 0); } /** * optional float radius = 4; * @return The radius. */ @java.lang.Override public float getRadius() { return radius_; } 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, effectId_); } if (((bitField0_ & 0x00000002) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, name_); } if (((bitField0_ & 0x00000004) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, friendlyName_); } if (((bitField0_ & 0x00000008) != 0)) { output.writeFloat(4, radius_); } 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, effectId_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, name_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, friendlyName_); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeFloatSize(4, radius_); } 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.Data.EffectData)) { return super.equals(obj); } SC2APIProtocol.Data.EffectData other = (SC2APIProtocol.Data.EffectData) obj; if (hasEffectId() != other.hasEffectId()) return false; if (hasEffectId()) { if (getEffectId() != other.getEffectId()) return false; } if (hasName() != other.hasName()) return false; if (hasName()) { if (!getName() .equals(other.getName())) return false; } if (hasFriendlyName() != other.hasFriendlyName()) return false; if (hasFriendlyName()) { if (!getFriendlyName() .equals(other.getFriendlyName())) return false; } if (hasRadius() != other.hasRadius()) return false; if (hasRadius()) { if (java.lang.Float.floatToIntBits(getRadius()) != java.lang.Float.floatToIntBits( other.getRadius())) 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 (hasEffectId()) { hash = (37 * hash) + EFFECT_ID_FIELD_NUMBER; hash = (53 * hash) + getEffectId(); } if (hasName()) { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); } if (hasFriendlyName()) { hash = (37 * hash) + FRIENDLY_NAME_FIELD_NUMBER; hash = (53 * hash) + getFriendlyName().hashCode(); } if (hasRadius()) { hash = (37 * hash) + RADIUS_FIELD_NUMBER; hash = (53 * hash) + java.lang.Float.floatToIntBits( getRadius()); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static SC2APIProtocol.Data.EffectData parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Data.EffectData parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Data.EffectData parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Data.EffectData parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Data.EffectData parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Data.EffectData parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Data.EffectData parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Data.EffectData 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.Data.EffectData parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static SC2APIProtocol.Data.EffectData 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.Data.EffectData parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Data.EffectData 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.Data.EffectData 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.EffectData} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:SC2APIProtocol.EffectData) SC2APIProtocol.Data.EffectDataOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Data.internal_static_SC2APIProtocol_EffectData_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Data.internal_static_SC2APIProtocol_EffectData_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Data.EffectData.class, SC2APIProtocol.Data.EffectData.Builder.class); } // Construct using SC2APIProtocol.Data.EffectData.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); effectId_ = 0; bitField0_ = (bitField0_ & ~0x00000001); name_ = ""; bitField0_ = (bitField0_ & ~0x00000002); friendlyName_ = ""; bitField0_ = (bitField0_ & ~0x00000004); radius_ = 0F; bitField0_ = (bitField0_ & ~0x00000008); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return SC2APIProtocol.Data.internal_static_SC2APIProtocol_EffectData_descriptor; } @java.lang.Override public SC2APIProtocol.Data.EffectData getDefaultInstanceForType() { return SC2APIProtocol.Data.EffectData.getDefaultInstance(); } @java.lang.Override public SC2APIProtocol.Data.EffectData build() { SC2APIProtocol.Data.EffectData result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public SC2APIProtocol.Data.EffectData buildPartial() { SC2APIProtocol.Data.EffectData result = new SC2APIProtocol.Data.EffectData(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.effectId_ = effectId_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { to_bitField0_ |= 0x00000002; } result.name_ = name_; if (((from_bitField0_ & 0x00000004) != 0)) { to_bitField0_ |= 0x00000004; } result.friendlyName_ = friendlyName_; if (((from_bitField0_ & 0x00000008) != 0)) { result.radius_ = radius_; 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.Data.EffectData) { return mergeFrom((SC2APIProtocol.Data.EffectData)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(SC2APIProtocol.Data.EffectData other) { if (other == SC2APIProtocol.Data.EffectData.getDefaultInstance()) return this; if (other.hasEffectId()) { setEffectId(other.getEffectId()); } if (other.hasName()) { bitField0_ |= 0x00000002; name_ = other.name_; onChanged(); } if (other.hasFriendlyName()) { bitField0_ |= 0x00000004; friendlyName_ = other.friendlyName_; onChanged(); } if (other.hasRadius()) { setRadius(other.getRadius()); } 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: { effectId_ = input.readUInt32(); bitField0_ |= 0x00000001; break; } // case 8 case 18: { name_ = input.readBytes(); bitField0_ |= 0x00000002; break; } // case 18 case 26: { friendlyName_ = input.readBytes(); bitField0_ |= 0x00000004; break; } // case 26 case 37: { radius_ = input.readFloat(); bitField0_ |= 0x00000008; break; } // case 37 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 effectId_ ; /** *
       * Stable ID.
       * 
* * optional uint32 effect_id = 1; * @return Whether the effectId field is set. */ @java.lang.Override public boolean hasEffectId() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * Stable ID.
       * 
* * optional uint32 effect_id = 1; * @return The effectId. */ @java.lang.Override public int getEffectId() { return effectId_; } /** *
       * Stable ID.
       * 
* * optional uint32 effect_id = 1; * @param value The effectId to set. * @return This builder for chaining. */ public Builder setEffectId(int value) { bitField0_ |= 0x00000001; effectId_ = value; onChanged(); return this; } /** *
       * Stable ID.
       * 
* * optional uint32 effect_id = 1; * @return This builder for chaining. */ public Builder clearEffectId() { bitField0_ = (bitField0_ & ~0x00000001); effectId_ = 0; onChanged(); return this; } private java.lang.Object name_ = ""; /** * optional string name = 2; * @return Whether the name field is set. */ public boolean hasName() { return ((bitField0_ & 0x00000002) != 0); } /** * optional string name = 2; * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; 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()) { name_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string name = 2; * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string name = 2; * @param value The name to set. * @return This builder for chaining. */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; name_ = value; onChanged(); return this; } /** * optional string name = 2; * @return This builder for chaining. */ public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000002); name_ = getDefaultInstance().getName(); onChanged(); return this; } /** * optional string name = 2; * @param value The bytes for name to set. * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; name_ = value; onChanged(); return this; } private java.lang.Object friendlyName_ = ""; /** * optional string friendly_name = 3; * @return Whether the friendlyName field is set. */ public boolean hasFriendlyName() { return ((bitField0_ & 0x00000004) != 0); } /** * optional string friendly_name = 3; * @return The friendlyName. */ public java.lang.String getFriendlyName() { java.lang.Object ref = friendlyName_; 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()) { friendlyName_ = s; } return s; } else { return (java.lang.String) ref; } } /** * optional string friendly_name = 3; * @return The bytes for friendlyName. */ public com.google.protobuf.ByteString getFriendlyNameBytes() { java.lang.Object ref = friendlyName_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); friendlyName_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** * optional string friendly_name = 3; * @param value The friendlyName to set. * @return This builder for chaining. */ public Builder setFriendlyName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; friendlyName_ = value; onChanged(); return this; } /** * optional string friendly_name = 3; * @return This builder for chaining. */ public Builder clearFriendlyName() { bitField0_ = (bitField0_ & ~0x00000004); friendlyName_ = getDefaultInstance().getFriendlyName(); onChanged(); return this; } /** * optional string friendly_name = 3; * @param value The bytes for friendlyName to set. * @return This builder for chaining. */ public Builder setFriendlyNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; friendlyName_ = value; onChanged(); return this; } private float radius_ ; /** * optional float radius = 4; * @return Whether the radius field is set. */ @java.lang.Override public boolean hasRadius() { return ((bitField0_ & 0x00000008) != 0); } /** * optional float radius = 4; * @return The radius. */ @java.lang.Override public float getRadius() { return radius_; } /** * optional float radius = 4; * @param value The radius to set. * @return This builder for chaining. */ public Builder setRadius(float value) { bitField0_ |= 0x00000008; radius_ = value; onChanged(); return this; } /** * optional float radius = 4; * @return This builder for chaining. */ public Builder clearRadius() { bitField0_ = (bitField0_ & ~0x00000008); radius_ = 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.EffectData) } // @@protoc_insertion_point(class_scope:SC2APIProtocol.EffectData) private static final SC2APIProtocol.Data.EffectData DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new SC2APIProtocol.Data.EffectData(); } public static SC2APIProtocol.Data.EffectData getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public EffectData 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.Data.EffectData getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_SC2APIProtocol_AbilityData_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_SC2APIProtocol_AbilityData_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_SC2APIProtocol_DamageBonus_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_SC2APIProtocol_DamageBonus_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_SC2APIProtocol_Weapon_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_SC2APIProtocol_Weapon_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_SC2APIProtocol_UnitTypeData_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_SC2APIProtocol_UnitTypeData_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_SC2APIProtocol_UpgradeData_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_SC2APIProtocol_UpgradeData_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_SC2APIProtocol_BuffData_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_SC2APIProtocol_BuffData_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_SC2APIProtocol_EffectData_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_SC2APIProtocol_EffectData_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\033s2clientprotocol/data.proto\022\016SC2APIPro" + "tocol\032\035s2clientprotocol/common.proto\"\304\003\n" + "\013AbilityData\022\022\n\nability_id\030\001 \001(\r\022\021\n\tlink" + "_name\030\002 \001(\t\022\022\n\nlink_index\030\003 \001(\r\022\023\n\013butto" + "n_name\030\004 \001(\t\022\025\n\rfriendly_name\030\005 \001(\t\022\016\n\006h" + "otkey\030\006 \001(\t\022\034\n\024remaps_to_ability_id\030\007 \001(" + "\r\022\021\n\tavailable\030\010 \001(\010\0222\n\006target\030\t \001(\0162\".S" + "C2APIProtocol.AbilityData.Target\022\025\n\rallo" + "w_minimap\030\n \001(\010\022\026\n\016allow_autocast\030\013 \001(\010\022" + "\023\n\013is_building\030\014 \001(\010\022\030\n\020footprint_radius" + "\030\r \001(\002\022\034\n\024is_instant_placement\030\016 \001(\010\022\022\n\n" + "cast_range\030\017 \001(\002\"I\n\006Target\022\010\n\004None\020\001\022\t\n\005" + "Point\020\002\022\010\n\004Unit\020\003\022\017\n\013PointOrUnit\020\004\022\017\n\013Po" + "intOrNone\020\005\"J\n\013DamageBonus\022,\n\tattribute\030" + "\001 \001(\0162\031.SC2APIProtocol.Attribute\022\r\n\005bonu" + "s\030\002 \001(\002\"\327\001\n\006Weapon\022/\n\004type\030\001 \001(\0162!.SC2AP" + "IProtocol.Weapon.TargetType\022\016\n\006damage\030\002 " + "\001(\002\0221\n\014damage_bonus\030\003 \003(\0132\033.SC2APIProtoc" + "ol.DamageBonus\022\017\n\007attacks\030\004 \001(\r\022\r\n\005range" + "\030\005 \001(\002\022\r\n\005speed\030\006 \001(\002\"*\n\nTargetType\022\n\n\006G" + "round\020\001\022\007\n\003Air\020\002\022\007\n\003Any\020\003\"\225\004\n\014UnitTypeDa" + "ta\022\017\n\007unit_id\030\001 \001(\r\022\014\n\004name\030\002 \001(\t\022\021\n\tava" + "ilable\030\003 \001(\010\022\022\n\ncargo_size\030\004 \001(\r\022\024\n\014mine" + "ral_cost\030\014 \001(\r\022\024\n\014vespene_cost\030\r \001(\r\022\025\n\r" + "food_required\030\016 \001(\002\022\025\n\rfood_provided\030\022 \001" + "(\002\022\022\n\nability_id\030\017 \001(\r\022\"\n\004race\030\020 \001(\0162\024.S" + "C2APIProtocol.Race\022\022\n\nbuild_time\030\021 \001(\002\022\023" + "\n\013has_vespene\030\023 \001(\010\022\024\n\014has_minerals\030\024 \001(" + "\010\022\023\n\013sight_range\030\031 \001(\002\022\022\n\ntech_alias\030\025 \003" + "(\r\022\022\n\nunit_alias\030\026 \001(\r\022\030\n\020tech_requireme" + "nt\030\027 \001(\r\022\030\n\020require_attached\030\030 \001(\010\022-\n\nat" + "tributes\030\010 \003(\0162\031.SC2APIProtocol.Attribut" + "e\022\026\n\016movement_speed\030\t \001(\002\022\r\n\005armor\030\n \001(\002" + "\022\'\n\007weapons\030\013 \003(\0132\026.SC2APIProtocol.Weapo" + "n\"\206\001\n\013UpgradeData\022\022\n\nupgrade_id\030\001 \001(\r\022\014\n" + "\004name\030\002 \001(\t\022\024\n\014mineral_cost\030\003 \001(\r\022\024\n\014ves" + "pene_cost\030\004 \001(\r\022\025\n\rresearch_time\030\005 \001(\002\022\022" + "\n\nability_id\030\006 \001(\r\")\n\010BuffData\022\017\n\007buff_i" + "d\030\001 \001(\r\022\014\n\004name\030\002 \001(\t\"T\n\nEffectData\022\021\n\te" + "ffect_id\030\001 \001(\r\022\014\n\004name\030\002 \001(\t\022\025\n\rfriendly" + "_name\030\003 \001(\t\022\016\n\006radius\030\004 \001(\002*\236\001\n\tAttribut" + "e\022\t\n\005Light\020\001\022\013\n\007Armored\020\002\022\016\n\nBiological\020" + "\003\022\016\n\nMechanical\020\004\022\013\n\007Robotic\020\005\022\013\n\007Psioni" + "c\020\006\022\013\n\007Massive\020\007\022\r\n\tStructure\020\010\022\t\n\005Hover" + "\020\t\022\n\n\006Heroic\020\n\022\014\n\010Summoned\020\013" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { SC2APIProtocol.Common.getDescriptor(), }); internal_static_SC2APIProtocol_AbilityData_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_SC2APIProtocol_AbilityData_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_SC2APIProtocol_AbilityData_descriptor, new java.lang.String[] { "AbilityId", "LinkName", "LinkIndex", "ButtonName", "FriendlyName", "Hotkey", "RemapsToAbilityId", "Available", "Target", "AllowMinimap", "AllowAutocast", "IsBuilding", "FootprintRadius", "IsInstantPlacement", "CastRange", }); internal_static_SC2APIProtocol_DamageBonus_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_SC2APIProtocol_DamageBonus_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_SC2APIProtocol_DamageBonus_descriptor, new java.lang.String[] { "Attribute", "Bonus", }); internal_static_SC2APIProtocol_Weapon_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_SC2APIProtocol_Weapon_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_SC2APIProtocol_Weapon_descriptor, new java.lang.String[] { "Type", "Damage", "DamageBonus", "Attacks", "Range", "Speed", }); internal_static_SC2APIProtocol_UnitTypeData_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_SC2APIProtocol_UnitTypeData_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_SC2APIProtocol_UnitTypeData_descriptor, new java.lang.String[] { "UnitId", "Name", "Available", "CargoSize", "MineralCost", "VespeneCost", "FoodRequired", "FoodProvided", "AbilityId", "Race", "BuildTime", "HasVespene", "HasMinerals", "SightRange", "TechAlias", "UnitAlias", "TechRequirement", "RequireAttached", "Attributes", "MovementSpeed", "Armor", "Weapons", }); internal_static_SC2APIProtocol_UpgradeData_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_SC2APIProtocol_UpgradeData_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_SC2APIProtocol_UpgradeData_descriptor, new java.lang.String[] { "UpgradeId", "Name", "MineralCost", "VespeneCost", "ResearchTime", "AbilityId", }); internal_static_SC2APIProtocol_BuffData_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_SC2APIProtocol_BuffData_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_SC2APIProtocol_BuffData_descriptor, new java.lang.String[] { "BuffId", "Name", }); internal_static_SC2APIProtocol_EffectData_descriptor = getDescriptor().getMessageTypes().get(6); internal_static_SC2APIProtocol_EffectData_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_SC2APIProtocol_EffectData_descriptor, new java.lang.String[] { "EffectId", "Name", "FriendlyName", "Radius", }); SC2APIProtocol.Common.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy