// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: comp.proto
package org.yamcs.protobuf;
public final class Comp {
private Comp() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
}
public interface ComputationDefOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// required string name = 1;
/**
* <code>required string name = 1;</code>
*/
boolean hasName();
/**
* <code>required string name = 1;</code>
*/
java.lang.String getName();
/**
* <code>required string name = 1;</code>
*/
com.google.protobuf.ByteString
getNameBytes();
// required string expression = 2;
/**
* <code>required string expression = 2;</code>
*/
boolean hasExpression();
/**
* <code>required string expression = 2;</code>
*/
java.lang.String getExpression();
/**
* <code>required string expression = 2;</code>
*/
com.google.protobuf.ByteString
getExpressionBytes();
// repeated .yamcs.NamedObjectId argument = 3;
/**
* <code>repeated .yamcs.NamedObjectId argument = 3;</code>
*/
java.util.List<org.yamcs.protobuf.Yamcs.NamedObjectId>
getArgumentList();
/**
* <code>repeated .yamcs.NamedObjectId argument = 3;</code>
*/
org.yamcs.protobuf.Yamcs.NamedObjectId getArgument(int index);
/**
* <code>repeated .yamcs.NamedObjectId argument = 3;</code>
*/
int getArgumentCount();
/**
* <code>repeated .yamcs.NamedObjectId argument = 3;</code>
*/
java.util.List<? extends org.yamcs.protobuf.Yamcs.NamedObjectIdOrBuilder>
getArgumentOrBuilderList();
/**
* <code>repeated .yamcs.NamedObjectId argument = 3;</code>
*/
org.yamcs.protobuf.Yamcs.NamedObjectIdOrBuilder getArgumentOrBuilder(
int index);
// optional string language = 4;
/**
* <code>optional string language = 4;</code>
*
* <pre>
*for USS this is jformula, in the future default should probably be javascript
* </pre>
*/
boolean hasLanguage();
/**
* <code>optional string language = 4;</code>
*
* <pre>
*for USS this is jformula, in the future default should probably be javascript
* </pre>
*/
java.lang.String getLanguage();
/**
* <code>optional string language = 4;</code>
*
* <pre>
*for USS this is jformula, in the future default should probably be javascript
* </pre>
*/
com.google.protobuf.ByteString
getLanguageBytes();
}
/**
* Protobuf type {@code comp.ComputationDef}
*
* <pre>
*used to define a computation on the server (for the moment implemented only in yamcs-web)
* </pre>
*/
public static final class ComputationDef extends
com.google.protobuf.GeneratedMessage
implements ComputationDefOrBuilder {
// Use ComputationDef.newBuilder() to construct.
private ComputationDef(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private ComputationDef(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final ComputationDef defaultInstance;
public static ComputationDef getDefaultInstance() {
return defaultInstance;
}
public ComputationDef getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ComputationDef(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
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;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
bitField0_ |= 0x00000001;
name_ = input.readBytes();
break;
}
case 18: {
bitField0_ |= 0x00000002;
expression_ = input.readBytes();
break;
}
case 26: {
if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
argument_ = new java.util.ArrayList<org.yamcs.protobuf.Yamcs.NamedObjectId>();
mutable_bitField0_ |= 0x00000004;
}
argument_.add(input.readMessage(org.yamcs.protobuf.Yamcs.NamedObjectId.PARSER, extensionRegistry));
break;
}
case 34: {
bitField0_ |= 0x00000004;
language_ = input.readBytes();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
argument_ = java.util.Collections.unmodifiableList(argument_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.Comp.internal_static_comp_ComputationDef_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.Comp.internal_static_comp_ComputationDef_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.Comp.ComputationDef.class, org.yamcs.protobuf.Comp.ComputationDef.Builder.class);
}
public static com.google.protobuf.Parser<ComputationDef> PARSER =
new com.google.protobuf.AbstractParser<ComputationDef>() {
public ComputationDef parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ComputationDef(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser<ComputationDef> getParserForType() {
return PARSER;
}
private int bitField0_;
// required string name = 1;
public static final int NAME_FIELD_NUMBER = 1;
private java.lang.Object name_;
/**
* <code>required string name = 1;</code>
*/
public boolean hasName() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>required string name = 1;</code>
*/
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;
}
}
/**
* <code>required string name = 1;</code>
*/
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;
}
}
// required string expression = 2;
public static final int EXPRESSION_FIELD_NUMBER = 2;
private java.lang.Object expression_;
/**
* <code>required string expression = 2;</code>
*/
public boolean hasExpression() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>required string expression = 2;</code>
*/
public java.lang.String getExpression() {
java.lang.Object ref = expression_;
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()) {
expression_ = s;
}
return s;
}
}
/**
* <code>required string expression = 2;</code>
*/
public com.google.protobuf.ByteString
getExpressionBytes() {
java.lang.Object ref = expression_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
expression_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
// repeated .yamcs.NamedObjectId argument = 3;
public static final int ARGUMENT_FIELD_NUMBER = 3;
private java.util.List<org.yamcs.protobuf.Yamcs.NamedObjectId> argument_;
/**
* <code>repeated .yamcs.NamedObjectId argument = 3;</code>
*/
public java.util.List<org.yamcs.protobuf.Yamcs.NamedObjectId> getArgumentList() {
return argument_;
}
/**
* <code>repeated .yamcs.NamedObjectId argument = 3;</code>
*/
public java.util.List<? extends org.yamcs.protobuf.Yamcs.NamedObjectIdOrBuilder>
getArgumentOrBuilderList() {
return argument_;
}
/**
* <code>repeated .yamcs.NamedObjectId argument = 3;</code>
*/
public int getArgumentCount() {
return argument_.size();
}
/**
* <code>repeated .yamcs.NamedObjectId argument = 3;</code>
*/
public org.yamcs.protobuf.Yamcs.NamedObjectId getArgument(int index) {
return argument_.get(index);
}
/**
* <code>repeated .yamcs.NamedObjectId argument = 3;</code>
*/
public org.yamcs.protobuf.Yamcs.NamedObjectIdOrBuilder getArgumentOrBuilder(
int index) {
return argument_.get(index);
}
// optional string language = 4;
public static final int LANGUAGE_FIELD_NUMBER = 4;
private java.lang.Object language_;
/**
* <code>optional string language = 4;</code>
*
* <pre>
*for USS this is jformula, in the future default should probably be javascript
* </pre>
*/
public boolean hasLanguage() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* <code>optional string language = 4;</code>
*
* <pre>
*for USS this is jformula, in the future default should probably be javascript
* </pre>
*/
public java.lang.String getLanguage() {
java.lang.Object ref = language_;
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()) {
language_ = s;
}
return s;
}
}
/**
* <code>optional string language = 4;</code>
*
* <pre>
*for USS this is jformula, in the future default should probably be javascript
* </pre>
*/
public com.google.protobuf.ByteString
getLanguageBytes() {
java.lang.Object ref = language_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
language_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private void initFields() {
name_ = "";
expression_ = "";
argument_ = java.util.Collections.emptyList();
language_ = "";
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
if (!hasName()) {
memoizedIsInitialized = 0;
return false;
}
if (!hasExpression()) {
memoizedIsInitialized = 0;
return false;
}
for (int i = 0; i < getArgumentCount(); i++) {
if (!getArgument(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBytes(1, getNameBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeBytes(2, getExpressionBytes());
}
for (int i = 0; i < argument_.size(); i++) {
output.writeMessage(3, argument_.get(i));
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeBytes(4, getLanguageBytes());
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(1, getNameBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, getExpressionBytes());
}
for (int i = 0; i < argument_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, argument_.get(i));
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(4, getLanguageBytes());
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static org.yamcs.protobuf.Comp.ComputationDef parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.Comp.ComputationDef 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.Comp.ComputationDef parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.Comp.ComputationDef parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.yamcs.protobuf.Comp.ComputationDef parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.yamcs.protobuf.Comp.ComputationDef parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.yamcs.protobuf.Comp.ComputationDef parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.yamcs.protobuf.Comp.ComputationDef parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.yamcs.protobuf.Comp.ComputationDef parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.yamcs.protobuf.Comp.ComputationDef parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(org.yamcs.protobuf.Comp.ComputationDef prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code comp.ComputationDef}
*
* <pre>
*used to define a computation on the server (for the moment implemented only in yamcs-web)
* </pre>
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder<Builder>
implements org.yamcs.protobuf.Comp.ComputationDefOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.Comp.internal_static_comp_ComputationDef_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.Comp.internal_static_comp_ComputationDef_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.Comp.ComputationDef.class, org.yamcs.protobuf.Comp.ComputationDef.Builder.class);
}
// Construct using org.yamcs.protobuf.Comp.ComputationDef.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getArgumentFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
name_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
expression_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
if (argumentBuilder_ == null) {
argument_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
} else {
argumentBuilder_.clear();
}
language_ = "";
bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.yamcs.protobuf.Comp.internal_static_comp_ComputationDef_descriptor;
}
public org.yamcs.protobuf.Comp.ComputationDef getDefaultInstanceForType() {
return org.yamcs.protobuf.Comp.ComputationDef.getDefaultInstance();
}
public org.yamcs.protobuf.Comp.ComputationDef build() {
org.yamcs.protobuf.Comp.ComputationDef result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.yamcs.protobuf.Comp.ComputationDef buildPartial() {
org.yamcs.protobuf.Comp.ComputationDef result = new org.yamcs.protobuf.Comp.ComputationDef(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.name_ = name_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.expression_ = expression_;
if (argumentBuilder_ == null) {
if (((bitField0_ & 0x00000004) == 0x00000004)) {
argument_ = java.util.Collections.unmodifiableList(argument_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.argument_ = argument_;
} else {
result.argument_ = argumentBuilder_.build();
}
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000004;
}
result.language_ = language_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.yamcs.protobuf.Comp.ComputationDef) {
return mergeFrom((org.yamcs.protobuf.Comp.ComputationDef)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.yamcs.protobuf.Comp.ComputationDef other) {
if (other == org.yamcs.protobuf.Comp.ComputationDef.getDefaultInstance()) return this;
if (other.hasName()) {
bitField0_ |= 0x00000001;
name_ = other.name_;
onChanged();
}
if (other.hasExpression()) {
bitField0_ |= 0x00000002;
expression_ = other.expression_;
onChanged();
}
if (argumentBuilder_ == null) {
if (!other.argument_.isEmpty()) {
if (argument_.isEmpty()) {
argument_ = other.argument_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureArgumentIsMutable();
argument_.addAll(other.argument_);
}
onChanged();
}
} else {
if (!other.argument_.isEmpty()) {
if (argumentBuilder_.isEmpty()) {
argumentBuilder_.dispose();
argumentBuilder_ = null;
argument_ = other.argument_;
bitField0_ = (bitField0_ & ~0x00000004);
argumentBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getArgumentFieldBuilder() : null;
} else {
argumentBuilder_.addAllMessages(other.argument_);
}
}
}
if (other.hasLanguage()) {
bitField0_ |= 0x00000008;
language_ = other.language_;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (!hasName()) {
return false;
}
if (!hasExpression()) {
return false;
}
for (int i = 0; i < getArgumentCount(); i++) {
if (!getArgument(i).isInitialized()) {
return false;
}
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.yamcs.protobuf.Comp.ComputationDef parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.yamcs.protobuf.Comp.ComputationDef) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// required string name = 1;
private java.lang.Object name_ = "";
/**
* <code>required string name = 1;</code>
*/
public boolean hasName() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>required string name = 1;</code>
*/
public java.lang.String getName() {
java.lang.Object ref = name_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
name_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <code>required string name = 1;</code>
*/
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;
}
}
/**
* <code>required string name = 1;</code>
*/
public Builder setName(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
name_ = value;
onChanged();
return this;
}
/**
* <code>required string name = 1;</code>
*/
public Builder clearName() {
bitField0_ = (bitField0_ & ~0x00000001);
name_ = getDefaultInstance().getName();
onChanged();
return this;
}
/**
* <code>required string name = 1;</code>
*/
public Builder setNameBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
name_ = value;
onChanged();
return this;
}
// required string expression = 2;
private java.lang.Object expression_ = "";
/**
* <code>required string expression = 2;</code>
*/
public boolean hasExpression() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>required string expression = 2;</code>
*/
public java.lang.String getExpression() {
java.lang.Object ref = expression_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
expression_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <code>required string expression = 2;</code>
*/
public com.google.protobuf.ByteString
getExpressionBytes() {
java.lang.Object ref = expression_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
expression_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <code>required string expression = 2;</code>
*/
public Builder setExpression(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
expression_ = value;
onChanged();
return this;
}
/**
* <code>required string expression = 2;</code>
*/
public Builder clearExpression() {
bitField0_ = (bitField0_ & ~0x00000002);
expression_ = getDefaultInstance().getExpression();
onChanged();
return this;
}
/**
* <code>required string expression = 2;</code>
*/
public Builder setExpressionBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
expression_ = value;
onChanged();
return this;
}
// repeated .yamcs.NamedObjectId argument = 3;
private java.util.List<org.yamcs.protobuf.Yamcs.NamedObjectId> argument_ =
java.util.Collections.emptyList();
private void ensureArgumentIsMutable() {
if (!((bitField0_ & 0x00000004) == 0x00000004)) {
argument_ = new java.util.ArrayList<org.yamcs.protobuf.Yamcs.NamedObjectId>(argument_);
bitField0_ |= 0x00000004;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
org.yamcs.protobuf.Yamcs.NamedObjectId, org.yamcs.protobuf.Yamcs.NamedObjectId.Builder, org.yamcs.protobuf.Yamcs.NamedObjectIdOrBuilder> argumentBuilder_;
/**
* <code>repeated .yamcs.NamedObjectId argument = 3;</code>
*/
public java.util.List<org.yamcs.protobuf.Yamcs.NamedObjectId> getArgumentList() {
if (argumentBuilder_ == null) {
return java.util.Collections.unmodifiableList(argument_);
} else {
return argumentBuilder_.getMessageList();
}
}
/**
* <code>repeated .yamcs.NamedObjectId argument = 3;</code>
*/
public int getArgumentCount() {
if (argumentBuilder_ == null) {
return argument_.size();
} else {
return argumentBuilder_.getCount();
}
}
/**
* <code>repeated .yamcs.NamedObjectId argument = 3;</code>
*/
public org.yamcs.protobuf.Yamcs.NamedObjectId getArgument(int index) {
if (argumentBuilder_ == null) {
return argument_.get(index);
} else {
return argumentBuilder_.getMessage(index);
}
}
/**
* <code>repeated .yamcs.NamedObjectId argument = 3;</code>
*/
public Builder setArgument(
int index, org.yamcs.protobuf.Yamcs.NamedObjectId value) {
if (argumentBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureArgumentIsMutable();
argument_.set(index, value);
onChanged();
} else {
argumentBuilder_.setMessage(index, value);
}
return this;
}
/**
* <code>repeated .yamcs.NamedObjectId argument = 3;</code>
*/
public Builder setArgument(
int index, org.yamcs.protobuf.Yamcs.NamedObjectId.Builder builderForValue) {
if (argumentBuilder_ == null) {
ensureArgumentIsMutable();
argument_.set(index, builderForValue.build());
onChanged();
} else {
argumentBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* <code>repeated .yamcs.NamedObjectId argument = 3;</code>
*/
public Builder addArgument(org.yamcs.protobuf.Yamcs.NamedObjectId value) {
if (argumentBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureArgumentIsMutable();
argument_.add(value);
onChanged();
} else {
argumentBuilder_.addMessage(value);
}
return this;
}
/**
* <code>repeated .yamcs.NamedObjectId argument = 3;</code>
*/
public Builder addArgument(
int index, org.yamcs.protobuf.Yamcs.NamedObjectId value) {
if (argumentBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureArgumentIsMutable();
argument_.add(index, value);
onChanged();
} else {
argumentBuilder_.addMessage(index, value);
}
return this;
}
/**
* <code>repeated .yamcs.NamedObjectId argument = 3;</code>
*/
public Builder addArgument(
org.yamcs.protobuf.Yamcs.NamedObjectId.Builder builderForValue) {
if (argumentBuilder_ == null) {
ensureArgumentIsMutable();
argument_.add(builderForValue.build());
onChanged();
} else {
argumentBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* <code>repeated .yamcs.NamedObjectId argument = 3;</code>
*/
public Builder addArgument(
int index, org.yamcs.protobuf.Yamcs.NamedObjectId.Builder builderForValue) {
if (argumentBuilder_ == null) {
ensureArgumentIsMutable();
argument_.add(index, builderForValue.build());
onChanged();
} else {
argumentBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* <code>repeated .yamcs.NamedObjectId argument = 3;</code>
*/
public Builder addAllArgument(
java.lang.Iterable<? extends org.yamcs.protobuf.Yamcs.NamedObjectId> values) {
if (argumentBuilder_ == null) {
ensureArgumentIsMutable();
super.addAll(values, argument_);
onChanged();
} else {
argumentBuilder_.addAllMessages(values);
}
return this;
}
/**
* <code>repeated .yamcs.NamedObjectId argument = 3;</code>
*/
public Builder clearArgument() {
if (argumentBuilder_ == null) {
argument_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
argumentBuilder_.clear();
}
return this;
}
/**
* <code>repeated .yamcs.NamedObjectId argument = 3;</code>
*/
public Builder removeArgument(int index) {
if (argumentBuilder_ == null) {
ensureArgumentIsMutable();
argument_.remove(index);
onChanged();
} else {
argumentBuilder_.remove(index);
}
return this;
}
/**
* <code>repeated .yamcs.NamedObjectId argument = 3;</code>
*/
public org.yamcs.protobuf.Yamcs.NamedObjectId.Builder getArgumentBuilder(
int index) {
return getArgumentFieldBuilder().getBuilder(index);
}
/**
* <code>repeated .yamcs.NamedObjectId argument = 3;</code>
*/
public org.yamcs.protobuf.Yamcs.NamedObjectIdOrBuilder getArgumentOrBuilder(
int index) {
if (argumentBuilder_ == null) {
return argument_.get(index); } else {
return argumentBuilder_.getMessageOrBuilder(index);
}
}
/**
* <code>repeated .yamcs.NamedObjectId argument = 3;</code>
*/
public java.util.List<? extends org.yamcs.protobuf.Yamcs.NamedObjectIdOrBuilder>
getArgumentOrBuilderList() {
if (argumentBuilder_ != null) {
return argumentBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(argument_);
}
}
/**
* <code>repeated .yamcs.NamedObjectId argument = 3;</code>
*/
public org.yamcs.protobuf.Yamcs.NamedObjectId.Builder addArgumentBuilder() {
return getArgumentFieldBuilder().addBuilder(
org.yamcs.protobuf.Yamcs.NamedObjectId.getDefaultInstance());
}
/**
* <code>repeated .yamcs.NamedObjectId argument = 3;</code>
*/
public org.yamcs.protobuf.Yamcs.NamedObjectId.Builder addArgumentBuilder(
int index) {
return getArgumentFieldBuilder().addBuilder(
index, org.yamcs.protobuf.Yamcs.NamedObjectId.getDefaultInstance());
}
/**
* <code>repeated .yamcs.NamedObjectId argument = 3;</code>
*/
public java.util.List<org.yamcs.protobuf.Yamcs.NamedObjectId.Builder>
getArgumentBuilderList() {
return getArgumentFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
org.yamcs.protobuf.Yamcs.NamedObjectId, org.yamcs.protobuf.Yamcs.NamedObjectId.Builder, org.yamcs.protobuf.Yamcs.NamedObjectIdOrBuilder>
getArgumentFieldBuilder() {
if (argumentBuilder_ == null) {
argumentBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
org.yamcs.protobuf.Yamcs.NamedObjectId, org.yamcs.protobuf.Yamcs.NamedObjectId.Builder, org.yamcs.protobuf.Yamcs.NamedObjectIdOrBuilder>(
argument_,
((bitField0_ & 0x00000004) == 0x00000004),
getParentForChildren(),
isClean());
argument_ = null;
}
return argumentBuilder_;
}
// optional string language = 4;
private java.lang.Object language_ = "";
/**
* <code>optional string language = 4;</code>
*
* <pre>
*for USS this is jformula, in the future default should probably be javascript
* </pre>
*/
public boolean hasLanguage() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* <code>optional string language = 4;</code>
*
* <pre>
*for USS this is jformula, in the future default should probably be javascript
* </pre>
*/
public java.lang.String getLanguage() {
java.lang.Object ref = language_;
if (!(ref instanceof java.lang.String)) {
java.lang.String s = ((com.google.protobuf.ByteString) ref)
.toStringUtf8();
language_ = s;
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* <code>optional string language = 4;</code>
*
* <pre>
*for USS this is jformula, in the future default should probably be javascript
* </pre>
*/
public com.google.protobuf.ByteString
getLanguageBytes() {
java.lang.Object ref = language_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
language_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* <code>optional string language = 4;</code>
*
* <pre>
*for USS this is jformula, in the future default should probably be javascript
* </pre>
*/
public Builder setLanguage(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
language_ = value;
onChanged();
return this;
}
/**
* <code>optional string language = 4;</code>
*
* <pre>
*for USS this is jformula, in the future default should probably be javascript
* </pre>
*/
public Builder clearLanguage() {
bitField0_ = (bitField0_ & ~0x00000008);
language_ = getDefaultInstance().getLanguage();
onChanged();
return this;
}
/**
* <code>optional string language = 4;</code>
*
* <pre>
*for USS this is jformula, in the future default should probably be javascript
* </pre>
*/
public Builder setLanguageBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
language_ = value;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:comp.ComputationDef)
}
static {
defaultInstance = new ComputationDef(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:comp.ComputationDef)
}
public interface ComputationDefListOrBuilder
extends com.google.protobuf.MessageOrBuilder {
// repeated .comp.ComputationDef computation = 1;
/**
* <code>repeated .comp.ComputationDef computation = 1;</code>
*/
java.util.List<org.yamcs.protobuf.Comp.ComputationDef>
getComputationList();
/**
* <code>repeated .comp.ComputationDef computation = 1;</code>
*/
org.yamcs.protobuf.Comp.ComputationDef getComputation(int index);
/**
* <code>repeated .comp.ComputationDef computation = 1;</code>
*/
int getComputationCount();
/**
* <code>repeated .comp.ComputationDef computation = 1;</code>
*/
java.util.List<? extends org.yamcs.protobuf.Comp.ComputationDefOrBuilder>
getComputationOrBuilderList();
/**
* <code>repeated .comp.ComputationDef computation = 1;</code>
*/
org.yamcs.protobuf.Comp.ComputationDefOrBuilder getComputationOrBuilder(
int index);
// optional bool abortOnInvalid = 2;
/**
* <code>optional bool abortOnInvalid = 2;</code>
*/
boolean hasAbortOnInvalid();
/**
* <code>optional bool abortOnInvalid = 2;</code>
*/
boolean getAbortOnInvalid();
}
/**
* Protobuf type {@code comp.ComputationDefList}
*/
public static final class ComputationDefList extends
com.google.protobuf.GeneratedMessage
implements ComputationDefListOrBuilder {
// Use ComputationDefList.newBuilder() to construct.
private ComputationDefList(com.google.protobuf.GeneratedMessage.Builder<?> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private ComputationDefList(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final ComputationDefList defaultInstance;
public static ComputationDefList getDefaultInstance() {
return defaultInstance;
}
public ComputationDefList getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ComputationDefList(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
initFields();
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;
default: {
if (!parseUnknownField(input, unknownFields,
extensionRegistry, tag)) {
done = true;
}
break;
}
case 10: {
if (!((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
computation_ = new java.util.ArrayList<org.yamcs.protobuf.Comp.ComputationDef>();
mutable_bitField0_ |= 0x00000001;
}
computation_.add(input.readMessage(org.yamcs.protobuf.Comp.ComputationDef.PARSER, extensionRegistry));
break;
}
case 16: {
bitField0_ |= 0x00000001;
abortOnInvalid_ = input.readBool();
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e.getMessage()).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000001) == 0x00000001)) {
computation_ = java.util.Collections.unmodifiableList(computation_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.Comp.internal_static_comp_ComputationDefList_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.Comp.internal_static_comp_ComputationDefList_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.Comp.ComputationDefList.class, org.yamcs.protobuf.Comp.ComputationDefList.Builder.class);
}
public static com.google.protobuf.Parser<ComputationDefList> PARSER =
new com.google.protobuf.AbstractParser<ComputationDefList>() {
public ComputationDefList parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ComputationDefList(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser<ComputationDefList> getParserForType() {
return PARSER;
}
private int bitField0_;
// repeated .comp.ComputationDef computation = 1;
public static final int COMPUTATION_FIELD_NUMBER = 1;
private java.util.List<org.yamcs.protobuf.Comp.ComputationDef> computation_;
/**
* <code>repeated .comp.ComputationDef computation = 1;</code>
*/
public java.util.List<org.yamcs.protobuf.Comp.ComputationDef> getComputationList() {
return computation_;
}
/**
* <code>repeated .comp.ComputationDef computation = 1;</code>
*/
public java.util.List<? extends org.yamcs.protobuf.Comp.ComputationDefOrBuilder>
getComputationOrBuilderList() {
return computation_;
}
/**
* <code>repeated .comp.ComputationDef computation = 1;</code>
*/
public int getComputationCount() {
return computation_.size();
}
/**
* <code>repeated .comp.ComputationDef computation = 1;</code>
*/
public org.yamcs.protobuf.Comp.ComputationDef getComputation(int index) {
return computation_.get(index);
}
/**
* <code>repeated .comp.ComputationDef computation = 1;</code>
*/
public org.yamcs.protobuf.Comp.ComputationDefOrBuilder getComputationOrBuilder(
int index) {
return computation_.get(index);
}
// optional bool abortOnInvalid = 2;
public static final int ABORTONINVALID_FIELD_NUMBER = 2;
private boolean abortOnInvalid_;
/**
* <code>optional bool abortOnInvalid = 2;</code>
*/
public boolean hasAbortOnInvalid() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* <code>optional bool abortOnInvalid = 2;</code>
*/
public boolean getAbortOnInvalid() {
return abortOnInvalid_;
}
private void initFields() {
computation_ = java.util.Collections.emptyList();
abortOnInvalid_ = false;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized != -1) return isInitialized == 1;
for (int i = 0; i < getComputationCount(); i++) {
if (!getComputation(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
memoizedIsInitialized = 1;
return true;
}
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
getSerializedSize();
for (int i = 0; i < computation_.size(); i++) {
output.writeMessage(1, computation_.get(i));
}
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBool(2, abortOnInvalid_);
}
getUnknownFields().writeTo(output);
}
private int memoizedSerializedSize = -1;
public int getSerializedSize() {
int size = memoizedSerializedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < computation_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, computation_.get(i));
}
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(2, abortOnInvalid_);
}
size += getUnknownFields().getSerializedSize();
memoizedSerializedSize = size;
return size;
}
private static final long serialVersionUID = 0L;
@java.lang.Override
protected java.lang.Object writeReplace()
throws java.io.ObjectStreamException {
return super.writeReplace();
}
public static org.yamcs.protobuf.Comp.ComputationDefList parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.Comp.ComputationDefList 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.Comp.ComputationDefList parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.Comp.ComputationDefList parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.yamcs.protobuf.Comp.ComputationDefList parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.yamcs.protobuf.Comp.ComputationDefList parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.yamcs.protobuf.Comp.ComputationDefList parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.yamcs.protobuf.Comp.ComputationDefList parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.yamcs.protobuf.Comp.ComputationDefList parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.yamcs.protobuf.Comp.ComputationDefList parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static Builder newBuilder() { return Builder.create(); }
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder(org.yamcs.protobuf.Comp.ComputationDefList prototype) {
return newBuilder().mergeFrom(prototype);
}
public Builder toBuilder() { return newBuilder(this); }
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code comp.ComputationDefList}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder<Builder>
implements org.yamcs.protobuf.Comp.ComputationDefListOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.Comp.internal_static_comp_ComputationDefList_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.Comp.internal_static_comp_ComputationDefList_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.Comp.ComputationDefList.class, org.yamcs.protobuf.Comp.ComputationDefList.Builder.class);
}
// Construct using org.yamcs.protobuf.Comp.ComputationDefList.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getComputationFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
if (computationBuilder_ == null) {
computation_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
computationBuilder_.clear();
}
abortOnInvalid_ = false;
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.yamcs.protobuf.Comp.internal_static_comp_ComputationDefList_descriptor;
}
public org.yamcs.protobuf.Comp.ComputationDefList getDefaultInstanceForType() {
return org.yamcs.protobuf.Comp.ComputationDefList.getDefaultInstance();
}
public org.yamcs.protobuf.Comp.ComputationDefList build() {
org.yamcs.protobuf.Comp.ComputationDefList result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.yamcs.protobuf.Comp.ComputationDefList buildPartial() {
org.yamcs.protobuf.Comp.ComputationDefList result = new org.yamcs.protobuf.Comp.ComputationDefList(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (computationBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
computation_ = java.util.Collections.unmodifiableList(computation_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.computation_ = computation_;
} else {
result.computation_ = computationBuilder_.build();
}
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000001;
}
result.abortOnInvalid_ = abortOnInvalid_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.yamcs.protobuf.Comp.ComputationDefList) {
return mergeFrom((org.yamcs.protobuf.Comp.ComputationDefList)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.yamcs.protobuf.Comp.ComputationDefList other) {
if (other == org.yamcs.protobuf.Comp.ComputationDefList.getDefaultInstance()) return this;
if (computationBuilder_ == null) {
if (!other.computation_.isEmpty()) {
if (computation_.isEmpty()) {
computation_ = other.computation_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureComputationIsMutable();
computation_.addAll(other.computation_);
}
onChanged();
}
} else {
if (!other.computation_.isEmpty()) {
if (computationBuilder_.isEmpty()) {
computationBuilder_.dispose();
computationBuilder_ = null;
computation_ = other.computation_;
bitField0_ = (bitField0_ & ~0x00000001);
computationBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getComputationFieldBuilder() : null;
} else {
computationBuilder_.addAllMessages(other.computation_);
}
}
}
if (other.hasAbortOnInvalid()) {
setAbortOnInvalid(other.getAbortOnInvalid());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
for (int i = 0; i < getComputationCount(); i++) {
if (!getComputation(i).isInitialized()) {
return false;
}
}
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.yamcs.protobuf.Comp.ComputationDefList parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.yamcs.protobuf.Comp.ComputationDefList) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
// repeated .comp.ComputationDef computation = 1;
private java.util.List<org.yamcs.protobuf.Comp.ComputationDef> computation_ =
java.util.Collections.emptyList();
private void ensureComputationIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
computation_ = new java.util.ArrayList<org.yamcs.protobuf.Comp.ComputationDef>(computation_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
org.yamcs.protobuf.Comp.ComputationDef, org.yamcs.protobuf.Comp.ComputationDef.Builder, org.yamcs.protobuf.Comp.ComputationDefOrBuilder> computationBuilder_;
/**
* <code>repeated .comp.ComputationDef computation = 1;</code>
*/
public java.util.List<org.yamcs.protobuf.Comp.ComputationDef> getComputationList() {
if (computationBuilder_ == null) {
return java.util.Collections.unmodifiableList(computation_);
} else {
return computationBuilder_.getMessageList();
}
}
/**
* <code>repeated .comp.ComputationDef computation = 1;</code>
*/
public int getComputationCount() {
if (computationBuilder_ == null) {
return computation_.size();
} else {
return computationBuilder_.getCount();
}
}
/**
* <code>repeated .comp.ComputationDef computation = 1;</code>
*/
public org.yamcs.protobuf.Comp.ComputationDef getComputation(int index) {
if (computationBuilder_ == null) {
return computation_.get(index);
} else {
return computationBuilder_.getMessage(index);
}
}
/**
* <code>repeated .comp.ComputationDef computation = 1;</code>
*/
public Builder setComputation(
int index, org.yamcs.protobuf.Comp.ComputationDef value) {
if (computationBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureComputationIsMutable();
computation_.set(index, value);
onChanged();
} else {
computationBuilder_.setMessage(index, value);
}
return this;
}
/**
* <code>repeated .comp.ComputationDef computation = 1;</code>
*/
public Builder setComputation(
int index, org.yamcs.protobuf.Comp.ComputationDef.Builder builderForValue) {
if (computationBuilder_ == null) {
ensureComputationIsMutable();
computation_.set(index, builderForValue.build());
onChanged();
} else {
computationBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* <code>repeated .comp.ComputationDef computation = 1;</code>
*/
public Builder addComputation(org.yamcs.protobuf.Comp.ComputationDef value) {
if (computationBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureComputationIsMutable();
computation_.add(value);
onChanged();
} else {
computationBuilder_.addMessage(value);
}
return this;
}
/**
* <code>repeated .comp.ComputationDef computation = 1;</code>
*/
public Builder addComputation(
int index, org.yamcs.protobuf.Comp.ComputationDef value) {
if (computationBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureComputationIsMutable();
computation_.add(index, value);
onChanged();
} else {
computationBuilder_.addMessage(index, value);
}
return this;
}
/**
* <code>repeated .comp.ComputationDef computation = 1;</code>
*/
public Builder addComputation(
org.yamcs.protobuf.Comp.ComputationDef.Builder builderForValue) {
if (computationBuilder_ == null) {
ensureComputationIsMutable();
computation_.add(builderForValue.build());
onChanged();
} else {
computationBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* <code>repeated .comp.ComputationDef computation = 1;</code>
*/
public Builder addComputation(
int index, org.yamcs.protobuf.Comp.ComputationDef.Builder builderForValue) {
if (computationBuilder_ == null) {
ensureComputationIsMutable();
computation_.add(index, builderForValue.build());
onChanged();
} else {
computationBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* <code>repeated .comp.ComputationDef computation = 1;</code>
*/
public Builder addAllComputation(
java.lang.Iterable<? extends org.yamcs.protobuf.Comp.ComputationDef> values) {
if (computationBuilder_ == null) {
ensureComputationIsMutable();
super.addAll(values, computation_);
onChanged();
} else {
computationBuilder_.addAllMessages(values);
}
return this;
}
/**
* <code>repeated .comp.ComputationDef computation = 1;</code>
*/
public Builder clearComputation() {
if (computationBuilder_ == null) {
computation_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
computationBuilder_.clear();
}
return this;
}
/**
* <code>repeated .comp.ComputationDef computation = 1;</code>
*/
public Builder removeComputation(int index) {
if (computationBuilder_ == null) {
ensureComputationIsMutable();
computation_.remove(index);
onChanged();
} else {
computationBuilder_.remove(index);
}
return this;
}
/**
* <code>repeated .comp.ComputationDef computation = 1;</code>
*/
public org.yamcs.protobuf.Comp.ComputationDef.Builder getComputationBuilder(
int index) {
return getComputationFieldBuilder().getBuilder(index);
}
/**
* <code>repeated .comp.ComputationDef computation = 1;</code>
*/
public org.yamcs.protobuf.Comp.ComputationDefOrBuilder getComputationOrBuilder(
int index) {
if (computationBuilder_ == null) {
return computation_.get(index); } else {
return computationBuilder_.getMessageOrBuilder(index);
}
}
/**
* <code>repeated .comp.ComputationDef computation = 1;</code>
*/
public java.util.List<? extends org.yamcs.protobuf.Comp.ComputationDefOrBuilder>
getComputationOrBuilderList() {
if (computationBuilder_ != null) {
return computationBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(computation_);
}
}
/**
* <code>repeated .comp.ComputationDef computation = 1;</code>
*/
public org.yamcs.protobuf.Comp.ComputationDef.Builder addComputationBuilder() {
return getComputationFieldBuilder().addBuilder(
org.yamcs.protobuf.Comp.ComputationDef.getDefaultInstance());
}
/**
* <code>repeated .comp.ComputationDef computation = 1;</code>
*/
public org.yamcs.protobuf.Comp.ComputationDef.Builder addComputationBuilder(
int index) {
return getComputationFieldBuilder().addBuilder(
index, org.yamcs.protobuf.Comp.ComputationDef.getDefaultInstance());
}
/**
* <code>repeated .comp.ComputationDef computation = 1;</code>
*/
public java.util.List<org.yamcs.protobuf.Comp.ComputationDef.Builder>
getComputationBuilderList() {
return getComputationFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
org.yamcs.protobuf.Comp.ComputationDef, org.yamcs.protobuf.Comp.ComputationDef.Builder, org.yamcs.protobuf.Comp.ComputationDefOrBuilder>
getComputationFieldBuilder() {
if (computationBuilder_ == null) {
computationBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
org.yamcs.protobuf.Comp.ComputationDef, org.yamcs.protobuf.Comp.ComputationDef.Builder, org.yamcs.protobuf.Comp.ComputationDefOrBuilder>(
computation_,
((bitField0_ & 0x00000001) == 0x00000001),
getParentForChildren(),
isClean());
computation_ = null;
}
return computationBuilder_;
}
// optional bool abortOnInvalid = 2;
private boolean abortOnInvalid_ ;
/**
* <code>optional bool abortOnInvalid = 2;</code>
*/
public boolean hasAbortOnInvalid() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* <code>optional bool abortOnInvalid = 2;</code>
*/
public boolean getAbortOnInvalid() {
return abortOnInvalid_;
}
/**
* <code>optional bool abortOnInvalid = 2;</code>
*/
public Builder setAbortOnInvalid(boolean value) {
bitField0_ |= 0x00000002;
abortOnInvalid_ = value;
onChanged();
return this;
}
/**
* <code>optional bool abortOnInvalid = 2;</code>
*/
public Builder clearAbortOnInvalid() {
bitField0_ = (bitField0_ & ~0x00000002);
abortOnInvalid_ = false;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:comp.ComputationDefList)
}
static {
defaultInstance = new ComputationDefList(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:comp.ComputationDefList)
}
private static com.google.protobuf.Descriptors.Descriptor
internal_static_comp_ComputationDef_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_comp_ComputationDef_fieldAccessorTable;
private static com.google.protobuf.Descriptors.Descriptor
internal_static_comp_ComputationDefList_descriptor;
private static
com.google.protobuf.GeneratedMessage.FieldAccessorTable
internal_static_comp_ComputationDefList_fieldAccessorTable;
public static com.google.protobuf.Descriptors.FileDescriptor
getDescriptor() {
return descriptor;
}
private static com.google.protobuf.Descriptors.FileDescriptor
descriptor;
static {
java.lang.String[] descriptorData = {
"\n\ncomp.proto\022\004comp\032\013yamcs.proto\"l\n\016Compu" +
"tationDef\022\014\n\004name\030\001 \002(\t\022\022\n\nexpression\030\002 " +
"\002(\t\022&\n\010argument\030\003 \003(\0132\024.yamcs.NamedObjec" +
"tId\022\020\n\010language\030\004 \001(\t\"W\n\022ComputationDefL" +
"ist\022)\n\013computation\030\001 \003(\0132\024.comp.Computat" +
"ionDef\022\026\n\016abortOnInvalid\030\002 \001(\010B\024\n\022org.ya" +
"mcs.protobuf"
};
com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner assigner =
new com.google.protobuf.Descriptors.FileDescriptor.InternalDescriptorAssigner() {
public com.google.protobuf.ExtensionRegistry assignDescriptors(
com.google.protobuf.Descriptors.FileDescriptor root) {
descriptor = root;
internal_static_comp_ComputationDef_descriptor =
getDescriptor().getMessageTypes().get(0);
internal_static_comp_ComputationDef_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_comp_ComputationDef_descriptor,
new java.lang.String[] { "Name", "Expression", "Argument", "Language", });
internal_static_comp_ComputationDefList_descriptor =
getDescriptor().getMessageTypes().get(1);
internal_static_comp_ComputationDefList_fieldAccessorTable = new
com.google.protobuf.GeneratedMessage.FieldAccessorTable(
internal_static_comp_ComputationDefList_descriptor,
new java.lang.String[] { "Computation", "AbortOnInvalid", });
return null;
}
};
com.google.protobuf.Descriptors.FileDescriptor
.internalBuildGeneratedFileFrom(descriptorData,
new com.google.protobuf.Descriptors.FileDescriptor[] {
org.yamcs.protobuf.Yamcs.getDescriptor(),
}, assigner);
}
// @@protoc_insertion_point(outer_class_scope)
}