com.parrot.drone.missions.samples.hello.airsdk.Hello Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of mission-hello Show documentation
Show all versions of mission-hello Show documentation
mission-hello module is part of Parrot Ground SDK for Android
The newest version!
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: parrot/missions/samples/hello/airsdk/messages.proto
package com.parrot.drone.missions.samples.hello.airsdk;
public final class Hello {
private Hello() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistryLite registry) {
}
public interface CommandOrBuilder extends
// @@protoc_insertion_point(interface_extends:parrot.missions.samples.hello.airsdk.messages.Command)
com.google.protobuf.MessageLiteOrBuilder {
/**
*
* Ask to start say hello (ground)
*
*
* .google.protobuf.Empty say = 1;
* @return Whether the say field is set.
*/
boolean hasSay();
/**
*
* Ask to start say hello (ground)
*
*
* .google.protobuf.Empty say = 1;
* @return The say.
*/
com.google.protobuf.Empty getSay();
/**
*
* Ask to stop say hello (ground)
*
*
* .google.protobuf.Empty hold = 2;
* @return Whether the hold field is set.
*/
boolean hasHold();
/**
*
* Ask to stop say hello (ground)
*
*
* .google.protobuf.Empty hold = 2;
* @return The hold.
*/
com.google.protobuf.Empty getHold();
public com.parrot.drone.missions.samples.hello.airsdk.Hello.Command.IdCase getIdCase();
}
/**
*
* Union of all possible commands of this package.
*
*
* Protobuf type {@code parrot.missions.samples.hello.airsdk.messages.Command}
*/
public static final class Command extends
com.google.protobuf.GeneratedMessageLite<
Command, Command.Builder> implements
// @@protoc_insertion_point(message_implements:parrot.missions.samples.hello.airsdk.messages.Command)
CommandOrBuilder {
private Command() {
}
private int idCase_ = 0;
private java.lang.Object id_;
public enum IdCase {
SAY(1),
HOLD(2),
ID_NOT_SET(0);
private final int value;
private IdCase(int value) {
this.value = value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static IdCase valueOf(int value) {
return forNumber(value);
}
public static IdCase forNumber(int value) {
switch (value) {
case 1: return SAY;
case 2: return HOLD;
case 0: return ID_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
@java.lang.Override
public IdCase
getIdCase() {
return IdCase.forNumber(
idCase_);
}
private void clearId() {
idCase_ = 0;
id_ = null;
}
public static final int SAY_FIELD_NUMBER = 1;
/**
*
* Ask to start say hello (ground)
*
*
* .google.protobuf.Empty say = 1;
*/
@java.lang.Override
public boolean hasSay() {
return idCase_ == 1;
}
/**
*
* Ask to start say hello (ground)
*
*
* .google.protobuf.Empty say = 1;
*/
@java.lang.Override
public com.google.protobuf.Empty getSay() {
if (idCase_ == 1) {
return (com.google.protobuf.Empty) id_;
}
return com.google.protobuf.Empty.getDefaultInstance();
}
/**
*
* Ask to start say hello (ground)
*
*
* .google.protobuf.Empty say = 1;
*/
private void setSay(com.google.protobuf.Empty value) {
value.getClass();
id_ = value;
idCase_ = 1;
}
/**
*
* Ask to start say hello (ground)
*
*
* .google.protobuf.Empty say = 1;
*/
private void mergeSay(com.google.protobuf.Empty value) {
value.getClass();
if (idCase_ == 1 &&
id_ != com.google.protobuf.Empty.getDefaultInstance()) {
id_ = com.google.protobuf.Empty.newBuilder((com.google.protobuf.Empty) id_)
.mergeFrom(value).buildPartial();
} else {
id_ = value;
}
idCase_ = 1;
}
/**
*
* Ask to start say hello (ground)
*
*
* .google.protobuf.Empty say = 1;
*/
private void clearSay() {
if (idCase_ == 1) {
idCase_ = 0;
id_ = null;
}
}
public static final int HOLD_FIELD_NUMBER = 2;
/**
*
* Ask to stop say hello (ground)
*
*
* .google.protobuf.Empty hold = 2;
*/
@java.lang.Override
public boolean hasHold() {
return idCase_ == 2;
}
/**
*
* Ask to stop say hello (ground)
*
*
* .google.protobuf.Empty hold = 2;
*/
@java.lang.Override
public com.google.protobuf.Empty getHold() {
if (idCase_ == 2) {
return (com.google.protobuf.Empty) id_;
}
return com.google.protobuf.Empty.getDefaultInstance();
}
/**
*
* Ask to stop say hello (ground)
*
*
* .google.protobuf.Empty hold = 2;
*/
private void setHold(com.google.protobuf.Empty value) {
value.getClass();
id_ = value;
idCase_ = 2;
}
/**
*
* Ask to stop say hello (ground)
*
*
* .google.protobuf.Empty hold = 2;
*/
private void mergeHold(com.google.protobuf.Empty value) {
value.getClass();
if (idCase_ == 2 &&
id_ != com.google.protobuf.Empty.getDefaultInstance()) {
id_ = com.google.protobuf.Empty.newBuilder((com.google.protobuf.Empty) id_)
.mergeFrom(value).buildPartial();
} else {
id_ = value;
}
idCase_ = 2;
}
/**
*
* Ask to stop say hello (ground)
*
*
* .google.protobuf.Empty hold = 2;
*/
private void clearHold() {
if (idCase_ == 2) {
idCase_ = 0;
id_ = null;
}
}
public static com.parrot.drone.missions.samples.hello.airsdk.Hello.Command parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.parrot.drone.missions.samples.hello.airsdk.Hello.Command parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data, extensionRegistry);
}
public static com.parrot.drone.missions.samples.hello.airsdk.Hello.Command parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.parrot.drone.missions.samples.hello.airsdk.Hello.Command parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data, extensionRegistry);
}
public static com.parrot.drone.missions.samples.hello.airsdk.Hello.Command parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.parrot.drone.missions.samples.hello.airsdk.Hello.Command parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data, extensionRegistry);
}
public static com.parrot.drone.missions.samples.hello.airsdk.Hello.Command parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static com.parrot.drone.missions.samples.hello.airsdk.Hello.Command parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input, extensionRegistry);
}
public static com.parrot.drone.missions.samples.hello.airsdk.Hello.Command parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input);
}
public static com.parrot.drone.missions.samples.hello.airsdk.Hello.Command parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
}
public static com.parrot.drone.missions.samples.hello.airsdk.Hello.Command parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static com.parrot.drone.missions.samples.hello.airsdk.Hello.Command parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input, extensionRegistry);
}
public static Builder newBuilder() {
return (Builder) DEFAULT_INSTANCE.createBuilder();
}
public static Builder newBuilder(com.parrot.drone.missions.samples.hello.airsdk.Hello.Command prototype) {
return DEFAULT_INSTANCE.createBuilder(prototype);
}
/**
*
* Union of all possible commands of this package.
*
*
* Protobuf type {@code parrot.missions.samples.hello.airsdk.messages.Command}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
com.parrot.drone.missions.samples.hello.airsdk.Hello.Command, Builder> implements
// @@protoc_insertion_point(builder_implements:parrot.missions.samples.hello.airsdk.messages.Command)
com.parrot.drone.missions.samples.hello.airsdk.Hello.CommandOrBuilder {
// Construct using com.parrot.drone.missions.samples.hello.airsdk.Hello.Command.newBuilder()
private Builder() {
super(DEFAULT_INSTANCE);
}
@java.lang.Override
public IdCase
getIdCase() {
return instance.getIdCase();
}
public Builder clearId() {
copyOnWrite();
instance.clearId();
return this;
}
/**
*
* Ask to start say hello (ground)
*
*
* .google.protobuf.Empty say = 1;
*/
@java.lang.Override
public boolean hasSay() {
return instance.hasSay();
}
/**
*
* Ask to start say hello (ground)
*
*
* .google.protobuf.Empty say = 1;
*/
@java.lang.Override
public com.google.protobuf.Empty getSay() {
return instance.getSay();
}
/**
*
* Ask to start say hello (ground)
*
*
* .google.protobuf.Empty say = 1;
*/
public Builder setSay(com.google.protobuf.Empty value) {
copyOnWrite();
instance.setSay(value);
return this;
}
/**
*
* Ask to start say hello (ground)
*
*
* .google.protobuf.Empty say = 1;
*/
public Builder setSay(
com.google.protobuf.Empty.Builder builderForValue) {
copyOnWrite();
instance.setSay(builderForValue.build());
return this;
}
/**
*
* Ask to start say hello (ground)
*
*
* .google.protobuf.Empty say = 1;
*/
public Builder mergeSay(com.google.protobuf.Empty value) {
copyOnWrite();
instance.mergeSay(value);
return this;
}
/**
*
* Ask to start say hello (ground)
*
*
* .google.protobuf.Empty say = 1;
*/
public Builder clearSay() {
copyOnWrite();
instance.clearSay();
return this;
}
/**
*
* Ask to stop say hello (ground)
*
*
* .google.protobuf.Empty hold = 2;
*/
@java.lang.Override
public boolean hasHold() {
return instance.hasHold();
}
/**
*
* Ask to stop say hello (ground)
*
*
* .google.protobuf.Empty hold = 2;
*/
@java.lang.Override
public com.google.protobuf.Empty getHold() {
return instance.getHold();
}
/**
*
* Ask to stop say hello (ground)
*
*
* .google.protobuf.Empty hold = 2;
*/
public Builder setHold(com.google.protobuf.Empty value) {
copyOnWrite();
instance.setHold(value);
return this;
}
/**
*
* Ask to stop say hello (ground)
*
*
* .google.protobuf.Empty hold = 2;
*/
public Builder setHold(
com.google.protobuf.Empty.Builder builderForValue) {
copyOnWrite();
instance.setHold(builderForValue.build());
return this;
}
/**
*
* Ask to stop say hello (ground)
*
*
* .google.protobuf.Empty hold = 2;
*/
public Builder mergeHold(com.google.protobuf.Empty value) {
copyOnWrite();
instance.mergeHold(value);
return this;
}
/**
*
* Ask to stop say hello (ground)
*
*
* .google.protobuf.Empty hold = 2;
*/
public Builder clearHold() {
copyOnWrite();
instance.clearHold();
return this;
}
// @@protoc_insertion_point(builder_scope:parrot.missions.samples.hello.airsdk.messages.Command)
}
@java.lang.Override
@java.lang.SuppressWarnings({"unchecked", "fallthrough"})
protected final java.lang.Object dynamicMethod(
com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
java.lang.Object arg0, java.lang.Object arg1) {
switch (method) {
case NEW_MUTABLE_INSTANCE: {
return new com.parrot.drone.missions.samples.hello.airsdk.Hello.Command();
}
case NEW_BUILDER: {
return new Builder();
}
case BUILD_MESSAGE_INFO: {
java.lang.Object[] objects = new java.lang.Object[] {
"id_",
"idCase_",
com.google.protobuf.Empty.class,
com.google.protobuf.Empty.class,
};
java.lang.String info =
"\u0000\u0002\u0001\u0000\u0001\u0002\u0002\u0000\u0000\u0000\u0001<\u0000\u0002<" +
"\u0000";
return newMessageInfo(DEFAULT_INSTANCE, info, objects);
}
// fall through
case GET_DEFAULT_INSTANCE: {
return DEFAULT_INSTANCE;
}
case GET_PARSER: {
com.google.protobuf.Parser parser = PARSER;
if (parser == null) {
synchronized (com.parrot.drone.missions.samples.hello.airsdk.Hello.Command.class) {
parser = PARSER;
if (parser == null) {
parser =
new DefaultInstanceBasedParser(
DEFAULT_INSTANCE);
PARSER = parser;
}
}
}
return parser;
}
case GET_MEMOIZED_IS_INITIALIZED: {
return (byte) 1;
}
case SET_MEMOIZED_IS_INITIALIZED: {
return null;
}
}
throw new UnsupportedOperationException();
}
// @@protoc_insertion_point(class_scope:parrot.missions.samples.hello.airsdk.messages.Command)
private static final com.parrot.drone.missions.samples.hello.airsdk.Hello.Command DEFAULT_INSTANCE;
static {
Command defaultInstance = new Command();
// New instances are implicitly immutable so no need to make
// immutable.
DEFAULT_INSTANCE = defaultInstance;
com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
Command.class, defaultInstance);
}
public static com.parrot.drone.missions.samples.hello.airsdk.Hello.Command getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static volatile com.google.protobuf.Parser PARSER;
public static com.google.protobuf.Parser parser() {
return DEFAULT_INSTANCE.getParserForType();
}
}
public interface EventOrBuilder extends
// @@protoc_insertion_point(interface_extends:parrot.missions.samples.hello.airsdk.messages.Event)
com.google.protobuf.MessageLiteOrBuilder {
/**
*
* Count of hello (ground)
*
*
* uint32 count = 1;
* @return Whether the count field is set.
*/
boolean hasCount();
/**
*
* Count of hello (ground)
*
*
* uint32 count = 1;
* @return The count.
*/
int getCount();
/**
*
* Stereo sees something close (all)
*
*
* bool stereo_close = 2;
* @return Whether the stereoClose field is set.
*/
boolean hasStereoClose();
/**
*
* Stereo sees something close (all)
*
*
* bool stereo_close = 2;
* @return The stereoClose.
*/
boolean getStereoClose();
/**
*
* Drone is moving/steady (ground)
*
*
* bool drone_moving = 3;
* @return Whether the droneMoving field is set.
*/
boolean hasDroneMoving();
/**
*
* Drone is moving/steady (ground)
*
*
* bool drone_moving = 3;
* @return The droneMoving.
*/
boolean getDroneMoving();
/**
*
* Mean depth to closest object
*
*
* float depth_mean = 4;
* @return Whether the depthMean field is set.
*/
boolean hasDepthMean();
/**
*
* Mean depth to closest object
*
*
* float depth_mean = 4;
* @return The depthMean.
*/
float getDepthMean();
public com.parrot.drone.missions.samples.hello.airsdk.Hello.Event.IdCase getIdCase();
}
/**
*
* Union of all possible events of this package.
*
*
* Protobuf type {@code parrot.missions.samples.hello.airsdk.messages.Event}
*/
public static final class Event extends
com.google.protobuf.GeneratedMessageLite<
Event, Event.Builder> implements
// @@protoc_insertion_point(message_implements:parrot.missions.samples.hello.airsdk.messages.Event)
EventOrBuilder {
private Event() {
}
private int idCase_ = 0;
private java.lang.Object id_;
public enum IdCase {
COUNT(1),
STEREO_CLOSE(2),
DRONE_MOVING(3),
DEPTH_MEAN(4),
ID_NOT_SET(0);
private final int value;
private IdCase(int value) {
this.value = value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static IdCase valueOf(int value) {
return forNumber(value);
}
public static IdCase forNumber(int value) {
switch (value) {
case 1: return COUNT;
case 2: return STEREO_CLOSE;
case 3: return DRONE_MOVING;
case 4: return DEPTH_MEAN;
case 0: return ID_NOT_SET;
default: return null;
}
}
public int getNumber() {
return this.value;
}
};
@java.lang.Override
public IdCase
getIdCase() {
return IdCase.forNumber(
idCase_);
}
private void clearId() {
idCase_ = 0;
id_ = null;
}
public static final int COUNT_FIELD_NUMBER = 1;
/**
*
* Count of hello (ground)
*
*
* uint32 count = 1;
* @return Whether the count field is set.
*/
@java.lang.Override
public boolean hasCount() {
return idCase_ == 1;
}
/**
*
* Count of hello (ground)
*
*
* uint32 count = 1;
* @return The count.
*/
@java.lang.Override
public int getCount() {
if (idCase_ == 1) {
return (java.lang.Integer) id_;
}
return 0;
}
/**
*
* Count of hello (ground)
*
*
* uint32 count = 1;
* @param value The count to set.
*/
private void setCount(int value) {
idCase_ = 1;
id_ = value;
}
/**
*
* Count of hello (ground)
*
*
* uint32 count = 1;
*/
private void clearCount() {
if (idCase_ == 1) {
idCase_ = 0;
id_ = null;
}
}
public static final int STEREO_CLOSE_FIELD_NUMBER = 2;
/**
*
* Stereo sees something close (all)
*
*
* bool stereo_close = 2;
* @return Whether the stereoClose field is set.
*/
@java.lang.Override
public boolean hasStereoClose() {
return idCase_ == 2;
}
/**
*
* Stereo sees something close (all)
*
*
* bool stereo_close = 2;
* @return The stereoClose.
*/
@java.lang.Override
public boolean getStereoClose() {
if (idCase_ == 2) {
return (java.lang.Boolean) id_;
}
return false;
}
/**
*
* Stereo sees something close (all)
*
*
* bool stereo_close = 2;
* @param value The stereoClose to set.
*/
private void setStereoClose(boolean value) {
idCase_ = 2;
id_ = value;
}
/**
*
* Stereo sees something close (all)
*
*
* bool stereo_close = 2;
*/
private void clearStereoClose() {
if (idCase_ == 2) {
idCase_ = 0;
id_ = null;
}
}
public static final int DRONE_MOVING_FIELD_NUMBER = 3;
/**
*
* Drone is moving/steady (ground)
*
*
* bool drone_moving = 3;
* @return Whether the droneMoving field is set.
*/
@java.lang.Override
public boolean hasDroneMoving() {
return idCase_ == 3;
}
/**
*
* Drone is moving/steady (ground)
*
*
* bool drone_moving = 3;
* @return The droneMoving.
*/
@java.lang.Override
public boolean getDroneMoving() {
if (idCase_ == 3) {
return (java.lang.Boolean) id_;
}
return false;
}
/**
*
* Drone is moving/steady (ground)
*
*
* bool drone_moving = 3;
* @param value The droneMoving to set.
*/
private void setDroneMoving(boolean value) {
idCase_ = 3;
id_ = value;
}
/**
*
* Drone is moving/steady (ground)
*
*
* bool drone_moving = 3;
*/
private void clearDroneMoving() {
if (idCase_ == 3) {
idCase_ = 0;
id_ = null;
}
}
public static final int DEPTH_MEAN_FIELD_NUMBER = 4;
/**
*
* Mean depth to closest object
*
*
* float depth_mean = 4;
* @return Whether the depthMean field is set.
*/
@java.lang.Override
public boolean hasDepthMean() {
return idCase_ == 4;
}
/**
*
* Mean depth to closest object
*
*
* float depth_mean = 4;
* @return The depthMean.
*/
@java.lang.Override
public float getDepthMean() {
if (idCase_ == 4) {
return (java.lang.Float) id_;
}
return 0F;
}
/**
*
* Mean depth to closest object
*
*
* float depth_mean = 4;
* @param value The depthMean to set.
*/
private void setDepthMean(float value) {
idCase_ = 4;
id_ = value;
}
/**
*
* Mean depth to closest object
*
*
* float depth_mean = 4;
*/
private void clearDepthMean() {
if (idCase_ == 4) {
idCase_ = 0;
id_ = null;
}
}
public static com.parrot.drone.missions.samples.hello.airsdk.Hello.Event parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.parrot.drone.missions.samples.hello.airsdk.Hello.Event parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data, extensionRegistry);
}
public static com.parrot.drone.missions.samples.hello.airsdk.Hello.Event parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.parrot.drone.missions.samples.hello.airsdk.Hello.Event parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data, extensionRegistry);
}
public static com.parrot.drone.missions.samples.hello.airsdk.Hello.Event parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data);
}
public static com.parrot.drone.missions.samples.hello.airsdk.Hello.Event parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, data, extensionRegistry);
}
public static com.parrot.drone.missions.samples.hello.airsdk.Hello.Event parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static com.parrot.drone.missions.samples.hello.airsdk.Hello.Event parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input, extensionRegistry);
}
public static com.parrot.drone.missions.samples.hello.airsdk.Hello.Event parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input);
}
public static com.parrot.drone.missions.samples.hello.airsdk.Hello.Event parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return parseDelimitedFrom(DEFAULT_INSTANCE, input, extensionRegistry);
}
public static com.parrot.drone.missions.samples.hello.airsdk.Hello.Event parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input);
}
public static com.parrot.drone.missions.samples.hello.airsdk.Hello.Event parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageLite.parseFrom(
DEFAULT_INSTANCE, input, extensionRegistry);
}
public static Builder newBuilder() {
return (Builder) DEFAULT_INSTANCE.createBuilder();
}
public static Builder newBuilder(com.parrot.drone.missions.samples.hello.airsdk.Hello.Event prototype) {
return DEFAULT_INSTANCE.createBuilder(prototype);
}
/**
*
* Union of all possible events of this package.
*
*
* Protobuf type {@code parrot.missions.samples.hello.airsdk.messages.Event}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageLite.Builder<
com.parrot.drone.missions.samples.hello.airsdk.Hello.Event, Builder> implements
// @@protoc_insertion_point(builder_implements:parrot.missions.samples.hello.airsdk.messages.Event)
com.parrot.drone.missions.samples.hello.airsdk.Hello.EventOrBuilder {
// Construct using com.parrot.drone.missions.samples.hello.airsdk.Hello.Event.newBuilder()
private Builder() {
super(DEFAULT_INSTANCE);
}
@java.lang.Override
public IdCase
getIdCase() {
return instance.getIdCase();
}
public Builder clearId() {
copyOnWrite();
instance.clearId();
return this;
}
/**
*
* Count of hello (ground)
*
*
* uint32 count = 1;
* @return Whether the count field is set.
*/
@java.lang.Override
public boolean hasCount() {
return instance.hasCount();
}
/**
*
* Count of hello (ground)
*
*
* uint32 count = 1;
* @return The count.
*/
@java.lang.Override
public int getCount() {
return instance.getCount();
}
/**
*
* Count of hello (ground)
*
*
* uint32 count = 1;
* @param value The count to set.
* @return This builder for chaining.
*/
public Builder setCount(int value) {
copyOnWrite();
instance.setCount(value);
return this;
}
/**
*
* Count of hello (ground)
*
*
* uint32 count = 1;
* @return This builder for chaining.
*/
public Builder clearCount() {
copyOnWrite();
instance.clearCount();
return this;
}
/**
*
* Stereo sees something close (all)
*
*
* bool stereo_close = 2;
* @return Whether the stereoClose field is set.
*/
@java.lang.Override
public boolean hasStereoClose() {
return instance.hasStereoClose();
}
/**
*
* Stereo sees something close (all)
*
*
* bool stereo_close = 2;
* @return The stereoClose.
*/
@java.lang.Override
public boolean getStereoClose() {
return instance.getStereoClose();
}
/**
*
* Stereo sees something close (all)
*
*
* bool stereo_close = 2;
* @param value The stereoClose to set.
* @return This builder for chaining.
*/
public Builder setStereoClose(boolean value) {
copyOnWrite();
instance.setStereoClose(value);
return this;
}
/**
*
* Stereo sees something close (all)
*
*
* bool stereo_close = 2;
* @return This builder for chaining.
*/
public Builder clearStereoClose() {
copyOnWrite();
instance.clearStereoClose();
return this;
}
/**
*
* Drone is moving/steady (ground)
*
*
* bool drone_moving = 3;
* @return Whether the droneMoving field is set.
*/
@java.lang.Override
public boolean hasDroneMoving() {
return instance.hasDroneMoving();
}
/**
*
* Drone is moving/steady (ground)
*
*
* bool drone_moving = 3;
* @return The droneMoving.
*/
@java.lang.Override
public boolean getDroneMoving() {
return instance.getDroneMoving();
}
/**
*
* Drone is moving/steady (ground)
*
*
* bool drone_moving = 3;
* @param value The droneMoving to set.
* @return This builder for chaining.
*/
public Builder setDroneMoving(boolean value) {
copyOnWrite();
instance.setDroneMoving(value);
return this;
}
/**
*
* Drone is moving/steady (ground)
*
*
* bool drone_moving = 3;
* @return This builder for chaining.
*/
public Builder clearDroneMoving() {
copyOnWrite();
instance.clearDroneMoving();
return this;
}
/**
*
* Mean depth to closest object
*
*
* float depth_mean = 4;
* @return Whether the depthMean field is set.
*/
@java.lang.Override
public boolean hasDepthMean() {
return instance.hasDepthMean();
}
/**
*
* Mean depth to closest object
*
*
* float depth_mean = 4;
* @return The depthMean.
*/
@java.lang.Override
public float getDepthMean() {
return instance.getDepthMean();
}
/**
*
* Mean depth to closest object
*
*
* float depth_mean = 4;
* @param value The depthMean to set.
* @return This builder for chaining.
*/
public Builder setDepthMean(float value) {
copyOnWrite();
instance.setDepthMean(value);
return this;
}
/**
*
* Mean depth to closest object
*
*
* float depth_mean = 4;
* @return This builder for chaining.
*/
public Builder clearDepthMean() {
copyOnWrite();
instance.clearDepthMean();
return this;
}
// @@protoc_insertion_point(builder_scope:parrot.missions.samples.hello.airsdk.messages.Event)
}
@java.lang.Override
@java.lang.SuppressWarnings({"unchecked", "fallthrough"})
protected final java.lang.Object dynamicMethod(
com.google.protobuf.GeneratedMessageLite.MethodToInvoke method,
java.lang.Object arg0, java.lang.Object arg1) {
switch (method) {
case NEW_MUTABLE_INSTANCE: {
return new com.parrot.drone.missions.samples.hello.airsdk.Hello.Event();
}
case NEW_BUILDER: {
return new Builder();
}
case BUILD_MESSAGE_INFO: {
java.lang.Object[] objects = new java.lang.Object[] {
"id_",
"idCase_",
};
java.lang.String info =
"\u0000\u0004\u0001\u0000\u0001\u0004\u0004\u0000\u0000\u0000\u0001>\u0000\u0002:" +
"\u0000\u0003:\u0000\u00044\u0000";
return newMessageInfo(DEFAULT_INSTANCE, info, objects);
}
// fall through
case GET_DEFAULT_INSTANCE: {
return DEFAULT_INSTANCE;
}
case GET_PARSER: {
com.google.protobuf.Parser parser = PARSER;
if (parser == null) {
synchronized (com.parrot.drone.missions.samples.hello.airsdk.Hello.Event.class) {
parser = PARSER;
if (parser == null) {
parser =
new DefaultInstanceBasedParser(
DEFAULT_INSTANCE);
PARSER = parser;
}
}
}
return parser;
}
case GET_MEMOIZED_IS_INITIALIZED: {
return (byte) 1;
}
case SET_MEMOIZED_IS_INITIALIZED: {
return null;
}
}
throw new UnsupportedOperationException();
}
// @@protoc_insertion_point(class_scope:parrot.missions.samples.hello.airsdk.messages.Event)
private static final com.parrot.drone.missions.samples.hello.airsdk.Hello.Event DEFAULT_INSTANCE;
static {
Event defaultInstance = new Event();
// New instances are implicitly immutable so no need to make
// immutable.
DEFAULT_INSTANCE = defaultInstance;
com.google.protobuf.GeneratedMessageLite.registerDefaultInstance(
Event.class, defaultInstance);
}
public static com.parrot.drone.missions.samples.hello.airsdk.Hello.Event getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static volatile com.google.protobuf.Parser PARSER;
public static com.google.protobuf.Parser parser() {
return DEFAULT_INSTANCE.getParserForType();
}
}
static {
}
// @@protoc_insertion_point(outer_class_scope)
}