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

SC2APIProtocol.Raw Maven / Gradle / Ivy

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

package SC2APIProtocol;

public final class Raw {
  private Raw() {}
  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.DisplayType}
   */
  public enum DisplayType
      implements com.google.protobuf.ProtocolMessageEnum {
    /**
     * 
     * Fully visible
     * 
* * Visible = 1; */ Visible(1), /** *
     * Dimmed version of unit left behind after entering fog of war
     * 
* * Snapshot = 2; */ Snapshot(2), /** *
     * Fully hidden
     * 
* * Hidden = 3; */ Hidden(3), /** *
     * Building that hasn't started construction.
     * 
* * Placeholder = 4; */ Placeholder(4), ; /** *
     * Fully visible
     * 
* * Visible = 1; */ public static final int Visible_VALUE = 1; /** *
     * Dimmed version of unit left behind after entering fog of war
     * 
* * Snapshot = 2; */ public static final int Snapshot_VALUE = 2; /** *
     * Fully hidden
     * 
* * Hidden = 3; */ public static final int Hidden_VALUE = 3; /** *
     * Building that hasn't started construction.
     * 
* * Placeholder = 4; */ public static final int Placeholder_VALUE = 4; public final int getNumber() { return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static DisplayType 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 DisplayType forNumber(int value) { switch (value) { case 1: return Visible; case 2: return Snapshot; case 3: return Hidden; case 4: return Placeholder; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< DisplayType> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public DisplayType findValueByNumber(int number) { return DisplayType.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.Raw.getDescriptor().getEnumTypes().get(0); } private static final DisplayType[] VALUES = values(); public static DisplayType 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 DisplayType(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:SC2APIProtocol.DisplayType) } /** * Protobuf enum {@code SC2APIProtocol.Alliance} */ public enum Alliance implements com.google.protobuf.ProtocolMessageEnum { /** * Self = 1; */ Self(1), /** * Ally = 2; */ Ally(2), /** * Neutral = 3; */ Neutral(3), /** * Enemy = 4; */ Enemy(4), ; /** * Self = 1; */ public static final int Self_VALUE = 1; /** * Ally = 2; */ public static final int Ally_VALUE = 2; /** * Neutral = 3; */ public static final int Neutral_VALUE = 3; /** * Enemy = 4; */ public static final int Enemy_VALUE = 4; public final int getNumber() { return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static Alliance 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 Alliance forNumber(int value) { switch (value) { case 1: return Self; case 2: return Ally; case 3: return Neutral; case 4: return Enemy; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< Alliance> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public Alliance findValueByNumber(int number) { return Alliance.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.Raw.getDescriptor().getEnumTypes().get(1); } private static final Alliance[] VALUES = values(); public static Alliance 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 Alliance(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:SC2APIProtocol.Alliance) } /** * Protobuf enum {@code SC2APIProtocol.CloakState} */ public enum CloakState implements com.google.protobuf.ProtocolMessageEnum { /** *
     * Under the fog, so unknown whether it's cloaked or not.
     * 
* * CloakedUnknown = 0; */ CloakedUnknown(0), /** * Cloaked = 1; */ Cloaked(1), /** * CloakedDetected = 2; */ CloakedDetected(2), /** * NotCloaked = 3; */ NotCloaked(3), /** * CloakedAllied = 4; */ CloakedAllied(4), ; /** *
     * Under the fog, so unknown whether it's cloaked or not.
     * 
* * CloakedUnknown = 0; */ public static final int CloakedUnknown_VALUE = 0; /** * Cloaked = 1; */ public static final int Cloaked_VALUE = 1; /** * CloakedDetected = 2; */ public static final int CloakedDetected_VALUE = 2; /** * NotCloaked = 3; */ public static final int NotCloaked_VALUE = 3; /** * CloakedAllied = 4; */ public static final int CloakedAllied_VALUE = 4; public final int getNumber() { return value; } /** * @param value The numeric wire value of the corresponding enum entry. * @return The enum associated with the given numeric wire value. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static CloakState 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 CloakState forNumber(int value) { switch (value) { case 0: return CloakedUnknown; case 1: return Cloaked; case 2: return CloakedDetected; case 3: return NotCloaked; case 4: return CloakedAllied; default: return null; } } public static com.google.protobuf.Internal.EnumLiteMap internalGetValueMap() { return internalValueMap; } private static final com.google.protobuf.Internal.EnumLiteMap< CloakState> internalValueMap = new com.google.protobuf.Internal.EnumLiteMap() { public CloakState findValueByNumber(int number) { return CloakState.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.Raw.getDescriptor().getEnumTypes().get(2); } private static final CloakState[] VALUES = values(); public static CloakState 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 CloakState(int value) { this.value = value; } // @@protoc_insertion_point(enum_scope:SC2APIProtocol.CloakState) } public interface StartRawOrBuilder extends // @@protoc_insertion_point(interface_extends:SC2APIProtocol.StartRaw) com.google.protobuf.MessageOrBuilder { /** *
     * Width and height of the map.
     * 
* * optional .SC2APIProtocol.Size2DI map_size = 1; * @return Whether the mapSize field is set. */ boolean hasMapSize(); /** *
     * Width and height of the map.
     * 
* * optional .SC2APIProtocol.Size2DI map_size = 1; * @return The mapSize. */ SC2APIProtocol.Common.Size2DI getMapSize(); /** *
     * Width and height of the map.
     * 
* * optional .SC2APIProtocol.Size2DI map_size = 1; */ SC2APIProtocol.Common.Size2DIOrBuilder getMapSizeOrBuilder(); /** *
     * 1 bit bitmap of the pathing grid.
     * 
* * optional .SC2APIProtocol.ImageData pathing_grid = 2; * @return Whether the pathingGrid field is set. */ boolean hasPathingGrid(); /** *
     * 1 bit bitmap of the pathing grid.
     * 
* * optional .SC2APIProtocol.ImageData pathing_grid = 2; * @return The pathingGrid. */ SC2APIProtocol.Common.ImageData getPathingGrid(); /** *
     * 1 bit bitmap of the pathing grid.
     * 
* * optional .SC2APIProtocol.ImageData pathing_grid = 2; */ SC2APIProtocol.Common.ImageDataOrBuilder getPathingGridOrBuilder(); /** *
     * 1 byte bitmap of the terrain height.
     * 
* * optional .SC2APIProtocol.ImageData terrain_height = 3; * @return Whether the terrainHeight field is set. */ boolean hasTerrainHeight(); /** *
     * 1 byte bitmap of the terrain height.
     * 
* * optional .SC2APIProtocol.ImageData terrain_height = 3; * @return The terrainHeight. */ SC2APIProtocol.Common.ImageData getTerrainHeight(); /** *
     * 1 byte bitmap of the terrain height.
     * 
* * optional .SC2APIProtocol.ImageData terrain_height = 3; */ SC2APIProtocol.Common.ImageDataOrBuilder getTerrainHeightOrBuilder(); /** *
     * 1 bit bitmap of the building placement grid.
     * 
* * optional .SC2APIProtocol.ImageData placement_grid = 4; * @return Whether the placementGrid field is set. */ boolean hasPlacementGrid(); /** *
     * 1 bit bitmap of the building placement grid.
     * 
* * optional .SC2APIProtocol.ImageData placement_grid = 4; * @return The placementGrid. */ SC2APIProtocol.Common.ImageData getPlacementGrid(); /** *
     * 1 bit bitmap of the building placement grid.
     * 
* * optional .SC2APIProtocol.ImageData placement_grid = 4; */ SC2APIProtocol.Common.ImageDataOrBuilder getPlacementGridOrBuilder(); /** *
     * The playable cells.
     * 
* * optional .SC2APIProtocol.RectangleI playable_area = 5; * @return Whether the playableArea field is set. */ boolean hasPlayableArea(); /** *
     * The playable cells.
     * 
* * optional .SC2APIProtocol.RectangleI playable_area = 5; * @return The playableArea. */ SC2APIProtocol.Common.RectangleI getPlayableArea(); /** *
     * The playable cells.
     * 
* * optional .SC2APIProtocol.RectangleI playable_area = 5; */ SC2APIProtocol.Common.RectangleIOrBuilder getPlayableAreaOrBuilder(); /** *
     * Possible start locations for players.
     * 
* * repeated .SC2APIProtocol.Point2D start_locations = 6; */ java.util.List getStartLocationsList(); /** *
     * Possible start locations for players.
     * 
* * repeated .SC2APIProtocol.Point2D start_locations = 6; */ SC2APIProtocol.Common.Point2D getStartLocations(int index); /** *
     * Possible start locations for players.
     * 
* * repeated .SC2APIProtocol.Point2D start_locations = 6; */ int getStartLocationsCount(); /** *
     * Possible start locations for players.
     * 
* * repeated .SC2APIProtocol.Point2D start_locations = 6; */ java.util.List getStartLocationsOrBuilderList(); /** *
     * Possible start locations for players.
     * 
* * repeated .SC2APIProtocol.Point2D start_locations = 6; */ SC2APIProtocol.Common.Point2DOrBuilder getStartLocationsOrBuilder( int index); } /** * Protobuf type {@code SC2APIProtocol.StartRaw} */ public static final class StartRaw extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:SC2APIProtocol.StartRaw) StartRawOrBuilder { private static final long serialVersionUID = 0L; // Use StartRaw.newBuilder() to construct. private StartRaw(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private StartRaw() { startLocations_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new StartRaw(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Raw.internal_static_SC2APIProtocol_StartRaw_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Raw.internal_static_SC2APIProtocol_StartRaw_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Raw.StartRaw.class, SC2APIProtocol.Raw.StartRaw.Builder.class); } private int bitField0_; public static final int MAP_SIZE_FIELD_NUMBER = 1; private SC2APIProtocol.Common.Size2DI mapSize_; /** *
     * Width and height of the map.
     * 
* * optional .SC2APIProtocol.Size2DI map_size = 1; * @return Whether the mapSize field is set. */ @java.lang.Override public boolean hasMapSize() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * Width and height of the map.
     * 
* * optional .SC2APIProtocol.Size2DI map_size = 1; * @return The mapSize. */ @java.lang.Override public SC2APIProtocol.Common.Size2DI getMapSize() { return mapSize_ == null ? SC2APIProtocol.Common.Size2DI.getDefaultInstance() : mapSize_; } /** *
     * Width and height of the map.
     * 
* * optional .SC2APIProtocol.Size2DI map_size = 1; */ @java.lang.Override public SC2APIProtocol.Common.Size2DIOrBuilder getMapSizeOrBuilder() { return mapSize_ == null ? SC2APIProtocol.Common.Size2DI.getDefaultInstance() : mapSize_; } public static final int PATHING_GRID_FIELD_NUMBER = 2; private SC2APIProtocol.Common.ImageData pathingGrid_; /** *
     * 1 bit bitmap of the pathing grid.
     * 
* * optional .SC2APIProtocol.ImageData pathing_grid = 2; * @return Whether the pathingGrid field is set. */ @java.lang.Override public boolean hasPathingGrid() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * 1 bit bitmap of the pathing grid.
     * 
* * optional .SC2APIProtocol.ImageData pathing_grid = 2; * @return The pathingGrid. */ @java.lang.Override public SC2APIProtocol.Common.ImageData getPathingGrid() { return pathingGrid_ == null ? SC2APIProtocol.Common.ImageData.getDefaultInstance() : pathingGrid_; } /** *
     * 1 bit bitmap of the pathing grid.
     * 
* * optional .SC2APIProtocol.ImageData pathing_grid = 2; */ @java.lang.Override public SC2APIProtocol.Common.ImageDataOrBuilder getPathingGridOrBuilder() { return pathingGrid_ == null ? SC2APIProtocol.Common.ImageData.getDefaultInstance() : pathingGrid_; } public static final int TERRAIN_HEIGHT_FIELD_NUMBER = 3; private SC2APIProtocol.Common.ImageData terrainHeight_; /** *
     * 1 byte bitmap of the terrain height.
     * 
* * optional .SC2APIProtocol.ImageData terrain_height = 3; * @return Whether the terrainHeight field is set. */ @java.lang.Override public boolean hasTerrainHeight() { return ((bitField0_ & 0x00000004) != 0); } /** *
     * 1 byte bitmap of the terrain height.
     * 
* * optional .SC2APIProtocol.ImageData terrain_height = 3; * @return The terrainHeight. */ @java.lang.Override public SC2APIProtocol.Common.ImageData getTerrainHeight() { return terrainHeight_ == null ? SC2APIProtocol.Common.ImageData.getDefaultInstance() : terrainHeight_; } /** *
     * 1 byte bitmap of the terrain height.
     * 
* * optional .SC2APIProtocol.ImageData terrain_height = 3; */ @java.lang.Override public SC2APIProtocol.Common.ImageDataOrBuilder getTerrainHeightOrBuilder() { return terrainHeight_ == null ? SC2APIProtocol.Common.ImageData.getDefaultInstance() : terrainHeight_; } public static final int PLACEMENT_GRID_FIELD_NUMBER = 4; private SC2APIProtocol.Common.ImageData placementGrid_; /** *
     * 1 bit bitmap of the building placement grid.
     * 
* * optional .SC2APIProtocol.ImageData placement_grid = 4; * @return Whether the placementGrid field is set. */ @java.lang.Override public boolean hasPlacementGrid() { return ((bitField0_ & 0x00000008) != 0); } /** *
     * 1 bit bitmap of the building placement grid.
     * 
* * optional .SC2APIProtocol.ImageData placement_grid = 4; * @return The placementGrid. */ @java.lang.Override public SC2APIProtocol.Common.ImageData getPlacementGrid() { return placementGrid_ == null ? SC2APIProtocol.Common.ImageData.getDefaultInstance() : placementGrid_; } /** *
     * 1 bit bitmap of the building placement grid.
     * 
* * optional .SC2APIProtocol.ImageData placement_grid = 4; */ @java.lang.Override public SC2APIProtocol.Common.ImageDataOrBuilder getPlacementGridOrBuilder() { return placementGrid_ == null ? SC2APIProtocol.Common.ImageData.getDefaultInstance() : placementGrid_; } public static final int PLAYABLE_AREA_FIELD_NUMBER = 5; private SC2APIProtocol.Common.RectangleI playableArea_; /** *
     * The playable cells.
     * 
* * optional .SC2APIProtocol.RectangleI playable_area = 5; * @return Whether the playableArea field is set. */ @java.lang.Override public boolean hasPlayableArea() { return ((bitField0_ & 0x00000010) != 0); } /** *
     * The playable cells.
     * 
* * optional .SC2APIProtocol.RectangleI playable_area = 5; * @return The playableArea. */ @java.lang.Override public SC2APIProtocol.Common.RectangleI getPlayableArea() { return playableArea_ == null ? SC2APIProtocol.Common.RectangleI.getDefaultInstance() : playableArea_; } /** *
     * The playable cells.
     * 
* * optional .SC2APIProtocol.RectangleI playable_area = 5; */ @java.lang.Override public SC2APIProtocol.Common.RectangleIOrBuilder getPlayableAreaOrBuilder() { return playableArea_ == null ? SC2APIProtocol.Common.RectangleI.getDefaultInstance() : playableArea_; } public static final int START_LOCATIONS_FIELD_NUMBER = 6; private java.util.List startLocations_; /** *
     * Possible start locations for players.
     * 
* * repeated .SC2APIProtocol.Point2D start_locations = 6; */ @java.lang.Override public java.util.List getStartLocationsList() { return startLocations_; } /** *
     * Possible start locations for players.
     * 
* * repeated .SC2APIProtocol.Point2D start_locations = 6; */ @java.lang.Override public java.util.List getStartLocationsOrBuilderList() { return startLocations_; } /** *
     * Possible start locations for players.
     * 
* * repeated .SC2APIProtocol.Point2D start_locations = 6; */ @java.lang.Override public int getStartLocationsCount() { return startLocations_.size(); } /** *
     * Possible start locations for players.
     * 
* * repeated .SC2APIProtocol.Point2D start_locations = 6; */ @java.lang.Override public SC2APIProtocol.Common.Point2D getStartLocations(int index) { return startLocations_.get(index); } /** *
     * Possible start locations for players.
     * 
* * repeated .SC2APIProtocol.Point2D start_locations = 6; */ @java.lang.Override public SC2APIProtocol.Common.Point2DOrBuilder getStartLocationsOrBuilder( int index) { return startLocations_.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.writeMessage(1, getMapSize()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getPathingGrid()); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(3, getTerrainHeight()); } if (((bitField0_ & 0x00000008) != 0)) { output.writeMessage(4, getPlacementGrid()); } if (((bitField0_ & 0x00000010) != 0)) { output.writeMessage(5, getPlayableArea()); } for (int i = 0; i < startLocations_.size(); i++) { output.writeMessage(6, startLocations_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getMapSize()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getPathingGrid()); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getTerrainHeight()); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getPlacementGrid()); } if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getPlayableArea()); } for (int i = 0; i < startLocations_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, startLocations_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof SC2APIProtocol.Raw.StartRaw)) { return super.equals(obj); } SC2APIProtocol.Raw.StartRaw other = (SC2APIProtocol.Raw.StartRaw) obj; if (hasMapSize() != other.hasMapSize()) return false; if (hasMapSize()) { if (!getMapSize() .equals(other.getMapSize())) return false; } if (hasPathingGrid() != other.hasPathingGrid()) return false; if (hasPathingGrid()) { if (!getPathingGrid() .equals(other.getPathingGrid())) return false; } if (hasTerrainHeight() != other.hasTerrainHeight()) return false; if (hasTerrainHeight()) { if (!getTerrainHeight() .equals(other.getTerrainHeight())) return false; } if (hasPlacementGrid() != other.hasPlacementGrid()) return false; if (hasPlacementGrid()) { if (!getPlacementGrid() .equals(other.getPlacementGrid())) return false; } if (hasPlayableArea() != other.hasPlayableArea()) return false; if (hasPlayableArea()) { if (!getPlayableArea() .equals(other.getPlayableArea())) return false; } if (!getStartLocationsList() .equals(other.getStartLocationsList())) 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 (hasMapSize()) { hash = (37 * hash) + MAP_SIZE_FIELD_NUMBER; hash = (53 * hash) + getMapSize().hashCode(); } if (hasPathingGrid()) { hash = (37 * hash) + PATHING_GRID_FIELD_NUMBER; hash = (53 * hash) + getPathingGrid().hashCode(); } if (hasTerrainHeight()) { hash = (37 * hash) + TERRAIN_HEIGHT_FIELD_NUMBER; hash = (53 * hash) + getTerrainHeight().hashCode(); } if (hasPlacementGrid()) { hash = (37 * hash) + PLACEMENT_GRID_FIELD_NUMBER; hash = (53 * hash) + getPlacementGrid().hashCode(); } if (hasPlayableArea()) { hash = (37 * hash) + PLAYABLE_AREA_FIELD_NUMBER; hash = (53 * hash) + getPlayableArea().hashCode(); } if (getStartLocationsCount() > 0) { hash = (37 * hash) + START_LOCATIONS_FIELD_NUMBER; hash = (53 * hash) + getStartLocationsList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static SC2APIProtocol.Raw.StartRaw parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Raw.StartRaw parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Raw.StartRaw parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Raw.StartRaw parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Raw.StartRaw parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Raw.StartRaw parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Raw.StartRaw parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Raw.StartRaw 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.Raw.StartRaw parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static SC2APIProtocol.Raw.StartRaw 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.Raw.StartRaw parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Raw.StartRaw 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.Raw.StartRaw 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.StartRaw} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:SC2APIProtocol.StartRaw) SC2APIProtocol.Raw.StartRawOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Raw.internal_static_SC2APIProtocol_StartRaw_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Raw.internal_static_SC2APIProtocol_StartRaw_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Raw.StartRaw.class, SC2APIProtocol.Raw.StartRaw.Builder.class); } // Construct using SC2APIProtocol.Raw.StartRaw.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getMapSizeFieldBuilder(); getPathingGridFieldBuilder(); getTerrainHeightFieldBuilder(); getPlacementGridFieldBuilder(); getPlayableAreaFieldBuilder(); getStartLocationsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (mapSizeBuilder_ == null) { mapSize_ = null; } else { mapSizeBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); if (pathingGridBuilder_ == null) { pathingGrid_ = null; } else { pathingGridBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); if (terrainHeightBuilder_ == null) { terrainHeight_ = null; } else { terrainHeightBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); if (placementGridBuilder_ == null) { placementGrid_ = null; } else { placementGridBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); if (playableAreaBuilder_ == null) { playableArea_ = null; } else { playableAreaBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); if (startLocationsBuilder_ == null) { startLocations_ = java.util.Collections.emptyList(); } else { startLocations_ = null; startLocationsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000020); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return SC2APIProtocol.Raw.internal_static_SC2APIProtocol_StartRaw_descriptor; } @java.lang.Override public SC2APIProtocol.Raw.StartRaw getDefaultInstanceForType() { return SC2APIProtocol.Raw.StartRaw.getDefaultInstance(); } @java.lang.Override public SC2APIProtocol.Raw.StartRaw build() { SC2APIProtocol.Raw.StartRaw result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public SC2APIProtocol.Raw.StartRaw buildPartial() { SC2APIProtocol.Raw.StartRaw result = new SC2APIProtocol.Raw.StartRaw(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { if (mapSizeBuilder_ == null) { result.mapSize_ = mapSize_; } else { result.mapSize_ = mapSizeBuilder_.build(); } to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { if (pathingGridBuilder_ == null) { result.pathingGrid_ = pathingGrid_; } else { result.pathingGrid_ = pathingGridBuilder_.build(); } to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { if (terrainHeightBuilder_ == null) { result.terrainHeight_ = terrainHeight_; } else { result.terrainHeight_ = terrainHeightBuilder_.build(); } to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000008) != 0)) { if (placementGridBuilder_ == null) { result.placementGrid_ = placementGrid_; } else { result.placementGrid_ = placementGridBuilder_.build(); } to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000010) != 0)) { if (playableAreaBuilder_ == null) { result.playableArea_ = playableArea_; } else { result.playableArea_ = playableAreaBuilder_.build(); } to_bitField0_ |= 0x00000010; } if (startLocationsBuilder_ == null) { if (((bitField0_ & 0x00000020) != 0)) { startLocations_ = java.util.Collections.unmodifiableList(startLocations_); bitField0_ = (bitField0_ & ~0x00000020); } result.startLocations_ = startLocations_; } else { result.startLocations_ = startLocationsBuilder_.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.Raw.StartRaw) { return mergeFrom((SC2APIProtocol.Raw.StartRaw)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(SC2APIProtocol.Raw.StartRaw other) { if (other == SC2APIProtocol.Raw.StartRaw.getDefaultInstance()) return this; if (other.hasMapSize()) { mergeMapSize(other.getMapSize()); } if (other.hasPathingGrid()) { mergePathingGrid(other.getPathingGrid()); } if (other.hasTerrainHeight()) { mergeTerrainHeight(other.getTerrainHeight()); } if (other.hasPlacementGrid()) { mergePlacementGrid(other.getPlacementGrid()); } if (other.hasPlayableArea()) { mergePlayableArea(other.getPlayableArea()); } if (startLocationsBuilder_ == null) { if (!other.startLocations_.isEmpty()) { if (startLocations_.isEmpty()) { startLocations_ = other.startLocations_; bitField0_ = (bitField0_ & ~0x00000020); } else { ensureStartLocationsIsMutable(); startLocations_.addAll(other.startLocations_); } onChanged(); } } else { if (!other.startLocations_.isEmpty()) { if (startLocationsBuilder_.isEmpty()) { startLocationsBuilder_.dispose(); startLocationsBuilder_ = null; startLocations_ = other.startLocations_; bitField0_ = (bitField0_ & ~0x00000020); startLocationsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getStartLocationsFieldBuilder() : null; } else { startLocationsBuilder_.addAllMessages(other.startLocations_); } } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getMapSizeFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getPathingGridFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 case 26: { input.readMessage( getTerrainHeightFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 26 case 34: { input.readMessage( getPlacementGridFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000008; break; } // case 34 case 42: { input.readMessage( getPlayableAreaFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000010; break; } // case 42 case 50: { SC2APIProtocol.Common.Point2D m = input.readMessage( SC2APIProtocol.Common.Point2D.PARSER, extensionRegistry); if (startLocationsBuilder_ == null) { ensureStartLocationsIsMutable(); startLocations_.add(m); } else { startLocationsBuilder_.addMessage(m); } break; } // case 50 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private SC2APIProtocol.Common.Size2DI mapSize_; private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Common.Size2DI, SC2APIProtocol.Common.Size2DI.Builder, SC2APIProtocol.Common.Size2DIOrBuilder> mapSizeBuilder_; /** *
       * Width and height of the map.
       * 
* * optional .SC2APIProtocol.Size2DI map_size = 1; * @return Whether the mapSize field is set. */ public boolean hasMapSize() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * Width and height of the map.
       * 
* * optional .SC2APIProtocol.Size2DI map_size = 1; * @return The mapSize. */ public SC2APIProtocol.Common.Size2DI getMapSize() { if (mapSizeBuilder_ == null) { return mapSize_ == null ? SC2APIProtocol.Common.Size2DI.getDefaultInstance() : mapSize_; } else { return mapSizeBuilder_.getMessage(); } } /** *
       * Width and height of the map.
       * 
* * optional .SC2APIProtocol.Size2DI map_size = 1; */ public Builder setMapSize(SC2APIProtocol.Common.Size2DI value) { if (mapSizeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } mapSize_ = value; onChanged(); } else { mapSizeBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** *
       * Width and height of the map.
       * 
* * optional .SC2APIProtocol.Size2DI map_size = 1; */ public Builder setMapSize( SC2APIProtocol.Common.Size2DI.Builder builderForValue) { if (mapSizeBuilder_ == null) { mapSize_ = builderForValue.build(); onChanged(); } else { mapSizeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** *
       * Width and height of the map.
       * 
* * optional .SC2APIProtocol.Size2DI map_size = 1; */ public Builder mergeMapSize(SC2APIProtocol.Common.Size2DI value) { if (mapSizeBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && mapSize_ != null && mapSize_ != SC2APIProtocol.Common.Size2DI.getDefaultInstance()) { mapSize_ = SC2APIProtocol.Common.Size2DI.newBuilder(mapSize_).mergeFrom(value).buildPartial(); } else { mapSize_ = value; } onChanged(); } else { mapSizeBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** *
       * Width and height of the map.
       * 
* * optional .SC2APIProtocol.Size2DI map_size = 1; */ public Builder clearMapSize() { if (mapSizeBuilder_ == null) { mapSize_ = null; onChanged(); } else { mapSizeBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** *
       * Width and height of the map.
       * 
* * optional .SC2APIProtocol.Size2DI map_size = 1; */ public SC2APIProtocol.Common.Size2DI.Builder getMapSizeBuilder() { bitField0_ |= 0x00000001; onChanged(); return getMapSizeFieldBuilder().getBuilder(); } /** *
       * Width and height of the map.
       * 
* * optional .SC2APIProtocol.Size2DI map_size = 1; */ public SC2APIProtocol.Common.Size2DIOrBuilder getMapSizeOrBuilder() { if (mapSizeBuilder_ != null) { return mapSizeBuilder_.getMessageOrBuilder(); } else { return mapSize_ == null ? SC2APIProtocol.Common.Size2DI.getDefaultInstance() : mapSize_; } } /** *
       * Width and height of the map.
       * 
* * optional .SC2APIProtocol.Size2DI map_size = 1; */ private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Common.Size2DI, SC2APIProtocol.Common.Size2DI.Builder, SC2APIProtocol.Common.Size2DIOrBuilder> getMapSizeFieldBuilder() { if (mapSizeBuilder_ == null) { mapSizeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Common.Size2DI, SC2APIProtocol.Common.Size2DI.Builder, SC2APIProtocol.Common.Size2DIOrBuilder>( getMapSize(), getParentForChildren(), isClean()); mapSize_ = null; } return mapSizeBuilder_; } private SC2APIProtocol.Common.ImageData pathingGrid_; private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Common.ImageData, SC2APIProtocol.Common.ImageData.Builder, SC2APIProtocol.Common.ImageDataOrBuilder> pathingGridBuilder_; /** *
       * 1 bit bitmap of the pathing grid.
       * 
* * optional .SC2APIProtocol.ImageData pathing_grid = 2; * @return Whether the pathingGrid field is set. */ public boolean hasPathingGrid() { return ((bitField0_ & 0x00000002) != 0); } /** *
       * 1 bit bitmap of the pathing grid.
       * 
* * optional .SC2APIProtocol.ImageData pathing_grid = 2; * @return The pathingGrid. */ public SC2APIProtocol.Common.ImageData getPathingGrid() { if (pathingGridBuilder_ == null) { return pathingGrid_ == null ? SC2APIProtocol.Common.ImageData.getDefaultInstance() : pathingGrid_; } else { return pathingGridBuilder_.getMessage(); } } /** *
       * 1 bit bitmap of the pathing grid.
       * 
* * optional .SC2APIProtocol.ImageData pathing_grid = 2; */ public Builder setPathingGrid(SC2APIProtocol.Common.ImageData value) { if (pathingGridBuilder_ == null) { if (value == null) { throw new NullPointerException(); } pathingGrid_ = value; onChanged(); } else { pathingGridBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /** *
       * 1 bit bitmap of the pathing grid.
       * 
* * optional .SC2APIProtocol.ImageData pathing_grid = 2; */ public Builder setPathingGrid( SC2APIProtocol.Common.ImageData.Builder builderForValue) { if (pathingGridBuilder_ == null) { pathingGrid_ = builderForValue.build(); onChanged(); } else { pathingGridBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** *
       * 1 bit bitmap of the pathing grid.
       * 
* * optional .SC2APIProtocol.ImageData pathing_grid = 2; */ public Builder mergePathingGrid(SC2APIProtocol.Common.ImageData value) { if (pathingGridBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && pathingGrid_ != null && pathingGrid_ != SC2APIProtocol.Common.ImageData.getDefaultInstance()) { pathingGrid_ = SC2APIProtocol.Common.ImageData.newBuilder(pathingGrid_).mergeFrom(value).buildPartial(); } else { pathingGrid_ = value; } onChanged(); } else { pathingGridBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** *
       * 1 bit bitmap of the pathing grid.
       * 
* * optional .SC2APIProtocol.ImageData pathing_grid = 2; */ public Builder clearPathingGrid() { if (pathingGridBuilder_ == null) { pathingGrid_ = null; onChanged(); } else { pathingGridBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** *
       * 1 bit bitmap of the pathing grid.
       * 
* * optional .SC2APIProtocol.ImageData pathing_grid = 2; */ public SC2APIProtocol.Common.ImageData.Builder getPathingGridBuilder() { bitField0_ |= 0x00000002; onChanged(); return getPathingGridFieldBuilder().getBuilder(); } /** *
       * 1 bit bitmap of the pathing grid.
       * 
* * optional .SC2APIProtocol.ImageData pathing_grid = 2; */ public SC2APIProtocol.Common.ImageDataOrBuilder getPathingGridOrBuilder() { if (pathingGridBuilder_ != null) { return pathingGridBuilder_.getMessageOrBuilder(); } else { return pathingGrid_ == null ? SC2APIProtocol.Common.ImageData.getDefaultInstance() : pathingGrid_; } } /** *
       * 1 bit bitmap of the pathing grid.
       * 
* * optional .SC2APIProtocol.ImageData pathing_grid = 2; */ private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Common.ImageData, SC2APIProtocol.Common.ImageData.Builder, SC2APIProtocol.Common.ImageDataOrBuilder> getPathingGridFieldBuilder() { if (pathingGridBuilder_ == null) { pathingGridBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Common.ImageData, SC2APIProtocol.Common.ImageData.Builder, SC2APIProtocol.Common.ImageDataOrBuilder>( getPathingGrid(), getParentForChildren(), isClean()); pathingGrid_ = null; } return pathingGridBuilder_; } private SC2APIProtocol.Common.ImageData terrainHeight_; private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Common.ImageData, SC2APIProtocol.Common.ImageData.Builder, SC2APIProtocol.Common.ImageDataOrBuilder> terrainHeightBuilder_; /** *
       * 1 byte bitmap of the terrain height.
       * 
* * optional .SC2APIProtocol.ImageData terrain_height = 3; * @return Whether the terrainHeight field is set. */ public boolean hasTerrainHeight() { return ((bitField0_ & 0x00000004) != 0); } /** *
       * 1 byte bitmap of the terrain height.
       * 
* * optional .SC2APIProtocol.ImageData terrain_height = 3; * @return The terrainHeight. */ public SC2APIProtocol.Common.ImageData getTerrainHeight() { if (terrainHeightBuilder_ == null) { return terrainHeight_ == null ? SC2APIProtocol.Common.ImageData.getDefaultInstance() : terrainHeight_; } else { return terrainHeightBuilder_.getMessage(); } } /** *
       * 1 byte bitmap of the terrain height.
       * 
* * optional .SC2APIProtocol.ImageData terrain_height = 3; */ public Builder setTerrainHeight(SC2APIProtocol.Common.ImageData value) { if (terrainHeightBuilder_ == null) { if (value == null) { throw new NullPointerException(); } terrainHeight_ = value; onChanged(); } else { terrainHeightBuilder_.setMessage(value); } bitField0_ |= 0x00000004; return this; } /** *
       * 1 byte bitmap of the terrain height.
       * 
* * optional .SC2APIProtocol.ImageData terrain_height = 3; */ public Builder setTerrainHeight( SC2APIProtocol.Common.ImageData.Builder builderForValue) { if (terrainHeightBuilder_ == null) { terrainHeight_ = builderForValue.build(); onChanged(); } else { terrainHeightBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; return this; } /** *
       * 1 byte bitmap of the terrain height.
       * 
* * optional .SC2APIProtocol.ImageData terrain_height = 3; */ public Builder mergeTerrainHeight(SC2APIProtocol.Common.ImageData value) { if (terrainHeightBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && terrainHeight_ != null && terrainHeight_ != SC2APIProtocol.Common.ImageData.getDefaultInstance()) { terrainHeight_ = SC2APIProtocol.Common.ImageData.newBuilder(terrainHeight_).mergeFrom(value).buildPartial(); } else { terrainHeight_ = value; } onChanged(); } else { terrainHeightBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; return this; } /** *
       * 1 byte bitmap of the terrain height.
       * 
* * optional .SC2APIProtocol.ImageData terrain_height = 3; */ public Builder clearTerrainHeight() { if (terrainHeightBuilder_ == null) { terrainHeight_ = null; onChanged(); } else { terrainHeightBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } /** *
       * 1 byte bitmap of the terrain height.
       * 
* * optional .SC2APIProtocol.ImageData terrain_height = 3; */ public SC2APIProtocol.Common.ImageData.Builder getTerrainHeightBuilder() { bitField0_ |= 0x00000004; onChanged(); return getTerrainHeightFieldBuilder().getBuilder(); } /** *
       * 1 byte bitmap of the terrain height.
       * 
* * optional .SC2APIProtocol.ImageData terrain_height = 3; */ public SC2APIProtocol.Common.ImageDataOrBuilder getTerrainHeightOrBuilder() { if (terrainHeightBuilder_ != null) { return terrainHeightBuilder_.getMessageOrBuilder(); } else { return terrainHeight_ == null ? SC2APIProtocol.Common.ImageData.getDefaultInstance() : terrainHeight_; } } /** *
       * 1 byte bitmap of the terrain height.
       * 
* * optional .SC2APIProtocol.ImageData terrain_height = 3; */ private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Common.ImageData, SC2APIProtocol.Common.ImageData.Builder, SC2APIProtocol.Common.ImageDataOrBuilder> getTerrainHeightFieldBuilder() { if (terrainHeightBuilder_ == null) { terrainHeightBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Common.ImageData, SC2APIProtocol.Common.ImageData.Builder, SC2APIProtocol.Common.ImageDataOrBuilder>( getTerrainHeight(), getParentForChildren(), isClean()); terrainHeight_ = null; } return terrainHeightBuilder_; } private SC2APIProtocol.Common.ImageData placementGrid_; private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Common.ImageData, SC2APIProtocol.Common.ImageData.Builder, SC2APIProtocol.Common.ImageDataOrBuilder> placementGridBuilder_; /** *
       * 1 bit bitmap of the building placement grid.
       * 
* * optional .SC2APIProtocol.ImageData placement_grid = 4; * @return Whether the placementGrid field is set. */ public boolean hasPlacementGrid() { return ((bitField0_ & 0x00000008) != 0); } /** *
       * 1 bit bitmap of the building placement grid.
       * 
* * optional .SC2APIProtocol.ImageData placement_grid = 4; * @return The placementGrid. */ public SC2APIProtocol.Common.ImageData getPlacementGrid() { if (placementGridBuilder_ == null) { return placementGrid_ == null ? SC2APIProtocol.Common.ImageData.getDefaultInstance() : placementGrid_; } else { return placementGridBuilder_.getMessage(); } } /** *
       * 1 bit bitmap of the building placement grid.
       * 
* * optional .SC2APIProtocol.ImageData placement_grid = 4; */ public Builder setPlacementGrid(SC2APIProtocol.Common.ImageData value) { if (placementGridBuilder_ == null) { if (value == null) { throw new NullPointerException(); } placementGrid_ = value; onChanged(); } else { placementGridBuilder_.setMessage(value); } bitField0_ |= 0x00000008; return this; } /** *
       * 1 bit bitmap of the building placement grid.
       * 
* * optional .SC2APIProtocol.ImageData placement_grid = 4; */ public Builder setPlacementGrid( SC2APIProtocol.Common.ImageData.Builder builderForValue) { if (placementGridBuilder_ == null) { placementGrid_ = builderForValue.build(); onChanged(); } else { placementGridBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; return this; } /** *
       * 1 bit bitmap of the building placement grid.
       * 
* * optional .SC2APIProtocol.ImageData placement_grid = 4; */ public Builder mergePlacementGrid(SC2APIProtocol.Common.ImageData value) { if (placementGridBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0) && placementGrid_ != null && placementGrid_ != SC2APIProtocol.Common.ImageData.getDefaultInstance()) { placementGrid_ = SC2APIProtocol.Common.ImageData.newBuilder(placementGrid_).mergeFrom(value).buildPartial(); } else { placementGrid_ = value; } onChanged(); } else { placementGridBuilder_.mergeFrom(value); } bitField0_ |= 0x00000008; return this; } /** *
       * 1 bit bitmap of the building placement grid.
       * 
* * optional .SC2APIProtocol.ImageData placement_grid = 4; */ public Builder clearPlacementGrid() { if (placementGridBuilder_ == null) { placementGrid_ = null; onChanged(); } else { placementGridBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); return this; } /** *
       * 1 bit bitmap of the building placement grid.
       * 
* * optional .SC2APIProtocol.ImageData placement_grid = 4; */ public SC2APIProtocol.Common.ImageData.Builder getPlacementGridBuilder() { bitField0_ |= 0x00000008; onChanged(); return getPlacementGridFieldBuilder().getBuilder(); } /** *
       * 1 bit bitmap of the building placement grid.
       * 
* * optional .SC2APIProtocol.ImageData placement_grid = 4; */ public SC2APIProtocol.Common.ImageDataOrBuilder getPlacementGridOrBuilder() { if (placementGridBuilder_ != null) { return placementGridBuilder_.getMessageOrBuilder(); } else { return placementGrid_ == null ? SC2APIProtocol.Common.ImageData.getDefaultInstance() : placementGrid_; } } /** *
       * 1 bit bitmap of the building placement grid.
       * 
* * optional .SC2APIProtocol.ImageData placement_grid = 4; */ private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Common.ImageData, SC2APIProtocol.Common.ImageData.Builder, SC2APIProtocol.Common.ImageDataOrBuilder> getPlacementGridFieldBuilder() { if (placementGridBuilder_ == null) { placementGridBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Common.ImageData, SC2APIProtocol.Common.ImageData.Builder, SC2APIProtocol.Common.ImageDataOrBuilder>( getPlacementGrid(), getParentForChildren(), isClean()); placementGrid_ = null; } return placementGridBuilder_; } private SC2APIProtocol.Common.RectangleI playableArea_; private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Common.RectangleI, SC2APIProtocol.Common.RectangleI.Builder, SC2APIProtocol.Common.RectangleIOrBuilder> playableAreaBuilder_; /** *
       * The playable cells.
       * 
* * optional .SC2APIProtocol.RectangleI playable_area = 5; * @return Whether the playableArea field is set. */ public boolean hasPlayableArea() { return ((bitField0_ & 0x00000010) != 0); } /** *
       * The playable cells.
       * 
* * optional .SC2APIProtocol.RectangleI playable_area = 5; * @return The playableArea. */ public SC2APIProtocol.Common.RectangleI getPlayableArea() { if (playableAreaBuilder_ == null) { return playableArea_ == null ? SC2APIProtocol.Common.RectangleI.getDefaultInstance() : playableArea_; } else { return playableAreaBuilder_.getMessage(); } } /** *
       * The playable cells.
       * 
* * optional .SC2APIProtocol.RectangleI playable_area = 5; */ public Builder setPlayableArea(SC2APIProtocol.Common.RectangleI value) { if (playableAreaBuilder_ == null) { if (value == null) { throw new NullPointerException(); } playableArea_ = value; onChanged(); } else { playableAreaBuilder_.setMessage(value); } bitField0_ |= 0x00000010; return this; } /** *
       * The playable cells.
       * 
* * optional .SC2APIProtocol.RectangleI playable_area = 5; */ public Builder setPlayableArea( SC2APIProtocol.Common.RectangleI.Builder builderForValue) { if (playableAreaBuilder_ == null) { playableArea_ = builderForValue.build(); onChanged(); } else { playableAreaBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; return this; } /** *
       * The playable cells.
       * 
* * optional .SC2APIProtocol.RectangleI playable_area = 5; */ public Builder mergePlayableArea(SC2APIProtocol.Common.RectangleI value) { if (playableAreaBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0) && playableArea_ != null && playableArea_ != SC2APIProtocol.Common.RectangleI.getDefaultInstance()) { playableArea_ = SC2APIProtocol.Common.RectangleI.newBuilder(playableArea_).mergeFrom(value).buildPartial(); } else { playableArea_ = value; } onChanged(); } else { playableAreaBuilder_.mergeFrom(value); } bitField0_ |= 0x00000010; return this; } /** *
       * The playable cells.
       * 
* * optional .SC2APIProtocol.RectangleI playable_area = 5; */ public Builder clearPlayableArea() { if (playableAreaBuilder_ == null) { playableArea_ = null; onChanged(); } else { playableAreaBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); return this; } /** *
       * The playable cells.
       * 
* * optional .SC2APIProtocol.RectangleI playable_area = 5; */ public SC2APIProtocol.Common.RectangleI.Builder getPlayableAreaBuilder() { bitField0_ |= 0x00000010; onChanged(); return getPlayableAreaFieldBuilder().getBuilder(); } /** *
       * The playable cells.
       * 
* * optional .SC2APIProtocol.RectangleI playable_area = 5; */ public SC2APIProtocol.Common.RectangleIOrBuilder getPlayableAreaOrBuilder() { if (playableAreaBuilder_ != null) { return playableAreaBuilder_.getMessageOrBuilder(); } else { return playableArea_ == null ? SC2APIProtocol.Common.RectangleI.getDefaultInstance() : playableArea_; } } /** *
       * The playable cells.
       * 
* * optional .SC2APIProtocol.RectangleI playable_area = 5; */ private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Common.RectangleI, SC2APIProtocol.Common.RectangleI.Builder, SC2APIProtocol.Common.RectangleIOrBuilder> getPlayableAreaFieldBuilder() { if (playableAreaBuilder_ == null) { playableAreaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Common.RectangleI, SC2APIProtocol.Common.RectangleI.Builder, SC2APIProtocol.Common.RectangleIOrBuilder>( getPlayableArea(), getParentForChildren(), isClean()); playableArea_ = null; } return playableAreaBuilder_; } private java.util.List startLocations_ = java.util.Collections.emptyList(); private void ensureStartLocationsIsMutable() { if (!((bitField0_ & 0x00000020) != 0)) { startLocations_ = new java.util.ArrayList(startLocations_); bitField0_ |= 0x00000020; } } private com.google.protobuf.RepeatedFieldBuilderV3< SC2APIProtocol.Common.Point2D, SC2APIProtocol.Common.Point2D.Builder, SC2APIProtocol.Common.Point2DOrBuilder> startLocationsBuilder_; /** *
       * Possible start locations for players.
       * 
* * repeated .SC2APIProtocol.Point2D start_locations = 6; */ public java.util.List getStartLocationsList() { if (startLocationsBuilder_ == null) { return java.util.Collections.unmodifiableList(startLocations_); } else { return startLocationsBuilder_.getMessageList(); } } /** *
       * Possible start locations for players.
       * 
* * repeated .SC2APIProtocol.Point2D start_locations = 6; */ public int getStartLocationsCount() { if (startLocationsBuilder_ == null) { return startLocations_.size(); } else { return startLocationsBuilder_.getCount(); } } /** *
       * Possible start locations for players.
       * 
* * repeated .SC2APIProtocol.Point2D start_locations = 6; */ public SC2APIProtocol.Common.Point2D getStartLocations(int index) { if (startLocationsBuilder_ == null) { return startLocations_.get(index); } else { return startLocationsBuilder_.getMessage(index); } } /** *
       * Possible start locations for players.
       * 
* * repeated .SC2APIProtocol.Point2D start_locations = 6; */ public Builder setStartLocations( int index, SC2APIProtocol.Common.Point2D value) { if (startLocationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureStartLocationsIsMutable(); startLocations_.set(index, value); onChanged(); } else { startLocationsBuilder_.setMessage(index, value); } return this; } /** *
       * Possible start locations for players.
       * 
* * repeated .SC2APIProtocol.Point2D start_locations = 6; */ public Builder setStartLocations( int index, SC2APIProtocol.Common.Point2D.Builder builderForValue) { if (startLocationsBuilder_ == null) { ensureStartLocationsIsMutable(); startLocations_.set(index, builderForValue.build()); onChanged(); } else { startLocationsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * Possible start locations for players.
       * 
* * repeated .SC2APIProtocol.Point2D start_locations = 6; */ public Builder addStartLocations(SC2APIProtocol.Common.Point2D value) { if (startLocationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureStartLocationsIsMutable(); startLocations_.add(value); onChanged(); } else { startLocationsBuilder_.addMessage(value); } return this; } /** *
       * Possible start locations for players.
       * 
* * repeated .SC2APIProtocol.Point2D start_locations = 6; */ public Builder addStartLocations( int index, SC2APIProtocol.Common.Point2D value) { if (startLocationsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureStartLocationsIsMutable(); startLocations_.add(index, value); onChanged(); } else { startLocationsBuilder_.addMessage(index, value); } return this; } /** *
       * Possible start locations for players.
       * 
* * repeated .SC2APIProtocol.Point2D start_locations = 6; */ public Builder addStartLocations( SC2APIProtocol.Common.Point2D.Builder builderForValue) { if (startLocationsBuilder_ == null) { ensureStartLocationsIsMutable(); startLocations_.add(builderForValue.build()); onChanged(); } else { startLocationsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * Possible start locations for players.
       * 
* * repeated .SC2APIProtocol.Point2D start_locations = 6; */ public Builder addStartLocations( int index, SC2APIProtocol.Common.Point2D.Builder builderForValue) { if (startLocationsBuilder_ == null) { ensureStartLocationsIsMutable(); startLocations_.add(index, builderForValue.build()); onChanged(); } else { startLocationsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * Possible start locations for players.
       * 
* * repeated .SC2APIProtocol.Point2D start_locations = 6; */ public Builder addAllStartLocations( java.lang.Iterable values) { if (startLocationsBuilder_ == null) { ensureStartLocationsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, startLocations_); onChanged(); } else { startLocationsBuilder_.addAllMessages(values); } return this; } /** *
       * Possible start locations for players.
       * 
* * repeated .SC2APIProtocol.Point2D start_locations = 6; */ public Builder clearStartLocations() { if (startLocationsBuilder_ == null) { startLocations_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000020); onChanged(); } else { startLocationsBuilder_.clear(); } return this; } /** *
       * Possible start locations for players.
       * 
* * repeated .SC2APIProtocol.Point2D start_locations = 6; */ public Builder removeStartLocations(int index) { if (startLocationsBuilder_ == null) { ensureStartLocationsIsMutable(); startLocations_.remove(index); onChanged(); } else { startLocationsBuilder_.remove(index); } return this; } /** *
       * Possible start locations for players.
       * 
* * repeated .SC2APIProtocol.Point2D start_locations = 6; */ public SC2APIProtocol.Common.Point2D.Builder getStartLocationsBuilder( int index) { return getStartLocationsFieldBuilder().getBuilder(index); } /** *
       * Possible start locations for players.
       * 
* * repeated .SC2APIProtocol.Point2D start_locations = 6; */ public SC2APIProtocol.Common.Point2DOrBuilder getStartLocationsOrBuilder( int index) { if (startLocationsBuilder_ == null) { return startLocations_.get(index); } else { return startLocationsBuilder_.getMessageOrBuilder(index); } } /** *
       * Possible start locations for players.
       * 
* * repeated .SC2APIProtocol.Point2D start_locations = 6; */ public java.util.List getStartLocationsOrBuilderList() { if (startLocationsBuilder_ != null) { return startLocationsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(startLocations_); } } /** *
       * Possible start locations for players.
       * 
* * repeated .SC2APIProtocol.Point2D start_locations = 6; */ public SC2APIProtocol.Common.Point2D.Builder addStartLocationsBuilder() { return getStartLocationsFieldBuilder().addBuilder( SC2APIProtocol.Common.Point2D.getDefaultInstance()); } /** *
       * Possible start locations for players.
       * 
* * repeated .SC2APIProtocol.Point2D start_locations = 6; */ public SC2APIProtocol.Common.Point2D.Builder addStartLocationsBuilder( int index) { return getStartLocationsFieldBuilder().addBuilder( index, SC2APIProtocol.Common.Point2D.getDefaultInstance()); } /** *
       * Possible start locations for players.
       * 
* * repeated .SC2APIProtocol.Point2D start_locations = 6; */ public java.util.List getStartLocationsBuilderList() { return getStartLocationsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< SC2APIProtocol.Common.Point2D, SC2APIProtocol.Common.Point2D.Builder, SC2APIProtocol.Common.Point2DOrBuilder> getStartLocationsFieldBuilder() { if (startLocationsBuilder_ == null) { startLocationsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< SC2APIProtocol.Common.Point2D, SC2APIProtocol.Common.Point2D.Builder, SC2APIProtocol.Common.Point2DOrBuilder>( startLocations_, ((bitField0_ & 0x00000020) != 0), getParentForChildren(), isClean()); startLocations_ = null; } return startLocationsBuilder_; } @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.StartRaw) } // @@protoc_insertion_point(class_scope:SC2APIProtocol.StartRaw) private static final SC2APIProtocol.Raw.StartRaw DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new SC2APIProtocol.Raw.StartRaw(); } public static SC2APIProtocol.Raw.StartRaw getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public StartRaw 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.Raw.StartRaw getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ObservationRawOrBuilder extends // @@protoc_insertion_point(interface_extends:SC2APIProtocol.ObservationRaw) com.google.protobuf.MessageOrBuilder { /** * optional .SC2APIProtocol.PlayerRaw player = 1; * @return Whether the player field is set. */ boolean hasPlayer(); /** * optional .SC2APIProtocol.PlayerRaw player = 1; * @return The player. */ SC2APIProtocol.Raw.PlayerRaw getPlayer(); /** * optional .SC2APIProtocol.PlayerRaw player = 1; */ SC2APIProtocol.Raw.PlayerRawOrBuilder getPlayerOrBuilder(); /** * repeated .SC2APIProtocol.Unit units = 2; */ java.util.List getUnitsList(); /** * repeated .SC2APIProtocol.Unit units = 2; */ SC2APIProtocol.Raw.Unit getUnits(int index); /** * repeated .SC2APIProtocol.Unit units = 2; */ int getUnitsCount(); /** * repeated .SC2APIProtocol.Unit units = 2; */ java.util.List getUnitsOrBuilderList(); /** * repeated .SC2APIProtocol.Unit units = 2; */ SC2APIProtocol.Raw.UnitOrBuilder getUnitsOrBuilder( int index); /** *
     * Fog of war, creep and so on. Board stuff that changes per frame.
     * 
* * optional .SC2APIProtocol.MapState map_state = 3; * @return Whether the mapState field is set. */ boolean hasMapState(); /** *
     * Fog of war, creep and so on. Board stuff that changes per frame.
     * 
* * optional .SC2APIProtocol.MapState map_state = 3; * @return The mapState. */ SC2APIProtocol.Raw.MapState getMapState(); /** *
     * Fog of war, creep and so on. Board stuff that changes per frame.
     * 
* * optional .SC2APIProtocol.MapState map_state = 3; */ SC2APIProtocol.Raw.MapStateOrBuilder getMapStateOrBuilder(); /** * optional .SC2APIProtocol.Event event = 4; * @return Whether the event field is set. */ boolean hasEvent(); /** * optional .SC2APIProtocol.Event event = 4; * @return The event. */ SC2APIProtocol.Raw.Event getEvent(); /** * optional .SC2APIProtocol.Event event = 4; */ SC2APIProtocol.Raw.EventOrBuilder getEventOrBuilder(); /** * repeated .SC2APIProtocol.Effect effects = 5; */ java.util.List getEffectsList(); /** * repeated .SC2APIProtocol.Effect effects = 5; */ SC2APIProtocol.Raw.Effect getEffects(int index); /** * repeated .SC2APIProtocol.Effect effects = 5; */ int getEffectsCount(); /** * repeated .SC2APIProtocol.Effect effects = 5; */ java.util.List getEffectsOrBuilderList(); /** * repeated .SC2APIProtocol.Effect effects = 5; */ SC2APIProtocol.Raw.EffectOrBuilder getEffectsOrBuilder( int index); /** * repeated .SC2APIProtocol.RadarRing radar = 6; */ java.util.List getRadarList(); /** * repeated .SC2APIProtocol.RadarRing radar = 6; */ SC2APIProtocol.Raw.RadarRing getRadar(int index); /** * repeated .SC2APIProtocol.RadarRing radar = 6; */ int getRadarCount(); /** * repeated .SC2APIProtocol.RadarRing radar = 6; */ java.util.List getRadarOrBuilderList(); /** * repeated .SC2APIProtocol.RadarRing radar = 6; */ SC2APIProtocol.Raw.RadarRingOrBuilder getRadarOrBuilder( int index); } /** * Protobuf type {@code SC2APIProtocol.ObservationRaw} */ public static final class ObservationRaw extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:SC2APIProtocol.ObservationRaw) ObservationRawOrBuilder { private static final long serialVersionUID = 0L; // Use ObservationRaw.newBuilder() to construct. private ObservationRaw(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ObservationRaw() { units_ = java.util.Collections.emptyList(); effects_ = java.util.Collections.emptyList(); radar_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ObservationRaw(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Raw.internal_static_SC2APIProtocol_ObservationRaw_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Raw.internal_static_SC2APIProtocol_ObservationRaw_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Raw.ObservationRaw.class, SC2APIProtocol.Raw.ObservationRaw.Builder.class); } private int bitField0_; public static final int PLAYER_FIELD_NUMBER = 1; private SC2APIProtocol.Raw.PlayerRaw player_; /** * optional .SC2APIProtocol.PlayerRaw player = 1; * @return Whether the player field is set. */ @java.lang.Override public boolean hasPlayer() { return ((bitField0_ & 0x00000001) != 0); } /** * optional .SC2APIProtocol.PlayerRaw player = 1; * @return The player. */ @java.lang.Override public SC2APIProtocol.Raw.PlayerRaw getPlayer() { return player_ == null ? SC2APIProtocol.Raw.PlayerRaw.getDefaultInstance() : player_; } /** * optional .SC2APIProtocol.PlayerRaw player = 1; */ @java.lang.Override public SC2APIProtocol.Raw.PlayerRawOrBuilder getPlayerOrBuilder() { return player_ == null ? SC2APIProtocol.Raw.PlayerRaw.getDefaultInstance() : player_; } public static final int UNITS_FIELD_NUMBER = 2; private java.util.List units_; /** * repeated .SC2APIProtocol.Unit units = 2; */ @java.lang.Override public java.util.List getUnitsList() { return units_; } /** * repeated .SC2APIProtocol.Unit units = 2; */ @java.lang.Override public java.util.List getUnitsOrBuilderList() { return units_; } /** * repeated .SC2APIProtocol.Unit units = 2; */ @java.lang.Override public int getUnitsCount() { return units_.size(); } /** * repeated .SC2APIProtocol.Unit units = 2; */ @java.lang.Override public SC2APIProtocol.Raw.Unit getUnits(int index) { return units_.get(index); } /** * repeated .SC2APIProtocol.Unit units = 2; */ @java.lang.Override public SC2APIProtocol.Raw.UnitOrBuilder getUnitsOrBuilder( int index) { return units_.get(index); } public static final int MAP_STATE_FIELD_NUMBER = 3; private SC2APIProtocol.Raw.MapState mapState_; /** *
     * Fog of war, creep and so on. Board stuff that changes per frame.
     * 
* * optional .SC2APIProtocol.MapState map_state = 3; * @return Whether the mapState field is set. */ @java.lang.Override public boolean hasMapState() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * Fog of war, creep and so on. Board stuff that changes per frame.
     * 
* * optional .SC2APIProtocol.MapState map_state = 3; * @return The mapState. */ @java.lang.Override public SC2APIProtocol.Raw.MapState getMapState() { return mapState_ == null ? SC2APIProtocol.Raw.MapState.getDefaultInstance() : mapState_; } /** *
     * Fog of war, creep and so on. Board stuff that changes per frame.
     * 
* * optional .SC2APIProtocol.MapState map_state = 3; */ @java.lang.Override public SC2APIProtocol.Raw.MapStateOrBuilder getMapStateOrBuilder() { return mapState_ == null ? SC2APIProtocol.Raw.MapState.getDefaultInstance() : mapState_; } public static final int EVENT_FIELD_NUMBER = 4; private SC2APIProtocol.Raw.Event event_; /** * optional .SC2APIProtocol.Event event = 4; * @return Whether the event field is set. */ @java.lang.Override public boolean hasEvent() { return ((bitField0_ & 0x00000004) != 0); } /** * optional .SC2APIProtocol.Event event = 4; * @return The event. */ @java.lang.Override public SC2APIProtocol.Raw.Event getEvent() { return event_ == null ? SC2APIProtocol.Raw.Event.getDefaultInstance() : event_; } /** * optional .SC2APIProtocol.Event event = 4; */ @java.lang.Override public SC2APIProtocol.Raw.EventOrBuilder getEventOrBuilder() { return event_ == null ? SC2APIProtocol.Raw.Event.getDefaultInstance() : event_; } public static final int EFFECTS_FIELD_NUMBER = 5; private java.util.List effects_; /** * repeated .SC2APIProtocol.Effect effects = 5; */ @java.lang.Override public java.util.List getEffectsList() { return effects_; } /** * repeated .SC2APIProtocol.Effect effects = 5; */ @java.lang.Override public java.util.List getEffectsOrBuilderList() { return effects_; } /** * repeated .SC2APIProtocol.Effect effects = 5; */ @java.lang.Override public int getEffectsCount() { return effects_.size(); } /** * repeated .SC2APIProtocol.Effect effects = 5; */ @java.lang.Override public SC2APIProtocol.Raw.Effect getEffects(int index) { return effects_.get(index); } /** * repeated .SC2APIProtocol.Effect effects = 5; */ @java.lang.Override public SC2APIProtocol.Raw.EffectOrBuilder getEffectsOrBuilder( int index) { return effects_.get(index); } public static final int RADAR_FIELD_NUMBER = 6; private java.util.List radar_; /** * repeated .SC2APIProtocol.RadarRing radar = 6; */ @java.lang.Override public java.util.List getRadarList() { return radar_; } /** * repeated .SC2APIProtocol.RadarRing radar = 6; */ @java.lang.Override public java.util.List getRadarOrBuilderList() { return radar_; } /** * repeated .SC2APIProtocol.RadarRing radar = 6; */ @java.lang.Override public int getRadarCount() { return radar_.size(); } /** * repeated .SC2APIProtocol.RadarRing radar = 6; */ @java.lang.Override public SC2APIProtocol.Raw.RadarRing getRadar(int index) { return radar_.get(index); } /** * repeated .SC2APIProtocol.RadarRing radar = 6; */ @java.lang.Override public SC2APIProtocol.Raw.RadarRingOrBuilder getRadarOrBuilder( int index) { return radar_.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.writeMessage(1, getPlayer()); } for (int i = 0; i < units_.size(); i++) { output.writeMessage(2, units_.get(i)); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(3, getMapState()); } if (((bitField0_ & 0x00000004) != 0)) { output.writeMessage(4, getEvent()); } for (int i = 0; i < effects_.size(); i++) { output.writeMessage(5, effects_.get(i)); } for (int i = 0; i < radar_.size(); i++) { output.writeMessage(6, radar_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getPlayer()); } for (int i = 0; i < units_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, units_.get(i)); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, getMapState()); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(4, getEvent()); } for (int i = 0; i < effects_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, effects_.get(i)); } for (int i = 0; i < radar_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, radar_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof SC2APIProtocol.Raw.ObservationRaw)) { return super.equals(obj); } SC2APIProtocol.Raw.ObservationRaw other = (SC2APIProtocol.Raw.ObservationRaw) obj; if (hasPlayer() != other.hasPlayer()) return false; if (hasPlayer()) { if (!getPlayer() .equals(other.getPlayer())) return false; } if (!getUnitsList() .equals(other.getUnitsList())) return false; if (hasMapState() != other.hasMapState()) return false; if (hasMapState()) { if (!getMapState() .equals(other.getMapState())) return false; } if (hasEvent() != other.hasEvent()) return false; if (hasEvent()) { if (!getEvent() .equals(other.getEvent())) return false; } if (!getEffectsList() .equals(other.getEffectsList())) return false; if (!getRadarList() .equals(other.getRadarList())) 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 (hasPlayer()) { hash = (37 * hash) + PLAYER_FIELD_NUMBER; hash = (53 * hash) + getPlayer().hashCode(); } if (getUnitsCount() > 0) { hash = (37 * hash) + UNITS_FIELD_NUMBER; hash = (53 * hash) + getUnitsList().hashCode(); } if (hasMapState()) { hash = (37 * hash) + MAP_STATE_FIELD_NUMBER; hash = (53 * hash) + getMapState().hashCode(); } if (hasEvent()) { hash = (37 * hash) + EVENT_FIELD_NUMBER; hash = (53 * hash) + getEvent().hashCode(); } if (getEffectsCount() > 0) { hash = (37 * hash) + EFFECTS_FIELD_NUMBER; hash = (53 * hash) + getEffectsList().hashCode(); } if (getRadarCount() > 0) { hash = (37 * hash) + RADAR_FIELD_NUMBER; hash = (53 * hash) + getRadarList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static SC2APIProtocol.Raw.ObservationRaw parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Raw.ObservationRaw parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Raw.ObservationRaw parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Raw.ObservationRaw parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Raw.ObservationRaw parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Raw.ObservationRaw parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Raw.ObservationRaw parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Raw.ObservationRaw 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.Raw.ObservationRaw parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static SC2APIProtocol.Raw.ObservationRaw 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.Raw.ObservationRaw parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Raw.ObservationRaw 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.Raw.ObservationRaw 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.ObservationRaw} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:SC2APIProtocol.ObservationRaw) SC2APIProtocol.Raw.ObservationRawOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Raw.internal_static_SC2APIProtocol_ObservationRaw_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Raw.internal_static_SC2APIProtocol_ObservationRaw_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Raw.ObservationRaw.class, SC2APIProtocol.Raw.ObservationRaw.Builder.class); } // Construct using SC2APIProtocol.Raw.ObservationRaw.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getPlayerFieldBuilder(); getUnitsFieldBuilder(); getMapStateFieldBuilder(); getEventFieldBuilder(); getEffectsFieldBuilder(); getRadarFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (playerBuilder_ == null) { player_ = null; } else { playerBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); if (unitsBuilder_ == null) { units_ = java.util.Collections.emptyList(); } else { units_ = null; unitsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); if (mapStateBuilder_ == null) { mapState_ = null; } else { mapStateBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); if (eventBuilder_ == null) { event_ = null; } else { eventBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); if (effectsBuilder_ == null) { effects_ = java.util.Collections.emptyList(); } else { effects_ = null; effectsBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); if (radarBuilder_ == null) { radar_ = java.util.Collections.emptyList(); } else { radar_ = null; radarBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000020); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return SC2APIProtocol.Raw.internal_static_SC2APIProtocol_ObservationRaw_descriptor; } @java.lang.Override public SC2APIProtocol.Raw.ObservationRaw getDefaultInstanceForType() { return SC2APIProtocol.Raw.ObservationRaw.getDefaultInstance(); } @java.lang.Override public SC2APIProtocol.Raw.ObservationRaw build() { SC2APIProtocol.Raw.ObservationRaw result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public SC2APIProtocol.Raw.ObservationRaw buildPartial() { SC2APIProtocol.Raw.ObservationRaw result = new SC2APIProtocol.Raw.ObservationRaw(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { if (playerBuilder_ == null) { result.player_ = player_; } else { result.player_ = playerBuilder_.build(); } to_bitField0_ |= 0x00000001; } if (unitsBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { units_ = java.util.Collections.unmodifiableList(units_); bitField0_ = (bitField0_ & ~0x00000002); } result.units_ = units_; } else { result.units_ = unitsBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { if (mapStateBuilder_ == null) { result.mapState_ = mapState_; } else { result.mapState_ = mapStateBuilder_.build(); } to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000008) != 0)) { if (eventBuilder_ == null) { result.event_ = event_; } else { result.event_ = eventBuilder_.build(); } to_bitField0_ |= 0x00000004; } if (effectsBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0)) { effects_ = java.util.Collections.unmodifiableList(effects_); bitField0_ = (bitField0_ & ~0x00000010); } result.effects_ = effects_; } else { result.effects_ = effectsBuilder_.build(); } if (radarBuilder_ == null) { if (((bitField0_ & 0x00000020) != 0)) { radar_ = java.util.Collections.unmodifiableList(radar_); bitField0_ = (bitField0_ & ~0x00000020); } result.radar_ = radar_; } else { result.radar_ = radarBuilder_.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.Raw.ObservationRaw) { return mergeFrom((SC2APIProtocol.Raw.ObservationRaw)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(SC2APIProtocol.Raw.ObservationRaw other) { if (other == SC2APIProtocol.Raw.ObservationRaw.getDefaultInstance()) return this; if (other.hasPlayer()) { mergePlayer(other.getPlayer()); } if (unitsBuilder_ == null) { if (!other.units_.isEmpty()) { if (units_.isEmpty()) { units_ = other.units_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureUnitsIsMutable(); units_.addAll(other.units_); } onChanged(); } } else { if (!other.units_.isEmpty()) { if (unitsBuilder_.isEmpty()) { unitsBuilder_.dispose(); unitsBuilder_ = null; units_ = other.units_; bitField0_ = (bitField0_ & ~0x00000002); unitsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getUnitsFieldBuilder() : null; } else { unitsBuilder_.addAllMessages(other.units_); } } } if (other.hasMapState()) { mergeMapState(other.getMapState()); } if (other.hasEvent()) { mergeEvent(other.getEvent()); } if (effectsBuilder_ == null) { if (!other.effects_.isEmpty()) { if (effects_.isEmpty()) { effects_ = other.effects_; bitField0_ = (bitField0_ & ~0x00000010); } else { ensureEffectsIsMutable(); effects_.addAll(other.effects_); } onChanged(); } } else { if (!other.effects_.isEmpty()) { if (effectsBuilder_.isEmpty()) { effectsBuilder_.dispose(); effectsBuilder_ = null; effects_ = other.effects_; bitField0_ = (bitField0_ & ~0x00000010); effectsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getEffectsFieldBuilder() : null; } else { effectsBuilder_.addAllMessages(other.effects_); } } } if (radarBuilder_ == null) { if (!other.radar_.isEmpty()) { if (radar_.isEmpty()) { radar_ = other.radar_; bitField0_ = (bitField0_ & ~0x00000020); } else { ensureRadarIsMutable(); radar_.addAll(other.radar_); } onChanged(); } } else { if (!other.radar_.isEmpty()) { if (radarBuilder_.isEmpty()) { radarBuilder_.dispose(); radarBuilder_ = null; radar_ = other.radar_; bitField0_ = (bitField0_ & ~0x00000020); radarBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getRadarFieldBuilder() : null; } else { radarBuilder_.addAllMessages(other.radar_); } } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getPlayerFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { SC2APIProtocol.Raw.Unit m = input.readMessage( SC2APIProtocol.Raw.Unit.PARSER, extensionRegistry); if (unitsBuilder_ == null) { ensureUnitsIsMutable(); units_.add(m); } else { unitsBuilder_.addMessage(m); } break; } // case 18 case 26: { input.readMessage( getMapStateFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000004; break; } // case 26 case 34: { input.readMessage( getEventFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000008; break; } // case 34 case 42: { SC2APIProtocol.Raw.Effect m = input.readMessage( SC2APIProtocol.Raw.Effect.PARSER, extensionRegistry); if (effectsBuilder_ == null) { ensureEffectsIsMutable(); effects_.add(m); } else { effectsBuilder_.addMessage(m); } break; } // case 42 case 50: { SC2APIProtocol.Raw.RadarRing m = input.readMessage( SC2APIProtocol.Raw.RadarRing.PARSER, extensionRegistry); if (radarBuilder_ == null) { ensureRadarIsMutable(); radar_.add(m); } else { radarBuilder_.addMessage(m); } break; } // case 50 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private SC2APIProtocol.Raw.PlayerRaw player_; private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Raw.PlayerRaw, SC2APIProtocol.Raw.PlayerRaw.Builder, SC2APIProtocol.Raw.PlayerRawOrBuilder> playerBuilder_; /** * optional .SC2APIProtocol.PlayerRaw player = 1; * @return Whether the player field is set. */ public boolean hasPlayer() { return ((bitField0_ & 0x00000001) != 0); } /** * optional .SC2APIProtocol.PlayerRaw player = 1; * @return The player. */ public SC2APIProtocol.Raw.PlayerRaw getPlayer() { if (playerBuilder_ == null) { return player_ == null ? SC2APIProtocol.Raw.PlayerRaw.getDefaultInstance() : player_; } else { return playerBuilder_.getMessage(); } } /** * optional .SC2APIProtocol.PlayerRaw player = 1; */ public Builder setPlayer(SC2APIProtocol.Raw.PlayerRaw value) { if (playerBuilder_ == null) { if (value == null) { throw new NullPointerException(); } player_ = value; onChanged(); } else { playerBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * optional .SC2APIProtocol.PlayerRaw player = 1; */ public Builder setPlayer( SC2APIProtocol.Raw.PlayerRaw.Builder builderForValue) { if (playerBuilder_ == null) { player_ = builderForValue.build(); onChanged(); } else { playerBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * optional .SC2APIProtocol.PlayerRaw player = 1; */ public Builder mergePlayer(SC2APIProtocol.Raw.PlayerRaw value) { if (playerBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && player_ != null && player_ != SC2APIProtocol.Raw.PlayerRaw.getDefaultInstance()) { player_ = SC2APIProtocol.Raw.PlayerRaw.newBuilder(player_).mergeFrom(value).buildPartial(); } else { player_ = value; } onChanged(); } else { playerBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * optional .SC2APIProtocol.PlayerRaw player = 1; */ public Builder clearPlayer() { if (playerBuilder_ == null) { player_ = null; onChanged(); } else { playerBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * optional .SC2APIProtocol.PlayerRaw player = 1; */ public SC2APIProtocol.Raw.PlayerRaw.Builder getPlayerBuilder() { bitField0_ |= 0x00000001; onChanged(); return getPlayerFieldBuilder().getBuilder(); } /** * optional .SC2APIProtocol.PlayerRaw player = 1; */ public SC2APIProtocol.Raw.PlayerRawOrBuilder getPlayerOrBuilder() { if (playerBuilder_ != null) { return playerBuilder_.getMessageOrBuilder(); } else { return player_ == null ? SC2APIProtocol.Raw.PlayerRaw.getDefaultInstance() : player_; } } /** * optional .SC2APIProtocol.PlayerRaw player = 1; */ private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Raw.PlayerRaw, SC2APIProtocol.Raw.PlayerRaw.Builder, SC2APIProtocol.Raw.PlayerRawOrBuilder> getPlayerFieldBuilder() { if (playerBuilder_ == null) { playerBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Raw.PlayerRaw, SC2APIProtocol.Raw.PlayerRaw.Builder, SC2APIProtocol.Raw.PlayerRawOrBuilder>( getPlayer(), getParentForChildren(), isClean()); player_ = null; } return playerBuilder_; } private java.util.List units_ = java.util.Collections.emptyList(); private void ensureUnitsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { units_ = new java.util.ArrayList(units_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< SC2APIProtocol.Raw.Unit, SC2APIProtocol.Raw.Unit.Builder, SC2APIProtocol.Raw.UnitOrBuilder> unitsBuilder_; /** * repeated .SC2APIProtocol.Unit units = 2; */ public java.util.List getUnitsList() { if (unitsBuilder_ == null) { return java.util.Collections.unmodifiableList(units_); } else { return unitsBuilder_.getMessageList(); } } /** * repeated .SC2APIProtocol.Unit units = 2; */ public int getUnitsCount() { if (unitsBuilder_ == null) { return units_.size(); } else { return unitsBuilder_.getCount(); } } /** * repeated .SC2APIProtocol.Unit units = 2; */ public SC2APIProtocol.Raw.Unit getUnits(int index) { if (unitsBuilder_ == null) { return units_.get(index); } else { return unitsBuilder_.getMessage(index); } } /** * repeated .SC2APIProtocol.Unit units = 2; */ public Builder setUnits( int index, SC2APIProtocol.Raw.Unit value) { if (unitsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureUnitsIsMutable(); units_.set(index, value); onChanged(); } else { unitsBuilder_.setMessage(index, value); } return this; } /** * repeated .SC2APIProtocol.Unit units = 2; */ public Builder setUnits( int index, SC2APIProtocol.Raw.Unit.Builder builderForValue) { if (unitsBuilder_ == null) { ensureUnitsIsMutable(); units_.set(index, builderForValue.build()); onChanged(); } else { unitsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .SC2APIProtocol.Unit units = 2; */ public Builder addUnits(SC2APIProtocol.Raw.Unit value) { if (unitsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureUnitsIsMutable(); units_.add(value); onChanged(); } else { unitsBuilder_.addMessage(value); } return this; } /** * repeated .SC2APIProtocol.Unit units = 2; */ public Builder addUnits( int index, SC2APIProtocol.Raw.Unit value) { if (unitsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureUnitsIsMutable(); units_.add(index, value); onChanged(); } else { unitsBuilder_.addMessage(index, value); } return this; } /** * repeated .SC2APIProtocol.Unit units = 2; */ public Builder addUnits( SC2APIProtocol.Raw.Unit.Builder builderForValue) { if (unitsBuilder_ == null) { ensureUnitsIsMutable(); units_.add(builderForValue.build()); onChanged(); } else { unitsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .SC2APIProtocol.Unit units = 2; */ public Builder addUnits( int index, SC2APIProtocol.Raw.Unit.Builder builderForValue) { if (unitsBuilder_ == null) { ensureUnitsIsMutable(); units_.add(index, builderForValue.build()); onChanged(); } else { unitsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .SC2APIProtocol.Unit units = 2; */ public Builder addAllUnits( java.lang.Iterable values) { if (unitsBuilder_ == null) { ensureUnitsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, units_); onChanged(); } else { unitsBuilder_.addAllMessages(values); } return this; } /** * repeated .SC2APIProtocol.Unit units = 2; */ public Builder clearUnits() { if (unitsBuilder_ == null) { units_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { unitsBuilder_.clear(); } return this; } /** * repeated .SC2APIProtocol.Unit units = 2; */ public Builder removeUnits(int index) { if (unitsBuilder_ == null) { ensureUnitsIsMutable(); units_.remove(index); onChanged(); } else { unitsBuilder_.remove(index); } return this; } /** * repeated .SC2APIProtocol.Unit units = 2; */ public SC2APIProtocol.Raw.Unit.Builder getUnitsBuilder( int index) { return getUnitsFieldBuilder().getBuilder(index); } /** * repeated .SC2APIProtocol.Unit units = 2; */ public SC2APIProtocol.Raw.UnitOrBuilder getUnitsOrBuilder( int index) { if (unitsBuilder_ == null) { return units_.get(index); } else { return unitsBuilder_.getMessageOrBuilder(index); } } /** * repeated .SC2APIProtocol.Unit units = 2; */ public java.util.List getUnitsOrBuilderList() { if (unitsBuilder_ != null) { return unitsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(units_); } } /** * repeated .SC2APIProtocol.Unit units = 2; */ public SC2APIProtocol.Raw.Unit.Builder addUnitsBuilder() { return getUnitsFieldBuilder().addBuilder( SC2APIProtocol.Raw.Unit.getDefaultInstance()); } /** * repeated .SC2APIProtocol.Unit units = 2; */ public SC2APIProtocol.Raw.Unit.Builder addUnitsBuilder( int index) { return getUnitsFieldBuilder().addBuilder( index, SC2APIProtocol.Raw.Unit.getDefaultInstance()); } /** * repeated .SC2APIProtocol.Unit units = 2; */ public java.util.List getUnitsBuilderList() { return getUnitsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< SC2APIProtocol.Raw.Unit, SC2APIProtocol.Raw.Unit.Builder, SC2APIProtocol.Raw.UnitOrBuilder> getUnitsFieldBuilder() { if (unitsBuilder_ == null) { unitsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< SC2APIProtocol.Raw.Unit, SC2APIProtocol.Raw.Unit.Builder, SC2APIProtocol.Raw.UnitOrBuilder>( units_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); units_ = null; } return unitsBuilder_; } private SC2APIProtocol.Raw.MapState mapState_; private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Raw.MapState, SC2APIProtocol.Raw.MapState.Builder, SC2APIProtocol.Raw.MapStateOrBuilder> mapStateBuilder_; /** *
       * Fog of war, creep and so on. Board stuff that changes per frame.
       * 
* * optional .SC2APIProtocol.MapState map_state = 3; * @return Whether the mapState field is set. */ public boolean hasMapState() { return ((bitField0_ & 0x00000004) != 0); } /** *
       * Fog of war, creep and so on. Board stuff that changes per frame.
       * 
* * optional .SC2APIProtocol.MapState map_state = 3; * @return The mapState. */ public SC2APIProtocol.Raw.MapState getMapState() { if (mapStateBuilder_ == null) { return mapState_ == null ? SC2APIProtocol.Raw.MapState.getDefaultInstance() : mapState_; } else { return mapStateBuilder_.getMessage(); } } /** *
       * Fog of war, creep and so on. Board stuff that changes per frame.
       * 
* * optional .SC2APIProtocol.MapState map_state = 3; */ public Builder setMapState(SC2APIProtocol.Raw.MapState value) { if (mapStateBuilder_ == null) { if (value == null) { throw new NullPointerException(); } mapState_ = value; onChanged(); } else { mapStateBuilder_.setMessage(value); } bitField0_ |= 0x00000004; return this; } /** *
       * Fog of war, creep and so on. Board stuff that changes per frame.
       * 
* * optional .SC2APIProtocol.MapState map_state = 3; */ public Builder setMapState( SC2APIProtocol.Raw.MapState.Builder builderForValue) { if (mapStateBuilder_ == null) { mapState_ = builderForValue.build(); onChanged(); } else { mapStateBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000004; return this; } /** *
       * Fog of war, creep and so on. Board stuff that changes per frame.
       * 
* * optional .SC2APIProtocol.MapState map_state = 3; */ public Builder mergeMapState(SC2APIProtocol.Raw.MapState value) { if (mapStateBuilder_ == null) { if (((bitField0_ & 0x00000004) != 0) && mapState_ != null && mapState_ != SC2APIProtocol.Raw.MapState.getDefaultInstance()) { mapState_ = SC2APIProtocol.Raw.MapState.newBuilder(mapState_).mergeFrom(value).buildPartial(); } else { mapState_ = value; } onChanged(); } else { mapStateBuilder_.mergeFrom(value); } bitField0_ |= 0x00000004; return this; } /** *
       * Fog of war, creep and so on. Board stuff that changes per frame.
       * 
* * optional .SC2APIProtocol.MapState map_state = 3; */ public Builder clearMapState() { if (mapStateBuilder_ == null) { mapState_ = null; onChanged(); } else { mapStateBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000004); return this; } /** *
       * Fog of war, creep and so on. Board stuff that changes per frame.
       * 
* * optional .SC2APIProtocol.MapState map_state = 3; */ public SC2APIProtocol.Raw.MapState.Builder getMapStateBuilder() { bitField0_ |= 0x00000004; onChanged(); return getMapStateFieldBuilder().getBuilder(); } /** *
       * Fog of war, creep and so on. Board stuff that changes per frame.
       * 
* * optional .SC2APIProtocol.MapState map_state = 3; */ public SC2APIProtocol.Raw.MapStateOrBuilder getMapStateOrBuilder() { if (mapStateBuilder_ != null) { return mapStateBuilder_.getMessageOrBuilder(); } else { return mapState_ == null ? SC2APIProtocol.Raw.MapState.getDefaultInstance() : mapState_; } } /** *
       * Fog of war, creep and so on. Board stuff that changes per frame.
       * 
* * optional .SC2APIProtocol.MapState map_state = 3; */ private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Raw.MapState, SC2APIProtocol.Raw.MapState.Builder, SC2APIProtocol.Raw.MapStateOrBuilder> getMapStateFieldBuilder() { if (mapStateBuilder_ == null) { mapStateBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Raw.MapState, SC2APIProtocol.Raw.MapState.Builder, SC2APIProtocol.Raw.MapStateOrBuilder>( getMapState(), getParentForChildren(), isClean()); mapState_ = null; } return mapStateBuilder_; } private SC2APIProtocol.Raw.Event event_; private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Raw.Event, SC2APIProtocol.Raw.Event.Builder, SC2APIProtocol.Raw.EventOrBuilder> eventBuilder_; /** * optional .SC2APIProtocol.Event event = 4; * @return Whether the event field is set. */ public boolean hasEvent() { return ((bitField0_ & 0x00000008) != 0); } /** * optional .SC2APIProtocol.Event event = 4; * @return The event. */ public SC2APIProtocol.Raw.Event getEvent() { if (eventBuilder_ == null) { return event_ == null ? SC2APIProtocol.Raw.Event.getDefaultInstance() : event_; } else { return eventBuilder_.getMessage(); } } /** * optional .SC2APIProtocol.Event event = 4; */ public Builder setEvent(SC2APIProtocol.Raw.Event value) { if (eventBuilder_ == null) { if (value == null) { throw new NullPointerException(); } event_ = value; onChanged(); } else { eventBuilder_.setMessage(value); } bitField0_ |= 0x00000008; return this; } /** * optional .SC2APIProtocol.Event event = 4; */ public Builder setEvent( SC2APIProtocol.Raw.Event.Builder builderForValue) { if (eventBuilder_ == null) { event_ = builderForValue.build(); onChanged(); } else { eventBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000008; return this; } /** * optional .SC2APIProtocol.Event event = 4; */ public Builder mergeEvent(SC2APIProtocol.Raw.Event value) { if (eventBuilder_ == null) { if (((bitField0_ & 0x00000008) != 0) && event_ != null && event_ != SC2APIProtocol.Raw.Event.getDefaultInstance()) { event_ = SC2APIProtocol.Raw.Event.newBuilder(event_).mergeFrom(value).buildPartial(); } else { event_ = value; } onChanged(); } else { eventBuilder_.mergeFrom(value); } bitField0_ |= 0x00000008; return this; } /** * optional .SC2APIProtocol.Event event = 4; */ public Builder clearEvent() { if (eventBuilder_ == null) { event_ = null; onChanged(); } else { eventBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000008); return this; } /** * optional .SC2APIProtocol.Event event = 4; */ public SC2APIProtocol.Raw.Event.Builder getEventBuilder() { bitField0_ |= 0x00000008; onChanged(); return getEventFieldBuilder().getBuilder(); } /** * optional .SC2APIProtocol.Event event = 4; */ public SC2APIProtocol.Raw.EventOrBuilder getEventOrBuilder() { if (eventBuilder_ != null) { return eventBuilder_.getMessageOrBuilder(); } else { return event_ == null ? SC2APIProtocol.Raw.Event.getDefaultInstance() : event_; } } /** * optional .SC2APIProtocol.Event event = 4; */ private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Raw.Event, SC2APIProtocol.Raw.Event.Builder, SC2APIProtocol.Raw.EventOrBuilder> getEventFieldBuilder() { if (eventBuilder_ == null) { eventBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Raw.Event, SC2APIProtocol.Raw.Event.Builder, SC2APIProtocol.Raw.EventOrBuilder>( getEvent(), getParentForChildren(), isClean()); event_ = null; } return eventBuilder_; } private java.util.List effects_ = java.util.Collections.emptyList(); private void ensureEffectsIsMutable() { if (!((bitField0_ & 0x00000010) != 0)) { effects_ = new java.util.ArrayList(effects_); bitField0_ |= 0x00000010; } } private com.google.protobuf.RepeatedFieldBuilderV3< SC2APIProtocol.Raw.Effect, SC2APIProtocol.Raw.Effect.Builder, SC2APIProtocol.Raw.EffectOrBuilder> effectsBuilder_; /** * repeated .SC2APIProtocol.Effect effects = 5; */ public java.util.List getEffectsList() { if (effectsBuilder_ == null) { return java.util.Collections.unmodifiableList(effects_); } else { return effectsBuilder_.getMessageList(); } } /** * repeated .SC2APIProtocol.Effect effects = 5; */ public int getEffectsCount() { if (effectsBuilder_ == null) { return effects_.size(); } else { return effectsBuilder_.getCount(); } } /** * repeated .SC2APIProtocol.Effect effects = 5; */ public SC2APIProtocol.Raw.Effect getEffects(int index) { if (effectsBuilder_ == null) { return effects_.get(index); } else { return effectsBuilder_.getMessage(index); } } /** * repeated .SC2APIProtocol.Effect effects = 5; */ public Builder setEffects( int index, SC2APIProtocol.Raw.Effect value) { if (effectsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEffectsIsMutable(); effects_.set(index, value); onChanged(); } else { effectsBuilder_.setMessage(index, value); } return this; } /** * repeated .SC2APIProtocol.Effect effects = 5; */ public Builder setEffects( int index, SC2APIProtocol.Raw.Effect.Builder builderForValue) { if (effectsBuilder_ == null) { ensureEffectsIsMutable(); effects_.set(index, builderForValue.build()); onChanged(); } else { effectsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .SC2APIProtocol.Effect effects = 5; */ public Builder addEffects(SC2APIProtocol.Raw.Effect value) { if (effectsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEffectsIsMutable(); effects_.add(value); onChanged(); } else { effectsBuilder_.addMessage(value); } return this; } /** * repeated .SC2APIProtocol.Effect effects = 5; */ public Builder addEffects( int index, SC2APIProtocol.Raw.Effect value) { if (effectsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEffectsIsMutable(); effects_.add(index, value); onChanged(); } else { effectsBuilder_.addMessage(index, value); } return this; } /** * repeated .SC2APIProtocol.Effect effects = 5; */ public Builder addEffects( SC2APIProtocol.Raw.Effect.Builder builderForValue) { if (effectsBuilder_ == null) { ensureEffectsIsMutable(); effects_.add(builderForValue.build()); onChanged(); } else { effectsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .SC2APIProtocol.Effect effects = 5; */ public Builder addEffects( int index, SC2APIProtocol.Raw.Effect.Builder builderForValue) { if (effectsBuilder_ == null) { ensureEffectsIsMutable(); effects_.add(index, builderForValue.build()); onChanged(); } else { effectsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .SC2APIProtocol.Effect effects = 5; */ public Builder addAllEffects( java.lang.Iterable values) { if (effectsBuilder_ == null) { ensureEffectsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, effects_); onChanged(); } else { effectsBuilder_.addAllMessages(values); } return this; } /** * repeated .SC2APIProtocol.Effect effects = 5; */ public Builder clearEffects() { if (effectsBuilder_ == null) { effects_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000010); onChanged(); } else { effectsBuilder_.clear(); } return this; } /** * repeated .SC2APIProtocol.Effect effects = 5; */ public Builder removeEffects(int index) { if (effectsBuilder_ == null) { ensureEffectsIsMutable(); effects_.remove(index); onChanged(); } else { effectsBuilder_.remove(index); } return this; } /** * repeated .SC2APIProtocol.Effect effects = 5; */ public SC2APIProtocol.Raw.Effect.Builder getEffectsBuilder( int index) { return getEffectsFieldBuilder().getBuilder(index); } /** * repeated .SC2APIProtocol.Effect effects = 5; */ public SC2APIProtocol.Raw.EffectOrBuilder getEffectsOrBuilder( int index) { if (effectsBuilder_ == null) { return effects_.get(index); } else { return effectsBuilder_.getMessageOrBuilder(index); } } /** * repeated .SC2APIProtocol.Effect effects = 5; */ public java.util.List getEffectsOrBuilderList() { if (effectsBuilder_ != null) { return effectsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(effects_); } } /** * repeated .SC2APIProtocol.Effect effects = 5; */ public SC2APIProtocol.Raw.Effect.Builder addEffectsBuilder() { return getEffectsFieldBuilder().addBuilder( SC2APIProtocol.Raw.Effect.getDefaultInstance()); } /** * repeated .SC2APIProtocol.Effect effects = 5; */ public SC2APIProtocol.Raw.Effect.Builder addEffectsBuilder( int index) { return getEffectsFieldBuilder().addBuilder( index, SC2APIProtocol.Raw.Effect.getDefaultInstance()); } /** * repeated .SC2APIProtocol.Effect effects = 5; */ public java.util.List getEffectsBuilderList() { return getEffectsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< SC2APIProtocol.Raw.Effect, SC2APIProtocol.Raw.Effect.Builder, SC2APIProtocol.Raw.EffectOrBuilder> getEffectsFieldBuilder() { if (effectsBuilder_ == null) { effectsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< SC2APIProtocol.Raw.Effect, SC2APIProtocol.Raw.Effect.Builder, SC2APIProtocol.Raw.EffectOrBuilder>( effects_, ((bitField0_ & 0x00000010) != 0), getParentForChildren(), isClean()); effects_ = null; } return effectsBuilder_; } private java.util.List radar_ = java.util.Collections.emptyList(); private void ensureRadarIsMutable() { if (!((bitField0_ & 0x00000020) != 0)) { radar_ = new java.util.ArrayList(radar_); bitField0_ |= 0x00000020; } } private com.google.protobuf.RepeatedFieldBuilderV3< SC2APIProtocol.Raw.RadarRing, SC2APIProtocol.Raw.RadarRing.Builder, SC2APIProtocol.Raw.RadarRingOrBuilder> radarBuilder_; /** * repeated .SC2APIProtocol.RadarRing radar = 6; */ public java.util.List getRadarList() { if (radarBuilder_ == null) { return java.util.Collections.unmodifiableList(radar_); } else { return radarBuilder_.getMessageList(); } } /** * repeated .SC2APIProtocol.RadarRing radar = 6; */ public int getRadarCount() { if (radarBuilder_ == null) { return radar_.size(); } else { return radarBuilder_.getCount(); } } /** * repeated .SC2APIProtocol.RadarRing radar = 6; */ public SC2APIProtocol.Raw.RadarRing getRadar(int index) { if (radarBuilder_ == null) { return radar_.get(index); } else { return radarBuilder_.getMessage(index); } } /** * repeated .SC2APIProtocol.RadarRing radar = 6; */ public Builder setRadar( int index, SC2APIProtocol.Raw.RadarRing value) { if (radarBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRadarIsMutable(); radar_.set(index, value); onChanged(); } else { radarBuilder_.setMessage(index, value); } return this; } /** * repeated .SC2APIProtocol.RadarRing radar = 6; */ public Builder setRadar( int index, SC2APIProtocol.Raw.RadarRing.Builder builderForValue) { if (radarBuilder_ == null) { ensureRadarIsMutable(); radar_.set(index, builderForValue.build()); onChanged(); } else { radarBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .SC2APIProtocol.RadarRing radar = 6; */ public Builder addRadar(SC2APIProtocol.Raw.RadarRing value) { if (radarBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRadarIsMutable(); radar_.add(value); onChanged(); } else { radarBuilder_.addMessage(value); } return this; } /** * repeated .SC2APIProtocol.RadarRing radar = 6; */ public Builder addRadar( int index, SC2APIProtocol.Raw.RadarRing value) { if (radarBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRadarIsMutable(); radar_.add(index, value); onChanged(); } else { radarBuilder_.addMessage(index, value); } return this; } /** * repeated .SC2APIProtocol.RadarRing radar = 6; */ public Builder addRadar( SC2APIProtocol.Raw.RadarRing.Builder builderForValue) { if (radarBuilder_ == null) { ensureRadarIsMutable(); radar_.add(builderForValue.build()); onChanged(); } else { radarBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .SC2APIProtocol.RadarRing radar = 6; */ public Builder addRadar( int index, SC2APIProtocol.Raw.RadarRing.Builder builderForValue) { if (radarBuilder_ == null) { ensureRadarIsMutable(); radar_.add(index, builderForValue.build()); onChanged(); } else { radarBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .SC2APIProtocol.RadarRing radar = 6; */ public Builder addAllRadar( java.lang.Iterable values) { if (radarBuilder_ == null) { ensureRadarIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, radar_); onChanged(); } else { radarBuilder_.addAllMessages(values); } return this; } /** * repeated .SC2APIProtocol.RadarRing radar = 6; */ public Builder clearRadar() { if (radarBuilder_ == null) { radar_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000020); onChanged(); } else { radarBuilder_.clear(); } return this; } /** * repeated .SC2APIProtocol.RadarRing radar = 6; */ public Builder removeRadar(int index) { if (radarBuilder_ == null) { ensureRadarIsMutable(); radar_.remove(index); onChanged(); } else { radarBuilder_.remove(index); } return this; } /** * repeated .SC2APIProtocol.RadarRing radar = 6; */ public SC2APIProtocol.Raw.RadarRing.Builder getRadarBuilder( int index) { return getRadarFieldBuilder().getBuilder(index); } /** * repeated .SC2APIProtocol.RadarRing radar = 6; */ public SC2APIProtocol.Raw.RadarRingOrBuilder getRadarOrBuilder( int index) { if (radarBuilder_ == null) { return radar_.get(index); } else { return radarBuilder_.getMessageOrBuilder(index); } } /** * repeated .SC2APIProtocol.RadarRing radar = 6; */ public java.util.List getRadarOrBuilderList() { if (radarBuilder_ != null) { return radarBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(radar_); } } /** * repeated .SC2APIProtocol.RadarRing radar = 6; */ public SC2APIProtocol.Raw.RadarRing.Builder addRadarBuilder() { return getRadarFieldBuilder().addBuilder( SC2APIProtocol.Raw.RadarRing.getDefaultInstance()); } /** * repeated .SC2APIProtocol.RadarRing radar = 6; */ public SC2APIProtocol.Raw.RadarRing.Builder addRadarBuilder( int index) { return getRadarFieldBuilder().addBuilder( index, SC2APIProtocol.Raw.RadarRing.getDefaultInstance()); } /** * repeated .SC2APIProtocol.RadarRing radar = 6; */ public java.util.List getRadarBuilderList() { return getRadarFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< SC2APIProtocol.Raw.RadarRing, SC2APIProtocol.Raw.RadarRing.Builder, SC2APIProtocol.Raw.RadarRingOrBuilder> getRadarFieldBuilder() { if (radarBuilder_ == null) { radarBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< SC2APIProtocol.Raw.RadarRing, SC2APIProtocol.Raw.RadarRing.Builder, SC2APIProtocol.Raw.RadarRingOrBuilder>( radar_, ((bitField0_ & 0x00000020) != 0), getParentForChildren(), isClean()); radar_ = null; } return radarBuilder_; } @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.ObservationRaw) } // @@protoc_insertion_point(class_scope:SC2APIProtocol.ObservationRaw) private static final SC2APIProtocol.Raw.ObservationRaw DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new SC2APIProtocol.Raw.ObservationRaw(); } public static SC2APIProtocol.Raw.ObservationRaw getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ObservationRaw 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.Raw.ObservationRaw getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RadarRingOrBuilder extends // @@protoc_insertion_point(interface_extends:SC2APIProtocol.RadarRing) com.google.protobuf.MessageOrBuilder { /** * optional .SC2APIProtocol.Point pos = 1; * @return Whether the pos field is set. */ boolean hasPos(); /** * optional .SC2APIProtocol.Point pos = 1; * @return The pos. */ SC2APIProtocol.Common.Point getPos(); /** * optional .SC2APIProtocol.Point pos = 1; */ SC2APIProtocol.Common.PointOrBuilder getPosOrBuilder(); /** * optional float radius = 2; * @return Whether the radius field is set. */ boolean hasRadius(); /** * optional float radius = 2; * @return The radius. */ float getRadius(); } /** * Protobuf type {@code SC2APIProtocol.RadarRing} */ public static final class RadarRing extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:SC2APIProtocol.RadarRing) RadarRingOrBuilder { private static final long serialVersionUID = 0L; // Use RadarRing.newBuilder() to construct. private RadarRing(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RadarRing() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new RadarRing(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Raw.internal_static_SC2APIProtocol_RadarRing_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Raw.internal_static_SC2APIProtocol_RadarRing_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Raw.RadarRing.class, SC2APIProtocol.Raw.RadarRing.Builder.class); } private int bitField0_; public static final int POS_FIELD_NUMBER = 1; private SC2APIProtocol.Common.Point pos_; /** * optional .SC2APIProtocol.Point pos = 1; * @return Whether the pos field is set. */ @java.lang.Override public boolean hasPos() { return ((bitField0_ & 0x00000001) != 0); } /** * optional .SC2APIProtocol.Point pos = 1; * @return The pos. */ @java.lang.Override public SC2APIProtocol.Common.Point getPos() { return pos_ == null ? SC2APIProtocol.Common.Point.getDefaultInstance() : pos_; } /** * optional .SC2APIProtocol.Point pos = 1; */ @java.lang.Override public SC2APIProtocol.Common.PointOrBuilder getPosOrBuilder() { return pos_ == null ? SC2APIProtocol.Common.Point.getDefaultInstance() : pos_; } public static final int RADIUS_FIELD_NUMBER = 2; private float radius_; /** * optional float radius = 2; * @return Whether the radius field is set. */ @java.lang.Override public boolean hasRadius() { return ((bitField0_ & 0x00000002) != 0); } /** * optional float radius = 2; * @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.writeMessage(1, getPos()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeFloat(2, 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 .computeMessageSize(1, getPos()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeFloatSize(2, 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.Raw.RadarRing)) { return super.equals(obj); } SC2APIProtocol.Raw.RadarRing other = (SC2APIProtocol.Raw.RadarRing) obj; if (hasPos() != other.hasPos()) return false; if (hasPos()) { if (!getPos() .equals(other.getPos())) 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 (hasPos()) { hash = (37 * hash) + POS_FIELD_NUMBER; hash = (53 * hash) + getPos().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.Raw.RadarRing parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Raw.RadarRing parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Raw.RadarRing parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Raw.RadarRing parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Raw.RadarRing parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Raw.RadarRing parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Raw.RadarRing parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Raw.RadarRing 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.Raw.RadarRing parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static SC2APIProtocol.Raw.RadarRing 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.Raw.RadarRing parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Raw.RadarRing 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.Raw.RadarRing 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.RadarRing} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:SC2APIProtocol.RadarRing) SC2APIProtocol.Raw.RadarRingOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Raw.internal_static_SC2APIProtocol_RadarRing_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Raw.internal_static_SC2APIProtocol_RadarRing_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Raw.RadarRing.class, SC2APIProtocol.Raw.RadarRing.Builder.class); } // Construct using SC2APIProtocol.Raw.RadarRing.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getPosFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (posBuilder_ == null) { pos_ = null; } else { posBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); radius_ = 0F; bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return SC2APIProtocol.Raw.internal_static_SC2APIProtocol_RadarRing_descriptor; } @java.lang.Override public SC2APIProtocol.Raw.RadarRing getDefaultInstanceForType() { return SC2APIProtocol.Raw.RadarRing.getDefaultInstance(); } @java.lang.Override public SC2APIProtocol.Raw.RadarRing build() { SC2APIProtocol.Raw.RadarRing result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public SC2APIProtocol.Raw.RadarRing buildPartial() { SC2APIProtocol.Raw.RadarRing result = new SC2APIProtocol.Raw.RadarRing(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { if (posBuilder_ == null) { result.pos_ = pos_; } else { result.pos_ = posBuilder_.build(); } to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.radius_ = radius_; 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.Raw.RadarRing) { return mergeFrom((SC2APIProtocol.Raw.RadarRing)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(SC2APIProtocol.Raw.RadarRing other) { if (other == SC2APIProtocol.Raw.RadarRing.getDefaultInstance()) return this; if (other.hasPos()) { mergePos(other.getPos()); } 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 10: { input.readMessage( getPosFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 21: { radius_ = input.readFloat(); bitField0_ |= 0x00000002; break; } // case 21 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private SC2APIProtocol.Common.Point pos_; private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Common.Point, SC2APIProtocol.Common.Point.Builder, SC2APIProtocol.Common.PointOrBuilder> posBuilder_; /** * optional .SC2APIProtocol.Point pos = 1; * @return Whether the pos field is set. */ public boolean hasPos() { return ((bitField0_ & 0x00000001) != 0); } /** * optional .SC2APIProtocol.Point pos = 1; * @return The pos. */ public SC2APIProtocol.Common.Point getPos() { if (posBuilder_ == null) { return pos_ == null ? SC2APIProtocol.Common.Point.getDefaultInstance() : pos_; } else { return posBuilder_.getMessage(); } } /** * optional .SC2APIProtocol.Point pos = 1; */ public Builder setPos(SC2APIProtocol.Common.Point value) { if (posBuilder_ == null) { if (value == null) { throw new NullPointerException(); } pos_ = value; onChanged(); } else { posBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * optional .SC2APIProtocol.Point pos = 1; */ public Builder setPos( SC2APIProtocol.Common.Point.Builder builderForValue) { if (posBuilder_ == null) { pos_ = builderForValue.build(); onChanged(); } else { posBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * optional .SC2APIProtocol.Point pos = 1; */ public Builder mergePos(SC2APIProtocol.Common.Point value) { if (posBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && pos_ != null && pos_ != SC2APIProtocol.Common.Point.getDefaultInstance()) { pos_ = SC2APIProtocol.Common.Point.newBuilder(pos_).mergeFrom(value).buildPartial(); } else { pos_ = value; } onChanged(); } else { posBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * optional .SC2APIProtocol.Point pos = 1; */ public Builder clearPos() { if (posBuilder_ == null) { pos_ = null; onChanged(); } else { posBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * optional .SC2APIProtocol.Point pos = 1; */ public SC2APIProtocol.Common.Point.Builder getPosBuilder() { bitField0_ |= 0x00000001; onChanged(); return getPosFieldBuilder().getBuilder(); } /** * optional .SC2APIProtocol.Point pos = 1; */ public SC2APIProtocol.Common.PointOrBuilder getPosOrBuilder() { if (posBuilder_ != null) { return posBuilder_.getMessageOrBuilder(); } else { return pos_ == null ? SC2APIProtocol.Common.Point.getDefaultInstance() : pos_; } } /** * optional .SC2APIProtocol.Point pos = 1; */ private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Common.Point, SC2APIProtocol.Common.Point.Builder, SC2APIProtocol.Common.PointOrBuilder> getPosFieldBuilder() { if (posBuilder_ == null) { posBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Common.Point, SC2APIProtocol.Common.Point.Builder, SC2APIProtocol.Common.PointOrBuilder>( getPos(), getParentForChildren(), isClean()); pos_ = null; } return posBuilder_; } private float radius_ ; /** * optional float radius = 2; * @return Whether the radius field is set. */ @java.lang.Override public boolean hasRadius() { return ((bitField0_ & 0x00000002) != 0); } /** * optional float radius = 2; * @return The radius. */ @java.lang.Override public float getRadius() { return radius_; } /** * optional float radius = 2; * @param value The radius to set. * @return This builder for chaining. */ public Builder setRadius(float value) { bitField0_ |= 0x00000002; radius_ = value; onChanged(); return this; } /** * optional float radius = 2; * @return This builder for chaining. */ public Builder clearRadius() { bitField0_ = (bitField0_ & ~0x00000002); 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.RadarRing) } // @@protoc_insertion_point(class_scope:SC2APIProtocol.RadarRing) private static final SC2APIProtocol.Raw.RadarRing DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new SC2APIProtocol.Raw.RadarRing(); } public static SC2APIProtocol.Raw.RadarRing getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public RadarRing 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.Raw.RadarRing getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PowerSourceOrBuilder extends // @@protoc_insertion_point(interface_extends:SC2APIProtocol.PowerSource) com.google.protobuf.MessageOrBuilder { /** * optional .SC2APIProtocol.Point pos = 1; * @return Whether the pos field is set. */ boolean hasPos(); /** * optional .SC2APIProtocol.Point pos = 1; * @return The pos. */ SC2APIProtocol.Common.Point getPos(); /** * optional .SC2APIProtocol.Point pos = 1; */ SC2APIProtocol.Common.PointOrBuilder getPosOrBuilder(); /** * optional float radius = 2; * @return Whether the radius field is set. */ boolean hasRadius(); /** * optional float radius = 2; * @return The radius. */ float getRadius(); /** * optional uint64 tag = 3; * @return Whether the tag field is set. */ boolean hasTag(); /** * optional uint64 tag = 3; * @return The tag. */ long getTag(); } /** * Protobuf type {@code SC2APIProtocol.PowerSource} */ public static final class PowerSource extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:SC2APIProtocol.PowerSource) PowerSourceOrBuilder { private static final long serialVersionUID = 0L; // Use PowerSource.newBuilder() to construct. private PowerSource(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PowerSource() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new PowerSource(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Raw.internal_static_SC2APIProtocol_PowerSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Raw.internal_static_SC2APIProtocol_PowerSource_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Raw.PowerSource.class, SC2APIProtocol.Raw.PowerSource.Builder.class); } private int bitField0_; public static final int POS_FIELD_NUMBER = 1; private SC2APIProtocol.Common.Point pos_; /** * optional .SC2APIProtocol.Point pos = 1; * @return Whether the pos field is set. */ @java.lang.Override public boolean hasPos() { return ((bitField0_ & 0x00000001) != 0); } /** * optional .SC2APIProtocol.Point pos = 1; * @return The pos. */ @java.lang.Override public SC2APIProtocol.Common.Point getPos() { return pos_ == null ? SC2APIProtocol.Common.Point.getDefaultInstance() : pos_; } /** * optional .SC2APIProtocol.Point pos = 1; */ @java.lang.Override public SC2APIProtocol.Common.PointOrBuilder getPosOrBuilder() { return pos_ == null ? SC2APIProtocol.Common.Point.getDefaultInstance() : pos_; } public static final int RADIUS_FIELD_NUMBER = 2; private float radius_; /** * optional float radius = 2; * @return Whether the radius field is set. */ @java.lang.Override public boolean hasRadius() { return ((bitField0_ & 0x00000002) != 0); } /** * optional float radius = 2; * @return The radius. */ @java.lang.Override public float getRadius() { return radius_; } public static final int TAG_FIELD_NUMBER = 3; private long tag_; /** * optional uint64 tag = 3; * @return Whether the tag field is set. */ @java.lang.Override public boolean hasTag() { return ((bitField0_ & 0x00000004) != 0); } /** * optional uint64 tag = 3; * @return The tag. */ @java.lang.Override public long getTag() { return tag_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getPos()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeFloat(2, radius_); } if (((bitField0_ & 0x00000004) != 0)) { output.writeUInt64(3, tag_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getPos()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeFloatSize(2, radius_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(3, tag_); } 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.Raw.PowerSource)) { return super.equals(obj); } SC2APIProtocol.Raw.PowerSource other = (SC2APIProtocol.Raw.PowerSource) obj; if (hasPos() != other.hasPos()) return false; if (hasPos()) { if (!getPos() .equals(other.getPos())) 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 (hasTag() != other.hasTag()) return false; if (hasTag()) { if (getTag() != other.getTag()) 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 (hasPos()) { hash = (37 * hash) + POS_FIELD_NUMBER; hash = (53 * hash) + getPos().hashCode(); } if (hasRadius()) { hash = (37 * hash) + RADIUS_FIELD_NUMBER; hash = (53 * hash) + java.lang.Float.floatToIntBits( getRadius()); } if (hasTag()) { hash = (37 * hash) + TAG_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTag()); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static SC2APIProtocol.Raw.PowerSource parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Raw.PowerSource parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Raw.PowerSource parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Raw.PowerSource parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Raw.PowerSource parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Raw.PowerSource parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Raw.PowerSource parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Raw.PowerSource 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.Raw.PowerSource parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static SC2APIProtocol.Raw.PowerSource 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.Raw.PowerSource parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Raw.PowerSource 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.Raw.PowerSource 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.PowerSource} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:SC2APIProtocol.PowerSource) SC2APIProtocol.Raw.PowerSourceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Raw.internal_static_SC2APIProtocol_PowerSource_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Raw.internal_static_SC2APIProtocol_PowerSource_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Raw.PowerSource.class, SC2APIProtocol.Raw.PowerSource.Builder.class); } // Construct using SC2APIProtocol.Raw.PowerSource.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getPosFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (posBuilder_ == null) { pos_ = null; } else { posBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); radius_ = 0F; bitField0_ = (bitField0_ & ~0x00000002); tag_ = 0L; bitField0_ = (bitField0_ & ~0x00000004); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return SC2APIProtocol.Raw.internal_static_SC2APIProtocol_PowerSource_descriptor; } @java.lang.Override public SC2APIProtocol.Raw.PowerSource getDefaultInstanceForType() { return SC2APIProtocol.Raw.PowerSource.getDefaultInstance(); } @java.lang.Override public SC2APIProtocol.Raw.PowerSource build() { SC2APIProtocol.Raw.PowerSource result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public SC2APIProtocol.Raw.PowerSource buildPartial() { SC2APIProtocol.Raw.PowerSource result = new SC2APIProtocol.Raw.PowerSource(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { if (posBuilder_ == null) { result.pos_ = pos_; } else { result.pos_ = posBuilder_.build(); } to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.radius_ = radius_; to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { result.tag_ = tag_; to_bitField0_ |= 0x00000004; } result.bitField0_ = to_bitField0_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof SC2APIProtocol.Raw.PowerSource) { return mergeFrom((SC2APIProtocol.Raw.PowerSource)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(SC2APIProtocol.Raw.PowerSource other) { if (other == SC2APIProtocol.Raw.PowerSource.getDefaultInstance()) return this; if (other.hasPos()) { mergePos(other.getPos()); } if (other.hasRadius()) { setRadius(other.getRadius()); } if (other.hasTag()) { setTag(other.getTag()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getPosFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 21: { radius_ = input.readFloat(); bitField0_ |= 0x00000002; break; } // case 21 case 24: { tag_ = input.readUInt64(); bitField0_ |= 0x00000004; break; } // case 24 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private SC2APIProtocol.Common.Point pos_; private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Common.Point, SC2APIProtocol.Common.Point.Builder, SC2APIProtocol.Common.PointOrBuilder> posBuilder_; /** * optional .SC2APIProtocol.Point pos = 1; * @return Whether the pos field is set. */ public boolean hasPos() { return ((bitField0_ & 0x00000001) != 0); } /** * optional .SC2APIProtocol.Point pos = 1; * @return The pos. */ public SC2APIProtocol.Common.Point getPos() { if (posBuilder_ == null) { return pos_ == null ? SC2APIProtocol.Common.Point.getDefaultInstance() : pos_; } else { return posBuilder_.getMessage(); } } /** * optional .SC2APIProtocol.Point pos = 1; */ public Builder setPos(SC2APIProtocol.Common.Point value) { if (posBuilder_ == null) { if (value == null) { throw new NullPointerException(); } pos_ = value; onChanged(); } else { posBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * optional .SC2APIProtocol.Point pos = 1; */ public Builder setPos( SC2APIProtocol.Common.Point.Builder builderForValue) { if (posBuilder_ == null) { pos_ = builderForValue.build(); onChanged(); } else { posBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * optional .SC2APIProtocol.Point pos = 1; */ public Builder mergePos(SC2APIProtocol.Common.Point value) { if (posBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && pos_ != null && pos_ != SC2APIProtocol.Common.Point.getDefaultInstance()) { pos_ = SC2APIProtocol.Common.Point.newBuilder(pos_).mergeFrom(value).buildPartial(); } else { pos_ = value; } onChanged(); } else { posBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * optional .SC2APIProtocol.Point pos = 1; */ public Builder clearPos() { if (posBuilder_ == null) { pos_ = null; onChanged(); } else { posBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * optional .SC2APIProtocol.Point pos = 1; */ public SC2APIProtocol.Common.Point.Builder getPosBuilder() { bitField0_ |= 0x00000001; onChanged(); return getPosFieldBuilder().getBuilder(); } /** * optional .SC2APIProtocol.Point pos = 1; */ public SC2APIProtocol.Common.PointOrBuilder getPosOrBuilder() { if (posBuilder_ != null) { return posBuilder_.getMessageOrBuilder(); } else { return pos_ == null ? SC2APIProtocol.Common.Point.getDefaultInstance() : pos_; } } /** * optional .SC2APIProtocol.Point pos = 1; */ private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Common.Point, SC2APIProtocol.Common.Point.Builder, SC2APIProtocol.Common.PointOrBuilder> getPosFieldBuilder() { if (posBuilder_ == null) { posBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Common.Point, SC2APIProtocol.Common.Point.Builder, SC2APIProtocol.Common.PointOrBuilder>( getPos(), getParentForChildren(), isClean()); pos_ = null; } return posBuilder_; } private float radius_ ; /** * optional float radius = 2; * @return Whether the radius field is set. */ @java.lang.Override public boolean hasRadius() { return ((bitField0_ & 0x00000002) != 0); } /** * optional float radius = 2; * @return The radius. */ @java.lang.Override public float getRadius() { return radius_; } /** * optional float radius = 2; * @param value The radius to set. * @return This builder for chaining. */ public Builder setRadius(float value) { bitField0_ |= 0x00000002; radius_ = value; onChanged(); return this; } /** * optional float radius = 2; * @return This builder for chaining. */ public Builder clearRadius() { bitField0_ = (bitField0_ & ~0x00000002); radius_ = 0F; onChanged(); return this; } private long tag_ ; /** * optional uint64 tag = 3; * @return Whether the tag field is set. */ @java.lang.Override public boolean hasTag() { return ((bitField0_ & 0x00000004) != 0); } /** * optional uint64 tag = 3; * @return The tag. */ @java.lang.Override public long getTag() { return tag_; } /** * optional uint64 tag = 3; * @param value The tag to set. * @return This builder for chaining. */ public Builder setTag(long value) { bitField0_ |= 0x00000004; tag_ = value; onChanged(); return this; } /** * optional uint64 tag = 3; * @return This builder for chaining. */ public Builder clearTag() { bitField0_ = (bitField0_ & ~0x00000004); tag_ = 0L; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:SC2APIProtocol.PowerSource) } // @@protoc_insertion_point(class_scope:SC2APIProtocol.PowerSource) private static final SC2APIProtocol.Raw.PowerSource DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new SC2APIProtocol.Raw.PowerSource(); } public static SC2APIProtocol.Raw.PowerSource getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PowerSource 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.Raw.PowerSource getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PlayerRawOrBuilder extends // @@protoc_insertion_point(interface_extends:SC2APIProtocol.PlayerRaw) com.google.protobuf.MessageOrBuilder { /** * repeated .SC2APIProtocol.PowerSource power_sources = 1; */ java.util.List getPowerSourcesList(); /** * repeated .SC2APIProtocol.PowerSource power_sources = 1; */ SC2APIProtocol.Raw.PowerSource getPowerSources(int index); /** * repeated .SC2APIProtocol.PowerSource power_sources = 1; */ int getPowerSourcesCount(); /** * repeated .SC2APIProtocol.PowerSource power_sources = 1; */ java.util.List getPowerSourcesOrBuilderList(); /** * repeated .SC2APIProtocol.PowerSource power_sources = 1; */ SC2APIProtocol.Raw.PowerSourceOrBuilder getPowerSourcesOrBuilder( int index); /** * optional .SC2APIProtocol.Point camera = 2; * @return Whether the camera field is set. */ boolean hasCamera(); /** * optional .SC2APIProtocol.Point camera = 2; * @return The camera. */ SC2APIProtocol.Common.Point getCamera(); /** * optional .SC2APIProtocol.Point camera = 2; */ SC2APIProtocol.Common.PointOrBuilder getCameraOrBuilder(); /** *
     * TODO: Add to UI observation?
     * 
* * repeated uint32 upgrade_ids = 3; * @return A list containing the upgradeIds. */ java.util.List getUpgradeIdsList(); /** *
     * TODO: Add to UI observation?
     * 
* * repeated uint32 upgrade_ids = 3; * @return The count of upgradeIds. */ int getUpgradeIdsCount(); /** *
     * TODO: Add to UI observation?
     * 
* * repeated uint32 upgrade_ids = 3; * @param index The index of the element to return. * @return The upgradeIds at the given index. */ int getUpgradeIds(int index); } /** * Protobuf type {@code SC2APIProtocol.PlayerRaw} */ public static final class PlayerRaw extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:SC2APIProtocol.PlayerRaw) PlayerRawOrBuilder { private static final long serialVersionUID = 0L; // Use PlayerRaw.newBuilder() to construct. private PlayerRaw(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PlayerRaw() { powerSources_ = java.util.Collections.emptyList(); upgradeIds_ = emptyIntList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new PlayerRaw(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Raw.internal_static_SC2APIProtocol_PlayerRaw_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Raw.internal_static_SC2APIProtocol_PlayerRaw_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Raw.PlayerRaw.class, SC2APIProtocol.Raw.PlayerRaw.Builder.class); } private int bitField0_; public static final int POWER_SOURCES_FIELD_NUMBER = 1; private java.util.List powerSources_; /** * repeated .SC2APIProtocol.PowerSource power_sources = 1; */ @java.lang.Override public java.util.List getPowerSourcesList() { return powerSources_; } /** * repeated .SC2APIProtocol.PowerSource power_sources = 1; */ @java.lang.Override public java.util.List getPowerSourcesOrBuilderList() { return powerSources_; } /** * repeated .SC2APIProtocol.PowerSource power_sources = 1; */ @java.lang.Override public int getPowerSourcesCount() { return powerSources_.size(); } /** * repeated .SC2APIProtocol.PowerSource power_sources = 1; */ @java.lang.Override public SC2APIProtocol.Raw.PowerSource getPowerSources(int index) { return powerSources_.get(index); } /** * repeated .SC2APIProtocol.PowerSource power_sources = 1; */ @java.lang.Override public SC2APIProtocol.Raw.PowerSourceOrBuilder getPowerSourcesOrBuilder( int index) { return powerSources_.get(index); } public static final int CAMERA_FIELD_NUMBER = 2; private SC2APIProtocol.Common.Point camera_; /** * optional .SC2APIProtocol.Point camera = 2; * @return Whether the camera field is set. */ @java.lang.Override public boolean hasCamera() { return ((bitField0_ & 0x00000001) != 0); } /** * optional .SC2APIProtocol.Point camera = 2; * @return The camera. */ @java.lang.Override public SC2APIProtocol.Common.Point getCamera() { return camera_ == null ? SC2APIProtocol.Common.Point.getDefaultInstance() : camera_; } /** * optional .SC2APIProtocol.Point camera = 2; */ @java.lang.Override public SC2APIProtocol.Common.PointOrBuilder getCameraOrBuilder() { return camera_ == null ? SC2APIProtocol.Common.Point.getDefaultInstance() : camera_; } public static final int UPGRADE_IDS_FIELD_NUMBER = 3; private com.google.protobuf.Internal.IntList upgradeIds_; /** *
     * TODO: Add to UI observation?
     * 
* * repeated uint32 upgrade_ids = 3; * @return A list containing the upgradeIds. */ @java.lang.Override public java.util.List getUpgradeIdsList() { return upgradeIds_; } /** *
     * TODO: Add to UI observation?
     * 
* * repeated uint32 upgrade_ids = 3; * @return The count of upgradeIds. */ public int getUpgradeIdsCount() { return upgradeIds_.size(); } /** *
     * TODO: Add to UI observation?
     * 
* * repeated uint32 upgrade_ids = 3; * @param index The index of the element to return. * @return The upgradeIds at the given index. */ public int getUpgradeIds(int index) { return upgradeIds_.getInt(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < powerSources_.size(); i++) { output.writeMessage(1, powerSources_.get(i)); } if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(2, getCamera()); } for (int i = 0; i < upgradeIds_.size(); i++) { output.writeUInt32(3, upgradeIds_.getInt(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < powerSources_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, powerSources_.get(i)); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getCamera()); } { int dataSize = 0; for (int i = 0; i < upgradeIds_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeUInt32SizeNoTag(upgradeIds_.getInt(i)); } size += dataSize; size += 1 * getUpgradeIdsList().size(); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof SC2APIProtocol.Raw.PlayerRaw)) { return super.equals(obj); } SC2APIProtocol.Raw.PlayerRaw other = (SC2APIProtocol.Raw.PlayerRaw) obj; if (!getPowerSourcesList() .equals(other.getPowerSourcesList())) return false; if (hasCamera() != other.hasCamera()) return false; if (hasCamera()) { if (!getCamera() .equals(other.getCamera())) return false; } if (!getUpgradeIdsList() .equals(other.getUpgradeIdsList())) 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 (getPowerSourcesCount() > 0) { hash = (37 * hash) + POWER_SOURCES_FIELD_NUMBER; hash = (53 * hash) + getPowerSourcesList().hashCode(); } if (hasCamera()) { hash = (37 * hash) + CAMERA_FIELD_NUMBER; hash = (53 * hash) + getCamera().hashCode(); } if (getUpgradeIdsCount() > 0) { hash = (37 * hash) + UPGRADE_IDS_FIELD_NUMBER; hash = (53 * hash) + getUpgradeIdsList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static SC2APIProtocol.Raw.PlayerRaw parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Raw.PlayerRaw parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Raw.PlayerRaw parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Raw.PlayerRaw parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Raw.PlayerRaw parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Raw.PlayerRaw parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Raw.PlayerRaw parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Raw.PlayerRaw 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.Raw.PlayerRaw parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static SC2APIProtocol.Raw.PlayerRaw 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.Raw.PlayerRaw parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Raw.PlayerRaw 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.Raw.PlayerRaw 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.PlayerRaw} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:SC2APIProtocol.PlayerRaw) SC2APIProtocol.Raw.PlayerRawOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Raw.internal_static_SC2APIProtocol_PlayerRaw_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Raw.internal_static_SC2APIProtocol_PlayerRaw_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Raw.PlayerRaw.class, SC2APIProtocol.Raw.PlayerRaw.Builder.class); } // Construct using SC2APIProtocol.Raw.PlayerRaw.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getPowerSourcesFieldBuilder(); getCameraFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (powerSourcesBuilder_ == null) { powerSources_ = java.util.Collections.emptyList(); } else { powerSources_ = null; powerSourcesBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); if (cameraBuilder_ == null) { camera_ = null; } else { cameraBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); upgradeIds_ = emptyIntList(); bitField0_ = (bitField0_ & ~0x00000004); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return SC2APIProtocol.Raw.internal_static_SC2APIProtocol_PlayerRaw_descriptor; } @java.lang.Override public SC2APIProtocol.Raw.PlayerRaw getDefaultInstanceForType() { return SC2APIProtocol.Raw.PlayerRaw.getDefaultInstance(); } @java.lang.Override public SC2APIProtocol.Raw.PlayerRaw build() { SC2APIProtocol.Raw.PlayerRaw result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public SC2APIProtocol.Raw.PlayerRaw buildPartial() { SC2APIProtocol.Raw.PlayerRaw result = new SC2APIProtocol.Raw.PlayerRaw(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (powerSourcesBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { powerSources_ = java.util.Collections.unmodifiableList(powerSources_); bitField0_ = (bitField0_ & ~0x00000001); } result.powerSources_ = powerSources_; } else { result.powerSources_ = powerSourcesBuilder_.build(); } if (((from_bitField0_ & 0x00000002) != 0)) { if (cameraBuilder_ == null) { result.camera_ = camera_; } else { result.camera_ = cameraBuilder_.build(); } to_bitField0_ |= 0x00000001; } if (((bitField0_ & 0x00000004) != 0)) { upgradeIds_.makeImmutable(); bitField0_ = (bitField0_ & ~0x00000004); } result.upgradeIds_ = upgradeIds_; 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.Raw.PlayerRaw) { return mergeFrom((SC2APIProtocol.Raw.PlayerRaw)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(SC2APIProtocol.Raw.PlayerRaw other) { if (other == SC2APIProtocol.Raw.PlayerRaw.getDefaultInstance()) return this; if (powerSourcesBuilder_ == null) { if (!other.powerSources_.isEmpty()) { if (powerSources_.isEmpty()) { powerSources_ = other.powerSources_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensurePowerSourcesIsMutable(); powerSources_.addAll(other.powerSources_); } onChanged(); } } else { if (!other.powerSources_.isEmpty()) { if (powerSourcesBuilder_.isEmpty()) { powerSourcesBuilder_.dispose(); powerSourcesBuilder_ = null; powerSources_ = other.powerSources_; bitField0_ = (bitField0_ & ~0x00000001); powerSourcesBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getPowerSourcesFieldBuilder() : null; } else { powerSourcesBuilder_.addAllMessages(other.powerSources_); } } } if (other.hasCamera()) { mergeCamera(other.getCamera()); } if (!other.upgradeIds_.isEmpty()) { if (upgradeIds_.isEmpty()) { upgradeIds_ = other.upgradeIds_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureUpgradeIdsIsMutable(); upgradeIds_.addAll(other.upgradeIds_); } onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { SC2APIProtocol.Raw.PowerSource m = input.readMessage( SC2APIProtocol.Raw.PowerSource.PARSER, extensionRegistry); if (powerSourcesBuilder_ == null) { ensurePowerSourcesIsMutable(); powerSources_.add(m); } else { powerSourcesBuilder_.addMessage(m); } break; } // case 10 case 18: { input.readMessage( getCameraFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 case 24: { int v = input.readUInt32(); ensureUpgradeIdsIsMutable(); upgradeIds_.addInt(v); break; } // case 24 case 26: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); ensureUpgradeIdsIsMutable(); while (input.getBytesUntilLimit() > 0) { upgradeIds_.addInt(input.readUInt32()); } input.popLimit(limit); break; } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private java.util.List powerSources_ = java.util.Collections.emptyList(); private void ensurePowerSourcesIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { powerSources_ = new java.util.ArrayList(powerSources_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< SC2APIProtocol.Raw.PowerSource, SC2APIProtocol.Raw.PowerSource.Builder, SC2APIProtocol.Raw.PowerSourceOrBuilder> powerSourcesBuilder_; /** * repeated .SC2APIProtocol.PowerSource power_sources = 1; */ public java.util.List getPowerSourcesList() { if (powerSourcesBuilder_ == null) { return java.util.Collections.unmodifiableList(powerSources_); } else { return powerSourcesBuilder_.getMessageList(); } } /** * repeated .SC2APIProtocol.PowerSource power_sources = 1; */ public int getPowerSourcesCount() { if (powerSourcesBuilder_ == null) { return powerSources_.size(); } else { return powerSourcesBuilder_.getCount(); } } /** * repeated .SC2APIProtocol.PowerSource power_sources = 1; */ public SC2APIProtocol.Raw.PowerSource getPowerSources(int index) { if (powerSourcesBuilder_ == null) { return powerSources_.get(index); } else { return powerSourcesBuilder_.getMessage(index); } } /** * repeated .SC2APIProtocol.PowerSource power_sources = 1; */ public Builder setPowerSources( int index, SC2APIProtocol.Raw.PowerSource value) { if (powerSourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePowerSourcesIsMutable(); powerSources_.set(index, value); onChanged(); } else { powerSourcesBuilder_.setMessage(index, value); } return this; } /** * repeated .SC2APIProtocol.PowerSource power_sources = 1; */ public Builder setPowerSources( int index, SC2APIProtocol.Raw.PowerSource.Builder builderForValue) { if (powerSourcesBuilder_ == null) { ensurePowerSourcesIsMutable(); powerSources_.set(index, builderForValue.build()); onChanged(); } else { powerSourcesBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .SC2APIProtocol.PowerSource power_sources = 1; */ public Builder addPowerSources(SC2APIProtocol.Raw.PowerSource value) { if (powerSourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePowerSourcesIsMutable(); powerSources_.add(value); onChanged(); } else { powerSourcesBuilder_.addMessage(value); } return this; } /** * repeated .SC2APIProtocol.PowerSource power_sources = 1; */ public Builder addPowerSources( int index, SC2APIProtocol.Raw.PowerSource value) { if (powerSourcesBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePowerSourcesIsMutable(); powerSources_.add(index, value); onChanged(); } else { powerSourcesBuilder_.addMessage(index, value); } return this; } /** * repeated .SC2APIProtocol.PowerSource power_sources = 1; */ public Builder addPowerSources( SC2APIProtocol.Raw.PowerSource.Builder builderForValue) { if (powerSourcesBuilder_ == null) { ensurePowerSourcesIsMutable(); powerSources_.add(builderForValue.build()); onChanged(); } else { powerSourcesBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .SC2APIProtocol.PowerSource power_sources = 1; */ public Builder addPowerSources( int index, SC2APIProtocol.Raw.PowerSource.Builder builderForValue) { if (powerSourcesBuilder_ == null) { ensurePowerSourcesIsMutable(); powerSources_.add(index, builderForValue.build()); onChanged(); } else { powerSourcesBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .SC2APIProtocol.PowerSource power_sources = 1; */ public Builder addAllPowerSources( java.lang.Iterable values) { if (powerSourcesBuilder_ == null) { ensurePowerSourcesIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, powerSources_); onChanged(); } else { powerSourcesBuilder_.addAllMessages(values); } return this; } /** * repeated .SC2APIProtocol.PowerSource power_sources = 1; */ public Builder clearPowerSources() { if (powerSourcesBuilder_ == null) { powerSources_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { powerSourcesBuilder_.clear(); } return this; } /** * repeated .SC2APIProtocol.PowerSource power_sources = 1; */ public Builder removePowerSources(int index) { if (powerSourcesBuilder_ == null) { ensurePowerSourcesIsMutable(); powerSources_.remove(index); onChanged(); } else { powerSourcesBuilder_.remove(index); } return this; } /** * repeated .SC2APIProtocol.PowerSource power_sources = 1; */ public SC2APIProtocol.Raw.PowerSource.Builder getPowerSourcesBuilder( int index) { return getPowerSourcesFieldBuilder().getBuilder(index); } /** * repeated .SC2APIProtocol.PowerSource power_sources = 1; */ public SC2APIProtocol.Raw.PowerSourceOrBuilder getPowerSourcesOrBuilder( int index) { if (powerSourcesBuilder_ == null) { return powerSources_.get(index); } else { return powerSourcesBuilder_.getMessageOrBuilder(index); } } /** * repeated .SC2APIProtocol.PowerSource power_sources = 1; */ public java.util.List getPowerSourcesOrBuilderList() { if (powerSourcesBuilder_ != null) { return powerSourcesBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(powerSources_); } } /** * repeated .SC2APIProtocol.PowerSource power_sources = 1; */ public SC2APIProtocol.Raw.PowerSource.Builder addPowerSourcesBuilder() { return getPowerSourcesFieldBuilder().addBuilder( SC2APIProtocol.Raw.PowerSource.getDefaultInstance()); } /** * repeated .SC2APIProtocol.PowerSource power_sources = 1; */ public SC2APIProtocol.Raw.PowerSource.Builder addPowerSourcesBuilder( int index) { return getPowerSourcesFieldBuilder().addBuilder( index, SC2APIProtocol.Raw.PowerSource.getDefaultInstance()); } /** * repeated .SC2APIProtocol.PowerSource power_sources = 1; */ public java.util.List getPowerSourcesBuilderList() { return getPowerSourcesFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< SC2APIProtocol.Raw.PowerSource, SC2APIProtocol.Raw.PowerSource.Builder, SC2APIProtocol.Raw.PowerSourceOrBuilder> getPowerSourcesFieldBuilder() { if (powerSourcesBuilder_ == null) { powerSourcesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< SC2APIProtocol.Raw.PowerSource, SC2APIProtocol.Raw.PowerSource.Builder, SC2APIProtocol.Raw.PowerSourceOrBuilder>( powerSources_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); powerSources_ = null; } return powerSourcesBuilder_; } private SC2APIProtocol.Common.Point camera_; private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Common.Point, SC2APIProtocol.Common.Point.Builder, SC2APIProtocol.Common.PointOrBuilder> cameraBuilder_; /** * optional .SC2APIProtocol.Point camera = 2; * @return Whether the camera field is set. */ public boolean hasCamera() { return ((bitField0_ & 0x00000002) != 0); } /** * optional .SC2APIProtocol.Point camera = 2; * @return The camera. */ public SC2APIProtocol.Common.Point getCamera() { if (cameraBuilder_ == null) { return camera_ == null ? SC2APIProtocol.Common.Point.getDefaultInstance() : camera_; } else { return cameraBuilder_.getMessage(); } } /** * optional .SC2APIProtocol.Point camera = 2; */ public Builder setCamera(SC2APIProtocol.Common.Point value) { if (cameraBuilder_ == null) { if (value == null) { throw new NullPointerException(); } camera_ = value; onChanged(); } else { cameraBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /** * optional .SC2APIProtocol.Point camera = 2; */ public Builder setCamera( SC2APIProtocol.Common.Point.Builder builderForValue) { if (cameraBuilder_ == null) { camera_ = builderForValue.build(); onChanged(); } else { cameraBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** * optional .SC2APIProtocol.Point camera = 2; */ public Builder mergeCamera(SC2APIProtocol.Common.Point value) { if (cameraBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && camera_ != null && camera_ != SC2APIProtocol.Common.Point.getDefaultInstance()) { camera_ = SC2APIProtocol.Common.Point.newBuilder(camera_).mergeFrom(value).buildPartial(); } else { camera_ = value; } onChanged(); } else { cameraBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** * optional .SC2APIProtocol.Point camera = 2; */ public Builder clearCamera() { if (cameraBuilder_ == null) { camera_ = null; onChanged(); } else { cameraBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** * optional .SC2APIProtocol.Point camera = 2; */ public SC2APIProtocol.Common.Point.Builder getCameraBuilder() { bitField0_ |= 0x00000002; onChanged(); return getCameraFieldBuilder().getBuilder(); } /** * optional .SC2APIProtocol.Point camera = 2; */ public SC2APIProtocol.Common.PointOrBuilder getCameraOrBuilder() { if (cameraBuilder_ != null) { return cameraBuilder_.getMessageOrBuilder(); } else { return camera_ == null ? SC2APIProtocol.Common.Point.getDefaultInstance() : camera_; } } /** * optional .SC2APIProtocol.Point camera = 2; */ private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Common.Point, SC2APIProtocol.Common.Point.Builder, SC2APIProtocol.Common.PointOrBuilder> getCameraFieldBuilder() { if (cameraBuilder_ == null) { cameraBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Common.Point, SC2APIProtocol.Common.Point.Builder, SC2APIProtocol.Common.PointOrBuilder>( getCamera(), getParentForChildren(), isClean()); camera_ = null; } return cameraBuilder_; } private com.google.protobuf.Internal.IntList upgradeIds_ = emptyIntList(); private void ensureUpgradeIdsIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { upgradeIds_ = mutableCopy(upgradeIds_); bitField0_ |= 0x00000004; } } /** *
       * TODO: Add to UI observation?
       * 
* * repeated uint32 upgrade_ids = 3; * @return A list containing the upgradeIds. */ public java.util.List getUpgradeIdsList() { return ((bitField0_ & 0x00000004) != 0) ? java.util.Collections.unmodifiableList(upgradeIds_) : upgradeIds_; } /** *
       * TODO: Add to UI observation?
       * 
* * repeated uint32 upgrade_ids = 3; * @return The count of upgradeIds. */ public int getUpgradeIdsCount() { return upgradeIds_.size(); } /** *
       * TODO: Add to UI observation?
       * 
* * repeated uint32 upgrade_ids = 3; * @param index The index of the element to return. * @return The upgradeIds at the given index. */ public int getUpgradeIds(int index) { return upgradeIds_.getInt(index); } /** *
       * TODO: Add to UI observation?
       * 
* * repeated uint32 upgrade_ids = 3; * @param index The index to set the value at. * @param value The upgradeIds to set. * @return This builder for chaining. */ public Builder setUpgradeIds( int index, int value) { ensureUpgradeIdsIsMutable(); upgradeIds_.setInt(index, value); onChanged(); return this; } /** *
       * TODO: Add to UI observation?
       * 
* * repeated uint32 upgrade_ids = 3; * @param value The upgradeIds to add. * @return This builder for chaining. */ public Builder addUpgradeIds(int value) { ensureUpgradeIdsIsMutable(); upgradeIds_.addInt(value); onChanged(); return this; } /** *
       * TODO: Add to UI observation?
       * 
* * repeated uint32 upgrade_ids = 3; * @param values The upgradeIds to add. * @return This builder for chaining. */ public Builder addAllUpgradeIds( java.lang.Iterable values) { ensureUpgradeIdsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, upgradeIds_); onChanged(); return this; } /** *
       * TODO: Add to UI observation?
       * 
* * repeated uint32 upgrade_ids = 3; * @return This builder for chaining. */ public Builder clearUpgradeIds() { upgradeIds_ = emptyIntList(); bitField0_ = (bitField0_ & ~0x00000004); 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.PlayerRaw) } // @@protoc_insertion_point(class_scope:SC2APIProtocol.PlayerRaw) private static final SC2APIProtocol.Raw.PlayerRaw DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new SC2APIProtocol.Raw.PlayerRaw(); } public static SC2APIProtocol.Raw.PlayerRaw getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PlayerRaw 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.Raw.PlayerRaw getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface UnitOrderOrBuilder extends // @@protoc_insertion_point(interface_extends:SC2APIProtocol.UnitOrder) com.google.protobuf.MessageOrBuilder { /** * optional uint32 ability_id = 1; * @return Whether the abilityId field is set. */ boolean hasAbilityId(); /** * optional uint32 ability_id = 1; * @return The abilityId. */ int getAbilityId(); /** * .SC2APIProtocol.Point target_world_space_pos = 2; * @return Whether the targetWorldSpacePos field is set. */ boolean hasTargetWorldSpacePos(); /** * .SC2APIProtocol.Point target_world_space_pos = 2; * @return The targetWorldSpacePos. */ SC2APIProtocol.Common.Point getTargetWorldSpacePos(); /** * .SC2APIProtocol.Point target_world_space_pos = 2; */ SC2APIProtocol.Common.PointOrBuilder getTargetWorldSpacePosOrBuilder(); /** * uint64 target_unit_tag = 3; * @return Whether the targetUnitTag field is set. */ boolean hasTargetUnitTag(); /** * uint64 target_unit_tag = 3; * @return The targetUnitTag. */ long getTargetUnitTag(); /** *
     * Progress of train abilities. Range: [0.0, 1.0]
     * 
* * optional float progress = 4; * @return Whether the progress field is set. */ boolean hasProgress(); /** *
     * Progress of train abilities. Range: [0.0, 1.0]
     * 
* * optional float progress = 4; * @return The progress. */ float getProgress(); public SC2APIProtocol.Raw.UnitOrder.TargetCase getTargetCase(); } /** * Protobuf type {@code SC2APIProtocol.UnitOrder} */ public static final class UnitOrder extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:SC2APIProtocol.UnitOrder) UnitOrderOrBuilder { private static final long serialVersionUID = 0L; // Use UnitOrder.newBuilder() to construct. private UnitOrder(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private UnitOrder() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new UnitOrder(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Raw.internal_static_SC2APIProtocol_UnitOrder_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Raw.internal_static_SC2APIProtocol_UnitOrder_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Raw.UnitOrder.class, SC2APIProtocol.Raw.UnitOrder.Builder.class); } private int bitField0_; private int targetCase_ = 0; private java.lang.Object target_; public enum TargetCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { TARGET_WORLD_SPACE_POS(2), TARGET_UNIT_TAG(3), TARGET_NOT_SET(0); private final int value; private TargetCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static TargetCase valueOf(int value) { return forNumber(value); } public static TargetCase forNumber(int value) { switch (value) { case 2: return TARGET_WORLD_SPACE_POS; case 3: return TARGET_UNIT_TAG; case 0: return TARGET_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public TargetCase getTargetCase() { return TargetCase.forNumber( targetCase_); } public static final int ABILITY_ID_FIELD_NUMBER = 1; private int abilityId_; /** * optional uint32 ability_id = 1; * @return Whether the abilityId field is set. */ @java.lang.Override public boolean hasAbilityId() { return ((bitField0_ & 0x00000001) != 0); } /** * optional uint32 ability_id = 1; * @return The abilityId. */ @java.lang.Override public int getAbilityId() { return abilityId_; } public static final int TARGET_WORLD_SPACE_POS_FIELD_NUMBER = 2; /** * .SC2APIProtocol.Point target_world_space_pos = 2; * @return Whether the targetWorldSpacePos field is set. */ @java.lang.Override public boolean hasTargetWorldSpacePos() { return targetCase_ == 2; } /** * .SC2APIProtocol.Point target_world_space_pos = 2; * @return The targetWorldSpacePos. */ @java.lang.Override public SC2APIProtocol.Common.Point getTargetWorldSpacePos() { if (targetCase_ == 2) { return (SC2APIProtocol.Common.Point) target_; } return SC2APIProtocol.Common.Point.getDefaultInstance(); } /** * .SC2APIProtocol.Point target_world_space_pos = 2; */ @java.lang.Override public SC2APIProtocol.Common.PointOrBuilder getTargetWorldSpacePosOrBuilder() { if (targetCase_ == 2) { return (SC2APIProtocol.Common.Point) target_; } return SC2APIProtocol.Common.Point.getDefaultInstance(); } public static final int TARGET_UNIT_TAG_FIELD_NUMBER = 3; /** * uint64 target_unit_tag = 3; * @return Whether the targetUnitTag field is set. */ @java.lang.Override public boolean hasTargetUnitTag() { return targetCase_ == 3; } /** * uint64 target_unit_tag = 3; * @return The targetUnitTag. */ @java.lang.Override public long getTargetUnitTag() { if (targetCase_ == 3) { return (java.lang.Long) target_; } return 0L; } public static final int PROGRESS_FIELD_NUMBER = 4; private float progress_; /** *
     * Progress of train abilities. Range: [0.0, 1.0]
     * 
* * optional float progress = 4; * @return Whether the progress field is set. */ @java.lang.Override public boolean hasProgress() { return ((bitField0_ & 0x00000008) != 0); } /** *
     * Progress of train abilities. Range: [0.0, 1.0]
     * 
* * optional float progress = 4; * @return The progress. */ @java.lang.Override public float getProgress() { return progress_; } 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 (targetCase_ == 2) { output.writeMessage(2, (SC2APIProtocol.Common.Point) target_); } if (targetCase_ == 3) { output.writeUInt64( 3, (long)((java.lang.Long) target_)); } if (((bitField0_ & 0x00000008) != 0)) { output.writeFloat(4, progress_); } 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 (targetCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, (SC2APIProtocol.Common.Point) target_); } if (targetCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size( 3, (long)((java.lang.Long) target_)); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeFloatSize(4, progress_); } 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.Raw.UnitOrder)) { return super.equals(obj); } SC2APIProtocol.Raw.UnitOrder other = (SC2APIProtocol.Raw.UnitOrder) obj; if (hasAbilityId() != other.hasAbilityId()) return false; if (hasAbilityId()) { if (getAbilityId() != other.getAbilityId()) return false; } if (hasProgress() != other.hasProgress()) return false; if (hasProgress()) { if (java.lang.Float.floatToIntBits(getProgress()) != java.lang.Float.floatToIntBits( other.getProgress())) return false; } if (!getTargetCase().equals(other.getTargetCase())) return false; switch (targetCase_) { case 2: if (!getTargetWorldSpacePos() .equals(other.getTargetWorldSpacePos())) return false; break; case 3: if (getTargetUnitTag() != other.getTargetUnitTag()) return false; break; case 0: default: } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasAbilityId()) { hash = (37 * hash) + ABILITY_ID_FIELD_NUMBER; hash = (53 * hash) + getAbilityId(); } if (hasProgress()) { hash = (37 * hash) + PROGRESS_FIELD_NUMBER; hash = (53 * hash) + java.lang.Float.floatToIntBits( getProgress()); } switch (targetCase_) { case 2: hash = (37 * hash) + TARGET_WORLD_SPACE_POS_FIELD_NUMBER; hash = (53 * hash) + getTargetWorldSpacePos().hashCode(); break; case 3: hash = (37 * hash) + TARGET_UNIT_TAG_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTargetUnitTag()); break; case 0: default: } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static SC2APIProtocol.Raw.UnitOrder parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Raw.UnitOrder parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Raw.UnitOrder parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Raw.UnitOrder parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Raw.UnitOrder parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Raw.UnitOrder parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Raw.UnitOrder parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Raw.UnitOrder 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.Raw.UnitOrder parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static SC2APIProtocol.Raw.UnitOrder 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.Raw.UnitOrder parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Raw.UnitOrder 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.Raw.UnitOrder 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.UnitOrder} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:SC2APIProtocol.UnitOrder) SC2APIProtocol.Raw.UnitOrderOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Raw.internal_static_SC2APIProtocol_UnitOrder_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Raw.internal_static_SC2APIProtocol_UnitOrder_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Raw.UnitOrder.class, SC2APIProtocol.Raw.UnitOrder.Builder.class); } // Construct using SC2APIProtocol.Raw.UnitOrder.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); if (targetWorldSpacePosBuilder_ != null) { targetWorldSpacePosBuilder_.clear(); } progress_ = 0F; bitField0_ = (bitField0_ & ~0x00000008); targetCase_ = 0; target_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return SC2APIProtocol.Raw.internal_static_SC2APIProtocol_UnitOrder_descriptor; } @java.lang.Override public SC2APIProtocol.Raw.UnitOrder getDefaultInstanceForType() { return SC2APIProtocol.Raw.UnitOrder.getDefaultInstance(); } @java.lang.Override public SC2APIProtocol.Raw.UnitOrder build() { SC2APIProtocol.Raw.UnitOrder result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public SC2APIProtocol.Raw.UnitOrder buildPartial() { SC2APIProtocol.Raw.UnitOrder result = new SC2APIProtocol.Raw.UnitOrder(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.abilityId_ = abilityId_; to_bitField0_ |= 0x00000001; } if (targetCase_ == 2) { if (targetWorldSpacePosBuilder_ == null) { result.target_ = target_; } else { result.target_ = targetWorldSpacePosBuilder_.build(); } } if (targetCase_ == 3) { result.target_ = target_; } if (((from_bitField0_ & 0x00000008) != 0)) { result.progress_ = progress_; to_bitField0_ |= 0x00000008; } result.bitField0_ = to_bitField0_; result.targetCase_ = targetCase_; 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.Raw.UnitOrder) { return mergeFrom((SC2APIProtocol.Raw.UnitOrder)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(SC2APIProtocol.Raw.UnitOrder other) { if (other == SC2APIProtocol.Raw.UnitOrder.getDefaultInstance()) return this; if (other.hasAbilityId()) { setAbilityId(other.getAbilityId()); } if (other.hasProgress()) { setProgress(other.getProgress()); } switch (other.getTargetCase()) { case TARGET_WORLD_SPACE_POS: { mergeTargetWorldSpacePos(other.getTargetWorldSpacePos()); break; } case TARGET_UNIT_TAG: { setTargetUnitTag(other.getTargetUnitTag()); break; } case TARGET_NOT_SET: { break; } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { abilityId_ = input.readUInt32(); bitField0_ |= 0x00000001; break; } // case 8 case 18: { input.readMessage( getTargetWorldSpacePosFieldBuilder().getBuilder(), extensionRegistry); targetCase_ = 2; break; } // case 18 case 24: { target_ = input.readUInt64(); targetCase_ = 3; break; } // case 24 case 37: { progress_ = 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 targetCase_ = 0; private java.lang.Object target_; public TargetCase getTargetCase() { return TargetCase.forNumber( targetCase_); } public Builder clearTarget() { targetCase_ = 0; target_ = null; onChanged(); return this; } private int bitField0_; private int abilityId_ ; /** * optional uint32 ability_id = 1; * @return Whether the abilityId field is set. */ @java.lang.Override public boolean hasAbilityId() { return ((bitField0_ & 0x00000001) != 0); } /** * optional uint32 ability_id = 1; * @return The abilityId. */ @java.lang.Override public int getAbilityId() { return abilityId_; } /** * 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; } /** * optional uint32 ability_id = 1; * @return This builder for chaining. */ public Builder clearAbilityId() { bitField0_ = (bitField0_ & ~0x00000001); abilityId_ = 0; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Common.Point, SC2APIProtocol.Common.Point.Builder, SC2APIProtocol.Common.PointOrBuilder> targetWorldSpacePosBuilder_; /** * .SC2APIProtocol.Point target_world_space_pos = 2; * @return Whether the targetWorldSpacePos field is set. */ @java.lang.Override public boolean hasTargetWorldSpacePos() { return targetCase_ == 2; } /** * .SC2APIProtocol.Point target_world_space_pos = 2; * @return The targetWorldSpacePos. */ @java.lang.Override public SC2APIProtocol.Common.Point getTargetWorldSpacePos() { if (targetWorldSpacePosBuilder_ == null) { if (targetCase_ == 2) { return (SC2APIProtocol.Common.Point) target_; } return SC2APIProtocol.Common.Point.getDefaultInstance(); } else { if (targetCase_ == 2) { return targetWorldSpacePosBuilder_.getMessage(); } return SC2APIProtocol.Common.Point.getDefaultInstance(); } } /** * .SC2APIProtocol.Point target_world_space_pos = 2; */ public Builder setTargetWorldSpacePos(SC2APIProtocol.Common.Point value) { if (targetWorldSpacePosBuilder_ == null) { if (value == null) { throw new NullPointerException(); } target_ = value; onChanged(); } else { targetWorldSpacePosBuilder_.setMessage(value); } targetCase_ = 2; return this; } /** * .SC2APIProtocol.Point target_world_space_pos = 2; */ public Builder setTargetWorldSpacePos( SC2APIProtocol.Common.Point.Builder builderForValue) { if (targetWorldSpacePosBuilder_ == null) { target_ = builderForValue.build(); onChanged(); } else { targetWorldSpacePosBuilder_.setMessage(builderForValue.build()); } targetCase_ = 2; return this; } /** * .SC2APIProtocol.Point target_world_space_pos = 2; */ public Builder mergeTargetWorldSpacePos(SC2APIProtocol.Common.Point value) { if (targetWorldSpacePosBuilder_ == null) { if (targetCase_ == 2 && target_ != SC2APIProtocol.Common.Point.getDefaultInstance()) { target_ = SC2APIProtocol.Common.Point.newBuilder((SC2APIProtocol.Common.Point) target_) .mergeFrom(value).buildPartial(); } else { target_ = value; } onChanged(); } else { if (targetCase_ == 2) { targetWorldSpacePosBuilder_.mergeFrom(value); } else { targetWorldSpacePosBuilder_.setMessage(value); } } targetCase_ = 2; return this; } /** * .SC2APIProtocol.Point target_world_space_pos = 2; */ public Builder clearTargetWorldSpacePos() { if (targetWorldSpacePosBuilder_ == null) { if (targetCase_ == 2) { targetCase_ = 0; target_ = null; onChanged(); } } else { if (targetCase_ == 2) { targetCase_ = 0; target_ = null; } targetWorldSpacePosBuilder_.clear(); } return this; } /** * .SC2APIProtocol.Point target_world_space_pos = 2; */ public SC2APIProtocol.Common.Point.Builder getTargetWorldSpacePosBuilder() { return getTargetWorldSpacePosFieldBuilder().getBuilder(); } /** * .SC2APIProtocol.Point target_world_space_pos = 2; */ @java.lang.Override public SC2APIProtocol.Common.PointOrBuilder getTargetWorldSpacePosOrBuilder() { if ((targetCase_ == 2) && (targetWorldSpacePosBuilder_ != null)) { return targetWorldSpacePosBuilder_.getMessageOrBuilder(); } else { if (targetCase_ == 2) { return (SC2APIProtocol.Common.Point) target_; } return SC2APIProtocol.Common.Point.getDefaultInstance(); } } /** * .SC2APIProtocol.Point target_world_space_pos = 2; */ private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Common.Point, SC2APIProtocol.Common.Point.Builder, SC2APIProtocol.Common.PointOrBuilder> getTargetWorldSpacePosFieldBuilder() { if (targetWorldSpacePosBuilder_ == null) { if (!(targetCase_ == 2)) { target_ = SC2APIProtocol.Common.Point.getDefaultInstance(); } targetWorldSpacePosBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Common.Point, SC2APIProtocol.Common.Point.Builder, SC2APIProtocol.Common.PointOrBuilder>( (SC2APIProtocol.Common.Point) target_, getParentForChildren(), isClean()); target_ = null; } targetCase_ = 2; onChanged();; return targetWorldSpacePosBuilder_; } /** * uint64 target_unit_tag = 3; * @return Whether the targetUnitTag field is set. */ public boolean hasTargetUnitTag() { return targetCase_ == 3; } /** * uint64 target_unit_tag = 3; * @return The targetUnitTag. */ public long getTargetUnitTag() { if (targetCase_ == 3) { return (java.lang.Long) target_; } return 0L; } /** * uint64 target_unit_tag = 3; * @param value The targetUnitTag to set. * @return This builder for chaining. */ public Builder setTargetUnitTag(long value) { targetCase_ = 3; target_ = value; onChanged(); return this; } /** * uint64 target_unit_tag = 3; * @return This builder for chaining. */ public Builder clearTargetUnitTag() { if (targetCase_ == 3) { targetCase_ = 0; target_ = null; onChanged(); } return this; } private float progress_ ; /** *
       * Progress of train abilities. Range: [0.0, 1.0]
       * 
* * optional float progress = 4; * @return Whether the progress field is set. */ @java.lang.Override public boolean hasProgress() { return ((bitField0_ & 0x00000008) != 0); } /** *
       * Progress of train abilities. Range: [0.0, 1.0]
       * 
* * optional float progress = 4; * @return The progress. */ @java.lang.Override public float getProgress() { return progress_; } /** *
       * Progress of train abilities. Range: [0.0, 1.0]
       * 
* * optional float progress = 4; * @param value The progress to set. * @return This builder for chaining. */ public Builder setProgress(float value) { bitField0_ |= 0x00000008; progress_ = value; onChanged(); return this; } /** *
       * Progress of train abilities. Range: [0.0, 1.0]
       * 
* * optional float progress = 4; * @return This builder for chaining. */ public Builder clearProgress() { bitField0_ = (bitField0_ & ~0x00000008); progress_ = 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.UnitOrder) } // @@protoc_insertion_point(class_scope:SC2APIProtocol.UnitOrder) private static final SC2APIProtocol.Raw.UnitOrder DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new SC2APIProtocol.Raw.UnitOrder(); } public static SC2APIProtocol.Raw.UnitOrder getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public UnitOrder 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.Raw.UnitOrder getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface PassengerUnitOrBuilder extends // @@protoc_insertion_point(interface_extends:SC2APIProtocol.PassengerUnit) com.google.protobuf.MessageOrBuilder { /** * optional uint64 tag = 1; * @return Whether the tag field is set. */ boolean hasTag(); /** * optional uint64 tag = 1; * @return The tag. */ long getTag(); /** * optional float health = 2; * @return Whether the health field is set. */ boolean hasHealth(); /** * optional float health = 2; * @return The health. */ float getHealth(); /** * optional float health_max = 3; * @return Whether the healthMax field is set. */ boolean hasHealthMax(); /** * optional float health_max = 3; * @return The healthMax. */ float getHealthMax(); /** * optional float shield = 4; * @return Whether the shield field is set. */ boolean hasShield(); /** * optional float shield = 4; * @return The shield. */ float getShield(); /** * optional float shield_max = 7; * @return Whether the shieldMax field is set. */ boolean hasShieldMax(); /** * optional float shield_max = 7; * @return The shieldMax. */ float getShieldMax(); /** * optional float energy = 5; * @return Whether the energy field is set. */ boolean hasEnergy(); /** * optional float energy = 5; * @return The energy. */ float getEnergy(); /** * optional float energy_max = 8; * @return Whether the energyMax field is set. */ boolean hasEnergyMax(); /** * optional float energy_max = 8; * @return The energyMax. */ float getEnergyMax(); /** * optional uint32 unit_type = 6; * @return Whether the unitType field is set. */ boolean hasUnitType(); /** * optional uint32 unit_type = 6; * @return The unitType. */ int getUnitType(); } /** * Protobuf type {@code SC2APIProtocol.PassengerUnit} */ public static final class PassengerUnit extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:SC2APIProtocol.PassengerUnit) PassengerUnitOrBuilder { private static final long serialVersionUID = 0L; // Use PassengerUnit.newBuilder() to construct. private PassengerUnit(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private PassengerUnit() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new PassengerUnit(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Raw.internal_static_SC2APIProtocol_PassengerUnit_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Raw.internal_static_SC2APIProtocol_PassengerUnit_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Raw.PassengerUnit.class, SC2APIProtocol.Raw.PassengerUnit.Builder.class); } private int bitField0_; public static final int TAG_FIELD_NUMBER = 1; private long tag_; /** * optional uint64 tag = 1; * @return Whether the tag field is set. */ @java.lang.Override public boolean hasTag() { return ((bitField0_ & 0x00000001) != 0); } /** * optional uint64 tag = 1; * @return The tag. */ @java.lang.Override public long getTag() { return tag_; } public static final int HEALTH_FIELD_NUMBER = 2; private float health_; /** * optional float health = 2; * @return Whether the health field is set. */ @java.lang.Override public boolean hasHealth() { return ((bitField0_ & 0x00000002) != 0); } /** * optional float health = 2; * @return The health. */ @java.lang.Override public float getHealth() { return health_; } public static final int HEALTH_MAX_FIELD_NUMBER = 3; private float healthMax_; /** * optional float health_max = 3; * @return Whether the healthMax field is set. */ @java.lang.Override public boolean hasHealthMax() { return ((bitField0_ & 0x00000004) != 0); } /** * optional float health_max = 3; * @return The healthMax. */ @java.lang.Override public float getHealthMax() { return healthMax_; } public static final int SHIELD_FIELD_NUMBER = 4; private float shield_; /** * optional float shield = 4; * @return Whether the shield field is set. */ @java.lang.Override public boolean hasShield() { return ((bitField0_ & 0x00000008) != 0); } /** * optional float shield = 4; * @return The shield. */ @java.lang.Override public float getShield() { return shield_; } public static final int SHIELD_MAX_FIELD_NUMBER = 7; private float shieldMax_; /** * optional float shield_max = 7; * @return Whether the shieldMax field is set. */ @java.lang.Override public boolean hasShieldMax() { return ((bitField0_ & 0x00000010) != 0); } /** * optional float shield_max = 7; * @return The shieldMax. */ @java.lang.Override public float getShieldMax() { return shieldMax_; } public static final int ENERGY_FIELD_NUMBER = 5; private float energy_; /** * optional float energy = 5; * @return Whether the energy field is set. */ @java.lang.Override public boolean hasEnergy() { return ((bitField0_ & 0x00000020) != 0); } /** * optional float energy = 5; * @return The energy. */ @java.lang.Override public float getEnergy() { return energy_; } public static final int ENERGY_MAX_FIELD_NUMBER = 8; private float energyMax_; /** * optional float energy_max = 8; * @return Whether the energyMax field is set. */ @java.lang.Override public boolean hasEnergyMax() { return ((bitField0_ & 0x00000040) != 0); } /** * optional float energy_max = 8; * @return The energyMax. */ @java.lang.Override public float getEnergyMax() { return energyMax_; } public static final int UNIT_TYPE_FIELD_NUMBER = 6; private int unitType_; /** * optional uint32 unit_type = 6; * @return Whether the unitType field is set. */ @java.lang.Override public boolean hasUnitType() { return ((bitField0_ & 0x00000080) != 0); } /** * optional uint32 unit_type = 6; * @return The unitType. */ @java.lang.Override public int getUnitType() { return unitType_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeUInt64(1, tag_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeFloat(2, health_); } if (((bitField0_ & 0x00000004) != 0)) { output.writeFloat(3, healthMax_); } if (((bitField0_ & 0x00000008) != 0)) { output.writeFloat(4, shield_); } if (((bitField0_ & 0x00000020) != 0)) { output.writeFloat(5, energy_); } if (((bitField0_ & 0x00000080) != 0)) { output.writeUInt32(6, unitType_); } if (((bitField0_ & 0x00000010) != 0)) { output.writeFloat(7, shieldMax_); } if (((bitField0_ & 0x00000040) != 0)) { output.writeFloat(8, energyMax_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(1, tag_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeFloatSize(2, health_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeFloatSize(3, healthMax_); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeFloatSize(4, shield_); } if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream .computeFloatSize(5, energy_); } if (((bitField0_ & 0x00000080) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(6, unitType_); } if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream .computeFloatSize(7, shieldMax_); } if (((bitField0_ & 0x00000040) != 0)) { size += com.google.protobuf.CodedOutputStream .computeFloatSize(8, energyMax_); } 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.Raw.PassengerUnit)) { return super.equals(obj); } SC2APIProtocol.Raw.PassengerUnit other = (SC2APIProtocol.Raw.PassengerUnit) obj; if (hasTag() != other.hasTag()) return false; if (hasTag()) { if (getTag() != other.getTag()) return false; } if (hasHealth() != other.hasHealth()) return false; if (hasHealth()) { if (java.lang.Float.floatToIntBits(getHealth()) != java.lang.Float.floatToIntBits( other.getHealth())) return false; } if (hasHealthMax() != other.hasHealthMax()) return false; if (hasHealthMax()) { if (java.lang.Float.floatToIntBits(getHealthMax()) != java.lang.Float.floatToIntBits( other.getHealthMax())) return false; } if (hasShield() != other.hasShield()) return false; if (hasShield()) { if (java.lang.Float.floatToIntBits(getShield()) != java.lang.Float.floatToIntBits( other.getShield())) return false; } if (hasShieldMax() != other.hasShieldMax()) return false; if (hasShieldMax()) { if (java.lang.Float.floatToIntBits(getShieldMax()) != java.lang.Float.floatToIntBits( other.getShieldMax())) return false; } if (hasEnergy() != other.hasEnergy()) return false; if (hasEnergy()) { if (java.lang.Float.floatToIntBits(getEnergy()) != java.lang.Float.floatToIntBits( other.getEnergy())) return false; } if (hasEnergyMax() != other.hasEnergyMax()) return false; if (hasEnergyMax()) { if (java.lang.Float.floatToIntBits(getEnergyMax()) != java.lang.Float.floatToIntBits( other.getEnergyMax())) return false; } if (hasUnitType() != other.hasUnitType()) return false; if (hasUnitType()) { if (getUnitType() != other.getUnitType()) 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 (hasTag()) { hash = (37 * hash) + TAG_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTag()); } if (hasHealth()) { hash = (37 * hash) + HEALTH_FIELD_NUMBER; hash = (53 * hash) + java.lang.Float.floatToIntBits( getHealth()); } if (hasHealthMax()) { hash = (37 * hash) + HEALTH_MAX_FIELD_NUMBER; hash = (53 * hash) + java.lang.Float.floatToIntBits( getHealthMax()); } if (hasShield()) { hash = (37 * hash) + SHIELD_FIELD_NUMBER; hash = (53 * hash) + java.lang.Float.floatToIntBits( getShield()); } if (hasShieldMax()) { hash = (37 * hash) + SHIELD_MAX_FIELD_NUMBER; hash = (53 * hash) + java.lang.Float.floatToIntBits( getShieldMax()); } if (hasEnergy()) { hash = (37 * hash) + ENERGY_FIELD_NUMBER; hash = (53 * hash) + java.lang.Float.floatToIntBits( getEnergy()); } if (hasEnergyMax()) { hash = (37 * hash) + ENERGY_MAX_FIELD_NUMBER; hash = (53 * hash) + java.lang.Float.floatToIntBits( getEnergyMax()); } if (hasUnitType()) { hash = (37 * hash) + UNIT_TYPE_FIELD_NUMBER; hash = (53 * hash) + getUnitType(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static SC2APIProtocol.Raw.PassengerUnit parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Raw.PassengerUnit parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Raw.PassengerUnit parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Raw.PassengerUnit parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Raw.PassengerUnit parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Raw.PassengerUnit parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Raw.PassengerUnit parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Raw.PassengerUnit 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.Raw.PassengerUnit parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static SC2APIProtocol.Raw.PassengerUnit 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.Raw.PassengerUnit parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Raw.PassengerUnit 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.Raw.PassengerUnit 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.PassengerUnit} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:SC2APIProtocol.PassengerUnit) SC2APIProtocol.Raw.PassengerUnitOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Raw.internal_static_SC2APIProtocol_PassengerUnit_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Raw.internal_static_SC2APIProtocol_PassengerUnit_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Raw.PassengerUnit.class, SC2APIProtocol.Raw.PassengerUnit.Builder.class); } // Construct using SC2APIProtocol.Raw.PassengerUnit.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); tag_ = 0L; bitField0_ = (bitField0_ & ~0x00000001); health_ = 0F; bitField0_ = (bitField0_ & ~0x00000002); healthMax_ = 0F; bitField0_ = (bitField0_ & ~0x00000004); shield_ = 0F; bitField0_ = (bitField0_ & ~0x00000008); shieldMax_ = 0F; bitField0_ = (bitField0_ & ~0x00000010); energy_ = 0F; bitField0_ = (bitField0_ & ~0x00000020); energyMax_ = 0F; bitField0_ = (bitField0_ & ~0x00000040); unitType_ = 0; bitField0_ = (bitField0_ & ~0x00000080); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return SC2APIProtocol.Raw.internal_static_SC2APIProtocol_PassengerUnit_descriptor; } @java.lang.Override public SC2APIProtocol.Raw.PassengerUnit getDefaultInstanceForType() { return SC2APIProtocol.Raw.PassengerUnit.getDefaultInstance(); } @java.lang.Override public SC2APIProtocol.Raw.PassengerUnit build() { SC2APIProtocol.Raw.PassengerUnit result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public SC2APIProtocol.Raw.PassengerUnit buildPartial() { SC2APIProtocol.Raw.PassengerUnit result = new SC2APIProtocol.Raw.PassengerUnit(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.tag_ = tag_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.health_ = health_; to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { result.healthMax_ = healthMax_; to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000008) != 0)) { result.shield_ = shield_; to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000010) != 0)) { result.shieldMax_ = shieldMax_; to_bitField0_ |= 0x00000010; } if (((from_bitField0_ & 0x00000020) != 0)) { result.energy_ = energy_; to_bitField0_ |= 0x00000020; } if (((from_bitField0_ & 0x00000040) != 0)) { result.energyMax_ = energyMax_; to_bitField0_ |= 0x00000040; } if (((from_bitField0_ & 0x00000080) != 0)) { result.unitType_ = unitType_; to_bitField0_ |= 0x00000080; } 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.Raw.PassengerUnit) { return mergeFrom((SC2APIProtocol.Raw.PassengerUnit)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(SC2APIProtocol.Raw.PassengerUnit other) { if (other == SC2APIProtocol.Raw.PassengerUnit.getDefaultInstance()) return this; if (other.hasTag()) { setTag(other.getTag()); } if (other.hasHealth()) { setHealth(other.getHealth()); } if (other.hasHealthMax()) { setHealthMax(other.getHealthMax()); } if (other.hasShield()) { setShield(other.getShield()); } if (other.hasShieldMax()) { setShieldMax(other.getShieldMax()); } if (other.hasEnergy()) { setEnergy(other.getEnergy()); } if (other.hasEnergyMax()) { setEnergyMax(other.getEnergyMax()); } if (other.hasUnitType()) { setUnitType(other.getUnitType()); } 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: { tag_ = input.readUInt64(); bitField0_ |= 0x00000001; break; } // case 8 case 21: { health_ = input.readFloat(); bitField0_ |= 0x00000002; break; } // case 21 case 29: { healthMax_ = input.readFloat(); bitField0_ |= 0x00000004; break; } // case 29 case 37: { shield_ = input.readFloat(); bitField0_ |= 0x00000008; break; } // case 37 case 45: { energy_ = input.readFloat(); bitField0_ |= 0x00000020; break; } // case 45 case 48: { unitType_ = input.readUInt32(); bitField0_ |= 0x00000080; break; } // case 48 case 61: { shieldMax_ = input.readFloat(); bitField0_ |= 0x00000010; break; } // case 61 case 69: { energyMax_ = input.readFloat(); bitField0_ |= 0x00000040; break; } // case 69 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private long tag_ ; /** * optional uint64 tag = 1; * @return Whether the tag field is set. */ @java.lang.Override public boolean hasTag() { return ((bitField0_ & 0x00000001) != 0); } /** * optional uint64 tag = 1; * @return The tag. */ @java.lang.Override public long getTag() { return tag_; } /** * optional uint64 tag = 1; * @param value The tag to set. * @return This builder for chaining. */ public Builder setTag(long value) { bitField0_ |= 0x00000001; tag_ = value; onChanged(); return this; } /** * optional uint64 tag = 1; * @return This builder for chaining. */ public Builder clearTag() { bitField0_ = (bitField0_ & ~0x00000001); tag_ = 0L; onChanged(); return this; } private float health_ ; /** * optional float health = 2; * @return Whether the health field is set. */ @java.lang.Override public boolean hasHealth() { return ((bitField0_ & 0x00000002) != 0); } /** * optional float health = 2; * @return The health. */ @java.lang.Override public float getHealth() { return health_; } /** * optional float health = 2; * @param value The health to set. * @return This builder for chaining. */ public Builder setHealth(float value) { bitField0_ |= 0x00000002; health_ = value; onChanged(); return this; } /** * optional float health = 2; * @return This builder for chaining. */ public Builder clearHealth() { bitField0_ = (bitField0_ & ~0x00000002); health_ = 0F; onChanged(); return this; } private float healthMax_ ; /** * optional float health_max = 3; * @return Whether the healthMax field is set. */ @java.lang.Override public boolean hasHealthMax() { return ((bitField0_ & 0x00000004) != 0); } /** * optional float health_max = 3; * @return The healthMax. */ @java.lang.Override public float getHealthMax() { return healthMax_; } /** * optional float health_max = 3; * @param value The healthMax to set. * @return This builder for chaining. */ public Builder setHealthMax(float value) { bitField0_ |= 0x00000004; healthMax_ = value; onChanged(); return this; } /** * optional float health_max = 3; * @return This builder for chaining. */ public Builder clearHealthMax() { bitField0_ = (bitField0_ & ~0x00000004); healthMax_ = 0F; onChanged(); return this; } private float shield_ ; /** * optional float shield = 4; * @return Whether the shield field is set. */ @java.lang.Override public boolean hasShield() { return ((bitField0_ & 0x00000008) != 0); } /** * optional float shield = 4; * @return The shield. */ @java.lang.Override public float getShield() { return shield_; } /** * optional float shield = 4; * @param value The shield to set. * @return This builder for chaining. */ public Builder setShield(float value) { bitField0_ |= 0x00000008; shield_ = value; onChanged(); return this; } /** * optional float shield = 4; * @return This builder for chaining. */ public Builder clearShield() { bitField0_ = (bitField0_ & ~0x00000008); shield_ = 0F; onChanged(); return this; } private float shieldMax_ ; /** * optional float shield_max = 7; * @return Whether the shieldMax field is set. */ @java.lang.Override public boolean hasShieldMax() { return ((bitField0_ & 0x00000010) != 0); } /** * optional float shield_max = 7; * @return The shieldMax. */ @java.lang.Override public float getShieldMax() { return shieldMax_; } /** * optional float shield_max = 7; * @param value The shieldMax to set. * @return This builder for chaining. */ public Builder setShieldMax(float value) { bitField0_ |= 0x00000010; shieldMax_ = value; onChanged(); return this; } /** * optional float shield_max = 7; * @return This builder for chaining. */ public Builder clearShieldMax() { bitField0_ = (bitField0_ & ~0x00000010); shieldMax_ = 0F; onChanged(); return this; } private float energy_ ; /** * optional float energy = 5; * @return Whether the energy field is set. */ @java.lang.Override public boolean hasEnergy() { return ((bitField0_ & 0x00000020) != 0); } /** * optional float energy = 5; * @return The energy. */ @java.lang.Override public float getEnergy() { return energy_; } /** * optional float energy = 5; * @param value The energy to set. * @return This builder for chaining. */ public Builder setEnergy(float value) { bitField0_ |= 0x00000020; energy_ = value; onChanged(); return this; } /** * optional float energy = 5; * @return This builder for chaining. */ public Builder clearEnergy() { bitField0_ = (bitField0_ & ~0x00000020); energy_ = 0F; onChanged(); return this; } private float energyMax_ ; /** * optional float energy_max = 8; * @return Whether the energyMax field is set. */ @java.lang.Override public boolean hasEnergyMax() { return ((bitField0_ & 0x00000040) != 0); } /** * optional float energy_max = 8; * @return The energyMax. */ @java.lang.Override public float getEnergyMax() { return energyMax_; } /** * optional float energy_max = 8; * @param value The energyMax to set. * @return This builder for chaining. */ public Builder setEnergyMax(float value) { bitField0_ |= 0x00000040; energyMax_ = value; onChanged(); return this; } /** * optional float energy_max = 8; * @return This builder for chaining. */ public Builder clearEnergyMax() { bitField0_ = (bitField0_ & ~0x00000040); energyMax_ = 0F; onChanged(); return this; } private int unitType_ ; /** * optional uint32 unit_type = 6; * @return Whether the unitType field is set. */ @java.lang.Override public boolean hasUnitType() { return ((bitField0_ & 0x00000080) != 0); } /** * optional uint32 unit_type = 6; * @return The unitType. */ @java.lang.Override public int getUnitType() { return unitType_; } /** * optional uint32 unit_type = 6; * @param value The unitType to set. * @return This builder for chaining. */ public Builder setUnitType(int value) { bitField0_ |= 0x00000080; unitType_ = value; onChanged(); return this; } /** * optional uint32 unit_type = 6; * @return This builder for chaining. */ public Builder clearUnitType() { bitField0_ = (bitField0_ & ~0x00000080); unitType_ = 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.PassengerUnit) } // @@protoc_insertion_point(class_scope:SC2APIProtocol.PassengerUnit) private static final SC2APIProtocol.Raw.PassengerUnit DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new SC2APIProtocol.Raw.PassengerUnit(); } public static SC2APIProtocol.Raw.PassengerUnit getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public PassengerUnit 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.Raw.PassengerUnit getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface RallyTargetOrBuilder extends // @@protoc_insertion_point(interface_extends:SC2APIProtocol.RallyTarget) com.google.protobuf.MessageOrBuilder { /** *
     * Will always be filled.
     * 
* * optional .SC2APIProtocol.Point point = 1; * @return Whether the point field is set. */ boolean hasPoint(); /** *
     * Will always be filled.
     * 
* * optional .SC2APIProtocol.Point point = 1; * @return The point. */ SC2APIProtocol.Common.Point getPoint(); /** *
     * Will always be filled.
     * 
* * optional .SC2APIProtocol.Point point = 1; */ SC2APIProtocol.Common.PointOrBuilder getPointOrBuilder(); /** *
     * Only if it's targeting a unit.
     * 
* * optional uint64 tag = 2; * @return Whether the tag field is set. */ boolean hasTag(); /** *
     * Only if it's targeting a unit.
     * 
* * optional uint64 tag = 2; * @return The tag. */ long getTag(); } /** * Protobuf type {@code SC2APIProtocol.RallyTarget} */ public static final class RallyTarget extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:SC2APIProtocol.RallyTarget) RallyTargetOrBuilder { private static final long serialVersionUID = 0L; // Use RallyTarget.newBuilder() to construct. private RallyTarget(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private RallyTarget() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new RallyTarget(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Raw.internal_static_SC2APIProtocol_RallyTarget_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Raw.internal_static_SC2APIProtocol_RallyTarget_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Raw.RallyTarget.class, SC2APIProtocol.Raw.RallyTarget.Builder.class); } private int bitField0_; public static final int POINT_FIELD_NUMBER = 1; private SC2APIProtocol.Common.Point point_; /** *
     * Will always be filled.
     * 
* * optional .SC2APIProtocol.Point point = 1; * @return Whether the point field is set. */ @java.lang.Override public boolean hasPoint() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * Will always be filled.
     * 
* * optional .SC2APIProtocol.Point point = 1; * @return The point. */ @java.lang.Override public SC2APIProtocol.Common.Point getPoint() { return point_ == null ? SC2APIProtocol.Common.Point.getDefaultInstance() : point_; } /** *
     * Will always be filled.
     * 
* * optional .SC2APIProtocol.Point point = 1; */ @java.lang.Override public SC2APIProtocol.Common.PointOrBuilder getPointOrBuilder() { return point_ == null ? SC2APIProtocol.Common.Point.getDefaultInstance() : point_; } public static final int TAG_FIELD_NUMBER = 2; private long tag_; /** *
     * Only if it's targeting a unit.
     * 
* * optional uint64 tag = 2; * @return Whether the tag field is set. */ @java.lang.Override public boolean hasTag() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * Only if it's targeting a unit.
     * 
* * optional uint64 tag = 2; * @return The tag. */ @java.lang.Override public long getTag() { return tag_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getPoint()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeUInt64(2, tag_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getPoint()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(2, tag_); } 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.Raw.RallyTarget)) { return super.equals(obj); } SC2APIProtocol.Raw.RallyTarget other = (SC2APIProtocol.Raw.RallyTarget) obj; if (hasPoint() != other.hasPoint()) return false; if (hasPoint()) { if (!getPoint() .equals(other.getPoint())) return false; } if (hasTag() != other.hasTag()) return false; if (hasTag()) { if (getTag() != other.getTag()) 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 (hasPoint()) { hash = (37 * hash) + POINT_FIELD_NUMBER; hash = (53 * hash) + getPoint().hashCode(); } if (hasTag()) { hash = (37 * hash) + TAG_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTag()); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static SC2APIProtocol.Raw.RallyTarget parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Raw.RallyTarget parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Raw.RallyTarget parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Raw.RallyTarget parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Raw.RallyTarget parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Raw.RallyTarget parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Raw.RallyTarget parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Raw.RallyTarget 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.Raw.RallyTarget parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static SC2APIProtocol.Raw.RallyTarget 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.Raw.RallyTarget parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Raw.RallyTarget 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.Raw.RallyTarget 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.RallyTarget} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:SC2APIProtocol.RallyTarget) SC2APIProtocol.Raw.RallyTargetOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Raw.internal_static_SC2APIProtocol_RallyTarget_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Raw.internal_static_SC2APIProtocol_RallyTarget_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Raw.RallyTarget.class, SC2APIProtocol.Raw.RallyTarget.Builder.class); } // Construct using SC2APIProtocol.Raw.RallyTarget.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getPointFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (pointBuilder_ == null) { point_ = null; } else { pointBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); tag_ = 0L; bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return SC2APIProtocol.Raw.internal_static_SC2APIProtocol_RallyTarget_descriptor; } @java.lang.Override public SC2APIProtocol.Raw.RallyTarget getDefaultInstanceForType() { return SC2APIProtocol.Raw.RallyTarget.getDefaultInstance(); } @java.lang.Override public SC2APIProtocol.Raw.RallyTarget build() { SC2APIProtocol.Raw.RallyTarget result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public SC2APIProtocol.Raw.RallyTarget buildPartial() { SC2APIProtocol.Raw.RallyTarget result = new SC2APIProtocol.Raw.RallyTarget(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { if (pointBuilder_ == null) { result.point_ = point_; } else { result.point_ = pointBuilder_.build(); } to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.tag_ = tag_; 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.Raw.RallyTarget) { return mergeFrom((SC2APIProtocol.Raw.RallyTarget)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(SC2APIProtocol.Raw.RallyTarget other) { if (other == SC2APIProtocol.Raw.RallyTarget.getDefaultInstance()) return this; if (other.hasPoint()) { mergePoint(other.getPoint()); } if (other.hasTag()) { setTag(other.getTag()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getPointFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 16: { tag_ = input.readUInt64(); bitField0_ |= 0x00000002; break; } // case 16 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private SC2APIProtocol.Common.Point point_; private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Common.Point, SC2APIProtocol.Common.Point.Builder, SC2APIProtocol.Common.PointOrBuilder> pointBuilder_; /** *
       * Will always be filled.
       * 
* * optional .SC2APIProtocol.Point point = 1; * @return Whether the point field is set. */ public boolean hasPoint() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * Will always be filled.
       * 
* * optional .SC2APIProtocol.Point point = 1; * @return The point. */ public SC2APIProtocol.Common.Point getPoint() { if (pointBuilder_ == null) { return point_ == null ? SC2APIProtocol.Common.Point.getDefaultInstance() : point_; } else { return pointBuilder_.getMessage(); } } /** *
       * Will always be filled.
       * 
* * optional .SC2APIProtocol.Point point = 1; */ public Builder setPoint(SC2APIProtocol.Common.Point value) { if (pointBuilder_ == null) { if (value == null) { throw new NullPointerException(); } point_ = value; onChanged(); } else { pointBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** *
       * Will always be filled.
       * 
* * optional .SC2APIProtocol.Point point = 1; */ public Builder setPoint( SC2APIProtocol.Common.Point.Builder builderForValue) { if (pointBuilder_ == null) { point_ = builderForValue.build(); onChanged(); } else { pointBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** *
       * Will always be filled.
       * 
* * optional .SC2APIProtocol.Point point = 1; */ public Builder mergePoint(SC2APIProtocol.Common.Point value) { if (pointBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && point_ != null && point_ != SC2APIProtocol.Common.Point.getDefaultInstance()) { point_ = SC2APIProtocol.Common.Point.newBuilder(point_).mergeFrom(value).buildPartial(); } else { point_ = value; } onChanged(); } else { pointBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** *
       * Will always be filled.
       * 
* * optional .SC2APIProtocol.Point point = 1; */ public Builder clearPoint() { if (pointBuilder_ == null) { point_ = null; onChanged(); } else { pointBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** *
       * Will always be filled.
       * 
* * optional .SC2APIProtocol.Point point = 1; */ public SC2APIProtocol.Common.Point.Builder getPointBuilder() { bitField0_ |= 0x00000001; onChanged(); return getPointFieldBuilder().getBuilder(); } /** *
       * Will always be filled.
       * 
* * optional .SC2APIProtocol.Point point = 1; */ public SC2APIProtocol.Common.PointOrBuilder getPointOrBuilder() { if (pointBuilder_ != null) { return pointBuilder_.getMessageOrBuilder(); } else { return point_ == null ? SC2APIProtocol.Common.Point.getDefaultInstance() : point_; } } /** *
       * Will always be filled.
       * 
* * optional .SC2APIProtocol.Point point = 1; */ private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Common.Point, SC2APIProtocol.Common.Point.Builder, SC2APIProtocol.Common.PointOrBuilder> getPointFieldBuilder() { if (pointBuilder_ == null) { pointBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Common.Point, SC2APIProtocol.Common.Point.Builder, SC2APIProtocol.Common.PointOrBuilder>( getPoint(), getParentForChildren(), isClean()); point_ = null; } return pointBuilder_; } private long tag_ ; /** *
       * Only if it's targeting a unit.
       * 
* * optional uint64 tag = 2; * @return Whether the tag field is set. */ @java.lang.Override public boolean hasTag() { return ((bitField0_ & 0x00000002) != 0); } /** *
       * Only if it's targeting a unit.
       * 
* * optional uint64 tag = 2; * @return The tag. */ @java.lang.Override public long getTag() { return tag_; } /** *
       * Only if it's targeting a unit.
       * 
* * optional uint64 tag = 2; * @param value The tag to set. * @return This builder for chaining. */ public Builder setTag(long value) { bitField0_ |= 0x00000002; tag_ = value; onChanged(); return this; } /** *
       * Only if it's targeting a unit.
       * 
* * optional uint64 tag = 2; * @return This builder for chaining. */ public Builder clearTag() { bitField0_ = (bitField0_ & ~0x00000002); tag_ = 0L; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:SC2APIProtocol.RallyTarget) } // @@protoc_insertion_point(class_scope:SC2APIProtocol.RallyTarget) private static final SC2APIProtocol.Raw.RallyTarget DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new SC2APIProtocol.Raw.RallyTarget(); } public static SC2APIProtocol.Raw.RallyTarget getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public RallyTarget 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.Raw.RallyTarget getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface UnitOrBuilder extends // @@protoc_insertion_point(interface_extends:SC2APIProtocol.Unit) com.google.protobuf.MessageOrBuilder { /** *
     * Fields are populated based on type/alliance
     * 
* * optional .SC2APIProtocol.DisplayType display_type = 1; * @return Whether the displayType field is set. */ boolean hasDisplayType(); /** *
     * Fields are populated based on type/alliance
     * 
* * optional .SC2APIProtocol.DisplayType display_type = 1; * @return The displayType. */ SC2APIProtocol.Raw.DisplayType getDisplayType(); /** * optional .SC2APIProtocol.Alliance alliance = 2; * @return Whether the alliance field is set. */ boolean hasAlliance(); /** * optional .SC2APIProtocol.Alliance alliance = 2; * @return The alliance. */ SC2APIProtocol.Raw.Alliance getAlliance(); /** *
     * Unique identifier for a unit
     * 
* * optional uint64 tag = 3; * @return Whether the tag field is set. */ boolean hasTag(); /** *
     * Unique identifier for a unit
     * 
* * optional uint64 tag = 3; * @return The tag. */ long getTag(); /** * optional uint32 unit_type = 4; * @return Whether the unitType field is set. */ boolean hasUnitType(); /** * optional uint32 unit_type = 4; * @return The unitType. */ int getUnitType(); /** * optional int32 owner = 5; * @return Whether the owner field is set. */ boolean hasOwner(); /** * optional int32 owner = 5; * @return The owner. */ int getOwner(); /** * optional .SC2APIProtocol.Point pos = 6; * @return Whether the pos field is set. */ boolean hasPos(); /** * optional .SC2APIProtocol.Point pos = 6; * @return The pos. */ SC2APIProtocol.Common.Point getPos(); /** * optional .SC2APIProtocol.Point pos = 6; */ SC2APIProtocol.Common.PointOrBuilder getPosOrBuilder(); /** * optional float facing = 7; * @return Whether the facing field is set. */ boolean hasFacing(); /** * optional float facing = 7; * @return The facing. */ float getFacing(); /** * optional float radius = 8; * @return Whether the radius field is set. */ boolean hasRadius(); /** * optional float radius = 8; * @return The radius. */ float getRadius(); /** *
     * Range: [0.0, 1.0]
     * 
* * optional float build_progress = 9; * @return Whether the buildProgress field is set. */ boolean hasBuildProgress(); /** *
     * Range: [0.0, 1.0]
     * 
* * optional float build_progress = 9; * @return The buildProgress. */ float getBuildProgress(); /** * optional .SC2APIProtocol.CloakState cloak = 10; * @return Whether the cloak field is set. */ boolean hasCloak(); /** * optional .SC2APIProtocol.CloakState cloak = 10; * @return The cloak. */ SC2APIProtocol.Raw.CloakState getCloak(); /** * repeated uint32 buff_ids = 27; * @return A list containing the buffIds. */ java.util.List getBuffIdsList(); /** * repeated uint32 buff_ids = 27; * @return The count of buffIds. */ int getBuffIdsCount(); /** * repeated uint32 buff_ids = 27; * @param index The index of the element to return. * @return The buffIds at the given index. */ int getBuffIds(int index); /** * optional float detect_range = 31; * @return Whether the detectRange field is set. */ boolean hasDetectRange(); /** * optional float detect_range = 31; * @return The detectRange. */ float getDetectRange(); /** * optional float radar_range = 32; * @return Whether the radarRange field is set. */ boolean hasRadarRange(); /** * optional float radar_range = 32; * @return The radarRange. */ float getRadarRange(); /** * optional bool is_selected = 11; * @return Whether the isSelected field is set. */ boolean hasIsSelected(); /** * optional bool is_selected = 11; * @return The isSelected. */ boolean getIsSelected(); /** *
     * Visible and within the camera frustrum.
     * 
* * optional bool is_on_screen = 12; * @return Whether the isOnScreen field is set. */ boolean hasIsOnScreen(); /** *
     * Visible and within the camera frustrum.
     * 
* * optional bool is_on_screen = 12; * @return The isOnScreen. */ boolean getIsOnScreen(); /** *
     * Detected by sensor tower
     * 
* * optional bool is_blip = 13; * @return Whether the isBlip field is set. */ boolean hasIsBlip(); /** *
     * Detected by sensor tower
     * 
* * optional bool is_blip = 13; * @return The isBlip. */ boolean getIsBlip(); /** * optional bool is_powered = 35; * @return Whether the isPowered field is set. */ boolean hasIsPowered(); /** * optional bool is_powered = 35; * @return The isPowered. */ boolean getIsPowered(); /** *
     * Building is training/researching (ie animated).
     * 
* * optional bool is_active = 39; * @return Whether the isActive field is set. */ boolean hasIsActive(); /** *
     * Building is training/researching (ie animated).
     * 
* * optional bool is_active = 39; * @return The isActive. */ boolean getIsActive(); /** * optional int32 attack_upgrade_level = 40; * @return Whether the attackUpgradeLevel field is set. */ boolean hasAttackUpgradeLevel(); /** * optional int32 attack_upgrade_level = 40; * @return The attackUpgradeLevel. */ int getAttackUpgradeLevel(); /** * optional int32 armor_upgrade_level = 41; * @return Whether the armorUpgradeLevel field is set. */ boolean hasArmorUpgradeLevel(); /** * optional int32 armor_upgrade_level = 41; * @return The armorUpgradeLevel. */ int getArmorUpgradeLevel(); /** * optional int32 shield_upgrade_level = 42; * @return Whether the shieldUpgradeLevel field is set. */ boolean hasShieldUpgradeLevel(); /** * optional int32 shield_upgrade_level = 42; * @return The shieldUpgradeLevel. */ int getShieldUpgradeLevel(); /** *
     * Not populated for snapshots
     * 
* * optional float health = 14; * @return Whether the health field is set. */ boolean hasHealth(); /** *
     * Not populated for snapshots
     * 
* * optional float health = 14; * @return The health. */ float getHealth(); /** * optional float health_max = 15; * @return Whether the healthMax field is set. */ boolean hasHealthMax(); /** * optional float health_max = 15; * @return The healthMax. */ float getHealthMax(); /** * optional float shield = 16; * @return Whether the shield field is set. */ boolean hasShield(); /** * optional float shield = 16; * @return The shield. */ float getShield(); /** * optional float shield_max = 36; * @return Whether the shieldMax field is set. */ boolean hasShieldMax(); /** * optional float shield_max = 36; * @return The shieldMax. */ float getShieldMax(); /** * optional float energy = 17; * @return Whether the energy field is set. */ boolean hasEnergy(); /** * optional float energy = 17; * @return The energy. */ float getEnergy(); /** * optional float energy_max = 37; * @return Whether the energyMax field is set. */ boolean hasEnergyMax(); /** * optional float energy_max = 37; * @return The energyMax. */ float getEnergyMax(); /** * optional int32 mineral_contents = 18; * @return Whether the mineralContents field is set. */ boolean hasMineralContents(); /** * optional int32 mineral_contents = 18; * @return The mineralContents. */ int getMineralContents(); /** * optional int32 vespene_contents = 19; * @return Whether the vespeneContents field is set. */ boolean hasVespeneContents(); /** * optional int32 vespene_contents = 19; * @return The vespeneContents. */ int getVespeneContents(); /** * optional bool is_flying = 20; * @return Whether the isFlying field is set. */ boolean hasIsFlying(); /** * optional bool is_flying = 20; * @return The isFlying. */ boolean getIsFlying(); /** * optional bool is_burrowed = 21; * @return Whether the isBurrowed field is set. */ boolean hasIsBurrowed(); /** * optional bool is_burrowed = 21; * @return The isBurrowed. */ boolean getIsBurrowed(); /** *
     * Unit is your own or detected as a hallucination.
     * 
* * optional bool is_hallucination = 38; * @return Whether the isHallucination field is set. */ boolean hasIsHallucination(); /** *
     * Unit is your own or detected as a hallucination.
     * 
* * optional bool is_hallucination = 38; * @return The isHallucination. */ boolean getIsHallucination(); /** *
     * Not populated for enemies
     * 
* * repeated .SC2APIProtocol.UnitOrder orders = 22; */ java.util.List getOrdersList(); /** *
     * Not populated for enemies
     * 
* * repeated .SC2APIProtocol.UnitOrder orders = 22; */ SC2APIProtocol.Raw.UnitOrder getOrders(int index); /** *
     * Not populated for enemies
     * 
* * repeated .SC2APIProtocol.UnitOrder orders = 22; */ int getOrdersCount(); /** *
     * Not populated for enemies
     * 
* * repeated .SC2APIProtocol.UnitOrder orders = 22; */ java.util.List getOrdersOrBuilderList(); /** *
     * Not populated for enemies
     * 
* * repeated .SC2APIProtocol.UnitOrder orders = 22; */ SC2APIProtocol.Raw.UnitOrderOrBuilder getOrdersOrBuilder( int index); /** * optional uint64 add_on_tag = 23; * @return Whether the addOnTag field is set. */ boolean hasAddOnTag(); /** * optional uint64 add_on_tag = 23; * @return The addOnTag. */ long getAddOnTag(); /** * repeated .SC2APIProtocol.PassengerUnit passengers = 24; */ java.util.List getPassengersList(); /** * repeated .SC2APIProtocol.PassengerUnit passengers = 24; */ SC2APIProtocol.Raw.PassengerUnit getPassengers(int index); /** * repeated .SC2APIProtocol.PassengerUnit passengers = 24; */ int getPassengersCount(); /** * repeated .SC2APIProtocol.PassengerUnit passengers = 24; */ java.util.List getPassengersOrBuilderList(); /** * repeated .SC2APIProtocol.PassengerUnit passengers = 24; */ SC2APIProtocol.Raw.PassengerUnitOrBuilder getPassengersOrBuilder( int index); /** * optional int32 cargo_space_taken = 25; * @return Whether the cargoSpaceTaken field is set. */ boolean hasCargoSpaceTaken(); /** * optional int32 cargo_space_taken = 25; * @return The cargoSpaceTaken. */ int getCargoSpaceTaken(); /** * optional int32 cargo_space_max = 26; * @return Whether the cargoSpaceMax field is set. */ boolean hasCargoSpaceMax(); /** * optional int32 cargo_space_max = 26; * @return The cargoSpaceMax. */ int getCargoSpaceMax(); /** * optional int32 assigned_harvesters = 28; * @return Whether the assignedHarvesters field is set. */ boolean hasAssignedHarvesters(); /** * optional int32 assigned_harvesters = 28; * @return The assignedHarvesters. */ int getAssignedHarvesters(); /** * optional int32 ideal_harvesters = 29; * @return Whether the idealHarvesters field is set. */ boolean hasIdealHarvesters(); /** * optional int32 ideal_harvesters = 29; * @return The idealHarvesters. */ int getIdealHarvesters(); /** * optional float weapon_cooldown = 30; * @return Whether the weaponCooldown field is set. */ boolean hasWeaponCooldown(); /** * optional float weapon_cooldown = 30; * @return The weaponCooldown. */ float getWeaponCooldown(); /** * optional uint64 engaged_target_tag = 34; * @return Whether the engagedTargetTag field is set. */ boolean hasEngagedTargetTag(); /** * optional uint64 engaged_target_tag = 34; * @return The engagedTargetTag. */ long getEngagedTargetTag(); /** *
     * How long a buff or unit is still around (eg mule, broodling, chronoboost).
     * 
* * optional int32 buff_duration_remain = 43; * @return Whether the buffDurationRemain field is set. */ boolean hasBuffDurationRemain(); /** *
     * How long a buff or unit is still around (eg mule, broodling, chronoboost).
     * 
* * optional int32 buff_duration_remain = 43; * @return The buffDurationRemain. */ int getBuffDurationRemain(); /** *
     * How long the buff or unit is still around (eg mule, broodling, chronoboost).
     * 
* * optional int32 buff_duration_max = 44; * @return Whether the buffDurationMax field is set. */ boolean hasBuffDurationMax(); /** *
     * How long the buff or unit is still around (eg mule, broodling, chronoboost).
     * 
* * optional int32 buff_duration_max = 44; * @return The buffDurationMax. */ int getBuffDurationMax(); /** * repeated .SC2APIProtocol.RallyTarget rally_targets = 45; */ java.util.List getRallyTargetsList(); /** * repeated .SC2APIProtocol.RallyTarget rally_targets = 45; */ SC2APIProtocol.Raw.RallyTarget getRallyTargets(int index); /** * repeated .SC2APIProtocol.RallyTarget rally_targets = 45; */ int getRallyTargetsCount(); /** * repeated .SC2APIProtocol.RallyTarget rally_targets = 45; */ java.util.List getRallyTargetsOrBuilderList(); /** * repeated .SC2APIProtocol.RallyTarget rally_targets = 45; */ SC2APIProtocol.Raw.RallyTargetOrBuilder getRallyTargetsOrBuilder( int index); } /** * Protobuf type {@code SC2APIProtocol.Unit} */ public static final class Unit extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:SC2APIProtocol.Unit) UnitOrBuilder { private static final long serialVersionUID = 0L; // Use Unit.newBuilder() to construct. private Unit(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Unit() { displayType_ = 1; alliance_ = 1; cloak_ = 0; buffIds_ = emptyIntList(); orders_ = java.util.Collections.emptyList(); passengers_ = java.util.Collections.emptyList(); rallyTargets_ = java.util.Collections.emptyList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Unit(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Raw.internal_static_SC2APIProtocol_Unit_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Raw.internal_static_SC2APIProtocol_Unit_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Raw.Unit.class, SC2APIProtocol.Raw.Unit.Builder.class); } private int bitField0_; private int bitField1_; public static final int DISPLAY_TYPE_FIELD_NUMBER = 1; private int displayType_; /** *
     * Fields are populated based on type/alliance
     * 
* * optional .SC2APIProtocol.DisplayType display_type = 1; * @return Whether the displayType field is set. */ @java.lang.Override public boolean hasDisplayType() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * Fields are populated based on type/alliance
     * 
* * optional .SC2APIProtocol.DisplayType display_type = 1; * @return The displayType. */ @java.lang.Override public SC2APIProtocol.Raw.DisplayType getDisplayType() { @SuppressWarnings("deprecation") SC2APIProtocol.Raw.DisplayType result = SC2APIProtocol.Raw.DisplayType.valueOf(displayType_); return result == null ? SC2APIProtocol.Raw.DisplayType.Visible : result; } public static final int ALLIANCE_FIELD_NUMBER = 2; private int alliance_; /** * optional .SC2APIProtocol.Alliance alliance = 2; * @return Whether the alliance field is set. */ @java.lang.Override public boolean hasAlliance() { return ((bitField0_ & 0x00000002) != 0); } /** * optional .SC2APIProtocol.Alliance alliance = 2; * @return The alliance. */ @java.lang.Override public SC2APIProtocol.Raw.Alliance getAlliance() { @SuppressWarnings("deprecation") SC2APIProtocol.Raw.Alliance result = SC2APIProtocol.Raw.Alliance.valueOf(alliance_); return result == null ? SC2APIProtocol.Raw.Alliance.Self : result; } public static final int TAG_FIELD_NUMBER = 3; private long tag_; /** *
     * Unique identifier for a unit
     * 
* * optional uint64 tag = 3; * @return Whether the tag field is set. */ @java.lang.Override public boolean hasTag() { return ((bitField0_ & 0x00000004) != 0); } /** *
     * Unique identifier for a unit
     * 
* * optional uint64 tag = 3; * @return The tag. */ @java.lang.Override public long getTag() { return tag_; } public static final int UNIT_TYPE_FIELD_NUMBER = 4; private int unitType_; /** * optional uint32 unit_type = 4; * @return Whether the unitType field is set. */ @java.lang.Override public boolean hasUnitType() { return ((bitField0_ & 0x00000008) != 0); } /** * optional uint32 unit_type = 4; * @return The unitType. */ @java.lang.Override public int getUnitType() { return unitType_; } public static final int OWNER_FIELD_NUMBER = 5; private int owner_; /** * optional int32 owner = 5; * @return Whether the owner field is set. */ @java.lang.Override public boolean hasOwner() { return ((bitField0_ & 0x00000010) != 0); } /** * optional int32 owner = 5; * @return The owner. */ @java.lang.Override public int getOwner() { return owner_; } public static final int POS_FIELD_NUMBER = 6; private SC2APIProtocol.Common.Point pos_; /** * optional .SC2APIProtocol.Point pos = 6; * @return Whether the pos field is set. */ @java.lang.Override public boolean hasPos() { return ((bitField0_ & 0x00000020) != 0); } /** * optional .SC2APIProtocol.Point pos = 6; * @return The pos. */ @java.lang.Override public SC2APIProtocol.Common.Point getPos() { return pos_ == null ? SC2APIProtocol.Common.Point.getDefaultInstance() : pos_; } /** * optional .SC2APIProtocol.Point pos = 6; */ @java.lang.Override public SC2APIProtocol.Common.PointOrBuilder getPosOrBuilder() { return pos_ == null ? SC2APIProtocol.Common.Point.getDefaultInstance() : pos_; } public static final int FACING_FIELD_NUMBER = 7; private float facing_; /** * optional float facing = 7; * @return Whether the facing field is set. */ @java.lang.Override public boolean hasFacing() { return ((bitField0_ & 0x00000040) != 0); } /** * optional float facing = 7; * @return The facing. */ @java.lang.Override public float getFacing() { return facing_; } public static final int RADIUS_FIELD_NUMBER = 8; private float radius_; /** * optional float radius = 8; * @return Whether the radius field is set. */ @java.lang.Override public boolean hasRadius() { return ((bitField0_ & 0x00000080) != 0); } /** * optional float radius = 8; * @return The radius. */ @java.lang.Override public float getRadius() { return radius_; } public static final int BUILD_PROGRESS_FIELD_NUMBER = 9; private float buildProgress_; /** *
     * Range: [0.0, 1.0]
     * 
* * optional float build_progress = 9; * @return Whether the buildProgress field is set. */ @java.lang.Override public boolean hasBuildProgress() { return ((bitField0_ & 0x00000100) != 0); } /** *
     * Range: [0.0, 1.0]
     * 
* * optional float build_progress = 9; * @return The buildProgress. */ @java.lang.Override public float getBuildProgress() { return buildProgress_; } public static final int CLOAK_FIELD_NUMBER = 10; private int cloak_; /** * optional .SC2APIProtocol.CloakState cloak = 10; * @return Whether the cloak field is set. */ @java.lang.Override public boolean hasCloak() { return ((bitField0_ & 0x00000200) != 0); } /** * optional .SC2APIProtocol.CloakState cloak = 10; * @return The cloak. */ @java.lang.Override public SC2APIProtocol.Raw.CloakState getCloak() { @SuppressWarnings("deprecation") SC2APIProtocol.Raw.CloakState result = SC2APIProtocol.Raw.CloakState.valueOf(cloak_); return result == null ? SC2APIProtocol.Raw.CloakState.CloakedUnknown : result; } public static final int BUFF_IDS_FIELD_NUMBER = 27; private com.google.protobuf.Internal.IntList buffIds_; /** * repeated uint32 buff_ids = 27; * @return A list containing the buffIds. */ @java.lang.Override public java.util.List getBuffIdsList() { return buffIds_; } /** * repeated uint32 buff_ids = 27; * @return The count of buffIds. */ public int getBuffIdsCount() { return buffIds_.size(); } /** * repeated uint32 buff_ids = 27; * @param index The index of the element to return. * @return The buffIds at the given index. */ public int getBuffIds(int index) { return buffIds_.getInt(index); } public static final int DETECT_RANGE_FIELD_NUMBER = 31; private float detectRange_; /** * optional float detect_range = 31; * @return Whether the detectRange field is set. */ @java.lang.Override public boolean hasDetectRange() { return ((bitField0_ & 0x00000400) != 0); } /** * optional float detect_range = 31; * @return The detectRange. */ @java.lang.Override public float getDetectRange() { return detectRange_; } public static final int RADAR_RANGE_FIELD_NUMBER = 32; private float radarRange_; /** * optional float radar_range = 32; * @return Whether the radarRange field is set. */ @java.lang.Override public boolean hasRadarRange() { return ((bitField0_ & 0x00000800) != 0); } /** * optional float radar_range = 32; * @return The radarRange. */ @java.lang.Override public float getRadarRange() { return radarRange_; } public static final int IS_SELECTED_FIELD_NUMBER = 11; private boolean isSelected_; /** * optional bool is_selected = 11; * @return Whether the isSelected field is set. */ @java.lang.Override public boolean hasIsSelected() { return ((bitField0_ & 0x00001000) != 0); } /** * optional bool is_selected = 11; * @return The isSelected. */ @java.lang.Override public boolean getIsSelected() { return isSelected_; } public static final int IS_ON_SCREEN_FIELD_NUMBER = 12; private boolean isOnScreen_; /** *
     * Visible and within the camera frustrum.
     * 
* * optional bool is_on_screen = 12; * @return Whether the isOnScreen field is set. */ @java.lang.Override public boolean hasIsOnScreen() { return ((bitField0_ & 0x00002000) != 0); } /** *
     * Visible and within the camera frustrum.
     * 
* * optional bool is_on_screen = 12; * @return The isOnScreen. */ @java.lang.Override public boolean getIsOnScreen() { return isOnScreen_; } public static final int IS_BLIP_FIELD_NUMBER = 13; private boolean isBlip_; /** *
     * Detected by sensor tower
     * 
* * optional bool is_blip = 13; * @return Whether the isBlip field is set. */ @java.lang.Override public boolean hasIsBlip() { return ((bitField0_ & 0x00004000) != 0); } /** *
     * Detected by sensor tower
     * 
* * optional bool is_blip = 13; * @return The isBlip. */ @java.lang.Override public boolean getIsBlip() { return isBlip_; } public static final int IS_POWERED_FIELD_NUMBER = 35; private boolean isPowered_; /** * optional bool is_powered = 35; * @return Whether the isPowered field is set. */ @java.lang.Override public boolean hasIsPowered() { return ((bitField0_ & 0x00008000) != 0); } /** * optional bool is_powered = 35; * @return The isPowered. */ @java.lang.Override public boolean getIsPowered() { return isPowered_; } public static final int IS_ACTIVE_FIELD_NUMBER = 39; private boolean isActive_; /** *
     * Building is training/researching (ie animated).
     * 
* * optional bool is_active = 39; * @return Whether the isActive field is set. */ @java.lang.Override public boolean hasIsActive() { return ((bitField0_ & 0x00010000) != 0); } /** *
     * Building is training/researching (ie animated).
     * 
* * optional bool is_active = 39; * @return The isActive. */ @java.lang.Override public boolean getIsActive() { return isActive_; } public static final int ATTACK_UPGRADE_LEVEL_FIELD_NUMBER = 40; private int attackUpgradeLevel_; /** * optional int32 attack_upgrade_level = 40; * @return Whether the attackUpgradeLevel field is set. */ @java.lang.Override public boolean hasAttackUpgradeLevel() { return ((bitField0_ & 0x00020000) != 0); } /** * optional int32 attack_upgrade_level = 40; * @return The attackUpgradeLevel. */ @java.lang.Override public int getAttackUpgradeLevel() { return attackUpgradeLevel_; } public static final int ARMOR_UPGRADE_LEVEL_FIELD_NUMBER = 41; private int armorUpgradeLevel_; /** * optional int32 armor_upgrade_level = 41; * @return Whether the armorUpgradeLevel field is set. */ @java.lang.Override public boolean hasArmorUpgradeLevel() { return ((bitField0_ & 0x00040000) != 0); } /** * optional int32 armor_upgrade_level = 41; * @return The armorUpgradeLevel. */ @java.lang.Override public int getArmorUpgradeLevel() { return armorUpgradeLevel_; } public static final int SHIELD_UPGRADE_LEVEL_FIELD_NUMBER = 42; private int shieldUpgradeLevel_; /** * optional int32 shield_upgrade_level = 42; * @return Whether the shieldUpgradeLevel field is set. */ @java.lang.Override public boolean hasShieldUpgradeLevel() { return ((bitField0_ & 0x00080000) != 0); } /** * optional int32 shield_upgrade_level = 42; * @return The shieldUpgradeLevel. */ @java.lang.Override public int getShieldUpgradeLevel() { return shieldUpgradeLevel_; } public static final int HEALTH_FIELD_NUMBER = 14; private float health_; /** *
     * Not populated for snapshots
     * 
* * optional float health = 14; * @return Whether the health field is set. */ @java.lang.Override public boolean hasHealth() { return ((bitField0_ & 0x00100000) != 0); } /** *
     * Not populated for snapshots
     * 
* * optional float health = 14; * @return The health. */ @java.lang.Override public float getHealth() { return health_; } public static final int HEALTH_MAX_FIELD_NUMBER = 15; private float healthMax_; /** * optional float health_max = 15; * @return Whether the healthMax field is set. */ @java.lang.Override public boolean hasHealthMax() { return ((bitField0_ & 0x00200000) != 0); } /** * optional float health_max = 15; * @return The healthMax. */ @java.lang.Override public float getHealthMax() { return healthMax_; } public static final int SHIELD_FIELD_NUMBER = 16; private float shield_; /** * optional float shield = 16; * @return Whether the shield field is set. */ @java.lang.Override public boolean hasShield() { return ((bitField0_ & 0x00400000) != 0); } /** * optional float shield = 16; * @return The shield. */ @java.lang.Override public float getShield() { return shield_; } public static final int SHIELD_MAX_FIELD_NUMBER = 36; private float shieldMax_; /** * optional float shield_max = 36; * @return Whether the shieldMax field is set. */ @java.lang.Override public boolean hasShieldMax() { return ((bitField0_ & 0x00800000) != 0); } /** * optional float shield_max = 36; * @return The shieldMax. */ @java.lang.Override public float getShieldMax() { return shieldMax_; } public static final int ENERGY_FIELD_NUMBER = 17; private float energy_; /** * optional float energy = 17; * @return Whether the energy field is set. */ @java.lang.Override public boolean hasEnergy() { return ((bitField0_ & 0x01000000) != 0); } /** * optional float energy = 17; * @return The energy. */ @java.lang.Override public float getEnergy() { return energy_; } public static final int ENERGY_MAX_FIELD_NUMBER = 37; private float energyMax_; /** * optional float energy_max = 37; * @return Whether the energyMax field is set. */ @java.lang.Override public boolean hasEnergyMax() { return ((bitField0_ & 0x02000000) != 0); } /** * optional float energy_max = 37; * @return The energyMax. */ @java.lang.Override public float getEnergyMax() { return energyMax_; } public static final int MINERAL_CONTENTS_FIELD_NUMBER = 18; private int mineralContents_; /** * optional int32 mineral_contents = 18; * @return Whether the mineralContents field is set. */ @java.lang.Override public boolean hasMineralContents() { return ((bitField0_ & 0x04000000) != 0); } /** * optional int32 mineral_contents = 18; * @return The mineralContents. */ @java.lang.Override public int getMineralContents() { return mineralContents_; } public static final int VESPENE_CONTENTS_FIELD_NUMBER = 19; private int vespeneContents_; /** * optional int32 vespene_contents = 19; * @return Whether the vespeneContents field is set. */ @java.lang.Override public boolean hasVespeneContents() { return ((bitField0_ & 0x08000000) != 0); } /** * optional int32 vespene_contents = 19; * @return The vespeneContents. */ @java.lang.Override public int getVespeneContents() { return vespeneContents_; } public static final int IS_FLYING_FIELD_NUMBER = 20; private boolean isFlying_; /** * optional bool is_flying = 20; * @return Whether the isFlying field is set. */ @java.lang.Override public boolean hasIsFlying() { return ((bitField0_ & 0x10000000) != 0); } /** * optional bool is_flying = 20; * @return The isFlying. */ @java.lang.Override public boolean getIsFlying() { return isFlying_; } public static final int IS_BURROWED_FIELD_NUMBER = 21; private boolean isBurrowed_; /** * optional bool is_burrowed = 21; * @return Whether the isBurrowed field is set. */ @java.lang.Override public boolean hasIsBurrowed() { return ((bitField0_ & 0x20000000) != 0); } /** * optional bool is_burrowed = 21; * @return The isBurrowed. */ @java.lang.Override public boolean getIsBurrowed() { return isBurrowed_; } public static final int IS_HALLUCINATION_FIELD_NUMBER = 38; private boolean isHallucination_; /** *
     * Unit is your own or detected as a hallucination.
     * 
* * optional bool is_hallucination = 38; * @return Whether the isHallucination field is set. */ @java.lang.Override public boolean hasIsHallucination() { return ((bitField0_ & 0x40000000) != 0); } /** *
     * Unit is your own or detected as a hallucination.
     * 
* * optional bool is_hallucination = 38; * @return The isHallucination. */ @java.lang.Override public boolean getIsHallucination() { return isHallucination_; } public static final int ORDERS_FIELD_NUMBER = 22; private java.util.List orders_; /** *
     * Not populated for enemies
     * 
* * repeated .SC2APIProtocol.UnitOrder orders = 22; */ @java.lang.Override public java.util.List getOrdersList() { return orders_; } /** *
     * Not populated for enemies
     * 
* * repeated .SC2APIProtocol.UnitOrder orders = 22; */ @java.lang.Override public java.util.List getOrdersOrBuilderList() { return orders_; } /** *
     * Not populated for enemies
     * 
* * repeated .SC2APIProtocol.UnitOrder orders = 22; */ @java.lang.Override public int getOrdersCount() { return orders_.size(); } /** *
     * Not populated for enemies
     * 
* * repeated .SC2APIProtocol.UnitOrder orders = 22; */ @java.lang.Override public SC2APIProtocol.Raw.UnitOrder getOrders(int index) { return orders_.get(index); } /** *
     * Not populated for enemies
     * 
* * repeated .SC2APIProtocol.UnitOrder orders = 22; */ @java.lang.Override public SC2APIProtocol.Raw.UnitOrderOrBuilder getOrdersOrBuilder( int index) { return orders_.get(index); } public static final int ADD_ON_TAG_FIELD_NUMBER = 23; private long addOnTag_; /** * optional uint64 add_on_tag = 23; * @return Whether the addOnTag field is set. */ @java.lang.Override public boolean hasAddOnTag() { return ((bitField0_ & 0x80000000) != 0); } /** * optional uint64 add_on_tag = 23; * @return The addOnTag. */ @java.lang.Override public long getAddOnTag() { return addOnTag_; } public static final int PASSENGERS_FIELD_NUMBER = 24; private java.util.List passengers_; /** * repeated .SC2APIProtocol.PassengerUnit passengers = 24; */ @java.lang.Override public java.util.List getPassengersList() { return passengers_; } /** * repeated .SC2APIProtocol.PassengerUnit passengers = 24; */ @java.lang.Override public java.util.List getPassengersOrBuilderList() { return passengers_; } /** * repeated .SC2APIProtocol.PassengerUnit passengers = 24; */ @java.lang.Override public int getPassengersCount() { return passengers_.size(); } /** * repeated .SC2APIProtocol.PassengerUnit passengers = 24; */ @java.lang.Override public SC2APIProtocol.Raw.PassengerUnit getPassengers(int index) { return passengers_.get(index); } /** * repeated .SC2APIProtocol.PassengerUnit passengers = 24; */ @java.lang.Override public SC2APIProtocol.Raw.PassengerUnitOrBuilder getPassengersOrBuilder( int index) { return passengers_.get(index); } public static final int CARGO_SPACE_TAKEN_FIELD_NUMBER = 25; private int cargoSpaceTaken_; /** * optional int32 cargo_space_taken = 25; * @return Whether the cargoSpaceTaken field is set. */ @java.lang.Override public boolean hasCargoSpaceTaken() { return ((bitField1_ & 0x00000001) != 0); } /** * optional int32 cargo_space_taken = 25; * @return The cargoSpaceTaken. */ @java.lang.Override public int getCargoSpaceTaken() { return cargoSpaceTaken_; } public static final int CARGO_SPACE_MAX_FIELD_NUMBER = 26; private int cargoSpaceMax_; /** * optional int32 cargo_space_max = 26; * @return Whether the cargoSpaceMax field is set. */ @java.lang.Override public boolean hasCargoSpaceMax() { return ((bitField1_ & 0x00000002) != 0); } /** * optional int32 cargo_space_max = 26; * @return The cargoSpaceMax. */ @java.lang.Override public int getCargoSpaceMax() { return cargoSpaceMax_; } public static final int ASSIGNED_HARVESTERS_FIELD_NUMBER = 28; private int assignedHarvesters_; /** * optional int32 assigned_harvesters = 28; * @return Whether the assignedHarvesters field is set. */ @java.lang.Override public boolean hasAssignedHarvesters() { return ((bitField1_ & 0x00000004) != 0); } /** * optional int32 assigned_harvesters = 28; * @return The assignedHarvesters. */ @java.lang.Override public int getAssignedHarvesters() { return assignedHarvesters_; } public static final int IDEAL_HARVESTERS_FIELD_NUMBER = 29; private int idealHarvesters_; /** * optional int32 ideal_harvesters = 29; * @return Whether the idealHarvesters field is set. */ @java.lang.Override public boolean hasIdealHarvesters() { return ((bitField1_ & 0x00000008) != 0); } /** * optional int32 ideal_harvesters = 29; * @return The idealHarvesters. */ @java.lang.Override public int getIdealHarvesters() { return idealHarvesters_; } public static final int WEAPON_COOLDOWN_FIELD_NUMBER = 30; private float weaponCooldown_; /** * optional float weapon_cooldown = 30; * @return Whether the weaponCooldown field is set. */ @java.lang.Override public boolean hasWeaponCooldown() { return ((bitField1_ & 0x00000010) != 0); } /** * optional float weapon_cooldown = 30; * @return The weaponCooldown. */ @java.lang.Override public float getWeaponCooldown() { return weaponCooldown_; } public static final int ENGAGED_TARGET_TAG_FIELD_NUMBER = 34; private long engagedTargetTag_; /** * optional uint64 engaged_target_tag = 34; * @return Whether the engagedTargetTag field is set. */ @java.lang.Override public boolean hasEngagedTargetTag() { return ((bitField1_ & 0x00000020) != 0); } /** * optional uint64 engaged_target_tag = 34; * @return The engagedTargetTag. */ @java.lang.Override public long getEngagedTargetTag() { return engagedTargetTag_; } public static final int BUFF_DURATION_REMAIN_FIELD_NUMBER = 43; private int buffDurationRemain_; /** *
     * How long a buff or unit is still around (eg mule, broodling, chronoboost).
     * 
* * optional int32 buff_duration_remain = 43; * @return Whether the buffDurationRemain field is set. */ @java.lang.Override public boolean hasBuffDurationRemain() { return ((bitField1_ & 0x00000040) != 0); } /** *
     * How long a buff or unit is still around (eg mule, broodling, chronoboost).
     * 
* * optional int32 buff_duration_remain = 43; * @return The buffDurationRemain. */ @java.lang.Override public int getBuffDurationRemain() { return buffDurationRemain_; } public static final int BUFF_DURATION_MAX_FIELD_NUMBER = 44; private int buffDurationMax_; /** *
     * How long the buff or unit is still around (eg mule, broodling, chronoboost).
     * 
* * optional int32 buff_duration_max = 44; * @return Whether the buffDurationMax field is set. */ @java.lang.Override public boolean hasBuffDurationMax() { return ((bitField1_ & 0x00000080) != 0); } /** *
     * How long the buff or unit is still around (eg mule, broodling, chronoboost).
     * 
* * optional int32 buff_duration_max = 44; * @return The buffDurationMax. */ @java.lang.Override public int getBuffDurationMax() { return buffDurationMax_; } public static final int RALLY_TARGETS_FIELD_NUMBER = 45; private java.util.List rallyTargets_; /** * repeated .SC2APIProtocol.RallyTarget rally_targets = 45; */ @java.lang.Override public java.util.List getRallyTargetsList() { return rallyTargets_; } /** * repeated .SC2APIProtocol.RallyTarget rally_targets = 45; */ @java.lang.Override public java.util.List getRallyTargetsOrBuilderList() { return rallyTargets_; } /** * repeated .SC2APIProtocol.RallyTarget rally_targets = 45; */ @java.lang.Override public int getRallyTargetsCount() { return rallyTargets_.size(); } /** * repeated .SC2APIProtocol.RallyTarget rally_targets = 45; */ @java.lang.Override public SC2APIProtocol.Raw.RallyTarget getRallyTargets(int index) { return rallyTargets_.get(index); } /** * repeated .SC2APIProtocol.RallyTarget rally_targets = 45; */ @java.lang.Override public SC2APIProtocol.Raw.RallyTargetOrBuilder getRallyTargetsOrBuilder( int index) { return rallyTargets_.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.writeEnum(1, displayType_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeEnum(2, alliance_); } if (((bitField0_ & 0x00000004) != 0)) { output.writeUInt64(3, tag_); } if (((bitField0_ & 0x00000008) != 0)) { output.writeUInt32(4, unitType_); } if (((bitField0_ & 0x00000010) != 0)) { output.writeInt32(5, owner_); } if (((bitField0_ & 0x00000020) != 0)) { output.writeMessage(6, getPos()); } if (((bitField0_ & 0x00000040) != 0)) { output.writeFloat(7, facing_); } if (((bitField0_ & 0x00000080) != 0)) { output.writeFloat(8, radius_); } if (((bitField0_ & 0x00000100) != 0)) { output.writeFloat(9, buildProgress_); } if (((bitField0_ & 0x00000200) != 0)) { output.writeEnum(10, cloak_); } if (((bitField0_ & 0x00001000) != 0)) { output.writeBool(11, isSelected_); } if (((bitField0_ & 0x00002000) != 0)) { output.writeBool(12, isOnScreen_); } if (((bitField0_ & 0x00004000) != 0)) { output.writeBool(13, isBlip_); } if (((bitField0_ & 0x00100000) != 0)) { output.writeFloat(14, health_); } if (((bitField0_ & 0x00200000) != 0)) { output.writeFloat(15, healthMax_); } if (((bitField0_ & 0x00400000) != 0)) { output.writeFloat(16, shield_); } if (((bitField0_ & 0x01000000) != 0)) { output.writeFloat(17, energy_); } if (((bitField0_ & 0x04000000) != 0)) { output.writeInt32(18, mineralContents_); } if (((bitField0_ & 0x08000000) != 0)) { output.writeInt32(19, vespeneContents_); } if (((bitField0_ & 0x10000000) != 0)) { output.writeBool(20, isFlying_); } if (((bitField0_ & 0x20000000) != 0)) { output.writeBool(21, isBurrowed_); } for (int i = 0; i < orders_.size(); i++) { output.writeMessage(22, orders_.get(i)); } if (((bitField0_ & 0x80000000) != 0)) { output.writeUInt64(23, addOnTag_); } for (int i = 0; i < passengers_.size(); i++) { output.writeMessage(24, passengers_.get(i)); } if (((bitField1_ & 0x00000001) != 0)) { output.writeInt32(25, cargoSpaceTaken_); } if (((bitField1_ & 0x00000002) != 0)) { output.writeInt32(26, cargoSpaceMax_); } for (int i = 0; i < buffIds_.size(); i++) { output.writeUInt32(27, buffIds_.getInt(i)); } if (((bitField1_ & 0x00000004) != 0)) { output.writeInt32(28, assignedHarvesters_); } if (((bitField1_ & 0x00000008) != 0)) { output.writeInt32(29, idealHarvesters_); } if (((bitField1_ & 0x00000010) != 0)) { output.writeFloat(30, weaponCooldown_); } if (((bitField0_ & 0x00000400) != 0)) { output.writeFloat(31, detectRange_); } if (((bitField0_ & 0x00000800) != 0)) { output.writeFloat(32, radarRange_); } if (((bitField1_ & 0x00000020) != 0)) { output.writeUInt64(34, engagedTargetTag_); } if (((bitField0_ & 0x00008000) != 0)) { output.writeBool(35, isPowered_); } if (((bitField0_ & 0x00800000) != 0)) { output.writeFloat(36, shieldMax_); } if (((bitField0_ & 0x02000000) != 0)) { output.writeFloat(37, energyMax_); } if (((bitField0_ & 0x40000000) != 0)) { output.writeBool(38, isHallucination_); } if (((bitField0_ & 0x00010000) != 0)) { output.writeBool(39, isActive_); } if (((bitField0_ & 0x00020000) != 0)) { output.writeInt32(40, attackUpgradeLevel_); } if (((bitField0_ & 0x00040000) != 0)) { output.writeInt32(41, armorUpgradeLevel_); } if (((bitField0_ & 0x00080000) != 0)) { output.writeInt32(42, shieldUpgradeLevel_); } if (((bitField1_ & 0x00000040) != 0)) { output.writeInt32(43, buffDurationRemain_); } if (((bitField1_ & 0x00000080) != 0)) { output.writeInt32(44, buffDurationMax_); } for (int i = 0; i < rallyTargets_.size(); i++) { output.writeMessage(45, rallyTargets_.get(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(1, displayType_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(2, alliance_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(3, tag_); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(4, unitType_); } if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(5, owner_); } if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getPos()); } if (((bitField0_ & 0x00000040) != 0)) { size += com.google.protobuf.CodedOutputStream .computeFloatSize(7, facing_); } if (((bitField0_ & 0x00000080) != 0)) { size += com.google.protobuf.CodedOutputStream .computeFloatSize(8, radius_); } if (((bitField0_ & 0x00000100) != 0)) { size += com.google.protobuf.CodedOutputStream .computeFloatSize(9, buildProgress_); } if (((bitField0_ & 0x00000200) != 0)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(10, cloak_); } if (((bitField0_ & 0x00001000) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(11, isSelected_); } if (((bitField0_ & 0x00002000) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(12, isOnScreen_); } if (((bitField0_ & 0x00004000) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(13, isBlip_); } if (((bitField0_ & 0x00100000) != 0)) { size += com.google.protobuf.CodedOutputStream .computeFloatSize(14, health_); } if (((bitField0_ & 0x00200000) != 0)) { size += com.google.protobuf.CodedOutputStream .computeFloatSize(15, healthMax_); } if (((bitField0_ & 0x00400000) != 0)) { size += com.google.protobuf.CodedOutputStream .computeFloatSize(16, shield_); } if (((bitField0_ & 0x01000000) != 0)) { size += com.google.protobuf.CodedOutputStream .computeFloatSize(17, energy_); } if (((bitField0_ & 0x04000000) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(18, mineralContents_); } if (((bitField0_ & 0x08000000) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(19, vespeneContents_); } if (((bitField0_ & 0x10000000) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(20, isFlying_); } if (((bitField0_ & 0x20000000) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(21, isBurrowed_); } for (int i = 0; i < orders_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(22, orders_.get(i)); } if (((bitField0_ & 0x80000000) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(23, addOnTag_); } for (int i = 0; i < passengers_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(24, passengers_.get(i)); } if (((bitField1_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(25, cargoSpaceTaken_); } if (((bitField1_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(26, cargoSpaceMax_); } { int dataSize = 0; for (int i = 0; i < buffIds_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeUInt32SizeNoTag(buffIds_.getInt(i)); } size += dataSize; size += 2 * getBuffIdsList().size(); } if (((bitField1_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(28, assignedHarvesters_); } if (((bitField1_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(29, idealHarvesters_); } if (((bitField1_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream .computeFloatSize(30, weaponCooldown_); } if (((bitField0_ & 0x00000400) != 0)) { size += com.google.protobuf.CodedOutputStream .computeFloatSize(31, detectRange_); } if (((bitField0_ & 0x00000800) != 0)) { size += com.google.protobuf.CodedOutputStream .computeFloatSize(32, radarRange_); } if (((bitField1_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(34, engagedTargetTag_); } if (((bitField0_ & 0x00008000) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(35, isPowered_); } if (((bitField0_ & 0x00800000) != 0)) { size += com.google.protobuf.CodedOutputStream .computeFloatSize(36, shieldMax_); } if (((bitField0_ & 0x02000000) != 0)) { size += com.google.protobuf.CodedOutputStream .computeFloatSize(37, energyMax_); } if (((bitField0_ & 0x40000000) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(38, isHallucination_); } if (((bitField0_ & 0x00010000) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(39, isActive_); } if (((bitField0_ & 0x00020000) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(40, attackUpgradeLevel_); } if (((bitField0_ & 0x00040000) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(41, armorUpgradeLevel_); } if (((bitField0_ & 0x00080000) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(42, shieldUpgradeLevel_); } if (((bitField1_ & 0x00000040) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(43, buffDurationRemain_); } if (((bitField1_ & 0x00000080) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(44, buffDurationMax_); } for (int i = 0; i < rallyTargets_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(45, rallyTargets_.get(i)); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof SC2APIProtocol.Raw.Unit)) { return super.equals(obj); } SC2APIProtocol.Raw.Unit other = (SC2APIProtocol.Raw.Unit) obj; if (hasDisplayType() != other.hasDisplayType()) return false; if (hasDisplayType()) { if (displayType_ != other.displayType_) return false; } if (hasAlliance() != other.hasAlliance()) return false; if (hasAlliance()) { if (alliance_ != other.alliance_) return false; } if (hasTag() != other.hasTag()) return false; if (hasTag()) { if (getTag() != other.getTag()) return false; } if (hasUnitType() != other.hasUnitType()) return false; if (hasUnitType()) { if (getUnitType() != other.getUnitType()) return false; } if (hasOwner() != other.hasOwner()) return false; if (hasOwner()) { if (getOwner() != other.getOwner()) return false; } if (hasPos() != other.hasPos()) return false; if (hasPos()) { if (!getPos() .equals(other.getPos())) return false; } if (hasFacing() != other.hasFacing()) return false; if (hasFacing()) { if (java.lang.Float.floatToIntBits(getFacing()) != java.lang.Float.floatToIntBits( other.getFacing())) 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 (hasBuildProgress() != other.hasBuildProgress()) return false; if (hasBuildProgress()) { if (java.lang.Float.floatToIntBits(getBuildProgress()) != java.lang.Float.floatToIntBits( other.getBuildProgress())) return false; } if (hasCloak() != other.hasCloak()) return false; if (hasCloak()) { if (cloak_ != other.cloak_) return false; } if (!getBuffIdsList() .equals(other.getBuffIdsList())) return false; if (hasDetectRange() != other.hasDetectRange()) return false; if (hasDetectRange()) { if (java.lang.Float.floatToIntBits(getDetectRange()) != java.lang.Float.floatToIntBits( other.getDetectRange())) return false; } if (hasRadarRange() != other.hasRadarRange()) return false; if (hasRadarRange()) { if (java.lang.Float.floatToIntBits(getRadarRange()) != java.lang.Float.floatToIntBits( other.getRadarRange())) return false; } if (hasIsSelected() != other.hasIsSelected()) return false; if (hasIsSelected()) { if (getIsSelected() != other.getIsSelected()) return false; } if (hasIsOnScreen() != other.hasIsOnScreen()) return false; if (hasIsOnScreen()) { if (getIsOnScreen() != other.getIsOnScreen()) return false; } if (hasIsBlip() != other.hasIsBlip()) return false; if (hasIsBlip()) { if (getIsBlip() != other.getIsBlip()) return false; } if (hasIsPowered() != other.hasIsPowered()) return false; if (hasIsPowered()) { if (getIsPowered() != other.getIsPowered()) return false; } if (hasIsActive() != other.hasIsActive()) return false; if (hasIsActive()) { if (getIsActive() != other.getIsActive()) return false; } if (hasAttackUpgradeLevel() != other.hasAttackUpgradeLevel()) return false; if (hasAttackUpgradeLevel()) { if (getAttackUpgradeLevel() != other.getAttackUpgradeLevel()) return false; } if (hasArmorUpgradeLevel() != other.hasArmorUpgradeLevel()) return false; if (hasArmorUpgradeLevel()) { if (getArmorUpgradeLevel() != other.getArmorUpgradeLevel()) return false; } if (hasShieldUpgradeLevel() != other.hasShieldUpgradeLevel()) return false; if (hasShieldUpgradeLevel()) { if (getShieldUpgradeLevel() != other.getShieldUpgradeLevel()) return false; } if (hasHealth() != other.hasHealth()) return false; if (hasHealth()) { if (java.lang.Float.floatToIntBits(getHealth()) != java.lang.Float.floatToIntBits( other.getHealth())) return false; } if (hasHealthMax() != other.hasHealthMax()) return false; if (hasHealthMax()) { if (java.lang.Float.floatToIntBits(getHealthMax()) != java.lang.Float.floatToIntBits( other.getHealthMax())) return false; } if (hasShield() != other.hasShield()) return false; if (hasShield()) { if (java.lang.Float.floatToIntBits(getShield()) != java.lang.Float.floatToIntBits( other.getShield())) return false; } if (hasShieldMax() != other.hasShieldMax()) return false; if (hasShieldMax()) { if (java.lang.Float.floatToIntBits(getShieldMax()) != java.lang.Float.floatToIntBits( other.getShieldMax())) return false; } if (hasEnergy() != other.hasEnergy()) return false; if (hasEnergy()) { if (java.lang.Float.floatToIntBits(getEnergy()) != java.lang.Float.floatToIntBits( other.getEnergy())) return false; } if (hasEnergyMax() != other.hasEnergyMax()) return false; if (hasEnergyMax()) { if (java.lang.Float.floatToIntBits(getEnergyMax()) != java.lang.Float.floatToIntBits( other.getEnergyMax())) return false; } if (hasMineralContents() != other.hasMineralContents()) return false; if (hasMineralContents()) { if (getMineralContents() != other.getMineralContents()) return false; } if (hasVespeneContents() != other.hasVespeneContents()) return false; if (hasVespeneContents()) { if (getVespeneContents() != other.getVespeneContents()) return false; } if (hasIsFlying() != other.hasIsFlying()) return false; if (hasIsFlying()) { if (getIsFlying() != other.getIsFlying()) return false; } if (hasIsBurrowed() != other.hasIsBurrowed()) return false; if (hasIsBurrowed()) { if (getIsBurrowed() != other.getIsBurrowed()) return false; } if (hasIsHallucination() != other.hasIsHallucination()) return false; if (hasIsHallucination()) { if (getIsHallucination() != other.getIsHallucination()) return false; } if (!getOrdersList() .equals(other.getOrdersList())) return false; if (hasAddOnTag() != other.hasAddOnTag()) return false; if (hasAddOnTag()) { if (getAddOnTag() != other.getAddOnTag()) return false; } if (!getPassengersList() .equals(other.getPassengersList())) return false; if (hasCargoSpaceTaken() != other.hasCargoSpaceTaken()) return false; if (hasCargoSpaceTaken()) { if (getCargoSpaceTaken() != other.getCargoSpaceTaken()) return false; } if (hasCargoSpaceMax() != other.hasCargoSpaceMax()) return false; if (hasCargoSpaceMax()) { if (getCargoSpaceMax() != other.getCargoSpaceMax()) return false; } if (hasAssignedHarvesters() != other.hasAssignedHarvesters()) return false; if (hasAssignedHarvesters()) { if (getAssignedHarvesters() != other.getAssignedHarvesters()) return false; } if (hasIdealHarvesters() != other.hasIdealHarvesters()) return false; if (hasIdealHarvesters()) { if (getIdealHarvesters() != other.getIdealHarvesters()) return false; } if (hasWeaponCooldown() != other.hasWeaponCooldown()) return false; if (hasWeaponCooldown()) { if (java.lang.Float.floatToIntBits(getWeaponCooldown()) != java.lang.Float.floatToIntBits( other.getWeaponCooldown())) return false; } if (hasEngagedTargetTag() != other.hasEngagedTargetTag()) return false; if (hasEngagedTargetTag()) { if (getEngagedTargetTag() != other.getEngagedTargetTag()) return false; } if (hasBuffDurationRemain() != other.hasBuffDurationRemain()) return false; if (hasBuffDurationRemain()) { if (getBuffDurationRemain() != other.getBuffDurationRemain()) return false; } if (hasBuffDurationMax() != other.hasBuffDurationMax()) return false; if (hasBuffDurationMax()) { if (getBuffDurationMax() != other.getBuffDurationMax()) return false; } if (!getRallyTargetsList() .equals(other.getRallyTargetsList())) 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 (hasDisplayType()) { hash = (37 * hash) + DISPLAY_TYPE_FIELD_NUMBER; hash = (53 * hash) + displayType_; } if (hasAlliance()) { hash = (37 * hash) + ALLIANCE_FIELD_NUMBER; hash = (53 * hash) + alliance_; } if (hasTag()) { hash = (37 * hash) + TAG_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTag()); } if (hasUnitType()) { hash = (37 * hash) + UNIT_TYPE_FIELD_NUMBER; hash = (53 * hash) + getUnitType(); } if (hasOwner()) { hash = (37 * hash) + OWNER_FIELD_NUMBER; hash = (53 * hash) + getOwner(); } if (hasPos()) { hash = (37 * hash) + POS_FIELD_NUMBER; hash = (53 * hash) + getPos().hashCode(); } if (hasFacing()) { hash = (37 * hash) + FACING_FIELD_NUMBER; hash = (53 * hash) + java.lang.Float.floatToIntBits( getFacing()); } if (hasRadius()) { hash = (37 * hash) + RADIUS_FIELD_NUMBER; hash = (53 * hash) + java.lang.Float.floatToIntBits( getRadius()); } if (hasBuildProgress()) { hash = (37 * hash) + BUILD_PROGRESS_FIELD_NUMBER; hash = (53 * hash) + java.lang.Float.floatToIntBits( getBuildProgress()); } if (hasCloak()) { hash = (37 * hash) + CLOAK_FIELD_NUMBER; hash = (53 * hash) + cloak_; } if (getBuffIdsCount() > 0) { hash = (37 * hash) + BUFF_IDS_FIELD_NUMBER; hash = (53 * hash) + getBuffIdsList().hashCode(); } if (hasDetectRange()) { hash = (37 * hash) + DETECT_RANGE_FIELD_NUMBER; hash = (53 * hash) + java.lang.Float.floatToIntBits( getDetectRange()); } if (hasRadarRange()) { hash = (37 * hash) + RADAR_RANGE_FIELD_NUMBER; hash = (53 * hash) + java.lang.Float.floatToIntBits( getRadarRange()); } if (hasIsSelected()) { hash = (37 * hash) + IS_SELECTED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getIsSelected()); } if (hasIsOnScreen()) { hash = (37 * hash) + IS_ON_SCREEN_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getIsOnScreen()); } if (hasIsBlip()) { hash = (37 * hash) + IS_BLIP_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getIsBlip()); } if (hasIsPowered()) { hash = (37 * hash) + IS_POWERED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getIsPowered()); } if (hasIsActive()) { hash = (37 * hash) + IS_ACTIVE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getIsActive()); } if (hasAttackUpgradeLevel()) { hash = (37 * hash) + ATTACK_UPGRADE_LEVEL_FIELD_NUMBER; hash = (53 * hash) + getAttackUpgradeLevel(); } if (hasArmorUpgradeLevel()) { hash = (37 * hash) + ARMOR_UPGRADE_LEVEL_FIELD_NUMBER; hash = (53 * hash) + getArmorUpgradeLevel(); } if (hasShieldUpgradeLevel()) { hash = (37 * hash) + SHIELD_UPGRADE_LEVEL_FIELD_NUMBER; hash = (53 * hash) + getShieldUpgradeLevel(); } if (hasHealth()) { hash = (37 * hash) + HEALTH_FIELD_NUMBER; hash = (53 * hash) + java.lang.Float.floatToIntBits( getHealth()); } if (hasHealthMax()) { hash = (37 * hash) + HEALTH_MAX_FIELD_NUMBER; hash = (53 * hash) + java.lang.Float.floatToIntBits( getHealthMax()); } if (hasShield()) { hash = (37 * hash) + SHIELD_FIELD_NUMBER; hash = (53 * hash) + java.lang.Float.floatToIntBits( getShield()); } if (hasShieldMax()) { hash = (37 * hash) + SHIELD_MAX_FIELD_NUMBER; hash = (53 * hash) + java.lang.Float.floatToIntBits( getShieldMax()); } if (hasEnergy()) { hash = (37 * hash) + ENERGY_FIELD_NUMBER; hash = (53 * hash) + java.lang.Float.floatToIntBits( getEnergy()); } if (hasEnergyMax()) { hash = (37 * hash) + ENERGY_MAX_FIELD_NUMBER; hash = (53 * hash) + java.lang.Float.floatToIntBits( getEnergyMax()); } if (hasMineralContents()) { hash = (37 * hash) + MINERAL_CONTENTS_FIELD_NUMBER; hash = (53 * hash) + getMineralContents(); } if (hasVespeneContents()) { hash = (37 * hash) + VESPENE_CONTENTS_FIELD_NUMBER; hash = (53 * hash) + getVespeneContents(); } if (hasIsFlying()) { hash = (37 * hash) + IS_FLYING_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getIsFlying()); } if (hasIsBurrowed()) { hash = (37 * hash) + IS_BURROWED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getIsBurrowed()); } if (hasIsHallucination()) { hash = (37 * hash) + IS_HALLUCINATION_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getIsHallucination()); } if (getOrdersCount() > 0) { hash = (37 * hash) + ORDERS_FIELD_NUMBER; hash = (53 * hash) + getOrdersList().hashCode(); } if (hasAddOnTag()) { hash = (37 * hash) + ADD_ON_TAG_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getAddOnTag()); } if (getPassengersCount() > 0) { hash = (37 * hash) + PASSENGERS_FIELD_NUMBER; hash = (53 * hash) + getPassengersList().hashCode(); } if (hasCargoSpaceTaken()) { hash = (37 * hash) + CARGO_SPACE_TAKEN_FIELD_NUMBER; hash = (53 * hash) + getCargoSpaceTaken(); } if (hasCargoSpaceMax()) { hash = (37 * hash) + CARGO_SPACE_MAX_FIELD_NUMBER; hash = (53 * hash) + getCargoSpaceMax(); } if (hasAssignedHarvesters()) { hash = (37 * hash) + ASSIGNED_HARVESTERS_FIELD_NUMBER; hash = (53 * hash) + getAssignedHarvesters(); } if (hasIdealHarvesters()) { hash = (37 * hash) + IDEAL_HARVESTERS_FIELD_NUMBER; hash = (53 * hash) + getIdealHarvesters(); } if (hasWeaponCooldown()) { hash = (37 * hash) + WEAPON_COOLDOWN_FIELD_NUMBER; hash = (53 * hash) + java.lang.Float.floatToIntBits( getWeaponCooldown()); } if (hasEngagedTargetTag()) { hash = (37 * hash) + ENGAGED_TARGET_TAG_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getEngagedTargetTag()); } if (hasBuffDurationRemain()) { hash = (37 * hash) + BUFF_DURATION_REMAIN_FIELD_NUMBER; hash = (53 * hash) + getBuffDurationRemain(); } if (hasBuffDurationMax()) { hash = (37 * hash) + BUFF_DURATION_MAX_FIELD_NUMBER; hash = (53 * hash) + getBuffDurationMax(); } if (getRallyTargetsCount() > 0) { hash = (37 * hash) + RALLY_TARGETS_FIELD_NUMBER; hash = (53 * hash) + getRallyTargetsList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static SC2APIProtocol.Raw.Unit parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Raw.Unit parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Raw.Unit parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Raw.Unit parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Raw.Unit parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Raw.Unit parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Raw.Unit parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Raw.Unit 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.Raw.Unit parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static SC2APIProtocol.Raw.Unit 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.Raw.Unit parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Raw.Unit 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.Raw.Unit 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.Unit} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:SC2APIProtocol.Unit) SC2APIProtocol.Raw.UnitOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Raw.internal_static_SC2APIProtocol_Unit_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Raw.internal_static_SC2APIProtocol_Unit_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Raw.Unit.class, SC2APIProtocol.Raw.Unit.Builder.class); } // Construct using SC2APIProtocol.Raw.Unit.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getPosFieldBuilder(); getOrdersFieldBuilder(); getPassengersFieldBuilder(); getRallyTargetsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); displayType_ = 1; bitField0_ = (bitField0_ & ~0x00000001); alliance_ = 1; bitField0_ = (bitField0_ & ~0x00000002); tag_ = 0L; bitField0_ = (bitField0_ & ~0x00000004); unitType_ = 0; bitField0_ = (bitField0_ & ~0x00000008); owner_ = 0; bitField0_ = (bitField0_ & ~0x00000010); if (posBuilder_ == null) { pos_ = null; } else { posBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000020); facing_ = 0F; bitField0_ = (bitField0_ & ~0x00000040); radius_ = 0F; bitField0_ = (bitField0_ & ~0x00000080); buildProgress_ = 0F; bitField0_ = (bitField0_ & ~0x00000100); cloak_ = 0; bitField0_ = (bitField0_ & ~0x00000200); buffIds_ = emptyIntList(); bitField0_ = (bitField0_ & ~0x00000400); detectRange_ = 0F; bitField0_ = (bitField0_ & ~0x00000800); radarRange_ = 0F; bitField0_ = (bitField0_ & ~0x00001000); isSelected_ = false; bitField0_ = (bitField0_ & ~0x00002000); isOnScreen_ = false; bitField0_ = (bitField0_ & ~0x00004000); isBlip_ = false; bitField0_ = (bitField0_ & ~0x00008000); isPowered_ = false; bitField0_ = (bitField0_ & ~0x00010000); isActive_ = false; bitField0_ = (bitField0_ & ~0x00020000); attackUpgradeLevel_ = 0; bitField0_ = (bitField0_ & ~0x00040000); armorUpgradeLevel_ = 0; bitField0_ = (bitField0_ & ~0x00080000); shieldUpgradeLevel_ = 0; bitField0_ = (bitField0_ & ~0x00100000); health_ = 0F; bitField0_ = (bitField0_ & ~0x00200000); healthMax_ = 0F; bitField0_ = (bitField0_ & ~0x00400000); shield_ = 0F; bitField0_ = (bitField0_ & ~0x00800000); shieldMax_ = 0F; bitField0_ = (bitField0_ & ~0x01000000); energy_ = 0F; bitField0_ = (bitField0_ & ~0x02000000); energyMax_ = 0F; bitField0_ = (bitField0_ & ~0x04000000); mineralContents_ = 0; bitField0_ = (bitField0_ & ~0x08000000); vespeneContents_ = 0; bitField0_ = (bitField0_ & ~0x10000000); isFlying_ = false; bitField0_ = (bitField0_ & ~0x20000000); isBurrowed_ = false; bitField0_ = (bitField0_ & ~0x40000000); isHallucination_ = false; bitField0_ = (bitField0_ & ~0x80000000); if (ordersBuilder_ == null) { orders_ = java.util.Collections.emptyList(); } else { orders_ = null; ordersBuilder_.clear(); } bitField1_ = (bitField1_ & ~0x00000001); addOnTag_ = 0L; bitField1_ = (bitField1_ & ~0x00000002); if (passengersBuilder_ == null) { passengers_ = java.util.Collections.emptyList(); } else { passengers_ = null; passengersBuilder_.clear(); } bitField1_ = (bitField1_ & ~0x00000004); cargoSpaceTaken_ = 0; bitField1_ = (bitField1_ & ~0x00000008); cargoSpaceMax_ = 0; bitField1_ = (bitField1_ & ~0x00000010); assignedHarvesters_ = 0; bitField1_ = (bitField1_ & ~0x00000020); idealHarvesters_ = 0; bitField1_ = (bitField1_ & ~0x00000040); weaponCooldown_ = 0F; bitField1_ = (bitField1_ & ~0x00000080); engagedTargetTag_ = 0L; bitField1_ = (bitField1_ & ~0x00000100); buffDurationRemain_ = 0; bitField1_ = (bitField1_ & ~0x00000200); buffDurationMax_ = 0; bitField1_ = (bitField1_ & ~0x00000400); if (rallyTargetsBuilder_ == null) { rallyTargets_ = java.util.Collections.emptyList(); } else { rallyTargets_ = null; rallyTargetsBuilder_.clear(); } bitField1_ = (bitField1_ & ~0x00000800); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return SC2APIProtocol.Raw.internal_static_SC2APIProtocol_Unit_descriptor; } @java.lang.Override public SC2APIProtocol.Raw.Unit getDefaultInstanceForType() { return SC2APIProtocol.Raw.Unit.getDefaultInstance(); } @java.lang.Override public SC2APIProtocol.Raw.Unit build() { SC2APIProtocol.Raw.Unit result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public SC2APIProtocol.Raw.Unit buildPartial() { SC2APIProtocol.Raw.Unit result = new SC2APIProtocol.Raw.Unit(this); int from_bitField0_ = bitField0_; int from_bitField1_ = bitField1_; int to_bitField0_ = 0; int to_bitField1_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { to_bitField0_ |= 0x00000001; } result.displayType_ = displayType_; if (((from_bitField0_ & 0x00000002) != 0)) { to_bitField0_ |= 0x00000002; } result.alliance_ = alliance_; if (((from_bitField0_ & 0x00000004) != 0)) { result.tag_ = tag_; to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000008) != 0)) { result.unitType_ = unitType_; to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000010) != 0)) { result.owner_ = owner_; to_bitField0_ |= 0x00000010; } if (((from_bitField0_ & 0x00000020) != 0)) { if (posBuilder_ == null) { result.pos_ = pos_; } else { result.pos_ = posBuilder_.build(); } to_bitField0_ |= 0x00000020; } if (((from_bitField0_ & 0x00000040) != 0)) { result.facing_ = facing_; to_bitField0_ |= 0x00000040; } if (((from_bitField0_ & 0x00000080) != 0)) { result.radius_ = radius_; to_bitField0_ |= 0x00000080; } if (((from_bitField0_ & 0x00000100) != 0)) { result.buildProgress_ = buildProgress_; to_bitField0_ |= 0x00000100; } if (((from_bitField0_ & 0x00000200) != 0)) { to_bitField0_ |= 0x00000200; } result.cloak_ = cloak_; if (((bitField0_ & 0x00000400) != 0)) { buffIds_.makeImmutable(); bitField0_ = (bitField0_ & ~0x00000400); } result.buffIds_ = buffIds_; if (((from_bitField0_ & 0x00000800) != 0)) { result.detectRange_ = detectRange_; to_bitField0_ |= 0x00000400; } if (((from_bitField0_ & 0x00001000) != 0)) { result.radarRange_ = radarRange_; to_bitField0_ |= 0x00000800; } if (((from_bitField0_ & 0x00002000) != 0)) { result.isSelected_ = isSelected_; to_bitField0_ |= 0x00001000; } if (((from_bitField0_ & 0x00004000) != 0)) { result.isOnScreen_ = isOnScreen_; to_bitField0_ |= 0x00002000; } if (((from_bitField0_ & 0x00008000) != 0)) { result.isBlip_ = isBlip_; to_bitField0_ |= 0x00004000; } if (((from_bitField0_ & 0x00010000) != 0)) { result.isPowered_ = isPowered_; to_bitField0_ |= 0x00008000; } if (((from_bitField0_ & 0x00020000) != 0)) { result.isActive_ = isActive_; to_bitField0_ |= 0x00010000; } if (((from_bitField0_ & 0x00040000) != 0)) { result.attackUpgradeLevel_ = attackUpgradeLevel_; to_bitField0_ |= 0x00020000; } if (((from_bitField0_ & 0x00080000) != 0)) { result.armorUpgradeLevel_ = armorUpgradeLevel_; to_bitField0_ |= 0x00040000; } if (((from_bitField0_ & 0x00100000) != 0)) { result.shieldUpgradeLevel_ = shieldUpgradeLevel_; to_bitField0_ |= 0x00080000; } if (((from_bitField0_ & 0x00200000) != 0)) { result.health_ = health_; to_bitField0_ |= 0x00100000; } if (((from_bitField0_ & 0x00400000) != 0)) { result.healthMax_ = healthMax_; to_bitField0_ |= 0x00200000; } if (((from_bitField0_ & 0x00800000) != 0)) { result.shield_ = shield_; to_bitField0_ |= 0x00400000; } if (((from_bitField0_ & 0x01000000) != 0)) { result.shieldMax_ = shieldMax_; to_bitField0_ |= 0x00800000; } if (((from_bitField0_ & 0x02000000) != 0)) { result.energy_ = energy_; to_bitField0_ |= 0x01000000; } if (((from_bitField0_ & 0x04000000) != 0)) { result.energyMax_ = energyMax_; to_bitField0_ |= 0x02000000; } if (((from_bitField0_ & 0x08000000) != 0)) { result.mineralContents_ = mineralContents_; to_bitField0_ |= 0x04000000; } if (((from_bitField0_ & 0x10000000) != 0)) { result.vespeneContents_ = vespeneContents_; to_bitField0_ |= 0x08000000; } if (((from_bitField0_ & 0x20000000) != 0)) { result.isFlying_ = isFlying_; to_bitField0_ |= 0x10000000; } if (((from_bitField0_ & 0x40000000) != 0)) { result.isBurrowed_ = isBurrowed_; to_bitField0_ |= 0x20000000; } if (((from_bitField0_ & 0x80000000) != 0)) { result.isHallucination_ = isHallucination_; to_bitField0_ |= 0x40000000; } if (ordersBuilder_ == null) { if (((bitField1_ & 0x00000001) != 0)) { orders_ = java.util.Collections.unmodifiableList(orders_); bitField1_ = (bitField1_ & ~0x00000001); } result.orders_ = orders_; } else { result.orders_ = ordersBuilder_.build(); } if (((from_bitField1_ & 0x00000002) != 0)) { result.addOnTag_ = addOnTag_; to_bitField0_ |= 0x80000000; } if (passengersBuilder_ == null) { if (((bitField1_ & 0x00000004) != 0)) { passengers_ = java.util.Collections.unmodifiableList(passengers_); bitField1_ = (bitField1_ & ~0x00000004); } result.passengers_ = passengers_; } else { result.passengers_ = passengersBuilder_.build(); } if (((from_bitField1_ & 0x00000008) != 0)) { result.cargoSpaceTaken_ = cargoSpaceTaken_; to_bitField1_ |= 0x00000001; } if (((from_bitField1_ & 0x00000010) != 0)) { result.cargoSpaceMax_ = cargoSpaceMax_; to_bitField1_ |= 0x00000002; } if (((from_bitField1_ & 0x00000020) != 0)) { result.assignedHarvesters_ = assignedHarvesters_; to_bitField1_ |= 0x00000004; } if (((from_bitField1_ & 0x00000040) != 0)) { result.idealHarvesters_ = idealHarvesters_; to_bitField1_ |= 0x00000008; } if (((from_bitField1_ & 0x00000080) != 0)) { result.weaponCooldown_ = weaponCooldown_; to_bitField1_ |= 0x00000010; } if (((from_bitField1_ & 0x00000100) != 0)) { result.engagedTargetTag_ = engagedTargetTag_; to_bitField1_ |= 0x00000020; } if (((from_bitField1_ & 0x00000200) != 0)) { result.buffDurationRemain_ = buffDurationRemain_; to_bitField1_ |= 0x00000040; } if (((from_bitField1_ & 0x00000400) != 0)) { result.buffDurationMax_ = buffDurationMax_; to_bitField1_ |= 0x00000080; } if (rallyTargetsBuilder_ == null) { if (((bitField1_ & 0x00000800) != 0)) { rallyTargets_ = java.util.Collections.unmodifiableList(rallyTargets_); bitField1_ = (bitField1_ & ~0x00000800); } result.rallyTargets_ = rallyTargets_; } else { result.rallyTargets_ = rallyTargetsBuilder_.build(); } result.bitField0_ = to_bitField0_; result.bitField1_ = to_bitField1_; 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.Raw.Unit) { return mergeFrom((SC2APIProtocol.Raw.Unit)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(SC2APIProtocol.Raw.Unit other) { if (other == SC2APIProtocol.Raw.Unit.getDefaultInstance()) return this; if (other.hasDisplayType()) { setDisplayType(other.getDisplayType()); } if (other.hasAlliance()) { setAlliance(other.getAlliance()); } if (other.hasTag()) { setTag(other.getTag()); } if (other.hasUnitType()) { setUnitType(other.getUnitType()); } if (other.hasOwner()) { setOwner(other.getOwner()); } if (other.hasPos()) { mergePos(other.getPos()); } if (other.hasFacing()) { setFacing(other.getFacing()); } if (other.hasRadius()) { setRadius(other.getRadius()); } if (other.hasBuildProgress()) { setBuildProgress(other.getBuildProgress()); } if (other.hasCloak()) { setCloak(other.getCloak()); } if (!other.buffIds_.isEmpty()) { if (buffIds_.isEmpty()) { buffIds_ = other.buffIds_; bitField0_ = (bitField0_ & ~0x00000400); } else { ensureBuffIdsIsMutable(); buffIds_.addAll(other.buffIds_); } onChanged(); } if (other.hasDetectRange()) { setDetectRange(other.getDetectRange()); } if (other.hasRadarRange()) { setRadarRange(other.getRadarRange()); } if (other.hasIsSelected()) { setIsSelected(other.getIsSelected()); } if (other.hasIsOnScreen()) { setIsOnScreen(other.getIsOnScreen()); } if (other.hasIsBlip()) { setIsBlip(other.getIsBlip()); } if (other.hasIsPowered()) { setIsPowered(other.getIsPowered()); } if (other.hasIsActive()) { setIsActive(other.getIsActive()); } if (other.hasAttackUpgradeLevel()) { setAttackUpgradeLevel(other.getAttackUpgradeLevel()); } if (other.hasArmorUpgradeLevel()) { setArmorUpgradeLevel(other.getArmorUpgradeLevel()); } if (other.hasShieldUpgradeLevel()) { setShieldUpgradeLevel(other.getShieldUpgradeLevel()); } if (other.hasHealth()) { setHealth(other.getHealth()); } if (other.hasHealthMax()) { setHealthMax(other.getHealthMax()); } if (other.hasShield()) { setShield(other.getShield()); } if (other.hasShieldMax()) { setShieldMax(other.getShieldMax()); } if (other.hasEnergy()) { setEnergy(other.getEnergy()); } if (other.hasEnergyMax()) { setEnergyMax(other.getEnergyMax()); } if (other.hasMineralContents()) { setMineralContents(other.getMineralContents()); } if (other.hasVespeneContents()) { setVespeneContents(other.getVespeneContents()); } if (other.hasIsFlying()) { setIsFlying(other.getIsFlying()); } if (other.hasIsBurrowed()) { setIsBurrowed(other.getIsBurrowed()); } if (other.hasIsHallucination()) { setIsHallucination(other.getIsHallucination()); } if (ordersBuilder_ == null) { if (!other.orders_.isEmpty()) { if (orders_.isEmpty()) { orders_ = other.orders_; bitField1_ = (bitField1_ & ~0x00000001); } else { ensureOrdersIsMutable(); orders_.addAll(other.orders_); } onChanged(); } } else { if (!other.orders_.isEmpty()) { if (ordersBuilder_.isEmpty()) { ordersBuilder_.dispose(); ordersBuilder_ = null; orders_ = other.orders_; bitField1_ = (bitField1_ & ~0x00000001); ordersBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getOrdersFieldBuilder() : null; } else { ordersBuilder_.addAllMessages(other.orders_); } } } if (other.hasAddOnTag()) { setAddOnTag(other.getAddOnTag()); } if (passengersBuilder_ == null) { if (!other.passengers_.isEmpty()) { if (passengers_.isEmpty()) { passengers_ = other.passengers_; bitField1_ = (bitField1_ & ~0x00000004); } else { ensurePassengersIsMutable(); passengers_.addAll(other.passengers_); } onChanged(); } } else { if (!other.passengers_.isEmpty()) { if (passengersBuilder_.isEmpty()) { passengersBuilder_.dispose(); passengersBuilder_ = null; passengers_ = other.passengers_; bitField1_ = (bitField1_ & ~0x00000004); passengersBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getPassengersFieldBuilder() : null; } else { passengersBuilder_.addAllMessages(other.passengers_); } } } if (other.hasCargoSpaceTaken()) { setCargoSpaceTaken(other.getCargoSpaceTaken()); } if (other.hasCargoSpaceMax()) { setCargoSpaceMax(other.getCargoSpaceMax()); } if (other.hasAssignedHarvesters()) { setAssignedHarvesters(other.getAssignedHarvesters()); } if (other.hasIdealHarvesters()) { setIdealHarvesters(other.getIdealHarvesters()); } if (other.hasWeaponCooldown()) { setWeaponCooldown(other.getWeaponCooldown()); } if (other.hasEngagedTargetTag()) { setEngagedTargetTag(other.getEngagedTargetTag()); } if (other.hasBuffDurationRemain()) { setBuffDurationRemain(other.getBuffDurationRemain()); } if (other.hasBuffDurationMax()) { setBuffDurationMax(other.getBuffDurationMax()); } if (rallyTargetsBuilder_ == null) { if (!other.rallyTargets_.isEmpty()) { if (rallyTargets_.isEmpty()) { rallyTargets_ = other.rallyTargets_; bitField1_ = (bitField1_ & ~0x00000800); } else { ensureRallyTargetsIsMutable(); rallyTargets_.addAll(other.rallyTargets_); } onChanged(); } } else { if (!other.rallyTargets_.isEmpty()) { if (rallyTargetsBuilder_.isEmpty()) { rallyTargetsBuilder_.dispose(); rallyTargetsBuilder_ = null; rallyTargets_ = other.rallyTargets_; bitField1_ = (bitField1_ & ~0x00000800); rallyTargetsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getRallyTargetsFieldBuilder() : null; } else { rallyTargetsBuilder_.addAllMessages(other.rallyTargets_); } } } 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.Raw.DisplayType tmpValue = SC2APIProtocol.Raw.DisplayType.forNumber(tmpRaw); if (tmpValue == null) { mergeUnknownVarintField(1, tmpRaw); } else { displayType_ = tmpRaw; bitField0_ |= 0x00000001; } break; } // case 8 case 16: { int tmpRaw = input.readEnum(); SC2APIProtocol.Raw.Alliance tmpValue = SC2APIProtocol.Raw.Alliance.forNumber(tmpRaw); if (tmpValue == null) { mergeUnknownVarintField(2, tmpRaw); } else { alliance_ = tmpRaw; bitField0_ |= 0x00000002; } break; } // case 16 case 24: { tag_ = input.readUInt64(); bitField0_ |= 0x00000004; break; } // case 24 case 32: { unitType_ = input.readUInt32(); bitField0_ |= 0x00000008; break; } // case 32 case 40: { owner_ = input.readInt32(); bitField0_ |= 0x00000010; break; } // case 40 case 50: { input.readMessage( getPosFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000020; break; } // case 50 case 61: { facing_ = input.readFloat(); bitField0_ |= 0x00000040; break; } // case 61 case 69: { radius_ = input.readFloat(); bitField0_ |= 0x00000080; break; } // case 69 case 77: { buildProgress_ = input.readFloat(); bitField0_ |= 0x00000100; break; } // case 77 case 80: { int tmpRaw = input.readEnum(); SC2APIProtocol.Raw.CloakState tmpValue = SC2APIProtocol.Raw.CloakState.forNumber(tmpRaw); if (tmpValue == null) { mergeUnknownVarintField(10, tmpRaw); } else { cloak_ = tmpRaw; bitField0_ |= 0x00000200; } break; } // case 80 case 88: { isSelected_ = input.readBool(); bitField0_ |= 0x00002000; break; } // case 88 case 96: { isOnScreen_ = input.readBool(); bitField0_ |= 0x00004000; break; } // case 96 case 104: { isBlip_ = input.readBool(); bitField0_ |= 0x00008000; break; } // case 104 case 117: { health_ = input.readFloat(); bitField0_ |= 0x00200000; break; } // case 117 case 125: { healthMax_ = input.readFloat(); bitField0_ |= 0x00400000; break; } // case 125 case 133: { shield_ = input.readFloat(); bitField0_ |= 0x00800000; break; } // case 133 case 141: { energy_ = input.readFloat(); bitField0_ |= 0x02000000; break; } // case 141 case 144: { mineralContents_ = input.readInt32(); bitField0_ |= 0x08000000; break; } // case 144 case 152: { vespeneContents_ = input.readInt32(); bitField0_ |= 0x10000000; break; } // case 152 case 160: { isFlying_ = input.readBool(); bitField0_ |= 0x20000000; break; } // case 160 case 168: { isBurrowed_ = input.readBool(); bitField0_ |= 0x40000000; break; } // case 168 case 178: { SC2APIProtocol.Raw.UnitOrder m = input.readMessage( SC2APIProtocol.Raw.UnitOrder.PARSER, extensionRegistry); if (ordersBuilder_ == null) { ensureOrdersIsMutable(); orders_.add(m); } else { ordersBuilder_.addMessage(m); } break; } // case 178 case 184: { addOnTag_ = input.readUInt64(); bitField1_ |= 0x00000002; break; } // case 184 case 194: { SC2APIProtocol.Raw.PassengerUnit m = input.readMessage( SC2APIProtocol.Raw.PassengerUnit.PARSER, extensionRegistry); if (passengersBuilder_ == null) { ensurePassengersIsMutable(); passengers_.add(m); } else { passengersBuilder_.addMessage(m); } break; } // case 194 case 200: { cargoSpaceTaken_ = input.readInt32(); bitField1_ |= 0x00000008; break; } // case 200 case 208: { cargoSpaceMax_ = input.readInt32(); bitField1_ |= 0x00000010; break; } // case 208 case 216: { int v = input.readUInt32(); ensureBuffIdsIsMutable(); buffIds_.addInt(v); break; } // case 216 case 218: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); ensureBuffIdsIsMutable(); while (input.getBytesUntilLimit() > 0) { buffIds_.addInt(input.readUInt32()); } input.popLimit(limit); break; } // case 218 case 224: { assignedHarvesters_ = input.readInt32(); bitField1_ |= 0x00000020; break; } // case 224 case 232: { idealHarvesters_ = input.readInt32(); bitField1_ |= 0x00000040; break; } // case 232 case 245: { weaponCooldown_ = input.readFloat(); bitField1_ |= 0x00000080; break; } // case 245 case 253: { detectRange_ = input.readFloat(); bitField0_ |= 0x00000800; break; } // case 253 case 261: { radarRange_ = input.readFloat(); bitField0_ |= 0x00001000; break; } // case 261 case 272: { engagedTargetTag_ = input.readUInt64(); bitField1_ |= 0x00000100; break; } // case 272 case 280: { isPowered_ = input.readBool(); bitField0_ |= 0x00010000; break; } // case 280 case 293: { shieldMax_ = input.readFloat(); bitField0_ |= 0x01000000; break; } // case 293 case 301: { energyMax_ = input.readFloat(); bitField0_ |= 0x04000000; break; } // case 301 case 304: { isHallucination_ = input.readBool(); bitField0_ |= 0x80000000; break; } // case 304 case 312: { isActive_ = input.readBool(); bitField0_ |= 0x00020000; break; } // case 312 case 320: { attackUpgradeLevel_ = input.readInt32(); bitField0_ |= 0x00040000; break; } // case 320 case 328: { armorUpgradeLevel_ = input.readInt32(); bitField0_ |= 0x00080000; break; } // case 328 case 336: { shieldUpgradeLevel_ = input.readInt32(); bitField0_ |= 0x00100000; break; } // case 336 case 344: { buffDurationRemain_ = input.readInt32(); bitField1_ |= 0x00000200; break; } // case 344 case 352: { buffDurationMax_ = input.readInt32(); bitField1_ |= 0x00000400; break; } // case 352 case 362: { SC2APIProtocol.Raw.RallyTarget m = input.readMessage( SC2APIProtocol.Raw.RallyTarget.PARSER, extensionRegistry); if (rallyTargetsBuilder_ == null) { ensureRallyTargetsIsMutable(); rallyTargets_.add(m); } else { rallyTargetsBuilder_.addMessage(m); } break; } // case 362 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 bitField1_; private int displayType_ = 1; /** *
       * Fields are populated based on type/alliance
       * 
* * optional .SC2APIProtocol.DisplayType display_type = 1; * @return Whether the displayType field is set. */ @java.lang.Override public boolean hasDisplayType() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * Fields are populated based on type/alliance
       * 
* * optional .SC2APIProtocol.DisplayType display_type = 1; * @return The displayType. */ @java.lang.Override public SC2APIProtocol.Raw.DisplayType getDisplayType() { @SuppressWarnings("deprecation") SC2APIProtocol.Raw.DisplayType result = SC2APIProtocol.Raw.DisplayType.valueOf(displayType_); return result == null ? SC2APIProtocol.Raw.DisplayType.Visible : result; } /** *
       * Fields are populated based on type/alliance
       * 
* * optional .SC2APIProtocol.DisplayType display_type = 1; * @param value The displayType to set. * @return This builder for chaining. */ public Builder setDisplayType(SC2APIProtocol.Raw.DisplayType value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; displayType_ = value.getNumber(); onChanged(); return this; } /** *
       * Fields are populated based on type/alliance
       * 
* * optional .SC2APIProtocol.DisplayType display_type = 1; * @return This builder for chaining. */ public Builder clearDisplayType() { bitField0_ = (bitField0_ & ~0x00000001); displayType_ = 1; onChanged(); return this; } private int alliance_ = 1; /** * optional .SC2APIProtocol.Alliance alliance = 2; * @return Whether the alliance field is set. */ @java.lang.Override public boolean hasAlliance() { return ((bitField0_ & 0x00000002) != 0); } /** * optional .SC2APIProtocol.Alliance alliance = 2; * @return The alliance. */ @java.lang.Override public SC2APIProtocol.Raw.Alliance getAlliance() { @SuppressWarnings("deprecation") SC2APIProtocol.Raw.Alliance result = SC2APIProtocol.Raw.Alliance.valueOf(alliance_); return result == null ? SC2APIProtocol.Raw.Alliance.Self : result; } /** * optional .SC2APIProtocol.Alliance alliance = 2; * @param value The alliance to set. * @return This builder for chaining. */ public Builder setAlliance(SC2APIProtocol.Raw.Alliance value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; alliance_ = value.getNumber(); onChanged(); return this; } /** * optional .SC2APIProtocol.Alliance alliance = 2; * @return This builder for chaining. */ public Builder clearAlliance() { bitField0_ = (bitField0_ & ~0x00000002); alliance_ = 1; onChanged(); return this; } private long tag_ ; /** *
       * Unique identifier for a unit
       * 
* * optional uint64 tag = 3; * @return Whether the tag field is set. */ @java.lang.Override public boolean hasTag() { return ((bitField0_ & 0x00000004) != 0); } /** *
       * Unique identifier for a unit
       * 
* * optional uint64 tag = 3; * @return The tag. */ @java.lang.Override public long getTag() { return tag_; } /** *
       * Unique identifier for a unit
       * 
* * optional uint64 tag = 3; * @param value The tag to set. * @return This builder for chaining. */ public Builder setTag(long value) { bitField0_ |= 0x00000004; tag_ = value; onChanged(); return this; } /** *
       * Unique identifier for a unit
       * 
* * optional uint64 tag = 3; * @return This builder for chaining. */ public Builder clearTag() { bitField0_ = (bitField0_ & ~0x00000004); tag_ = 0L; onChanged(); return this; } private int unitType_ ; /** * optional uint32 unit_type = 4; * @return Whether the unitType field is set. */ @java.lang.Override public boolean hasUnitType() { return ((bitField0_ & 0x00000008) != 0); } /** * optional uint32 unit_type = 4; * @return The unitType. */ @java.lang.Override public int getUnitType() { return unitType_; } /** * optional uint32 unit_type = 4; * @param value The unitType to set. * @return This builder for chaining. */ public Builder setUnitType(int value) { bitField0_ |= 0x00000008; unitType_ = value; onChanged(); return this; } /** * optional uint32 unit_type = 4; * @return This builder for chaining. */ public Builder clearUnitType() { bitField0_ = (bitField0_ & ~0x00000008); unitType_ = 0; onChanged(); return this; } private int owner_ ; /** * optional int32 owner = 5; * @return Whether the owner field is set. */ @java.lang.Override public boolean hasOwner() { return ((bitField0_ & 0x00000010) != 0); } /** * optional int32 owner = 5; * @return The owner. */ @java.lang.Override public int getOwner() { return owner_; } /** * optional int32 owner = 5; * @param value The owner to set. * @return This builder for chaining. */ public Builder setOwner(int value) { bitField0_ |= 0x00000010; owner_ = value; onChanged(); return this; } /** * optional int32 owner = 5; * @return This builder for chaining. */ public Builder clearOwner() { bitField0_ = (bitField0_ & ~0x00000010); owner_ = 0; onChanged(); return this; } private SC2APIProtocol.Common.Point pos_; private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Common.Point, SC2APIProtocol.Common.Point.Builder, SC2APIProtocol.Common.PointOrBuilder> posBuilder_; /** * optional .SC2APIProtocol.Point pos = 6; * @return Whether the pos field is set. */ public boolean hasPos() { return ((bitField0_ & 0x00000020) != 0); } /** * optional .SC2APIProtocol.Point pos = 6; * @return The pos. */ public SC2APIProtocol.Common.Point getPos() { if (posBuilder_ == null) { return pos_ == null ? SC2APIProtocol.Common.Point.getDefaultInstance() : pos_; } else { return posBuilder_.getMessage(); } } /** * optional .SC2APIProtocol.Point pos = 6; */ public Builder setPos(SC2APIProtocol.Common.Point value) { if (posBuilder_ == null) { if (value == null) { throw new NullPointerException(); } pos_ = value; onChanged(); } else { posBuilder_.setMessage(value); } bitField0_ |= 0x00000020; return this; } /** * optional .SC2APIProtocol.Point pos = 6; */ public Builder setPos( SC2APIProtocol.Common.Point.Builder builderForValue) { if (posBuilder_ == null) { pos_ = builderForValue.build(); onChanged(); } else { posBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000020; return this; } /** * optional .SC2APIProtocol.Point pos = 6; */ public Builder mergePos(SC2APIProtocol.Common.Point value) { if (posBuilder_ == null) { if (((bitField0_ & 0x00000020) != 0) && pos_ != null && pos_ != SC2APIProtocol.Common.Point.getDefaultInstance()) { pos_ = SC2APIProtocol.Common.Point.newBuilder(pos_).mergeFrom(value).buildPartial(); } else { pos_ = value; } onChanged(); } else { posBuilder_.mergeFrom(value); } bitField0_ |= 0x00000020; return this; } /** * optional .SC2APIProtocol.Point pos = 6; */ public Builder clearPos() { if (posBuilder_ == null) { pos_ = null; onChanged(); } else { posBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000020); return this; } /** * optional .SC2APIProtocol.Point pos = 6; */ public SC2APIProtocol.Common.Point.Builder getPosBuilder() { bitField0_ |= 0x00000020; onChanged(); return getPosFieldBuilder().getBuilder(); } /** * optional .SC2APIProtocol.Point pos = 6; */ public SC2APIProtocol.Common.PointOrBuilder getPosOrBuilder() { if (posBuilder_ != null) { return posBuilder_.getMessageOrBuilder(); } else { return pos_ == null ? SC2APIProtocol.Common.Point.getDefaultInstance() : pos_; } } /** * optional .SC2APIProtocol.Point pos = 6; */ private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Common.Point, SC2APIProtocol.Common.Point.Builder, SC2APIProtocol.Common.PointOrBuilder> getPosFieldBuilder() { if (posBuilder_ == null) { posBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Common.Point, SC2APIProtocol.Common.Point.Builder, SC2APIProtocol.Common.PointOrBuilder>( getPos(), getParentForChildren(), isClean()); pos_ = null; } return posBuilder_; } private float facing_ ; /** * optional float facing = 7; * @return Whether the facing field is set. */ @java.lang.Override public boolean hasFacing() { return ((bitField0_ & 0x00000040) != 0); } /** * optional float facing = 7; * @return The facing. */ @java.lang.Override public float getFacing() { return facing_; } /** * optional float facing = 7; * @param value The facing to set. * @return This builder for chaining. */ public Builder setFacing(float value) { bitField0_ |= 0x00000040; facing_ = value; onChanged(); return this; } /** * optional float facing = 7; * @return This builder for chaining. */ public Builder clearFacing() { bitField0_ = (bitField0_ & ~0x00000040); facing_ = 0F; onChanged(); return this; } private float radius_ ; /** * optional float radius = 8; * @return Whether the radius field is set. */ @java.lang.Override public boolean hasRadius() { return ((bitField0_ & 0x00000080) != 0); } /** * optional float radius = 8; * @return The radius. */ @java.lang.Override public float getRadius() { return radius_; } /** * optional float radius = 8; * @param value The radius to set. * @return This builder for chaining. */ public Builder setRadius(float value) { bitField0_ |= 0x00000080; radius_ = value; onChanged(); return this; } /** * optional float radius = 8; * @return This builder for chaining. */ public Builder clearRadius() { bitField0_ = (bitField0_ & ~0x00000080); radius_ = 0F; onChanged(); return this; } private float buildProgress_ ; /** *
       * Range: [0.0, 1.0]
       * 
* * optional float build_progress = 9; * @return Whether the buildProgress field is set. */ @java.lang.Override public boolean hasBuildProgress() { return ((bitField0_ & 0x00000100) != 0); } /** *
       * Range: [0.0, 1.0]
       * 
* * optional float build_progress = 9; * @return The buildProgress. */ @java.lang.Override public float getBuildProgress() { return buildProgress_; } /** *
       * Range: [0.0, 1.0]
       * 
* * optional float build_progress = 9; * @param value The buildProgress to set. * @return This builder for chaining. */ public Builder setBuildProgress(float value) { bitField0_ |= 0x00000100; buildProgress_ = value; onChanged(); return this; } /** *
       * Range: [0.0, 1.0]
       * 
* * optional float build_progress = 9; * @return This builder for chaining. */ public Builder clearBuildProgress() { bitField0_ = (bitField0_ & ~0x00000100); buildProgress_ = 0F; onChanged(); return this; } private int cloak_ = 0; /** * optional .SC2APIProtocol.CloakState cloak = 10; * @return Whether the cloak field is set. */ @java.lang.Override public boolean hasCloak() { return ((bitField0_ & 0x00000200) != 0); } /** * optional .SC2APIProtocol.CloakState cloak = 10; * @return The cloak. */ @java.lang.Override public SC2APIProtocol.Raw.CloakState getCloak() { @SuppressWarnings("deprecation") SC2APIProtocol.Raw.CloakState result = SC2APIProtocol.Raw.CloakState.valueOf(cloak_); return result == null ? SC2APIProtocol.Raw.CloakState.CloakedUnknown : result; } /** * optional .SC2APIProtocol.CloakState cloak = 10; * @param value The cloak to set. * @return This builder for chaining. */ public Builder setCloak(SC2APIProtocol.Raw.CloakState value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000200; cloak_ = value.getNumber(); onChanged(); return this; } /** * optional .SC2APIProtocol.CloakState cloak = 10; * @return This builder for chaining. */ public Builder clearCloak() { bitField0_ = (bitField0_ & ~0x00000200); cloak_ = 0; onChanged(); return this; } private com.google.protobuf.Internal.IntList buffIds_ = emptyIntList(); private void ensureBuffIdsIsMutable() { if (!((bitField0_ & 0x00000400) != 0)) { buffIds_ = mutableCopy(buffIds_); bitField0_ |= 0x00000400; } } /** * repeated uint32 buff_ids = 27; * @return A list containing the buffIds. */ public java.util.List getBuffIdsList() { return ((bitField0_ & 0x00000400) != 0) ? java.util.Collections.unmodifiableList(buffIds_) : buffIds_; } /** * repeated uint32 buff_ids = 27; * @return The count of buffIds. */ public int getBuffIdsCount() { return buffIds_.size(); } /** * repeated uint32 buff_ids = 27; * @param index The index of the element to return. * @return The buffIds at the given index. */ public int getBuffIds(int index) { return buffIds_.getInt(index); } /** * repeated uint32 buff_ids = 27; * @param index The index to set the value at. * @param value The buffIds to set. * @return This builder for chaining. */ public Builder setBuffIds( int index, int value) { ensureBuffIdsIsMutable(); buffIds_.setInt(index, value); onChanged(); return this; } /** * repeated uint32 buff_ids = 27; * @param value The buffIds to add. * @return This builder for chaining. */ public Builder addBuffIds(int value) { ensureBuffIdsIsMutable(); buffIds_.addInt(value); onChanged(); return this; } /** * repeated uint32 buff_ids = 27; * @param values The buffIds to add. * @return This builder for chaining. */ public Builder addAllBuffIds( java.lang.Iterable values) { ensureBuffIdsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, buffIds_); onChanged(); return this; } /** * repeated uint32 buff_ids = 27; * @return This builder for chaining. */ public Builder clearBuffIds() { buffIds_ = emptyIntList(); bitField0_ = (bitField0_ & ~0x00000400); onChanged(); return this; } private float detectRange_ ; /** * optional float detect_range = 31; * @return Whether the detectRange field is set. */ @java.lang.Override public boolean hasDetectRange() { return ((bitField0_ & 0x00000800) != 0); } /** * optional float detect_range = 31; * @return The detectRange. */ @java.lang.Override public float getDetectRange() { return detectRange_; } /** * optional float detect_range = 31; * @param value The detectRange to set. * @return This builder for chaining. */ public Builder setDetectRange(float value) { bitField0_ |= 0x00000800; detectRange_ = value; onChanged(); return this; } /** * optional float detect_range = 31; * @return This builder for chaining. */ public Builder clearDetectRange() { bitField0_ = (bitField0_ & ~0x00000800); detectRange_ = 0F; onChanged(); return this; } private float radarRange_ ; /** * optional float radar_range = 32; * @return Whether the radarRange field is set. */ @java.lang.Override public boolean hasRadarRange() { return ((bitField0_ & 0x00001000) != 0); } /** * optional float radar_range = 32; * @return The radarRange. */ @java.lang.Override public float getRadarRange() { return radarRange_; } /** * optional float radar_range = 32; * @param value The radarRange to set. * @return This builder for chaining. */ public Builder setRadarRange(float value) { bitField0_ |= 0x00001000; radarRange_ = value; onChanged(); return this; } /** * optional float radar_range = 32; * @return This builder for chaining. */ public Builder clearRadarRange() { bitField0_ = (bitField0_ & ~0x00001000); radarRange_ = 0F; onChanged(); return this; } private boolean isSelected_ ; /** * optional bool is_selected = 11; * @return Whether the isSelected field is set. */ @java.lang.Override public boolean hasIsSelected() { return ((bitField0_ & 0x00002000) != 0); } /** * optional bool is_selected = 11; * @return The isSelected. */ @java.lang.Override public boolean getIsSelected() { return isSelected_; } /** * optional bool is_selected = 11; * @param value The isSelected to set. * @return This builder for chaining. */ public Builder setIsSelected(boolean value) { bitField0_ |= 0x00002000; isSelected_ = value; onChanged(); return this; } /** * optional bool is_selected = 11; * @return This builder for chaining. */ public Builder clearIsSelected() { bitField0_ = (bitField0_ & ~0x00002000); isSelected_ = false; onChanged(); return this; } private boolean isOnScreen_ ; /** *
       * Visible and within the camera frustrum.
       * 
* * optional bool is_on_screen = 12; * @return Whether the isOnScreen field is set. */ @java.lang.Override public boolean hasIsOnScreen() { return ((bitField0_ & 0x00004000) != 0); } /** *
       * Visible and within the camera frustrum.
       * 
* * optional bool is_on_screen = 12; * @return The isOnScreen. */ @java.lang.Override public boolean getIsOnScreen() { return isOnScreen_; } /** *
       * Visible and within the camera frustrum.
       * 
* * optional bool is_on_screen = 12; * @param value The isOnScreen to set. * @return This builder for chaining. */ public Builder setIsOnScreen(boolean value) { bitField0_ |= 0x00004000; isOnScreen_ = value; onChanged(); return this; } /** *
       * Visible and within the camera frustrum.
       * 
* * optional bool is_on_screen = 12; * @return This builder for chaining. */ public Builder clearIsOnScreen() { bitField0_ = (bitField0_ & ~0x00004000); isOnScreen_ = false; onChanged(); return this; } private boolean isBlip_ ; /** *
       * Detected by sensor tower
       * 
* * optional bool is_blip = 13; * @return Whether the isBlip field is set. */ @java.lang.Override public boolean hasIsBlip() { return ((bitField0_ & 0x00008000) != 0); } /** *
       * Detected by sensor tower
       * 
* * optional bool is_blip = 13; * @return The isBlip. */ @java.lang.Override public boolean getIsBlip() { return isBlip_; } /** *
       * Detected by sensor tower
       * 
* * optional bool is_blip = 13; * @param value The isBlip to set. * @return This builder for chaining. */ public Builder setIsBlip(boolean value) { bitField0_ |= 0x00008000; isBlip_ = value; onChanged(); return this; } /** *
       * Detected by sensor tower
       * 
* * optional bool is_blip = 13; * @return This builder for chaining. */ public Builder clearIsBlip() { bitField0_ = (bitField0_ & ~0x00008000); isBlip_ = false; onChanged(); return this; } private boolean isPowered_ ; /** * optional bool is_powered = 35; * @return Whether the isPowered field is set. */ @java.lang.Override public boolean hasIsPowered() { return ((bitField0_ & 0x00010000) != 0); } /** * optional bool is_powered = 35; * @return The isPowered. */ @java.lang.Override public boolean getIsPowered() { return isPowered_; } /** * optional bool is_powered = 35; * @param value The isPowered to set. * @return This builder for chaining. */ public Builder setIsPowered(boolean value) { bitField0_ |= 0x00010000; isPowered_ = value; onChanged(); return this; } /** * optional bool is_powered = 35; * @return This builder for chaining. */ public Builder clearIsPowered() { bitField0_ = (bitField0_ & ~0x00010000); isPowered_ = false; onChanged(); return this; } private boolean isActive_ ; /** *
       * Building is training/researching (ie animated).
       * 
* * optional bool is_active = 39; * @return Whether the isActive field is set. */ @java.lang.Override public boolean hasIsActive() { return ((bitField0_ & 0x00020000) != 0); } /** *
       * Building is training/researching (ie animated).
       * 
* * optional bool is_active = 39; * @return The isActive. */ @java.lang.Override public boolean getIsActive() { return isActive_; } /** *
       * Building is training/researching (ie animated).
       * 
* * optional bool is_active = 39; * @param value The isActive to set. * @return This builder for chaining. */ public Builder setIsActive(boolean value) { bitField0_ |= 0x00020000; isActive_ = value; onChanged(); return this; } /** *
       * Building is training/researching (ie animated).
       * 
* * optional bool is_active = 39; * @return This builder for chaining. */ public Builder clearIsActive() { bitField0_ = (bitField0_ & ~0x00020000); isActive_ = false; onChanged(); return this; } private int attackUpgradeLevel_ ; /** * optional int32 attack_upgrade_level = 40; * @return Whether the attackUpgradeLevel field is set. */ @java.lang.Override public boolean hasAttackUpgradeLevel() { return ((bitField0_ & 0x00040000) != 0); } /** * optional int32 attack_upgrade_level = 40; * @return The attackUpgradeLevel. */ @java.lang.Override public int getAttackUpgradeLevel() { return attackUpgradeLevel_; } /** * optional int32 attack_upgrade_level = 40; * @param value The attackUpgradeLevel to set. * @return This builder for chaining. */ public Builder setAttackUpgradeLevel(int value) { bitField0_ |= 0x00040000; attackUpgradeLevel_ = value; onChanged(); return this; } /** * optional int32 attack_upgrade_level = 40; * @return This builder for chaining. */ public Builder clearAttackUpgradeLevel() { bitField0_ = (bitField0_ & ~0x00040000); attackUpgradeLevel_ = 0; onChanged(); return this; } private int armorUpgradeLevel_ ; /** * optional int32 armor_upgrade_level = 41; * @return Whether the armorUpgradeLevel field is set. */ @java.lang.Override public boolean hasArmorUpgradeLevel() { return ((bitField0_ & 0x00080000) != 0); } /** * optional int32 armor_upgrade_level = 41; * @return The armorUpgradeLevel. */ @java.lang.Override public int getArmorUpgradeLevel() { return armorUpgradeLevel_; } /** * optional int32 armor_upgrade_level = 41; * @param value The armorUpgradeLevel to set. * @return This builder for chaining. */ public Builder setArmorUpgradeLevel(int value) { bitField0_ |= 0x00080000; armorUpgradeLevel_ = value; onChanged(); return this; } /** * optional int32 armor_upgrade_level = 41; * @return This builder for chaining. */ public Builder clearArmorUpgradeLevel() { bitField0_ = (bitField0_ & ~0x00080000); armorUpgradeLevel_ = 0; onChanged(); return this; } private int shieldUpgradeLevel_ ; /** * optional int32 shield_upgrade_level = 42; * @return Whether the shieldUpgradeLevel field is set. */ @java.lang.Override public boolean hasShieldUpgradeLevel() { return ((bitField0_ & 0x00100000) != 0); } /** * optional int32 shield_upgrade_level = 42; * @return The shieldUpgradeLevel. */ @java.lang.Override public int getShieldUpgradeLevel() { return shieldUpgradeLevel_; } /** * optional int32 shield_upgrade_level = 42; * @param value The shieldUpgradeLevel to set. * @return This builder for chaining. */ public Builder setShieldUpgradeLevel(int value) { bitField0_ |= 0x00100000; shieldUpgradeLevel_ = value; onChanged(); return this; } /** * optional int32 shield_upgrade_level = 42; * @return This builder for chaining. */ public Builder clearShieldUpgradeLevel() { bitField0_ = (bitField0_ & ~0x00100000); shieldUpgradeLevel_ = 0; onChanged(); return this; } private float health_ ; /** *
       * Not populated for snapshots
       * 
* * optional float health = 14; * @return Whether the health field is set. */ @java.lang.Override public boolean hasHealth() { return ((bitField0_ & 0x00200000) != 0); } /** *
       * Not populated for snapshots
       * 
* * optional float health = 14; * @return The health. */ @java.lang.Override public float getHealth() { return health_; } /** *
       * Not populated for snapshots
       * 
* * optional float health = 14; * @param value The health to set. * @return This builder for chaining. */ public Builder setHealth(float value) { bitField0_ |= 0x00200000; health_ = value; onChanged(); return this; } /** *
       * Not populated for snapshots
       * 
* * optional float health = 14; * @return This builder for chaining. */ public Builder clearHealth() { bitField0_ = (bitField0_ & ~0x00200000); health_ = 0F; onChanged(); return this; } private float healthMax_ ; /** * optional float health_max = 15; * @return Whether the healthMax field is set. */ @java.lang.Override public boolean hasHealthMax() { return ((bitField0_ & 0x00400000) != 0); } /** * optional float health_max = 15; * @return The healthMax. */ @java.lang.Override public float getHealthMax() { return healthMax_; } /** * optional float health_max = 15; * @param value The healthMax to set. * @return This builder for chaining. */ public Builder setHealthMax(float value) { bitField0_ |= 0x00400000; healthMax_ = value; onChanged(); return this; } /** * optional float health_max = 15; * @return This builder for chaining. */ public Builder clearHealthMax() { bitField0_ = (bitField0_ & ~0x00400000); healthMax_ = 0F; onChanged(); return this; } private float shield_ ; /** * optional float shield = 16; * @return Whether the shield field is set. */ @java.lang.Override public boolean hasShield() { return ((bitField0_ & 0x00800000) != 0); } /** * optional float shield = 16; * @return The shield. */ @java.lang.Override public float getShield() { return shield_; } /** * optional float shield = 16; * @param value The shield to set. * @return This builder for chaining. */ public Builder setShield(float value) { bitField0_ |= 0x00800000; shield_ = value; onChanged(); return this; } /** * optional float shield = 16; * @return This builder for chaining. */ public Builder clearShield() { bitField0_ = (bitField0_ & ~0x00800000); shield_ = 0F; onChanged(); return this; } private float shieldMax_ ; /** * optional float shield_max = 36; * @return Whether the shieldMax field is set. */ @java.lang.Override public boolean hasShieldMax() { return ((bitField0_ & 0x01000000) != 0); } /** * optional float shield_max = 36; * @return The shieldMax. */ @java.lang.Override public float getShieldMax() { return shieldMax_; } /** * optional float shield_max = 36; * @param value The shieldMax to set. * @return This builder for chaining. */ public Builder setShieldMax(float value) { bitField0_ |= 0x01000000; shieldMax_ = value; onChanged(); return this; } /** * optional float shield_max = 36; * @return This builder for chaining. */ public Builder clearShieldMax() { bitField0_ = (bitField0_ & ~0x01000000); shieldMax_ = 0F; onChanged(); return this; } private float energy_ ; /** * optional float energy = 17; * @return Whether the energy field is set. */ @java.lang.Override public boolean hasEnergy() { return ((bitField0_ & 0x02000000) != 0); } /** * optional float energy = 17; * @return The energy. */ @java.lang.Override public float getEnergy() { return energy_; } /** * optional float energy = 17; * @param value The energy to set. * @return This builder for chaining. */ public Builder setEnergy(float value) { bitField0_ |= 0x02000000; energy_ = value; onChanged(); return this; } /** * optional float energy = 17; * @return This builder for chaining. */ public Builder clearEnergy() { bitField0_ = (bitField0_ & ~0x02000000); energy_ = 0F; onChanged(); return this; } private float energyMax_ ; /** * optional float energy_max = 37; * @return Whether the energyMax field is set. */ @java.lang.Override public boolean hasEnergyMax() { return ((bitField0_ & 0x04000000) != 0); } /** * optional float energy_max = 37; * @return The energyMax. */ @java.lang.Override public float getEnergyMax() { return energyMax_; } /** * optional float energy_max = 37; * @param value The energyMax to set. * @return This builder for chaining. */ public Builder setEnergyMax(float value) { bitField0_ |= 0x04000000; energyMax_ = value; onChanged(); return this; } /** * optional float energy_max = 37; * @return This builder for chaining. */ public Builder clearEnergyMax() { bitField0_ = (bitField0_ & ~0x04000000); energyMax_ = 0F; onChanged(); return this; } private int mineralContents_ ; /** * optional int32 mineral_contents = 18; * @return Whether the mineralContents field is set. */ @java.lang.Override public boolean hasMineralContents() { return ((bitField0_ & 0x08000000) != 0); } /** * optional int32 mineral_contents = 18; * @return The mineralContents. */ @java.lang.Override public int getMineralContents() { return mineralContents_; } /** * optional int32 mineral_contents = 18; * @param value The mineralContents to set. * @return This builder for chaining. */ public Builder setMineralContents(int value) { bitField0_ |= 0x08000000; mineralContents_ = value; onChanged(); return this; } /** * optional int32 mineral_contents = 18; * @return This builder for chaining. */ public Builder clearMineralContents() { bitField0_ = (bitField0_ & ~0x08000000); mineralContents_ = 0; onChanged(); return this; } private int vespeneContents_ ; /** * optional int32 vespene_contents = 19; * @return Whether the vespeneContents field is set. */ @java.lang.Override public boolean hasVespeneContents() { return ((bitField0_ & 0x10000000) != 0); } /** * optional int32 vespene_contents = 19; * @return The vespeneContents. */ @java.lang.Override public int getVespeneContents() { return vespeneContents_; } /** * optional int32 vespene_contents = 19; * @param value The vespeneContents to set. * @return This builder for chaining. */ public Builder setVespeneContents(int value) { bitField0_ |= 0x10000000; vespeneContents_ = value; onChanged(); return this; } /** * optional int32 vespene_contents = 19; * @return This builder for chaining. */ public Builder clearVespeneContents() { bitField0_ = (bitField0_ & ~0x10000000); vespeneContents_ = 0; onChanged(); return this; } private boolean isFlying_ ; /** * optional bool is_flying = 20; * @return Whether the isFlying field is set. */ @java.lang.Override public boolean hasIsFlying() { return ((bitField0_ & 0x20000000) != 0); } /** * optional bool is_flying = 20; * @return The isFlying. */ @java.lang.Override public boolean getIsFlying() { return isFlying_; } /** * optional bool is_flying = 20; * @param value The isFlying to set. * @return This builder for chaining. */ public Builder setIsFlying(boolean value) { bitField0_ |= 0x20000000; isFlying_ = value; onChanged(); return this; } /** * optional bool is_flying = 20; * @return This builder for chaining. */ public Builder clearIsFlying() { bitField0_ = (bitField0_ & ~0x20000000); isFlying_ = false; onChanged(); return this; } private boolean isBurrowed_ ; /** * optional bool is_burrowed = 21; * @return Whether the isBurrowed field is set. */ @java.lang.Override public boolean hasIsBurrowed() { return ((bitField0_ & 0x40000000) != 0); } /** * optional bool is_burrowed = 21; * @return The isBurrowed. */ @java.lang.Override public boolean getIsBurrowed() { return isBurrowed_; } /** * optional bool is_burrowed = 21; * @param value The isBurrowed to set. * @return This builder for chaining. */ public Builder setIsBurrowed(boolean value) { bitField0_ |= 0x40000000; isBurrowed_ = value; onChanged(); return this; } /** * optional bool is_burrowed = 21; * @return This builder for chaining. */ public Builder clearIsBurrowed() { bitField0_ = (bitField0_ & ~0x40000000); isBurrowed_ = false; onChanged(); return this; } private boolean isHallucination_ ; /** *
       * Unit is your own or detected as a hallucination.
       * 
* * optional bool is_hallucination = 38; * @return Whether the isHallucination field is set. */ @java.lang.Override public boolean hasIsHallucination() { return ((bitField0_ & 0x80000000) != 0); } /** *
       * Unit is your own or detected as a hallucination.
       * 
* * optional bool is_hallucination = 38; * @return The isHallucination. */ @java.lang.Override public boolean getIsHallucination() { return isHallucination_; } /** *
       * Unit is your own or detected as a hallucination.
       * 
* * optional bool is_hallucination = 38; * @param value The isHallucination to set. * @return This builder for chaining. */ public Builder setIsHallucination(boolean value) { bitField0_ |= 0x80000000; isHallucination_ = value; onChanged(); return this; } /** *
       * Unit is your own or detected as a hallucination.
       * 
* * optional bool is_hallucination = 38; * @return This builder for chaining. */ public Builder clearIsHallucination() { bitField0_ = (bitField0_ & ~0x80000000); isHallucination_ = false; onChanged(); return this; } private java.util.List orders_ = java.util.Collections.emptyList(); private void ensureOrdersIsMutable() { if (!((bitField1_ & 0x00000001) != 0)) { orders_ = new java.util.ArrayList(orders_); bitField1_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< SC2APIProtocol.Raw.UnitOrder, SC2APIProtocol.Raw.UnitOrder.Builder, SC2APIProtocol.Raw.UnitOrderOrBuilder> ordersBuilder_; /** *
       * Not populated for enemies
       * 
* * repeated .SC2APIProtocol.UnitOrder orders = 22; */ public java.util.List getOrdersList() { if (ordersBuilder_ == null) { return java.util.Collections.unmodifiableList(orders_); } else { return ordersBuilder_.getMessageList(); } } /** *
       * Not populated for enemies
       * 
* * repeated .SC2APIProtocol.UnitOrder orders = 22; */ public int getOrdersCount() { if (ordersBuilder_ == null) { return orders_.size(); } else { return ordersBuilder_.getCount(); } } /** *
       * Not populated for enemies
       * 
* * repeated .SC2APIProtocol.UnitOrder orders = 22; */ public SC2APIProtocol.Raw.UnitOrder getOrders(int index) { if (ordersBuilder_ == null) { return orders_.get(index); } else { return ordersBuilder_.getMessage(index); } } /** *
       * Not populated for enemies
       * 
* * repeated .SC2APIProtocol.UnitOrder orders = 22; */ public Builder setOrders( int index, SC2APIProtocol.Raw.UnitOrder value) { if (ordersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureOrdersIsMutable(); orders_.set(index, value); onChanged(); } else { ordersBuilder_.setMessage(index, value); } return this; } /** *
       * Not populated for enemies
       * 
* * repeated .SC2APIProtocol.UnitOrder orders = 22; */ public Builder setOrders( int index, SC2APIProtocol.Raw.UnitOrder.Builder builderForValue) { if (ordersBuilder_ == null) { ensureOrdersIsMutable(); orders_.set(index, builderForValue.build()); onChanged(); } else { ordersBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * Not populated for enemies
       * 
* * repeated .SC2APIProtocol.UnitOrder orders = 22; */ public Builder addOrders(SC2APIProtocol.Raw.UnitOrder value) { if (ordersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureOrdersIsMutable(); orders_.add(value); onChanged(); } else { ordersBuilder_.addMessage(value); } return this; } /** *
       * Not populated for enemies
       * 
* * repeated .SC2APIProtocol.UnitOrder orders = 22; */ public Builder addOrders( int index, SC2APIProtocol.Raw.UnitOrder value) { if (ordersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureOrdersIsMutable(); orders_.add(index, value); onChanged(); } else { ordersBuilder_.addMessage(index, value); } return this; } /** *
       * Not populated for enemies
       * 
* * repeated .SC2APIProtocol.UnitOrder orders = 22; */ public Builder addOrders( SC2APIProtocol.Raw.UnitOrder.Builder builderForValue) { if (ordersBuilder_ == null) { ensureOrdersIsMutable(); orders_.add(builderForValue.build()); onChanged(); } else { ordersBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * Not populated for enemies
       * 
* * repeated .SC2APIProtocol.UnitOrder orders = 22; */ public Builder addOrders( int index, SC2APIProtocol.Raw.UnitOrder.Builder builderForValue) { if (ordersBuilder_ == null) { ensureOrdersIsMutable(); orders_.add(index, builderForValue.build()); onChanged(); } else { ordersBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * Not populated for enemies
       * 
* * repeated .SC2APIProtocol.UnitOrder orders = 22; */ public Builder addAllOrders( java.lang.Iterable values) { if (ordersBuilder_ == null) { ensureOrdersIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, orders_); onChanged(); } else { ordersBuilder_.addAllMessages(values); } return this; } /** *
       * Not populated for enemies
       * 
* * repeated .SC2APIProtocol.UnitOrder orders = 22; */ public Builder clearOrders() { if (ordersBuilder_ == null) { orders_ = java.util.Collections.emptyList(); bitField1_ = (bitField1_ & ~0x00000001); onChanged(); } else { ordersBuilder_.clear(); } return this; } /** *
       * Not populated for enemies
       * 
* * repeated .SC2APIProtocol.UnitOrder orders = 22; */ public Builder removeOrders(int index) { if (ordersBuilder_ == null) { ensureOrdersIsMutable(); orders_.remove(index); onChanged(); } else { ordersBuilder_.remove(index); } return this; } /** *
       * Not populated for enemies
       * 
* * repeated .SC2APIProtocol.UnitOrder orders = 22; */ public SC2APIProtocol.Raw.UnitOrder.Builder getOrdersBuilder( int index) { return getOrdersFieldBuilder().getBuilder(index); } /** *
       * Not populated for enemies
       * 
* * repeated .SC2APIProtocol.UnitOrder orders = 22; */ public SC2APIProtocol.Raw.UnitOrderOrBuilder getOrdersOrBuilder( int index) { if (ordersBuilder_ == null) { return orders_.get(index); } else { return ordersBuilder_.getMessageOrBuilder(index); } } /** *
       * Not populated for enemies
       * 
* * repeated .SC2APIProtocol.UnitOrder orders = 22; */ public java.util.List getOrdersOrBuilderList() { if (ordersBuilder_ != null) { return ordersBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(orders_); } } /** *
       * Not populated for enemies
       * 
* * repeated .SC2APIProtocol.UnitOrder orders = 22; */ public SC2APIProtocol.Raw.UnitOrder.Builder addOrdersBuilder() { return getOrdersFieldBuilder().addBuilder( SC2APIProtocol.Raw.UnitOrder.getDefaultInstance()); } /** *
       * Not populated for enemies
       * 
* * repeated .SC2APIProtocol.UnitOrder orders = 22; */ public SC2APIProtocol.Raw.UnitOrder.Builder addOrdersBuilder( int index) { return getOrdersFieldBuilder().addBuilder( index, SC2APIProtocol.Raw.UnitOrder.getDefaultInstance()); } /** *
       * Not populated for enemies
       * 
* * repeated .SC2APIProtocol.UnitOrder orders = 22; */ public java.util.List getOrdersBuilderList() { return getOrdersFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< SC2APIProtocol.Raw.UnitOrder, SC2APIProtocol.Raw.UnitOrder.Builder, SC2APIProtocol.Raw.UnitOrderOrBuilder> getOrdersFieldBuilder() { if (ordersBuilder_ == null) { ordersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< SC2APIProtocol.Raw.UnitOrder, SC2APIProtocol.Raw.UnitOrder.Builder, SC2APIProtocol.Raw.UnitOrderOrBuilder>( orders_, ((bitField1_ & 0x00000001) != 0), getParentForChildren(), isClean()); orders_ = null; } return ordersBuilder_; } private long addOnTag_ ; /** * optional uint64 add_on_tag = 23; * @return Whether the addOnTag field is set. */ @java.lang.Override public boolean hasAddOnTag() { return ((bitField1_ & 0x00000002) != 0); } /** * optional uint64 add_on_tag = 23; * @return The addOnTag. */ @java.lang.Override public long getAddOnTag() { return addOnTag_; } /** * optional uint64 add_on_tag = 23; * @param value The addOnTag to set. * @return This builder for chaining. */ public Builder setAddOnTag(long value) { bitField1_ |= 0x00000002; addOnTag_ = value; onChanged(); return this; } /** * optional uint64 add_on_tag = 23; * @return This builder for chaining. */ public Builder clearAddOnTag() { bitField1_ = (bitField1_ & ~0x00000002); addOnTag_ = 0L; onChanged(); return this; } private java.util.List passengers_ = java.util.Collections.emptyList(); private void ensurePassengersIsMutable() { if (!((bitField1_ & 0x00000004) != 0)) { passengers_ = new java.util.ArrayList(passengers_); bitField1_ |= 0x00000004; } } private com.google.protobuf.RepeatedFieldBuilderV3< SC2APIProtocol.Raw.PassengerUnit, SC2APIProtocol.Raw.PassengerUnit.Builder, SC2APIProtocol.Raw.PassengerUnitOrBuilder> passengersBuilder_; /** * repeated .SC2APIProtocol.PassengerUnit passengers = 24; */ public java.util.List getPassengersList() { if (passengersBuilder_ == null) { return java.util.Collections.unmodifiableList(passengers_); } else { return passengersBuilder_.getMessageList(); } } /** * repeated .SC2APIProtocol.PassengerUnit passengers = 24; */ public int getPassengersCount() { if (passengersBuilder_ == null) { return passengers_.size(); } else { return passengersBuilder_.getCount(); } } /** * repeated .SC2APIProtocol.PassengerUnit passengers = 24; */ public SC2APIProtocol.Raw.PassengerUnit getPassengers(int index) { if (passengersBuilder_ == null) { return passengers_.get(index); } else { return passengersBuilder_.getMessage(index); } } /** * repeated .SC2APIProtocol.PassengerUnit passengers = 24; */ public Builder setPassengers( int index, SC2APIProtocol.Raw.PassengerUnit value) { if (passengersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePassengersIsMutable(); passengers_.set(index, value); onChanged(); } else { passengersBuilder_.setMessage(index, value); } return this; } /** * repeated .SC2APIProtocol.PassengerUnit passengers = 24; */ public Builder setPassengers( int index, SC2APIProtocol.Raw.PassengerUnit.Builder builderForValue) { if (passengersBuilder_ == null) { ensurePassengersIsMutable(); passengers_.set(index, builderForValue.build()); onChanged(); } else { passengersBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .SC2APIProtocol.PassengerUnit passengers = 24; */ public Builder addPassengers(SC2APIProtocol.Raw.PassengerUnit value) { if (passengersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePassengersIsMutable(); passengers_.add(value); onChanged(); } else { passengersBuilder_.addMessage(value); } return this; } /** * repeated .SC2APIProtocol.PassengerUnit passengers = 24; */ public Builder addPassengers( int index, SC2APIProtocol.Raw.PassengerUnit value) { if (passengersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePassengersIsMutable(); passengers_.add(index, value); onChanged(); } else { passengersBuilder_.addMessage(index, value); } return this; } /** * repeated .SC2APIProtocol.PassengerUnit passengers = 24; */ public Builder addPassengers( SC2APIProtocol.Raw.PassengerUnit.Builder builderForValue) { if (passengersBuilder_ == null) { ensurePassengersIsMutable(); passengers_.add(builderForValue.build()); onChanged(); } else { passengersBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .SC2APIProtocol.PassengerUnit passengers = 24; */ public Builder addPassengers( int index, SC2APIProtocol.Raw.PassengerUnit.Builder builderForValue) { if (passengersBuilder_ == null) { ensurePassengersIsMutable(); passengers_.add(index, builderForValue.build()); onChanged(); } else { passengersBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .SC2APIProtocol.PassengerUnit passengers = 24; */ public Builder addAllPassengers( java.lang.Iterable values) { if (passengersBuilder_ == null) { ensurePassengersIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, passengers_); onChanged(); } else { passengersBuilder_.addAllMessages(values); } return this; } /** * repeated .SC2APIProtocol.PassengerUnit passengers = 24; */ public Builder clearPassengers() { if (passengersBuilder_ == null) { passengers_ = java.util.Collections.emptyList(); bitField1_ = (bitField1_ & ~0x00000004); onChanged(); } else { passengersBuilder_.clear(); } return this; } /** * repeated .SC2APIProtocol.PassengerUnit passengers = 24; */ public Builder removePassengers(int index) { if (passengersBuilder_ == null) { ensurePassengersIsMutable(); passengers_.remove(index); onChanged(); } else { passengersBuilder_.remove(index); } return this; } /** * repeated .SC2APIProtocol.PassengerUnit passengers = 24; */ public SC2APIProtocol.Raw.PassengerUnit.Builder getPassengersBuilder( int index) { return getPassengersFieldBuilder().getBuilder(index); } /** * repeated .SC2APIProtocol.PassengerUnit passengers = 24; */ public SC2APIProtocol.Raw.PassengerUnitOrBuilder getPassengersOrBuilder( int index) { if (passengersBuilder_ == null) { return passengers_.get(index); } else { return passengersBuilder_.getMessageOrBuilder(index); } } /** * repeated .SC2APIProtocol.PassengerUnit passengers = 24; */ public java.util.List getPassengersOrBuilderList() { if (passengersBuilder_ != null) { return passengersBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(passengers_); } } /** * repeated .SC2APIProtocol.PassengerUnit passengers = 24; */ public SC2APIProtocol.Raw.PassengerUnit.Builder addPassengersBuilder() { return getPassengersFieldBuilder().addBuilder( SC2APIProtocol.Raw.PassengerUnit.getDefaultInstance()); } /** * repeated .SC2APIProtocol.PassengerUnit passengers = 24; */ public SC2APIProtocol.Raw.PassengerUnit.Builder addPassengersBuilder( int index) { return getPassengersFieldBuilder().addBuilder( index, SC2APIProtocol.Raw.PassengerUnit.getDefaultInstance()); } /** * repeated .SC2APIProtocol.PassengerUnit passengers = 24; */ public java.util.List getPassengersBuilderList() { return getPassengersFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< SC2APIProtocol.Raw.PassengerUnit, SC2APIProtocol.Raw.PassengerUnit.Builder, SC2APIProtocol.Raw.PassengerUnitOrBuilder> getPassengersFieldBuilder() { if (passengersBuilder_ == null) { passengersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< SC2APIProtocol.Raw.PassengerUnit, SC2APIProtocol.Raw.PassengerUnit.Builder, SC2APIProtocol.Raw.PassengerUnitOrBuilder>( passengers_, ((bitField1_ & 0x00000004) != 0), getParentForChildren(), isClean()); passengers_ = null; } return passengersBuilder_; } private int cargoSpaceTaken_ ; /** * optional int32 cargo_space_taken = 25; * @return Whether the cargoSpaceTaken field is set. */ @java.lang.Override public boolean hasCargoSpaceTaken() { return ((bitField1_ & 0x00000008) != 0); } /** * optional int32 cargo_space_taken = 25; * @return The cargoSpaceTaken. */ @java.lang.Override public int getCargoSpaceTaken() { return cargoSpaceTaken_; } /** * optional int32 cargo_space_taken = 25; * @param value The cargoSpaceTaken to set. * @return This builder for chaining. */ public Builder setCargoSpaceTaken(int value) { bitField1_ |= 0x00000008; cargoSpaceTaken_ = value; onChanged(); return this; } /** * optional int32 cargo_space_taken = 25; * @return This builder for chaining. */ public Builder clearCargoSpaceTaken() { bitField1_ = (bitField1_ & ~0x00000008); cargoSpaceTaken_ = 0; onChanged(); return this; } private int cargoSpaceMax_ ; /** * optional int32 cargo_space_max = 26; * @return Whether the cargoSpaceMax field is set. */ @java.lang.Override public boolean hasCargoSpaceMax() { return ((bitField1_ & 0x00000010) != 0); } /** * optional int32 cargo_space_max = 26; * @return The cargoSpaceMax. */ @java.lang.Override public int getCargoSpaceMax() { return cargoSpaceMax_; } /** * optional int32 cargo_space_max = 26; * @param value The cargoSpaceMax to set. * @return This builder for chaining. */ public Builder setCargoSpaceMax(int value) { bitField1_ |= 0x00000010; cargoSpaceMax_ = value; onChanged(); return this; } /** * optional int32 cargo_space_max = 26; * @return This builder for chaining. */ public Builder clearCargoSpaceMax() { bitField1_ = (bitField1_ & ~0x00000010); cargoSpaceMax_ = 0; onChanged(); return this; } private int assignedHarvesters_ ; /** * optional int32 assigned_harvesters = 28; * @return Whether the assignedHarvesters field is set. */ @java.lang.Override public boolean hasAssignedHarvesters() { return ((bitField1_ & 0x00000020) != 0); } /** * optional int32 assigned_harvesters = 28; * @return The assignedHarvesters. */ @java.lang.Override public int getAssignedHarvesters() { return assignedHarvesters_; } /** * optional int32 assigned_harvesters = 28; * @param value The assignedHarvesters to set. * @return This builder for chaining. */ public Builder setAssignedHarvesters(int value) { bitField1_ |= 0x00000020; assignedHarvesters_ = value; onChanged(); return this; } /** * optional int32 assigned_harvesters = 28; * @return This builder for chaining. */ public Builder clearAssignedHarvesters() { bitField1_ = (bitField1_ & ~0x00000020); assignedHarvesters_ = 0; onChanged(); return this; } private int idealHarvesters_ ; /** * optional int32 ideal_harvesters = 29; * @return Whether the idealHarvesters field is set. */ @java.lang.Override public boolean hasIdealHarvesters() { return ((bitField1_ & 0x00000040) != 0); } /** * optional int32 ideal_harvesters = 29; * @return The idealHarvesters. */ @java.lang.Override public int getIdealHarvesters() { return idealHarvesters_; } /** * optional int32 ideal_harvesters = 29; * @param value The idealHarvesters to set. * @return This builder for chaining. */ public Builder setIdealHarvesters(int value) { bitField1_ |= 0x00000040; idealHarvesters_ = value; onChanged(); return this; } /** * optional int32 ideal_harvesters = 29; * @return This builder for chaining. */ public Builder clearIdealHarvesters() { bitField1_ = (bitField1_ & ~0x00000040); idealHarvesters_ = 0; onChanged(); return this; } private float weaponCooldown_ ; /** * optional float weapon_cooldown = 30; * @return Whether the weaponCooldown field is set. */ @java.lang.Override public boolean hasWeaponCooldown() { return ((bitField1_ & 0x00000080) != 0); } /** * optional float weapon_cooldown = 30; * @return The weaponCooldown. */ @java.lang.Override public float getWeaponCooldown() { return weaponCooldown_; } /** * optional float weapon_cooldown = 30; * @param value The weaponCooldown to set. * @return This builder for chaining. */ public Builder setWeaponCooldown(float value) { bitField1_ |= 0x00000080; weaponCooldown_ = value; onChanged(); return this; } /** * optional float weapon_cooldown = 30; * @return This builder for chaining. */ public Builder clearWeaponCooldown() { bitField1_ = (bitField1_ & ~0x00000080); weaponCooldown_ = 0F; onChanged(); return this; } private long engagedTargetTag_ ; /** * optional uint64 engaged_target_tag = 34; * @return Whether the engagedTargetTag field is set. */ @java.lang.Override public boolean hasEngagedTargetTag() { return ((bitField1_ & 0x00000100) != 0); } /** * optional uint64 engaged_target_tag = 34; * @return The engagedTargetTag. */ @java.lang.Override public long getEngagedTargetTag() { return engagedTargetTag_; } /** * optional uint64 engaged_target_tag = 34; * @param value The engagedTargetTag to set. * @return This builder for chaining. */ public Builder setEngagedTargetTag(long value) { bitField1_ |= 0x00000100; engagedTargetTag_ = value; onChanged(); return this; } /** * optional uint64 engaged_target_tag = 34; * @return This builder for chaining. */ public Builder clearEngagedTargetTag() { bitField1_ = (bitField1_ & ~0x00000100); engagedTargetTag_ = 0L; onChanged(); return this; } private int buffDurationRemain_ ; /** *
       * How long a buff or unit is still around (eg mule, broodling, chronoboost).
       * 
* * optional int32 buff_duration_remain = 43; * @return Whether the buffDurationRemain field is set. */ @java.lang.Override public boolean hasBuffDurationRemain() { return ((bitField1_ & 0x00000200) != 0); } /** *
       * How long a buff or unit is still around (eg mule, broodling, chronoboost).
       * 
* * optional int32 buff_duration_remain = 43; * @return The buffDurationRemain. */ @java.lang.Override public int getBuffDurationRemain() { return buffDurationRemain_; } /** *
       * How long a buff or unit is still around (eg mule, broodling, chronoboost).
       * 
* * optional int32 buff_duration_remain = 43; * @param value The buffDurationRemain to set. * @return This builder for chaining. */ public Builder setBuffDurationRemain(int value) { bitField1_ |= 0x00000200; buffDurationRemain_ = value; onChanged(); return this; } /** *
       * How long a buff or unit is still around (eg mule, broodling, chronoboost).
       * 
* * optional int32 buff_duration_remain = 43; * @return This builder for chaining. */ public Builder clearBuffDurationRemain() { bitField1_ = (bitField1_ & ~0x00000200); buffDurationRemain_ = 0; onChanged(); return this; } private int buffDurationMax_ ; /** *
       * How long the buff or unit is still around (eg mule, broodling, chronoboost).
       * 
* * optional int32 buff_duration_max = 44; * @return Whether the buffDurationMax field is set. */ @java.lang.Override public boolean hasBuffDurationMax() { return ((bitField1_ & 0x00000400) != 0); } /** *
       * How long the buff or unit is still around (eg mule, broodling, chronoboost).
       * 
* * optional int32 buff_duration_max = 44; * @return The buffDurationMax. */ @java.lang.Override public int getBuffDurationMax() { return buffDurationMax_; } /** *
       * How long the buff or unit is still around (eg mule, broodling, chronoboost).
       * 
* * optional int32 buff_duration_max = 44; * @param value The buffDurationMax to set. * @return This builder for chaining. */ public Builder setBuffDurationMax(int value) { bitField1_ |= 0x00000400; buffDurationMax_ = value; onChanged(); return this; } /** *
       * How long the buff or unit is still around (eg mule, broodling, chronoboost).
       * 
* * optional int32 buff_duration_max = 44; * @return This builder for chaining. */ public Builder clearBuffDurationMax() { bitField1_ = (bitField1_ & ~0x00000400); buffDurationMax_ = 0; onChanged(); return this; } private java.util.List rallyTargets_ = java.util.Collections.emptyList(); private void ensureRallyTargetsIsMutable() { if (!((bitField1_ & 0x00000800) != 0)) { rallyTargets_ = new java.util.ArrayList(rallyTargets_); bitField1_ |= 0x00000800; } } private com.google.protobuf.RepeatedFieldBuilderV3< SC2APIProtocol.Raw.RallyTarget, SC2APIProtocol.Raw.RallyTarget.Builder, SC2APIProtocol.Raw.RallyTargetOrBuilder> rallyTargetsBuilder_; /** * repeated .SC2APIProtocol.RallyTarget rally_targets = 45; */ public java.util.List getRallyTargetsList() { if (rallyTargetsBuilder_ == null) { return java.util.Collections.unmodifiableList(rallyTargets_); } else { return rallyTargetsBuilder_.getMessageList(); } } /** * repeated .SC2APIProtocol.RallyTarget rally_targets = 45; */ public int getRallyTargetsCount() { if (rallyTargetsBuilder_ == null) { return rallyTargets_.size(); } else { return rallyTargetsBuilder_.getCount(); } } /** * repeated .SC2APIProtocol.RallyTarget rally_targets = 45; */ public SC2APIProtocol.Raw.RallyTarget getRallyTargets(int index) { if (rallyTargetsBuilder_ == null) { return rallyTargets_.get(index); } else { return rallyTargetsBuilder_.getMessage(index); } } /** * repeated .SC2APIProtocol.RallyTarget rally_targets = 45; */ public Builder setRallyTargets( int index, SC2APIProtocol.Raw.RallyTarget value) { if (rallyTargetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRallyTargetsIsMutable(); rallyTargets_.set(index, value); onChanged(); } else { rallyTargetsBuilder_.setMessage(index, value); } return this; } /** * repeated .SC2APIProtocol.RallyTarget rally_targets = 45; */ public Builder setRallyTargets( int index, SC2APIProtocol.Raw.RallyTarget.Builder builderForValue) { if (rallyTargetsBuilder_ == null) { ensureRallyTargetsIsMutable(); rallyTargets_.set(index, builderForValue.build()); onChanged(); } else { rallyTargetsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** * repeated .SC2APIProtocol.RallyTarget rally_targets = 45; */ public Builder addRallyTargets(SC2APIProtocol.Raw.RallyTarget value) { if (rallyTargetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRallyTargetsIsMutable(); rallyTargets_.add(value); onChanged(); } else { rallyTargetsBuilder_.addMessage(value); } return this; } /** * repeated .SC2APIProtocol.RallyTarget rally_targets = 45; */ public Builder addRallyTargets( int index, SC2APIProtocol.Raw.RallyTarget value) { if (rallyTargetsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureRallyTargetsIsMutable(); rallyTargets_.add(index, value); onChanged(); } else { rallyTargetsBuilder_.addMessage(index, value); } return this; } /** * repeated .SC2APIProtocol.RallyTarget rally_targets = 45; */ public Builder addRallyTargets( SC2APIProtocol.Raw.RallyTarget.Builder builderForValue) { if (rallyTargetsBuilder_ == null) { ensureRallyTargetsIsMutable(); rallyTargets_.add(builderForValue.build()); onChanged(); } else { rallyTargetsBuilder_.addMessage(builderForValue.build()); } return this; } /** * repeated .SC2APIProtocol.RallyTarget rally_targets = 45; */ public Builder addRallyTargets( int index, SC2APIProtocol.Raw.RallyTarget.Builder builderForValue) { if (rallyTargetsBuilder_ == null) { ensureRallyTargetsIsMutable(); rallyTargets_.add(index, builderForValue.build()); onChanged(); } else { rallyTargetsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** * repeated .SC2APIProtocol.RallyTarget rally_targets = 45; */ public Builder addAllRallyTargets( java.lang.Iterable values) { if (rallyTargetsBuilder_ == null) { ensureRallyTargetsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, rallyTargets_); onChanged(); } else { rallyTargetsBuilder_.addAllMessages(values); } return this; } /** * repeated .SC2APIProtocol.RallyTarget rally_targets = 45; */ public Builder clearRallyTargets() { if (rallyTargetsBuilder_ == null) { rallyTargets_ = java.util.Collections.emptyList(); bitField1_ = (bitField1_ & ~0x00000800); onChanged(); } else { rallyTargetsBuilder_.clear(); } return this; } /** * repeated .SC2APIProtocol.RallyTarget rally_targets = 45; */ public Builder removeRallyTargets(int index) { if (rallyTargetsBuilder_ == null) { ensureRallyTargetsIsMutable(); rallyTargets_.remove(index); onChanged(); } else { rallyTargetsBuilder_.remove(index); } return this; } /** * repeated .SC2APIProtocol.RallyTarget rally_targets = 45; */ public SC2APIProtocol.Raw.RallyTarget.Builder getRallyTargetsBuilder( int index) { return getRallyTargetsFieldBuilder().getBuilder(index); } /** * repeated .SC2APIProtocol.RallyTarget rally_targets = 45; */ public SC2APIProtocol.Raw.RallyTargetOrBuilder getRallyTargetsOrBuilder( int index) { if (rallyTargetsBuilder_ == null) { return rallyTargets_.get(index); } else { return rallyTargetsBuilder_.getMessageOrBuilder(index); } } /** * repeated .SC2APIProtocol.RallyTarget rally_targets = 45; */ public java.util.List getRallyTargetsOrBuilderList() { if (rallyTargetsBuilder_ != null) { return rallyTargetsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(rallyTargets_); } } /** * repeated .SC2APIProtocol.RallyTarget rally_targets = 45; */ public SC2APIProtocol.Raw.RallyTarget.Builder addRallyTargetsBuilder() { return getRallyTargetsFieldBuilder().addBuilder( SC2APIProtocol.Raw.RallyTarget.getDefaultInstance()); } /** * repeated .SC2APIProtocol.RallyTarget rally_targets = 45; */ public SC2APIProtocol.Raw.RallyTarget.Builder addRallyTargetsBuilder( int index) { return getRallyTargetsFieldBuilder().addBuilder( index, SC2APIProtocol.Raw.RallyTarget.getDefaultInstance()); } /** * repeated .SC2APIProtocol.RallyTarget rally_targets = 45; */ public java.util.List getRallyTargetsBuilderList() { return getRallyTargetsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< SC2APIProtocol.Raw.RallyTarget, SC2APIProtocol.Raw.RallyTarget.Builder, SC2APIProtocol.Raw.RallyTargetOrBuilder> getRallyTargetsFieldBuilder() { if (rallyTargetsBuilder_ == null) { rallyTargetsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< SC2APIProtocol.Raw.RallyTarget, SC2APIProtocol.Raw.RallyTarget.Builder, SC2APIProtocol.Raw.RallyTargetOrBuilder>( rallyTargets_, ((bitField1_ & 0x00000800) != 0), getParentForChildren(), isClean()); rallyTargets_ = null; } return rallyTargetsBuilder_; } @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.Unit) } // @@protoc_insertion_point(class_scope:SC2APIProtocol.Unit) private static final SC2APIProtocol.Raw.Unit DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new SC2APIProtocol.Raw.Unit(); } public static SC2APIProtocol.Raw.Unit getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Unit 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.Raw.Unit getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface MapStateOrBuilder extends // @@protoc_insertion_point(interface_extends:SC2APIProtocol.MapState) com.google.protobuf.MessageOrBuilder { /** *
     * 1 byte visibility layer.
     * 
* * optional .SC2APIProtocol.ImageData visibility = 1; * @return Whether the visibility field is set. */ boolean hasVisibility(); /** *
     * 1 byte visibility layer.
     * 
* * optional .SC2APIProtocol.ImageData visibility = 1; * @return The visibility. */ SC2APIProtocol.Common.ImageData getVisibility(); /** *
     * 1 byte visibility layer.
     * 
* * optional .SC2APIProtocol.ImageData visibility = 1; */ SC2APIProtocol.Common.ImageDataOrBuilder getVisibilityOrBuilder(); /** *
     * 1 bit creep layer.
     * 
* * optional .SC2APIProtocol.ImageData creep = 2; * @return Whether the creep field is set. */ boolean hasCreep(); /** *
     * 1 bit creep layer.
     * 
* * optional .SC2APIProtocol.ImageData creep = 2; * @return The creep. */ SC2APIProtocol.Common.ImageData getCreep(); /** *
     * 1 bit creep layer.
     * 
* * optional .SC2APIProtocol.ImageData creep = 2; */ SC2APIProtocol.Common.ImageDataOrBuilder getCreepOrBuilder(); } /** * Protobuf type {@code SC2APIProtocol.MapState} */ public static final class MapState extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:SC2APIProtocol.MapState) MapStateOrBuilder { private static final long serialVersionUID = 0L; // Use MapState.newBuilder() to construct. private MapState(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private MapState() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new MapState(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Raw.internal_static_SC2APIProtocol_MapState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Raw.internal_static_SC2APIProtocol_MapState_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Raw.MapState.class, SC2APIProtocol.Raw.MapState.Builder.class); } private int bitField0_; public static final int VISIBILITY_FIELD_NUMBER = 1; private SC2APIProtocol.Common.ImageData visibility_; /** *
     * 1 byte visibility layer.
     * 
* * optional .SC2APIProtocol.ImageData visibility = 1; * @return Whether the visibility field is set. */ @java.lang.Override public boolean hasVisibility() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * 1 byte visibility layer.
     * 
* * optional .SC2APIProtocol.ImageData visibility = 1; * @return The visibility. */ @java.lang.Override public SC2APIProtocol.Common.ImageData getVisibility() { return visibility_ == null ? SC2APIProtocol.Common.ImageData.getDefaultInstance() : visibility_; } /** *
     * 1 byte visibility layer.
     * 
* * optional .SC2APIProtocol.ImageData visibility = 1; */ @java.lang.Override public SC2APIProtocol.Common.ImageDataOrBuilder getVisibilityOrBuilder() { return visibility_ == null ? SC2APIProtocol.Common.ImageData.getDefaultInstance() : visibility_; } public static final int CREEP_FIELD_NUMBER = 2; private SC2APIProtocol.Common.ImageData creep_; /** *
     * 1 bit creep layer.
     * 
* * optional .SC2APIProtocol.ImageData creep = 2; * @return Whether the creep field is set. */ @java.lang.Override public boolean hasCreep() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * 1 bit creep layer.
     * 
* * optional .SC2APIProtocol.ImageData creep = 2; * @return The creep. */ @java.lang.Override public SC2APIProtocol.Common.ImageData getCreep() { return creep_ == null ? SC2APIProtocol.Common.ImageData.getDefaultInstance() : creep_; } /** *
     * 1 bit creep layer.
     * 
* * optional .SC2APIProtocol.ImageData creep = 2; */ @java.lang.Override public SC2APIProtocol.Common.ImageDataOrBuilder getCreepOrBuilder() { return creep_ == null ? SC2APIProtocol.Common.ImageData.getDefaultInstance() : creep_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getVisibility()); } if (((bitField0_ & 0x00000002) != 0)) { output.writeMessage(2, getCreep()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getVisibility()); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, getCreep()); } 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.Raw.MapState)) { return super.equals(obj); } SC2APIProtocol.Raw.MapState other = (SC2APIProtocol.Raw.MapState) obj; if (hasVisibility() != other.hasVisibility()) return false; if (hasVisibility()) { if (!getVisibility() .equals(other.getVisibility())) return false; } if (hasCreep() != other.hasCreep()) return false; if (hasCreep()) { if (!getCreep() .equals(other.getCreep())) 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 (hasVisibility()) { hash = (37 * hash) + VISIBILITY_FIELD_NUMBER; hash = (53 * hash) + getVisibility().hashCode(); } if (hasCreep()) { hash = (37 * hash) + CREEP_FIELD_NUMBER; hash = (53 * hash) + getCreep().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static SC2APIProtocol.Raw.MapState parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Raw.MapState parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Raw.MapState parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Raw.MapState parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Raw.MapState parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Raw.MapState parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Raw.MapState parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Raw.MapState 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.Raw.MapState parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static SC2APIProtocol.Raw.MapState 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.Raw.MapState parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Raw.MapState 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.Raw.MapState 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.MapState} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:SC2APIProtocol.MapState) SC2APIProtocol.Raw.MapStateOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Raw.internal_static_SC2APIProtocol_MapState_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Raw.internal_static_SC2APIProtocol_MapState_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Raw.MapState.class, SC2APIProtocol.Raw.MapState.Builder.class); } // Construct using SC2APIProtocol.Raw.MapState.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getVisibilityFieldBuilder(); getCreepFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (visibilityBuilder_ == null) { visibility_ = null; } else { visibilityBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); if (creepBuilder_ == null) { creep_ = null; } else { creepBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return SC2APIProtocol.Raw.internal_static_SC2APIProtocol_MapState_descriptor; } @java.lang.Override public SC2APIProtocol.Raw.MapState getDefaultInstanceForType() { return SC2APIProtocol.Raw.MapState.getDefaultInstance(); } @java.lang.Override public SC2APIProtocol.Raw.MapState build() { SC2APIProtocol.Raw.MapState result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public SC2APIProtocol.Raw.MapState buildPartial() { SC2APIProtocol.Raw.MapState result = new SC2APIProtocol.Raw.MapState(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { if (visibilityBuilder_ == null) { result.visibility_ = visibility_; } else { result.visibility_ = visibilityBuilder_.build(); } to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { if (creepBuilder_ == null) { result.creep_ = creep_; } else { result.creep_ = creepBuilder_.build(); } to_bitField0_ |= 0x00000002; } result.bitField0_ = to_bitField0_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof SC2APIProtocol.Raw.MapState) { return mergeFrom((SC2APIProtocol.Raw.MapState)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(SC2APIProtocol.Raw.MapState other) { if (other == SC2APIProtocol.Raw.MapState.getDefaultInstance()) return this; if (other.hasVisibility()) { mergeVisibility(other.getVisibility()); } if (other.hasCreep()) { mergeCreep(other.getCreep()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getVisibilityFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 case 18: { input.readMessage( getCreepFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000002; break; } // case 18 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private SC2APIProtocol.Common.ImageData visibility_; private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Common.ImageData, SC2APIProtocol.Common.ImageData.Builder, SC2APIProtocol.Common.ImageDataOrBuilder> visibilityBuilder_; /** *
       * 1 byte visibility layer.
       * 
* * optional .SC2APIProtocol.ImageData visibility = 1; * @return Whether the visibility field is set. */ public boolean hasVisibility() { return ((bitField0_ & 0x00000001) != 0); } /** *
       * 1 byte visibility layer.
       * 
* * optional .SC2APIProtocol.ImageData visibility = 1; * @return The visibility. */ public SC2APIProtocol.Common.ImageData getVisibility() { if (visibilityBuilder_ == null) { return visibility_ == null ? SC2APIProtocol.Common.ImageData.getDefaultInstance() : visibility_; } else { return visibilityBuilder_.getMessage(); } } /** *
       * 1 byte visibility layer.
       * 
* * optional .SC2APIProtocol.ImageData visibility = 1; */ public Builder setVisibility(SC2APIProtocol.Common.ImageData value) { if (visibilityBuilder_ == null) { if (value == null) { throw new NullPointerException(); } visibility_ = value; onChanged(); } else { visibilityBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** *
       * 1 byte visibility layer.
       * 
* * optional .SC2APIProtocol.ImageData visibility = 1; */ public Builder setVisibility( SC2APIProtocol.Common.ImageData.Builder builderForValue) { if (visibilityBuilder_ == null) { visibility_ = builderForValue.build(); onChanged(); } else { visibilityBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** *
       * 1 byte visibility layer.
       * 
* * optional .SC2APIProtocol.ImageData visibility = 1; */ public Builder mergeVisibility(SC2APIProtocol.Common.ImageData value) { if (visibilityBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && visibility_ != null && visibility_ != SC2APIProtocol.Common.ImageData.getDefaultInstance()) { visibility_ = SC2APIProtocol.Common.ImageData.newBuilder(visibility_).mergeFrom(value).buildPartial(); } else { visibility_ = value; } onChanged(); } else { visibilityBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** *
       * 1 byte visibility layer.
       * 
* * optional .SC2APIProtocol.ImageData visibility = 1; */ public Builder clearVisibility() { if (visibilityBuilder_ == null) { visibility_ = null; onChanged(); } else { visibilityBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** *
       * 1 byte visibility layer.
       * 
* * optional .SC2APIProtocol.ImageData visibility = 1; */ public SC2APIProtocol.Common.ImageData.Builder getVisibilityBuilder() { bitField0_ |= 0x00000001; onChanged(); return getVisibilityFieldBuilder().getBuilder(); } /** *
       * 1 byte visibility layer.
       * 
* * optional .SC2APIProtocol.ImageData visibility = 1; */ public SC2APIProtocol.Common.ImageDataOrBuilder getVisibilityOrBuilder() { if (visibilityBuilder_ != null) { return visibilityBuilder_.getMessageOrBuilder(); } else { return visibility_ == null ? SC2APIProtocol.Common.ImageData.getDefaultInstance() : visibility_; } } /** *
       * 1 byte visibility layer.
       * 
* * optional .SC2APIProtocol.ImageData visibility = 1; */ private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Common.ImageData, SC2APIProtocol.Common.ImageData.Builder, SC2APIProtocol.Common.ImageDataOrBuilder> getVisibilityFieldBuilder() { if (visibilityBuilder_ == null) { visibilityBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Common.ImageData, SC2APIProtocol.Common.ImageData.Builder, SC2APIProtocol.Common.ImageDataOrBuilder>( getVisibility(), getParentForChildren(), isClean()); visibility_ = null; } return visibilityBuilder_; } private SC2APIProtocol.Common.ImageData creep_; private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Common.ImageData, SC2APIProtocol.Common.ImageData.Builder, SC2APIProtocol.Common.ImageDataOrBuilder> creepBuilder_; /** *
       * 1 bit creep layer.
       * 
* * optional .SC2APIProtocol.ImageData creep = 2; * @return Whether the creep field is set. */ public boolean hasCreep() { return ((bitField0_ & 0x00000002) != 0); } /** *
       * 1 bit creep layer.
       * 
* * optional .SC2APIProtocol.ImageData creep = 2; * @return The creep. */ public SC2APIProtocol.Common.ImageData getCreep() { if (creepBuilder_ == null) { return creep_ == null ? SC2APIProtocol.Common.ImageData.getDefaultInstance() : creep_; } else { return creepBuilder_.getMessage(); } } /** *
       * 1 bit creep layer.
       * 
* * optional .SC2APIProtocol.ImageData creep = 2; */ public Builder setCreep(SC2APIProtocol.Common.ImageData value) { if (creepBuilder_ == null) { if (value == null) { throw new NullPointerException(); } creep_ = value; onChanged(); } else { creepBuilder_.setMessage(value); } bitField0_ |= 0x00000002; return this; } /** *
       * 1 bit creep layer.
       * 
* * optional .SC2APIProtocol.ImageData creep = 2; */ public Builder setCreep( SC2APIProtocol.Common.ImageData.Builder builderForValue) { if (creepBuilder_ == null) { creep_ = builderForValue.build(); onChanged(); } else { creepBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000002; return this; } /** *
       * 1 bit creep layer.
       * 
* * optional .SC2APIProtocol.ImageData creep = 2; */ public Builder mergeCreep(SC2APIProtocol.Common.ImageData value) { if (creepBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0) && creep_ != null && creep_ != SC2APIProtocol.Common.ImageData.getDefaultInstance()) { creep_ = SC2APIProtocol.Common.ImageData.newBuilder(creep_).mergeFrom(value).buildPartial(); } else { creep_ = value; } onChanged(); } else { creepBuilder_.mergeFrom(value); } bitField0_ |= 0x00000002; return this; } /** *
       * 1 bit creep layer.
       * 
* * optional .SC2APIProtocol.ImageData creep = 2; */ public Builder clearCreep() { if (creepBuilder_ == null) { creep_ = null; onChanged(); } else { creepBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); return this; } /** *
       * 1 bit creep layer.
       * 
* * optional .SC2APIProtocol.ImageData creep = 2; */ public SC2APIProtocol.Common.ImageData.Builder getCreepBuilder() { bitField0_ |= 0x00000002; onChanged(); return getCreepFieldBuilder().getBuilder(); } /** *
       * 1 bit creep layer.
       * 
* * optional .SC2APIProtocol.ImageData creep = 2; */ public SC2APIProtocol.Common.ImageDataOrBuilder getCreepOrBuilder() { if (creepBuilder_ != null) { return creepBuilder_.getMessageOrBuilder(); } else { return creep_ == null ? SC2APIProtocol.Common.ImageData.getDefaultInstance() : creep_; } } /** *
       * 1 bit creep layer.
       * 
* * optional .SC2APIProtocol.ImageData creep = 2; */ private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Common.ImageData, SC2APIProtocol.Common.ImageData.Builder, SC2APIProtocol.Common.ImageDataOrBuilder> getCreepFieldBuilder() { if (creepBuilder_ == null) { creepBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Common.ImageData, SC2APIProtocol.Common.ImageData.Builder, SC2APIProtocol.Common.ImageDataOrBuilder>( getCreep(), getParentForChildren(), isClean()); creep_ = null; } return creepBuilder_; } @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.MapState) } // @@protoc_insertion_point(class_scope:SC2APIProtocol.MapState) private static final SC2APIProtocol.Raw.MapState DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new SC2APIProtocol.Raw.MapState(); } public static SC2APIProtocol.Raw.MapState getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public MapState 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.Raw.MapState getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface EventOrBuilder extends // @@protoc_insertion_point(interface_extends:SC2APIProtocol.Event) com.google.protobuf.MessageOrBuilder { /** * repeated uint64 dead_units = 1; * @return A list containing the deadUnits. */ java.util.List getDeadUnitsList(); /** * repeated uint64 dead_units = 1; * @return The count of deadUnits. */ int getDeadUnitsCount(); /** * repeated uint64 dead_units = 1; * @param index The index of the element to return. * @return The deadUnits at the given index. */ long getDeadUnits(int index); } /** * Protobuf type {@code SC2APIProtocol.Event} */ public static final class Event extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:SC2APIProtocol.Event) EventOrBuilder { private static final long serialVersionUID = 0L; // Use Event.newBuilder() to construct. private Event(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Event() { deadUnits_ = emptyLongList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Event(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Raw.internal_static_SC2APIProtocol_Event_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Raw.internal_static_SC2APIProtocol_Event_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Raw.Event.class, SC2APIProtocol.Raw.Event.Builder.class); } public static final int DEAD_UNITS_FIELD_NUMBER = 1; private com.google.protobuf.Internal.LongList deadUnits_; /** * repeated uint64 dead_units = 1; * @return A list containing the deadUnits. */ @java.lang.Override public java.util.List getDeadUnitsList() { return deadUnits_; } /** * repeated uint64 dead_units = 1; * @return The count of deadUnits. */ public int getDeadUnitsCount() { return deadUnits_.size(); } /** * repeated uint64 dead_units = 1; * @param index The index of the element to return. * @return The deadUnits at the given index. */ public long getDeadUnits(int index) { return deadUnits_.getLong(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < deadUnits_.size(); i++) { output.writeUInt64(1, deadUnits_.getLong(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; { int dataSize = 0; for (int i = 0; i < deadUnits_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeUInt64SizeNoTag(deadUnits_.getLong(i)); } size += dataSize; size += 1 * getDeadUnitsList().size(); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof SC2APIProtocol.Raw.Event)) { return super.equals(obj); } SC2APIProtocol.Raw.Event other = (SC2APIProtocol.Raw.Event) obj; if (!getDeadUnitsList() .equals(other.getDeadUnitsList())) 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 (getDeadUnitsCount() > 0) { hash = (37 * hash) + DEAD_UNITS_FIELD_NUMBER; hash = (53 * hash) + getDeadUnitsList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static SC2APIProtocol.Raw.Event parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Raw.Event parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Raw.Event parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Raw.Event parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Raw.Event parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Raw.Event parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Raw.Event parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Raw.Event 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.Raw.Event parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static SC2APIProtocol.Raw.Event 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.Raw.Event parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Raw.Event 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.Raw.Event 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.Event} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:SC2APIProtocol.Event) SC2APIProtocol.Raw.EventOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Raw.internal_static_SC2APIProtocol_Event_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Raw.internal_static_SC2APIProtocol_Event_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Raw.Event.class, SC2APIProtocol.Raw.Event.Builder.class); } // Construct using SC2APIProtocol.Raw.Event.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); deadUnits_ = emptyLongList(); bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return SC2APIProtocol.Raw.internal_static_SC2APIProtocol_Event_descriptor; } @java.lang.Override public SC2APIProtocol.Raw.Event getDefaultInstanceForType() { return SC2APIProtocol.Raw.Event.getDefaultInstance(); } @java.lang.Override public SC2APIProtocol.Raw.Event build() { SC2APIProtocol.Raw.Event result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public SC2APIProtocol.Raw.Event buildPartial() { SC2APIProtocol.Raw.Event result = new SC2APIProtocol.Raw.Event(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { deadUnits_.makeImmutable(); bitField0_ = (bitField0_ & ~0x00000001); } result.deadUnits_ = deadUnits_; 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.Raw.Event) { return mergeFrom((SC2APIProtocol.Raw.Event)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(SC2APIProtocol.Raw.Event other) { if (other == SC2APIProtocol.Raw.Event.getDefaultInstance()) return this; if (!other.deadUnits_.isEmpty()) { if (deadUnits_.isEmpty()) { deadUnits_ = other.deadUnits_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureDeadUnitsIsMutable(); deadUnits_.addAll(other.deadUnits_); } onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { long v = input.readUInt64(); ensureDeadUnitsIsMutable(); deadUnits_.addLong(v); break; } // case 8 case 10: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); ensureDeadUnitsIsMutable(); while (input.getBytesUntilLimit() > 0) { deadUnits_.addLong(input.readUInt64()); } input.popLimit(limit); break; } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private com.google.protobuf.Internal.LongList deadUnits_ = emptyLongList(); private void ensureDeadUnitsIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { deadUnits_ = mutableCopy(deadUnits_); bitField0_ |= 0x00000001; } } /** * repeated uint64 dead_units = 1; * @return A list containing the deadUnits. */ public java.util.List getDeadUnitsList() { return ((bitField0_ & 0x00000001) != 0) ? java.util.Collections.unmodifiableList(deadUnits_) : deadUnits_; } /** * repeated uint64 dead_units = 1; * @return The count of deadUnits. */ public int getDeadUnitsCount() { return deadUnits_.size(); } /** * repeated uint64 dead_units = 1; * @param index The index of the element to return. * @return The deadUnits at the given index. */ public long getDeadUnits(int index) { return deadUnits_.getLong(index); } /** * repeated uint64 dead_units = 1; * @param index The index to set the value at. * @param value The deadUnits to set. * @return This builder for chaining. */ public Builder setDeadUnits( int index, long value) { ensureDeadUnitsIsMutable(); deadUnits_.setLong(index, value); onChanged(); return this; } /** * repeated uint64 dead_units = 1; * @param value The deadUnits to add. * @return This builder for chaining. */ public Builder addDeadUnits(long value) { ensureDeadUnitsIsMutable(); deadUnits_.addLong(value); onChanged(); return this; } /** * repeated uint64 dead_units = 1; * @param values The deadUnits to add. * @return This builder for chaining. */ public Builder addAllDeadUnits( java.lang.Iterable values) { ensureDeadUnitsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, deadUnits_); onChanged(); return this; } /** * repeated uint64 dead_units = 1; * @return This builder for chaining. */ public Builder clearDeadUnits() { deadUnits_ = emptyLongList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:SC2APIProtocol.Event) } // @@protoc_insertion_point(class_scope:SC2APIProtocol.Event) private static final SC2APIProtocol.Raw.Event DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new SC2APIProtocol.Raw.Event(); } public static SC2APIProtocol.Raw.Event getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Event 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.Raw.Event getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface EffectOrBuilder extends // @@protoc_insertion_point(interface_extends:SC2APIProtocol.Effect) com.google.protobuf.MessageOrBuilder { /** * optional uint32 effect_id = 1; * @return Whether the effectId field is set. */ boolean hasEffectId(); /** * optional uint32 effect_id = 1; * @return The effectId. */ int getEffectId(); /** *
     * Effect may impact multiple locations. (eg. Lurker attack)
     * 
* * repeated .SC2APIProtocol.Point2D pos = 2; */ java.util.List getPosList(); /** *
     * Effect may impact multiple locations. (eg. Lurker attack)
     * 
* * repeated .SC2APIProtocol.Point2D pos = 2; */ SC2APIProtocol.Common.Point2D getPos(int index); /** *
     * Effect may impact multiple locations. (eg. Lurker attack)
     * 
* * repeated .SC2APIProtocol.Point2D pos = 2; */ int getPosCount(); /** *
     * Effect may impact multiple locations. (eg. Lurker attack)
     * 
* * repeated .SC2APIProtocol.Point2D pos = 2; */ java.util.List getPosOrBuilderList(); /** *
     * Effect may impact multiple locations. (eg. Lurker attack)
     * 
* * repeated .SC2APIProtocol.Point2D pos = 2; */ SC2APIProtocol.Common.Point2DOrBuilder getPosOrBuilder( int index); /** * optional .SC2APIProtocol.Alliance alliance = 3; * @return Whether the alliance field is set. */ boolean hasAlliance(); /** * optional .SC2APIProtocol.Alliance alliance = 3; * @return The alliance. */ SC2APIProtocol.Raw.Alliance getAlliance(); /** * optional int32 owner = 4; * @return Whether the owner field is set. */ boolean hasOwner(); /** * optional int32 owner = 4; * @return The owner. */ int getOwner(); /** * optional float radius = 5; * @return Whether the radius field is set. */ boolean hasRadius(); /** * optional float radius = 5; * @return The radius. */ float getRadius(); } /** * Protobuf type {@code SC2APIProtocol.Effect} */ public static final class Effect extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:SC2APIProtocol.Effect) EffectOrBuilder { private static final long serialVersionUID = 0L; // Use Effect.newBuilder() to construct. private Effect(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private Effect() { pos_ = java.util.Collections.emptyList(); alliance_ = 1; } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new Effect(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Raw.internal_static_SC2APIProtocol_Effect_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Raw.internal_static_SC2APIProtocol_Effect_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Raw.Effect.class, SC2APIProtocol.Raw.Effect.Builder.class); } private int bitField0_; public static final int EFFECT_ID_FIELD_NUMBER = 1; private int effectId_; /** * optional uint32 effect_id = 1; * @return Whether the effectId field is set. */ @java.lang.Override public boolean hasEffectId() { return ((bitField0_ & 0x00000001) != 0); } /** * optional uint32 effect_id = 1; * @return The effectId. */ @java.lang.Override public int getEffectId() { return effectId_; } public static final int POS_FIELD_NUMBER = 2; private java.util.List pos_; /** *
     * Effect may impact multiple locations. (eg. Lurker attack)
     * 
* * repeated .SC2APIProtocol.Point2D pos = 2; */ @java.lang.Override public java.util.List getPosList() { return pos_; } /** *
     * Effect may impact multiple locations. (eg. Lurker attack)
     * 
* * repeated .SC2APIProtocol.Point2D pos = 2; */ @java.lang.Override public java.util.List getPosOrBuilderList() { return pos_; } /** *
     * Effect may impact multiple locations. (eg. Lurker attack)
     * 
* * repeated .SC2APIProtocol.Point2D pos = 2; */ @java.lang.Override public int getPosCount() { return pos_.size(); } /** *
     * Effect may impact multiple locations. (eg. Lurker attack)
     * 
* * repeated .SC2APIProtocol.Point2D pos = 2; */ @java.lang.Override public SC2APIProtocol.Common.Point2D getPos(int index) { return pos_.get(index); } /** *
     * Effect may impact multiple locations. (eg. Lurker attack)
     * 
* * repeated .SC2APIProtocol.Point2D pos = 2; */ @java.lang.Override public SC2APIProtocol.Common.Point2DOrBuilder getPosOrBuilder( int index) { return pos_.get(index); } public static final int ALLIANCE_FIELD_NUMBER = 3; private int alliance_; /** * optional .SC2APIProtocol.Alliance alliance = 3; * @return Whether the alliance field is set. */ @java.lang.Override public boolean hasAlliance() { return ((bitField0_ & 0x00000002) != 0); } /** * optional .SC2APIProtocol.Alliance alliance = 3; * @return The alliance. */ @java.lang.Override public SC2APIProtocol.Raw.Alliance getAlliance() { @SuppressWarnings("deprecation") SC2APIProtocol.Raw.Alliance result = SC2APIProtocol.Raw.Alliance.valueOf(alliance_); return result == null ? SC2APIProtocol.Raw.Alliance.Self : result; } public static final int OWNER_FIELD_NUMBER = 4; private int owner_; /** * optional int32 owner = 4; * @return Whether the owner field is set. */ @java.lang.Override public boolean hasOwner() { return ((bitField0_ & 0x00000004) != 0); } /** * optional int32 owner = 4; * @return The owner. */ @java.lang.Override public int getOwner() { return owner_; } public static final int RADIUS_FIELD_NUMBER = 5; private float radius_; /** * optional float radius = 5; * @return Whether the radius field is set. */ @java.lang.Override public boolean hasRadius() { return ((bitField0_ & 0x00000008) != 0); } /** * optional float radius = 5; * @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_); } for (int i = 0; i < pos_.size(); i++) { output.writeMessage(2, pos_.get(i)); } if (((bitField0_ & 0x00000002) != 0)) { output.writeEnum(3, alliance_); } if (((bitField0_ & 0x00000004) != 0)) { output.writeInt32(4, owner_); } if (((bitField0_ & 0x00000008) != 0)) { output.writeFloat(5, 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_); } for (int i = 0; i < pos_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, pos_.get(i)); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(3, alliance_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(4, owner_); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeFloatSize(5, 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.Raw.Effect)) { return super.equals(obj); } SC2APIProtocol.Raw.Effect other = (SC2APIProtocol.Raw.Effect) obj; if (hasEffectId() != other.hasEffectId()) return false; if (hasEffectId()) { if (getEffectId() != other.getEffectId()) return false; } if (!getPosList() .equals(other.getPosList())) return false; if (hasAlliance() != other.hasAlliance()) return false; if (hasAlliance()) { if (alliance_ != other.alliance_) return false; } if (hasOwner() != other.hasOwner()) return false; if (hasOwner()) { if (getOwner() != other.getOwner()) 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 (getPosCount() > 0) { hash = (37 * hash) + POS_FIELD_NUMBER; hash = (53 * hash) + getPosList().hashCode(); } if (hasAlliance()) { hash = (37 * hash) + ALLIANCE_FIELD_NUMBER; hash = (53 * hash) + alliance_; } if (hasOwner()) { hash = (37 * hash) + OWNER_FIELD_NUMBER; hash = (53 * hash) + getOwner(); } 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.Raw.Effect parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Raw.Effect parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Raw.Effect parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Raw.Effect parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Raw.Effect parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Raw.Effect parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Raw.Effect parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Raw.Effect 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.Raw.Effect parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static SC2APIProtocol.Raw.Effect 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.Raw.Effect parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Raw.Effect 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.Raw.Effect 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.Effect} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:SC2APIProtocol.Effect) SC2APIProtocol.Raw.EffectOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Raw.internal_static_SC2APIProtocol_Effect_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Raw.internal_static_SC2APIProtocol_Effect_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Raw.Effect.class, SC2APIProtocol.Raw.Effect.Builder.class); } // Construct using SC2APIProtocol.Raw.Effect.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); if (posBuilder_ == null) { pos_ = java.util.Collections.emptyList(); } else { pos_ = null; posBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000002); alliance_ = 1; bitField0_ = (bitField0_ & ~0x00000004); owner_ = 0; bitField0_ = (bitField0_ & ~0x00000008); radius_ = 0F; bitField0_ = (bitField0_ & ~0x00000010); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return SC2APIProtocol.Raw.internal_static_SC2APIProtocol_Effect_descriptor; } @java.lang.Override public SC2APIProtocol.Raw.Effect getDefaultInstanceForType() { return SC2APIProtocol.Raw.Effect.getDefaultInstance(); } @java.lang.Override public SC2APIProtocol.Raw.Effect build() { SC2APIProtocol.Raw.Effect result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public SC2APIProtocol.Raw.Effect buildPartial() { SC2APIProtocol.Raw.Effect result = new SC2APIProtocol.Raw.Effect(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.effectId_ = effectId_; to_bitField0_ |= 0x00000001; } if (posBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { pos_ = java.util.Collections.unmodifiableList(pos_); bitField0_ = (bitField0_ & ~0x00000002); } result.pos_ = pos_; } else { result.pos_ = posBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { to_bitField0_ |= 0x00000002; } result.alliance_ = alliance_; if (((from_bitField0_ & 0x00000008) != 0)) { result.owner_ = owner_; to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000010) != 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.Raw.Effect) { return mergeFrom((SC2APIProtocol.Raw.Effect)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(SC2APIProtocol.Raw.Effect other) { if (other == SC2APIProtocol.Raw.Effect.getDefaultInstance()) return this; if (other.hasEffectId()) { setEffectId(other.getEffectId()); } if (posBuilder_ == null) { if (!other.pos_.isEmpty()) { if (pos_.isEmpty()) { pos_ = other.pos_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensurePosIsMutable(); pos_.addAll(other.pos_); } onChanged(); } } else { if (!other.pos_.isEmpty()) { if (posBuilder_.isEmpty()) { posBuilder_.dispose(); posBuilder_ = null; pos_ = other.pos_; bitField0_ = (bitField0_ & ~0x00000002); posBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getPosFieldBuilder() : null; } else { posBuilder_.addAllMessages(other.pos_); } } } if (other.hasAlliance()) { setAlliance(other.getAlliance()); } if (other.hasOwner()) { setOwner(other.getOwner()); } 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: { SC2APIProtocol.Common.Point2D m = input.readMessage( SC2APIProtocol.Common.Point2D.PARSER, extensionRegistry); if (posBuilder_ == null) { ensurePosIsMutable(); pos_.add(m); } else { posBuilder_.addMessage(m); } break; } // case 18 case 24: { int tmpRaw = input.readEnum(); SC2APIProtocol.Raw.Alliance tmpValue = SC2APIProtocol.Raw.Alliance.forNumber(tmpRaw); if (tmpValue == null) { mergeUnknownVarintField(3, tmpRaw); } else { alliance_ = tmpRaw; bitField0_ |= 0x00000004; } break; } // case 24 case 32: { owner_ = input.readInt32(); bitField0_ |= 0x00000008; break; } // case 32 case 45: { radius_ = input.readFloat(); bitField0_ |= 0x00000010; break; } // case 45 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_ ; /** * optional uint32 effect_id = 1; * @return Whether the effectId field is set. */ @java.lang.Override public boolean hasEffectId() { return ((bitField0_ & 0x00000001) != 0); } /** * optional uint32 effect_id = 1; * @return The effectId. */ @java.lang.Override public int getEffectId() { return effectId_; } /** * 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; } /** * optional uint32 effect_id = 1; * @return This builder for chaining. */ public Builder clearEffectId() { bitField0_ = (bitField0_ & ~0x00000001); effectId_ = 0; onChanged(); return this; } private java.util.List pos_ = java.util.Collections.emptyList(); private void ensurePosIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { pos_ = new java.util.ArrayList(pos_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< SC2APIProtocol.Common.Point2D, SC2APIProtocol.Common.Point2D.Builder, SC2APIProtocol.Common.Point2DOrBuilder> posBuilder_; /** *
       * Effect may impact multiple locations. (eg. Lurker attack)
       * 
* * repeated .SC2APIProtocol.Point2D pos = 2; */ public java.util.List getPosList() { if (posBuilder_ == null) { return java.util.Collections.unmodifiableList(pos_); } else { return posBuilder_.getMessageList(); } } /** *
       * Effect may impact multiple locations. (eg. Lurker attack)
       * 
* * repeated .SC2APIProtocol.Point2D pos = 2; */ public int getPosCount() { if (posBuilder_ == null) { return pos_.size(); } else { return posBuilder_.getCount(); } } /** *
       * Effect may impact multiple locations. (eg. Lurker attack)
       * 
* * repeated .SC2APIProtocol.Point2D pos = 2; */ public SC2APIProtocol.Common.Point2D getPos(int index) { if (posBuilder_ == null) { return pos_.get(index); } else { return posBuilder_.getMessage(index); } } /** *
       * Effect may impact multiple locations. (eg. Lurker attack)
       * 
* * repeated .SC2APIProtocol.Point2D pos = 2; */ public Builder setPos( int index, SC2APIProtocol.Common.Point2D value) { if (posBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePosIsMutable(); pos_.set(index, value); onChanged(); } else { posBuilder_.setMessage(index, value); } return this; } /** *
       * Effect may impact multiple locations. (eg. Lurker attack)
       * 
* * repeated .SC2APIProtocol.Point2D pos = 2; */ public Builder setPos( int index, SC2APIProtocol.Common.Point2D.Builder builderForValue) { if (posBuilder_ == null) { ensurePosIsMutable(); pos_.set(index, builderForValue.build()); onChanged(); } else { posBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
       * Effect may impact multiple locations. (eg. Lurker attack)
       * 
* * repeated .SC2APIProtocol.Point2D pos = 2; */ public Builder addPos(SC2APIProtocol.Common.Point2D value) { if (posBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePosIsMutable(); pos_.add(value); onChanged(); } else { posBuilder_.addMessage(value); } return this; } /** *
       * Effect may impact multiple locations. (eg. Lurker attack)
       * 
* * repeated .SC2APIProtocol.Point2D pos = 2; */ public Builder addPos( int index, SC2APIProtocol.Common.Point2D value) { if (posBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensurePosIsMutable(); pos_.add(index, value); onChanged(); } else { posBuilder_.addMessage(index, value); } return this; } /** *
       * Effect may impact multiple locations. (eg. Lurker attack)
       * 
* * repeated .SC2APIProtocol.Point2D pos = 2; */ public Builder addPos( SC2APIProtocol.Common.Point2D.Builder builderForValue) { if (posBuilder_ == null) { ensurePosIsMutable(); pos_.add(builderForValue.build()); onChanged(); } else { posBuilder_.addMessage(builderForValue.build()); } return this; } /** *
       * Effect may impact multiple locations. (eg. Lurker attack)
       * 
* * repeated .SC2APIProtocol.Point2D pos = 2; */ public Builder addPos( int index, SC2APIProtocol.Common.Point2D.Builder builderForValue) { if (posBuilder_ == null) { ensurePosIsMutable(); pos_.add(index, builderForValue.build()); onChanged(); } else { posBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
       * Effect may impact multiple locations. (eg. Lurker attack)
       * 
* * repeated .SC2APIProtocol.Point2D pos = 2; */ public Builder addAllPos( java.lang.Iterable values) { if (posBuilder_ == null) { ensurePosIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, pos_); onChanged(); } else { posBuilder_.addAllMessages(values); } return this; } /** *
       * Effect may impact multiple locations. (eg. Lurker attack)
       * 
* * repeated .SC2APIProtocol.Point2D pos = 2; */ public Builder clearPos() { if (posBuilder_ == null) { pos_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { posBuilder_.clear(); } return this; } /** *
       * Effect may impact multiple locations. (eg. Lurker attack)
       * 
* * repeated .SC2APIProtocol.Point2D pos = 2; */ public Builder removePos(int index) { if (posBuilder_ == null) { ensurePosIsMutable(); pos_.remove(index); onChanged(); } else { posBuilder_.remove(index); } return this; } /** *
       * Effect may impact multiple locations. (eg. Lurker attack)
       * 
* * repeated .SC2APIProtocol.Point2D pos = 2; */ public SC2APIProtocol.Common.Point2D.Builder getPosBuilder( int index) { return getPosFieldBuilder().getBuilder(index); } /** *
       * Effect may impact multiple locations. (eg. Lurker attack)
       * 
* * repeated .SC2APIProtocol.Point2D pos = 2; */ public SC2APIProtocol.Common.Point2DOrBuilder getPosOrBuilder( int index) { if (posBuilder_ == null) { return pos_.get(index); } else { return posBuilder_.getMessageOrBuilder(index); } } /** *
       * Effect may impact multiple locations. (eg. Lurker attack)
       * 
* * repeated .SC2APIProtocol.Point2D pos = 2; */ public java.util.List getPosOrBuilderList() { if (posBuilder_ != null) { return posBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(pos_); } } /** *
       * Effect may impact multiple locations. (eg. Lurker attack)
       * 
* * repeated .SC2APIProtocol.Point2D pos = 2; */ public SC2APIProtocol.Common.Point2D.Builder addPosBuilder() { return getPosFieldBuilder().addBuilder( SC2APIProtocol.Common.Point2D.getDefaultInstance()); } /** *
       * Effect may impact multiple locations. (eg. Lurker attack)
       * 
* * repeated .SC2APIProtocol.Point2D pos = 2; */ public SC2APIProtocol.Common.Point2D.Builder addPosBuilder( int index) { return getPosFieldBuilder().addBuilder( index, SC2APIProtocol.Common.Point2D.getDefaultInstance()); } /** *
       * Effect may impact multiple locations. (eg. Lurker attack)
       * 
* * repeated .SC2APIProtocol.Point2D pos = 2; */ public java.util.List getPosBuilderList() { return getPosFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< SC2APIProtocol.Common.Point2D, SC2APIProtocol.Common.Point2D.Builder, SC2APIProtocol.Common.Point2DOrBuilder> getPosFieldBuilder() { if (posBuilder_ == null) { posBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< SC2APIProtocol.Common.Point2D, SC2APIProtocol.Common.Point2D.Builder, SC2APIProtocol.Common.Point2DOrBuilder>( pos_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); pos_ = null; } return posBuilder_; } private int alliance_ = 1; /** * optional .SC2APIProtocol.Alliance alliance = 3; * @return Whether the alliance field is set. */ @java.lang.Override public boolean hasAlliance() { return ((bitField0_ & 0x00000004) != 0); } /** * optional .SC2APIProtocol.Alliance alliance = 3; * @return The alliance. */ @java.lang.Override public SC2APIProtocol.Raw.Alliance getAlliance() { @SuppressWarnings("deprecation") SC2APIProtocol.Raw.Alliance result = SC2APIProtocol.Raw.Alliance.valueOf(alliance_); return result == null ? SC2APIProtocol.Raw.Alliance.Self : result; } /** * optional .SC2APIProtocol.Alliance alliance = 3; * @param value The alliance to set. * @return This builder for chaining. */ public Builder setAlliance(SC2APIProtocol.Raw.Alliance value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; alliance_ = value.getNumber(); onChanged(); return this; } /** * optional .SC2APIProtocol.Alliance alliance = 3; * @return This builder for chaining. */ public Builder clearAlliance() { bitField0_ = (bitField0_ & ~0x00000004); alliance_ = 1; onChanged(); return this; } private int owner_ ; /** * optional int32 owner = 4; * @return Whether the owner field is set. */ @java.lang.Override public boolean hasOwner() { return ((bitField0_ & 0x00000008) != 0); } /** * optional int32 owner = 4; * @return The owner. */ @java.lang.Override public int getOwner() { return owner_; } /** * optional int32 owner = 4; * @param value The owner to set. * @return This builder for chaining. */ public Builder setOwner(int value) { bitField0_ |= 0x00000008; owner_ = value; onChanged(); return this; } /** * optional int32 owner = 4; * @return This builder for chaining. */ public Builder clearOwner() { bitField0_ = (bitField0_ & ~0x00000008); owner_ = 0; onChanged(); return this; } private float radius_ ; /** * optional float radius = 5; * @return Whether the radius field is set. */ @java.lang.Override public boolean hasRadius() { return ((bitField0_ & 0x00000010) != 0); } /** * optional float radius = 5; * @return The radius. */ @java.lang.Override public float getRadius() { return radius_; } /** * optional float radius = 5; * @param value The radius to set. * @return This builder for chaining. */ public Builder setRadius(float value) { bitField0_ |= 0x00000010; radius_ = value; onChanged(); return this; } /** * optional float radius = 5; * @return This builder for chaining. */ public Builder clearRadius() { bitField0_ = (bitField0_ & ~0x00000010); 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.Effect) } // @@protoc_insertion_point(class_scope:SC2APIProtocol.Effect) private static final SC2APIProtocol.Raw.Effect DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new SC2APIProtocol.Raw.Effect(); } public static SC2APIProtocol.Raw.Effect getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Effect 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.Raw.Effect getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ActionRawOrBuilder extends // @@protoc_insertion_point(interface_extends:SC2APIProtocol.ActionRaw) com.google.protobuf.MessageOrBuilder { /** * .SC2APIProtocol.ActionRawUnitCommand unit_command = 1; * @return Whether the unitCommand field is set. */ boolean hasUnitCommand(); /** * .SC2APIProtocol.ActionRawUnitCommand unit_command = 1; * @return The unitCommand. */ SC2APIProtocol.Raw.ActionRawUnitCommand getUnitCommand(); /** * .SC2APIProtocol.ActionRawUnitCommand unit_command = 1; */ SC2APIProtocol.Raw.ActionRawUnitCommandOrBuilder getUnitCommandOrBuilder(); /** * .SC2APIProtocol.ActionRawCameraMove camera_move = 2; * @return Whether the cameraMove field is set. */ boolean hasCameraMove(); /** * .SC2APIProtocol.ActionRawCameraMove camera_move = 2; * @return The cameraMove. */ SC2APIProtocol.Raw.ActionRawCameraMove getCameraMove(); /** * .SC2APIProtocol.ActionRawCameraMove camera_move = 2; */ SC2APIProtocol.Raw.ActionRawCameraMoveOrBuilder getCameraMoveOrBuilder(); /** * .SC2APIProtocol.ActionRawToggleAutocast toggle_autocast = 3; * @return Whether the toggleAutocast field is set. */ boolean hasToggleAutocast(); /** * .SC2APIProtocol.ActionRawToggleAutocast toggle_autocast = 3; * @return The toggleAutocast. */ SC2APIProtocol.Raw.ActionRawToggleAutocast getToggleAutocast(); /** * .SC2APIProtocol.ActionRawToggleAutocast toggle_autocast = 3; */ SC2APIProtocol.Raw.ActionRawToggleAutocastOrBuilder getToggleAutocastOrBuilder(); public SC2APIProtocol.Raw.ActionRaw.ActionCase getActionCase(); } /** * Protobuf type {@code SC2APIProtocol.ActionRaw} */ public static final class ActionRaw extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:SC2APIProtocol.ActionRaw) ActionRawOrBuilder { private static final long serialVersionUID = 0L; // Use ActionRaw.newBuilder() to construct. private ActionRaw(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ActionRaw() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ActionRaw(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Raw.internal_static_SC2APIProtocol_ActionRaw_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Raw.internal_static_SC2APIProtocol_ActionRaw_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Raw.ActionRaw.class, SC2APIProtocol.Raw.ActionRaw.Builder.class); } private int bitField0_; private int actionCase_ = 0; private java.lang.Object action_; public enum ActionCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { UNIT_COMMAND(1), CAMERA_MOVE(2), TOGGLE_AUTOCAST(3), ACTION_NOT_SET(0); private final int value; private ActionCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static ActionCase valueOf(int value) { return forNumber(value); } public static ActionCase forNumber(int value) { switch (value) { case 1: return UNIT_COMMAND; case 2: return CAMERA_MOVE; case 3: return TOGGLE_AUTOCAST; case 0: return ACTION_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public ActionCase getActionCase() { return ActionCase.forNumber( actionCase_); } public static final int UNIT_COMMAND_FIELD_NUMBER = 1; /** * .SC2APIProtocol.ActionRawUnitCommand unit_command = 1; * @return Whether the unitCommand field is set. */ @java.lang.Override public boolean hasUnitCommand() { return actionCase_ == 1; } /** * .SC2APIProtocol.ActionRawUnitCommand unit_command = 1; * @return The unitCommand. */ @java.lang.Override public SC2APIProtocol.Raw.ActionRawUnitCommand getUnitCommand() { if (actionCase_ == 1) { return (SC2APIProtocol.Raw.ActionRawUnitCommand) action_; } return SC2APIProtocol.Raw.ActionRawUnitCommand.getDefaultInstance(); } /** * .SC2APIProtocol.ActionRawUnitCommand unit_command = 1; */ @java.lang.Override public SC2APIProtocol.Raw.ActionRawUnitCommandOrBuilder getUnitCommandOrBuilder() { if (actionCase_ == 1) { return (SC2APIProtocol.Raw.ActionRawUnitCommand) action_; } return SC2APIProtocol.Raw.ActionRawUnitCommand.getDefaultInstance(); } public static final int CAMERA_MOVE_FIELD_NUMBER = 2; /** * .SC2APIProtocol.ActionRawCameraMove camera_move = 2; * @return Whether the cameraMove field is set. */ @java.lang.Override public boolean hasCameraMove() { return actionCase_ == 2; } /** * .SC2APIProtocol.ActionRawCameraMove camera_move = 2; * @return The cameraMove. */ @java.lang.Override public SC2APIProtocol.Raw.ActionRawCameraMove getCameraMove() { if (actionCase_ == 2) { return (SC2APIProtocol.Raw.ActionRawCameraMove) action_; } return SC2APIProtocol.Raw.ActionRawCameraMove.getDefaultInstance(); } /** * .SC2APIProtocol.ActionRawCameraMove camera_move = 2; */ @java.lang.Override public SC2APIProtocol.Raw.ActionRawCameraMoveOrBuilder getCameraMoveOrBuilder() { if (actionCase_ == 2) { return (SC2APIProtocol.Raw.ActionRawCameraMove) action_; } return SC2APIProtocol.Raw.ActionRawCameraMove.getDefaultInstance(); } public static final int TOGGLE_AUTOCAST_FIELD_NUMBER = 3; /** * .SC2APIProtocol.ActionRawToggleAutocast toggle_autocast = 3; * @return Whether the toggleAutocast field is set. */ @java.lang.Override public boolean hasToggleAutocast() { return actionCase_ == 3; } /** * .SC2APIProtocol.ActionRawToggleAutocast toggle_autocast = 3; * @return The toggleAutocast. */ @java.lang.Override public SC2APIProtocol.Raw.ActionRawToggleAutocast getToggleAutocast() { if (actionCase_ == 3) { return (SC2APIProtocol.Raw.ActionRawToggleAutocast) action_; } return SC2APIProtocol.Raw.ActionRawToggleAutocast.getDefaultInstance(); } /** * .SC2APIProtocol.ActionRawToggleAutocast toggle_autocast = 3; */ @java.lang.Override public SC2APIProtocol.Raw.ActionRawToggleAutocastOrBuilder getToggleAutocastOrBuilder() { if (actionCase_ == 3) { return (SC2APIProtocol.Raw.ActionRawToggleAutocast) action_; } return SC2APIProtocol.Raw.ActionRawToggleAutocast.getDefaultInstance(); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (actionCase_ == 1) { output.writeMessage(1, (SC2APIProtocol.Raw.ActionRawUnitCommand) action_); } if (actionCase_ == 2) { output.writeMessage(2, (SC2APIProtocol.Raw.ActionRawCameraMove) action_); } if (actionCase_ == 3) { output.writeMessage(3, (SC2APIProtocol.Raw.ActionRawToggleAutocast) action_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (actionCase_ == 1) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, (SC2APIProtocol.Raw.ActionRawUnitCommand) action_); } if (actionCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, (SC2APIProtocol.Raw.ActionRawCameraMove) action_); } if (actionCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, (SC2APIProtocol.Raw.ActionRawToggleAutocast) action_); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof SC2APIProtocol.Raw.ActionRaw)) { return super.equals(obj); } SC2APIProtocol.Raw.ActionRaw other = (SC2APIProtocol.Raw.ActionRaw) obj; if (!getActionCase().equals(other.getActionCase())) return false; switch (actionCase_) { case 1: if (!getUnitCommand() .equals(other.getUnitCommand())) return false; break; case 2: if (!getCameraMove() .equals(other.getCameraMove())) return false; break; case 3: if (!getToggleAutocast() .equals(other.getToggleAutocast())) return false; break; case 0: default: } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); switch (actionCase_) { case 1: hash = (37 * hash) + UNIT_COMMAND_FIELD_NUMBER; hash = (53 * hash) + getUnitCommand().hashCode(); break; case 2: hash = (37 * hash) + CAMERA_MOVE_FIELD_NUMBER; hash = (53 * hash) + getCameraMove().hashCode(); break; case 3: hash = (37 * hash) + TOGGLE_AUTOCAST_FIELD_NUMBER; hash = (53 * hash) + getToggleAutocast().hashCode(); break; case 0: default: } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static SC2APIProtocol.Raw.ActionRaw parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Raw.ActionRaw parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Raw.ActionRaw parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Raw.ActionRaw parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Raw.ActionRaw parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Raw.ActionRaw parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Raw.ActionRaw parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Raw.ActionRaw 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.Raw.ActionRaw parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static SC2APIProtocol.Raw.ActionRaw 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.Raw.ActionRaw parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Raw.ActionRaw 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.Raw.ActionRaw 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.ActionRaw} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:SC2APIProtocol.ActionRaw) SC2APIProtocol.Raw.ActionRawOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Raw.internal_static_SC2APIProtocol_ActionRaw_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Raw.internal_static_SC2APIProtocol_ActionRaw_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Raw.ActionRaw.class, SC2APIProtocol.Raw.ActionRaw.Builder.class); } // Construct using SC2APIProtocol.Raw.ActionRaw.newBuilder() private Builder() { } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); } @java.lang.Override public Builder clear() { super.clear(); if (unitCommandBuilder_ != null) { unitCommandBuilder_.clear(); } if (cameraMoveBuilder_ != null) { cameraMoveBuilder_.clear(); } if (toggleAutocastBuilder_ != null) { toggleAutocastBuilder_.clear(); } actionCase_ = 0; action_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return SC2APIProtocol.Raw.internal_static_SC2APIProtocol_ActionRaw_descriptor; } @java.lang.Override public SC2APIProtocol.Raw.ActionRaw getDefaultInstanceForType() { return SC2APIProtocol.Raw.ActionRaw.getDefaultInstance(); } @java.lang.Override public SC2APIProtocol.Raw.ActionRaw build() { SC2APIProtocol.Raw.ActionRaw result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public SC2APIProtocol.Raw.ActionRaw buildPartial() { SC2APIProtocol.Raw.ActionRaw result = new SC2APIProtocol.Raw.ActionRaw(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (actionCase_ == 1) { if (unitCommandBuilder_ == null) { result.action_ = action_; } else { result.action_ = unitCommandBuilder_.build(); } } if (actionCase_ == 2) { if (cameraMoveBuilder_ == null) { result.action_ = action_; } else { result.action_ = cameraMoveBuilder_.build(); } } if (actionCase_ == 3) { if (toggleAutocastBuilder_ == null) { result.action_ = action_; } else { result.action_ = toggleAutocastBuilder_.build(); } } result.bitField0_ = to_bitField0_; result.actionCase_ = actionCase_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof SC2APIProtocol.Raw.ActionRaw) { return mergeFrom((SC2APIProtocol.Raw.ActionRaw)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(SC2APIProtocol.Raw.ActionRaw other) { if (other == SC2APIProtocol.Raw.ActionRaw.getDefaultInstance()) return this; switch (other.getActionCase()) { case UNIT_COMMAND: { mergeUnitCommand(other.getUnitCommand()); break; } case CAMERA_MOVE: { mergeCameraMove(other.getCameraMove()); break; } case TOGGLE_AUTOCAST: { mergeToggleAutocast(other.getToggleAutocast()); break; } case ACTION_NOT_SET: { break; } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getUnitCommandFieldBuilder().getBuilder(), extensionRegistry); actionCase_ = 1; break; } // case 10 case 18: { input.readMessage( getCameraMoveFieldBuilder().getBuilder(), extensionRegistry); actionCase_ = 2; break; } // case 18 case 26: { input.readMessage( getToggleAutocastFieldBuilder().getBuilder(), extensionRegistry); actionCase_ = 3; break; } // case 26 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int actionCase_ = 0; private java.lang.Object action_; public ActionCase getActionCase() { return ActionCase.forNumber( actionCase_); } public Builder clearAction() { actionCase_ = 0; action_ = null; onChanged(); return this; } private int bitField0_; private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Raw.ActionRawUnitCommand, SC2APIProtocol.Raw.ActionRawUnitCommand.Builder, SC2APIProtocol.Raw.ActionRawUnitCommandOrBuilder> unitCommandBuilder_; /** * .SC2APIProtocol.ActionRawUnitCommand unit_command = 1; * @return Whether the unitCommand field is set. */ @java.lang.Override public boolean hasUnitCommand() { return actionCase_ == 1; } /** * .SC2APIProtocol.ActionRawUnitCommand unit_command = 1; * @return The unitCommand. */ @java.lang.Override public SC2APIProtocol.Raw.ActionRawUnitCommand getUnitCommand() { if (unitCommandBuilder_ == null) { if (actionCase_ == 1) { return (SC2APIProtocol.Raw.ActionRawUnitCommand) action_; } return SC2APIProtocol.Raw.ActionRawUnitCommand.getDefaultInstance(); } else { if (actionCase_ == 1) { return unitCommandBuilder_.getMessage(); } return SC2APIProtocol.Raw.ActionRawUnitCommand.getDefaultInstance(); } } /** * .SC2APIProtocol.ActionRawUnitCommand unit_command = 1; */ public Builder setUnitCommand(SC2APIProtocol.Raw.ActionRawUnitCommand value) { if (unitCommandBuilder_ == null) { if (value == null) { throw new NullPointerException(); } action_ = value; onChanged(); } else { unitCommandBuilder_.setMessage(value); } actionCase_ = 1; return this; } /** * .SC2APIProtocol.ActionRawUnitCommand unit_command = 1; */ public Builder setUnitCommand( SC2APIProtocol.Raw.ActionRawUnitCommand.Builder builderForValue) { if (unitCommandBuilder_ == null) { action_ = builderForValue.build(); onChanged(); } else { unitCommandBuilder_.setMessage(builderForValue.build()); } actionCase_ = 1; return this; } /** * .SC2APIProtocol.ActionRawUnitCommand unit_command = 1; */ public Builder mergeUnitCommand(SC2APIProtocol.Raw.ActionRawUnitCommand value) { if (unitCommandBuilder_ == null) { if (actionCase_ == 1 && action_ != SC2APIProtocol.Raw.ActionRawUnitCommand.getDefaultInstance()) { action_ = SC2APIProtocol.Raw.ActionRawUnitCommand.newBuilder((SC2APIProtocol.Raw.ActionRawUnitCommand) action_) .mergeFrom(value).buildPartial(); } else { action_ = value; } onChanged(); } else { if (actionCase_ == 1) { unitCommandBuilder_.mergeFrom(value); } else { unitCommandBuilder_.setMessage(value); } } actionCase_ = 1; return this; } /** * .SC2APIProtocol.ActionRawUnitCommand unit_command = 1; */ public Builder clearUnitCommand() { if (unitCommandBuilder_ == null) { if (actionCase_ == 1) { actionCase_ = 0; action_ = null; onChanged(); } } else { if (actionCase_ == 1) { actionCase_ = 0; action_ = null; } unitCommandBuilder_.clear(); } return this; } /** * .SC2APIProtocol.ActionRawUnitCommand unit_command = 1; */ public SC2APIProtocol.Raw.ActionRawUnitCommand.Builder getUnitCommandBuilder() { return getUnitCommandFieldBuilder().getBuilder(); } /** * .SC2APIProtocol.ActionRawUnitCommand unit_command = 1; */ @java.lang.Override public SC2APIProtocol.Raw.ActionRawUnitCommandOrBuilder getUnitCommandOrBuilder() { if ((actionCase_ == 1) && (unitCommandBuilder_ != null)) { return unitCommandBuilder_.getMessageOrBuilder(); } else { if (actionCase_ == 1) { return (SC2APIProtocol.Raw.ActionRawUnitCommand) action_; } return SC2APIProtocol.Raw.ActionRawUnitCommand.getDefaultInstance(); } } /** * .SC2APIProtocol.ActionRawUnitCommand unit_command = 1; */ private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Raw.ActionRawUnitCommand, SC2APIProtocol.Raw.ActionRawUnitCommand.Builder, SC2APIProtocol.Raw.ActionRawUnitCommandOrBuilder> getUnitCommandFieldBuilder() { if (unitCommandBuilder_ == null) { if (!(actionCase_ == 1)) { action_ = SC2APIProtocol.Raw.ActionRawUnitCommand.getDefaultInstance(); } unitCommandBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Raw.ActionRawUnitCommand, SC2APIProtocol.Raw.ActionRawUnitCommand.Builder, SC2APIProtocol.Raw.ActionRawUnitCommandOrBuilder>( (SC2APIProtocol.Raw.ActionRawUnitCommand) action_, getParentForChildren(), isClean()); action_ = null; } actionCase_ = 1; onChanged();; return unitCommandBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Raw.ActionRawCameraMove, SC2APIProtocol.Raw.ActionRawCameraMove.Builder, SC2APIProtocol.Raw.ActionRawCameraMoveOrBuilder> cameraMoveBuilder_; /** * .SC2APIProtocol.ActionRawCameraMove camera_move = 2; * @return Whether the cameraMove field is set. */ @java.lang.Override public boolean hasCameraMove() { return actionCase_ == 2; } /** * .SC2APIProtocol.ActionRawCameraMove camera_move = 2; * @return The cameraMove. */ @java.lang.Override public SC2APIProtocol.Raw.ActionRawCameraMove getCameraMove() { if (cameraMoveBuilder_ == null) { if (actionCase_ == 2) { return (SC2APIProtocol.Raw.ActionRawCameraMove) action_; } return SC2APIProtocol.Raw.ActionRawCameraMove.getDefaultInstance(); } else { if (actionCase_ == 2) { return cameraMoveBuilder_.getMessage(); } return SC2APIProtocol.Raw.ActionRawCameraMove.getDefaultInstance(); } } /** * .SC2APIProtocol.ActionRawCameraMove camera_move = 2; */ public Builder setCameraMove(SC2APIProtocol.Raw.ActionRawCameraMove value) { if (cameraMoveBuilder_ == null) { if (value == null) { throw new NullPointerException(); } action_ = value; onChanged(); } else { cameraMoveBuilder_.setMessage(value); } actionCase_ = 2; return this; } /** * .SC2APIProtocol.ActionRawCameraMove camera_move = 2; */ public Builder setCameraMove( SC2APIProtocol.Raw.ActionRawCameraMove.Builder builderForValue) { if (cameraMoveBuilder_ == null) { action_ = builderForValue.build(); onChanged(); } else { cameraMoveBuilder_.setMessage(builderForValue.build()); } actionCase_ = 2; return this; } /** * .SC2APIProtocol.ActionRawCameraMove camera_move = 2; */ public Builder mergeCameraMove(SC2APIProtocol.Raw.ActionRawCameraMove value) { if (cameraMoveBuilder_ == null) { if (actionCase_ == 2 && action_ != SC2APIProtocol.Raw.ActionRawCameraMove.getDefaultInstance()) { action_ = SC2APIProtocol.Raw.ActionRawCameraMove.newBuilder((SC2APIProtocol.Raw.ActionRawCameraMove) action_) .mergeFrom(value).buildPartial(); } else { action_ = value; } onChanged(); } else { if (actionCase_ == 2) { cameraMoveBuilder_.mergeFrom(value); } else { cameraMoveBuilder_.setMessage(value); } } actionCase_ = 2; return this; } /** * .SC2APIProtocol.ActionRawCameraMove camera_move = 2; */ public Builder clearCameraMove() { if (cameraMoveBuilder_ == null) { if (actionCase_ == 2) { actionCase_ = 0; action_ = null; onChanged(); } } else { if (actionCase_ == 2) { actionCase_ = 0; action_ = null; } cameraMoveBuilder_.clear(); } return this; } /** * .SC2APIProtocol.ActionRawCameraMove camera_move = 2; */ public SC2APIProtocol.Raw.ActionRawCameraMove.Builder getCameraMoveBuilder() { return getCameraMoveFieldBuilder().getBuilder(); } /** * .SC2APIProtocol.ActionRawCameraMove camera_move = 2; */ @java.lang.Override public SC2APIProtocol.Raw.ActionRawCameraMoveOrBuilder getCameraMoveOrBuilder() { if ((actionCase_ == 2) && (cameraMoveBuilder_ != null)) { return cameraMoveBuilder_.getMessageOrBuilder(); } else { if (actionCase_ == 2) { return (SC2APIProtocol.Raw.ActionRawCameraMove) action_; } return SC2APIProtocol.Raw.ActionRawCameraMove.getDefaultInstance(); } } /** * .SC2APIProtocol.ActionRawCameraMove camera_move = 2; */ private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Raw.ActionRawCameraMove, SC2APIProtocol.Raw.ActionRawCameraMove.Builder, SC2APIProtocol.Raw.ActionRawCameraMoveOrBuilder> getCameraMoveFieldBuilder() { if (cameraMoveBuilder_ == null) { if (!(actionCase_ == 2)) { action_ = SC2APIProtocol.Raw.ActionRawCameraMove.getDefaultInstance(); } cameraMoveBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Raw.ActionRawCameraMove, SC2APIProtocol.Raw.ActionRawCameraMove.Builder, SC2APIProtocol.Raw.ActionRawCameraMoveOrBuilder>( (SC2APIProtocol.Raw.ActionRawCameraMove) action_, getParentForChildren(), isClean()); action_ = null; } actionCase_ = 2; onChanged();; return cameraMoveBuilder_; } private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Raw.ActionRawToggleAutocast, SC2APIProtocol.Raw.ActionRawToggleAutocast.Builder, SC2APIProtocol.Raw.ActionRawToggleAutocastOrBuilder> toggleAutocastBuilder_; /** * .SC2APIProtocol.ActionRawToggleAutocast toggle_autocast = 3; * @return Whether the toggleAutocast field is set. */ @java.lang.Override public boolean hasToggleAutocast() { return actionCase_ == 3; } /** * .SC2APIProtocol.ActionRawToggleAutocast toggle_autocast = 3; * @return The toggleAutocast. */ @java.lang.Override public SC2APIProtocol.Raw.ActionRawToggleAutocast getToggleAutocast() { if (toggleAutocastBuilder_ == null) { if (actionCase_ == 3) { return (SC2APIProtocol.Raw.ActionRawToggleAutocast) action_; } return SC2APIProtocol.Raw.ActionRawToggleAutocast.getDefaultInstance(); } else { if (actionCase_ == 3) { return toggleAutocastBuilder_.getMessage(); } return SC2APIProtocol.Raw.ActionRawToggleAutocast.getDefaultInstance(); } } /** * .SC2APIProtocol.ActionRawToggleAutocast toggle_autocast = 3; */ public Builder setToggleAutocast(SC2APIProtocol.Raw.ActionRawToggleAutocast value) { if (toggleAutocastBuilder_ == null) { if (value == null) { throw new NullPointerException(); } action_ = value; onChanged(); } else { toggleAutocastBuilder_.setMessage(value); } actionCase_ = 3; return this; } /** * .SC2APIProtocol.ActionRawToggleAutocast toggle_autocast = 3; */ public Builder setToggleAutocast( SC2APIProtocol.Raw.ActionRawToggleAutocast.Builder builderForValue) { if (toggleAutocastBuilder_ == null) { action_ = builderForValue.build(); onChanged(); } else { toggleAutocastBuilder_.setMessage(builderForValue.build()); } actionCase_ = 3; return this; } /** * .SC2APIProtocol.ActionRawToggleAutocast toggle_autocast = 3; */ public Builder mergeToggleAutocast(SC2APIProtocol.Raw.ActionRawToggleAutocast value) { if (toggleAutocastBuilder_ == null) { if (actionCase_ == 3 && action_ != SC2APIProtocol.Raw.ActionRawToggleAutocast.getDefaultInstance()) { action_ = SC2APIProtocol.Raw.ActionRawToggleAutocast.newBuilder((SC2APIProtocol.Raw.ActionRawToggleAutocast) action_) .mergeFrom(value).buildPartial(); } else { action_ = value; } onChanged(); } else { if (actionCase_ == 3) { toggleAutocastBuilder_.mergeFrom(value); } else { toggleAutocastBuilder_.setMessage(value); } } actionCase_ = 3; return this; } /** * .SC2APIProtocol.ActionRawToggleAutocast toggle_autocast = 3; */ public Builder clearToggleAutocast() { if (toggleAutocastBuilder_ == null) { if (actionCase_ == 3) { actionCase_ = 0; action_ = null; onChanged(); } } else { if (actionCase_ == 3) { actionCase_ = 0; action_ = null; } toggleAutocastBuilder_.clear(); } return this; } /** * .SC2APIProtocol.ActionRawToggleAutocast toggle_autocast = 3; */ public SC2APIProtocol.Raw.ActionRawToggleAutocast.Builder getToggleAutocastBuilder() { return getToggleAutocastFieldBuilder().getBuilder(); } /** * .SC2APIProtocol.ActionRawToggleAutocast toggle_autocast = 3; */ @java.lang.Override public SC2APIProtocol.Raw.ActionRawToggleAutocastOrBuilder getToggleAutocastOrBuilder() { if ((actionCase_ == 3) && (toggleAutocastBuilder_ != null)) { return toggleAutocastBuilder_.getMessageOrBuilder(); } else { if (actionCase_ == 3) { return (SC2APIProtocol.Raw.ActionRawToggleAutocast) action_; } return SC2APIProtocol.Raw.ActionRawToggleAutocast.getDefaultInstance(); } } /** * .SC2APIProtocol.ActionRawToggleAutocast toggle_autocast = 3; */ private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Raw.ActionRawToggleAutocast, SC2APIProtocol.Raw.ActionRawToggleAutocast.Builder, SC2APIProtocol.Raw.ActionRawToggleAutocastOrBuilder> getToggleAutocastFieldBuilder() { if (toggleAutocastBuilder_ == null) { if (!(actionCase_ == 3)) { action_ = SC2APIProtocol.Raw.ActionRawToggleAutocast.getDefaultInstance(); } toggleAutocastBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Raw.ActionRawToggleAutocast, SC2APIProtocol.Raw.ActionRawToggleAutocast.Builder, SC2APIProtocol.Raw.ActionRawToggleAutocastOrBuilder>( (SC2APIProtocol.Raw.ActionRawToggleAutocast) action_, getParentForChildren(), isClean()); action_ = null; } actionCase_ = 3; onChanged();; return toggleAutocastBuilder_; } @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.ActionRaw) } // @@protoc_insertion_point(class_scope:SC2APIProtocol.ActionRaw) private static final SC2APIProtocol.Raw.ActionRaw DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new SC2APIProtocol.Raw.ActionRaw(); } public static SC2APIProtocol.Raw.ActionRaw getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ActionRaw 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.Raw.ActionRaw getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ActionRawUnitCommandOrBuilder extends // @@protoc_insertion_point(interface_extends:SC2APIProtocol.ActionRawUnitCommand) com.google.protobuf.MessageOrBuilder { /** * optional int32 ability_id = 1; * @return Whether the abilityId field is set. */ boolean hasAbilityId(); /** * optional int32 ability_id = 1; * @return The abilityId. */ int getAbilityId(); /** * .SC2APIProtocol.Point2D target_world_space_pos = 2; * @return Whether the targetWorldSpacePos field is set. */ boolean hasTargetWorldSpacePos(); /** * .SC2APIProtocol.Point2D target_world_space_pos = 2; * @return The targetWorldSpacePos. */ SC2APIProtocol.Common.Point2D getTargetWorldSpacePos(); /** * .SC2APIProtocol.Point2D target_world_space_pos = 2; */ SC2APIProtocol.Common.Point2DOrBuilder getTargetWorldSpacePosOrBuilder(); /** * uint64 target_unit_tag = 3; * @return Whether the targetUnitTag field is set. */ boolean hasTargetUnitTag(); /** * uint64 target_unit_tag = 3; * @return The targetUnitTag. */ long getTargetUnitTag(); /** * repeated uint64 unit_tags = 4; * @return A list containing the unitTags. */ java.util.List getUnitTagsList(); /** * repeated uint64 unit_tags = 4; * @return The count of unitTags. */ int getUnitTagsCount(); /** * repeated uint64 unit_tags = 4; * @param index The index of the element to return. * @return The unitTags at the given index. */ long getUnitTags(int index); /** * optional bool queue_command = 5; * @return Whether the queueCommand field is set. */ boolean hasQueueCommand(); /** * optional bool queue_command = 5; * @return The queueCommand. */ boolean getQueueCommand(); public SC2APIProtocol.Raw.ActionRawUnitCommand.TargetCase getTargetCase(); } /** * Protobuf type {@code SC2APIProtocol.ActionRawUnitCommand} */ public static final class ActionRawUnitCommand extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:SC2APIProtocol.ActionRawUnitCommand) ActionRawUnitCommandOrBuilder { private static final long serialVersionUID = 0L; // Use ActionRawUnitCommand.newBuilder() to construct. private ActionRawUnitCommand(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ActionRawUnitCommand() { unitTags_ = emptyLongList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ActionRawUnitCommand(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Raw.internal_static_SC2APIProtocol_ActionRawUnitCommand_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Raw.internal_static_SC2APIProtocol_ActionRawUnitCommand_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Raw.ActionRawUnitCommand.class, SC2APIProtocol.Raw.ActionRawUnitCommand.Builder.class); } private int bitField0_; private int targetCase_ = 0; private java.lang.Object target_; public enum TargetCase implements com.google.protobuf.Internal.EnumLite, com.google.protobuf.AbstractMessage.InternalOneOfEnum { TARGET_WORLD_SPACE_POS(2), TARGET_UNIT_TAG(3), TARGET_NOT_SET(0); private final int value; private TargetCase(int value) { this.value = value; } /** * @param value The number of the enum to look for. * @return The enum associated with the given number. * @deprecated Use {@link #forNumber(int)} instead. */ @java.lang.Deprecated public static TargetCase valueOf(int value) { return forNumber(value); } public static TargetCase forNumber(int value) { switch (value) { case 2: return TARGET_WORLD_SPACE_POS; case 3: return TARGET_UNIT_TAG; case 0: return TARGET_NOT_SET; default: return null; } } public int getNumber() { return this.value; } }; public TargetCase getTargetCase() { return TargetCase.forNumber( targetCase_); } public static final int ABILITY_ID_FIELD_NUMBER = 1; private int abilityId_; /** * optional int32 ability_id = 1; * @return Whether the abilityId field is set. */ @java.lang.Override public boolean hasAbilityId() { return ((bitField0_ & 0x00000001) != 0); } /** * optional int32 ability_id = 1; * @return The abilityId. */ @java.lang.Override public int getAbilityId() { return abilityId_; } public static final int TARGET_WORLD_SPACE_POS_FIELD_NUMBER = 2; /** * .SC2APIProtocol.Point2D target_world_space_pos = 2; * @return Whether the targetWorldSpacePos field is set. */ @java.lang.Override public boolean hasTargetWorldSpacePos() { return targetCase_ == 2; } /** * .SC2APIProtocol.Point2D target_world_space_pos = 2; * @return The targetWorldSpacePos. */ @java.lang.Override public SC2APIProtocol.Common.Point2D getTargetWorldSpacePos() { if (targetCase_ == 2) { return (SC2APIProtocol.Common.Point2D) target_; } return SC2APIProtocol.Common.Point2D.getDefaultInstance(); } /** * .SC2APIProtocol.Point2D target_world_space_pos = 2; */ @java.lang.Override public SC2APIProtocol.Common.Point2DOrBuilder getTargetWorldSpacePosOrBuilder() { if (targetCase_ == 2) { return (SC2APIProtocol.Common.Point2D) target_; } return SC2APIProtocol.Common.Point2D.getDefaultInstance(); } public static final int TARGET_UNIT_TAG_FIELD_NUMBER = 3; /** * uint64 target_unit_tag = 3; * @return Whether the targetUnitTag field is set. */ @java.lang.Override public boolean hasTargetUnitTag() { return targetCase_ == 3; } /** * uint64 target_unit_tag = 3; * @return The targetUnitTag. */ @java.lang.Override public long getTargetUnitTag() { if (targetCase_ == 3) { return (java.lang.Long) target_; } return 0L; } public static final int UNIT_TAGS_FIELD_NUMBER = 4; private com.google.protobuf.Internal.LongList unitTags_; /** * repeated uint64 unit_tags = 4; * @return A list containing the unitTags. */ @java.lang.Override public java.util.List getUnitTagsList() { return unitTags_; } /** * repeated uint64 unit_tags = 4; * @return The count of unitTags. */ public int getUnitTagsCount() { return unitTags_.size(); } /** * repeated uint64 unit_tags = 4; * @param index The index of the element to return. * @return The unitTags at the given index. */ public long getUnitTags(int index) { return unitTags_.getLong(index); } public static final int QUEUE_COMMAND_FIELD_NUMBER = 5; private boolean queueCommand_; /** * optional bool queue_command = 5; * @return Whether the queueCommand field is set. */ @java.lang.Override public boolean hasQueueCommand() { return ((bitField0_ & 0x00000008) != 0); } /** * optional bool queue_command = 5; * @return The queueCommand. */ @java.lang.Override public boolean getQueueCommand() { return queueCommand_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeInt32(1, abilityId_); } if (targetCase_ == 2) { output.writeMessage(2, (SC2APIProtocol.Common.Point2D) target_); } if (targetCase_ == 3) { output.writeUInt64( 3, (long)((java.lang.Long) target_)); } for (int i = 0; i < unitTags_.size(); i++) { output.writeUInt64(4, unitTags_.getLong(i)); } if (((bitField0_ & 0x00000008) != 0)) { output.writeBool(5, queueCommand_); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, abilityId_); } if (targetCase_ == 2) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(2, (SC2APIProtocol.Common.Point2D) target_); } if (targetCase_ == 3) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size( 3, (long)((java.lang.Long) target_)); } { int dataSize = 0; for (int i = 0; i < unitTags_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeUInt64SizeNoTag(unitTags_.getLong(i)); } size += dataSize; size += 1 * getUnitTagsList().size(); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(5, queueCommand_); } 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.Raw.ActionRawUnitCommand)) { return super.equals(obj); } SC2APIProtocol.Raw.ActionRawUnitCommand other = (SC2APIProtocol.Raw.ActionRawUnitCommand) obj; if (hasAbilityId() != other.hasAbilityId()) return false; if (hasAbilityId()) { if (getAbilityId() != other.getAbilityId()) return false; } if (!getUnitTagsList() .equals(other.getUnitTagsList())) return false; if (hasQueueCommand() != other.hasQueueCommand()) return false; if (hasQueueCommand()) { if (getQueueCommand() != other.getQueueCommand()) return false; } if (!getTargetCase().equals(other.getTargetCase())) return false; switch (targetCase_) { case 2: if (!getTargetWorldSpacePos() .equals(other.getTargetWorldSpacePos())) return false; break; case 3: if (getTargetUnitTag() != other.getTargetUnitTag()) return false; break; case 0: default: } if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasAbilityId()) { hash = (37 * hash) + ABILITY_ID_FIELD_NUMBER; hash = (53 * hash) + getAbilityId(); } if (getUnitTagsCount() > 0) { hash = (37 * hash) + UNIT_TAGS_FIELD_NUMBER; hash = (53 * hash) + getUnitTagsList().hashCode(); } if (hasQueueCommand()) { hash = (37 * hash) + QUEUE_COMMAND_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getQueueCommand()); } switch (targetCase_) { case 2: hash = (37 * hash) + TARGET_WORLD_SPACE_POS_FIELD_NUMBER; hash = (53 * hash) + getTargetWorldSpacePos().hashCode(); break; case 3: hash = (37 * hash) + TARGET_UNIT_TAG_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTargetUnitTag()); break; case 0: default: } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static SC2APIProtocol.Raw.ActionRawUnitCommand parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Raw.ActionRawUnitCommand parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Raw.ActionRawUnitCommand parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Raw.ActionRawUnitCommand parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Raw.ActionRawUnitCommand parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Raw.ActionRawUnitCommand parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Raw.ActionRawUnitCommand parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Raw.ActionRawUnitCommand 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.Raw.ActionRawUnitCommand parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static SC2APIProtocol.Raw.ActionRawUnitCommand 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.Raw.ActionRawUnitCommand parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Raw.ActionRawUnitCommand 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.Raw.ActionRawUnitCommand 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.ActionRawUnitCommand} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:SC2APIProtocol.ActionRawUnitCommand) SC2APIProtocol.Raw.ActionRawUnitCommandOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Raw.internal_static_SC2APIProtocol_ActionRawUnitCommand_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Raw.internal_static_SC2APIProtocol_ActionRawUnitCommand_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Raw.ActionRawUnitCommand.class, SC2APIProtocol.Raw.ActionRawUnitCommand.Builder.class); } // Construct using SC2APIProtocol.Raw.ActionRawUnitCommand.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); if (targetWorldSpacePosBuilder_ != null) { targetWorldSpacePosBuilder_.clear(); } unitTags_ = emptyLongList(); bitField0_ = (bitField0_ & ~0x00000008); queueCommand_ = false; bitField0_ = (bitField0_ & ~0x00000010); targetCase_ = 0; target_ = null; return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return SC2APIProtocol.Raw.internal_static_SC2APIProtocol_ActionRawUnitCommand_descriptor; } @java.lang.Override public SC2APIProtocol.Raw.ActionRawUnitCommand getDefaultInstanceForType() { return SC2APIProtocol.Raw.ActionRawUnitCommand.getDefaultInstance(); } @java.lang.Override public SC2APIProtocol.Raw.ActionRawUnitCommand build() { SC2APIProtocol.Raw.ActionRawUnitCommand result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public SC2APIProtocol.Raw.ActionRawUnitCommand buildPartial() { SC2APIProtocol.Raw.ActionRawUnitCommand result = new SC2APIProtocol.Raw.ActionRawUnitCommand(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.abilityId_ = abilityId_; to_bitField0_ |= 0x00000001; } if (targetCase_ == 2) { if (targetWorldSpacePosBuilder_ == null) { result.target_ = target_; } else { result.target_ = targetWorldSpacePosBuilder_.build(); } } if (targetCase_ == 3) { result.target_ = target_; } if (((bitField0_ & 0x00000008) != 0)) { unitTags_.makeImmutable(); bitField0_ = (bitField0_ & ~0x00000008); } result.unitTags_ = unitTags_; if (((from_bitField0_ & 0x00000010) != 0)) { result.queueCommand_ = queueCommand_; to_bitField0_ |= 0x00000008; } result.bitField0_ = to_bitField0_; result.targetCase_ = targetCase_; 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.Raw.ActionRawUnitCommand) { return mergeFrom((SC2APIProtocol.Raw.ActionRawUnitCommand)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(SC2APIProtocol.Raw.ActionRawUnitCommand other) { if (other == SC2APIProtocol.Raw.ActionRawUnitCommand.getDefaultInstance()) return this; if (other.hasAbilityId()) { setAbilityId(other.getAbilityId()); } if (!other.unitTags_.isEmpty()) { if (unitTags_.isEmpty()) { unitTags_ = other.unitTags_; bitField0_ = (bitField0_ & ~0x00000008); } else { ensureUnitTagsIsMutable(); unitTags_.addAll(other.unitTags_); } onChanged(); } if (other.hasQueueCommand()) { setQueueCommand(other.getQueueCommand()); } switch (other.getTargetCase()) { case TARGET_WORLD_SPACE_POS: { mergeTargetWorldSpacePos(other.getTargetWorldSpacePos()); break; } case TARGET_UNIT_TAG: { setTargetUnitTag(other.getTargetUnitTag()); break; } case TARGET_NOT_SET: { break; } } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { abilityId_ = input.readInt32(); bitField0_ |= 0x00000001; break; } // case 8 case 18: { input.readMessage( getTargetWorldSpacePosFieldBuilder().getBuilder(), extensionRegistry); targetCase_ = 2; break; } // case 18 case 24: { target_ = input.readUInt64(); targetCase_ = 3; break; } // case 24 case 32: { long v = input.readUInt64(); ensureUnitTagsIsMutable(); unitTags_.addLong(v); break; } // case 32 case 34: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); ensureUnitTagsIsMutable(); while (input.getBytesUntilLimit() > 0) { unitTags_.addLong(input.readUInt64()); } input.popLimit(limit); break; } // case 34 case 40: { queueCommand_ = input.readBool(); bitField0_ |= 0x00000010; break; } // case 40 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int targetCase_ = 0; private java.lang.Object target_; public TargetCase getTargetCase() { return TargetCase.forNumber( targetCase_); } public Builder clearTarget() { targetCase_ = 0; target_ = null; onChanged(); return this; } private int bitField0_; private int abilityId_ ; /** * optional int32 ability_id = 1; * @return Whether the abilityId field is set. */ @java.lang.Override public boolean hasAbilityId() { return ((bitField0_ & 0x00000001) != 0); } /** * optional int32 ability_id = 1; * @return The abilityId. */ @java.lang.Override public int getAbilityId() { return abilityId_; } /** * optional int32 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; } /** * optional int32 ability_id = 1; * @return This builder for chaining. */ public Builder clearAbilityId() { bitField0_ = (bitField0_ & ~0x00000001); abilityId_ = 0; onChanged(); return this; } private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Common.Point2D, SC2APIProtocol.Common.Point2D.Builder, SC2APIProtocol.Common.Point2DOrBuilder> targetWorldSpacePosBuilder_; /** * .SC2APIProtocol.Point2D target_world_space_pos = 2; * @return Whether the targetWorldSpacePos field is set. */ @java.lang.Override public boolean hasTargetWorldSpacePos() { return targetCase_ == 2; } /** * .SC2APIProtocol.Point2D target_world_space_pos = 2; * @return The targetWorldSpacePos. */ @java.lang.Override public SC2APIProtocol.Common.Point2D getTargetWorldSpacePos() { if (targetWorldSpacePosBuilder_ == null) { if (targetCase_ == 2) { return (SC2APIProtocol.Common.Point2D) target_; } return SC2APIProtocol.Common.Point2D.getDefaultInstance(); } else { if (targetCase_ == 2) { return targetWorldSpacePosBuilder_.getMessage(); } return SC2APIProtocol.Common.Point2D.getDefaultInstance(); } } /** * .SC2APIProtocol.Point2D target_world_space_pos = 2; */ public Builder setTargetWorldSpacePos(SC2APIProtocol.Common.Point2D value) { if (targetWorldSpacePosBuilder_ == null) { if (value == null) { throw new NullPointerException(); } target_ = value; onChanged(); } else { targetWorldSpacePosBuilder_.setMessage(value); } targetCase_ = 2; return this; } /** * .SC2APIProtocol.Point2D target_world_space_pos = 2; */ public Builder setTargetWorldSpacePos( SC2APIProtocol.Common.Point2D.Builder builderForValue) { if (targetWorldSpacePosBuilder_ == null) { target_ = builderForValue.build(); onChanged(); } else { targetWorldSpacePosBuilder_.setMessage(builderForValue.build()); } targetCase_ = 2; return this; } /** * .SC2APIProtocol.Point2D target_world_space_pos = 2; */ public Builder mergeTargetWorldSpacePos(SC2APIProtocol.Common.Point2D value) { if (targetWorldSpacePosBuilder_ == null) { if (targetCase_ == 2 && target_ != SC2APIProtocol.Common.Point2D.getDefaultInstance()) { target_ = SC2APIProtocol.Common.Point2D.newBuilder((SC2APIProtocol.Common.Point2D) target_) .mergeFrom(value).buildPartial(); } else { target_ = value; } onChanged(); } else { if (targetCase_ == 2) { targetWorldSpacePosBuilder_.mergeFrom(value); } else { targetWorldSpacePosBuilder_.setMessage(value); } } targetCase_ = 2; return this; } /** * .SC2APIProtocol.Point2D target_world_space_pos = 2; */ public Builder clearTargetWorldSpacePos() { if (targetWorldSpacePosBuilder_ == null) { if (targetCase_ == 2) { targetCase_ = 0; target_ = null; onChanged(); } } else { if (targetCase_ == 2) { targetCase_ = 0; target_ = null; } targetWorldSpacePosBuilder_.clear(); } return this; } /** * .SC2APIProtocol.Point2D target_world_space_pos = 2; */ public SC2APIProtocol.Common.Point2D.Builder getTargetWorldSpacePosBuilder() { return getTargetWorldSpacePosFieldBuilder().getBuilder(); } /** * .SC2APIProtocol.Point2D target_world_space_pos = 2; */ @java.lang.Override public SC2APIProtocol.Common.Point2DOrBuilder getTargetWorldSpacePosOrBuilder() { if ((targetCase_ == 2) && (targetWorldSpacePosBuilder_ != null)) { return targetWorldSpacePosBuilder_.getMessageOrBuilder(); } else { if (targetCase_ == 2) { return (SC2APIProtocol.Common.Point2D) target_; } return SC2APIProtocol.Common.Point2D.getDefaultInstance(); } } /** * .SC2APIProtocol.Point2D target_world_space_pos = 2; */ private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Common.Point2D, SC2APIProtocol.Common.Point2D.Builder, SC2APIProtocol.Common.Point2DOrBuilder> getTargetWorldSpacePosFieldBuilder() { if (targetWorldSpacePosBuilder_ == null) { if (!(targetCase_ == 2)) { target_ = SC2APIProtocol.Common.Point2D.getDefaultInstance(); } targetWorldSpacePosBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Common.Point2D, SC2APIProtocol.Common.Point2D.Builder, SC2APIProtocol.Common.Point2DOrBuilder>( (SC2APIProtocol.Common.Point2D) target_, getParentForChildren(), isClean()); target_ = null; } targetCase_ = 2; onChanged();; return targetWorldSpacePosBuilder_; } /** * uint64 target_unit_tag = 3; * @return Whether the targetUnitTag field is set. */ public boolean hasTargetUnitTag() { return targetCase_ == 3; } /** * uint64 target_unit_tag = 3; * @return The targetUnitTag. */ public long getTargetUnitTag() { if (targetCase_ == 3) { return (java.lang.Long) target_; } return 0L; } /** * uint64 target_unit_tag = 3; * @param value The targetUnitTag to set. * @return This builder for chaining. */ public Builder setTargetUnitTag(long value) { targetCase_ = 3; target_ = value; onChanged(); return this; } /** * uint64 target_unit_tag = 3; * @return This builder for chaining. */ public Builder clearTargetUnitTag() { if (targetCase_ == 3) { targetCase_ = 0; target_ = null; onChanged(); } return this; } private com.google.protobuf.Internal.LongList unitTags_ = emptyLongList(); private void ensureUnitTagsIsMutable() { if (!((bitField0_ & 0x00000008) != 0)) { unitTags_ = mutableCopy(unitTags_); bitField0_ |= 0x00000008; } } /** * repeated uint64 unit_tags = 4; * @return A list containing the unitTags. */ public java.util.List getUnitTagsList() { return ((bitField0_ & 0x00000008) != 0) ? java.util.Collections.unmodifiableList(unitTags_) : unitTags_; } /** * repeated uint64 unit_tags = 4; * @return The count of unitTags. */ public int getUnitTagsCount() { return unitTags_.size(); } /** * repeated uint64 unit_tags = 4; * @param index The index of the element to return. * @return The unitTags at the given index. */ public long getUnitTags(int index) { return unitTags_.getLong(index); } /** * repeated uint64 unit_tags = 4; * @param index The index to set the value at. * @param value The unitTags to set. * @return This builder for chaining. */ public Builder setUnitTags( int index, long value) { ensureUnitTagsIsMutable(); unitTags_.setLong(index, value); onChanged(); return this; } /** * repeated uint64 unit_tags = 4; * @param value The unitTags to add. * @return This builder for chaining. */ public Builder addUnitTags(long value) { ensureUnitTagsIsMutable(); unitTags_.addLong(value); onChanged(); return this; } /** * repeated uint64 unit_tags = 4; * @param values The unitTags to add. * @return This builder for chaining. */ public Builder addAllUnitTags( java.lang.Iterable values) { ensureUnitTagsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, unitTags_); onChanged(); return this; } /** * repeated uint64 unit_tags = 4; * @return This builder for chaining. */ public Builder clearUnitTags() { unitTags_ = emptyLongList(); bitField0_ = (bitField0_ & ~0x00000008); onChanged(); return this; } private boolean queueCommand_ ; /** * optional bool queue_command = 5; * @return Whether the queueCommand field is set. */ @java.lang.Override public boolean hasQueueCommand() { return ((bitField0_ & 0x00000010) != 0); } /** * optional bool queue_command = 5; * @return The queueCommand. */ @java.lang.Override public boolean getQueueCommand() { return queueCommand_; } /** * optional bool queue_command = 5; * @param value The queueCommand to set. * @return This builder for chaining. */ public Builder setQueueCommand(boolean value) { bitField0_ |= 0x00000010; queueCommand_ = value; onChanged(); return this; } /** * optional bool queue_command = 5; * @return This builder for chaining. */ public Builder clearQueueCommand() { bitField0_ = (bitField0_ & ~0x00000010); queueCommand_ = false; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:SC2APIProtocol.ActionRawUnitCommand) } // @@protoc_insertion_point(class_scope:SC2APIProtocol.ActionRawUnitCommand) private static final SC2APIProtocol.Raw.ActionRawUnitCommand DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new SC2APIProtocol.Raw.ActionRawUnitCommand(); } public static SC2APIProtocol.Raw.ActionRawUnitCommand getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ActionRawUnitCommand 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.Raw.ActionRawUnitCommand getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ActionRawCameraMoveOrBuilder extends // @@protoc_insertion_point(interface_extends:SC2APIProtocol.ActionRawCameraMove) com.google.protobuf.MessageOrBuilder { /** * optional .SC2APIProtocol.Point center_world_space = 1; * @return Whether the centerWorldSpace field is set. */ boolean hasCenterWorldSpace(); /** * optional .SC2APIProtocol.Point center_world_space = 1; * @return The centerWorldSpace. */ SC2APIProtocol.Common.Point getCenterWorldSpace(); /** * optional .SC2APIProtocol.Point center_world_space = 1; */ SC2APIProtocol.Common.PointOrBuilder getCenterWorldSpaceOrBuilder(); } /** * Protobuf type {@code SC2APIProtocol.ActionRawCameraMove} */ public static final class ActionRawCameraMove extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:SC2APIProtocol.ActionRawCameraMove) ActionRawCameraMoveOrBuilder { private static final long serialVersionUID = 0L; // Use ActionRawCameraMove.newBuilder() to construct. private ActionRawCameraMove(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ActionRawCameraMove() { } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ActionRawCameraMove(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Raw.internal_static_SC2APIProtocol_ActionRawCameraMove_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Raw.internal_static_SC2APIProtocol_ActionRawCameraMove_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Raw.ActionRawCameraMove.class, SC2APIProtocol.Raw.ActionRawCameraMove.Builder.class); } private int bitField0_; public static final int CENTER_WORLD_SPACE_FIELD_NUMBER = 1; private SC2APIProtocol.Common.Point centerWorldSpace_; /** * optional .SC2APIProtocol.Point center_world_space = 1; * @return Whether the centerWorldSpace field is set. */ @java.lang.Override public boolean hasCenterWorldSpace() { return ((bitField0_ & 0x00000001) != 0); } /** * optional .SC2APIProtocol.Point center_world_space = 1; * @return The centerWorldSpace. */ @java.lang.Override public SC2APIProtocol.Common.Point getCenterWorldSpace() { return centerWorldSpace_ == null ? SC2APIProtocol.Common.Point.getDefaultInstance() : centerWorldSpace_; } /** * optional .SC2APIProtocol.Point center_world_space = 1; */ @java.lang.Override public SC2APIProtocol.Common.PointOrBuilder getCenterWorldSpaceOrBuilder() { return centerWorldSpace_ == null ? SC2APIProtocol.Common.Point.getDefaultInstance() : centerWorldSpace_; } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeMessage(1, getCenterWorldSpace()); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, getCenterWorldSpace()); } 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.Raw.ActionRawCameraMove)) { return super.equals(obj); } SC2APIProtocol.Raw.ActionRawCameraMove other = (SC2APIProtocol.Raw.ActionRawCameraMove) obj; if (hasCenterWorldSpace() != other.hasCenterWorldSpace()) return false; if (hasCenterWorldSpace()) { if (!getCenterWorldSpace() .equals(other.getCenterWorldSpace())) 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 (hasCenterWorldSpace()) { hash = (37 * hash) + CENTER_WORLD_SPACE_FIELD_NUMBER; hash = (53 * hash) + getCenterWorldSpace().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static SC2APIProtocol.Raw.ActionRawCameraMove parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Raw.ActionRawCameraMove parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Raw.ActionRawCameraMove parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Raw.ActionRawCameraMove parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Raw.ActionRawCameraMove parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Raw.ActionRawCameraMove parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Raw.ActionRawCameraMove parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Raw.ActionRawCameraMove 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.Raw.ActionRawCameraMove parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static SC2APIProtocol.Raw.ActionRawCameraMove 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.Raw.ActionRawCameraMove parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Raw.ActionRawCameraMove 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.Raw.ActionRawCameraMove 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.ActionRawCameraMove} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:SC2APIProtocol.ActionRawCameraMove) SC2APIProtocol.Raw.ActionRawCameraMoveOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Raw.internal_static_SC2APIProtocol_ActionRawCameraMove_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Raw.internal_static_SC2APIProtocol_ActionRawCameraMove_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Raw.ActionRawCameraMove.class, SC2APIProtocol.Raw.ActionRawCameraMove.Builder.class); } // Construct using SC2APIProtocol.Raw.ActionRawCameraMove.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getCenterWorldSpaceFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (centerWorldSpaceBuilder_ == null) { centerWorldSpace_ = null; } else { centerWorldSpaceBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return SC2APIProtocol.Raw.internal_static_SC2APIProtocol_ActionRawCameraMove_descriptor; } @java.lang.Override public SC2APIProtocol.Raw.ActionRawCameraMove getDefaultInstanceForType() { return SC2APIProtocol.Raw.ActionRawCameraMove.getDefaultInstance(); } @java.lang.Override public SC2APIProtocol.Raw.ActionRawCameraMove build() { SC2APIProtocol.Raw.ActionRawCameraMove result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public SC2APIProtocol.Raw.ActionRawCameraMove buildPartial() { SC2APIProtocol.Raw.ActionRawCameraMove result = new SC2APIProtocol.Raw.ActionRawCameraMove(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { if (centerWorldSpaceBuilder_ == null) { result.centerWorldSpace_ = centerWorldSpace_; } else { result.centerWorldSpace_ = centerWorldSpaceBuilder_.build(); } to_bitField0_ |= 0x00000001; } result.bitField0_ = to_bitField0_; onBuilt(); return result; } @java.lang.Override public Builder clone() { return super.clone(); } @java.lang.Override public Builder setField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } @java.lang.Override public Builder clearField( com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } @java.lang.Override public Builder clearOneof( com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } @java.lang.Override public Builder setRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } @java.lang.Override public Builder addRepeatedField( com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof SC2APIProtocol.Raw.ActionRawCameraMove) { return mergeFrom((SC2APIProtocol.Raw.ActionRawCameraMove)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(SC2APIProtocol.Raw.ActionRawCameraMove other) { if (other == SC2APIProtocol.Raw.ActionRawCameraMove.getDefaultInstance()) return this; if (other.hasCenterWorldSpace()) { mergeCenterWorldSpace(other.getCenterWorldSpace()); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 10: { input.readMessage( getCenterWorldSpaceFieldBuilder().getBuilder(), extensionRegistry); bitField0_ |= 0x00000001; break; } // case 10 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { done = true; // was an endgroup tag } break; } // default: } // switch (tag) } // while (!done) } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.unwrapIOException(); } finally { onChanged(); } // finally return this; } private int bitField0_; private SC2APIProtocol.Common.Point centerWorldSpace_; private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Common.Point, SC2APIProtocol.Common.Point.Builder, SC2APIProtocol.Common.PointOrBuilder> centerWorldSpaceBuilder_; /** * optional .SC2APIProtocol.Point center_world_space = 1; * @return Whether the centerWorldSpace field is set. */ public boolean hasCenterWorldSpace() { return ((bitField0_ & 0x00000001) != 0); } /** * optional .SC2APIProtocol.Point center_world_space = 1; * @return The centerWorldSpace. */ public SC2APIProtocol.Common.Point getCenterWorldSpace() { if (centerWorldSpaceBuilder_ == null) { return centerWorldSpace_ == null ? SC2APIProtocol.Common.Point.getDefaultInstance() : centerWorldSpace_; } else { return centerWorldSpaceBuilder_.getMessage(); } } /** * optional .SC2APIProtocol.Point center_world_space = 1; */ public Builder setCenterWorldSpace(SC2APIProtocol.Common.Point value) { if (centerWorldSpaceBuilder_ == null) { if (value == null) { throw new NullPointerException(); } centerWorldSpace_ = value; onChanged(); } else { centerWorldSpaceBuilder_.setMessage(value); } bitField0_ |= 0x00000001; return this; } /** * optional .SC2APIProtocol.Point center_world_space = 1; */ public Builder setCenterWorldSpace( SC2APIProtocol.Common.Point.Builder builderForValue) { if (centerWorldSpaceBuilder_ == null) { centerWorldSpace_ = builderForValue.build(); onChanged(); } else { centerWorldSpaceBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000001; return this; } /** * optional .SC2APIProtocol.Point center_world_space = 1; */ public Builder mergeCenterWorldSpace(SC2APIProtocol.Common.Point value) { if (centerWorldSpaceBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0) && centerWorldSpace_ != null && centerWorldSpace_ != SC2APIProtocol.Common.Point.getDefaultInstance()) { centerWorldSpace_ = SC2APIProtocol.Common.Point.newBuilder(centerWorldSpace_).mergeFrom(value).buildPartial(); } else { centerWorldSpace_ = value; } onChanged(); } else { centerWorldSpaceBuilder_.mergeFrom(value); } bitField0_ |= 0x00000001; return this; } /** * optional .SC2APIProtocol.Point center_world_space = 1; */ public Builder clearCenterWorldSpace() { if (centerWorldSpaceBuilder_ == null) { centerWorldSpace_ = null; onChanged(); } else { centerWorldSpaceBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000001); return this; } /** * optional .SC2APIProtocol.Point center_world_space = 1; */ public SC2APIProtocol.Common.Point.Builder getCenterWorldSpaceBuilder() { bitField0_ |= 0x00000001; onChanged(); return getCenterWorldSpaceFieldBuilder().getBuilder(); } /** * optional .SC2APIProtocol.Point center_world_space = 1; */ public SC2APIProtocol.Common.PointOrBuilder getCenterWorldSpaceOrBuilder() { if (centerWorldSpaceBuilder_ != null) { return centerWorldSpaceBuilder_.getMessageOrBuilder(); } else { return centerWorldSpace_ == null ? SC2APIProtocol.Common.Point.getDefaultInstance() : centerWorldSpace_; } } /** * optional .SC2APIProtocol.Point center_world_space = 1; */ private com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Common.Point, SC2APIProtocol.Common.Point.Builder, SC2APIProtocol.Common.PointOrBuilder> getCenterWorldSpaceFieldBuilder() { if (centerWorldSpaceBuilder_ == null) { centerWorldSpaceBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< SC2APIProtocol.Common.Point, SC2APIProtocol.Common.Point.Builder, SC2APIProtocol.Common.PointOrBuilder>( getCenterWorldSpace(), getParentForChildren(), isClean()); centerWorldSpace_ = null; } return centerWorldSpaceBuilder_; } @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.ActionRawCameraMove) } // @@protoc_insertion_point(class_scope:SC2APIProtocol.ActionRawCameraMove) private static final SC2APIProtocol.Raw.ActionRawCameraMove DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new SC2APIProtocol.Raw.ActionRawCameraMove(); } public static SC2APIProtocol.Raw.ActionRawCameraMove getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ActionRawCameraMove 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.Raw.ActionRawCameraMove getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } public interface ActionRawToggleAutocastOrBuilder extends // @@protoc_insertion_point(interface_extends:SC2APIProtocol.ActionRawToggleAutocast) com.google.protobuf.MessageOrBuilder { /** * optional int32 ability_id = 1; * @return Whether the abilityId field is set. */ boolean hasAbilityId(); /** * optional int32 ability_id = 1; * @return The abilityId. */ int getAbilityId(); /** * repeated uint64 unit_tags = 2; * @return A list containing the unitTags. */ java.util.List getUnitTagsList(); /** * repeated uint64 unit_tags = 2; * @return The count of unitTags. */ int getUnitTagsCount(); /** * repeated uint64 unit_tags = 2; * @param index The index of the element to return. * @return The unitTags at the given index. */ long getUnitTags(int index); } /** * Protobuf type {@code SC2APIProtocol.ActionRawToggleAutocast} */ public static final class ActionRawToggleAutocast extends com.google.protobuf.GeneratedMessageV3 implements // @@protoc_insertion_point(message_implements:SC2APIProtocol.ActionRawToggleAutocast) ActionRawToggleAutocastOrBuilder { private static final long serialVersionUID = 0L; // Use ActionRawToggleAutocast.newBuilder() to construct. private ActionRawToggleAutocast(com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } private ActionRawToggleAutocast() { unitTags_ = emptyLongList(); } @java.lang.Override @SuppressWarnings({"unused"}) protected java.lang.Object newInstance( UnusedPrivateParameter unused) { return new ActionRawToggleAutocast(); } @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Raw.internal_static_SC2APIProtocol_ActionRawToggleAutocast_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Raw.internal_static_SC2APIProtocol_ActionRawToggleAutocast_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Raw.ActionRawToggleAutocast.class, SC2APIProtocol.Raw.ActionRawToggleAutocast.Builder.class); } private int bitField0_; public static final int ABILITY_ID_FIELD_NUMBER = 1; private int abilityId_; /** * optional int32 ability_id = 1; * @return Whether the abilityId field is set. */ @java.lang.Override public boolean hasAbilityId() { return ((bitField0_ & 0x00000001) != 0); } /** * optional int32 ability_id = 1; * @return The abilityId. */ @java.lang.Override public int getAbilityId() { return abilityId_; } public static final int UNIT_TAGS_FIELD_NUMBER = 2; private com.google.protobuf.Internal.LongList unitTags_; /** * repeated uint64 unit_tags = 2; * @return A list containing the unitTags. */ @java.lang.Override public java.util.List getUnitTagsList() { return unitTags_; } /** * repeated uint64 unit_tags = 2; * @return The count of unitTags. */ public int getUnitTagsCount() { return unitTags_.size(); } /** * repeated uint64 unit_tags = 2; * @param index The index of the element to return. * @return The unitTags at the given index. */ public long getUnitTags(int index) { return unitTags_.getLong(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { output.writeInt32(1, abilityId_); } for (int i = 0; i < unitTags_.size(); i++) { output.writeUInt64(2, unitTags_.getLong(i)); } getUnknownFields().writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeInt32Size(1, abilityId_); } { int dataSize = 0; for (int i = 0; i < unitTags_.size(); i++) { dataSize += com.google.protobuf.CodedOutputStream .computeUInt64SizeNoTag(unitTags_.getLong(i)); } size += dataSize; size += 1 * getUnitTagsList().size(); } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof SC2APIProtocol.Raw.ActionRawToggleAutocast)) { return super.equals(obj); } SC2APIProtocol.Raw.ActionRawToggleAutocast other = (SC2APIProtocol.Raw.ActionRawToggleAutocast) obj; if (hasAbilityId() != other.hasAbilityId()) return false; if (hasAbilityId()) { if (getAbilityId() != other.getAbilityId()) return false; } if (!getUnitTagsList() .equals(other.getUnitTagsList())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasAbilityId()) { hash = (37 * hash) + ABILITY_ID_FIELD_NUMBER; hash = (53 * hash) + getAbilityId(); } if (getUnitTagsCount() > 0) { hash = (37 * hash) + UNIT_TAGS_FIELD_NUMBER; hash = (53 * hash) + getUnitTagsList().hashCode(); } hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; } public static SC2APIProtocol.Raw.ActionRawToggleAutocast parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Raw.ActionRawToggleAutocast parseFrom( java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Raw.ActionRawToggleAutocast parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Raw.ActionRawToggleAutocast parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Raw.ActionRawToggleAutocast parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static SC2APIProtocol.Raw.ActionRawToggleAutocast parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static SC2APIProtocol.Raw.ActionRawToggleAutocast parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Raw.ActionRawToggleAutocast 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.Raw.ActionRawToggleAutocast parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static SC2APIProtocol.Raw.ActionRawToggleAutocast 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.Raw.ActionRawToggleAutocast parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static SC2APIProtocol.Raw.ActionRawToggleAutocast 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.Raw.ActionRawToggleAutocast 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.ActionRawToggleAutocast} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:SC2APIProtocol.ActionRawToggleAutocast) SC2APIProtocol.Raw.ActionRawToggleAutocastOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return SC2APIProtocol.Raw.internal_static_SC2APIProtocol_ActionRawToggleAutocast_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return SC2APIProtocol.Raw.internal_static_SC2APIProtocol_ActionRawToggleAutocast_fieldAccessorTable .ensureFieldAccessorsInitialized( SC2APIProtocol.Raw.ActionRawToggleAutocast.class, SC2APIProtocol.Raw.ActionRawToggleAutocast.Builder.class); } // Construct using SC2APIProtocol.Raw.ActionRawToggleAutocast.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); unitTags_ = emptyLongList(); bitField0_ = (bitField0_ & ~0x00000002); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return SC2APIProtocol.Raw.internal_static_SC2APIProtocol_ActionRawToggleAutocast_descriptor; } @java.lang.Override public SC2APIProtocol.Raw.ActionRawToggleAutocast getDefaultInstanceForType() { return SC2APIProtocol.Raw.ActionRawToggleAutocast.getDefaultInstance(); } @java.lang.Override public SC2APIProtocol.Raw.ActionRawToggleAutocast build() { SC2APIProtocol.Raw.ActionRawToggleAutocast result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public SC2APIProtocol.Raw.ActionRawToggleAutocast buildPartial() { SC2APIProtocol.Raw.ActionRawToggleAutocast result = new SC2APIProtocol.Raw.ActionRawToggleAutocast(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.abilityId_ = abilityId_; to_bitField0_ |= 0x00000001; } if (((bitField0_ & 0x00000002) != 0)) { unitTags_.makeImmutable(); bitField0_ = (bitField0_ & ~0x00000002); } result.unitTags_ = unitTags_; 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.Raw.ActionRawToggleAutocast) { return mergeFrom((SC2APIProtocol.Raw.ActionRawToggleAutocast)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(SC2APIProtocol.Raw.ActionRawToggleAutocast other) { if (other == SC2APIProtocol.Raw.ActionRawToggleAutocast.getDefaultInstance()) return this; if (other.hasAbilityId()) { setAbilityId(other.getAbilityId()); } if (!other.unitTags_.isEmpty()) { if (unitTags_.isEmpty()) { unitTags_ = other.unitTags_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureUnitTagsIsMutable(); unitTags_.addAll(other.unitTags_); } onChanged(); } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { return true; } @java.lang.Override public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { if (extensionRegistry == null) { throw new java.lang.NullPointerException(); } try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; case 8: { abilityId_ = input.readInt32(); bitField0_ |= 0x00000001; break; } // case 8 case 16: { long v = input.readUInt64(); ensureUnitTagsIsMutable(); unitTags_.addLong(v); break; } // case 16 case 18: { int length = input.readRawVarint32(); int limit = input.pushLimit(length); ensureUnitTagsIsMutable(); while (input.getBytesUntilLimit() > 0) { unitTags_.addLong(input.readUInt64()); } input.popLimit(limit); 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 abilityId_ ; /** * optional int32 ability_id = 1; * @return Whether the abilityId field is set. */ @java.lang.Override public boolean hasAbilityId() { return ((bitField0_ & 0x00000001) != 0); } /** * optional int32 ability_id = 1; * @return The abilityId. */ @java.lang.Override public int getAbilityId() { return abilityId_; } /** * optional int32 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; } /** * optional int32 ability_id = 1; * @return This builder for chaining. */ public Builder clearAbilityId() { bitField0_ = (bitField0_ & ~0x00000001); abilityId_ = 0; onChanged(); return this; } private com.google.protobuf.Internal.LongList unitTags_ = emptyLongList(); private void ensureUnitTagsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { unitTags_ = mutableCopy(unitTags_); bitField0_ |= 0x00000002; } } /** * repeated uint64 unit_tags = 2; * @return A list containing the unitTags. */ public java.util.List getUnitTagsList() { return ((bitField0_ & 0x00000002) != 0) ? java.util.Collections.unmodifiableList(unitTags_) : unitTags_; } /** * repeated uint64 unit_tags = 2; * @return The count of unitTags. */ public int getUnitTagsCount() { return unitTags_.size(); } /** * repeated uint64 unit_tags = 2; * @param index The index of the element to return. * @return The unitTags at the given index. */ public long getUnitTags(int index) { return unitTags_.getLong(index); } /** * repeated uint64 unit_tags = 2; * @param index The index to set the value at. * @param value The unitTags to set. * @return This builder for chaining. */ public Builder setUnitTags( int index, long value) { ensureUnitTagsIsMutable(); unitTags_.setLong(index, value); onChanged(); return this; } /** * repeated uint64 unit_tags = 2; * @param value The unitTags to add. * @return This builder for chaining. */ public Builder addUnitTags(long value) { ensureUnitTagsIsMutable(); unitTags_.addLong(value); onChanged(); return this; } /** * repeated uint64 unit_tags = 2; * @param values The unitTags to add. * @return This builder for chaining. */ public Builder addAllUnitTags( java.lang.Iterable values) { ensureUnitTagsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, unitTags_); onChanged(); return this; } /** * repeated uint64 unit_tags = 2; * @return This builder for chaining. */ public Builder clearUnitTags() { unitTags_ = emptyLongList(); bitField0_ = (bitField0_ & ~0x00000002); 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.ActionRawToggleAutocast) } // @@protoc_insertion_point(class_scope:SC2APIProtocol.ActionRawToggleAutocast) private static final SC2APIProtocol.Raw.ActionRawToggleAutocast DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new SC2APIProtocol.Raw.ActionRawToggleAutocast(); } public static SC2APIProtocol.Raw.ActionRawToggleAutocast getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ActionRawToggleAutocast 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.Raw.ActionRawToggleAutocast getDefaultInstanceForType() { return DEFAULT_INSTANCE; } } private static final com.google.protobuf.Descriptors.Descriptor internal_static_SC2APIProtocol_StartRaw_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_SC2APIProtocol_StartRaw_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_SC2APIProtocol_ObservationRaw_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_SC2APIProtocol_ObservationRaw_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_SC2APIProtocol_RadarRing_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_SC2APIProtocol_RadarRing_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_SC2APIProtocol_PowerSource_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_SC2APIProtocol_PowerSource_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_SC2APIProtocol_PlayerRaw_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_SC2APIProtocol_PlayerRaw_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_SC2APIProtocol_UnitOrder_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_SC2APIProtocol_UnitOrder_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_SC2APIProtocol_PassengerUnit_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_SC2APIProtocol_PassengerUnit_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_SC2APIProtocol_RallyTarget_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_SC2APIProtocol_RallyTarget_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_SC2APIProtocol_Unit_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_SC2APIProtocol_Unit_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_SC2APIProtocol_MapState_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_SC2APIProtocol_MapState_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_SC2APIProtocol_Event_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_SC2APIProtocol_Event_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_SC2APIProtocol_Effect_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_SC2APIProtocol_Effect_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_SC2APIProtocol_ActionRaw_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_SC2APIProtocol_ActionRaw_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_SC2APIProtocol_ActionRawUnitCommand_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_SC2APIProtocol_ActionRawUnitCommand_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_SC2APIProtocol_ActionRawCameraMove_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_SC2APIProtocol_ActionRawCameraMove_fieldAccessorTable; private static final com.google.protobuf.Descriptors.Descriptor internal_static_SC2APIProtocol_ActionRawToggleAutocast_descriptor; private static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_SC2APIProtocol_ActionRawToggleAutocast_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\032s2clientprotocol/raw.proto\022\016SC2APIProt" + "ocol\032\035s2clientprotocol/common.proto\"\261\002\n\010" + "StartRaw\022)\n\010map_size\030\001 \001(\0132\027.SC2APIProto" + "col.Size2DI\022/\n\014pathing_grid\030\002 \001(\0132\031.SC2A" + "PIProtocol.ImageData\0221\n\016terrain_height\030\003" + " \001(\0132\031.SC2APIProtocol.ImageData\0221\n\016place" + "ment_grid\030\004 \001(\0132\031.SC2APIProtocol.ImageDa" + "ta\0221\n\rplayable_area\030\005 \001(\0132\032.SC2APIProtoc" + "ol.RectangleI\0220\n\017start_locations\030\006 \003(\0132\027" + ".SC2APIProtocol.Point2D\"\206\002\n\016ObservationR" + "aw\022)\n\006player\030\001 \001(\0132\031.SC2APIProtocol.Play" + "erRaw\022#\n\005units\030\002 \003(\0132\024.SC2APIProtocol.Un" + "it\022+\n\tmap_state\030\003 \001(\0132\030.SC2APIProtocol.M" + "apState\022$\n\005event\030\004 \001(\0132\025.SC2APIProtocol." + "Event\022\'\n\007effects\030\005 \003(\0132\026.SC2APIProtocol." + "Effect\022(\n\005radar\030\006 \003(\0132\031.SC2APIProtocol.R" + "adarRing\"?\n\tRadarRing\022\"\n\003pos\030\001 \001(\0132\025.SC2" + "APIProtocol.Point\022\016\n\006radius\030\002 \001(\002\"N\n\013Pow" + "erSource\022\"\n\003pos\030\001 \001(\0132\025.SC2APIProtocol.P" + "oint\022\016\n\006radius\030\002 \001(\002\022\013\n\003tag\030\003 \001(\004\"{\n\tPla" + "yerRaw\0222\n\rpower_sources\030\001 \003(\0132\033.SC2APIPr" + "otocol.PowerSource\022%\n\006camera\030\002 \001(\0132\025.SC2" + "APIProtocol.Point\022\023\n\013upgrade_ids\030\003 \003(\r\"\217" + "\001\n\tUnitOrder\022\022\n\nability_id\030\001 \001(\r\0227\n\026targ" + "et_world_space_pos\030\002 \001(\0132\025.SC2APIProtoco" + "l.PointH\000\022\031\n\017target_unit_tag\030\003 \001(\004H\000\022\020\n\010" + "progress\030\004 \001(\002B\010\n\006target\"\233\001\n\rPassengerUn" + "it\022\013\n\003tag\030\001 \001(\004\022\016\n\006health\030\002 \001(\002\022\022\n\nhealt" + "h_max\030\003 \001(\002\022\016\n\006shield\030\004 \001(\002\022\022\n\nshield_ma" + "x\030\007 \001(\002\022\016\n\006energy\030\005 \001(\002\022\022\n\nenergy_max\030\010 " + "\001(\002\022\021\n\tunit_type\030\006 \001(\r\"@\n\013RallyTarget\022$\n" + "\005point\030\001 \001(\0132\025.SC2APIProtocol.Point\022\013\n\003t" + "ag\030\002 \001(\004\"\365\010\n\004Unit\0221\n\014display_type\030\001 \001(\0162" + "\033.SC2APIProtocol.DisplayType\022*\n\010alliance" + "\030\002 \001(\0162\030.SC2APIProtocol.Alliance\022\013\n\003tag\030" + "\003 \001(\004\022\021\n\tunit_type\030\004 \001(\r\022\r\n\005owner\030\005 \001(\005\022" + "\"\n\003pos\030\006 \001(\0132\025.SC2APIProtocol.Point\022\016\n\006f" + "acing\030\007 \001(\002\022\016\n\006radius\030\010 \001(\002\022\026\n\016build_pro" + "gress\030\t \001(\002\022)\n\005cloak\030\n \001(\0162\032.SC2APIProto" + "col.CloakState\022\020\n\010buff_ids\030\033 \003(\r\022\024\n\014dete" + "ct_range\030\037 \001(\002\022\023\n\013radar_range\030 \001(\002\022\023\n\013i" + "s_selected\030\013 \001(\010\022\024\n\014is_on_screen\030\014 \001(\010\022\017" + "\n\007is_blip\030\r \001(\010\022\022\n\nis_powered\030# \001(\010\022\021\n\ti" + "s_active\030\' \001(\010\022\034\n\024attack_upgrade_level\030(" + " \001(\005\022\033\n\023armor_upgrade_level\030) \001(\005\022\034\n\024shi" + "eld_upgrade_level\030* \001(\005\022\016\n\006health\030\016 \001(\002\022" + "\022\n\nhealth_max\030\017 \001(\002\022\016\n\006shield\030\020 \001(\002\022\022\n\ns" + "hield_max\030$ \001(\002\022\016\n\006energy\030\021 \001(\002\022\022\n\nenerg" + "y_max\030% \001(\002\022\030\n\020mineral_contents\030\022 \001(\005\022\030\n" + "\020vespene_contents\030\023 \001(\005\022\021\n\tis_flying\030\024 \001" + "(\010\022\023\n\013is_burrowed\030\025 \001(\010\022\030\n\020is_hallucinat" + "ion\030& \001(\010\022)\n\006orders\030\026 \003(\0132\031.SC2APIProtoc" + "ol.UnitOrder\022\022\n\nadd_on_tag\030\027 \001(\004\0221\n\npass" + "engers\030\030 \003(\0132\035.SC2APIProtocol.PassengerU" + "nit\022\031\n\021cargo_space_taken\030\031 \001(\005\022\027\n\017cargo_" + "space_max\030\032 \001(\005\022\033\n\023assigned_harvesters\030\034" + " \001(\005\022\030\n\020ideal_harvesters\030\035 \001(\005\022\027\n\017weapon" + "_cooldown\030\036 \001(\002\022\032\n\022engaged_target_tag\030\" " + "\001(\004\022\034\n\024buff_duration_remain\030+ \001(\005\022\031\n\021buf" + "f_duration_max\030, \001(\005\0222\n\rrally_targets\030- " + "\003(\0132\033.SC2APIProtocol.RallyTarget\"c\n\010MapS" + "tate\022-\n\nvisibility\030\001 \001(\0132\031.SC2APIProtoco" + "l.ImageData\022(\n\005creep\030\002 \001(\0132\031.SC2APIProto" + "col.ImageData\"\033\n\005Event\022\022\n\ndead_units\030\001 \003" + "(\004\"\214\001\n\006Effect\022\021\n\teffect_id\030\001 \001(\r\022$\n\003pos\030" + "\002 \003(\0132\027.SC2APIProtocol.Point2D\022*\n\010allian" + "ce\030\003 \001(\0162\030.SC2APIProtocol.Alliance\022\r\n\005ow" + "ner\030\004 \001(\005\022\016\n\006radius\030\005 \001(\002\"\323\001\n\tActionRaw\022" + "<\n\014unit_command\030\001 \001(\0132$.SC2APIProtocol.A" + "ctionRawUnitCommandH\000\022:\n\013camera_move\030\002 \001" + "(\0132#.SC2APIProtocol.ActionRawCameraMoveH" + "\000\022B\n\017toggle_autocast\030\003 \001(\0132\'.SC2APIProto" + "col.ActionRawToggleAutocastH\000B\010\n\006action\"" + "\264\001\n\024ActionRawUnitCommand\022\022\n\nability_id\030\001" + " \001(\005\0229\n\026target_world_space_pos\030\002 \001(\0132\027.S" + "C2APIProtocol.Point2DH\000\022\031\n\017target_unit_t" + "ag\030\003 \001(\004H\000\022\021\n\tunit_tags\030\004 \003(\004\022\025\n\rqueue_c" + "ommand\030\005 \001(\010B\010\n\006target\"H\n\023ActionRawCamer" + "aMove\0221\n\022center_world_space\030\001 \001(\0132\025.SC2A" + "PIProtocol.Point\"@\n\027ActionRawToggleAutoc" + "ast\022\022\n\nability_id\030\001 \001(\005\022\021\n\tunit_tags\030\002 \003" + "(\004*E\n\013DisplayType\022\013\n\007Visible\020\001\022\014\n\010Snapsh" + "ot\020\002\022\n\n\006Hidden\020\003\022\017\n\013Placeholder\020\004*6\n\010All" + "iance\022\010\n\004Self\020\001\022\010\n\004Ally\020\002\022\013\n\007Neutral\020\003\022\t" + "\n\005Enemy\020\004*e\n\nCloakState\022\022\n\016CloakedUnknow" + "n\020\000\022\013\n\007Cloaked\020\001\022\023\n\017CloakedDetected\020\002\022\016\n" + "\nNotCloaked\020\003\022\021\n\rCloakedAllied\020\004" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor .internalBuildGeneratedFileFrom(descriptorData, new com.google.protobuf.Descriptors.FileDescriptor[] { SC2APIProtocol.Common.getDescriptor(), }); internal_static_SC2APIProtocol_StartRaw_descriptor = getDescriptor().getMessageTypes().get(0); internal_static_SC2APIProtocol_StartRaw_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_SC2APIProtocol_StartRaw_descriptor, new java.lang.String[] { "MapSize", "PathingGrid", "TerrainHeight", "PlacementGrid", "PlayableArea", "StartLocations", }); internal_static_SC2APIProtocol_ObservationRaw_descriptor = getDescriptor().getMessageTypes().get(1); internal_static_SC2APIProtocol_ObservationRaw_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_SC2APIProtocol_ObservationRaw_descriptor, new java.lang.String[] { "Player", "Units", "MapState", "Event", "Effects", "Radar", }); internal_static_SC2APIProtocol_RadarRing_descriptor = getDescriptor().getMessageTypes().get(2); internal_static_SC2APIProtocol_RadarRing_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_SC2APIProtocol_RadarRing_descriptor, new java.lang.String[] { "Pos", "Radius", }); internal_static_SC2APIProtocol_PowerSource_descriptor = getDescriptor().getMessageTypes().get(3); internal_static_SC2APIProtocol_PowerSource_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_SC2APIProtocol_PowerSource_descriptor, new java.lang.String[] { "Pos", "Radius", "Tag", }); internal_static_SC2APIProtocol_PlayerRaw_descriptor = getDescriptor().getMessageTypes().get(4); internal_static_SC2APIProtocol_PlayerRaw_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_SC2APIProtocol_PlayerRaw_descriptor, new java.lang.String[] { "PowerSources", "Camera", "UpgradeIds", }); internal_static_SC2APIProtocol_UnitOrder_descriptor = getDescriptor().getMessageTypes().get(5); internal_static_SC2APIProtocol_UnitOrder_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_SC2APIProtocol_UnitOrder_descriptor, new java.lang.String[] { "AbilityId", "TargetWorldSpacePos", "TargetUnitTag", "Progress", "Target", }); internal_static_SC2APIProtocol_PassengerUnit_descriptor = getDescriptor().getMessageTypes().get(6); internal_static_SC2APIProtocol_PassengerUnit_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_SC2APIProtocol_PassengerUnit_descriptor, new java.lang.String[] { "Tag", "Health", "HealthMax", "Shield", "ShieldMax", "Energy", "EnergyMax", "UnitType", }); internal_static_SC2APIProtocol_RallyTarget_descriptor = getDescriptor().getMessageTypes().get(7); internal_static_SC2APIProtocol_RallyTarget_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_SC2APIProtocol_RallyTarget_descriptor, new java.lang.String[] { "Point", "Tag", }); internal_static_SC2APIProtocol_Unit_descriptor = getDescriptor().getMessageTypes().get(8); internal_static_SC2APIProtocol_Unit_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_SC2APIProtocol_Unit_descriptor, new java.lang.String[] { "DisplayType", "Alliance", "Tag", "UnitType", "Owner", "Pos", "Facing", "Radius", "BuildProgress", "Cloak", "BuffIds", "DetectRange", "RadarRange", "IsSelected", "IsOnScreen", "IsBlip", "IsPowered", "IsActive", "AttackUpgradeLevel", "ArmorUpgradeLevel", "ShieldUpgradeLevel", "Health", "HealthMax", "Shield", "ShieldMax", "Energy", "EnergyMax", "MineralContents", "VespeneContents", "IsFlying", "IsBurrowed", "IsHallucination", "Orders", "AddOnTag", "Passengers", "CargoSpaceTaken", "CargoSpaceMax", "AssignedHarvesters", "IdealHarvesters", "WeaponCooldown", "EngagedTargetTag", "BuffDurationRemain", "BuffDurationMax", "RallyTargets", }); internal_static_SC2APIProtocol_MapState_descriptor = getDescriptor().getMessageTypes().get(9); internal_static_SC2APIProtocol_MapState_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_SC2APIProtocol_MapState_descriptor, new java.lang.String[] { "Visibility", "Creep", }); internal_static_SC2APIProtocol_Event_descriptor = getDescriptor().getMessageTypes().get(10); internal_static_SC2APIProtocol_Event_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_SC2APIProtocol_Event_descriptor, new java.lang.String[] { "DeadUnits", }); internal_static_SC2APIProtocol_Effect_descriptor = getDescriptor().getMessageTypes().get(11); internal_static_SC2APIProtocol_Effect_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_SC2APIProtocol_Effect_descriptor, new java.lang.String[] { "EffectId", "Pos", "Alliance", "Owner", "Radius", }); internal_static_SC2APIProtocol_ActionRaw_descriptor = getDescriptor().getMessageTypes().get(12); internal_static_SC2APIProtocol_ActionRaw_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_SC2APIProtocol_ActionRaw_descriptor, new java.lang.String[] { "UnitCommand", "CameraMove", "ToggleAutocast", "Action", }); internal_static_SC2APIProtocol_ActionRawUnitCommand_descriptor = getDescriptor().getMessageTypes().get(13); internal_static_SC2APIProtocol_ActionRawUnitCommand_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_SC2APIProtocol_ActionRawUnitCommand_descriptor, new java.lang.String[] { "AbilityId", "TargetWorldSpacePos", "TargetUnitTag", "UnitTags", "QueueCommand", "Target", }); internal_static_SC2APIProtocol_ActionRawCameraMove_descriptor = getDescriptor().getMessageTypes().get(14); internal_static_SC2APIProtocol_ActionRawCameraMove_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_SC2APIProtocol_ActionRawCameraMove_descriptor, new java.lang.String[] { "CenterWorldSpace", }); internal_static_SC2APIProtocol_ActionRawToggleAutocast_descriptor = getDescriptor().getMessageTypes().get(15); internal_static_SC2APIProtocol_ActionRawToggleAutocast_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_SC2APIProtocol_ActionRawToggleAutocast_descriptor, new java.lang.String[] { "AbilityId", "UnitTags", }); SC2APIProtocol.Common.getDescriptor(); } // @@protoc_insertion_point(outer_class_scope) }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy