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.
 
 
 
 
 

564 lines
19 KiB

// Generated by the protocol buffer compiler. DO NOT EDIT!
// NO CHECKED-IN PROTOBUF GENCODE
// source: bsp_PV.proto
// Protobuf Java Version: 4.27.2
public final class BspPV {
private BspPV() {}
static {
com.google.protobuf.RuntimeVersion.validateProtobufGencodeVersion(
com.google.protobuf.RuntimeVersion.RuntimeDomain.PUBLIC,
/* major= */ 4,
/* minor= */ 27,
/* patch= */ 2,
/* suffix= */ "",
BspPV.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 PV_struct_defineOrBuilder extends
// @@protoc_insertion_point(interface_extends:PV_struct_define)
com.google.protobuf.MessageOrBuilder {
/**
* <code>int32 Robot_Tilt_TargetCurrent = 1;</code>
* @return The robotTiltTargetCurrent.
*/
int getRobotTiltTargetCurrent();
/**
* <code>int32 CurrentModeValue = 2;</code>
* @return The currentModeValue.
*/
int getCurrentModeValue();
}
/**
* Protobuf type {@code PV_struct_define}
*/
public static final class PV_struct_define extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:PV_struct_define)
PV_struct_defineOrBuilder {
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= */ "",
PV_struct_define.class.getName());
}
// Use PV_struct_define.newBuilder() to construct.
private PV_struct_define(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
super(builder);
}
private PV_struct_define() {
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return BspPV.internal_static_PV_struct_define_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return BspPV.internal_static_PV_struct_define_fieldAccessorTable
.ensureFieldAccessorsInitialized(
BspPV.PV_struct_define.class, BspPV.PV_struct_define.Builder.class);
}
public static final int ROBOT_TILT_TARGETCURRENT_FIELD_NUMBER = 1;
private int robotTiltTargetCurrent_ = 0;
/**
* <code>int32 Robot_Tilt_TargetCurrent = 1;</code>
* @return The robotTiltTargetCurrent.
*/
@java.lang.Override
public int getRobotTiltTargetCurrent() {
return robotTiltTargetCurrent_;
}
public static final int CURRENTMODEVALUE_FIELD_NUMBER = 2;
private int currentModeValue_ = 0;
/**
* <code>int32 CurrentModeValue = 2;</code>
* @return The currentModeValue.
*/
@java.lang.Override
public int getCurrentModeValue() {
return currentModeValue_;
}
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 (robotTiltTargetCurrent_ != 0) {
output.writeInt32(1, robotTiltTargetCurrent_);
}
if (currentModeValue_ != 0) {
output.writeInt32(2, currentModeValue_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (robotTiltTargetCurrent_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(1, robotTiltTargetCurrent_);
}
if (currentModeValue_ != 0) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(2, currentModeValue_);
}
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 BspPV.PV_struct_define)) {
return super.equals(obj);
}
BspPV.PV_struct_define other = (BspPV.PV_struct_define) obj;
if (getRobotTiltTargetCurrent()
!= other.getRobotTiltTargetCurrent()) return false;
if (getCurrentModeValue()
!= other.getCurrentModeValue()) 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) + ROBOT_TILT_TARGETCURRENT_FIELD_NUMBER;
hash = (53 * hash) + getRobotTiltTargetCurrent();
hash = (37 * hash) + CURRENTMODEVALUE_FIELD_NUMBER;
hash = (53 * hash) + getCurrentModeValue();
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static BspPV.PV_struct_define parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static BspPV.PV_struct_define parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static BspPV.PV_struct_define parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static BspPV.PV_struct_define parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static BspPV.PV_struct_define parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static BspPV.PV_struct_define parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static BspPV.PV_struct_define parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input);
}
public static BspPV.PV_struct_define 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 BspPV.PV_struct_define parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseDelimitedWithIOException(PARSER, input);
}
public static BspPV.PV_struct_define 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 BspPV.PV_struct_define parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessage
.parseWithIOException(PARSER, input);
}
public static BspPV.PV_struct_define 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(BspPV.PV_struct_define 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 PV_struct_define}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder<Builder> implements
// @@protoc_insertion_point(builder_implements:PV_struct_define)
BspPV.PV_struct_defineOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return BspPV.internal_static_PV_struct_define_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return BspPV.internal_static_PV_struct_define_fieldAccessorTable
.ensureFieldAccessorsInitialized(
BspPV.PV_struct_define.class, BspPV.PV_struct_define.Builder.class);
}
// Construct using BspPV.PV_struct_define.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
bitField0_ = 0;
robotTiltTargetCurrent_ = 0;
currentModeValue_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return BspPV.internal_static_PV_struct_define_descriptor;
}
@java.lang.Override
public BspPV.PV_struct_define getDefaultInstanceForType() {
return BspPV.PV_struct_define.getDefaultInstance();
}
@java.lang.Override
public BspPV.PV_struct_define build() {
BspPV.PV_struct_define result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public BspPV.PV_struct_define buildPartial() {
BspPV.PV_struct_define result = new BspPV.PV_struct_define(this);
if (bitField0_ != 0) { buildPartial0(result); }
onBuilt();
return result;
}
private void buildPartial0(BspPV.PV_struct_define result) {
int from_bitField0_ = bitField0_;
if (((from_bitField0_ & 0x00000001) != 0)) {
result.robotTiltTargetCurrent_ = robotTiltTargetCurrent_;
}
if (((from_bitField0_ & 0x00000002) != 0)) {
result.currentModeValue_ = currentModeValue_;
}
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof BspPV.PV_struct_define) {
return mergeFrom((BspPV.PV_struct_define)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(BspPV.PV_struct_define other) {
if (other == BspPV.PV_struct_define.getDefaultInstance()) return this;
if (other.getRobotTiltTargetCurrent() != 0) {
setRobotTiltTargetCurrent(other.getRobotTiltTargetCurrent());
}
if (other.getCurrentModeValue() != 0) {
setCurrentModeValue(other.getCurrentModeValue());
}
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: {
robotTiltTargetCurrent_ = input.readInt32();
bitField0_ |= 0x00000001;
break;
} // case 8
case 16: {
currentModeValue_ = 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 robotTiltTargetCurrent_ ;
/**
* <code>int32 Robot_Tilt_TargetCurrent = 1;</code>
* @return The robotTiltTargetCurrent.
*/
@java.lang.Override
public int getRobotTiltTargetCurrent() {
return robotTiltTargetCurrent_;
}
/**
* <code>int32 Robot_Tilt_TargetCurrent = 1;</code>
* @param value The robotTiltTargetCurrent to set.
* @return This builder for chaining.
*/
public Builder setRobotTiltTargetCurrent(int value) {
robotTiltTargetCurrent_ = value;
bitField0_ |= 0x00000001;
onChanged();
return this;
}
/**
* <code>int32 Robot_Tilt_TargetCurrent = 1;</code>
* @return This builder for chaining.
*/
public Builder clearRobotTiltTargetCurrent() {
bitField0_ = (bitField0_ & ~0x00000001);
robotTiltTargetCurrent_ = 0;
onChanged();
return this;
}
private int currentModeValue_ ;
/**
* <code>int32 CurrentModeValue = 2;</code>
* @return The currentModeValue.
*/
@java.lang.Override
public int getCurrentModeValue() {
return currentModeValue_;
}
/**
* <code>int32 CurrentModeValue = 2;</code>
* @param value The currentModeValue to set.
* @return This builder for chaining.
*/
public Builder setCurrentModeValue(int value) {
currentModeValue_ = value;
bitField0_ |= 0x00000002;
onChanged();
return this;
}
/**
* <code>int32 CurrentModeValue = 2;</code>
* @return This builder for chaining.
*/
public Builder clearCurrentModeValue() {
bitField0_ = (bitField0_ & ~0x00000002);
currentModeValue_ = 0;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:PV_struct_define)
}
// @@protoc_insertion_point(class_scope:PV_struct_define)
private static final BspPV.PV_struct_define DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new BspPV.PV_struct_define();
}
public static BspPV.PV_struct_define getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser<PV_struct_define>
PARSER = new com.google.protobuf.AbstractParser<PV_struct_define>() {
@java.lang.Override
public PV_struct_define 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<PV_struct_define> parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser<PV_struct_define> getParserForType() {
return PARSER;
}
@java.lang.Override
public BspPV.PV_struct_define getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_PV_struct_define_descriptor;
private static final
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_PV_struct_define_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\014bsp_PV.proto\"N\n\020PV_struct_define\022 \n\030Ro" +
"bot_Tilt_TargetCurrent\030\001 \001(\005\022\030\n\020CurrentM" +
"odeValue\030\002 \001(\005b\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
});
internal_static_PV_struct_define_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_PV_struct_define_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_PV_struct_define_descriptor,
new java.lang.String[] { "RobotTiltTargetCurrent", "CurrentModeValue", });
descriptor.resolveAllFeaturesImmutable();
}
// @@protoc_insertion_point(outer_class_scope)
}