// Generated by the protocol buffer compiler. DO NOT EDIT! // source: GameState.proto package messages; /** * Protobuf type {@code messages.RobotInfo} */ public final class RobotInfo extends com.google.protobuf.GeneratedMessage implements RobotInfoOrBuilder { // Use RobotInfo.newBuilder() to construct. private RobotInfo(com.google.protobuf.GeneratedMessage.Builder<?> builder) { super(builder); this.unknownFields = builder.getUnknownFields(); } private RobotInfo(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); } private static final RobotInfo defaultInstance; public static RobotInfo getDefaultInstance() { return defaultInstance; } public RobotInfo getDefaultInstanceForType() { return defaultInstance; } private final com.google.protobuf.UnknownFieldSet unknownFields; @java.lang.Override public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } private RobotInfo( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { initFields(); int mutable_bitField0_ = 0; com.google.protobuf.UnknownFieldSet.Builder unknownFields = com.google.protobuf.UnknownFieldSet.newBuilder(); try { boolean done = false; while (!done) { int tag = input.readTag(); switch (tag) { case 0: done = true; break; default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { done = true; } break; } case 8: { bitField0_ |= 0x00000001; penalty_ = input.readUInt32(); break; } case 16: { bitField0_ |= 0x00000002; secsLeft_ = input.readUInt32(); break; } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { throw e.setUnfinishedMessage(this); } catch (java.io.IOException e) { throw new com.google.protobuf.InvalidProtocolBufferException( e.getMessage()).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return messages._File_GameState.internal_static_messages_RobotInfo_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return messages._File_GameState.internal_static_messages_RobotInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( messages.RobotInfo.class, messages.RobotInfo.Builder.class); } public static com.google.protobuf.Parser<RobotInfo> PARSER = new com.google.protobuf.AbstractParser<RobotInfo>() { public RobotInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new RobotInfo(input, extensionRegistry); } }; @java.lang.Override public com.google.protobuf.Parser<RobotInfo> getParserForType() { return PARSER; } private int bitField0_; // optional uint32 penalty = 1; public static final int PENALTY_FIELD_NUMBER = 1; private int penalty_; /** * <code>optional uint32 penalty = 1;</code> */ public boolean hasPenalty() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional uint32 penalty = 1;</code> */ public int getPenalty() { return penalty_; } // optional uint32 secs_left = 2; public static final int SECS_LEFT_FIELD_NUMBER = 2; private int secsLeft_; /** * <code>optional uint32 secs_left = 2;</code> */ public boolean hasSecsLeft() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional uint32 secs_left = 2;</code> */ public int getSecsLeft() { return secsLeft_; } private void initFields() { penalty_ = 0; secsLeft_ = 0; } private byte memoizedIsInitialized = -1; public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized != -1) return isInitialized == 1; memoizedIsInitialized = 1; return true; } public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { getSerializedSize(); if (((bitField0_ & 0x00000001) == 0x00000001)) { output.writeUInt32(1, penalty_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { output.writeUInt32(2, secsLeft_); } getUnknownFields().writeTo(output); } private int memoizedSerializedSize = -1; public int getSerializedSize() { int size = memoizedSerializedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) == 0x00000001)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, penalty_); } if (((bitField0_ & 0x00000002) == 0x00000002)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(2, secsLeft_); } size += getUnknownFields().getSerializedSize(); memoizedSerializedSize = size; return size; } private static final long serialVersionUID = 0L; @java.lang.Override protected java.lang.Object writeReplace() throws java.io.ObjectStreamException { return super.writeReplace(); } public static messages.RobotInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static messages.RobotInfo parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static messages.RobotInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static messages.RobotInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static messages.RobotInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static messages.RobotInfo parseFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static messages.RobotInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return PARSER.parseDelimitedFrom(input); } public static messages.RobotInfo parseDelimitedFrom( java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseDelimitedFrom(input, extensionRegistry); } public static messages.RobotInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return PARSER.parseFrom(input); } public static messages.RobotInfo parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { return PARSER.parseFrom(input, extensionRegistry); } public static Builder newBuilder() { return Builder.create(); } public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder(messages.RobotInfo prototype) { return newBuilder().mergeFrom(prototype); } public Builder toBuilder() { return newBuilder(this); } @java.lang.Override protected Builder newBuilderForType( com.google.protobuf.GeneratedMessage.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** * Protobuf type {@code messages.RobotInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessage.Builder<Builder> implements messages.RobotInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return messages._File_GameState.internal_static_messages_RobotInfo_descriptor; } protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return messages._File_GameState.internal_static_messages_RobotInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( messages.RobotInfo.class, messages.RobotInfo.Builder.class); } // Construct using messages.RobotInfo.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessage.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) { } } private static Builder create() { return new Builder(); } public Builder clear() { super.clear(); penalty_ = 0; bitField0_ = (bitField0_ & ~0x00000001); secsLeft_ = 0; bitField0_ = (bitField0_ & ~0x00000002); return this; } public Builder clone() { return create().mergeFrom(buildPartial()); } public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return messages._File_GameState.internal_static_messages_RobotInfo_descriptor; } public messages.RobotInfo getDefaultInstanceForType() { return messages.RobotInfo.getDefaultInstance(); } public messages.RobotInfo build() { messages.RobotInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } public messages.RobotInfo buildPartial() { messages.RobotInfo result = new messages.RobotInfo(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) == 0x00000001)) { to_bitField0_ |= 0x00000001; } result.penalty_ = penalty_; if (((from_bitField0_ & 0x00000002) == 0x00000002)) { to_bitField0_ |= 0x00000002; } result.secsLeft_ = secsLeft_; result.bitField0_ = to_bitField0_; onBuilt(); return result; } public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof messages.RobotInfo) { return mergeFrom((messages.RobotInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(messages.RobotInfo other) { if (other == messages.RobotInfo.getDefaultInstance()) return this; if (other.hasPenalty()) { setPenalty(other.getPenalty()); } if (other.hasSecsLeft()) { setSecsLeft(other.getSecsLeft()); } this.mergeUnknownFields(other.getUnknownFields()); return this; } public final boolean isInitialized() { return true; } public Builder mergeFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { messages.RobotInfo parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (messages.RobotInfo) e.getUnfinishedMessage(); throw e; } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; // optional uint32 penalty = 1; private int penalty_ ; /** * <code>optional uint32 penalty = 1;</code> */ public boolean hasPenalty() { return ((bitField0_ & 0x00000001) == 0x00000001); } /** * <code>optional uint32 penalty = 1;</code> */ public int getPenalty() { return penalty_; } /** * <code>optional uint32 penalty = 1;</code> */ public Builder setPenalty(int value) { bitField0_ |= 0x00000001; penalty_ = value; onChanged(); return this; } /** * <code>optional uint32 penalty = 1;</code> */ public Builder clearPenalty() { bitField0_ = (bitField0_ & ~0x00000001); penalty_ = 0; onChanged(); return this; } // optional uint32 secs_left = 2; private int secsLeft_ ; /** * <code>optional uint32 secs_left = 2;</code> */ public boolean hasSecsLeft() { return ((bitField0_ & 0x00000002) == 0x00000002); } /** * <code>optional uint32 secs_left = 2;</code> */ public int getSecsLeft() { return secsLeft_; } /** * <code>optional uint32 secs_left = 2;</code> */ public Builder setSecsLeft(int value) { bitField0_ |= 0x00000002; secsLeft_ = value; onChanged(); return this; } /** * <code>optional uint32 secs_left = 2;</code> */ public Builder clearSecsLeft() { bitField0_ = (bitField0_ & ~0x00000002); secsLeft_ = 0; onChanged(); return this; } // @@protoc_insertion_point(builder_scope:messages.RobotInfo) } static { defaultInstance = new RobotInfo(true); defaultInstance.initFields(); } // @@protoc_insertion_point(class_scope:messages.RobotInfo) }