
org.yamcs.protobuf.IssueCommandRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of yamcs-api Show documentation
Show all versions of yamcs-api Show documentation
Used by external clients to communicate with Yamcs
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: yamcs/protobuf/commanding/commands_service.proto
package org.yamcs.protobuf;
/**
* Protobuf type {@code yamcs.protobuf.commanding.IssueCommandRequest}
*/
public final class IssueCommandRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yamcs.protobuf.commanding.IssueCommandRequest)
IssueCommandRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use IssueCommandRequest.newBuilder() to construct.
private IssueCommandRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private IssueCommandRequest() {
instance_ = "";
processor_ = "";
name_ = "";
origin_ = "";
comment_ = "";
stream_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new IssueCommandRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private IssueCommandRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 18: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000010;
origin_ = bs;
break;
}
case 24: {
bitField0_ |= 0x00000020;
sequenceNumber_ = input.readInt32();
break;
}
case 32: {
bitField0_ |= 0x00000040;
dryRun_ = input.readBool();
break;
}
case 42: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000080;
comment_ = bs;
break;
}
case 50: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
instance_ = bs;
break;
}
case 58: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000002;
processor_ = bs;
break;
}
case 66: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000004;
name_ = bs;
break;
}
case 90: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000100;
stream_ = bs;
break;
}
case 96: {
bitField0_ |= 0x00000200;
disableTransmissionConstraints_ = input.readBool();
break;
}
case 104: {
bitField0_ |= 0x00000400;
disableVerifiers_ = input.readBool();
break;
}
case 114: {
if (!((mutable_bitField0_ & 0x00000800) != 0)) {
verifierConfig_ = com.google.protobuf.MapField.newMapField(
VerifierConfigDefaultEntryHolder.defaultEntry);
mutable_bitField0_ |= 0x00000800;
}
com.google.protobuf.MapEntry
verifierConfig__ = input.readMessage(
VerifierConfigDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
verifierConfig_.getMutableMap().put(
verifierConfig__.getKey(), verifierConfig__.getValue());
break;
}
case 122: {
if (!((mutable_bitField0_ & 0x00001000) != 0)) {
extra_ = com.google.protobuf.MapField.newMapField(
ExtraDefaultEntryHolder.defaultEntry);
mutable_bitField0_ |= 0x00001000;
}
com.google.protobuf.MapEntry
extra__ = input.readMessage(
ExtraDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
extra_.getMutableMap().put(
extra__.getKey(), extra__.getValue());
break;
}
case 130: {
com.google.protobuf.Struct.Builder subBuilder = null;
if (((bitField0_ & 0x00000008) != 0)) {
subBuilder = args_.toBuilder();
}
args_ = input.readMessage(com.google.protobuf.Struct.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(args_);
args_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000008;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.CommandsServiceProto.internal_static_yamcs_protobuf_commanding_IssueCommandRequest_descriptor;
}
@SuppressWarnings({"rawtypes"})
@java.lang.Override
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 14:
return internalGetVerifierConfig();
case 15:
return internalGetExtra();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.CommandsServiceProto.internal_static_yamcs_protobuf_commanding_IssueCommandRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.IssueCommandRequest.class, org.yamcs.protobuf.IssueCommandRequest.Builder.class);
}
public interface AssignmentOrBuilder extends
// @@protoc_insertion_point(interface_extends:yamcs.protobuf.commanding.IssueCommandRequest.Assignment)
com.google.protobuf.MessageOrBuilder {
/**
* optional string name = 1;
* @return Whether the name field is set.
*/
boolean hasName();
/**
* optional string name = 1;
* @return The name.
*/
java.lang.String getName();
/**
* optional string name = 1;
* @return The bytes for name.
*/
com.google.protobuf.ByteString
getNameBytes();
/**
* optional string value = 2;
* @return Whether the value field is set.
*/
boolean hasValue();
/**
* optional string value = 2;
* @return The value.
*/
java.lang.String getValue();
/**
* optional string value = 2;
* @return The bytes for value.
*/
com.google.protobuf.ByteString
getValueBytes();
}
/**
* Protobuf type {@code yamcs.protobuf.commanding.IssueCommandRequest.Assignment}
*/
public static final class Assignment extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yamcs.protobuf.commanding.IssueCommandRequest.Assignment)
AssignmentOrBuilder {
private static final long serialVersionUID = 0L;
// Use Assignment.newBuilder() to construct.
private Assignment(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private Assignment() {
name_ = "";
value_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new Assignment();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private Assignment(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
name_ = bs;
break;
}
case 18: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000002;
value_ = bs;
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.CommandsServiceProto.internal_static_yamcs_protobuf_commanding_IssueCommandRequest_Assignment_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.CommandsServiceProto.internal_static_yamcs_protobuf_commanding_IssueCommandRequest_Assignment_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.IssueCommandRequest.Assignment.class, org.yamcs.protobuf.IssueCommandRequest.Assignment.Builder.class);
}
private int bitField0_;
public static final int NAME_FIELD_NUMBER = 1;
private volatile java.lang.Object name_;
/**
* optional string name = 1;
* @return Whether the name field is set.
*/
@java.lang.Override
public boolean hasName() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional string name = 1;
* @return The name.
*/
@java.lang.Override
public java.lang.String getName() {
java.lang.Object ref = name_;
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();
if (bs.isValidUtf8()) {
name_ = s;
}
return s;
}
}
/**
* optional string name = 1;
* @return The bytes for name.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int VALUE_FIELD_NUMBER = 2;
private volatile java.lang.Object value_;
/**
* optional string value = 2;
* @return Whether the value field is set.
*/
@java.lang.Override
public boolean hasValue() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional string value = 2;
* @return The value.
*/
@java.lang.Override
public java.lang.String getValue() {
java.lang.Object ref = value_;
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();
if (bs.isValidUtf8()) {
value_ = s;
}
return s;
}
}
/**
* optional string value = 2;
* @return The bytes for value.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getValueBytes() {
java.lang.Object ref = value_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
value_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
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 (((bitField0_ & 0x00000001) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_);
}
if (((bitField0_ & 0x00000002) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, value_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, value_);
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.yamcs.protobuf.IssueCommandRequest.Assignment)) {
return super.equals(obj);
}
org.yamcs.protobuf.IssueCommandRequest.Assignment other = (org.yamcs.protobuf.IssueCommandRequest.Assignment) obj;
if (hasName() != other.hasName()) return false;
if (hasName()) {
if (!getName()
.equals(other.getName())) return false;
}
if (hasValue() != other.hasValue()) return false;
if (hasValue()) {
if (!getValue()
.equals(other.getValue())) return false;
}
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasName()) {
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
}
if (hasValue()) {
hash = (37 * hash) + VALUE_FIELD_NUMBER;
hash = (53 * hash) + getValue().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.yamcs.protobuf.IssueCommandRequest.Assignment parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.IssueCommandRequest.Assignment parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.yamcs.protobuf.IssueCommandRequest.Assignment parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.IssueCommandRequest.Assignment parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.yamcs.protobuf.IssueCommandRequest.Assignment parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.IssueCommandRequest.Assignment parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.yamcs.protobuf.IssueCommandRequest.Assignment parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.IssueCommandRequest.Assignment 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 org.yamcs.protobuf.IssueCommandRequest.Assignment parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.IssueCommandRequest.Assignment 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 org.yamcs.protobuf.IssueCommandRequest.Assignment parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.IssueCommandRequest.Assignment 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(org.yamcs.protobuf.IssueCommandRequest.Assignment 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 yamcs.protobuf.commanding.IssueCommandRequest.Assignment}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yamcs.protobuf.commanding.IssueCommandRequest.Assignment)
org.yamcs.protobuf.IssueCommandRequest.AssignmentOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.CommandsServiceProto.internal_static_yamcs_protobuf_commanding_IssueCommandRequest_Assignment_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.CommandsServiceProto.internal_static_yamcs_protobuf_commanding_IssueCommandRequest_Assignment_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.IssueCommandRequest.Assignment.class, org.yamcs.protobuf.IssueCommandRequest.Assignment.Builder.class);
}
// Construct using org.yamcs.protobuf.IssueCommandRequest.Assignment.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
}
}
@java.lang.Override
public Builder clear() {
super.clear();
name_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
value_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.yamcs.protobuf.CommandsServiceProto.internal_static_yamcs_protobuf_commanding_IssueCommandRequest_Assignment_descriptor;
}
@java.lang.Override
public org.yamcs.protobuf.IssueCommandRequest.Assignment getDefaultInstanceForType() {
return org.yamcs.protobuf.IssueCommandRequest.Assignment.getDefaultInstance();
}
@java.lang.Override
public org.yamcs.protobuf.IssueCommandRequest.Assignment build() {
org.yamcs.protobuf.IssueCommandRequest.Assignment result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.yamcs.protobuf.IssueCommandRequest.Assignment buildPartial() {
org.yamcs.protobuf.IssueCommandRequest.Assignment result = new org.yamcs.protobuf.IssueCommandRequest.Assignment(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
to_bitField0_ |= 0x00000001;
}
result.name_ = name_;
if (((from_bitField0_ & 0x00000002) != 0)) {
to_bitField0_ |= 0x00000002;
}
result.value_ = value_;
result.bitField0_ = to_bitField0_;
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 org.yamcs.protobuf.IssueCommandRequest.Assignment) {
return mergeFrom((org.yamcs.protobuf.IssueCommandRequest.Assignment)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.yamcs.protobuf.IssueCommandRequest.Assignment other) {
if (other == org.yamcs.protobuf.IssueCommandRequest.Assignment.getDefaultInstance()) return this;
if (other.hasName()) {
bitField0_ |= 0x00000001;
name_ = other.name_;
onChanged();
}
if (other.hasValue()) {
bitField0_ |= 0x00000002;
value_ = other.value_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
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 {
org.yamcs.protobuf.IssueCommandRequest.Assignment parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.yamcs.protobuf.IssueCommandRequest.Assignment) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object name_ = "";
/**
* optional string name = 1;
* @return Whether the name field is set.
*/
public boolean hasName() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional string name = 1;
* @return The name.
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
name_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string name = 1;
* @return The bytes for name.
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string name = 1;
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
name_ = value;
onChanged();
return this;
}
/**
* optional string name = 1;
* @return This builder for chaining.
*/
public Builder clearName() {
bitField0_ = (bitField0_ & ~0x00000001);
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
* optional string name = 1;
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
name_ = value;
onChanged();
return this;
}
private java.lang.Object value_ = "";
/**
* optional string value = 2;
* @return Whether the value field is set.
*/
public boolean hasValue() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional string value = 2;
* @return The value.
*/
public java.lang.String getValue() {
java.lang.Object ref = value_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
value_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string value = 2;
* @return The bytes for value.
*/
public com.google.protobuf.ByteString
getValueBytes() {
java.lang.Object ref = value_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
value_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string value = 2;
* @param value The value to set.
* @return This builder for chaining.
*/
public Builder setValue(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
value_ = value;
onChanged();
return this;
}
/**
* optional string value = 2;
* @return This builder for chaining.
*/
public Builder clearValue() {
bitField0_ = (bitField0_ & ~0x00000002);
value_ = getDefaultInstance().getValue();
onChanged();
return this;
}
/**
* optional string value = 2;
* @param value The bytes for value to set.
* @return This builder for chaining.
*/
public Builder setValueBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
value_ = value;
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:yamcs.protobuf.commanding.IssueCommandRequest.Assignment)
}
// @@protoc_insertion_point(class_scope:yamcs.protobuf.commanding.IssueCommandRequest.Assignment)
private static final org.yamcs.protobuf.IssueCommandRequest.Assignment DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.yamcs.protobuf.IssueCommandRequest.Assignment();
}
public static org.yamcs.protobuf.IssueCommandRequest.Assignment getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public Assignment parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new Assignment(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.yamcs.protobuf.IssueCommandRequest.Assignment getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
private int bitField0_;
public static final int INSTANCE_FIELD_NUMBER = 6;
private volatile java.lang.Object instance_;
/**
*
* Yamcs instance name
*
*
* optional string instance = 6;
* @return Whether the instance field is set.
*/
@java.lang.Override
public boolean hasInstance() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Yamcs instance name
*
*
* optional string instance = 6;
* @return The instance.
*/
@java.lang.Override
public java.lang.String getInstance() {
java.lang.Object ref = instance_;
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();
if (bs.isValidUtf8()) {
instance_ = s;
}
return s;
}
}
/**
*
* Yamcs instance name
*
*
* optional string instance = 6;
* @return The bytes for instance.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getInstanceBytes() {
java.lang.Object ref = instance_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
instance_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int PROCESSOR_FIELD_NUMBER = 7;
private volatile java.lang.Object processor_;
/**
*
* Processor name
*
*
* optional string processor = 7;
* @return Whether the processor field is set.
*/
@java.lang.Override
public boolean hasProcessor() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Processor name
*
*
* optional string processor = 7;
* @return The processor.
*/
@java.lang.Override
public java.lang.String getProcessor() {
java.lang.Object ref = processor_;
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();
if (bs.isValidUtf8()) {
processor_ = s;
}
return s;
}
}
/**
*
* Processor name
*
*
* optional string processor = 7;
* @return The bytes for processor.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getProcessorBytes() {
java.lang.Object ref = processor_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
processor_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int NAME_FIELD_NUMBER = 8;
private volatile java.lang.Object name_;
/**
*
* Command name
*
*
* optional string name = 8;
* @return Whether the name field is set.
*/
@java.lang.Override
public boolean hasName() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* Command name
*
*
* optional string name = 8;
* @return The name.
*/
@java.lang.Override
public java.lang.String getName() {
java.lang.Object ref = name_;
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();
if (bs.isValidUtf8()) {
name_ = s;
}
return s;
}
}
/**
*
* Command name
*
*
* optional string name = 8;
* @return The bytes for name.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ARGS_FIELD_NUMBER = 16;
private com.google.protobuf.Struct args_;
/**
*
* The name/value assignments for this command.
*
*
* optional .google.protobuf.Struct args = 16;
* @return Whether the args field is set.
*/
@java.lang.Override
public boolean hasArgs() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* The name/value assignments for this command.
*
*
* optional .google.protobuf.Struct args = 16;
* @return The args.
*/
@java.lang.Override
public com.google.protobuf.Struct getArgs() {
return args_ == null ? com.google.protobuf.Struct.getDefaultInstance() : args_;
}
/**
*
* The name/value assignments for this command.
*
*
* optional .google.protobuf.Struct args = 16;
*/
@java.lang.Override
public com.google.protobuf.StructOrBuilder getArgsOrBuilder() {
return args_ == null ? com.google.protobuf.Struct.getDefaultInstance() : args_;
}
public static final int ORIGIN_FIELD_NUMBER = 2;
private volatile java.lang.Object origin_;
/**
*
* The origin of the command. Typically a hostname.
*
*
* optional string origin = 2;
* @return Whether the origin field is set.
*/
@java.lang.Override
public boolean hasOrigin() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* The origin of the command. Typically a hostname.
*
*
* optional string origin = 2;
* @return The origin.
*/
@java.lang.Override
public java.lang.String getOrigin() {
java.lang.Object ref = origin_;
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();
if (bs.isValidUtf8()) {
origin_ = s;
}
return s;
}
}
/**
*
* The origin of the command. Typically a hostname.
*
*
* optional string origin = 2;
* @return The bytes for origin.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getOriginBytes() {
java.lang.Object ref = origin_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
origin_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SEQUENCENUMBER_FIELD_NUMBER = 3;
private int sequenceNumber_;
/**
*
* The sequence number as specified by the origin. This gets
* communicated back in command history and command queue entries,
* thereby allowing clients to map local with remote command
* identities.
*
*
* optional int32 sequenceNumber = 3;
* @return Whether the sequenceNumber field is set.
*/
@java.lang.Override
public boolean hasSequenceNumber() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
* The sequence number as specified by the origin. This gets
* communicated back in command history and command queue entries,
* thereby allowing clients to map local with remote command
* identities.
*
*
* optional int32 sequenceNumber = 3;
* @return The sequenceNumber.
*/
@java.lang.Override
public int getSequenceNumber() {
return sequenceNumber_;
}
public static final int DRYRUN_FIELD_NUMBER = 4;
private boolean dryRun_;
/**
*
* Whether a response will be returned without actually issuing
* the command. This is useful when debugging commands.
* Default ``no``
*
*
* optional bool dryRun = 4;
* @return Whether the dryRun field is set.
*/
@java.lang.Override
public boolean hasDryRun() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
*
* Whether a response will be returned without actually issuing
* the command. This is useful when debugging commands.
* Default ``no``
*
*
* optional bool dryRun = 4;
* @return The dryRun.
*/
@java.lang.Override
public boolean getDryRun() {
return dryRun_;
}
public static final int COMMENT_FIELD_NUMBER = 5;
private volatile java.lang.Object comment_;
/**
*
* Comment attached to this command.
*
*
* optional string comment = 5;
* @return Whether the comment field is set.
*/
@java.lang.Override
public boolean hasComment() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
*
* Comment attached to this command.
*
*
* optional string comment = 5;
* @return The comment.
*/
@java.lang.Override
public java.lang.String getComment() {
java.lang.Object ref = comment_;
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();
if (bs.isValidUtf8()) {
comment_ = s;
}
return s;
}
}
/**
*
* Comment attached to this command.
*
*
* optional string comment = 5;
* @return The bytes for comment.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getCommentBytes() {
java.lang.Object ref = comment_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
comment_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int STREAM_FIELD_NUMBER = 11;
private volatile java.lang.Object stream_;
/**
*
* Override the stream on which the command should be sent out.
* Requires elevated privilege.
*
*
* optional string stream = 11;
* @return Whether the stream field is set.
*/
@java.lang.Override
public boolean hasStream() {
return ((bitField0_ & 0x00000100) != 0);
}
/**
*
* Override the stream on which the command should be sent out.
* Requires elevated privilege.
*
*
* optional string stream = 11;
* @return The stream.
*/
@java.lang.Override
public java.lang.String getStream() {
java.lang.Object ref = stream_;
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();
if (bs.isValidUtf8()) {
stream_ = s;
}
return s;
}
}
/**
*
* Override the stream on which the command should be sent out.
* Requires elevated privilege.
*
*
* optional string stream = 11;
* @return The bytes for stream.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getStreamBytes() {
java.lang.Object ref = stream_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
stream_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DISABLETRANSMISSIONCONSTRAINTS_FIELD_NUMBER = 12;
private boolean disableTransmissionConstraints_;
/**
*
* Disable verification of all transmission constrains (if any
* specified in the MDB).
* Requires elevated privilege.
*
*
* optional bool disableTransmissionConstraints = 12;
* @return Whether the disableTransmissionConstraints field is set.
*/
@java.lang.Override
public boolean hasDisableTransmissionConstraints() {
return ((bitField0_ & 0x00000200) != 0);
}
/**
*
* Disable verification of all transmission constrains (if any
* specified in the MDB).
* Requires elevated privilege.
*
*
* optional bool disableTransmissionConstraints = 12;
* @return The disableTransmissionConstraints.
*/
@java.lang.Override
public boolean getDisableTransmissionConstraints() {
return disableTransmissionConstraints_;
}
public static final int DISABLEVERIFIERS_FIELD_NUMBER = 13;
private boolean disableVerifiers_;
/**
*
* Disable all post transmission verifiers (if any specified in the MDB)
* Requires elevated privilege.
*
*
* optional bool disableVerifiers = 13;
* @return Whether the disableVerifiers field is set.
*/
@java.lang.Override
public boolean hasDisableVerifiers() {
return ((bitField0_ & 0x00000400) != 0);
}
/**
*
* Disable all post transmission verifiers (if any specified in the MDB)
* Requires elevated privilege.
*
*
* optional bool disableVerifiers = 13;
* @return The disableVerifiers.
*/
@java.lang.Override
public boolean getDisableVerifiers() {
return disableVerifiers_;
}
public static final int VERIFIERCONFIG_FIELD_NUMBER = 14;
private static final class VerifierConfigDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.String, org.yamcs.protobuf.Commanding.VerifierConfig> defaultEntry =
com.google.protobuf.MapEntry
.newDefaultInstance(
org.yamcs.protobuf.CommandsServiceProto.internal_static_yamcs_protobuf_commanding_IssueCommandRequest_VerifierConfigEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.MESSAGE,
org.yamcs.protobuf.Commanding.VerifierConfig.getDefaultInstance());
}
private com.google.protobuf.MapField<
java.lang.String, org.yamcs.protobuf.Commanding.VerifierConfig> verifierConfig_;
private com.google.protobuf.MapField
internalGetVerifierConfig() {
if (verifierConfig_ == null) {
return com.google.protobuf.MapField.emptyMapField(
VerifierConfigDefaultEntryHolder.defaultEntry);
}
return verifierConfig_;
}
public int getVerifierConfigCount() {
return internalGetVerifierConfig().getMap().size();
}
/**
*
* Override verifier configuration. Keyed by verifier name
* Requires elevated privilege.
*
*
* map<string, .yamcs.protobuf.commanding.VerifierConfig> verifierConfig = 14;
*/
@java.lang.Override
public boolean containsVerifierConfig(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetVerifierConfig().getMap().containsKey(key);
}
/**
* Use {@link #getVerifierConfigMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getVerifierConfig() {
return getVerifierConfigMap();
}
/**
*
* Override verifier configuration. Keyed by verifier name
* Requires elevated privilege.
*
*
* map<string, .yamcs.protobuf.commanding.VerifierConfig> verifierConfig = 14;
*/
@java.lang.Override
public java.util.Map getVerifierConfigMap() {
return internalGetVerifierConfig().getMap();
}
/**
*
* Override verifier configuration. Keyed by verifier name
* Requires elevated privilege.
*
*
* map<string, .yamcs.protobuf.commanding.VerifierConfig> verifierConfig = 14;
*/
@java.lang.Override
public org.yamcs.protobuf.Commanding.VerifierConfig getVerifierConfigOrDefault(
java.lang.String key,
org.yamcs.protobuf.Commanding.VerifierConfig defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetVerifierConfig().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
* Override verifier configuration. Keyed by verifier name
* Requires elevated privilege.
*
*
* map<string, .yamcs.protobuf.commanding.VerifierConfig> verifierConfig = 14;
*/
@java.lang.Override
public org.yamcs.protobuf.Commanding.VerifierConfig getVerifierConfigOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetVerifierConfig().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public static final int EXTRA_FIELD_NUMBER = 15;
private static final class ExtraDefaultEntryHolder {
static final com.google.protobuf.MapEntry<
java.lang.String, org.yamcs.protobuf.Yamcs.Value> defaultEntry =
com.google.protobuf.MapEntry
.newDefaultInstance(
org.yamcs.protobuf.CommandsServiceProto.internal_static_yamcs_protobuf_commanding_IssueCommandRequest_ExtraEntry_descriptor,
com.google.protobuf.WireFormat.FieldType.STRING,
"",
com.google.protobuf.WireFormat.FieldType.MESSAGE,
org.yamcs.protobuf.Yamcs.Value.getDefaultInstance());
}
private com.google.protobuf.MapField<
java.lang.String, org.yamcs.protobuf.Yamcs.Value> extra_;
private com.google.protobuf.MapField
internalGetExtra() {
if (extra_ == null) {
return com.google.protobuf.MapField.emptyMapField(
ExtraDefaultEntryHolder.defaultEntry);
}
return extra_;
}
public int getExtraCount() {
return internalGetExtra().getMap().size();
}
/**
*
* Specify custom options for interpretation by non-core extensions.
* Extensions must register these options against org.yamcs.YamcsServer
*
*
* map<string, .yamcs.protobuf.Value> extra = 15;
*/
@java.lang.Override
public boolean containsExtra(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetExtra().getMap().containsKey(key);
}
/**
* Use {@link #getExtraMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getExtra() {
return getExtraMap();
}
/**
*
* Specify custom options for interpretation by non-core extensions.
* Extensions must register these options against org.yamcs.YamcsServer
*
*
* map<string, .yamcs.protobuf.Value> extra = 15;
*/
@java.lang.Override
public java.util.Map getExtraMap() {
return internalGetExtra().getMap();
}
/**
*
* Specify custom options for interpretation by non-core extensions.
* Extensions must register these options against org.yamcs.YamcsServer
*
*
* map<string, .yamcs.protobuf.Value> extra = 15;
*/
@java.lang.Override
public org.yamcs.protobuf.Yamcs.Value getExtraOrDefault(
java.lang.String key,
org.yamcs.protobuf.Yamcs.Value defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetExtra().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
* Specify custom options for interpretation by non-core extensions.
* Extensions must register these options against org.yamcs.YamcsServer
*
*
* map<string, .yamcs.protobuf.Value> extra = 15;
*/
@java.lang.Override
public org.yamcs.protobuf.Yamcs.Value getExtraOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetExtra().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
for (org.yamcs.protobuf.Yamcs.Value item : getExtraMap().values()) {
if (!item.isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000010) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, origin_);
}
if (((bitField0_ & 0x00000020) != 0)) {
output.writeInt32(3, sequenceNumber_);
}
if (((bitField0_ & 0x00000040) != 0)) {
output.writeBool(4, dryRun_);
}
if (((bitField0_ & 0x00000080) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, comment_);
}
if (((bitField0_ & 0x00000001) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, instance_);
}
if (((bitField0_ & 0x00000002) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, processor_);
}
if (((bitField0_ & 0x00000004) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 8, name_);
}
if (((bitField0_ & 0x00000100) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 11, stream_);
}
if (((bitField0_ & 0x00000200) != 0)) {
output.writeBool(12, disableTransmissionConstraints_);
}
if (((bitField0_ & 0x00000400) != 0)) {
output.writeBool(13, disableVerifiers_);
}
com.google.protobuf.GeneratedMessageV3
.serializeStringMapTo(
output,
internalGetVerifierConfig(),
VerifierConfigDefaultEntryHolder.defaultEntry,
14);
com.google.protobuf.GeneratedMessageV3
.serializeStringMapTo(
output,
internalGetExtra(),
ExtraDefaultEntryHolder.defaultEntry,
15);
if (((bitField0_ & 0x00000008) != 0)) {
output.writeMessage(16, getArgs());
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, origin_);
}
if (((bitField0_ & 0x00000020) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(3, sequenceNumber_);
}
if (((bitField0_ & 0x00000040) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(4, dryRun_);
}
if (((bitField0_ & 0x00000080) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, comment_);
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, instance_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, processor_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, name_);
}
if (((bitField0_ & 0x00000100) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(11, stream_);
}
if (((bitField0_ & 0x00000200) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(12, disableTransmissionConstraints_);
}
if (((bitField0_ & 0x00000400) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(13, disableVerifiers_);
}
for (java.util.Map.Entry entry
: internalGetVerifierConfig().getMap().entrySet()) {
com.google.protobuf.MapEntry
verifierConfig__ = VerifierConfigDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(14, verifierConfig__);
}
for (java.util.Map.Entry entry
: internalGetExtra().getMap().entrySet()) {
com.google.protobuf.MapEntry
extra__ = ExtraDefaultEntryHolder.defaultEntry.newBuilderForType()
.setKey(entry.getKey())
.setValue(entry.getValue())
.build();
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(15, extra__);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(16, getArgs());
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.yamcs.protobuf.IssueCommandRequest)) {
return super.equals(obj);
}
org.yamcs.protobuf.IssueCommandRequest other = (org.yamcs.protobuf.IssueCommandRequest) obj;
if (hasInstance() != other.hasInstance()) return false;
if (hasInstance()) {
if (!getInstance()
.equals(other.getInstance())) return false;
}
if (hasProcessor() != other.hasProcessor()) return false;
if (hasProcessor()) {
if (!getProcessor()
.equals(other.getProcessor())) return false;
}
if (hasName() != other.hasName()) return false;
if (hasName()) {
if (!getName()
.equals(other.getName())) return false;
}
if (hasArgs() != other.hasArgs()) return false;
if (hasArgs()) {
if (!getArgs()
.equals(other.getArgs())) return false;
}
if (hasOrigin() != other.hasOrigin()) return false;
if (hasOrigin()) {
if (!getOrigin()
.equals(other.getOrigin())) return false;
}
if (hasSequenceNumber() != other.hasSequenceNumber()) return false;
if (hasSequenceNumber()) {
if (getSequenceNumber()
!= other.getSequenceNumber()) return false;
}
if (hasDryRun() != other.hasDryRun()) return false;
if (hasDryRun()) {
if (getDryRun()
!= other.getDryRun()) return false;
}
if (hasComment() != other.hasComment()) return false;
if (hasComment()) {
if (!getComment()
.equals(other.getComment())) return false;
}
if (hasStream() != other.hasStream()) return false;
if (hasStream()) {
if (!getStream()
.equals(other.getStream())) return false;
}
if (hasDisableTransmissionConstraints() != other.hasDisableTransmissionConstraints()) return false;
if (hasDisableTransmissionConstraints()) {
if (getDisableTransmissionConstraints()
!= other.getDisableTransmissionConstraints()) return false;
}
if (hasDisableVerifiers() != other.hasDisableVerifiers()) return false;
if (hasDisableVerifiers()) {
if (getDisableVerifiers()
!= other.getDisableVerifiers()) return false;
}
if (!internalGetVerifierConfig().equals(
other.internalGetVerifierConfig())) return false;
if (!internalGetExtra().equals(
other.internalGetExtra())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasInstance()) {
hash = (37 * hash) + INSTANCE_FIELD_NUMBER;
hash = (53 * hash) + getInstance().hashCode();
}
if (hasProcessor()) {
hash = (37 * hash) + PROCESSOR_FIELD_NUMBER;
hash = (53 * hash) + getProcessor().hashCode();
}
if (hasName()) {
hash = (37 * hash) + NAME_FIELD_NUMBER;
hash = (53 * hash) + getName().hashCode();
}
if (hasArgs()) {
hash = (37 * hash) + ARGS_FIELD_NUMBER;
hash = (53 * hash) + getArgs().hashCode();
}
if (hasOrigin()) {
hash = (37 * hash) + ORIGIN_FIELD_NUMBER;
hash = (53 * hash) + getOrigin().hashCode();
}
if (hasSequenceNumber()) {
hash = (37 * hash) + SEQUENCENUMBER_FIELD_NUMBER;
hash = (53 * hash) + getSequenceNumber();
}
if (hasDryRun()) {
hash = (37 * hash) + DRYRUN_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getDryRun());
}
if (hasComment()) {
hash = (37 * hash) + COMMENT_FIELD_NUMBER;
hash = (53 * hash) + getComment().hashCode();
}
if (hasStream()) {
hash = (37 * hash) + STREAM_FIELD_NUMBER;
hash = (53 * hash) + getStream().hashCode();
}
if (hasDisableTransmissionConstraints()) {
hash = (37 * hash) + DISABLETRANSMISSIONCONSTRAINTS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getDisableTransmissionConstraints());
}
if (hasDisableVerifiers()) {
hash = (37 * hash) + DISABLEVERIFIERS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getDisableVerifiers());
}
if (!internalGetVerifierConfig().getMap().isEmpty()) {
hash = (37 * hash) + VERIFIERCONFIG_FIELD_NUMBER;
hash = (53 * hash) + internalGetVerifierConfig().hashCode();
}
if (!internalGetExtra().getMap().isEmpty()) {
hash = (37 * hash) + EXTRA_FIELD_NUMBER;
hash = (53 * hash) + internalGetExtra().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.yamcs.protobuf.IssueCommandRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.IssueCommandRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.yamcs.protobuf.IssueCommandRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.IssueCommandRequest parseFrom(
com.google.protobuf.ByteString data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.yamcs.protobuf.IssueCommandRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.IssueCommandRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.yamcs.protobuf.IssueCommandRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.IssueCommandRequest 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 org.yamcs.protobuf.IssueCommandRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.IssueCommandRequest 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 org.yamcs.protobuf.IssueCommandRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.IssueCommandRequest 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(org.yamcs.protobuf.IssueCommandRequest 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 yamcs.protobuf.commanding.IssueCommandRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yamcs.protobuf.commanding.IssueCommandRequest)
org.yamcs.protobuf.IssueCommandRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.CommandsServiceProto.internal_static_yamcs_protobuf_commanding_IssueCommandRequest_descriptor;
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMapField(
int number) {
switch (number) {
case 14:
return internalGetVerifierConfig();
case 15:
return internalGetExtra();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@SuppressWarnings({"rawtypes"})
protected com.google.protobuf.MapField internalGetMutableMapField(
int number) {
switch (number) {
case 14:
return internalGetMutableVerifierConfig();
case 15:
return internalGetMutableExtra();
default:
throw new RuntimeException(
"Invalid map field number: " + number);
}
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.CommandsServiceProto.internal_static_yamcs_protobuf_commanding_IssueCommandRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.IssueCommandRequest.class, org.yamcs.protobuf.IssueCommandRequest.Builder.class);
}
// Construct using org.yamcs.protobuf.IssueCommandRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getArgsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
instance_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
processor_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
name_ = "";
bitField0_ = (bitField0_ & ~0x00000004);
if (argsBuilder_ == null) {
args_ = null;
} else {
argsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000008);
origin_ = "";
bitField0_ = (bitField0_ & ~0x00000010);
sequenceNumber_ = 0;
bitField0_ = (bitField0_ & ~0x00000020);
dryRun_ = false;
bitField0_ = (bitField0_ & ~0x00000040);
comment_ = "";
bitField0_ = (bitField0_ & ~0x00000080);
stream_ = "";
bitField0_ = (bitField0_ & ~0x00000100);
disableTransmissionConstraints_ = false;
bitField0_ = (bitField0_ & ~0x00000200);
disableVerifiers_ = false;
bitField0_ = (bitField0_ & ~0x00000400);
internalGetMutableVerifierConfig().clear();
internalGetMutableExtra().clear();
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.yamcs.protobuf.CommandsServiceProto.internal_static_yamcs_protobuf_commanding_IssueCommandRequest_descriptor;
}
@java.lang.Override
public org.yamcs.protobuf.IssueCommandRequest getDefaultInstanceForType() {
return org.yamcs.protobuf.IssueCommandRequest.getDefaultInstance();
}
@java.lang.Override
public org.yamcs.protobuf.IssueCommandRequest build() {
org.yamcs.protobuf.IssueCommandRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.yamcs.protobuf.IssueCommandRequest buildPartial() {
org.yamcs.protobuf.IssueCommandRequest result = new org.yamcs.protobuf.IssueCommandRequest(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
to_bitField0_ |= 0x00000001;
}
result.instance_ = instance_;
if (((from_bitField0_ & 0x00000002) != 0)) {
to_bitField0_ |= 0x00000002;
}
result.processor_ = processor_;
if (((from_bitField0_ & 0x00000004) != 0)) {
to_bitField0_ |= 0x00000004;
}
result.name_ = name_;
if (((from_bitField0_ & 0x00000008) != 0)) {
if (argsBuilder_ == null) {
result.args_ = args_;
} else {
result.args_ = argsBuilder_.build();
}
to_bitField0_ |= 0x00000008;
}
if (((from_bitField0_ & 0x00000010) != 0)) {
to_bitField0_ |= 0x00000010;
}
result.origin_ = origin_;
if (((from_bitField0_ & 0x00000020) != 0)) {
result.sequenceNumber_ = sequenceNumber_;
to_bitField0_ |= 0x00000020;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.dryRun_ = dryRun_;
to_bitField0_ |= 0x00000040;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
to_bitField0_ |= 0x00000080;
}
result.comment_ = comment_;
if (((from_bitField0_ & 0x00000100) != 0)) {
to_bitField0_ |= 0x00000100;
}
result.stream_ = stream_;
if (((from_bitField0_ & 0x00000200) != 0)) {
result.disableTransmissionConstraints_ = disableTransmissionConstraints_;
to_bitField0_ |= 0x00000200;
}
if (((from_bitField0_ & 0x00000400) != 0)) {
result.disableVerifiers_ = disableVerifiers_;
to_bitField0_ |= 0x00000400;
}
result.verifierConfig_ = internalGetVerifierConfig();
result.verifierConfig_.makeImmutable();
result.extra_ = internalGetExtra();
result.extra_.makeImmutable();
result.bitField0_ = to_bitField0_;
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 org.yamcs.protobuf.IssueCommandRequest) {
return mergeFrom((org.yamcs.protobuf.IssueCommandRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.yamcs.protobuf.IssueCommandRequest other) {
if (other == org.yamcs.protobuf.IssueCommandRequest.getDefaultInstance()) return this;
if (other.hasInstance()) {
bitField0_ |= 0x00000001;
instance_ = other.instance_;
onChanged();
}
if (other.hasProcessor()) {
bitField0_ |= 0x00000002;
processor_ = other.processor_;
onChanged();
}
if (other.hasName()) {
bitField0_ |= 0x00000004;
name_ = other.name_;
onChanged();
}
if (other.hasArgs()) {
mergeArgs(other.getArgs());
}
if (other.hasOrigin()) {
bitField0_ |= 0x00000010;
origin_ = other.origin_;
onChanged();
}
if (other.hasSequenceNumber()) {
setSequenceNumber(other.getSequenceNumber());
}
if (other.hasDryRun()) {
setDryRun(other.getDryRun());
}
if (other.hasComment()) {
bitField0_ |= 0x00000080;
comment_ = other.comment_;
onChanged();
}
if (other.hasStream()) {
bitField0_ |= 0x00000100;
stream_ = other.stream_;
onChanged();
}
if (other.hasDisableTransmissionConstraints()) {
setDisableTransmissionConstraints(other.getDisableTransmissionConstraints());
}
if (other.hasDisableVerifiers()) {
setDisableVerifiers(other.getDisableVerifiers());
}
internalGetMutableVerifierConfig().mergeFrom(
other.internalGetVerifierConfig());
internalGetMutableExtra().mergeFrom(
other.internalGetExtra());
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
for (org.yamcs.protobuf.Yamcs.Value item : getExtraMap().values()) {
if (!item.isInitialized()) {
return false;
}
}
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.yamcs.protobuf.IssueCommandRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.yamcs.protobuf.IssueCommandRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object instance_ = "";
/**
*
* Yamcs instance name
*
*
* optional string instance = 6;
* @return Whether the instance field is set.
*/
public boolean hasInstance() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
* Yamcs instance name
*
*
* optional string instance = 6;
* @return The instance.
*/
public java.lang.String getInstance() {
java.lang.Object ref = instance_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
instance_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Yamcs instance name
*
*
* optional string instance = 6;
* @return The bytes for instance.
*/
public com.google.protobuf.ByteString
getInstanceBytes() {
java.lang.Object ref = instance_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
instance_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Yamcs instance name
*
*
* optional string instance = 6;
* @param value The instance to set.
* @return This builder for chaining.
*/
public Builder setInstance(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
instance_ = value;
onChanged();
return this;
}
/**
*
* Yamcs instance name
*
*
* optional string instance = 6;
* @return This builder for chaining.
*/
public Builder clearInstance() {
bitField0_ = (bitField0_ & ~0x00000001);
instance_ = getDefaultInstance().getInstance();
onChanged();
return this;
}
/**
*
* Yamcs instance name
*
*
* optional string instance = 6;
* @param value The bytes for instance to set.
* @return This builder for chaining.
*/
public Builder setInstanceBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
instance_ = value;
onChanged();
return this;
}
private java.lang.Object processor_ = "";
/**
*
* Processor name
*
*
* optional string processor = 7;
* @return Whether the processor field is set.
*/
public boolean hasProcessor() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Processor name
*
*
* optional string processor = 7;
* @return The processor.
*/
public java.lang.String getProcessor() {
java.lang.Object ref = processor_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
processor_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Processor name
*
*
* optional string processor = 7;
* @return The bytes for processor.
*/
public com.google.protobuf.ByteString
getProcessorBytes() {
java.lang.Object ref = processor_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
processor_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Processor name
*
*
* optional string processor = 7;
* @param value The processor to set.
* @return This builder for chaining.
*/
public Builder setProcessor(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
processor_ = value;
onChanged();
return this;
}
/**
*
* Processor name
*
*
* optional string processor = 7;
* @return This builder for chaining.
*/
public Builder clearProcessor() {
bitField0_ = (bitField0_ & ~0x00000002);
processor_ = getDefaultInstance().getProcessor();
onChanged();
return this;
}
/**
*
* Processor name
*
*
* optional string processor = 7;
* @param value The bytes for processor to set.
* @return This builder for chaining.
*/
public Builder setProcessorBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
processor_ = value;
onChanged();
return this;
}
private java.lang.Object name_ = "";
/**
*
* Command name
*
*
* optional string name = 8;
* @return Whether the name field is set.
*/
public boolean hasName() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* Command name
*
*
* optional string name = 8;
* @return The name.
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
name_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Command name
*
*
* optional string name = 8;
* @return The bytes for name.
*/
public com.google.protobuf.ByteString
getNameBytes() {
java.lang.Object ref = name_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
name_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Command name
*
*
* optional string name = 8;
* @param value The name to set.
* @return This builder for chaining.
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
name_ = value;
onChanged();
return this;
}
/**
*
* Command name
*
*
* optional string name = 8;
* @return This builder for chaining.
*/
public Builder clearName() {
bitField0_ = (bitField0_ & ~0x00000004);
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
*
* Command name
*
*
* optional string name = 8;
* @param value The bytes for name to set.
* @return This builder for chaining.
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
name_ = value;
onChanged();
return this;
}
private com.google.protobuf.Struct args_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder> argsBuilder_;
/**
*
* The name/value assignments for this command.
*
*
* optional .google.protobuf.Struct args = 16;
* @return Whether the args field is set.
*/
public boolean hasArgs() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* The name/value assignments for this command.
*
*
* optional .google.protobuf.Struct args = 16;
* @return The args.
*/
public com.google.protobuf.Struct getArgs() {
if (argsBuilder_ == null) {
return args_ == null ? com.google.protobuf.Struct.getDefaultInstance() : args_;
} else {
return argsBuilder_.getMessage();
}
}
/**
*
* The name/value assignments for this command.
*
*
* optional .google.protobuf.Struct args = 16;
*/
public Builder setArgs(com.google.protobuf.Struct value) {
if (argsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
args_ = value;
onChanged();
} else {
argsBuilder_.setMessage(value);
}
bitField0_ |= 0x00000008;
return this;
}
/**
*
* The name/value assignments for this command.
*
*
* optional .google.protobuf.Struct args = 16;
*/
public Builder setArgs(
com.google.protobuf.Struct.Builder builderForValue) {
if (argsBuilder_ == null) {
args_ = builderForValue.build();
onChanged();
} else {
argsBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000008;
return this;
}
/**
*
* The name/value assignments for this command.
*
*
* optional .google.protobuf.Struct args = 16;
*/
public Builder mergeArgs(com.google.protobuf.Struct value) {
if (argsBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0) &&
args_ != null &&
args_ != com.google.protobuf.Struct.getDefaultInstance()) {
args_ =
com.google.protobuf.Struct.newBuilder(args_).mergeFrom(value).buildPartial();
} else {
args_ = value;
}
onChanged();
} else {
argsBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000008;
return this;
}
/**
*
* The name/value assignments for this command.
*
*
* optional .google.protobuf.Struct args = 16;
*/
public Builder clearArgs() {
if (argsBuilder_ == null) {
args_ = null;
onChanged();
} else {
argsBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
/**
*
* The name/value assignments for this command.
*
*
* optional .google.protobuf.Struct args = 16;
*/
public com.google.protobuf.Struct.Builder getArgsBuilder() {
bitField0_ |= 0x00000008;
onChanged();
return getArgsFieldBuilder().getBuilder();
}
/**
*
* The name/value assignments for this command.
*
*
* optional .google.protobuf.Struct args = 16;
*/
public com.google.protobuf.StructOrBuilder getArgsOrBuilder() {
if (argsBuilder_ != null) {
return argsBuilder_.getMessageOrBuilder();
} else {
return args_ == null ?
com.google.protobuf.Struct.getDefaultInstance() : args_;
}
}
/**
*
* The name/value assignments for this command.
*
*
* optional .google.protobuf.Struct args = 16;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>
getArgsFieldBuilder() {
if (argsBuilder_ == null) {
argsBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Struct, com.google.protobuf.Struct.Builder, com.google.protobuf.StructOrBuilder>(
getArgs(),
getParentForChildren(),
isClean());
args_ = null;
}
return argsBuilder_;
}
private java.lang.Object origin_ = "";
/**
*
* The origin of the command. Typically a hostname.
*
*
* optional string origin = 2;
* @return Whether the origin field is set.
*/
public boolean hasOrigin() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* The origin of the command. Typically a hostname.
*
*
* optional string origin = 2;
* @return The origin.
*/
public java.lang.String getOrigin() {
java.lang.Object ref = origin_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
origin_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* The origin of the command. Typically a hostname.
*
*
* optional string origin = 2;
* @return The bytes for origin.
*/
public com.google.protobuf.ByteString
getOriginBytes() {
java.lang.Object ref = origin_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
origin_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* The origin of the command. Typically a hostname.
*
*
* optional string origin = 2;
* @param value The origin to set.
* @return This builder for chaining.
*/
public Builder setOrigin(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000010;
origin_ = value;
onChanged();
return this;
}
/**
*
* The origin of the command. Typically a hostname.
*
*
* optional string origin = 2;
* @return This builder for chaining.
*/
public Builder clearOrigin() {
bitField0_ = (bitField0_ & ~0x00000010);
origin_ = getDefaultInstance().getOrigin();
onChanged();
return this;
}
/**
*
* The origin of the command. Typically a hostname.
*
*
* optional string origin = 2;
* @param value The bytes for origin to set.
* @return This builder for chaining.
*/
public Builder setOriginBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000010;
origin_ = value;
onChanged();
return this;
}
private int sequenceNumber_ ;
/**
*
* The sequence number as specified by the origin. This gets
* communicated back in command history and command queue entries,
* thereby allowing clients to map local with remote command
* identities.
*
*
* optional int32 sequenceNumber = 3;
* @return Whether the sequenceNumber field is set.
*/
@java.lang.Override
public boolean hasSequenceNumber() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
*
* The sequence number as specified by the origin. This gets
* communicated back in command history and command queue entries,
* thereby allowing clients to map local with remote command
* identities.
*
*
* optional int32 sequenceNumber = 3;
* @return The sequenceNumber.
*/
@java.lang.Override
public int getSequenceNumber() {
return sequenceNumber_;
}
/**
*
* The sequence number as specified by the origin. This gets
* communicated back in command history and command queue entries,
* thereby allowing clients to map local with remote command
* identities.
*
*
* optional int32 sequenceNumber = 3;
* @param value The sequenceNumber to set.
* @return This builder for chaining.
*/
public Builder setSequenceNumber(int value) {
bitField0_ |= 0x00000020;
sequenceNumber_ = value;
onChanged();
return this;
}
/**
*
* The sequence number as specified by the origin. This gets
* communicated back in command history and command queue entries,
* thereby allowing clients to map local with remote command
* identities.
*
*
* optional int32 sequenceNumber = 3;
* @return This builder for chaining.
*/
public Builder clearSequenceNumber() {
bitField0_ = (bitField0_ & ~0x00000020);
sequenceNumber_ = 0;
onChanged();
return this;
}
private boolean dryRun_ ;
/**
*
* Whether a response will be returned without actually issuing
* the command. This is useful when debugging commands.
* Default ``no``
*
*
* optional bool dryRun = 4;
* @return Whether the dryRun field is set.
*/
@java.lang.Override
public boolean hasDryRun() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
*
* Whether a response will be returned without actually issuing
* the command. This is useful when debugging commands.
* Default ``no``
*
*
* optional bool dryRun = 4;
* @return The dryRun.
*/
@java.lang.Override
public boolean getDryRun() {
return dryRun_;
}
/**
*
* Whether a response will be returned without actually issuing
* the command. This is useful when debugging commands.
* Default ``no``
*
*
* optional bool dryRun = 4;
* @param value The dryRun to set.
* @return This builder for chaining.
*/
public Builder setDryRun(boolean value) {
bitField0_ |= 0x00000040;
dryRun_ = value;
onChanged();
return this;
}
/**
*
* Whether a response will be returned without actually issuing
* the command. This is useful when debugging commands.
* Default ``no``
*
*
* optional bool dryRun = 4;
* @return This builder for chaining.
*/
public Builder clearDryRun() {
bitField0_ = (bitField0_ & ~0x00000040);
dryRun_ = false;
onChanged();
return this;
}
private java.lang.Object comment_ = "";
/**
*
* Comment attached to this command.
*
*
* optional string comment = 5;
* @return Whether the comment field is set.
*/
public boolean hasComment() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
*
* Comment attached to this command.
*
*
* optional string comment = 5;
* @return The comment.
*/
public java.lang.String getComment() {
java.lang.Object ref = comment_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
comment_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Comment attached to this command.
*
*
* optional string comment = 5;
* @return The bytes for comment.
*/
public com.google.protobuf.ByteString
getCommentBytes() {
java.lang.Object ref = comment_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
comment_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Comment attached to this command.
*
*
* optional string comment = 5;
* @param value The comment to set.
* @return This builder for chaining.
*/
public Builder setComment(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000080;
comment_ = value;
onChanged();
return this;
}
/**
*
* Comment attached to this command.
*
*
* optional string comment = 5;
* @return This builder for chaining.
*/
public Builder clearComment() {
bitField0_ = (bitField0_ & ~0x00000080);
comment_ = getDefaultInstance().getComment();
onChanged();
return this;
}
/**
*
* Comment attached to this command.
*
*
* optional string comment = 5;
* @param value The bytes for comment to set.
* @return This builder for chaining.
*/
public Builder setCommentBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000080;
comment_ = value;
onChanged();
return this;
}
private java.lang.Object stream_ = "";
/**
*
* Override the stream on which the command should be sent out.
* Requires elevated privilege.
*
*
* optional string stream = 11;
* @return Whether the stream field is set.
*/
public boolean hasStream() {
return ((bitField0_ & 0x00000100) != 0);
}
/**
*
* Override the stream on which the command should be sent out.
* Requires elevated privilege.
*
*
* optional string stream = 11;
* @return The stream.
*/
public java.lang.String getStream() {
java.lang.Object ref = stream_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
stream_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Override the stream on which the command should be sent out.
* Requires elevated privilege.
*
*
* optional string stream = 11;
* @return The bytes for stream.
*/
public com.google.protobuf.ByteString
getStreamBytes() {
java.lang.Object ref = stream_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
stream_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Override the stream on which the command should be sent out.
* Requires elevated privilege.
*
*
* optional string stream = 11;
* @param value The stream to set.
* @return This builder for chaining.
*/
public Builder setStream(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000100;
stream_ = value;
onChanged();
return this;
}
/**
*
* Override the stream on which the command should be sent out.
* Requires elevated privilege.
*
*
* optional string stream = 11;
* @return This builder for chaining.
*/
public Builder clearStream() {
bitField0_ = (bitField0_ & ~0x00000100);
stream_ = getDefaultInstance().getStream();
onChanged();
return this;
}
/**
*
* Override the stream on which the command should be sent out.
* Requires elevated privilege.
*
*
* optional string stream = 11;
* @param value The bytes for stream to set.
* @return This builder for chaining.
*/
public Builder setStreamBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000100;
stream_ = value;
onChanged();
return this;
}
private boolean disableTransmissionConstraints_ ;
/**
*
* Disable verification of all transmission constrains (if any
* specified in the MDB).
* Requires elevated privilege.
*
*
* optional bool disableTransmissionConstraints = 12;
* @return Whether the disableTransmissionConstraints field is set.
*/
@java.lang.Override
public boolean hasDisableTransmissionConstraints() {
return ((bitField0_ & 0x00000200) != 0);
}
/**
*
* Disable verification of all transmission constrains (if any
* specified in the MDB).
* Requires elevated privilege.
*
*
* optional bool disableTransmissionConstraints = 12;
* @return The disableTransmissionConstraints.
*/
@java.lang.Override
public boolean getDisableTransmissionConstraints() {
return disableTransmissionConstraints_;
}
/**
*
* Disable verification of all transmission constrains (if any
* specified in the MDB).
* Requires elevated privilege.
*
*
* optional bool disableTransmissionConstraints = 12;
* @param value The disableTransmissionConstraints to set.
* @return This builder for chaining.
*/
public Builder setDisableTransmissionConstraints(boolean value) {
bitField0_ |= 0x00000200;
disableTransmissionConstraints_ = value;
onChanged();
return this;
}
/**
*
* Disable verification of all transmission constrains (if any
* specified in the MDB).
* Requires elevated privilege.
*
*
* optional bool disableTransmissionConstraints = 12;
* @return This builder for chaining.
*/
public Builder clearDisableTransmissionConstraints() {
bitField0_ = (bitField0_ & ~0x00000200);
disableTransmissionConstraints_ = false;
onChanged();
return this;
}
private boolean disableVerifiers_ ;
/**
*
* Disable all post transmission verifiers (if any specified in the MDB)
* Requires elevated privilege.
*
*
* optional bool disableVerifiers = 13;
* @return Whether the disableVerifiers field is set.
*/
@java.lang.Override
public boolean hasDisableVerifiers() {
return ((bitField0_ & 0x00000400) != 0);
}
/**
*
* Disable all post transmission verifiers (if any specified in the MDB)
* Requires elevated privilege.
*
*
* optional bool disableVerifiers = 13;
* @return The disableVerifiers.
*/
@java.lang.Override
public boolean getDisableVerifiers() {
return disableVerifiers_;
}
/**
*
* Disable all post transmission verifiers (if any specified in the MDB)
* Requires elevated privilege.
*
*
* optional bool disableVerifiers = 13;
* @param value The disableVerifiers to set.
* @return This builder for chaining.
*/
public Builder setDisableVerifiers(boolean value) {
bitField0_ |= 0x00000400;
disableVerifiers_ = value;
onChanged();
return this;
}
/**
*
* Disable all post transmission verifiers (if any specified in the MDB)
* Requires elevated privilege.
*
*
* optional bool disableVerifiers = 13;
* @return This builder for chaining.
*/
public Builder clearDisableVerifiers() {
bitField0_ = (bitField0_ & ~0x00000400);
disableVerifiers_ = false;
onChanged();
return this;
}
private com.google.protobuf.MapField<
java.lang.String, org.yamcs.protobuf.Commanding.VerifierConfig> verifierConfig_;
private com.google.protobuf.MapField
internalGetVerifierConfig() {
if (verifierConfig_ == null) {
return com.google.protobuf.MapField.emptyMapField(
VerifierConfigDefaultEntryHolder.defaultEntry);
}
return verifierConfig_;
}
private com.google.protobuf.MapField
internalGetMutableVerifierConfig() {
onChanged();;
if (verifierConfig_ == null) {
verifierConfig_ = com.google.protobuf.MapField.newMapField(
VerifierConfigDefaultEntryHolder.defaultEntry);
}
if (!verifierConfig_.isMutable()) {
verifierConfig_ = verifierConfig_.copy();
}
return verifierConfig_;
}
public int getVerifierConfigCount() {
return internalGetVerifierConfig().getMap().size();
}
/**
*
* Override verifier configuration. Keyed by verifier name
* Requires elevated privilege.
*
*
* map<string, .yamcs.protobuf.commanding.VerifierConfig> verifierConfig = 14;
*/
@java.lang.Override
public boolean containsVerifierConfig(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetVerifierConfig().getMap().containsKey(key);
}
/**
* Use {@link #getVerifierConfigMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getVerifierConfig() {
return getVerifierConfigMap();
}
/**
*
* Override verifier configuration. Keyed by verifier name
* Requires elevated privilege.
*
*
* map<string, .yamcs.protobuf.commanding.VerifierConfig> verifierConfig = 14;
*/
@java.lang.Override
public java.util.Map getVerifierConfigMap() {
return internalGetVerifierConfig().getMap();
}
/**
*
* Override verifier configuration. Keyed by verifier name
* Requires elevated privilege.
*
*
* map<string, .yamcs.protobuf.commanding.VerifierConfig> verifierConfig = 14;
*/
@java.lang.Override
public org.yamcs.protobuf.Commanding.VerifierConfig getVerifierConfigOrDefault(
java.lang.String key,
org.yamcs.protobuf.Commanding.VerifierConfig defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetVerifierConfig().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
* Override verifier configuration. Keyed by verifier name
* Requires elevated privilege.
*
*
* map<string, .yamcs.protobuf.commanding.VerifierConfig> verifierConfig = 14;
*/
@java.lang.Override
public org.yamcs.protobuf.Commanding.VerifierConfig getVerifierConfigOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetVerifierConfig().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearVerifierConfig() {
internalGetMutableVerifierConfig().getMutableMap()
.clear();
return this;
}
/**
*
* Override verifier configuration. Keyed by verifier name
* Requires elevated privilege.
*
*
* map<string, .yamcs.protobuf.commanding.VerifierConfig> verifierConfig = 14;
*/
public Builder removeVerifierConfig(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
internalGetMutableVerifierConfig().getMutableMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map
getMutableVerifierConfig() {
return internalGetMutableVerifierConfig().getMutableMap();
}
/**
*
* Override verifier configuration. Keyed by verifier name
* Requires elevated privilege.
*
*
* map<string, .yamcs.protobuf.commanding.VerifierConfig> verifierConfig = 14;
*/
public Builder putVerifierConfig(
java.lang.String key,
org.yamcs.protobuf.Commanding.VerifierConfig value) {
if (key == null) { throw new NullPointerException("map key"); }
if (value == null) {
throw new NullPointerException("map value");
}
internalGetMutableVerifierConfig().getMutableMap()
.put(key, value);
return this;
}
/**
*
* Override verifier configuration. Keyed by verifier name
* Requires elevated privilege.
*
*
* map<string, .yamcs.protobuf.commanding.VerifierConfig> verifierConfig = 14;
*/
public Builder putAllVerifierConfig(
java.util.Map values) {
internalGetMutableVerifierConfig().getMutableMap()
.putAll(values);
return this;
}
private com.google.protobuf.MapField<
java.lang.String, org.yamcs.protobuf.Yamcs.Value> extra_;
private com.google.protobuf.MapField
internalGetExtra() {
if (extra_ == null) {
return com.google.protobuf.MapField.emptyMapField(
ExtraDefaultEntryHolder.defaultEntry);
}
return extra_;
}
private com.google.protobuf.MapField
internalGetMutableExtra() {
onChanged();;
if (extra_ == null) {
extra_ = com.google.protobuf.MapField.newMapField(
ExtraDefaultEntryHolder.defaultEntry);
}
if (!extra_.isMutable()) {
extra_ = extra_.copy();
}
return extra_;
}
public int getExtraCount() {
return internalGetExtra().getMap().size();
}
/**
*
* Specify custom options for interpretation by non-core extensions.
* Extensions must register these options against org.yamcs.YamcsServer
*
*
* map<string, .yamcs.protobuf.Value> extra = 15;
*/
@java.lang.Override
public boolean containsExtra(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
return internalGetExtra().getMap().containsKey(key);
}
/**
* Use {@link #getExtraMap()} instead.
*/
@java.lang.Override
@java.lang.Deprecated
public java.util.Map getExtra() {
return getExtraMap();
}
/**
*
* Specify custom options for interpretation by non-core extensions.
* Extensions must register these options against org.yamcs.YamcsServer
*
*
* map<string, .yamcs.protobuf.Value> extra = 15;
*/
@java.lang.Override
public java.util.Map getExtraMap() {
return internalGetExtra().getMap();
}
/**
*
* Specify custom options for interpretation by non-core extensions.
* Extensions must register these options against org.yamcs.YamcsServer
*
*
* map<string, .yamcs.protobuf.Value> extra = 15;
*/
@java.lang.Override
public org.yamcs.protobuf.Yamcs.Value getExtraOrDefault(
java.lang.String key,
org.yamcs.protobuf.Yamcs.Value defaultValue) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetExtra().getMap();
return map.containsKey(key) ? map.get(key) : defaultValue;
}
/**
*
* Specify custom options for interpretation by non-core extensions.
* Extensions must register these options against org.yamcs.YamcsServer
*
*
* map<string, .yamcs.protobuf.Value> extra = 15;
*/
@java.lang.Override
public org.yamcs.protobuf.Yamcs.Value getExtraOrThrow(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
java.util.Map map =
internalGetExtra().getMap();
if (!map.containsKey(key)) {
throw new java.lang.IllegalArgumentException();
}
return map.get(key);
}
public Builder clearExtra() {
internalGetMutableExtra().getMutableMap()
.clear();
return this;
}
/**
*
* Specify custom options for interpretation by non-core extensions.
* Extensions must register these options against org.yamcs.YamcsServer
*
*
* map<string, .yamcs.protobuf.Value> extra = 15;
*/
public Builder removeExtra(
java.lang.String key) {
if (key == null) { throw new NullPointerException("map key"); }
internalGetMutableExtra().getMutableMap()
.remove(key);
return this;
}
/**
* Use alternate mutation accessors instead.
*/
@java.lang.Deprecated
public java.util.Map
getMutableExtra() {
return internalGetMutableExtra().getMutableMap();
}
/**
*
* Specify custom options for interpretation by non-core extensions.
* Extensions must register these options against org.yamcs.YamcsServer
*
*
* map<string, .yamcs.protobuf.Value> extra = 15;
*/
public Builder putExtra(
java.lang.String key,
org.yamcs.protobuf.Yamcs.Value value) {
if (key == null) { throw new NullPointerException("map key"); }
if (value == null) {
throw new NullPointerException("map value");
}
internalGetMutableExtra().getMutableMap()
.put(key, value);
return this;
}
/**
*
* Specify custom options for interpretation by non-core extensions.
* Extensions must register these options against org.yamcs.YamcsServer
*
*
* map<string, .yamcs.protobuf.Value> extra = 15;
*/
public Builder putAllExtra(
java.util.Map values) {
internalGetMutableExtra().getMutableMap()
.putAll(values);
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:yamcs.protobuf.commanding.IssueCommandRequest)
}
// @@protoc_insertion_point(class_scope:yamcs.protobuf.commanding.IssueCommandRequest)
private static final org.yamcs.protobuf.IssueCommandRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.yamcs.protobuf.IssueCommandRequest();
}
public static org.yamcs.protobuf.IssueCommandRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public IssueCommandRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new IssueCommandRequest(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.yamcs.protobuf.IssueCommandRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy