// Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: robot_RMACM.proto // Protobuf Java Version: 4.27.2 package com.example.removemarineanimals.models; public final class RobotRMACM { private RobotRMACM() {} static { com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, /* minor= */ 27, /* patch= */ 2, /* suffix= */ "", RobotRMACM.class.getName()); } public static void registerAllExtensions( com.google.protobuf.ExtensionRegistryLite registry) { } public static void registerAllExtensions( com.google.protobuf.ExtensionRegistry registry) { registerAllExtensions( (com.google.protobuf.ExtensionRegistryLite) registry); } public interface RMACMOrBuilder extends // @@protoc_insertion_point(interface_extends:RMACM) com.google.protobuf.MessageOrBuilder { /** *
* 灯光亮度
*
*
* int32 LightBrightness = 1;
* @return The lightBrightness.
*/
int getLightBrightness();
/**
*
* 机器人速度
*
*
* int32 Robot_Speed = 2;
* @return The robotSpeed.
*/
int getRobotSpeed();
}
/**
* * Remove Marine Animal Command ** * Protobuf type {@code RMACM} */ public static final class RMACM extends com.google.protobuf.GeneratedMessage implements // @@protoc_insertion_point(message_implements:RMACM) RMACMOrBuilder { private static final long serialVersionUID = 0L; static { com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, /* minor= */ 27, /* patch= */ 2, /* suffix= */ "", RMACM.class.getName()); } // Use RMACM.newBuilder() to construct. private RMACM(com.google.protobuf.GeneratedMessage.Builder> builder) { super(builder); } private RMACM() { } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return com.example.removemarineanimals.models.RobotRMACM.internal_static_RMACM_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable() { return com.example.removemarineanimals.models.RobotRMACM.internal_static_RMACM_fieldAccessorTable .ensureFieldAccessorsInitialized( com.example.removemarineanimals.models.RobotRMACM.RMACM.class, com.example.removemarineanimals.models.RobotRMACM.RMACM.Builder.class); } public static final int LIGHTBRIGHTNESS_FIELD_NUMBER = 1; private int lightBrightness_ = 0; /** *
* 灯光亮度
*
*
* int32 LightBrightness = 1;
* @return The lightBrightness.
*/
@java.lang.Override
public int getLightBrightness() {
return lightBrightness_;
}
public static final int ROBOT_SPEED_FIELD_NUMBER = 2;
private int robotSpeed_ = 0;
/**
*
* 机器人速度
*
*
* int32 Robot_Speed = 2;
* @return The robotSpeed.
*/
@java.lang.Override
public int getRobotSpeed() {
return robotSpeed_;
}
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 (lightBrightness_ != 0) {
output.writeInt32(1, lightBrightness_);
}
if (robotSpeed_ != 0) {
output.writeInt32(2, robotSpeed_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (lightBrightness_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(1, lightBrightness_);
}
if (robotSpeed_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(2, robotSpeed_);
}
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 com.example.removemarineanimals.models.RobotRMACM.RMACM)) {
return super.equals(obj);
}
com.example.removemarineanimals.models.RobotRMACM.RMACM other = (com.example.removemarineanimals.models.RobotRMACM.RMACM) obj;
if (getLightBrightness()
!= other.getLightBrightness()) return false;
if (getRobotSpeed()
!= other.getRobotSpeed()) 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();
hash = (37 * hash) + LIGHTBRIGHTNESS_FIELD_NUMBER;
hash = (53 * hash) + getLightBrightness();
hash = (37 * hash) + ROBOT_SPEED_FIELD_NUMBER;
hash = (53 * hash) + getRobotSpeed();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.example.removemarineanimals.models.RobotRMACM.RMACM parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.example.removemarineanimals.models.RobotRMACM.RMACM parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.example.removemarineanimals.models.RobotRMACM.RMACM parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.example.removemarineanimals.models.RobotRMACM.RMACM parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.example.removemarineanimals.models.RobotRMACM.RMACM parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.example.removemarineanimals.models.RobotRMACM.RMACM parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.example.removemarineanimals.models.RobotRMACM.RMACM parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input);
}
public static com.example.removemarineanimals.models.RobotRMACM.RMACM parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static com.example.removemarineanimals.models.RobotRMACM.RMACM parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseDelimitedWithIOException(PARSER, input);
}
public static com.example.removemarineanimals.models.RobotRMACM.RMACM parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static com.example.removemarineanimals.models.RobotRMACM.RMACM parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input);
}
public static com.example.removemarineanimals.models.RobotRMACM.RMACM parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(com.example.removemarineanimals.models.RobotRMACM.RMACM 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.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
*
* Remove Marine Animal Command
*
*
* Protobuf type {@code RMACM}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
* 灯光亮度
*
*
* int32 LightBrightness = 1;
* @return The lightBrightness.
*/
@java.lang.Override
public int getLightBrightness() {
return lightBrightness_;
}
/**
*
* 灯光亮度
*
*
* int32 LightBrightness = 1;
* @param value The lightBrightness to set.
* @return This builder for chaining.
*/
public Builder setLightBrightness(int value) {
lightBrightness_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* 灯光亮度
*
*
* int32 LightBrightness = 1;
* @return This builder for chaining.
*/
public Builder clearLightBrightness() {
bitField0_ = (bitField0_ & ~0x00000001);
lightBrightness_ = 0;
onChanged();
return this;
}
private int robotSpeed_ ;
/**
*
* 机器人速度
*
*
* int32 Robot_Speed = 2;
* @return The robotSpeed.
*/
@java.lang.Override
public int getRobotSpeed() {
return robotSpeed_;
}
/**
*
* 机器人速度
*
*
* int32 Robot_Speed = 2;
* @param value The robotSpeed to set.
* @return This builder for chaining.
*/
public Builder setRobotSpeed(int value) {
robotSpeed_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* 机器人速度
*
*
* int32 Robot_Speed = 2;
* @return This builder for chaining.
*/
public Builder clearRobotSpeed() {
bitField0_ = (bitField0_ & ~0x00000002);
robotSpeed_ = 0;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:RMACM)
}
// @@protoc_insertion_point(class_scope:RMACM)
private static final com.example.removemarineanimals.models.RobotRMACM.RMACM DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.example.removemarineanimals.models.RobotRMACM.RMACM();
}
public static com.example.removemarineanimals.models.RobotRMACM.RMACM getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser