You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

616 lines
20 KiB

1 month ago
// 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 {
/**
* <pre>
* 灯光亮度
* </pre>
*
* <code>int32 LightBrightness = 1;</code>
* @return The lightBrightness.
*/
int getLightBrightness();
/**
* <pre>
* 机器人速度
* </pre>
*
* <code>int32 Robot_Speed = 2;</code>
* @return The robotSpeed.
*/
int getRobotSpeed();
}
/**
* <pre>
* Remove Marine Animal Command
* </pre>
*
* 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;
/**
* <pre>
* 灯光亮度
* </pre>
*
* <code>int32 LightBrightness = 1;</code>
* @return The lightBrightness.
*/
@java.lang.Override
public int getLightBrightness() {
return lightBrightness_;
}
public static final int ROBOT_SPEED_FIELD_NUMBER = 2;
private int robotSpeed_ = 0;
/**
* <pre>
* 机器人速度
* </pre>
*
* <code>int32 Robot_Speed = 2;</code>
* @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;
}
/**
* <pre>
* Remove Marine Animal Command
* </pre>
*
* Protobuf type {@code RMACM}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:RMACM)
com.example.removemarineanimals.models.RobotRMACM.RMACMOrBuilder {
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);
}
// Construct using com.example.removemarineanimals.models.RobotRMACM.RMACM.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
lightBrightness_ = 0;
robotSpeed_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return com.example.removemarineanimals.models.RobotRMACM.internal_static_RMACM_descriptor;
}
@java.lang.Override
public com.example.removemarineanimals.models.RobotRMACM.RMACM getDefaultInstanceForType() {
return com.example.removemarineanimals.models.RobotRMACM.RMACM.getDefaultInstance();
}
@java.lang.Override
public com.example.removemarineanimals.models.RobotRMACM.RMACM build() {
com.example.removemarineanimals.models.RobotRMACM.RMACM result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public com.example.removemarineanimals.models.RobotRMACM.RMACM buildPartial() {
com.example.removemarineanimals.models.RobotRMACM.RMACM result = new com.example.removemarineanimals.models.RobotRMACM.RMACM(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(com.example.removemarineanimals.models.RobotRMACM.RMACM result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.lightBrightness_ = lightBrightness_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.robotSpeed_ = robotSpeed_;
}
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof com.example.removemarineanimals.models.RobotRMACM.RMACM) {
return mergeFrom((com.example.removemarineanimals.models.RobotRMACM.RMACM)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(com.example.removemarineanimals.models.RobotRMACM.RMACM other) {
if (other == com.example.removemarineanimals.models.RobotRMACM.RMACM.getDefaultInstance()) return this;
if (other.getLightBrightness() != 0) {
setLightBrightness(other.getLightBrightness());
}
if (other.getRobotSpeed() != 0) {
setRobotSpeed(other.getRobotSpeed());
}
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: {
lightBrightness_ = input.readInt32();
bitField0_ |= 0x00000001;
break;
} // case 8
case 16: {
robotSpeed_ = input.readInt32();
bitField0_ |= 0x00000002;
break;
} // case 16
default: {
if (!super.parseUnknownField(input, extensionRegistry, tag)) {
done = true; // was an endgroup tag
}
break;
} // default:
} // switch (tag)
} // while (!done)
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.unwrapIOException();
} finally {
onChanged();
} // finally
return this;
}
private int bitField0_;
private int lightBrightness_ ;
/**
* <pre>
* 灯光亮度
* </pre>
*
* <code>int32 LightBrightness = 1;</code>
* @return The lightBrightness.
*/
@java.lang.Override
public int getLightBrightness() {
return lightBrightness_;
}
/**
* <pre>
* 灯光亮度
* </pre>
*
* <code>int32 LightBrightness = 1;</code>
* @param value The lightBrightness to set.
* @return This builder for chaining.
*/
public Builder setLightBrightness(int value) {
lightBrightness_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* <pre>
* 灯光亮度
* </pre>
*
* <code>int32 LightBrightness = 1;</code>
* @return This builder for chaining.
*/
public Builder clearLightBrightness() {
bitField0_ = (bitField0_ & ~0x00000001);
lightBrightness_ = 0;
onChanged();
return this;
}
private int robotSpeed_ ;
/**
* <pre>
* 机器人速度
* </pre>
*
* <code>int32 Robot_Speed = 2;</code>
* @return The robotSpeed.
*/
@java.lang.Override
public int getRobotSpeed() {
return robotSpeed_;
}
/**
* <pre>
* 机器人速度
* </pre>
*
* <code>int32 Robot_Speed = 2;</code>
* @param value The robotSpeed to set.
* @return This builder for chaining.
*/
public Builder setRobotSpeed(int value) {
robotSpeed_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* <pre>
* 机器人速度
* </pre>
*
* <code>int32 Robot_Speed = 2;</code>
* @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<RMACM>
PARSER = new com.google.protobuf.AbstractParser<RMACM>() {
@java.lang.Override
public RMACM 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<RMACM> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<RMACM> getParserForType() {
return PARSER;
}
@java.lang.Override
public com.example.removemarineanimals.models.RobotRMACM.RMACM getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_RMACM_descriptor;
private static final
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_RMACM_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\021robot_RMACM.proto\"5\n\005RMACM\022\027\n\017LightBri" +
"ghtness\030\001 \001(\005\022\023\n\013Robot_Speed\030\002 \001(\005B*\n&co" +
"m.example.removemarineanimals.modelsP\000b\006" +
"proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
});
internal_static_RMACM_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_RMACM_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_RMACM_descriptor,
new java.lang.String[] { "LightBrightness", "RobotSpeed", });
descriptor.resolveAllFeaturesImmutable();
}
// @@protoc_insertion_point(outer_class_scope)
}