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/processing/processing.proto
package org.yamcs.protobuf;
/**
* Protobuf type {@code yamcs.protobuf.processing.IssueCommandRequest}
*/
public final class IssueCommandRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yamcs.protobuf.processing.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_ = "";
assignment_ = java.util.Collections.emptyList();
origin_ = "";
comment_ = "";
attribute_ = java.util.Collections.emptyList();
}
@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 10: {
if (!((mutable_bitField0_ & 0x00000008) != 0)) {
assignment_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000008;
}
assignment_.add(
input.readMessage(org.yamcs.protobuf.IssueCommandRequest.Assignment.PARSER, extensionRegistry));
break;
}
case 18: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000008;
origin_ = bs;
break;
}
case 24: {
bitField0_ |= 0x00000010;
sequenceNumber_ = input.readInt32();
break;
}
case 32: {
bitField0_ |= 0x00000020;
dryRun_ = input.readBool();
break;
}
case 42: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000040;
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 74: {
if (!((mutable_bitField0_ & 0x00000100) != 0)) {
attribute_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000100;
}
attribute_.add(
input.readMessage(org.yamcs.protobuf.Commanding.CommandHistoryAttribute.PARSER, extensionRegistry));
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 {
if (((mutable_bitField0_ & 0x00000008) != 0)) {
assignment_ = java.util.Collections.unmodifiableList(assignment_);
}
if (((mutable_bitField0_ & 0x00000100) != 0)) {
attribute_ = java.util.Collections.unmodifiableList(attribute_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.ProcessingProto.internal_static_yamcs_protobuf_processing_IssueCommandRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.ProcessingProto.internal_static_yamcs_protobuf_processing_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.processing.IssueCommandRequest.Assignment)
com.google.protobuf.MessageOrBuilder {
/**
* optional string name = 1;
*/
boolean hasName();
/**
* optional string name = 1;
*/
java.lang.String getName();
/**
* optional string name = 1;
*/
com.google.protobuf.ByteString
getNameBytes();
/**
* optional string value = 2;
*/
boolean hasValue();
/**
* optional string value = 2;
*/
java.lang.String getValue();
/**
* optional string value = 2;
*/
com.google.protobuf.ByteString
getValueBytes();
}
/**
* Protobuf type {@code yamcs.protobuf.processing.IssueCommandRequest.Assignment}
*/
public static final class Assignment extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yamcs.protobuf.processing.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
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.ProcessingProto.internal_static_yamcs_protobuf_processing_IssueCommandRequest_Assignment_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.ProcessingProto.internal_static_yamcs_protobuf_processing_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;
*/
public boolean hasName() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional string name = 1;
*/
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;
*/
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;
*/
public boolean hasValue() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional string value = 2;
*/
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;
*/
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.processing.IssueCommandRequest.Assignment}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yamcs.protobuf.processing.IssueCommandRequest.Assignment)
org.yamcs.protobuf.IssueCommandRequest.AssignmentOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.ProcessingProto.internal_static_yamcs_protobuf_processing_IssueCommandRequest_Assignment_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.ProcessingProto.internal_static_yamcs_protobuf_processing_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.ProcessingProto.internal_static_yamcs_protobuf_processing_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;
*/
public boolean hasName() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional string name = 1;
*/
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;
*/
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;
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
name_ = value;
onChanged();
return this;
}
/**
* optional string name = 1;
*/
public Builder clearName() {
bitField0_ = (bitField0_ & ~0x00000001);
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
* optional string name = 1;
*/
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;
*/
public boolean hasValue() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional string value = 2;
*/
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;
*/
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;
*/
public Builder setValue(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
value_ = value;
onChanged();
return this;
}
/**
* optional string value = 2;
*/
public Builder clearValue() {
bitField0_ = (bitField0_ & ~0x00000002);
value_ = getDefaultInstance().getValue();
onChanged();
return this;
}
/**
* optional string value = 2;
*/
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.processing.IssueCommandRequest.Assignment)
}
// @@protoc_insertion_point(class_scope:yamcs.protobuf.processing.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_;
/**
* optional string instance = 6;
*/
public boolean hasInstance() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional string instance = 6;
*/
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;
}
}
/**
* optional string instance = 6;
*/
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_;
/**
* optional string processor = 7;
*/
public boolean hasProcessor() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional string processor = 7;
*/
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;
}
}
/**
* optional string processor = 7;
*/
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_;
/**
* optional string name = 8;
*/
public boolean hasName() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional string name = 8;
*/
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 = 8;
*/
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 ASSIGNMENT_FIELD_NUMBER = 1;
private java.util.List assignment_;
/**
* repeated .yamcs.protobuf.processing.IssueCommandRequest.Assignment assignment = 1;
*/
public java.util.List getAssignmentList() {
return assignment_;
}
/**
* repeated .yamcs.protobuf.processing.IssueCommandRequest.Assignment assignment = 1;
*/
public java.util.List extends org.yamcs.protobuf.IssueCommandRequest.AssignmentOrBuilder>
getAssignmentOrBuilderList() {
return assignment_;
}
/**
* repeated .yamcs.protobuf.processing.IssueCommandRequest.Assignment assignment = 1;
*/
public int getAssignmentCount() {
return assignment_.size();
}
/**
* repeated .yamcs.protobuf.processing.IssueCommandRequest.Assignment assignment = 1;
*/
public org.yamcs.protobuf.IssueCommandRequest.Assignment getAssignment(int index) {
return assignment_.get(index);
}
/**
* repeated .yamcs.protobuf.processing.IssueCommandRequest.Assignment assignment = 1;
*/
public org.yamcs.protobuf.IssueCommandRequest.AssignmentOrBuilder getAssignmentOrBuilder(
int index) {
return assignment_.get(index);
}
public static final int ORIGIN_FIELD_NUMBER = 2;
private volatile java.lang.Object origin_;
/**
* optional string origin = 2;
*/
public boolean hasOrigin() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
* optional string origin = 2;
*/
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;
}
}
/**
* optional string origin = 2;
*/
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_;
/**
* optional int32 sequenceNumber = 3;
*/
public boolean hasSequenceNumber() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* optional int32 sequenceNumber = 3;
*/
public int getSequenceNumber() {
return sequenceNumber_;
}
public static final int DRYRUN_FIELD_NUMBER = 4;
private boolean dryRun_;
/**
* optional bool dryRun = 4;
*/
public boolean hasDryRun() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
* optional bool dryRun = 4;
*/
public boolean getDryRun() {
return dryRun_;
}
public static final int COMMENT_FIELD_NUMBER = 5;
private volatile java.lang.Object comment_;
/**
* optional string comment = 5;
*/
public boolean hasComment() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
* optional string comment = 5;
*/
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;
}
}
/**
* optional string comment = 5;
*/
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 ATTRIBUTE_FIELD_NUMBER = 9;
private java.util.List attribute_;
/**
*
*extra command attributes
*
*
* repeated .yamcs.protobuf.commanding.CommandHistoryAttribute attribute = 9;
*/
public java.util.List getAttributeList() {
return attribute_;
}
/**
*
*extra command attributes
*
*
* repeated .yamcs.protobuf.commanding.CommandHistoryAttribute attribute = 9;
*/
public java.util.List extends org.yamcs.protobuf.Commanding.CommandHistoryAttributeOrBuilder>
getAttributeOrBuilderList() {
return attribute_;
}
/**
*
*extra command attributes
*
*
* repeated .yamcs.protobuf.commanding.CommandHistoryAttribute attribute = 9;
*/
public int getAttributeCount() {
return attribute_.size();
}
/**
*
*extra command attributes
*
*
* repeated .yamcs.protobuf.commanding.CommandHistoryAttribute attribute = 9;
*/
public org.yamcs.protobuf.Commanding.CommandHistoryAttribute getAttribute(int index) {
return attribute_.get(index);
}
/**
*
*extra command attributes
*
*
* repeated .yamcs.protobuf.commanding.CommandHistoryAttribute attribute = 9;
*/
public org.yamcs.protobuf.Commanding.CommandHistoryAttributeOrBuilder getAttributeOrBuilder(
int index) {
return attribute_.get(index);
}
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 (int i = 0; i < getAttributeCount(); i++) {
if (!getAttribute(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < assignment_.size(); i++) {
output.writeMessage(1, assignment_.get(i));
}
if (((bitField0_ & 0x00000008) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, origin_);
}
if (((bitField0_ & 0x00000010) != 0)) {
output.writeInt32(3, sequenceNumber_);
}
if (((bitField0_ & 0x00000020) != 0)) {
output.writeBool(4, dryRun_);
}
if (((bitField0_ & 0x00000040) != 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_);
}
for (int i = 0; i < attribute_.size(); i++) {
output.writeMessage(9, attribute_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < assignment_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, assignment_.get(i));
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, origin_);
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(3, sequenceNumber_);
}
if (((bitField0_ & 0x00000020) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(4, dryRun_);
}
if (((bitField0_ & 0x00000040) != 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_);
}
for (int i = 0; i < attribute_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(9, attribute_.get(i));
}
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 (!getAssignmentList()
.equals(other.getAssignmentList())) 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 (!getAttributeList()
.equals(other.getAttributeList())) 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 (getAssignmentCount() > 0) {
hash = (37 * hash) + ASSIGNMENT_FIELD_NUMBER;
hash = (53 * hash) + getAssignmentList().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 (getAttributeCount() > 0) {
hash = (37 * hash) + ATTRIBUTE_FIELD_NUMBER;
hash = (53 * hash) + getAttributeList().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.processing.IssueCommandRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yamcs.protobuf.processing.IssueCommandRequest)
org.yamcs.protobuf.IssueCommandRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.ProcessingProto.internal_static_yamcs_protobuf_processing_IssueCommandRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.ProcessingProto.internal_static_yamcs_protobuf_processing_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) {
getAssignmentFieldBuilder();
getAttributeFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
instance_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
processor_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
name_ = "";
bitField0_ = (bitField0_ & ~0x00000004);
if (assignmentBuilder_ == null) {
assignment_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
} else {
assignmentBuilder_.clear();
}
origin_ = "";
bitField0_ = (bitField0_ & ~0x00000010);
sequenceNumber_ = 0;
bitField0_ = (bitField0_ & ~0x00000020);
dryRun_ = false;
bitField0_ = (bitField0_ & ~0x00000040);
comment_ = "";
bitField0_ = (bitField0_ & ~0x00000080);
if (attributeBuilder_ == null) {
attribute_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000100);
} else {
attributeBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.yamcs.protobuf.ProcessingProto.internal_static_yamcs_protobuf_processing_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 (assignmentBuilder_ == null) {
if (((bitField0_ & 0x00000008) != 0)) {
assignment_ = java.util.Collections.unmodifiableList(assignment_);
bitField0_ = (bitField0_ & ~0x00000008);
}
result.assignment_ = assignment_;
} else {
result.assignment_ = assignmentBuilder_.build();
}
if (((from_bitField0_ & 0x00000010) != 0)) {
to_bitField0_ |= 0x00000008;
}
result.origin_ = origin_;
if (((from_bitField0_ & 0x00000020) != 0)) {
result.sequenceNumber_ = sequenceNumber_;
to_bitField0_ |= 0x00000010;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
result.dryRun_ = dryRun_;
to_bitField0_ |= 0x00000020;
}
if (((from_bitField0_ & 0x00000080) != 0)) {
to_bitField0_ |= 0x00000040;
}
result.comment_ = comment_;
if (attributeBuilder_ == null) {
if (((bitField0_ & 0x00000100) != 0)) {
attribute_ = java.util.Collections.unmodifiableList(attribute_);
bitField0_ = (bitField0_ & ~0x00000100);
}
result.attribute_ = attribute_;
} else {
result.attribute_ = attributeBuilder_.build();
}
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 (assignmentBuilder_ == null) {
if (!other.assignment_.isEmpty()) {
if (assignment_.isEmpty()) {
assignment_ = other.assignment_;
bitField0_ = (bitField0_ & ~0x00000008);
} else {
ensureAssignmentIsMutable();
assignment_.addAll(other.assignment_);
}
onChanged();
}
} else {
if (!other.assignment_.isEmpty()) {
if (assignmentBuilder_.isEmpty()) {
assignmentBuilder_.dispose();
assignmentBuilder_ = null;
assignment_ = other.assignment_;
bitField0_ = (bitField0_ & ~0x00000008);
assignmentBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getAssignmentFieldBuilder() : null;
} else {
assignmentBuilder_.addAllMessages(other.assignment_);
}
}
}
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 (attributeBuilder_ == null) {
if (!other.attribute_.isEmpty()) {
if (attribute_.isEmpty()) {
attribute_ = other.attribute_;
bitField0_ = (bitField0_ & ~0x00000100);
} else {
ensureAttributeIsMutable();
attribute_.addAll(other.attribute_);
}
onChanged();
}
} else {
if (!other.attribute_.isEmpty()) {
if (attributeBuilder_.isEmpty()) {
attributeBuilder_.dispose();
attributeBuilder_ = null;
attribute_ = other.attribute_;
bitField0_ = (bitField0_ & ~0x00000100);
attributeBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getAttributeFieldBuilder() : null;
} else {
attributeBuilder_.addAllMessages(other.attribute_);
}
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
for (int i = 0; i < getAttributeCount(); i++) {
if (!getAttribute(i).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_ = "";
/**
* optional string instance = 6;
*/
public boolean hasInstance() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional string instance = 6;
*/
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;
}
}
/**
* optional string instance = 6;
*/
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;
}
}
/**
* optional string instance = 6;
*/
public Builder setInstance(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
instance_ = value;
onChanged();
return this;
}
/**
* optional string instance = 6;
*/
public Builder clearInstance() {
bitField0_ = (bitField0_ & ~0x00000001);
instance_ = getDefaultInstance().getInstance();
onChanged();
return this;
}
/**
* optional string instance = 6;
*/
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_ = "";
/**
* optional string processor = 7;
*/
public boolean hasProcessor() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional string processor = 7;
*/
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;
}
}
/**
* optional string processor = 7;
*/
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;
}
}
/**
* optional string processor = 7;
*/
public Builder setProcessor(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
processor_ = value;
onChanged();
return this;
}
/**
* optional string processor = 7;
*/
public Builder clearProcessor() {
bitField0_ = (bitField0_ & ~0x00000002);
processor_ = getDefaultInstance().getProcessor();
onChanged();
return this;
}
/**
* optional string processor = 7;
*/
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_ = "";
/**
* optional string name = 8;
*/
public boolean hasName() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional string name = 8;
*/
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 = 8;
*/
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 = 8;
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
name_ = value;
onChanged();
return this;
}
/**
* optional string name = 8;
*/
public Builder clearName() {
bitField0_ = (bitField0_ & ~0x00000004);
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
* optional string name = 8;
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
name_ = value;
onChanged();
return this;
}
private java.util.List assignment_ =
java.util.Collections.emptyList();
private void ensureAssignmentIsMutable() {
if (!((bitField0_ & 0x00000008) != 0)) {
assignment_ = new java.util.ArrayList(assignment_);
bitField0_ |= 0x00000008;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.yamcs.protobuf.IssueCommandRequest.Assignment, org.yamcs.protobuf.IssueCommandRequest.Assignment.Builder, org.yamcs.protobuf.IssueCommandRequest.AssignmentOrBuilder> assignmentBuilder_;
/**
* repeated .yamcs.protobuf.processing.IssueCommandRequest.Assignment assignment = 1;
*/
public java.util.List getAssignmentList() {
if (assignmentBuilder_ == null) {
return java.util.Collections.unmodifiableList(assignment_);
} else {
return assignmentBuilder_.getMessageList();
}
}
/**
* repeated .yamcs.protobuf.processing.IssueCommandRequest.Assignment assignment = 1;
*/
public int getAssignmentCount() {
if (assignmentBuilder_ == null) {
return assignment_.size();
} else {
return assignmentBuilder_.getCount();
}
}
/**
* repeated .yamcs.protobuf.processing.IssueCommandRequest.Assignment assignment = 1;
*/
public org.yamcs.protobuf.IssueCommandRequest.Assignment getAssignment(int index) {
if (assignmentBuilder_ == null) {
return assignment_.get(index);
} else {
return assignmentBuilder_.getMessage(index);
}
}
/**
* repeated .yamcs.protobuf.processing.IssueCommandRequest.Assignment assignment = 1;
*/
public Builder setAssignment(
int index, org.yamcs.protobuf.IssueCommandRequest.Assignment value) {
if (assignmentBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAssignmentIsMutable();
assignment_.set(index, value);
onChanged();
} else {
assignmentBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .yamcs.protobuf.processing.IssueCommandRequest.Assignment assignment = 1;
*/
public Builder setAssignment(
int index, org.yamcs.protobuf.IssueCommandRequest.Assignment.Builder builderForValue) {
if (assignmentBuilder_ == null) {
ensureAssignmentIsMutable();
assignment_.set(index, builderForValue.build());
onChanged();
} else {
assignmentBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .yamcs.protobuf.processing.IssueCommandRequest.Assignment assignment = 1;
*/
public Builder addAssignment(org.yamcs.protobuf.IssueCommandRequest.Assignment value) {
if (assignmentBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAssignmentIsMutable();
assignment_.add(value);
onChanged();
} else {
assignmentBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .yamcs.protobuf.processing.IssueCommandRequest.Assignment assignment = 1;
*/
public Builder addAssignment(
int index, org.yamcs.protobuf.IssueCommandRequest.Assignment value) {
if (assignmentBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAssignmentIsMutable();
assignment_.add(index, value);
onChanged();
} else {
assignmentBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .yamcs.protobuf.processing.IssueCommandRequest.Assignment assignment = 1;
*/
public Builder addAssignment(
org.yamcs.protobuf.IssueCommandRequest.Assignment.Builder builderForValue) {
if (assignmentBuilder_ == null) {
ensureAssignmentIsMutable();
assignment_.add(builderForValue.build());
onChanged();
} else {
assignmentBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .yamcs.protobuf.processing.IssueCommandRequest.Assignment assignment = 1;
*/
public Builder addAssignment(
int index, org.yamcs.protobuf.IssueCommandRequest.Assignment.Builder builderForValue) {
if (assignmentBuilder_ == null) {
ensureAssignmentIsMutable();
assignment_.add(index, builderForValue.build());
onChanged();
} else {
assignmentBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .yamcs.protobuf.processing.IssueCommandRequest.Assignment assignment = 1;
*/
public Builder addAllAssignment(
java.lang.Iterable extends org.yamcs.protobuf.IssueCommandRequest.Assignment> values) {
if (assignmentBuilder_ == null) {
ensureAssignmentIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, assignment_);
onChanged();
} else {
assignmentBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .yamcs.protobuf.processing.IssueCommandRequest.Assignment assignment = 1;
*/
public Builder clearAssignment() {
if (assignmentBuilder_ == null) {
assignment_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
} else {
assignmentBuilder_.clear();
}
return this;
}
/**
* repeated .yamcs.protobuf.processing.IssueCommandRequest.Assignment assignment = 1;
*/
public Builder removeAssignment(int index) {
if (assignmentBuilder_ == null) {
ensureAssignmentIsMutable();
assignment_.remove(index);
onChanged();
} else {
assignmentBuilder_.remove(index);
}
return this;
}
/**
* repeated .yamcs.protobuf.processing.IssueCommandRequest.Assignment assignment = 1;
*/
public org.yamcs.protobuf.IssueCommandRequest.Assignment.Builder getAssignmentBuilder(
int index) {
return getAssignmentFieldBuilder().getBuilder(index);
}
/**
* repeated .yamcs.protobuf.processing.IssueCommandRequest.Assignment assignment = 1;
*/
public org.yamcs.protobuf.IssueCommandRequest.AssignmentOrBuilder getAssignmentOrBuilder(
int index) {
if (assignmentBuilder_ == null) {
return assignment_.get(index); } else {
return assignmentBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .yamcs.protobuf.processing.IssueCommandRequest.Assignment assignment = 1;
*/
public java.util.List extends org.yamcs.protobuf.IssueCommandRequest.AssignmentOrBuilder>
getAssignmentOrBuilderList() {
if (assignmentBuilder_ != null) {
return assignmentBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(assignment_);
}
}
/**
* repeated .yamcs.protobuf.processing.IssueCommandRequest.Assignment assignment = 1;
*/
public org.yamcs.protobuf.IssueCommandRequest.Assignment.Builder addAssignmentBuilder() {
return getAssignmentFieldBuilder().addBuilder(
org.yamcs.protobuf.IssueCommandRequest.Assignment.getDefaultInstance());
}
/**
* repeated .yamcs.protobuf.processing.IssueCommandRequest.Assignment assignment = 1;
*/
public org.yamcs.protobuf.IssueCommandRequest.Assignment.Builder addAssignmentBuilder(
int index) {
return getAssignmentFieldBuilder().addBuilder(
index, org.yamcs.protobuf.IssueCommandRequest.Assignment.getDefaultInstance());
}
/**
* repeated .yamcs.protobuf.processing.IssueCommandRequest.Assignment assignment = 1;
*/
public java.util.List
getAssignmentBuilderList() {
return getAssignmentFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.yamcs.protobuf.IssueCommandRequest.Assignment, org.yamcs.protobuf.IssueCommandRequest.Assignment.Builder, org.yamcs.protobuf.IssueCommandRequest.AssignmentOrBuilder>
getAssignmentFieldBuilder() {
if (assignmentBuilder_ == null) {
assignmentBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.yamcs.protobuf.IssueCommandRequest.Assignment, org.yamcs.protobuf.IssueCommandRequest.Assignment.Builder, org.yamcs.protobuf.IssueCommandRequest.AssignmentOrBuilder>(
assignment_,
((bitField0_ & 0x00000008) != 0),
getParentForChildren(),
isClean());
assignment_ = null;
}
return assignmentBuilder_;
}
private java.lang.Object origin_ = "";
/**
* optional string origin = 2;
*/
public boolean hasOrigin() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* optional string origin = 2;
*/
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;
}
}
/**
* optional string origin = 2;
*/
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;
}
}
/**
* optional string origin = 2;
*/
public Builder setOrigin(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000010;
origin_ = value;
onChanged();
return this;
}
/**
* optional string origin = 2;
*/
public Builder clearOrigin() {
bitField0_ = (bitField0_ & ~0x00000010);
origin_ = getDefaultInstance().getOrigin();
onChanged();
return this;
}
/**
* optional string origin = 2;
*/
public Builder setOriginBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000010;
origin_ = value;
onChanged();
return this;
}
private int sequenceNumber_ ;
/**
* optional int32 sequenceNumber = 3;
*/
public boolean hasSequenceNumber() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
* optional int32 sequenceNumber = 3;
*/
public int getSequenceNumber() {
return sequenceNumber_;
}
/**
* optional int32 sequenceNumber = 3;
*/
public Builder setSequenceNumber(int value) {
bitField0_ |= 0x00000020;
sequenceNumber_ = value;
onChanged();
return this;
}
/**
* optional int32 sequenceNumber = 3;
*/
public Builder clearSequenceNumber() {
bitField0_ = (bitField0_ & ~0x00000020);
sequenceNumber_ = 0;
onChanged();
return this;
}
private boolean dryRun_ ;
/**
* optional bool dryRun = 4;
*/
public boolean hasDryRun() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
* optional bool dryRun = 4;
*/
public boolean getDryRun() {
return dryRun_;
}
/**
* optional bool dryRun = 4;
*/
public Builder setDryRun(boolean value) {
bitField0_ |= 0x00000040;
dryRun_ = value;
onChanged();
return this;
}
/**
* optional bool dryRun = 4;
*/
public Builder clearDryRun() {
bitField0_ = (bitField0_ & ~0x00000040);
dryRun_ = false;
onChanged();
return this;
}
private java.lang.Object comment_ = "";
/**
* optional string comment = 5;
*/
public boolean hasComment() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
* optional string comment = 5;
*/
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;
}
}
/**
* optional string comment = 5;
*/
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;
}
}
/**
* optional string comment = 5;
*/
public Builder setComment(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000080;
comment_ = value;
onChanged();
return this;
}
/**
* optional string comment = 5;
*/
public Builder clearComment() {
bitField0_ = (bitField0_ & ~0x00000080);
comment_ = getDefaultInstance().getComment();
onChanged();
return this;
}
/**
* optional string comment = 5;
*/
public Builder setCommentBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000080;
comment_ = value;
onChanged();
return this;
}
private java.util.List attribute_ =
java.util.Collections.emptyList();
private void ensureAttributeIsMutable() {
if (!((bitField0_ & 0x00000100) != 0)) {
attribute_ = new java.util.ArrayList(attribute_);
bitField0_ |= 0x00000100;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.yamcs.protobuf.Commanding.CommandHistoryAttribute, org.yamcs.protobuf.Commanding.CommandHistoryAttribute.Builder, org.yamcs.protobuf.Commanding.CommandHistoryAttributeOrBuilder> attributeBuilder_;
/**
*
*extra command attributes
*
*
* repeated .yamcs.protobuf.commanding.CommandHistoryAttribute attribute = 9;
*/
public java.util.List getAttributeList() {
if (attributeBuilder_ == null) {
return java.util.Collections.unmodifiableList(attribute_);
} else {
return attributeBuilder_.getMessageList();
}
}
/**
*
*extra command attributes
*
*
* repeated .yamcs.protobuf.commanding.CommandHistoryAttribute attribute = 9;
*/
public int getAttributeCount() {
if (attributeBuilder_ == null) {
return attribute_.size();
} else {
return attributeBuilder_.getCount();
}
}
/**
*
*extra command attributes
*
*
* repeated .yamcs.protobuf.commanding.CommandHistoryAttribute attribute = 9;
*/
public org.yamcs.protobuf.Commanding.CommandHistoryAttribute getAttribute(int index) {
if (attributeBuilder_ == null) {
return attribute_.get(index);
} else {
return attributeBuilder_.getMessage(index);
}
}
/**
*
*extra command attributes
*
*
* repeated .yamcs.protobuf.commanding.CommandHistoryAttribute attribute = 9;
*/
public Builder setAttribute(
int index, org.yamcs.protobuf.Commanding.CommandHistoryAttribute value) {
if (attributeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAttributeIsMutable();
attribute_.set(index, value);
onChanged();
} else {
attributeBuilder_.setMessage(index, value);
}
return this;
}
/**
*
*extra command attributes
*
*
* repeated .yamcs.protobuf.commanding.CommandHistoryAttribute attribute = 9;
*/
public Builder setAttribute(
int index, org.yamcs.protobuf.Commanding.CommandHistoryAttribute.Builder builderForValue) {
if (attributeBuilder_ == null) {
ensureAttributeIsMutable();
attribute_.set(index, builderForValue.build());
onChanged();
} else {
attributeBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
*extra command attributes
*
*
* repeated .yamcs.protobuf.commanding.CommandHistoryAttribute attribute = 9;
*/
public Builder addAttribute(org.yamcs.protobuf.Commanding.CommandHistoryAttribute value) {
if (attributeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAttributeIsMutable();
attribute_.add(value);
onChanged();
} else {
attributeBuilder_.addMessage(value);
}
return this;
}
/**
*
*extra command attributes
*
*
* repeated .yamcs.protobuf.commanding.CommandHistoryAttribute attribute = 9;
*/
public Builder addAttribute(
int index, org.yamcs.protobuf.Commanding.CommandHistoryAttribute value) {
if (attributeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAttributeIsMutable();
attribute_.add(index, value);
onChanged();
} else {
attributeBuilder_.addMessage(index, value);
}
return this;
}
/**
*
*extra command attributes
*
*
* repeated .yamcs.protobuf.commanding.CommandHistoryAttribute attribute = 9;
*/
public Builder addAttribute(
org.yamcs.protobuf.Commanding.CommandHistoryAttribute.Builder builderForValue) {
if (attributeBuilder_ == null) {
ensureAttributeIsMutable();
attribute_.add(builderForValue.build());
onChanged();
} else {
attributeBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
*extra command attributes
*
*
* repeated .yamcs.protobuf.commanding.CommandHistoryAttribute attribute = 9;
*/
public Builder addAttribute(
int index, org.yamcs.protobuf.Commanding.CommandHistoryAttribute.Builder builderForValue) {
if (attributeBuilder_ == null) {
ensureAttributeIsMutable();
attribute_.add(index, builderForValue.build());
onChanged();
} else {
attributeBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
*extra command attributes
*
*
* repeated .yamcs.protobuf.commanding.CommandHistoryAttribute attribute = 9;
*/
public Builder addAllAttribute(
java.lang.Iterable extends org.yamcs.protobuf.Commanding.CommandHistoryAttribute> values) {
if (attributeBuilder_ == null) {
ensureAttributeIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, attribute_);
onChanged();
} else {
attributeBuilder_.addAllMessages(values);
}
return this;
}
/**
*
*extra command attributes
*
*
* repeated .yamcs.protobuf.commanding.CommandHistoryAttribute attribute = 9;
*/
public Builder clearAttribute() {
if (attributeBuilder_ == null) {
attribute_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000100);
onChanged();
} else {
attributeBuilder_.clear();
}
return this;
}
/**
*
*extra command attributes
*
*
* repeated .yamcs.protobuf.commanding.CommandHistoryAttribute attribute = 9;
*/
public Builder removeAttribute(int index) {
if (attributeBuilder_ == null) {
ensureAttributeIsMutable();
attribute_.remove(index);
onChanged();
} else {
attributeBuilder_.remove(index);
}
return this;
}
/**
*
*extra command attributes
*
*
* repeated .yamcs.protobuf.commanding.CommandHistoryAttribute attribute = 9;
*/
public org.yamcs.protobuf.Commanding.CommandHistoryAttribute.Builder getAttributeBuilder(
int index) {
return getAttributeFieldBuilder().getBuilder(index);
}
/**
*
*extra command attributes
*
*
* repeated .yamcs.protobuf.commanding.CommandHistoryAttribute attribute = 9;
*/
public org.yamcs.protobuf.Commanding.CommandHistoryAttributeOrBuilder getAttributeOrBuilder(
int index) {
if (attributeBuilder_ == null) {
return attribute_.get(index); } else {
return attributeBuilder_.getMessageOrBuilder(index);
}
}
/**
*
*extra command attributes
*
*
* repeated .yamcs.protobuf.commanding.CommandHistoryAttribute attribute = 9;
*/
public java.util.List extends org.yamcs.protobuf.Commanding.CommandHistoryAttributeOrBuilder>
getAttributeOrBuilderList() {
if (attributeBuilder_ != null) {
return attributeBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(attribute_);
}
}
/**
*
*extra command attributes
*
*
* repeated .yamcs.protobuf.commanding.CommandHistoryAttribute attribute = 9;
*/
public org.yamcs.protobuf.Commanding.CommandHistoryAttribute.Builder addAttributeBuilder() {
return getAttributeFieldBuilder().addBuilder(
org.yamcs.protobuf.Commanding.CommandHistoryAttribute.getDefaultInstance());
}
/**
*
*extra command attributes
*
*
* repeated .yamcs.protobuf.commanding.CommandHistoryAttribute attribute = 9;
*/
public org.yamcs.protobuf.Commanding.CommandHistoryAttribute.Builder addAttributeBuilder(
int index) {
return getAttributeFieldBuilder().addBuilder(
index, org.yamcs.protobuf.Commanding.CommandHistoryAttribute.getDefaultInstance());
}
/**
*
*extra command attributes
*
*
* repeated .yamcs.protobuf.commanding.CommandHistoryAttribute attribute = 9;
*/
public java.util.List
getAttributeBuilderList() {
return getAttributeFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.yamcs.protobuf.Commanding.CommandHistoryAttribute, org.yamcs.protobuf.Commanding.CommandHistoryAttribute.Builder, org.yamcs.protobuf.Commanding.CommandHistoryAttributeOrBuilder>
getAttributeFieldBuilder() {
if (attributeBuilder_ == null) {
attributeBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.yamcs.protobuf.Commanding.CommandHistoryAttribute, org.yamcs.protobuf.Commanding.CommandHistoryAttribute.Builder, org.yamcs.protobuf.Commanding.CommandHistoryAttributeOrBuilder>(
attribute_,
((bitField0_ & 0x00000100) != 0),
getParentForChildren(),
isClean());
attribute_ = null;
}
return attributeBuilder_;
}
@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.processing.IssueCommandRequest)
}
// @@protoc_insertion_point(class_scope:yamcs.protobuf.processing.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;
}
}