// Generated by the protocol buffer compiler. DO NOT EDIT! // NO CHECKED-IN PROTOBUF GENCODE // source: robot_data.proto // Protobuf Java Version: 4.27.2 package com.example.removemarineanimals.models; public final class RobotData { private RobotData() {} static { com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion( com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC, /* major= */ 4, /* minor= */ 27, /* patch= */ 2, /* suffix= */ "", RobotData.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 DataTransOrBuilder extends // @@protoc_insertion_point(interface_extends:DataTrans) com.google.protobuf.MessageOrBuilder { /** *
* 横滚角
*
*
* int32 RF_Angle_Roll = 1;
* @return The rFAngleRoll.
*/
int getRFAngleRoll();
/**
*
* 俯仰角
*
*
* int32 RF_Angle_Pitch = 2;
* @return The rFAnglePitch.
*/
int getRFAnglePitch();
/**
*
* 航向角
*
*
* int32 RF_Angle_Yaw = 3;
* @return The rFAngleYaw.
*/
int getRFAngleYaw();
/**
*
* 海洋深度
*
*
* int32 RF_Depth = 4;
* @return The rFDepth.
*/
int getRFDepth();
}
/**
* Protobuf type {@code DataTrans}
*/
public static final class DataTrans extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:DataTrans)
DataTransOrBuilder {
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= */ "",
DataTrans.class.getName());
}
// Use DataTrans.newBuilder() to construct.
private DataTrans(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
}
private DataTrans() {
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return com.example.removemarineanimals.models.RobotData.internal_static_DataTrans_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return com.example.removemarineanimals.models.RobotData.internal_static_DataTrans_fieldAccessorTable
.ensureFieldAccessorsInitialized(
com.example.removemarineanimals.models.RobotData.DataTrans.class, com.example.removemarineanimals.models.RobotData.DataTrans.Builder.class);
}
public static final int RF_ANGLE_ROLL_FIELD_NUMBER = 1;
private int rFAngleRoll_ = 0;
/**
*
* 横滚角
*
*
* int32 RF_Angle_Roll = 1;
* @return The rFAngleRoll.
*/
@java.lang.Override
public int getRFAngleRoll() {
return rFAngleRoll_;
}
public static final int RF_ANGLE_PITCH_FIELD_NUMBER = 2;
private int rFAnglePitch_ = 0;
/**
*
* 俯仰角
*
*
* int32 RF_Angle_Pitch = 2;
* @return The rFAnglePitch.
*/
@java.lang.Override
public int getRFAnglePitch() {
return rFAnglePitch_;
}
public static final int RF_ANGLE_YAW_FIELD_NUMBER = 3;
private int rFAngleYaw_ = 0;
/**
*
* 航向角
*
*
* int32 RF_Angle_Yaw = 3;
* @return The rFAngleYaw.
*/
@java.lang.Override
public int getRFAngleYaw() {
return rFAngleYaw_;
}
public static final int RF_DEPTH_FIELD_NUMBER = 4;
private int rFDepth_ = 0;
/**
*
* 海洋深度
*
*
* int32 RF_Depth = 4;
* @return The rFDepth.
*/
@java.lang.Override
public int getRFDepth() {
return rFDepth_;
}
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 (rFAngleRoll_ != 0) {
output.writeInt32(1, rFAngleRoll_);
}
if (rFAnglePitch_ != 0) {
output.writeInt32(2, rFAnglePitch_);
}
if (rFAngleYaw_ != 0) {
output.writeInt32(3, rFAngleYaw_);
}
if (rFDepth_ != 0) {
output.writeInt32(4, rFDepth_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (rFAngleRoll_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(1, rFAngleRoll_);
}
if (rFAnglePitch_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(2, rFAnglePitch_);
}
if (rFAngleYaw_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(3, rFAngleYaw_);
}
if (rFDepth_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(4, rFDepth_);
}
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.RobotData.DataTrans)) {
return super.equals(obj);
}
com.example.removemarineanimals.models.RobotData.DataTrans other = (com.example.removemarineanimals.models.RobotData.DataTrans) obj;
if (getRFAngleRoll()
!= other.getRFAngleRoll()) return false;
if (getRFAnglePitch()
!= other.getRFAnglePitch()) return false;
if (getRFAngleYaw()
!= other.getRFAngleYaw()) return false;
if (getRFDepth()
!= other.getRFDepth()) 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) + RF_ANGLE_ROLL_FIELD_NUMBER;
hash = (53 * hash) + getRFAngleRoll();
hash = (37 * hash) + RF_ANGLE_PITCH_FIELD_NUMBER;
hash = (53 * hash) + getRFAnglePitch();
hash = (37 * hash) + RF_ANGLE_YAW_FIELD_NUMBER;
hash = (53 * hash) + getRFAngleYaw();
hash = (37 * hash) + RF_DEPTH_FIELD_NUMBER;
hash = (53 * hash) + getRFDepth();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static com.example.removemarineanimals.models.RobotData.DataTrans parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.example.removemarineanimals.models.RobotData.DataTrans 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.RobotData.DataTrans parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.example.removemarineanimals.models.RobotData.DataTrans 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.RobotData.DataTrans parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static com.example.removemarineanimals.models.RobotData.DataTrans parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static com.example.removemarineanimals.models.RobotData.DataTrans parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input);
}
public static com.example.removemarineanimals.models.RobotData.DataTrans 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.RobotData.DataTrans parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseDelimitedWithIOException(PARSER, input);
}
public static com.example.removemarineanimals.models.RobotData.DataTrans 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.RobotData.DataTrans parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input);
}
public static com.example.removemarineanimals.models.RobotData.DataTrans 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.RobotData.DataTrans 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;
}
/**
* Protobuf type {@code DataTrans}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder
* 横滚角
*
*
* int32 RF_Angle_Roll = 1;
* @return The rFAngleRoll.
*/
@java.lang.Override
public int getRFAngleRoll() {
return rFAngleRoll_;
}
/**
*
* 横滚角
*
*
* int32 RF_Angle_Roll = 1;
* @param value The rFAngleRoll to set.
* @return This builder for chaining.
*/
public Builder setRFAngleRoll(int value) {
rFAngleRoll_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
*
* 横滚角
*
*
* int32 RF_Angle_Roll = 1;
* @return This builder for chaining.
*/
public Builder clearRFAngleRoll() {
bitField0_ = (bitField0_ & ~0x00000001);
rFAngleRoll_ = 0;
onChanged();
return this;
}
private int rFAnglePitch_ ;
/**
*
* 俯仰角
*
*
* int32 RF_Angle_Pitch = 2;
* @return The rFAnglePitch.
*/
@java.lang.Override
public int getRFAnglePitch() {
return rFAnglePitch_;
}
/**
*
* 俯仰角
*
*
* int32 RF_Angle_Pitch = 2;
* @param value The rFAnglePitch to set.
* @return This builder for chaining.
*/
public Builder setRFAnglePitch(int value) {
rFAnglePitch_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
*
* 俯仰角
*
*
* int32 RF_Angle_Pitch = 2;
* @return This builder for chaining.
*/
public Builder clearRFAnglePitch() {
bitField0_ = (bitField0_ & ~0x00000002);
rFAnglePitch_ = 0;
onChanged();
return this;
}
private int rFAngleYaw_ ;
/**
*
* 航向角
*
*
* int32 RF_Angle_Yaw = 3;
* @return The rFAngleYaw.
*/
@java.lang.Override
public int getRFAngleYaw() {
return rFAngleYaw_;
}
/**
*
* 航向角
*
*
* int32 RF_Angle_Yaw = 3;
* @param value The rFAngleYaw to set.
* @return This builder for chaining.
*/
public Builder setRFAngleYaw(int value) {
rFAngleYaw_ = value;
bitField0_ |= 0x00000004;
onChanged();
return this;
}
/**
*
* 航向角
*
*
* int32 RF_Angle_Yaw = 3;
* @return This builder for chaining.
*/
public Builder clearRFAngleYaw() {
bitField0_ = (bitField0_ & ~0x00000004);
rFAngleYaw_ = 0;
onChanged();
return this;
}
private int rFDepth_ ;
/**
*
* 海洋深度
*
*
* int32 RF_Depth = 4;
* @return The rFDepth.
*/
@java.lang.Override
public int getRFDepth() {
return rFDepth_;
}
/**
*
* 海洋深度
*
*
* int32 RF_Depth = 4;
* @param value The rFDepth to set.
* @return This builder for chaining.
*/
public Builder setRFDepth(int value) {
rFDepth_ = value;
bitField0_ |= 0x00000008;
onChanged();
return this;
}
/**
*
* 海洋深度
*
*
* int32 RF_Depth = 4;
* @return This builder for chaining.
*/
public Builder clearRFDepth() {
bitField0_ = (bitField0_ & ~0x00000008);
rFDepth_ = 0;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:DataTrans)
}
// @@protoc_insertion_point(class_scope:DataTrans)
private static final com.example.removemarineanimals.models.RobotData.DataTrans DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new com.example.removemarineanimals.models.RobotData.DataTrans();
}
public static com.example.removemarineanimals.models.RobotData.DataTrans getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser