2918 lines
98 KiB
Java
2918 lines
98 KiB
Java
// 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 {
|
|
|
|
/**
|
|
* <code>.cmvr.api.DeviceLifecycle.Lifecycle state = 1;</code>
|
|
* @return The enum numeric value on the wire for state.
|
|
*/
|
|
int getStateValue();
|
|
/**
|
|
* <code>.cmvr.api.DeviceLifecycle.Lifecycle state = 1;</code>
|
|
* @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 {
|
|
/**
|
|
* <code>STATE_INIT = 0;</code>
|
|
*/
|
|
STATE_INIT(0),
|
|
/**
|
|
* <code>STATE_READY = 1;</code>
|
|
*/
|
|
STATE_READY(1),
|
|
/**
|
|
* <code>STATE_RUNNING = 2;</code>
|
|
*/
|
|
STATE_RUNNING(2),
|
|
/**
|
|
* <code>STATE_ERROR = 3;</code>
|
|
*/
|
|
STATE_ERROR(3),
|
|
/**
|
|
* <code>STATE_ESTOP = 4;</code>
|
|
*/
|
|
STATE_ESTOP(4),
|
|
/**
|
|
* <code>STATE_STOP = 5;</code>
|
|
*/
|
|
STATE_STOP(5),
|
|
UNRECOGNIZED(-1),
|
|
;
|
|
|
|
/**
|
|
* <code>STATE_INIT = 0;</code>
|
|
*/
|
|
public static final int STATE_INIT_VALUE = 0;
|
|
/**
|
|
* <code>STATE_READY = 1;</code>
|
|
*/
|
|
public static final int STATE_READY_VALUE = 1;
|
|
/**
|
|
* <code>STATE_RUNNING = 2;</code>
|
|
*/
|
|
public static final int STATE_RUNNING_VALUE = 2;
|
|
/**
|
|
* <code>STATE_ERROR = 3;</code>
|
|
*/
|
|
public static final int STATE_ERROR_VALUE = 3;
|
|
/**
|
|
* <code>STATE_ESTOP = 4;</code>
|
|
*/
|
|
public static final int STATE_ESTOP_VALUE = 4;
|
|
/**
|
|
* <code>STATE_STOP = 5;</code>
|
|
*/
|
|
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<Lifecycle>
|
|
internalGetValueMap() {
|
|
return internalValueMap;
|
|
}
|
|
private static final com.google.protobuf.Internal.EnumLiteMap<
|
|
Lifecycle> internalValueMap =
|
|
new com.google.protobuf.Internal.EnumLiteMap<Lifecycle>() {
|
|
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_;
|
|
/**
|
|
* <code>.cmvr.api.DeviceLifecycle.Lifecycle state = 1;</code>
|
|
* @return The enum numeric value on the wire for state.
|
|
*/
|
|
@java.lang.Override public int getStateValue() {
|
|
return state_;
|
|
}
|
|
/**
|
|
* <code>.cmvr.api.DeviceLifecycle.Lifecycle state = 1;</code>
|
|
* @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<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;
|
|
/**
|
|
* <code>.cmvr.api.DeviceLifecycle.Lifecycle state = 1;</code>
|
|
* @return The enum numeric value on the wire for state.
|
|
*/
|
|
@java.lang.Override public int getStateValue() {
|
|
return state_;
|
|
}
|
|
/**
|
|
* <code>.cmvr.api.DeviceLifecycle.Lifecycle state = 1;</code>
|
|
* @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;
|
|
}
|
|
/**
|
|
* <code>.cmvr.api.DeviceLifecycle.Lifecycle state = 1;</code>
|
|
* @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;
|
|
}
|
|
/**
|
|
* <code>.cmvr.api.DeviceLifecycle.Lifecycle state = 1;</code>
|
|
* @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;
|
|
}
|
|
/**
|
|
* <code>.cmvr.api.DeviceLifecycle.Lifecycle state = 1;</code>
|
|
* @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<DeviceLifecycle>
|
|
PARSER = new com.google.protobuf.AbstractParser<DeviceLifecycle>() {
|
|
@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<DeviceLifecycle> parser() {
|
|
return PARSER;
|
|
}
|
|
|
|
@java.lang.Override
|
|
public com.google.protobuf.Parser<DeviceLifecycle> 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 {
|
|
|
|
/**
|
|
* <pre>
|
|
* 目标设备名称
|
|
* </pre>
|
|
*
|
|
* <code>string device_id = 1;</code>
|
|
* @return The deviceId.
|
|
*/
|
|
java.lang.String getDeviceId();
|
|
/**
|
|
* <pre>
|
|
* 目标设备名称
|
|
* </pre>
|
|
*
|
|
* <code>string device_id = 1;</code>
|
|
* @return The bytes for deviceId.
|
|
*/
|
|
com.google.protobuf.ByteString
|
|
getDeviceIdBytes();
|
|
|
|
/**
|
|
* <pre>
|
|
* 请求时间
|
|
* </pre>
|
|
*
|
|
* <code>.google.protobuf.Timestamp timestamp = 2;</code>
|
|
* @return Whether the timestamp field is set.
|
|
*/
|
|
boolean hasTimestamp();
|
|
/**
|
|
* <pre>
|
|
* 请求时间
|
|
* </pre>
|
|
*
|
|
* <code>.google.protobuf.Timestamp timestamp = 2;</code>
|
|
* @return The timestamp.
|
|
*/
|
|
com.google.protobuf.Timestamp getTimestamp();
|
|
/**
|
|
* <pre>
|
|
* 请求时间
|
|
* </pre>
|
|
*
|
|
* <code>.google.protobuf.Timestamp timestamp = 2;</code>
|
|
*/
|
|
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_;
|
|
/**
|
|
* <pre>
|
|
* 目标设备名称
|
|
* </pre>
|
|
*
|
|
* <code>string device_id = 1;</code>
|
|
* @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;
|
|
}
|
|
}
|
|
/**
|
|
* <pre>
|
|
* 目标设备名称
|
|
* </pre>
|
|
*
|
|
* <code>string device_id = 1;</code>
|
|
* @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_;
|
|
/**
|
|
* <pre>
|
|
* 请求时间
|
|
* </pre>
|
|
*
|
|
* <code>.google.protobuf.Timestamp timestamp = 2;</code>
|
|
* @return Whether the timestamp field is set.
|
|
*/
|
|
@java.lang.Override
|
|
public boolean hasTimestamp() {
|
|
return timestamp_ != null;
|
|
}
|
|
/**
|
|
* <pre>
|
|
* 请求时间
|
|
* </pre>
|
|
*
|
|
* <code>.google.protobuf.Timestamp timestamp = 2;</code>
|
|
* @return The timestamp.
|
|
*/
|
|
@java.lang.Override
|
|
public com.google.protobuf.Timestamp getTimestamp() {
|
|
return timestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_;
|
|
}
|
|
/**
|
|
* <pre>
|
|
* 请求时间
|
|
* </pre>
|
|
*
|
|
* <code>.google.protobuf.Timestamp timestamp = 2;</code>
|
|
*/
|
|
@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<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_ = "";
|
|
/**
|
|
* <pre>
|
|
* 目标设备名称
|
|
* </pre>
|
|
*
|
|
* <code>string device_id = 1;</code>
|
|
* @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;
|
|
}
|
|
}
|
|
/**
|
|
* <pre>
|
|
* 目标设备名称
|
|
* </pre>
|
|
*
|
|
* <code>string device_id = 1;</code>
|
|
* @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;
|
|
}
|
|
}
|
|
/**
|
|
* <pre>
|
|
* 目标设备名称
|
|
* </pre>
|
|
*
|
|
* <code>string device_id = 1;</code>
|
|
* @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;
|
|
}
|
|
/**
|
|
* <pre>
|
|
* 目标设备名称
|
|
* </pre>
|
|
*
|
|
* <code>string device_id = 1;</code>
|
|
* @return This builder for chaining.
|
|
*/
|
|
public Builder clearDeviceId() {
|
|
|
|
deviceId_ = getDefaultInstance().getDeviceId();
|
|
onChanged();
|
|
return this;
|
|
}
|
|
/**
|
|
* <pre>
|
|
* 目标设备名称
|
|
* </pre>
|
|
*
|
|
* <code>string device_id = 1;</code>
|
|
* @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_;
|
|
/**
|
|
* <pre>
|
|
* 请求时间
|
|
* </pre>
|
|
*
|
|
* <code>.google.protobuf.Timestamp timestamp = 2;</code>
|
|
* @return Whether the timestamp field is set.
|
|
*/
|
|
public boolean hasTimestamp() {
|
|
return timestampBuilder_ != null || timestamp_ != null;
|
|
}
|
|
/**
|
|
* <pre>
|
|
* 请求时间
|
|
* </pre>
|
|
*
|
|
* <code>.google.protobuf.Timestamp timestamp = 2;</code>
|
|
* @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();
|
|
}
|
|
}
|
|
/**
|
|
* <pre>
|
|
* 请求时间
|
|
* </pre>
|
|
*
|
|
* <code>.google.protobuf.Timestamp timestamp = 2;</code>
|
|
*/
|
|
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;
|
|
}
|
|
/**
|
|
* <pre>
|
|
* 请求时间
|
|
* </pre>
|
|
*
|
|
* <code>.google.protobuf.Timestamp timestamp = 2;</code>
|
|
*/
|
|
public Builder setTimestamp(
|
|
com.google.protobuf.Timestamp.Builder builderForValue) {
|
|
if (timestampBuilder_ == null) {
|
|
timestamp_ = builderForValue.build();
|
|
onChanged();
|
|
} else {
|
|
timestampBuilder_.setMessage(builderForValue.build());
|
|
}
|
|
|
|
return this;
|
|
}
|
|
/**
|
|
* <pre>
|
|
* 请求时间
|
|
* </pre>
|
|
*
|
|
* <code>.google.protobuf.Timestamp timestamp = 2;</code>
|
|
*/
|
|
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;
|
|
}
|
|
/**
|
|
* <pre>
|
|
* 请求时间
|
|
* </pre>
|
|
*
|
|
* <code>.google.protobuf.Timestamp timestamp = 2;</code>
|
|
*/
|
|
public Builder clearTimestamp() {
|
|
if (timestampBuilder_ == null) {
|
|
timestamp_ = null;
|
|
onChanged();
|
|
} else {
|
|
timestamp_ = null;
|
|
timestampBuilder_ = null;
|
|
}
|
|
|
|
return this;
|
|
}
|
|
/**
|
|
* <pre>
|
|
* 请求时间
|
|
* </pre>
|
|
*
|
|
* <code>.google.protobuf.Timestamp timestamp = 2;</code>
|
|
*/
|
|
public com.google.protobuf.Timestamp.Builder getTimestampBuilder() {
|
|
|
|
onChanged();
|
|
return getTimestampFieldBuilder().getBuilder();
|
|
}
|
|
/**
|
|
* <pre>
|
|
* 请求时间
|
|
* </pre>
|
|
*
|
|
* <code>.google.protobuf.Timestamp timestamp = 2;</code>
|
|
*/
|
|
public com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder() {
|
|
if (timestampBuilder_ != null) {
|
|
return timestampBuilder_.getMessageOrBuilder();
|
|
} else {
|
|
return timestamp_ == null ?
|
|
com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_;
|
|
}
|
|
}
|
|
/**
|
|
* <pre>
|
|
* 请求时间
|
|
* </pre>
|
|
*
|
|
* <code>.google.protobuf.Timestamp timestamp = 2;</code>
|
|
*/
|
|
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<Request>
|
|
PARSER = new com.google.protobuf.AbstractParser<Request>() {
|
|
@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<Request> parser() {
|
|
return PARSER;
|
|
}
|
|
|
|
@java.lang.Override
|
|
public com.google.protobuf.Parser<Request> 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 {
|
|
|
|
/**
|
|
* <pre>
|
|
* 是否成功
|
|
* </pre>
|
|
*
|
|
* <code>bool success = 1;</code>
|
|
* @return The success.
|
|
*/
|
|
boolean getSuccess();
|
|
|
|
/**
|
|
* <pre>
|
|
* 错误信息(成功时为空)
|
|
* </pre>
|
|
*
|
|
* <code>string error_message = 2;</code>
|
|
* @return The errorMessage.
|
|
*/
|
|
java.lang.String getErrorMessage();
|
|
/**
|
|
* <pre>
|
|
* 错误信息(成功时为空)
|
|
* </pre>
|
|
*
|
|
* <code>string error_message = 2;</code>
|
|
* @return The bytes for errorMessage.
|
|
*/
|
|
com.google.protobuf.ByteString
|
|
getErrorMessageBytes();
|
|
|
|
/**
|
|
* <pre>
|
|
* 回复时间
|
|
* </pre>
|
|
*
|
|
* <code>.google.protobuf.Timestamp timestamp = 3;</code>
|
|
* @return Whether the timestamp field is set.
|
|
*/
|
|
boolean hasTimestamp();
|
|
/**
|
|
* <pre>
|
|
* 回复时间
|
|
* </pre>
|
|
*
|
|
* <code>.google.protobuf.Timestamp timestamp = 3;</code>
|
|
* @return The timestamp.
|
|
*/
|
|
com.google.protobuf.Timestamp getTimestamp();
|
|
/**
|
|
* <pre>
|
|
* 回复时间
|
|
* </pre>
|
|
*
|
|
* <code>.google.protobuf.Timestamp timestamp = 3;</code>
|
|
*/
|
|
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_;
|
|
/**
|
|
* <pre>
|
|
* 是否成功
|
|
* </pre>
|
|
*
|
|
* <code>bool success = 1;</code>
|
|
* @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_;
|
|
/**
|
|
* <pre>
|
|
* 错误信息(成功时为空)
|
|
* </pre>
|
|
*
|
|
* <code>string error_message = 2;</code>
|
|
* @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;
|
|
}
|
|
}
|
|
/**
|
|
* <pre>
|
|
* 错误信息(成功时为空)
|
|
* </pre>
|
|
*
|
|
* <code>string error_message = 2;</code>
|
|
* @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_;
|
|
/**
|
|
* <pre>
|
|
* 回复时间
|
|
* </pre>
|
|
*
|
|
* <code>.google.protobuf.Timestamp timestamp = 3;</code>
|
|
* @return Whether the timestamp field is set.
|
|
*/
|
|
@java.lang.Override
|
|
public boolean hasTimestamp() {
|
|
return timestamp_ != null;
|
|
}
|
|
/**
|
|
* <pre>
|
|
* 回复时间
|
|
* </pre>
|
|
*
|
|
* <code>.google.protobuf.Timestamp timestamp = 3;</code>
|
|
* @return The timestamp.
|
|
*/
|
|
@java.lang.Override
|
|
public com.google.protobuf.Timestamp getTimestamp() {
|
|
return timestamp_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_;
|
|
}
|
|
/**
|
|
* <pre>
|
|
* 回复时间
|
|
* </pre>
|
|
*
|
|
* <code>.google.protobuf.Timestamp timestamp = 3;</code>
|
|
*/
|
|
@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<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_ ;
|
|
/**
|
|
* <pre>
|
|
* 是否成功
|
|
* </pre>
|
|
*
|
|
* <code>bool success = 1;</code>
|
|
* @return The success.
|
|
*/
|
|
@java.lang.Override
|
|
public boolean getSuccess() {
|
|
return success_;
|
|
}
|
|
/**
|
|
* <pre>
|
|
* 是否成功
|
|
* </pre>
|
|
*
|
|
* <code>bool success = 1;</code>
|
|
* @param value The success to set.
|
|
* @return This builder for chaining.
|
|
*/
|
|
public Builder setSuccess(boolean value) {
|
|
|
|
success_ = value;
|
|
onChanged();
|
|
return this;
|
|
}
|
|
/**
|
|
* <pre>
|
|
* 是否成功
|
|
* </pre>
|
|
*
|
|
* <code>bool success = 1;</code>
|
|
* @return This builder for chaining.
|
|
*/
|
|
public Builder clearSuccess() {
|
|
|
|
success_ = false;
|
|
onChanged();
|
|
return this;
|
|
}
|
|
|
|
private java.lang.Object errorMessage_ = "";
|
|
/**
|
|
* <pre>
|
|
* 错误信息(成功时为空)
|
|
* </pre>
|
|
*
|
|
* <code>string error_message = 2;</code>
|
|
* @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;
|
|
}
|
|
}
|
|
/**
|
|
* <pre>
|
|
* 错误信息(成功时为空)
|
|
* </pre>
|
|
*
|
|
* <code>string error_message = 2;</code>
|
|
* @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;
|
|
}
|
|
}
|
|
/**
|
|
* <pre>
|
|
* 错误信息(成功时为空)
|
|
* </pre>
|
|
*
|
|
* <code>string error_message = 2;</code>
|
|
* @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;
|
|
}
|
|
/**
|
|
* <pre>
|
|
* 错误信息(成功时为空)
|
|
* </pre>
|
|
*
|
|
* <code>string error_message = 2;</code>
|
|
* @return This builder for chaining.
|
|
*/
|
|
public Builder clearErrorMessage() {
|
|
|
|
errorMessage_ = getDefaultInstance().getErrorMessage();
|
|
onChanged();
|
|
return this;
|
|
}
|
|
/**
|
|
* <pre>
|
|
* 错误信息(成功时为空)
|
|
* </pre>
|
|
*
|
|
* <code>string error_message = 2;</code>
|
|
* @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_;
|
|
/**
|
|
* <pre>
|
|
* 回复时间
|
|
* </pre>
|
|
*
|
|
* <code>.google.protobuf.Timestamp timestamp = 3;</code>
|
|
* @return Whether the timestamp field is set.
|
|
*/
|
|
public boolean hasTimestamp() {
|
|
return timestampBuilder_ != null || timestamp_ != null;
|
|
}
|
|
/**
|
|
* <pre>
|
|
* 回复时间
|
|
* </pre>
|
|
*
|
|
* <code>.google.protobuf.Timestamp timestamp = 3;</code>
|
|
* @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();
|
|
}
|
|
}
|
|
/**
|
|
* <pre>
|
|
* 回复时间
|
|
* </pre>
|
|
*
|
|
* <code>.google.protobuf.Timestamp timestamp = 3;</code>
|
|
*/
|
|
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;
|
|
}
|
|
/**
|
|
* <pre>
|
|
* 回复时间
|
|
* </pre>
|
|
*
|
|
* <code>.google.protobuf.Timestamp timestamp = 3;</code>
|
|
*/
|
|
public Builder setTimestamp(
|
|
com.google.protobuf.Timestamp.Builder builderForValue) {
|
|
if (timestampBuilder_ == null) {
|
|
timestamp_ = builderForValue.build();
|
|
onChanged();
|
|
} else {
|
|
timestampBuilder_.setMessage(builderForValue.build());
|
|
}
|
|
|
|
return this;
|
|
}
|
|
/**
|
|
* <pre>
|
|
* 回复时间
|
|
* </pre>
|
|
*
|
|
* <code>.google.protobuf.Timestamp timestamp = 3;</code>
|
|
*/
|
|
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;
|
|
}
|
|
/**
|
|
* <pre>
|
|
* 回复时间
|
|
* </pre>
|
|
*
|
|
* <code>.google.protobuf.Timestamp timestamp = 3;</code>
|
|
*/
|
|
public Builder clearTimestamp() {
|
|
if (timestampBuilder_ == null) {
|
|
timestamp_ = null;
|
|
onChanged();
|
|
} else {
|
|
timestamp_ = null;
|
|
timestampBuilder_ = null;
|
|
}
|
|
|
|
return this;
|
|
}
|
|
/**
|
|
* <pre>
|
|
* 回复时间
|
|
* </pre>
|
|
*
|
|
* <code>.google.protobuf.Timestamp timestamp = 3;</code>
|
|
*/
|
|
public com.google.protobuf.Timestamp.Builder getTimestampBuilder() {
|
|
|
|
onChanged();
|
|
return getTimestampFieldBuilder().getBuilder();
|
|
}
|
|
/**
|
|
* <pre>
|
|
* 回复时间
|
|
* </pre>
|
|
*
|
|
* <code>.google.protobuf.Timestamp timestamp = 3;</code>
|
|
*/
|
|
public com.google.protobuf.TimestampOrBuilder getTimestampOrBuilder() {
|
|
if (timestampBuilder_ != null) {
|
|
return timestampBuilder_.getMessageOrBuilder();
|
|
} else {
|
|
return timestamp_ == null ?
|
|
com.google.protobuf.Timestamp.getDefaultInstance() : timestamp_;
|
|
}
|
|
}
|
|
/**
|
|
* <pre>
|
|
* 回复时间
|
|
* </pre>
|
|
*
|
|
* <code>.google.protobuf.Timestamp timestamp = 3;</code>
|
|
*/
|
|
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<Feedback>
|
|
PARSER = new com.google.protobuf.AbstractParser<Feedback>() {
|
|
@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<Feedback> parser() {
|
|
return PARSER;
|
|
}
|
|
|
|
@java.lang.Override
|
|
public com.google.protobuf.Parser<Feedback> 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<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<CommandHeader>
|
|
PARSER = new com.google.protobuf.AbstractParser<CommandHeader>() {
|
|
@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<CommandHeader> parser() {
|
|
return PARSER;
|
|
}
|
|
|
|
@java.lang.Override
|
|
public com.google.protobuf.Parser<CommandHeader> 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)
|
|
}
|