// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: cmvr/api/common.proto
package cmvr.api;
public final class Common {
private Common() {}
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 DeviceLifecycleOrBuilder extends
// @@protoc_insertion_point(interface_extends:cmvr.api.DeviceLifecycle)
com.google.protobuf.MessageOrBuilder {
/**
* .cmvr.api.DeviceLifecycle.Lifecycle state = 1;
* @return The enum numeric value on the wire for state.
*/
int getStateValue();
/**
* .cmvr.api.DeviceLifecycle.Lifecycle state = 1;
* @return The state.
*/
cmvr.api.Common.DeviceLifecycle.Lifecycle getState();
}
/**
* Protobuf type {@code cmvr.api.DeviceLifecycle}
*/
public static final class DeviceLifecycle extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cmvr.api.DeviceLifecycle)
DeviceLifecycleOrBuilder {
private static final long serialVersionUID = 0L;
// Use DeviceLifecycle.newBuilder() to construct.
private DeviceLifecycle(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private DeviceLifecycle() {
state_ = 0;
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new DeviceLifecycle();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cmvr.api.Common.internal_static_cmvr_api_DeviceLifecycle_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cmvr.api.Common.internal_static_cmvr_api_DeviceLifecycle_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cmvr.api.Common.DeviceLifecycle.class, cmvr.api.Common.DeviceLifecycle.Builder.class);
}
/**
* Protobuf enum {@code cmvr.api.DeviceLifecycle.Lifecycle}
*/
public enum Lifecycle
implements com.google.protobuf.ProtocolMessageEnum {
/**
* STATE_INIT = 0;
*/
STATE_INIT(0),
/**
* STATE_READY = 1;
*/
STATE_READY(1),
/**
* STATE_RUNNING = 2;
*/
STATE_RUNNING(2),
/**
* STATE_ERROR = 3;
*/
STATE_ERROR(3),
/**
* STATE_ESTOP = 4;
*/
STATE_ESTOP(4),
/**
* STATE_STOP = 5;
*/
STATE_STOP(5),
UNRECOGNIZED(-1),
;
/**
* STATE_INIT = 0;
*/
public static final int STATE_INIT_VALUE = 0;
/**
* STATE_READY = 1;
*/
public static final int STATE_READY_VALUE = 1;
/**
* STATE_RUNNING = 2;
*/
public static final int STATE_RUNNING_VALUE = 2;
/**
* STATE_ERROR = 3;
*/
public static final int STATE_ERROR_VALUE = 3;
/**
* STATE_ESTOP = 4;
*/
public static final int STATE_ESTOP_VALUE = 4;
/**
* STATE_STOP = 5;
*/
public static final int STATE_STOP_VALUE = 5;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static Lifecycle valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static Lifecycle forNumber(int value) {
switch (value) {
case 0: return STATE_INIT;
case 1: return STATE_READY;
case 2: return STATE_RUNNING;
case 3: return STATE_ERROR;
case 4: return STATE_ESTOP;
case 5: return STATE_STOP;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
Lifecycle> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public Lifecycle findValueByNumber(int number) {
return Lifecycle.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalStateException(
"Can't get the descriptor of an unrecognized enum value.");
}
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return cmvr.api.Common.DeviceLifecycle.getDescriptor().getEnumTypes().get(0);
}
private static final Lifecycle[] VALUES = values();
public static Lifecycle valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private Lifecycle(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:cmvr.api.DeviceLifecycle.Lifecycle)
}
public static final int STATE_FIELD_NUMBER = 1;
private int state_;
/**
* .cmvr.api.DeviceLifecycle.Lifecycle state = 1;
* @return The enum numeric value on the wire for state.
*/
@java.lang.Override public int getStateValue() {
return state_;
}
/**
* .cmvr.api.DeviceLifecycle.Lifecycle state = 1;
* @return The state.
*/
@java.lang.Override public cmvr.api.Common.DeviceLifecycle.Lifecycle getState() {
@SuppressWarnings("deprecation")
cmvr.api.Common.DeviceLifecycle.Lifecycle result = cmvr.api.Common.DeviceLifecycle.Lifecycle.valueOf(state_);
return result == null ? cmvr.api.Common.DeviceLifecycle.Lifecycle.UNRECOGNIZED : result;
}
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 (state_ != cmvr.api.Common.DeviceLifecycle.Lifecycle.STATE_INIT.getNumber()) {
output.writeEnum(1, state_);
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (state_ != cmvr.api.Common.DeviceLifecycle.Lifecycle.STATE_INIT.getNumber()) {
size += com.google.protobuf.CodedOutputStream
.computeEnumSize(1, state_);
}
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 cmvr.api.Common.DeviceLifecycle)) {
return super.equals(obj);
}
cmvr.api.Common.DeviceLifecycle other = (cmvr.api.Common.DeviceLifecycle) obj;
if (state_ != other.state_) 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) + STATE_FIELD_NUMBER;
hash = (53 * hash) + state_;
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static cmvr.api.Common.DeviceLifecycle parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cmvr.api.Common.DeviceLifecycle parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cmvr.api.Common.DeviceLifecycle parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cmvr.api.Common.DeviceLifecycle parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cmvr.api.Common.DeviceLifecycle parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cmvr.api.Common.DeviceLifecycle parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cmvr.api.Common.DeviceLifecycle parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cmvr.api.Common.DeviceLifecycle parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static cmvr.api.Common.DeviceLifecycle parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cmvr.api.Common.DeviceLifecycle parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static cmvr.api.Common.DeviceLifecycle parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cmvr.api.Common.DeviceLifecycle parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(cmvr.api.Common.DeviceLifecycle 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.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code cmvr.api.DeviceLifecycle}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cmvr.api.DeviceLifecycle)
cmvr.api.Common.DeviceLifecycleOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cmvr.api.Common.internal_static_cmvr_api_DeviceLifecycle_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cmvr.api.Common.internal_static_cmvr_api_DeviceLifecycle_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cmvr.api.Common.DeviceLifecycle.class, cmvr.api.Common.DeviceLifecycle.Builder.class);
}
// Construct using cmvr.api.Common.DeviceLifecycle.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
state_ = 0;
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cmvr.api.Common.internal_static_cmvr_api_DeviceLifecycle_descriptor;
}
@java.lang.Override
public cmvr.api.Common.DeviceLifecycle getDefaultInstanceForType() {
return cmvr.api.Common.DeviceLifecycle.getDefaultInstance();
}
@java.lang.Override
public cmvr.api.Common.DeviceLifecycle build() {
cmvr.api.Common.DeviceLifecycle result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cmvr.api.Common.DeviceLifecycle buildPartial() {
cmvr.api.Common.DeviceLifecycle result = new cmvr.api.Common.DeviceLifecycle(this);
result.state_ = state_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof cmvr.api.Common.DeviceLifecycle) {
return mergeFrom((cmvr.api.Common.DeviceLifecycle)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cmvr.api.Common.DeviceLifecycle other) {
if (other == cmvr.api.Common.DeviceLifecycle.getDefaultInstance()) return this;
if (other.state_ != 0) {
setStateValue(other.getStateValue());
}
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: {
state_ = input.readEnum();
break;
} // case 8
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 state_ = 0;
/**
* .cmvr.api.DeviceLifecycle.Lifecycle state = 1;
* @return The enum numeric value on the wire for state.
*/
@java.lang.Override public int getStateValue() {
return state_;
}
/**
* .cmvr.api.DeviceLifecycle.Lifecycle state = 1;
* @param value The enum numeric value on the wire for state to set.
* @return This builder for chaining.
*/
public Builder setStateValue(int value) {
state_ = value;
onChanged();
return this;
}
/**
* .cmvr.api.DeviceLifecycle.Lifecycle state = 1;
* @return The state.
*/
@java.lang.Override
public cmvr.api.Common.DeviceLifecycle.Lifecycle getState() {
@SuppressWarnings("deprecation")
cmvr.api.Common.DeviceLifecycle.Lifecycle result = cmvr.api.Common.DeviceLifecycle.Lifecycle.valueOf(state_);
return result == null ? cmvr.api.Common.DeviceLifecycle.Lifecycle.UNRECOGNIZED : result;
}
/**
* .cmvr.api.DeviceLifecycle.Lifecycle state = 1;
* @param value The state to set.
* @return This builder for chaining.
*/
public Builder setState(cmvr.api.Common.DeviceLifecycle.Lifecycle value) {
if (value == null) {
throw new NullPointerException();
}
state_ = value.getNumber();
onChanged();
return this;
}
/**
* .cmvr.api.DeviceLifecycle.Lifecycle state = 1;
* @return This builder for chaining.
*/
public Builder clearState() {
state_ = 0;
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:cmvr.api.DeviceLifecycle)
}
// @@protoc_insertion_point(class_scope:cmvr.api.DeviceLifecycle)
private static final cmvr.api.Common.DeviceLifecycle DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cmvr.api.Common.DeviceLifecycle();
}
public static cmvr.api.Common.DeviceLifecycle getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public DeviceLifecycle 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 parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public cmvr.api.Common.DeviceLifecycle getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface CommandHeaderOrBuilder extends
// @@protoc_insertion_point(interface_extends:cmvr.api.CommandHeader)
com.google.protobuf.MessageOrBuilder {
}
/**
* Protobuf type {@code cmvr.api.CommandHeader}
*/
public static final class CommandHeader extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cmvr.api.CommandHeader)
CommandHeaderOrBuilder {
private static final long serialVersionUID = 0L;
// Use CommandHeader.newBuilder() to construct.
private CommandHeader(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private CommandHeader() {
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new CommandHeader();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cmvr.api.Common.internal_static_cmvr_api_CommandHeader_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cmvr.api.Common.internal_static_cmvr_api_CommandHeader_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cmvr.api.Common.CommandHeader.class, cmvr.api.Common.CommandHeader.Builder.class);
}
public interface RequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:cmvr.api.CommandHeader.Request)
com.google.protobuf.MessageOrBuilder {
/**
*
* 目标设备名称
*
*
* string device_id = 1;
* @return The deviceId.
*/
java.lang.String getDeviceId();
/**
*
* 目标设备名称
*
*
* string device_id = 1;
* @return The bytes for deviceId.
*/
com.google.protobuf.ByteString
getDeviceIdBytes();
/**
*
* 请求时间
*
*
* .google.protobuf.Timestamp timestamp = 2;
* @return Whether the timestamp field is set.
*/
boolean hasTimestamp();
/**
*
* 请求时间
*
*
* .google.protobuf.Timestamp timestamp = 2;
* @return The timestamp.
*/
com.google.protobuf.Timestamp getTimestamp();
/**
*
* 请求时间
*
*
* .google.protobuf.Timestamp timestamp = 2;
*/
com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder();
}
/**
* Protobuf type {@code cmvr.api.CommandHeader.Request}
*/
public static final class Request extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cmvr.api.CommandHeader.Request)
RequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use Request.newBuilder() to construct.
private Request(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Request() {
deviceId_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Request();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cmvr.api.Common.internal_static_cmvr_api_CommandHeader_Request_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cmvr.api.Common.internal_static_cmvr_api_CommandHeader_Request_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cmvr.api.Common.CommandHeader.Request.class, cmvr.api.Common.CommandHeader.Request.Builder.class);
}
public static final int DEVICE_ID_FIELD_NUMBER = 1;
private volatile java.lang.Object deviceId_;
/**
*
* 目标设备名称
*
*
* string device_id = 1;
* @return The deviceId.
*/
@java.lang.Override
public java.lang.String getDeviceId() {
java.lang.Object ref = deviceId_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
deviceId_ = s;
return s;
}
}
/**
*
* 目标设备名称
*
*
* string device_id = 1;
* @return The bytes for deviceId.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getDeviceIdBytes() {
java.lang.Object ref = deviceId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
deviceId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int TIMESTAMP_FIELD_NUMBER = 2;
private com.google.protobuf.Timestamp timestamp_;
/**
*
* 请求时间
*
*
* .google.protobuf.Timestamp timestamp = 2;
* @return Whether the timestamp field is set.
*/
@java.lang.Override
public boolean hasTimestamp() {
return timestamp_ != null;
}
/**
*
* 请求时间
*
*
* .google.protobuf.Timestamp timestamp = 2;
* @return The timestamp.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getTimestamp() {
return timestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_;
}
/**
*
* 请求时间
*
*
* .google.protobuf.Timestamp timestamp = 2;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder() {
return getTimestamp();
}
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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(deviceId_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, deviceId_);
}
if (timestamp_ != null) {
output.writeMessage(2, getTimestamp());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(deviceId_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, deviceId_);
}
if (timestamp_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getTimestamp());
}
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 cmvr.api.Common.CommandHeader.Request)) {
return super.equals(obj);
}
cmvr.api.Common.CommandHeader.Request other = (cmvr.api.Common.CommandHeader.Request) obj;
if (!getDeviceId()
.equals(other.getDeviceId())) return false;
if (hasTimestamp() != other.hasTimestamp()) return false;
if (hasTimestamp()) {
if (!getTimestamp()
.equals(other.getTimestamp())) 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) + DEVICE_ID_FIELD_NUMBER;
hash = (53 * hash) + getDeviceId().hashCode();
if (hasTimestamp()) {
hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER;
hash = (53 * hash) + getTimestamp().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static cmvr.api.Common.CommandHeader.Request parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cmvr.api.Common.CommandHeader.Request parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cmvr.api.Common.CommandHeader.Request parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cmvr.api.Common.CommandHeader.Request parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cmvr.api.Common.CommandHeader.Request parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cmvr.api.Common.CommandHeader.Request parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cmvr.api.Common.CommandHeader.Request parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cmvr.api.Common.CommandHeader.Request parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static cmvr.api.Common.CommandHeader.Request parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cmvr.api.Common.CommandHeader.Request parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static cmvr.api.Common.CommandHeader.Request parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cmvr.api.Common.CommandHeader.Request parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(cmvr.api.Common.CommandHeader.Request 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.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code cmvr.api.CommandHeader.Request}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cmvr.api.CommandHeader.Request)
cmvr.api.Common.CommandHeader.RequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cmvr.api.Common.internal_static_cmvr_api_CommandHeader_Request_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cmvr.api.Common.internal_static_cmvr_api_CommandHeader_Request_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cmvr.api.Common.CommandHeader.Request.class, cmvr.api.Common.CommandHeader.Request.Builder.class);
}
// Construct using cmvr.api.Common.CommandHeader.Request.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
deviceId_ = "";
if (timestampBuilder_ == null) {
timestamp_ = null;
} else {
timestamp_ = null;
timestampBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cmvr.api.Common.internal_static_cmvr_api_CommandHeader_Request_descriptor;
}
@java.lang.Override
public cmvr.api.Common.CommandHeader.Request getDefaultInstanceForType() {
return cmvr.api.Common.CommandHeader.Request.getDefaultInstance();
}
@java.lang.Override
public cmvr.api.Common.CommandHeader.Request build() {
cmvr.api.Common.CommandHeader.Request result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cmvr.api.Common.CommandHeader.Request buildPartial() {
cmvr.api.Common.CommandHeader.Request result = new cmvr.api.Common.CommandHeader.Request(this);
result.deviceId_ = deviceId_;
if (timestampBuilder_ == null) {
result.timestamp_ = timestamp_;
} else {
result.timestamp_ = timestampBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof cmvr.api.Common.CommandHeader.Request) {
return mergeFrom((cmvr.api.Common.CommandHeader.Request)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cmvr.api.Common.CommandHeader.Request other) {
if (other == cmvr.api.Common.CommandHeader.Request.getDefaultInstance()) return this;
if (!other.getDeviceId().isEmpty()) {
deviceId_ = other.deviceId_;
onChanged();
}
if (other.hasTimestamp()) {
mergeTimestamp(other.getTimestamp());
}
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 10: {
deviceId_ = input.readStringRequireUtf8();
break;
} // case 10
case 18: {
input.readMessage(
getTimestampFieldBuilder().getBuilder(),
extensionRegistry);
break;
} // case 18
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 java.lang.Object deviceId_ = "";
/**
*
* 目标设备名称
*
*
* string device_id = 1;
* @return The deviceId.
*/
public java.lang.String getDeviceId() {
java.lang.Object ref = deviceId_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
deviceId_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* 目标设备名称
*
*
* string device_id = 1;
* @return The bytes for deviceId.
*/
public com.google.protobuf.ByteString
getDeviceIdBytes() {
java.lang.Object ref = deviceId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
deviceId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* 目标设备名称
*
*
* string device_id = 1;
* @param value The deviceId to set.
* @return This builder for chaining.
*/
public Builder setDeviceId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
deviceId_ = value;
onChanged();
return this;
}
/**
*
* 目标设备名称
*
*
* string device_id = 1;
* @return This builder for chaining.
*/
public Builder clearDeviceId() {
deviceId_ = getDefaultInstance().getDeviceId();
onChanged();
return this;
}
/**
*
* 目标设备名称
*
*
* string device_id = 1;
* @param value The bytes for deviceId to set.
* @return This builder for chaining.
*/
public Builder setDeviceIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
deviceId_ = value;
onChanged();
return this;
}
private com.google.protobuf.Timestamp timestamp_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> timestampBuilder_;
/**
*
* 请求时间
*
*
* .google.protobuf.Timestamp timestamp = 2;
* @return Whether the timestamp field is set.
*/
public boolean hasTimestamp() {
return timestampBuilder_ != null || timestamp_ != null;
}
/**
*
* 请求时间
*
*
* .google.protobuf.Timestamp timestamp = 2;
* @return The timestamp.
*/
public com.google.protobuf.Timestamp getTimestamp() {
if (timestampBuilder_ == null) {
return timestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_;
} else {
return timestampBuilder_.getMessage();
}
}
/**
*
* 请求时间
*
*
* .google.protobuf.Timestamp timestamp = 2;
*/
public Builder setTimestamp(com.google.protobuf.Timestamp value) {
if (timestampBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
timestamp_ = value;
onChanged();
} else {
timestampBuilder_.setMessage(value);
}
return this;
}
/**
*
* 请求时间
*
*
* .google.protobuf.Timestamp timestamp = 2;
*/
public Builder setTimestamp(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (timestampBuilder_ == null) {
timestamp_ = builderForValue.build();
onChanged();
} else {
timestampBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* 请求时间
*
*
* .google.protobuf.Timestamp timestamp = 2;
*/
public Builder mergeTimestamp(com.google.protobuf.Timestamp value) {
if (timestampBuilder_ == null) {
if (timestamp_ != null) {
timestamp_ =
com.google.protobuf.Timestamp.newBuilder(timestamp_).mergeFrom(value).buildPartial();
} else {
timestamp_ = value;
}
onChanged();
} else {
timestampBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* 请求时间
*
*
* .google.protobuf.Timestamp timestamp = 2;
*/
public Builder clearTimestamp() {
if (timestampBuilder_ == null) {
timestamp_ = null;
onChanged();
} else {
timestamp_ = null;
timestampBuilder_ = null;
}
return this;
}
/**
*
* 请求时间
*
*
* .google.protobuf.Timestamp timestamp = 2;
*/
public com.google.protobuf.Timestamp.Builder getTimestampBuilder() {
onChanged();
return getTimestampFieldBuilder().getBuilder();
}
/**
*
* 请求时间
*
*
* .google.protobuf.Timestamp timestamp = 2;
*/
public com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder() {
if (timestampBuilder_ != null) {
return timestampBuilder_.getMessageOrBuilder();
} else {
return timestamp_ == null ?
com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_;
}
}
/**
*
* 请求时间
*
*
* .google.protobuf.Timestamp timestamp = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
getTimestampFieldBuilder() {
if (timestampBuilder_ == null) {
timestampBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
getTimestamp(),
getParentForChildren(),
isClean());
timestamp_ = null;
}
return timestampBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:cmvr.api.CommandHeader.Request)
}
// @@protoc_insertion_point(class_scope:cmvr.api.CommandHeader.Request)
private static final cmvr.api.Common.CommandHeader.Request DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cmvr.api.Common.CommandHeader.Request();
}
public static cmvr.api.Common.CommandHeader.Request getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Request 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 parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public cmvr.api.Common.CommandHeader.Request getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
public interface FeedbackOrBuilder extends
// @@protoc_insertion_point(interface_extends:cmvr.api.CommandHeader.Feedback)
com.google.protobuf.MessageOrBuilder {
/**
*
* 是否成功
*
*
* bool success = 1;
* @return The success.
*/
boolean getSuccess();
/**
*
* 错误信息(成功时为空)
*
*
* string error_message = 2;
* @return The errorMessage.
*/
java.lang.String getErrorMessage();
/**
*
* 错误信息(成功时为空)
*
*
* string error_message = 2;
* @return The bytes for errorMessage.
*/
com.google.protobuf.ByteString
getErrorMessageBytes();
/**
*
* 回复时间
*
*
* .google.protobuf.Timestamp timestamp = 3;
* @return Whether the timestamp field is set.
*/
boolean hasTimestamp();
/**
*
* 回复时间
*
*
* .google.protobuf.Timestamp timestamp = 3;
* @return The timestamp.
*/
com.google.protobuf.Timestamp getTimestamp();
/**
*
* 回复时间
*
*
* .google.protobuf.Timestamp timestamp = 3;
*/
com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder();
}
/**
* Protobuf type {@code cmvr.api.CommandHeader.Feedback}
*/
public static final class Feedback extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:cmvr.api.CommandHeader.Feedback)
FeedbackOrBuilder {
private static final long serialVersionUID = 0L;
// Use Feedback.newBuilder() to construct.
private Feedback(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Feedback() {
errorMessage_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Feedback();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cmvr.api.Common.internal_static_cmvr_api_CommandHeader_Feedback_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cmvr.api.Common.internal_static_cmvr_api_CommandHeader_Feedback_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cmvr.api.Common.CommandHeader.Feedback.class, cmvr.api.Common.CommandHeader.Feedback.Builder.class);
}
public static final int SUCCESS_FIELD_NUMBER = 1;
private boolean success_;
/**
*
* 是否成功
*
*
* bool success = 1;
* @return The success.
*/
@java.lang.Override
public boolean getSuccess() {
return success_;
}
public static final int ERROR_MESSAGE_FIELD_NUMBER = 2;
private volatile java.lang.Object errorMessage_;
/**
*
* 错误信息(成功时为空)
*
*
* string error_message = 2;
* @return The errorMessage.
*/
@java.lang.Override
public java.lang.String getErrorMessage() {
java.lang.Object ref = errorMessage_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
errorMessage_ = s;
return s;
}
}
/**
*
* 错误信息(成功时为空)
*
*
* string error_message = 2;
* @return The bytes for errorMessage.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getErrorMessageBytes() {
java.lang.Object ref = errorMessage_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
errorMessage_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int TIMESTAMP_FIELD_NUMBER = 3;
private com.google.protobuf.Timestamp timestamp_;
/**
*
* 回复时间
*
*
* .google.protobuf.Timestamp timestamp = 3;
* @return Whether the timestamp field is set.
*/
@java.lang.Override
public boolean hasTimestamp() {
return timestamp_ != null;
}
/**
*
* 回复时间
*
*
* .google.protobuf.Timestamp timestamp = 3;
* @return The timestamp.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getTimestamp() {
return timestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_;
}
/**
*
* 回复时间
*
*
* .google.protobuf.Timestamp timestamp = 3;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder() {
return getTimestamp();
}
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 (success_ != false) {
output.writeBool(1, success_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(errorMessage_)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, errorMessage_);
}
if (timestamp_ != null) {
output.writeMessage(3, getTimestamp());
}
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (success_ != false) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(1, success_);
}
if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(errorMessage_)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, errorMessage_);
}
if (timestamp_ != null) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getTimestamp());
}
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 cmvr.api.Common.CommandHeader.Feedback)) {
return super.equals(obj);
}
cmvr.api.Common.CommandHeader.Feedback other = (cmvr.api.Common.CommandHeader.Feedback) obj;
if (getSuccess()
!= other.getSuccess()) return false;
if (!getErrorMessage()
.equals(other.getErrorMessage())) return false;
if (hasTimestamp() != other.hasTimestamp()) return false;
if (hasTimestamp()) {
if (!getTimestamp()
.equals(other.getTimestamp())) 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) + SUCCESS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getSuccess());
hash = (37 * hash) + ERROR_MESSAGE_FIELD_NUMBER;
hash = (53 * hash) + getErrorMessage().hashCode();
if (hasTimestamp()) {
hash = (37 * hash) + TIMESTAMP_FIELD_NUMBER;
hash = (53 * hash) + getTimestamp().hashCode();
}
hash = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static cmvr.api.Common.CommandHeader.Feedback parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cmvr.api.Common.CommandHeader.Feedback parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cmvr.api.Common.CommandHeader.Feedback parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cmvr.api.Common.CommandHeader.Feedback parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cmvr.api.Common.CommandHeader.Feedback parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cmvr.api.Common.CommandHeader.Feedback parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cmvr.api.Common.CommandHeader.Feedback parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cmvr.api.Common.CommandHeader.Feedback parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static cmvr.api.Common.CommandHeader.Feedback parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cmvr.api.Common.CommandHeader.Feedback parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static cmvr.api.Common.CommandHeader.Feedback parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cmvr.api.Common.CommandHeader.Feedback parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(cmvr.api.Common.CommandHeader.Feedback 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.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code cmvr.api.CommandHeader.Feedback}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cmvr.api.CommandHeader.Feedback)
cmvr.api.Common.CommandHeader.FeedbackOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cmvr.api.Common.internal_static_cmvr_api_CommandHeader_Feedback_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cmvr.api.Common.internal_static_cmvr_api_CommandHeader_Feedback_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cmvr.api.Common.CommandHeader.Feedback.class, cmvr.api.Common.CommandHeader.Feedback.Builder.class);
}
// Construct using cmvr.api.Common.CommandHeader.Feedback.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
success_ = false;
errorMessage_ = "";
if (timestampBuilder_ == null) {
timestamp_ = null;
} else {
timestamp_ = null;
timestampBuilder_ = null;
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cmvr.api.Common.internal_static_cmvr_api_CommandHeader_Feedback_descriptor;
}
@java.lang.Override
public cmvr.api.Common.CommandHeader.Feedback getDefaultInstanceForType() {
return cmvr.api.Common.CommandHeader.Feedback.getDefaultInstance();
}
@java.lang.Override
public cmvr.api.Common.CommandHeader.Feedback build() {
cmvr.api.Common.CommandHeader.Feedback result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cmvr.api.Common.CommandHeader.Feedback buildPartial() {
cmvr.api.Common.CommandHeader.Feedback result = new cmvr.api.Common.CommandHeader.Feedback(this);
result.success_ = success_;
result.errorMessage_ = errorMessage_;
if (timestampBuilder_ == null) {
result.timestamp_ = timestamp_;
} else {
result.timestamp_ = timestampBuilder_.build();
}
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof cmvr.api.Common.CommandHeader.Feedback) {
return mergeFrom((cmvr.api.Common.CommandHeader.Feedback)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cmvr.api.Common.CommandHeader.Feedback other) {
if (other == cmvr.api.Common.CommandHeader.Feedback.getDefaultInstance()) return this;
if (other.getSuccess() != false) {
setSuccess(other.getSuccess());
}
if (!other.getErrorMessage().isEmpty()) {
errorMessage_ = other.errorMessage_;
onChanged();
}
if (other.hasTimestamp()) {
mergeTimestamp(other.getTimestamp());
}
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: {
success_ = input.readBool();
break;
} // case 8
case 18: {
errorMessage_ = input.readStringRequireUtf8();
break;
} // case 18
case 26: {
input.readMessage(
getTimestampFieldBuilder().getBuilder(),
extensionRegistry);
break;
} // case 26
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 boolean success_ ;
/**
*
* 是否成功
*
*
* bool success = 1;
* @return The success.
*/
@java.lang.Override
public boolean getSuccess() {
return success_;
}
/**
*
* 是否成功
*
*
* bool success = 1;
* @param value The success to set.
* @return This builder for chaining.
*/
public Builder setSuccess(boolean value) {
success_ = value;
onChanged();
return this;
}
/**
*
* 是否成功
*
*
* bool success = 1;
* @return This builder for chaining.
*/
public Builder clearSuccess() {
success_ = false;
onChanged();
return this;
}
private java.lang.Object errorMessage_ = "";
/**
*
* 错误信息(成功时为空)
*
*
* string error_message = 2;
* @return The errorMessage.
*/
public java.lang.String getErrorMessage() {
java.lang.Object ref = errorMessage_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
errorMessage_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* 错误信息(成功时为空)
*
*
* string error_message = 2;
* @return The bytes for errorMessage.
*/
public com.google.protobuf.ByteString
getErrorMessageBytes() {
java.lang.Object ref = errorMessage_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
errorMessage_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* 错误信息(成功时为空)
*
*
* string error_message = 2;
* @param value The errorMessage to set.
* @return This builder for chaining.
*/
public Builder setErrorMessage(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
errorMessage_ = value;
onChanged();
return this;
}
/**
*
* 错误信息(成功时为空)
*
*
* string error_message = 2;
* @return This builder for chaining.
*/
public Builder clearErrorMessage() {
errorMessage_ = getDefaultInstance().getErrorMessage();
onChanged();
return this;
}
/**
*
* 错误信息(成功时为空)
*
*
* string error_message = 2;
* @param value The bytes for errorMessage to set.
* @return This builder for chaining.
*/
public Builder setErrorMessageBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
checkByteStringIsUtf8(value);
errorMessage_ = value;
onChanged();
return this;
}
private com.google.protobuf.Timestamp timestamp_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> timestampBuilder_;
/**
*
* 回复时间
*
*
* .google.protobuf.Timestamp timestamp = 3;
* @return Whether the timestamp field is set.
*/
public boolean hasTimestamp() {
return timestampBuilder_ != null || timestamp_ != null;
}
/**
*
* 回复时间
*
*
* .google.protobuf.Timestamp timestamp = 3;
* @return The timestamp.
*/
public com.google.protobuf.Timestamp getTimestamp() {
if (timestampBuilder_ == null) {
return timestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_;
} else {
return timestampBuilder_.getMessage();
}
}
/**
*
* 回复时间
*
*
* .google.protobuf.Timestamp timestamp = 3;
*/
public Builder setTimestamp(com.google.protobuf.Timestamp value) {
if (timestampBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
timestamp_ = value;
onChanged();
} else {
timestampBuilder_.setMessage(value);
}
return this;
}
/**
*
* 回复时间
*
*
* .google.protobuf.Timestamp timestamp = 3;
*/
public Builder setTimestamp(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (timestampBuilder_ == null) {
timestamp_ = builderForValue.build();
onChanged();
} else {
timestampBuilder_.setMessage(builderForValue.build());
}
return this;
}
/**
*
* 回复时间
*
*
* .google.protobuf.Timestamp timestamp = 3;
*/
public Builder mergeTimestamp(com.google.protobuf.Timestamp value) {
if (timestampBuilder_ == null) {
if (timestamp_ != null) {
timestamp_ =
com.google.protobuf.Timestamp.newBuilder(timestamp_).mergeFrom(value).buildPartial();
} else {
timestamp_ = value;
}
onChanged();
} else {
timestampBuilder_.mergeFrom(value);
}
return this;
}
/**
*
* 回复时间
*
*
* .google.protobuf.Timestamp timestamp = 3;
*/
public Builder clearTimestamp() {
if (timestampBuilder_ == null) {
timestamp_ = null;
onChanged();
} else {
timestamp_ = null;
timestampBuilder_ = null;
}
return this;
}
/**
*
* 回复时间
*
*
* .google.protobuf.Timestamp timestamp = 3;
*/
public com.google.protobuf.Timestamp.Builder getTimestampBuilder() {
onChanged();
return getTimestampFieldBuilder().getBuilder();
}
/**
*
* 回复时间
*
*
* .google.protobuf.Timestamp timestamp = 3;
*/
public com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder() {
if (timestampBuilder_ != null) {
return timestampBuilder_.getMessageOrBuilder();
} else {
return timestamp_ == null ?
com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_;
}
}
/**
*
* 回复时间
*
*
* .google.protobuf.Timestamp timestamp = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
getTimestampFieldBuilder() {
if (timestampBuilder_ == null) {
timestampBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
getTimestamp(),
getParentForChildren(),
isClean());
timestamp_ = null;
}
return timestampBuilder_;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:cmvr.api.CommandHeader.Feedback)
}
// @@protoc_insertion_point(class_scope:cmvr.api.CommandHeader.Feedback)
private static final cmvr.api.Common.CommandHeader.Feedback DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cmvr.api.Common.CommandHeader.Feedback();
}
public static cmvr.api.Common.CommandHeader.Feedback getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Feedback 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 parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public cmvr.api.Common.CommandHeader.Feedback getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
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 {
getUnknownFields().writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
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 cmvr.api.Common.CommandHeader)) {
return super.equals(obj);
}
cmvr.api.Common.CommandHeader other = (cmvr.api.Common.CommandHeader) obj;
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 = (29 * hash) + getUnknownFields().hashCode();
memoizedHashCode = hash;
return hash;
}
public static cmvr.api.Common.CommandHeader parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cmvr.api.Common.CommandHeader parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cmvr.api.Common.CommandHeader parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cmvr.api.Common.CommandHeader parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cmvr.api.Common.CommandHeader parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static cmvr.api.Common.CommandHeader parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static cmvr.api.Common.CommandHeader parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cmvr.api.Common.CommandHeader parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static cmvr.api.Common.CommandHeader parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static cmvr.api.Common.CommandHeader parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static cmvr.api.Common.CommandHeader parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static cmvr.api.Common.CommandHeader parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(cmvr.api.Common.CommandHeader 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.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code cmvr.api.CommandHeader}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:cmvr.api.CommandHeader)
cmvr.api.Common.CommandHeaderOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return cmvr.api.Common.internal_static_cmvr_api_CommandHeader_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return cmvr.api.Common.internal_static_cmvr_api_CommandHeader_fieldAccessorTable
.ensureFieldAccessorsInitialized(
cmvr.api.Common.CommandHeader.class, cmvr.api.Common.CommandHeader.Builder.class);
}
// Construct using cmvr.api.Common.CommandHeader.newBuilder()
private Builder() {
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
}
@java.lang.Override
public Builder clear() {
super.clear();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return cmvr.api.Common.internal_static_cmvr_api_CommandHeader_descriptor;
}
@java.lang.Override
public cmvr.api.Common.CommandHeader getDefaultInstanceForType() {
return cmvr.api.Common.CommandHeader.getDefaultInstance();
}
@java.lang.Override
public cmvr.api.Common.CommandHeader build() {
cmvr.api.Common.CommandHeader result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public cmvr.api.Common.CommandHeader buildPartial() {
cmvr.api.Common.CommandHeader result = new cmvr.api.Common.CommandHeader(this);
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof cmvr.api.Common.CommandHeader) {
return mergeFrom((cmvr.api.Common.CommandHeader)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(cmvr.api.Common.CommandHeader other) {
if (other == cmvr.api.Common.CommandHeader.getDefaultInstance()) return this;
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;
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;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:cmvr.api.CommandHeader)
}
// @@protoc_insertion_point(class_scope:cmvr.api.CommandHeader)
private static final cmvr.api.Common.CommandHeader DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new cmvr.api.Common.CommandHeader();
}
public static cmvr.api.Common.CommandHeader getDefaultInstance() {
return DEFAULT_INSTANCE;
}
private static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public CommandHeader 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 parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public cmvr.api.Common.CommandHeader getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_cmvr_api_DeviceLifecycle_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_cmvr_api_DeviceLifecycle_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_cmvr_api_CommandHeader_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_cmvr_api_CommandHeader_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_cmvr_api_CommandHeader_Request_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_cmvr_api_CommandHeader_Request_fieldAccessorTable;
private static final com.google.protobuf.Descriptors.Descriptor
internal_static_cmvr_api_CommandHeader_Feedback_descriptor;
private static final
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internal_static_cmvr_api_CommandHeader_Feedback_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\025cmvr/api/common.proto\022\010cmvr.api\032\037googl" +
"e/protobuf/timestamp.proto\"\270\001\n\017DeviceLif" +
"ecycle\0222\n\005state\030\001 \001(\0162#.cmvr.api.DeviceL" +
"ifecycle.Lifecycle\"q\n\tLifecycle\022\016\n\nSTATE" +
"_INIT\020\000\022\017\n\013STATE_READY\020\001\022\021\n\rSTATE_RUNNIN" +
"G\020\002\022\017\n\013STATE_ERROR\020\003\022\017\n\013STATE_ESTOP\020\004\022\016\n" +
"\nSTATE_STOP\020\005\"\277\001\n\rCommandHeader\032K\n\007Reque" +
"st\022\021\n\tdevice_id\030\001 \001(\t\022-\n\ttimestamp\030\002 \001(\013" +
"2\032.google.protobuf.Timestamp\032a\n\010Feedback" +
"\022\017\n\007success\030\001 \001(\010\022\025\n\rerror_message\030\002 \001(\t" +
"\022-\n\ttimestamp\030\003 \001(\0132\032.google.protobuf.Ti" +
"mestampb\006proto3"
};
descriptor = com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
com.google.protobuf.TimestampProto.getDescriptor(),
});
internal_static_cmvr_api_DeviceLifecycle_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_cmvr_api_DeviceLifecycle_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_cmvr_api_DeviceLifecycle_descriptor,
new java.lang.String[] { "State", });
internal_static_cmvr_api_CommandHeader_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_cmvr_api_CommandHeader_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_cmvr_api_CommandHeader_descriptor,
new java.lang.String[] { });
internal_static_cmvr_api_CommandHeader_Request_descriptor =
internal_static_cmvr_api_CommandHeader_descriptor.getNestedTypes().get(0);
internal_static_cmvr_api_CommandHeader_Request_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_cmvr_api_CommandHeader_Request_descriptor,
new java.lang.String[] { "DeviceId", "Timestamp", });
internal_static_cmvr_api_CommandHeader_Feedback_descriptor =
internal_static_cmvr_api_CommandHeader_descriptor.getNestedTypes().get(1);
internal_static_cmvr_api_CommandHeader_Feedback_fieldAccessorTable = new
com.google.protobuf.GeneratedMessageV3.FieldAccessorTable(
internal_static_cmvr_api_CommandHeader_Feedback_descriptor,
new java.lang.String[] { "Success", "ErrorMessage", "Timestamp", });
com.google.protobuf.TimestampProto.getDescriptor();
}
// @@protoc_insertion_point(outer_class_scope)
}