org.yamcs.protobuf.Rest 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: rest.proto
package org.yamcs.protobuf;
public final class Rest {
private Rest() {}
public static void registerAllExtensions(
com.google.protobuf.ExtensionRegistry registry) {
}
public interface GetApiOverviewResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:parameters.GetApiOverviewResponse)
com.google.protobuf.MessageOrBuilder {
/**
* optional string yamcsVersion = 1;
*/
boolean hasYamcsVersion();
/**
* optional string yamcsVersion = 1;
*/
java.lang.String getYamcsVersion();
/**
* optional string yamcsVersion = 1;
*/
com.google.protobuf.ByteString
getYamcsVersionBytes();
/**
* optional string serverId = 2;
*/
boolean hasServerId();
/**
* optional string serverId = 2;
*/
java.lang.String getServerId();
/**
* optional string serverId = 2;
*/
com.google.protobuf.ByteString
getServerIdBytes();
/**
* optional string defaultYamcsInstance = 3;
*/
boolean hasDefaultYamcsInstance();
/**
* optional string defaultYamcsInstance = 3;
*/
java.lang.String getDefaultYamcsInstance();
/**
* optional string defaultYamcsInstance = 3;
*/
com.google.protobuf.ByteString
getDefaultYamcsInstanceBytes();
/**
* repeated .parameters.GetApiOverviewResponse.RouteInfo route = 4;
*/
java.util.List
getRouteList();
/**
* repeated .parameters.GetApiOverviewResponse.RouteInfo route = 4;
*/
org.yamcs.protobuf.Rest.GetApiOverviewResponse.RouteInfo getRoute(int index);
/**
* repeated .parameters.GetApiOverviewResponse.RouteInfo route = 4;
*/
int getRouteCount();
/**
* repeated .parameters.GetApiOverviewResponse.RouteInfo route = 4;
*/
java.util.List extends org.yamcs.protobuf.Rest.GetApiOverviewResponse.RouteInfoOrBuilder>
getRouteOrBuilderList();
/**
* repeated .parameters.GetApiOverviewResponse.RouteInfo route = 4;
*/
org.yamcs.protobuf.Rest.GetApiOverviewResponse.RouteInfoOrBuilder getRouteOrBuilder(
int index);
/**
* repeated .parameters.GetApiOverviewResponse.PluginInfo plugin = 5;
*/
java.util.List
getPluginList();
/**
* repeated .parameters.GetApiOverviewResponse.PluginInfo plugin = 5;
*/
org.yamcs.protobuf.Rest.GetApiOverviewResponse.PluginInfo getPlugin(int index);
/**
* repeated .parameters.GetApiOverviewResponse.PluginInfo plugin = 5;
*/
int getPluginCount();
/**
* repeated .parameters.GetApiOverviewResponse.PluginInfo plugin = 5;
*/
java.util.List extends org.yamcs.protobuf.Rest.GetApiOverviewResponse.PluginInfoOrBuilder>
getPluginOrBuilderList();
/**
* repeated .parameters.GetApiOverviewResponse.PluginInfo plugin = 5;
*/
org.yamcs.protobuf.Rest.GetApiOverviewResponse.PluginInfoOrBuilder getPluginOrBuilder(
int index);
}
/**
* Protobuf type {@code parameters.GetApiOverviewResponse}
*/
public static final class GetApiOverviewResponse extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:parameters.GetApiOverviewResponse)
GetApiOverviewResponseOrBuilder {
// Use GetApiOverviewResponse.newBuilder() to construct.
private GetApiOverviewResponse(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private GetApiOverviewResponse(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final GetApiOverviewResponse defaultInstance;
public static GetApiOverviewResponse getDefaultInstance() {
return defaultInstance;
}
public GetApiOverviewResponse getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private GetApiOverviewResponse(
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: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
yamcsVersion_ = bs;
break;
}
case 18: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000002;
serverId_ = bs;
break;
}
case 26: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000004;
defaultYamcsInstance_ = bs;
break;
}
case 34: {
if (!((mutable_bitField0_ & 0x00000008) == 0x00000008)) {
route_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000008;
}
route_.add(input.readMessage(org.yamcs.protobuf.Rest.GetApiOverviewResponse.RouteInfo.PARSER, extensionRegistry));
break;
}
case 42: {
if (!((mutable_bitField0_ & 0x00000010) == 0x00000010)) {
plugin_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000010;
}
plugin_.add(input.readMessage(org.yamcs.protobuf.Rest.GetApiOverviewResponse.PluginInfo.PARSER, extensionRegistry));
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_ & 0x00000008) == 0x00000008)) {
route_ = java.util.Collections.unmodifiableList(route_);
}
if (((mutable_bitField0_ & 0x00000010) == 0x00000010)) {
plugin_ = java.util.Collections.unmodifiableList(plugin_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.Rest.internal_static_parameters_GetApiOverviewResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.Rest.internal_static_parameters_GetApiOverviewResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.Rest.GetApiOverviewResponse.class, org.yamcs.protobuf.Rest.GetApiOverviewResponse.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public GetApiOverviewResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new GetApiOverviewResponse(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public interface RouteInfoOrBuilder extends
// @@protoc_insertion_point(interface_extends:parameters.GetApiOverviewResponse.RouteInfo)
com.google.protobuf.MessageOrBuilder {
/**
* optional string url = 1;
*/
boolean hasUrl();
/**
* optional string url = 1;
*/
java.lang.String getUrl();
/**
* optional string url = 1;
*/
com.google.protobuf.ByteString
getUrlBytes();
/**
* repeated string method = 2;
*/
com.google.protobuf.ProtocolStringList
getMethodList();
/**
* repeated string method = 2;
*/
int getMethodCount();
/**
* repeated string method = 2;
*/
java.lang.String getMethod(int index);
/**
* repeated string method = 2;
*/
com.google.protobuf.ByteString
getMethodBytes(int index);
}
/**
* Protobuf type {@code parameters.GetApiOverviewResponse.RouteInfo}
*/
public static final class RouteInfo extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:parameters.GetApiOverviewResponse.RouteInfo)
RouteInfoOrBuilder {
// Use RouteInfo.newBuilder() to construct.
private RouteInfo(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private RouteInfo(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final RouteInfo defaultInstance;
public static RouteInfo getDefaultInstance() {
return defaultInstance;
}
public RouteInfo getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private RouteInfo(
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: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
url_ = bs;
break;
}
case 18: {
com.google.protobuf.ByteString bs = input.readBytes();
if (!((mutable_bitField0_ & 0x00000002) == 0x00000002)) {
method_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000002;
}
method_.add(bs);
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_ & 0x00000002) == 0x00000002)) {
method_ = method_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.Rest.internal_static_parameters_GetApiOverviewResponse_RouteInfo_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.Rest.internal_static_parameters_GetApiOverviewResponse_RouteInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.Rest.GetApiOverviewResponse.RouteInfo.class, org.yamcs.protobuf.Rest.GetApiOverviewResponse.RouteInfo.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public RouteInfo parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new RouteInfo(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
public static final int URL_FIELD_NUMBER = 1;
private java.lang.Object url_;
/**
* optional string url = 1;
*/
public boolean hasUrl() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional string url = 1;
*/
public java.lang.String getUrl() {
java.lang.Object ref = url_;
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()) {
url_ = s;
}
return s;
}
}
/**
* optional string url = 1;
*/
public com.google.protobuf.ByteString
getUrlBytes() {
java.lang.Object ref = url_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
url_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int METHOD_FIELD_NUMBER = 2;
private com.google.protobuf.LazyStringList method_;
/**
* repeated string method = 2;
*/
public com.google.protobuf.ProtocolStringList
getMethodList() {
return method_;
}
/**
* repeated string method = 2;
*/
public int getMethodCount() {
return method_.size();
}
/**
* repeated string method = 2;
*/
public java.lang.String getMethod(int index) {
return method_.get(index);
}
/**
* repeated string method = 2;
*/
public com.google.protobuf.ByteString
getMethodBytes(int index) {
return method_.getByteString(index);
}
private void initFields() {
url_ = "";
method_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 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, getUrlBytes());
}
for (int i = 0; i < method_.size(); i++) {
output.writeBytes(2, method_.getByteString(i));
}
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, getUrlBytes());
}
{
int dataSize = 0;
for (int i = 0; i < method_.size(); i++) {
dataSize += com.google.protobuf.CodedOutputStream
.computeBytesSizeNoTag(method_.getByteString(i));
}
size += dataSize;
size += 1 * getMethodList().size();
}
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.Rest.GetApiOverviewResponse.RouteInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.Rest.GetApiOverviewResponse.RouteInfo 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.Rest.GetApiOverviewResponse.RouteInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.Rest.GetApiOverviewResponse.RouteInfo parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.yamcs.protobuf.Rest.GetApiOverviewResponse.RouteInfo parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.yamcs.protobuf.Rest.GetApiOverviewResponse.RouteInfo parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.yamcs.protobuf.Rest.GetApiOverviewResponse.RouteInfo parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.yamcs.protobuf.Rest.GetApiOverviewResponse.RouteInfo parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.yamcs.protobuf.Rest.GetApiOverviewResponse.RouteInfo parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.yamcs.protobuf.Rest.GetApiOverviewResponse.RouteInfo 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.Rest.GetApiOverviewResponse.RouteInfo 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 parameters.GetApiOverviewResponse.RouteInfo}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:parameters.GetApiOverviewResponse.RouteInfo)
org.yamcs.protobuf.Rest.GetApiOverviewResponse.RouteInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.Rest.internal_static_parameters_GetApiOverviewResponse_RouteInfo_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.Rest.internal_static_parameters_GetApiOverviewResponse_RouteInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.Rest.GetApiOverviewResponse.RouteInfo.class, org.yamcs.protobuf.Rest.GetApiOverviewResponse.RouteInfo.Builder.class);
}
// Construct using org.yamcs.protobuf.Rest.GetApiOverviewResponse.RouteInfo.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
url_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
method_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.yamcs.protobuf.Rest.internal_static_parameters_GetApiOverviewResponse_RouteInfo_descriptor;
}
public org.yamcs.protobuf.Rest.GetApiOverviewResponse.RouteInfo getDefaultInstanceForType() {
return org.yamcs.protobuf.Rest.GetApiOverviewResponse.RouteInfo.getDefaultInstance();
}
public org.yamcs.protobuf.Rest.GetApiOverviewResponse.RouteInfo build() {
org.yamcs.protobuf.Rest.GetApiOverviewResponse.RouteInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.yamcs.protobuf.Rest.GetApiOverviewResponse.RouteInfo buildPartial() {
org.yamcs.protobuf.Rest.GetApiOverviewResponse.RouteInfo result = new org.yamcs.protobuf.Rest.GetApiOverviewResponse.RouteInfo(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.url_ = url_;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
method_ = method_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000002);
}
result.method_ = method_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.yamcs.protobuf.Rest.GetApiOverviewResponse.RouteInfo) {
return mergeFrom((org.yamcs.protobuf.Rest.GetApiOverviewResponse.RouteInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.yamcs.protobuf.Rest.GetApiOverviewResponse.RouteInfo other) {
if (other == org.yamcs.protobuf.Rest.GetApiOverviewResponse.RouteInfo.getDefaultInstance()) return this;
if (other.hasUrl()) {
bitField0_ |= 0x00000001;
url_ = other.url_;
onChanged();
}
if (!other.method_.isEmpty()) {
if (method_.isEmpty()) {
method_ = other.method_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureMethodIsMutable();
method_.addAll(other.method_);
}
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.yamcs.protobuf.Rest.GetApiOverviewResponse.RouteInfo parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.yamcs.protobuf.Rest.GetApiOverviewResponse.RouteInfo) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object url_ = "";
/**
* optional string url = 1;
*/
public boolean hasUrl() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional string url = 1;
*/
public java.lang.String getUrl() {
java.lang.Object ref = url_;
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()) {
url_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string url = 1;
*/
public com.google.protobuf.ByteString
getUrlBytes() {
java.lang.Object ref = url_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
url_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string url = 1;
*/
public Builder setUrl(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
url_ = value;
onChanged();
return this;
}
/**
* optional string url = 1;
*/
public Builder clearUrl() {
bitField0_ = (bitField0_ & ~0x00000001);
url_ = getDefaultInstance().getUrl();
onChanged();
return this;
}
/**
* optional string url = 1;
*/
public Builder setUrlBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
url_ = value;
onChanged();
return this;
}
private com.google.protobuf.LazyStringList method_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureMethodIsMutable() {
if (!((bitField0_ & 0x00000002) == 0x00000002)) {
method_ = new com.google.protobuf.LazyStringArrayList(method_);
bitField0_ |= 0x00000002;
}
}
/**
* repeated string method = 2;
*/
public com.google.protobuf.ProtocolStringList
getMethodList() {
return method_.getUnmodifiableView();
}
/**
* repeated string method = 2;
*/
public int getMethodCount() {
return method_.size();
}
/**
* repeated string method = 2;
*/
public java.lang.String getMethod(int index) {
return method_.get(index);
}
/**
* repeated string method = 2;
*/
public com.google.protobuf.ByteString
getMethodBytes(int index) {
return method_.getByteString(index);
}
/**
* repeated string method = 2;
*/
public Builder setMethod(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureMethodIsMutable();
method_.set(index, value);
onChanged();
return this;
}
/**
* repeated string method = 2;
*/
public Builder addMethod(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureMethodIsMutable();
method_.add(value);
onChanged();
return this;
}
/**
* repeated string method = 2;
*/
public Builder addAllMethod(
java.lang.Iterable values) {
ensureMethodIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, method_);
onChanged();
return this;
}
/**
* repeated string method = 2;
*/
public Builder clearMethod() {
method_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
return this;
}
/**
* repeated string method = 2;
*/
public Builder addMethodBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureMethodIsMutable();
method_.add(value);
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:parameters.GetApiOverviewResponse.RouteInfo)
}
static {
defaultInstance = new RouteInfo(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:parameters.GetApiOverviewResponse.RouteInfo)
}
public interface PluginInfoOrBuilder extends
// @@protoc_insertion_point(interface_extends:parameters.GetApiOverviewResponse.PluginInfo)
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 description = 2;
*/
boolean hasDescription();
/**
* optional string description = 2;
*/
java.lang.String getDescription();
/**
* optional string description = 2;
*/
com.google.protobuf.ByteString
getDescriptionBytes();
/**
* optional string version = 3;
*/
boolean hasVersion();
/**
* optional string version = 3;
*/
java.lang.String getVersion();
/**
* optional string version = 3;
*/
com.google.protobuf.ByteString
getVersionBytes();
/**
* optional string vendor = 4;
*/
boolean hasVendor();
/**
* optional string vendor = 4;
*/
java.lang.String getVendor();
/**
* optional string vendor = 4;
*/
com.google.protobuf.ByteString
getVendorBytes();
}
/**
* Protobuf type {@code parameters.GetApiOverviewResponse.PluginInfo}
*/
public static final class PluginInfo extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:parameters.GetApiOverviewResponse.PluginInfo)
PluginInfoOrBuilder {
// Use PluginInfo.newBuilder() to construct.
private PluginInfo(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private PluginInfo(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final PluginInfo defaultInstance;
public static PluginInfo getDefaultInstance() {
return defaultInstance;
}
public PluginInfo getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private PluginInfo(
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: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
name_ = bs;
break;
}
case 18: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000002;
description_ = bs;
break;
}
case 26: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000004;
version_ = bs;
break;
}
case 34: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000008;
vendor_ = bs;
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 {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.Rest.internal_static_parameters_GetApiOverviewResponse_PluginInfo_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.Rest.internal_static_parameters_GetApiOverviewResponse_PluginInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.Rest.GetApiOverviewResponse.PluginInfo.class, org.yamcs.protobuf.Rest.GetApiOverviewResponse.PluginInfo.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public PluginInfo parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new PluginInfo(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
public static final int NAME_FIELD_NUMBER = 1;
private java.lang.Object name_;
/**
* optional string name = 1;
*/
public boolean hasName() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* 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 DESCRIPTION_FIELD_NUMBER = 2;
private java.lang.Object description_;
/**
* optional string description = 2;
*/
public boolean hasDescription() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional string description = 2;
*/
public java.lang.String getDescription() {
java.lang.Object ref = description_;
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()) {
description_ = s;
}
return s;
}
}
/**
* optional string description = 2;
*/
public com.google.protobuf.ByteString
getDescriptionBytes() {
java.lang.Object ref = description_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
description_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int VERSION_FIELD_NUMBER = 3;
private java.lang.Object version_;
/**
* optional string version = 3;
*/
public boolean hasVersion() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional string version = 3;
*/
public java.lang.String getVersion() {
java.lang.Object ref = version_;
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()) {
version_ = s;
}
return s;
}
}
/**
* optional string version = 3;
*/
public com.google.protobuf.ByteString
getVersionBytes() {
java.lang.Object ref = version_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
version_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int VENDOR_FIELD_NUMBER = 4;
private java.lang.Object vendor_;
/**
* optional string vendor = 4;
*/
public boolean hasVendor() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional string vendor = 4;
*/
public java.lang.String getVendor() {
java.lang.Object ref = vendor_;
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()) {
vendor_ = s;
}
return s;
}
}
/**
* optional string vendor = 4;
*/
public com.google.protobuf.ByteString
getVendorBytes() {
java.lang.Object ref = vendor_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
vendor_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private void initFields() {
name_ = "";
description_ = "";
version_ = "";
vendor_ = "";
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 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, getDescriptionBytes());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeBytes(3, getVersionBytes());
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
output.writeBytes(4, getVendorBytes());
}
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, getDescriptionBytes());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(3, getVersionBytes());
}
if (((bitField0_ & 0x00000008) == 0x00000008)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(4, getVendorBytes());
}
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.Rest.GetApiOverviewResponse.PluginInfo parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.Rest.GetApiOverviewResponse.PluginInfo 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.Rest.GetApiOverviewResponse.PluginInfo parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.Rest.GetApiOverviewResponse.PluginInfo parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.yamcs.protobuf.Rest.GetApiOverviewResponse.PluginInfo parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.yamcs.protobuf.Rest.GetApiOverviewResponse.PluginInfo parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.yamcs.protobuf.Rest.GetApiOverviewResponse.PluginInfo parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.yamcs.protobuf.Rest.GetApiOverviewResponse.PluginInfo parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.yamcs.protobuf.Rest.GetApiOverviewResponse.PluginInfo parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.yamcs.protobuf.Rest.GetApiOverviewResponse.PluginInfo 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.Rest.GetApiOverviewResponse.PluginInfo 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 parameters.GetApiOverviewResponse.PluginInfo}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:parameters.GetApiOverviewResponse.PluginInfo)
org.yamcs.protobuf.Rest.GetApiOverviewResponse.PluginInfoOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.Rest.internal_static_parameters_GetApiOverviewResponse_PluginInfo_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.Rest.internal_static_parameters_GetApiOverviewResponse_PluginInfo_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.Rest.GetApiOverviewResponse.PluginInfo.class, org.yamcs.protobuf.Rest.GetApiOverviewResponse.PluginInfo.Builder.class);
}
// Construct using org.yamcs.protobuf.Rest.GetApiOverviewResponse.PluginInfo.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
name_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
description_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
version_ = "";
bitField0_ = (bitField0_ & ~0x00000004);
vendor_ = "";
bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.yamcs.protobuf.Rest.internal_static_parameters_GetApiOverviewResponse_PluginInfo_descriptor;
}
public org.yamcs.protobuf.Rest.GetApiOverviewResponse.PluginInfo getDefaultInstanceForType() {
return org.yamcs.protobuf.Rest.GetApiOverviewResponse.PluginInfo.getDefaultInstance();
}
public org.yamcs.protobuf.Rest.GetApiOverviewResponse.PluginInfo build() {
org.yamcs.protobuf.Rest.GetApiOverviewResponse.PluginInfo result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.yamcs.protobuf.Rest.GetApiOverviewResponse.PluginInfo buildPartial() {
org.yamcs.protobuf.Rest.GetApiOverviewResponse.PluginInfo result = new org.yamcs.protobuf.Rest.GetApiOverviewResponse.PluginInfo(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.description_ = description_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.version_ = version_;
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000008;
}
result.vendor_ = vendor_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.yamcs.protobuf.Rest.GetApiOverviewResponse.PluginInfo) {
return mergeFrom((org.yamcs.protobuf.Rest.GetApiOverviewResponse.PluginInfo)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.yamcs.protobuf.Rest.GetApiOverviewResponse.PluginInfo other) {
if (other == org.yamcs.protobuf.Rest.GetApiOverviewResponse.PluginInfo.getDefaultInstance()) return this;
if (other.hasName()) {
bitField0_ |= 0x00000001;
name_ = other.name_;
onChanged();
}
if (other.hasDescription()) {
bitField0_ |= 0x00000002;
description_ = other.description_;
onChanged();
}
if (other.hasVersion()) {
bitField0_ |= 0x00000004;
version_ = other.version_;
onChanged();
}
if (other.hasVendor()) {
bitField0_ |= 0x00000008;
vendor_ = other.vendor_;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.yamcs.protobuf.Rest.GetApiOverviewResponse.PluginInfo parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.yamcs.protobuf.Rest.GetApiOverviewResponse.PluginInfo) e.getUnfinishedMessage();
throw e;
} 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) == 0x00000001);
}
/**
* 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 description_ = "";
/**
* optional string description = 2;
*/
public boolean hasDescription() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional string description = 2;
*/
public java.lang.String getDescription() {
java.lang.Object ref = description_;
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()) {
description_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string description = 2;
*/
public com.google.protobuf.ByteString
getDescriptionBytes() {
java.lang.Object ref = description_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
description_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string description = 2;
*/
public Builder setDescription(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
description_ = value;
onChanged();
return this;
}
/**
* optional string description = 2;
*/
public Builder clearDescription() {
bitField0_ = (bitField0_ & ~0x00000002);
description_ = getDefaultInstance().getDescription();
onChanged();
return this;
}
/**
* optional string description = 2;
*/
public Builder setDescriptionBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
description_ = value;
onChanged();
return this;
}
private java.lang.Object version_ = "";
/**
* optional string version = 3;
*/
public boolean hasVersion() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional string version = 3;
*/
public java.lang.String getVersion() {
java.lang.Object ref = version_;
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()) {
version_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string version = 3;
*/
public com.google.protobuf.ByteString
getVersionBytes() {
java.lang.Object ref = version_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
version_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string version = 3;
*/
public Builder setVersion(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
version_ = value;
onChanged();
return this;
}
/**
* optional string version = 3;
*/
public Builder clearVersion() {
bitField0_ = (bitField0_ & ~0x00000004);
version_ = getDefaultInstance().getVersion();
onChanged();
return this;
}
/**
* optional string version = 3;
*/
public Builder setVersionBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
version_ = value;
onChanged();
return this;
}
private java.lang.Object vendor_ = "";
/**
* optional string vendor = 4;
*/
public boolean hasVendor() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional string vendor = 4;
*/
public java.lang.String getVendor() {
java.lang.Object ref = vendor_;
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()) {
vendor_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string vendor = 4;
*/
public com.google.protobuf.ByteString
getVendorBytes() {
java.lang.Object ref = vendor_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
vendor_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string vendor = 4;
*/
public Builder setVendor(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
vendor_ = value;
onChanged();
return this;
}
/**
* optional string vendor = 4;
*/
public Builder clearVendor() {
bitField0_ = (bitField0_ & ~0x00000008);
vendor_ = getDefaultInstance().getVendor();
onChanged();
return this;
}
/**
* optional string vendor = 4;
*/
public Builder setVendorBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
vendor_ = value;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:parameters.GetApiOverviewResponse.PluginInfo)
}
static {
defaultInstance = new PluginInfo(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:parameters.GetApiOverviewResponse.PluginInfo)
}
private int bitField0_;
public static final int YAMCSVERSION_FIELD_NUMBER = 1;
private java.lang.Object yamcsVersion_;
/**
* optional string yamcsVersion = 1;
*/
public boolean hasYamcsVersion() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional string yamcsVersion = 1;
*/
public java.lang.String getYamcsVersion() {
java.lang.Object ref = yamcsVersion_;
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()) {
yamcsVersion_ = s;
}
return s;
}
}
/**
* optional string yamcsVersion = 1;
*/
public com.google.protobuf.ByteString
getYamcsVersionBytes() {
java.lang.Object ref = yamcsVersion_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
yamcsVersion_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SERVERID_FIELD_NUMBER = 2;
private java.lang.Object serverId_;
/**
* optional string serverId = 2;
*/
public boolean hasServerId() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional string serverId = 2;
*/
public java.lang.String getServerId() {
java.lang.Object ref = serverId_;
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()) {
serverId_ = s;
}
return s;
}
}
/**
* optional string serverId = 2;
*/
public com.google.protobuf.ByteString
getServerIdBytes() {
java.lang.Object ref = serverId_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
serverId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int DEFAULTYAMCSINSTANCE_FIELD_NUMBER = 3;
private java.lang.Object defaultYamcsInstance_;
/**
* optional string defaultYamcsInstance = 3;
*/
public boolean hasDefaultYamcsInstance() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional string defaultYamcsInstance = 3;
*/
public java.lang.String getDefaultYamcsInstance() {
java.lang.Object ref = defaultYamcsInstance_;
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()) {
defaultYamcsInstance_ = s;
}
return s;
}
}
/**
* optional string defaultYamcsInstance = 3;
*/
public com.google.protobuf.ByteString
getDefaultYamcsInstanceBytes() {
java.lang.Object ref = defaultYamcsInstance_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
defaultYamcsInstance_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ROUTE_FIELD_NUMBER = 4;
private java.util.List route_;
/**
* repeated .parameters.GetApiOverviewResponse.RouteInfo route = 4;
*/
public java.util.List getRouteList() {
return route_;
}
/**
* repeated .parameters.GetApiOverviewResponse.RouteInfo route = 4;
*/
public java.util.List extends org.yamcs.protobuf.Rest.GetApiOverviewResponse.RouteInfoOrBuilder>
getRouteOrBuilderList() {
return route_;
}
/**
* repeated .parameters.GetApiOverviewResponse.RouteInfo route = 4;
*/
public int getRouteCount() {
return route_.size();
}
/**
* repeated .parameters.GetApiOverviewResponse.RouteInfo route = 4;
*/
public org.yamcs.protobuf.Rest.GetApiOverviewResponse.RouteInfo getRoute(int index) {
return route_.get(index);
}
/**
* repeated .parameters.GetApiOverviewResponse.RouteInfo route = 4;
*/
public org.yamcs.protobuf.Rest.GetApiOverviewResponse.RouteInfoOrBuilder getRouteOrBuilder(
int index) {
return route_.get(index);
}
public static final int PLUGIN_FIELD_NUMBER = 5;
private java.util.List plugin_;
/**
* repeated .parameters.GetApiOverviewResponse.PluginInfo plugin = 5;
*/
public java.util.List getPluginList() {
return plugin_;
}
/**
* repeated .parameters.GetApiOverviewResponse.PluginInfo plugin = 5;
*/
public java.util.List extends org.yamcs.protobuf.Rest.GetApiOverviewResponse.PluginInfoOrBuilder>
getPluginOrBuilderList() {
return plugin_;
}
/**
* repeated .parameters.GetApiOverviewResponse.PluginInfo plugin = 5;
*/
public int getPluginCount() {
return plugin_.size();
}
/**
* repeated .parameters.GetApiOverviewResponse.PluginInfo plugin = 5;
*/
public org.yamcs.protobuf.Rest.GetApiOverviewResponse.PluginInfo getPlugin(int index) {
return plugin_.get(index);
}
/**
* repeated .parameters.GetApiOverviewResponse.PluginInfo plugin = 5;
*/
public org.yamcs.protobuf.Rest.GetApiOverviewResponse.PluginInfoOrBuilder getPluginOrBuilder(
int index) {
return plugin_.get(index);
}
private void initFields() {
yamcsVersion_ = "";
serverId_ = "";
defaultYamcsInstance_ = "";
route_ = java.util.Collections.emptyList();
plugin_ = java.util.Collections.emptyList();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 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, getYamcsVersionBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeBytes(2, getServerIdBytes());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeBytes(3, getDefaultYamcsInstanceBytes());
}
for (int i = 0; i < route_.size(); i++) {
output.writeMessage(4, route_.get(i));
}
for (int i = 0; i < plugin_.size(); i++) {
output.writeMessage(5, plugin_.get(i));
}
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, getYamcsVersionBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, getServerIdBytes());
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(3, getDefaultYamcsInstanceBytes());
}
for (int i = 0; i < route_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(4, route_.get(i));
}
for (int i = 0; i < plugin_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, plugin_.get(i));
}
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.Rest.GetApiOverviewResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.Rest.GetApiOverviewResponse 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.Rest.GetApiOverviewResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.Rest.GetApiOverviewResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.yamcs.protobuf.Rest.GetApiOverviewResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.yamcs.protobuf.Rest.GetApiOverviewResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.yamcs.protobuf.Rest.GetApiOverviewResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.yamcs.protobuf.Rest.GetApiOverviewResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.yamcs.protobuf.Rest.GetApiOverviewResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.yamcs.protobuf.Rest.GetApiOverviewResponse 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.Rest.GetApiOverviewResponse 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 parameters.GetApiOverviewResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:parameters.GetApiOverviewResponse)
org.yamcs.protobuf.Rest.GetApiOverviewResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.Rest.internal_static_parameters_GetApiOverviewResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.Rest.internal_static_parameters_GetApiOverviewResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.Rest.GetApiOverviewResponse.class, org.yamcs.protobuf.Rest.GetApiOverviewResponse.Builder.class);
}
// Construct using org.yamcs.protobuf.Rest.GetApiOverviewResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getRouteFieldBuilder();
getPluginFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
yamcsVersion_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
serverId_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
defaultYamcsInstance_ = "";
bitField0_ = (bitField0_ & ~0x00000004);
if (routeBuilder_ == null) {
route_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
} else {
routeBuilder_.clear();
}
if (pluginBuilder_ == null) {
plugin_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000010);
} else {
pluginBuilder_.clear();
}
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.yamcs.protobuf.Rest.internal_static_parameters_GetApiOverviewResponse_descriptor;
}
public org.yamcs.protobuf.Rest.GetApiOverviewResponse getDefaultInstanceForType() {
return org.yamcs.protobuf.Rest.GetApiOverviewResponse.getDefaultInstance();
}
public org.yamcs.protobuf.Rest.GetApiOverviewResponse build() {
org.yamcs.protobuf.Rest.GetApiOverviewResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.yamcs.protobuf.Rest.GetApiOverviewResponse buildPartial() {
org.yamcs.protobuf.Rest.GetApiOverviewResponse result = new org.yamcs.protobuf.Rest.GetApiOverviewResponse(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.yamcsVersion_ = yamcsVersion_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.serverId_ = serverId_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000004;
}
result.defaultYamcsInstance_ = defaultYamcsInstance_;
if (routeBuilder_ == null) {
if (((bitField0_ & 0x00000008) == 0x00000008)) {
route_ = java.util.Collections.unmodifiableList(route_);
bitField0_ = (bitField0_ & ~0x00000008);
}
result.route_ = route_;
} else {
result.route_ = routeBuilder_.build();
}
if (pluginBuilder_ == null) {
if (((bitField0_ & 0x00000010) == 0x00000010)) {
plugin_ = java.util.Collections.unmodifiableList(plugin_);
bitField0_ = (bitField0_ & ~0x00000010);
}
result.plugin_ = plugin_;
} else {
result.plugin_ = pluginBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.yamcs.protobuf.Rest.GetApiOverviewResponse) {
return mergeFrom((org.yamcs.protobuf.Rest.GetApiOverviewResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.yamcs.protobuf.Rest.GetApiOverviewResponse other) {
if (other == org.yamcs.protobuf.Rest.GetApiOverviewResponse.getDefaultInstance()) return this;
if (other.hasYamcsVersion()) {
bitField0_ |= 0x00000001;
yamcsVersion_ = other.yamcsVersion_;
onChanged();
}
if (other.hasServerId()) {
bitField0_ |= 0x00000002;
serverId_ = other.serverId_;
onChanged();
}
if (other.hasDefaultYamcsInstance()) {
bitField0_ |= 0x00000004;
defaultYamcsInstance_ = other.defaultYamcsInstance_;
onChanged();
}
if (routeBuilder_ == null) {
if (!other.route_.isEmpty()) {
if (route_.isEmpty()) {
route_ = other.route_;
bitField0_ = (bitField0_ & ~0x00000008);
} else {
ensureRouteIsMutable();
route_.addAll(other.route_);
}
onChanged();
}
} else {
if (!other.route_.isEmpty()) {
if (routeBuilder_.isEmpty()) {
routeBuilder_.dispose();
routeBuilder_ = null;
route_ = other.route_;
bitField0_ = (bitField0_ & ~0x00000008);
routeBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getRouteFieldBuilder() : null;
} else {
routeBuilder_.addAllMessages(other.route_);
}
}
}
if (pluginBuilder_ == null) {
if (!other.plugin_.isEmpty()) {
if (plugin_.isEmpty()) {
plugin_ = other.plugin_;
bitField0_ = (bitField0_ & ~0x00000010);
} else {
ensurePluginIsMutable();
plugin_.addAll(other.plugin_);
}
onChanged();
}
} else {
if (!other.plugin_.isEmpty()) {
if (pluginBuilder_.isEmpty()) {
pluginBuilder_.dispose();
pluginBuilder_ = null;
plugin_ = other.plugin_;
bitField0_ = (bitField0_ & ~0x00000010);
pluginBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getPluginFieldBuilder() : null;
} else {
pluginBuilder_.addAllMessages(other.plugin_);
}
}
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.yamcs.protobuf.Rest.GetApiOverviewResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.yamcs.protobuf.Rest.GetApiOverviewResponse) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object yamcsVersion_ = "";
/**
* optional string yamcsVersion = 1;
*/
public boolean hasYamcsVersion() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional string yamcsVersion = 1;
*/
public java.lang.String getYamcsVersion() {
java.lang.Object ref = yamcsVersion_;
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()) {
yamcsVersion_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string yamcsVersion = 1;
*/
public com.google.protobuf.ByteString
getYamcsVersionBytes() {
java.lang.Object ref = yamcsVersion_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
yamcsVersion_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string yamcsVersion = 1;
*/
public Builder setYamcsVersion(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
yamcsVersion_ = value;
onChanged();
return this;
}
/**
* optional string yamcsVersion = 1;
*/
public Builder clearYamcsVersion() {
bitField0_ = (bitField0_ & ~0x00000001);
yamcsVersion_ = getDefaultInstance().getYamcsVersion();
onChanged();
return this;
}
/**
* optional string yamcsVersion = 1;
*/
public Builder setYamcsVersionBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
yamcsVersion_ = value;
onChanged();
return this;
}
private java.lang.Object serverId_ = "";
/**
* optional string serverId = 2;
*/
public boolean hasServerId() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional string serverId = 2;
*/
public java.lang.String getServerId() {
java.lang.Object ref = serverId_;
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()) {
serverId_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string serverId = 2;
*/
public com.google.protobuf.ByteString
getServerIdBytes() {
java.lang.Object ref = serverId_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
serverId_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string serverId = 2;
*/
public Builder setServerId(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
serverId_ = value;
onChanged();
return this;
}
/**
* optional string serverId = 2;
*/
public Builder clearServerId() {
bitField0_ = (bitField0_ & ~0x00000002);
serverId_ = getDefaultInstance().getServerId();
onChanged();
return this;
}
/**
* optional string serverId = 2;
*/
public Builder setServerIdBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
serverId_ = value;
onChanged();
return this;
}
private java.lang.Object defaultYamcsInstance_ = "";
/**
* optional string defaultYamcsInstance = 3;
*/
public boolean hasDefaultYamcsInstance() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional string defaultYamcsInstance = 3;
*/
public java.lang.String getDefaultYamcsInstance() {
java.lang.Object ref = defaultYamcsInstance_;
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()) {
defaultYamcsInstance_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string defaultYamcsInstance = 3;
*/
public com.google.protobuf.ByteString
getDefaultYamcsInstanceBytes() {
java.lang.Object ref = defaultYamcsInstance_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
defaultYamcsInstance_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string defaultYamcsInstance = 3;
*/
public Builder setDefaultYamcsInstance(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
defaultYamcsInstance_ = value;
onChanged();
return this;
}
/**
* optional string defaultYamcsInstance = 3;
*/
public Builder clearDefaultYamcsInstance() {
bitField0_ = (bitField0_ & ~0x00000004);
defaultYamcsInstance_ = getDefaultInstance().getDefaultYamcsInstance();
onChanged();
return this;
}
/**
* optional string defaultYamcsInstance = 3;
*/
public Builder setDefaultYamcsInstanceBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
defaultYamcsInstance_ = value;
onChanged();
return this;
}
private java.util.List route_ =
java.util.Collections.emptyList();
private void ensureRouteIsMutable() {
if (!((bitField0_ & 0x00000008) == 0x00000008)) {
route_ = new java.util.ArrayList(route_);
bitField0_ |= 0x00000008;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
org.yamcs.protobuf.Rest.GetApiOverviewResponse.RouteInfo, org.yamcs.protobuf.Rest.GetApiOverviewResponse.RouteInfo.Builder, org.yamcs.protobuf.Rest.GetApiOverviewResponse.RouteInfoOrBuilder> routeBuilder_;
/**
* repeated .parameters.GetApiOverviewResponse.RouteInfo route = 4;
*/
public java.util.List getRouteList() {
if (routeBuilder_ == null) {
return java.util.Collections.unmodifiableList(route_);
} else {
return routeBuilder_.getMessageList();
}
}
/**
* repeated .parameters.GetApiOverviewResponse.RouteInfo route = 4;
*/
public int getRouteCount() {
if (routeBuilder_ == null) {
return route_.size();
} else {
return routeBuilder_.getCount();
}
}
/**
* repeated .parameters.GetApiOverviewResponse.RouteInfo route = 4;
*/
public org.yamcs.protobuf.Rest.GetApiOverviewResponse.RouteInfo getRoute(int index) {
if (routeBuilder_ == null) {
return route_.get(index);
} else {
return routeBuilder_.getMessage(index);
}
}
/**
* repeated .parameters.GetApiOverviewResponse.RouteInfo route = 4;
*/
public Builder setRoute(
int index, org.yamcs.protobuf.Rest.GetApiOverviewResponse.RouteInfo value) {
if (routeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRouteIsMutable();
route_.set(index, value);
onChanged();
} else {
routeBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .parameters.GetApiOverviewResponse.RouteInfo route = 4;
*/
public Builder setRoute(
int index, org.yamcs.protobuf.Rest.GetApiOverviewResponse.RouteInfo.Builder builderForValue) {
if (routeBuilder_ == null) {
ensureRouteIsMutable();
route_.set(index, builderForValue.build());
onChanged();
} else {
routeBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .parameters.GetApiOverviewResponse.RouteInfo route = 4;
*/
public Builder addRoute(org.yamcs.protobuf.Rest.GetApiOverviewResponse.RouteInfo value) {
if (routeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRouteIsMutable();
route_.add(value);
onChanged();
} else {
routeBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .parameters.GetApiOverviewResponse.RouteInfo route = 4;
*/
public Builder addRoute(
int index, org.yamcs.protobuf.Rest.GetApiOverviewResponse.RouteInfo value) {
if (routeBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRouteIsMutable();
route_.add(index, value);
onChanged();
} else {
routeBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .parameters.GetApiOverviewResponse.RouteInfo route = 4;
*/
public Builder addRoute(
org.yamcs.protobuf.Rest.GetApiOverviewResponse.RouteInfo.Builder builderForValue) {
if (routeBuilder_ == null) {
ensureRouteIsMutable();
route_.add(builderForValue.build());
onChanged();
} else {
routeBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .parameters.GetApiOverviewResponse.RouteInfo route = 4;
*/
public Builder addRoute(
int index, org.yamcs.protobuf.Rest.GetApiOverviewResponse.RouteInfo.Builder builderForValue) {
if (routeBuilder_ == null) {
ensureRouteIsMutable();
route_.add(index, builderForValue.build());
onChanged();
} else {
routeBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .parameters.GetApiOverviewResponse.RouteInfo route = 4;
*/
public Builder addAllRoute(
java.lang.Iterable extends org.yamcs.protobuf.Rest.GetApiOverviewResponse.RouteInfo> values) {
if (routeBuilder_ == null) {
ensureRouteIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, route_);
onChanged();
} else {
routeBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .parameters.GetApiOverviewResponse.RouteInfo route = 4;
*/
public Builder clearRoute() {
if (routeBuilder_ == null) {
route_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
} else {
routeBuilder_.clear();
}
return this;
}
/**
* repeated .parameters.GetApiOverviewResponse.RouteInfo route = 4;
*/
public Builder removeRoute(int index) {
if (routeBuilder_ == null) {
ensureRouteIsMutable();
route_.remove(index);
onChanged();
} else {
routeBuilder_.remove(index);
}
return this;
}
/**
* repeated .parameters.GetApiOverviewResponse.RouteInfo route = 4;
*/
public org.yamcs.protobuf.Rest.GetApiOverviewResponse.RouteInfo.Builder getRouteBuilder(
int index) {
return getRouteFieldBuilder().getBuilder(index);
}
/**
* repeated .parameters.GetApiOverviewResponse.RouteInfo route = 4;
*/
public org.yamcs.protobuf.Rest.GetApiOverviewResponse.RouteInfoOrBuilder getRouteOrBuilder(
int index) {
if (routeBuilder_ == null) {
return route_.get(index); } else {
return routeBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .parameters.GetApiOverviewResponse.RouteInfo route = 4;
*/
public java.util.List extends org.yamcs.protobuf.Rest.GetApiOverviewResponse.RouteInfoOrBuilder>
getRouteOrBuilderList() {
if (routeBuilder_ != null) {
return routeBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(route_);
}
}
/**
* repeated .parameters.GetApiOverviewResponse.RouteInfo route = 4;
*/
public org.yamcs.protobuf.Rest.GetApiOverviewResponse.RouteInfo.Builder addRouteBuilder() {
return getRouteFieldBuilder().addBuilder(
org.yamcs.protobuf.Rest.GetApiOverviewResponse.RouteInfo.getDefaultInstance());
}
/**
* repeated .parameters.GetApiOverviewResponse.RouteInfo route = 4;
*/
public org.yamcs.protobuf.Rest.GetApiOverviewResponse.RouteInfo.Builder addRouteBuilder(
int index) {
return getRouteFieldBuilder().addBuilder(
index, org.yamcs.protobuf.Rest.GetApiOverviewResponse.RouteInfo.getDefaultInstance());
}
/**
* repeated .parameters.GetApiOverviewResponse.RouteInfo route = 4;
*/
public java.util.List
getRouteBuilderList() {
return getRouteFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
org.yamcs.protobuf.Rest.GetApiOverviewResponse.RouteInfo, org.yamcs.protobuf.Rest.GetApiOverviewResponse.RouteInfo.Builder, org.yamcs.protobuf.Rest.GetApiOverviewResponse.RouteInfoOrBuilder>
getRouteFieldBuilder() {
if (routeBuilder_ == null) {
routeBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
org.yamcs.protobuf.Rest.GetApiOverviewResponse.RouteInfo, org.yamcs.protobuf.Rest.GetApiOverviewResponse.RouteInfo.Builder, org.yamcs.protobuf.Rest.GetApiOverviewResponse.RouteInfoOrBuilder>(
route_,
((bitField0_ & 0x00000008) == 0x00000008),
getParentForChildren(),
isClean());
route_ = null;
}
return routeBuilder_;
}
private java.util.List plugin_ =
java.util.Collections.emptyList();
private void ensurePluginIsMutable() {
if (!((bitField0_ & 0x00000010) == 0x00000010)) {
plugin_ = new java.util.ArrayList(plugin_);
bitField0_ |= 0x00000010;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
org.yamcs.protobuf.Rest.GetApiOverviewResponse.PluginInfo, org.yamcs.protobuf.Rest.GetApiOverviewResponse.PluginInfo.Builder, org.yamcs.protobuf.Rest.GetApiOverviewResponse.PluginInfoOrBuilder> pluginBuilder_;
/**
* repeated .parameters.GetApiOverviewResponse.PluginInfo plugin = 5;
*/
public java.util.List getPluginList() {
if (pluginBuilder_ == null) {
return java.util.Collections.unmodifiableList(plugin_);
} else {
return pluginBuilder_.getMessageList();
}
}
/**
* repeated .parameters.GetApiOverviewResponse.PluginInfo plugin = 5;
*/
public int getPluginCount() {
if (pluginBuilder_ == null) {
return plugin_.size();
} else {
return pluginBuilder_.getCount();
}
}
/**
* repeated .parameters.GetApiOverviewResponse.PluginInfo plugin = 5;
*/
public org.yamcs.protobuf.Rest.GetApiOverviewResponse.PluginInfo getPlugin(int index) {
if (pluginBuilder_ == null) {
return plugin_.get(index);
} else {
return pluginBuilder_.getMessage(index);
}
}
/**
* repeated .parameters.GetApiOverviewResponse.PluginInfo plugin = 5;
*/
public Builder setPlugin(
int index, org.yamcs.protobuf.Rest.GetApiOverviewResponse.PluginInfo value) {
if (pluginBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePluginIsMutable();
plugin_.set(index, value);
onChanged();
} else {
pluginBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .parameters.GetApiOverviewResponse.PluginInfo plugin = 5;
*/
public Builder setPlugin(
int index, org.yamcs.protobuf.Rest.GetApiOverviewResponse.PluginInfo.Builder builderForValue) {
if (pluginBuilder_ == null) {
ensurePluginIsMutable();
plugin_.set(index, builderForValue.build());
onChanged();
} else {
pluginBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .parameters.GetApiOverviewResponse.PluginInfo plugin = 5;
*/
public Builder addPlugin(org.yamcs.protobuf.Rest.GetApiOverviewResponse.PluginInfo value) {
if (pluginBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePluginIsMutable();
plugin_.add(value);
onChanged();
} else {
pluginBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .parameters.GetApiOverviewResponse.PluginInfo plugin = 5;
*/
public Builder addPlugin(
int index, org.yamcs.protobuf.Rest.GetApiOverviewResponse.PluginInfo value) {
if (pluginBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensurePluginIsMutable();
plugin_.add(index, value);
onChanged();
} else {
pluginBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .parameters.GetApiOverviewResponse.PluginInfo plugin = 5;
*/
public Builder addPlugin(
org.yamcs.protobuf.Rest.GetApiOverviewResponse.PluginInfo.Builder builderForValue) {
if (pluginBuilder_ == null) {
ensurePluginIsMutable();
plugin_.add(builderForValue.build());
onChanged();
} else {
pluginBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .parameters.GetApiOverviewResponse.PluginInfo plugin = 5;
*/
public Builder addPlugin(
int index, org.yamcs.protobuf.Rest.GetApiOverviewResponse.PluginInfo.Builder builderForValue) {
if (pluginBuilder_ == null) {
ensurePluginIsMutable();
plugin_.add(index, builderForValue.build());
onChanged();
} else {
pluginBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .parameters.GetApiOverviewResponse.PluginInfo plugin = 5;
*/
public Builder addAllPlugin(
java.lang.Iterable extends org.yamcs.protobuf.Rest.GetApiOverviewResponse.PluginInfo> values) {
if (pluginBuilder_ == null) {
ensurePluginIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, plugin_);
onChanged();
} else {
pluginBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .parameters.GetApiOverviewResponse.PluginInfo plugin = 5;
*/
public Builder clearPlugin() {
if (pluginBuilder_ == null) {
plugin_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000010);
onChanged();
} else {
pluginBuilder_.clear();
}
return this;
}
/**
* repeated .parameters.GetApiOverviewResponse.PluginInfo plugin = 5;
*/
public Builder removePlugin(int index) {
if (pluginBuilder_ == null) {
ensurePluginIsMutable();
plugin_.remove(index);
onChanged();
} else {
pluginBuilder_.remove(index);
}
return this;
}
/**
* repeated .parameters.GetApiOverviewResponse.PluginInfo plugin = 5;
*/
public org.yamcs.protobuf.Rest.GetApiOverviewResponse.PluginInfo.Builder getPluginBuilder(
int index) {
return getPluginFieldBuilder().getBuilder(index);
}
/**
* repeated .parameters.GetApiOverviewResponse.PluginInfo plugin = 5;
*/
public org.yamcs.protobuf.Rest.GetApiOverviewResponse.PluginInfoOrBuilder getPluginOrBuilder(
int index) {
if (pluginBuilder_ == null) {
return plugin_.get(index); } else {
return pluginBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .parameters.GetApiOverviewResponse.PluginInfo plugin = 5;
*/
public java.util.List extends org.yamcs.protobuf.Rest.GetApiOverviewResponse.PluginInfoOrBuilder>
getPluginOrBuilderList() {
if (pluginBuilder_ != null) {
return pluginBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(plugin_);
}
}
/**
* repeated .parameters.GetApiOverviewResponse.PluginInfo plugin = 5;
*/
public org.yamcs.protobuf.Rest.GetApiOverviewResponse.PluginInfo.Builder addPluginBuilder() {
return getPluginFieldBuilder().addBuilder(
org.yamcs.protobuf.Rest.GetApiOverviewResponse.PluginInfo.getDefaultInstance());
}
/**
* repeated .parameters.GetApiOverviewResponse.PluginInfo plugin = 5;
*/
public org.yamcs.protobuf.Rest.GetApiOverviewResponse.PluginInfo.Builder addPluginBuilder(
int index) {
return getPluginFieldBuilder().addBuilder(
index, org.yamcs.protobuf.Rest.GetApiOverviewResponse.PluginInfo.getDefaultInstance());
}
/**
* repeated .parameters.GetApiOverviewResponse.PluginInfo plugin = 5;
*/
public java.util.List
getPluginBuilderList() {
return getPluginFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
org.yamcs.protobuf.Rest.GetApiOverviewResponse.PluginInfo, org.yamcs.protobuf.Rest.GetApiOverviewResponse.PluginInfo.Builder, org.yamcs.protobuf.Rest.GetApiOverviewResponse.PluginInfoOrBuilder>
getPluginFieldBuilder() {
if (pluginBuilder_ == null) {
pluginBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
org.yamcs.protobuf.Rest.GetApiOverviewResponse.PluginInfo, org.yamcs.protobuf.Rest.GetApiOverviewResponse.PluginInfo.Builder, org.yamcs.protobuf.Rest.GetApiOverviewResponse.PluginInfoOrBuilder>(
plugin_,
((bitField0_ & 0x00000010) == 0x00000010),
getParentForChildren(),
isClean());
plugin_ = null;
}
return pluginBuilder_;
}
// @@protoc_insertion_point(builder_scope:parameters.GetApiOverviewResponse)
}
static {
defaultInstance = new GetApiOverviewResponse(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:parameters.GetApiOverviewResponse)
}
public interface ListParameterInfoResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:parameters.ListParameterInfoResponse)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .mdb.ParameterInfo parameter = 1;
*/
java.util.List
getParameterList();
/**
* repeated .mdb.ParameterInfo parameter = 1;
*/
org.yamcs.protobuf.Mdb.ParameterInfo getParameter(int index);
/**
* repeated .mdb.ParameterInfo parameter = 1;
*/
int getParameterCount();
/**
* repeated .mdb.ParameterInfo parameter = 1;
*/
java.util.List extends org.yamcs.protobuf.Mdb.ParameterInfoOrBuilder>
getParameterOrBuilderList();
/**
* repeated .mdb.ParameterInfo parameter = 1;
*/
org.yamcs.protobuf.Mdb.ParameterInfoOrBuilder getParameterOrBuilder(
int index);
}
/**
* Protobuf type {@code parameters.ListParameterInfoResponse}
*/
public static final class ListParameterInfoResponse extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:parameters.ListParameterInfoResponse)
ListParameterInfoResponseOrBuilder {
// Use ListParameterInfoResponse.newBuilder() to construct.
private ListParameterInfoResponse(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private ListParameterInfoResponse(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final ListParameterInfoResponse defaultInstance;
public static ListParameterInfoResponse getDefaultInstance() {
return defaultInstance;
}
public ListParameterInfoResponse getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ListParameterInfoResponse(
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)) {
parameter_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
parameter_.add(input.readMessage(org.yamcs.protobuf.Mdb.ParameterInfo.PARSER, extensionRegistry));
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)) {
parameter_ = java.util.Collections.unmodifiableList(parameter_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.Rest.internal_static_parameters_ListParameterInfoResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.Rest.internal_static_parameters_ListParameterInfoResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.Rest.ListParameterInfoResponse.class, org.yamcs.protobuf.Rest.ListParameterInfoResponse.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public ListParameterInfoResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ListParameterInfoResponse(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public static final int PARAMETER_FIELD_NUMBER = 1;
private java.util.List parameter_;
/**
* repeated .mdb.ParameterInfo parameter = 1;
*/
public java.util.List getParameterList() {
return parameter_;
}
/**
* repeated .mdb.ParameterInfo parameter = 1;
*/
public java.util.List extends org.yamcs.protobuf.Mdb.ParameterInfoOrBuilder>
getParameterOrBuilderList() {
return parameter_;
}
/**
* repeated .mdb.ParameterInfo parameter = 1;
*/
public int getParameterCount() {
return parameter_.size();
}
/**
* repeated .mdb.ParameterInfo parameter = 1;
*/
public org.yamcs.protobuf.Mdb.ParameterInfo getParameter(int index) {
return parameter_.get(index);
}
/**
* repeated .mdb.ParameterInfo parameter = 1;
*/
public org.yamcs.protobuf.Mdb.ParameterInfoOrBuilder getParameterOrBuilder(
int index) {
return parameter_.get(index);
}
private void initFields() {
parameter_ = java.util.Collections.emptyList();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
for (int i = 0; i < getParameterCount(); i++) {
if (!getParameter(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 < parameter_.size(); i++) {
output.writeMessage(1, parameter_.get(i));
}
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 < parameter_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, parameter_.get(i));
}
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.Rest.ListParameterInfoResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.Rest.ListParameterInfoResponse 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.Rest.ListParameterInfoResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.Rest.ListParameterInfoResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.yamcs.protobuf.Rest.ListParameterInfoResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.yamcs.protobuf.Rest.ListParameterInfoResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.yamcs.protobuf.Rest.ListParameterInfoResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.yamcs.protobuf.Rest.ListParameterInfoResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.yamcs.protobuf.Rest.ListParameterInfoResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.yamcs.protobuf.Rest.ListParameterInfoResponse 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.Rest.ListParameterInfoResponse 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 parameters.ListParameterInfoResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:parameters.ListParameterInfoResponse)
org.yamcs.protobuf.Rest.ListParameterInfoResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.Rest.internal_static_parameters_ListParameterInfoResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.Rest.internal_static_parameters_ListParameterInfoResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.Rest.ListParameterInfoResponse.class, org.yamcs.protobuf.Rest.ListParameterInfoResponse.Builder.class);
}
// Construct using org.yamcs.protobuf.Rest.ListParameterInfoResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getParameterFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
if (parameterBuilder_ == null) {
parameter_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
parameterBuilder_.clear();
}
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.yamcs.protobuf.Rest.internal_static_parameters_ListParameterInfoResponse_descriptor;
}
public org.yamcs.protobuf.Rest.ListParameterInfoResponse getDefaultInstanceForType() {
return org.yamcs.protobuf.Rest.ListParameterInfoResponse.getDefaultInstance();
}
public org.yamcs.protobuf.Rest.ListParameterInfoResponse build() {
org.yamcs.protobuf.Rest.ListParameterInfoResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.yamcs.protobuf.Rest.ListParameterInfoResponse buildPartial() {
org.yamcs.protobuf.Rest.ListParameterInfoResponse result = new org.yamcs.protobuf.Rest.ListParameterInfoResponse(this);
int from_bitField0_ = bitField0_;
if (parameterBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
parameter_ = java.util.Collections.unmodifiableList(parameter_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.parameter_ = parameter_;
} else {
result.parameter_ = parameterBuilder_.build();
}
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.yamcs.protobuf.Rest.ListParameterInfoResponse) {
return mergeFrom((org.yamcs.protobuf.Rest.ListParameterInfoResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.yamcs.protobuf.Rest.ListParameterInfoResponse other) {
if (other == org.yamcs.protobuf.Rest.ListParameterInfoResponse.getDefaultInstance()) return this;
if (parameterBuilder_ == null) {
if (!other.parameter_.isEmpty()) {
if (parameter_.isEmpty()) {
parameter_ = other.parameter_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureParameterIsMutable();
parameter_.addAll(other.parameter_);
}
onChanged();
}
} else {
if (!other.parameter_.isEmpty()) {
if (parameterBuilder_.isEmpty()) {
parameterBuilder_.dispose();
parameterBuilder_ = null;
parameter_ = other.parameter_;
bitField0_ = (bitField0_ & ~0x00000001);
parameterBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getParameterFieldBuilder() : null;
} else {
parameterBuilder_.addAllMessages(other.parameter_);
}
}
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
for (int i = 0; i < getParameterCount(); i++) {
if (!getParameter(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.Rest.ListParameterInfoResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.yamcs.protobuf.Rest.ListParameterInfoResponse) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List parameter_ =
java.util.Collections.emptyList();
private void ensureParameterIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
parameter_ = new java.util.ArrayList(parameter_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
org.yamcs.protobuf.Mdb.ParameterInfo, org.yamcs.protobuf.Mdb.ParameterInfo.Builder, org.yamcs.protobuf.Mdb.ParameterInfoOrBuilder> parameterBuilder_;
/**
* repeated .mdb.ParameterInfo parameter = 1;
*/
public java.util.List getParameterList() {
if (parameterBuilder_ == null) {
return java.util.Collections.unmodifiableList(parameter_);
} else {
return parameterBuilder_.getMessageList();
}
}
/**
* repeated .mdb.ParameterInfo parameter = 1;
*/
public int getParameterCount() {
if (parameterBuilder_ == null) {
return parameter_.size();
} else {
return parameterBuilder_.getCount();
}
}
/**
* repeated .mdb.ParameterInfo parameter = 1;
*/
public org.yamcs.protobuf.Mdb.ParameterInfo getParameter(int index) {
if (parameterBuilder_ == null) {
return parameter_.get(index);
} else {
return parameterBuilder_.getMessage(index);
}
}
/**
* repeated .mdb.ParameterInfo parameter = 1;
*/
public Builder setParameter(
int index, org.yamcs.protobuf.Mdb.ParameterInfo value) {
if (parameterBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureParameterIsMutable();
parameter_.set(index, value);
onChanged();
} else {
parameterBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .mdb.ParameterInfo parameter = 1;
*/
public Builder setParameter(
int index, org.yamcs.protobuf.Mdb.ParameterInfo.Builder builderForValue) {
if (parameterBuilder_ == null) {
ensureParameterIsMutable();
parameter_.set(index, builderForValue.build());
onChanged();
} else {
parameterBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .mdb.ParameterInfo parameter = 1;
*/
public Builder addParameter(org.yamcs.protobuf.Mdb.ParameterInfo value) {
if (parameterBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureParameterIsMutable();
parameter_.add(value);
onChanged();
} else {
parameterBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .mdb.ParameterInfo parameter = 1;
*/
public Builder addParameter(
int index, org.yamcs.protobuf.Mdb.ParameterInfo value) {
if (parameterBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureParameterIsMutable();
parameter_.add(index, value);
onChanged();
} else {
parameterBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .mdb.ParameterInfo parameter = 1;
*/
public Builder addParameter(
org.yamcs.protobuf.Mdb.ParameterInfo.Builder builderForValue) {
if (parameterBuilder_ == null) {
ensureParameterIsMutable();
parameter_.add(builderForValue.build());
onChanged();
} else {
parameterBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .mdb.ParameterInfo parameter = 1;
*/
public Builder addParameter(
int index, org.yamcs.protobuf.Mdb.ParameterInfo.Builder builderForValue) {
if (parameterBuilder_ == null) {
ensureParameterIsMutable();
parameter_.add(index, builderForValue.build());
onChanged();
} else {
parameterBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .mdb.ParameterInfo parameter = 1;
*/
public Builder addAllParameter(
java.lang.Iterable extends org.yamcs.protobuf.Mdb.ParameterInfo> values) {
if (parameterBuilder_ == null) {
ensureParameterIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, parameter_);
onChanged();
} else {
parameterBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .mdb.ParameterInfo parameter = 1;
*/
public Builder clearParameter() {
if (parameterBuilder_ == null) {
parameter_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
parameterBuilder_.clear();
}
return this;
}
/**
* repeated .mdb.ParameterInfo parameter = 1;
*/
public Builder removeParameter(int index) {
if (parameterBuilder_ == null) {
ensureParameterIsMutable();
parameter_.remove(index);
onChanged();
} else {
parameterBuilder_.remove(index);
}
return this;
}
/**
* repeated .mdb.ParameterInfo parameter = 1;
*/
public org.yamcs.protobuf.Mdb.ParameterInfo.Builder getParameterBuilder(
int index) {
return getParameterFieldBuilder().getBuilder(index);
}
/**
* repeated .mdb.ParameterInfo parameter = 1;
*/
public org.yamcs.protobuf.Mdb.ParameterInfoOrBuilder getParameterOrBuilder(
int index) {
if (parameterBuilder_ == null) {
return parameter_.get(index); } else {
return parameterBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .mdb.ParameterInfo parameter = 1;
*/
public java.util.List extends org.yamcs.protobuf.Mdb.ParameterInfoOrBuilder>
getParameterOrBuilderList() {
if (parameterBuilder_ != null) {
return parameterBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(parameter_);
}
}
/**
* repeated .mdb.ParameterInfo parameter = 1;
*/
public org.yamcs.protobuf.Mdb.ParameterInfo.Builder addParameterBuilder() {
return getParameterFieldBuilder().addBuilder(
org.yamcs.protobuf.Mdb.ParameterInfo.getDefaultInstance());
}
/**
* repeated .mdb.ParameterInfo parameter = 1;
*/
public org.yamcs.protobuf.Mdb.ParameterInfo.Builder addParameterBuilder(
int index) {
return getParameterFieldBuilder().addBuilder(
index, org.yamcs.protobuf.Mdb.ParameterInfo.getDefaultInstance());
}
/**
* repeated .mdb.ParameterInfo parameter = 1;
*/
public java.util.List
getParameterBuilderList() {
return getParameterFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
org.yamcs.protobuf.Mdb.ParameterInfo, org.yamcs.protobuf.Mdb.ParameterInfo.Builder, org.yamcs.protobuf.Mdb.ParameterInfoOrBuilder>
getParameterFieldBuilder() {
if (parameterBuilder_ == null) {
parameterBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
org.yamcs.protobuf.Mdb.ParameterInfo, org.yamcs.protobuf.Mdb.ParameterInfo.Builder, org.yamcs.protobuf.Mdb.ParameterInfoOrBuilder>(
parameter_,
((bitField0_ & 0x00000001) == 0x00000001),
getParentForChildren(),
isClean());
parameter_ = null;
}
return parameterBuilder_;
}
// @@protoc_insertion_point(builder_scope:parameters.ListParameterInfoResponse)
}
static {
defaultInstance = new ListParameterInfoResponse(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:parameters.ListParameterInfoResponse)
}
public interface BulkGetParameterInfoRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:parameters.BulkGetParameterInfoRequest)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .yamcs.NamedObjectId id = 1;
*/
java.util.List
getIdList();
/**
* repeated .yamcs.NamedObjectId id = 1;
*/
org.yamcs.protobuf.Yamcs.NamedObjectId getId(int index);
/**
* repeated .yamcs.NamedObjectId id = 1;
*/
int getIdCount();
/**
* repeated .yamcs.NamedObjectId id = 1;
*/
java.util.List extends org.yamcs.protobuf.Yamcs.NamedObjectIdOrBuilder>
getIdOrBuilderList();
/**
* repeated .yamcs.NamedObjectId id = 1;
*/
org.yamcs.protobuf.Yamcs.NamedObjectIdOrBuilder getIdOrBuilder(
int index);
}
/**
* Protobuf type {@code parameters.BulkGetParameterInfoRequest}
*/
public static final class BulkGetParameterInfoRequest extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:parameters.BulkGetParameterInfoRequest)
BulkGetParameterInfoRequestOrBuilder {
// Use BulkGetParameterInfoRequest.newBuilder() to construct.
private BulkGetParameterInfoRequest(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private BulkGetParameterInfoRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final BulkGetParameterInfoRequest defaultInstance;
public static BulkGetParameterInfoRequest getDefaultInstance() {
return defaultInstance;
}
public BulkGetParameterInfoRequest getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private BulkGetParameterInfoRequest(
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)) {
id_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
id_.add(input.readMessage(org.yamcs.protobuf.Yamcs.NamedObjectId.PARSER, extensionRegistry));
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)) {
id_ = java.util.Collections.unmodifiableList(id_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.Rest.internal_static_parameters_BulkGetParameterInfoRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.Rest.internal_static_parameters_BulkGetParameterInfoRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.Rest.BulkGetParameterInfoRequest.class, org.yamcs.protobuf.Rest.BulkGetParameterInfoRequest.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public BulkGetParameterInfoRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new BulkGetParameterInfoRequest(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public static final int ID_FIELD_NUMBER = 1;
private java.util.List id_;
/**
* repeated .yamcs.NamedObjectId id = 1;
*/
public java.util.List getIdList() {
return id_;
}
/**
* repeated .yamcs.NamedObjectId id = 1;
*/
public java.util.List extends org.yamcs.protobuf.Yamcs.NamedObjectIdOrBuilder>
getIdOrBuilderList() {
return id_;
}
/**
* repeated .yamcs.NamedObjectId id = 1;
*/
public int getIdCount() {
return id_.size();
}
/**
* repeated .yamcs.NamedObjectId id = 1;
*/
public org.yamcs.protobuf.Yamcs.NamedObjectId getId(int index) {
return id_.get(index);
}
/**
* repeated .yamcs.NamedObjectId id = 1;
*/
public org.yamcs.protobuf.Yamcs.NamedObjectIdOrBuilder getIdOrBuilder(
int index) {
return id_.get(index);
}
private void initFields() {
id_ = java.util.Collections.emptyList();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
for (int i = 0; i < getIdCount(); i++) {
if (!getId(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 < id_.size(); i++) {
output.writeMessage(1, id_.get(i));
}
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 < id_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, id_.get(i));
}
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.Rest.BulkGetParameterInfoRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.Rest.BulkGetParameterInfoRequest 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.Rest.BulkGetParameterInfoRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.Rest.BulkGetParameterInfoRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.yamcs.protobuf.Rest.BulkGetParameterInfoRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.yamcs.protobuf.Rest.BulkGetParameterInfoRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.yamcs.protobuf.Rest.BulkGetParameterInfoRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.yamcs.protobuf.Rest.BulkGetParameterInfoRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.yamcs.protobuf.Rest.BulkGetParameterInfoRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.yamcs.protobuf.Rest.BulkGetParameterInfoRequest 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.Rest.BulkGetParameterInfoRequest 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 parameters.BulkGetParameterInfoRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:parameters.BulkGetParameterInfoRequest)
org.yamcs.protobuf.Rest.BulkGetParameterInfoRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.Rest.internal_static_parameters_BulkGetParameterInfoRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.Rest.internal_static_parameters_BulkGetParameterInfoRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.Rest.BulkGetParameterInfoRequest.class, org.yamcs.protobuf.Rest.BulkGetParameterInfoRequest.Builder.class);
}
// Construct using org.yamcs.protobuf.Rest.BulkGetParameterInfoRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getIdFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
if (idBuilder_ == null) {
id_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
idBuilder_.clear();
}
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.yamcs.protobuf.Rest.internal_static_parameters_BulkGetParameterInfoRequest_descriptor;
}
public org.yamcs.protobuf.Rest.BulkGetParameterInfoRequest getDefaultInstanceForType() {
return org.yamcs.protobuf.Rest.BulkGetParameterInfoRequest.getDefaultInstance();
}
public org.yamcs.protobuf.Rest.BulkGetParameterInfoRequest build() {
org.yamcs.protobuf.Rest.BulkGetParameterInfoRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.yamcs.protobuf.Rest.BulkGetParameterInfoRequest buildPartial() {
org.yamcs.protobuf.Rest.BulkGetParameterInfoRequest result = new org.yamcs.protobuf.Rest.BulkGetParameterInfoRequest(this);
int from_bitField0_ = bitField0_;
if (idBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
id_ = java.util.Collections.unmodifiableList(id_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.id_ = id_;
} else {
result.id_ = idBuilder_.build();
}
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.yamcs.protobuf.Rest.BulkGetParameterInfoRequest) {
return mergeFrom((org.yamcs.protobuf.Rest.BulkGetParameterInfoRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.yamcs.protobuf.Rest.BulkGetParameterInfoRequest other) {
if (other == org.yamcs.protobuf.Rest.BulkGetParameterInfoRequest.getDefaultInstance()) return this;
if (idBuilder_ == null) {
if (!other.id_.isEmpty()) {
if (id_.isEmpty()) {
id_ = other.id_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureIdIsMutable();
id_.addAll(other.id_);
}
onChanged();
}
} else {
if (!other.id_.isEmpty()) {
if (idBuilder_.isEmpty()) {
idBuilder_.dispose();
idBuilder_ = null;
id_ = other.id_;
bitField0_ = (bitField0_ & ~0x00000001);
idBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getIdFieldBuilder() : null;
} else {
idBuilder_.addAllMessages(other.id_);
}
}
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
for (int i = 0; i < getIdCount(); i++) {
if (!getId(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.Rest.BulkGetParameterInfoRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.yamcs.protobuf.Rest.BulkGetParameterInfoRequest) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List id_ =
java.util.Collections.emptyList();
private void ensureIdIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
id_ = new java.util.ArrayList(id_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
org.yamcs.protobuf.Yamcs.NamedObjectId, org.yamcs.protobuf.Yamcs.NamedObjectId.Builder, org.yamcs.protobuf.Yamcs.NamedObjectIdOrBuilder> idBuilder_;
/**
* repeated .yamcs.NamedObjectId id = 1;
*/
public java.util.List getIdList() {
if (idBuilder_ == null) {
return java.util.Collections.unmodifiableList(id_);
} else {
return idBuilder_.getMessageList();
}
}
/**
* repeated .yamcs.NamedObjectId id = 1;
*/
public int getIdCount() {
if (idBuilder_ == null) {
return id_.size();
} else {
return idBuilder_.getCount();
}
}
/**
* repeated .yamcs.NamedObjectId id = 1;
*/
public org.yamcs.protobuf.Yamcs.NamedObjectId getId(int index) {
if (idBuilder_ == null) {
return id_.get(index);
} else {
return idBuilder_.getMessage(index);
}
}
/**
* repeated .yamcs.NamedObjectId id = 1;
*/
public Builder setId(
int index, org.yamcs.protobuf.Yamcs.NamedObjectId value) {
if (idBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureIdIsMutable();
id_.set(index, value);
onChanged();
} else {
idBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .yamcs.NamedObjectId id = 1;
*/
public Builder setId(
int index, org.yamcs.protobuf.Yamcs.NamedObjectId.Builder builderForValue) {
if (idBuilder_ == null) {
ensureIdIsMutable();
id_.set(index, builderForValue.build());
onChanged();
} else {
idBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .yamcs.NamedObjectId id = 1;
*/
public Builder addId(org.yamcs.protobuf.Yamcs.NamedObjectId value) {
if (idBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureIdIsMutable();
id_.add(value);
onChanged();
} else {
idBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .yamcs.NamedObjectId id = 1;
*/
public Builder addId(
int index, org.yamcs.protobuf.Yamcs.NamedObjectId value) {
if (idBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureIdIsMutable();
id_.add(index, value);
onChanged();
} else {
idBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .yamcs.NamedObjectId id = 1;
*/
public Builder addId(
org.yamcs.protobuf.Yamcs.NamedObjectId.Builder builderForValue) {
if (idBuilder_ == null) {
ensureIdIsMutable();
id_.add(builderForValue.build());
onChanged();
} else {
idBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .yamcs.NamedObjectId id = 1;
*/
public Builder addId(
int index, org.yamcs.protobuf.Yamcs.NamedObjectId.Builder builderForValue) {
if (idBuilder_ == null) {
ensureIdIsMutable();
id_.add(index, builderForValue.build());
onChanged();
} else {
idBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .yamcs.NamedObjectId id = 1;
*/
public Builder addAllId(
java.lang.Iterable extends org.yamcs.protobuf.Yamcs.NamedObjectId> values) {
if (idBuilder_ == null) {
ensureIdIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, id_);
onChanged();
} else {
idBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .yamcs.NamedObjectId id = 1;
*/
public Builder clearId() {
if (idBuilder_ == null) {
id_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
idBuilder_.clear();
}
return this;
}
/**
* repeated .yamcs.NamedObjectId id = 1;
*/
public Builder removeId(int index) {
if (idBuilder_ == null) {
ensureIdIsMutable();
id_.remove(index);
onChanged();
} else {
idBuilder_.remove(index);
}
return this;
}
/**
* repeated .yamcs.NamedObjectId id = 1;
*/
public org.yamcs.protobuf.Yamcs.NamedObjectId.Builder getIdBuilder(
int index) {
return getIdFieldBuilder().getBuilder(index);
}
/**
* repeated .yamcs.NamedObjectId id = 1;
*/
public org.yamcs.protobuf.Yamcs.NamedObjectIdOrBuilder getIdOrBuilder(
int index) {
if (idBuilder_ == null) {
return id_.get(index); } else {
return idBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .yamcs.NamedObjectId id = 1;
*/
public java.util.List extends org.yamcs.protobuf.Yamcs.NamedObjectIdOrBuilder>
getIdOrBuilderList() {
if (idBuilder_ != null) {
return idBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(id_);
}
}
/**
* repeated .yamcs.NamedObjectId id = 1;
*/
public org.yamcs.protobuf.Yamcs.NamedObjectId.Builder addIdBuilder() {
return getIdFieldBuilder().addBuilder(
org.yamcs.protobuf.Yamcs.NamedObjectId.getDefaultInstance());
}
/**
* repeated .yamcs.NamedObjectId id = 1;
*/
public org.yamcs.protobuf.Yamcs.NamedObjectId.Builder addIdBuilder(
int index) {
return getIdFieldBuilder().addBuilder(
index, org.yamcs.protobuf.Yamcs.NamedObjectId.getDefaultInstance());
}
/**
* repeated .yamcs.NamedObjectId id = 1;
*/
public java.util.List
getIdBuilderList() {
return getIdFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
org.yamcs.protobuf.Yamcs.NamedObjectId, org.yamcs.protobuf.Yamcs.NamedObjectId.Builder, org.yamcs.protobuf.Yamcs.NamedObjectIdOrBuilder>
getIdFieldBuilder() {
if (idBuilder_ == null) {
idBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
org.yamcs.protobuf.Yamcs.NamedObjectId, org.yamcs.protobuf.Yamcs.NamedObjectId.Builder, org.yamcs.protobuf.Yamcs.NamedObjectIdOrBuilder>(
id_,
((bitField0_ & 0x00000001) == 0x00000001),
getParentForChildren(),
isClean());
id_ = null;
}
return idBuilder_;
}
// @@protoc_insertion_point(builder_scope:parameters.BulkGetParameterInfoRequest)
}
static {
defaultInstance = new BulkGetParameterInfoRequest(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:parameters.BulkGetParameterInfoRequest)
}
public interface BulkGetParameterInfoResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:parameters.BulkGetParameterInfoResponse)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .parameters.BulkGetParameterInfoResponse.GetParameterInfoResponse response = 1;
*/
java.util.List
getResponseList();
/**
* repeated .parameters.BulkGetParameterInfoResponse.GetParameterInfoResponse response = 1;
*/
org.yamcs.protobuf.Rest.BulkGetParameterInfoResponse.GetParameterInfoResponse getResponse(int index);
/**
* repeated .parameters.BulkGetParameterInfoResponse.GetParameterInfoResponse response = 1;
*/
int getResponseCount();
/**
* repeated .parameters.BulkGetParameterInfoResponse.GetParameterInfoResponse response = 1;
*/
java.util.List extends org.yamcs.protobuf.Rest.BulkGetParameterInfoResponse.GetParameterInfoResponseOrBuilder>
getResponseOrBuilderList();
/**
* repeated .parameters.BulkGetParameterInfoResponse.GetParameterInfoResponse response = 1;
*/
org.yamcs.protobuf.Rest.BulkGetParameterInfoResponse.GetParameterInfoResponseOrBuilder getResponseOrBuilder(
int index);
}
/**
* Protobuf type {@code parameters.BulkGetParameterInfoResponse}
*/
public static final class BulkGetParameterInfoResponse extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:parameters.BulkGetParameterInfoResponse)
BulkGetParameterInfoResponseOrBuilder {
// Use BulkGetParameterInfoResponse.newBuilder() to construct.
private BulkGetParameterInfoResponse(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private BulkGetParameterInfoResponse(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final BulkGetParameterInfoResponse defaultInstance;
public static BulkGetParameterInfoResponse getDefaultInstance() {
return defaultInstance;
}
public BulkGetParameterInfoResponse getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private BulkGetParameterInfoResponse(
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)) {
response_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
response_.add(input.readMessage(org.yamcs.protobuf.Rest.BulkGetParameterInfoResponse.GetParameterInfoResponse.PARSER, extensionRegistry));
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)) {
response_ = java.util.Collections.unmodifiableList(response_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.Rest.internal_static_parameters_BulkGetParameterInfoResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.Rest.internal_static_parameters_BulkGetParameterInfoResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.Rest.BulkGetParameterInfoResponse.class, org.yamcs.protobuf.Rest.BulkGetParameterInfoResponse.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public BulkGetParameterInfoResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new BulkGetParameterInfoResponse(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public interface GetParameterInfoResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:parameters.BulkGetParameterInfoResponse.GetParameterInfoResponse)
com.google.protobuf.MessageOrBuilder {
/**
* optional .yamcs.NamedObjectId id = 1;
*/
boolean hasId();
/**
* optional .yamcs.NamedObjectId id = 1;
*/
org.yamcs.protobuf.Yamcs.NamedObjectId getId();
/**
* optional .yamcs.NamedObjectId id = 1;
*/
org.yamcs.protobuf.Yamcs.NamedObjectIdOrBuilder getIdOrBuilder();
/**
* optional .mdb.ParameterInfo parameter = 2;
*/
boolean hasParameter();
/**
* optional .mdb.ParameterInfo parameter = 2;
*/
org.yamcs.protobuf.Mdb.ParameterInfo getParameter();
/**
* optional .mdb.ParameterInfo parameter = 2;
*/
org.yamcs.protobuf.Mdb.ParameterInfoOrBuilder getParameterOrBuilder();
}
/**
* Protobuf type {@code parameters.BulkGetParameterInfoResponse.GetParameterInfoResponse}
*/
public static final class GetParameterInfoResponse extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:parameters.BulkGetParameterInfoResponse.GetParameterInfoResponse)
GetParameterInfoResponseOrBuilder {
// Use GetParameterInfoResponse.newBuilder() to construct.
private GetParameterInfoResponse(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private GetParameterInfoResponse(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final GetParameterInfoResponse defaultInstance;
public static GetParameterInfoResponse getDefaultInstance() {
return defaultInstance;
}
public GetParameterInfoResponse getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private GetParameterInfoResponse(
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: {
org.yamcs.protobuf.Yamcs.NamedObjectId.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
subBuilder = id_.toBuilder();
}
id_ = input.readMessage(org.yamcs.protobuf.Yamcs.NamedObjectId.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(id_);
id_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
break;
}
case 18: {
org.yamcs.protobuf.Mdb.ParameterInfo.Builder subBuilder = null;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
subBuilder = parameter_.toBuilder();
}
parameter_ = input.readMessage(org.yamcs.protobuf.Mdb.ParameterInfo.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(parameter_);
parameter_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000002;
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 {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.Rest.internal_static_parameters_BulkGetParameterInfoResponse_GetParameterInfoResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.Rest.internal_static_parameters_BulkGetParameterInfoResponse_GetParameterInfoResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.Rest.BulkGetParameterInfoResponse.GetParameterInfoResponse.class, org.yamcs.protobuf.Rest.BulkGetParameterInfoResponse.GetParameterInfoResponse.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public GetParameterInfoResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new GetParameterInfoResponse(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
public static final int ID_FIELD_NUMBER = 1;
private org.yamcs.protobuf.Yamcs.NamedObjectId id_;
/**
* optional .yamcs.NamedObjectId id = 1;
*/
public boolean hasId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional .yamcs.NamedObjectId id = 1;
*/
public org.yamcs.protobuf.Yamcs.NamedObjectId getId() {
return id_;
}
/**
* optional .yamcs.NamedObjectId id = 1;
*/
public org.yamcs.protobuf.Yamcs.NamedObjectIdOrBuilder getIdOrBuilder() {
return id_;
}
public static final int PARAMETER_FIELD_NUMBER = 2;
private org.yamcs.protobuf.Mdb.ParameterInfo parameter_;
/**
* optional .mdb.ParameterInfo parameter = 2;
*/
public boolean hasParameter() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional .mdb.ParameterInfo parameter = 2;
*/
public org.yamcs.protobuf.Mdb.ParameterInfo getParameter() {
return parameter_;
}
/**
* optional .mdb.ParameterInfo parameter = 2;
*/
public org.yamcs.protobuf.Mdb.ParameterInfoOrBuilder getParameterOrBuilder() {
return parameter_;
}
private void initFields() {
id_ = org.yamcs.protobuf.Yamcs.NamedObjectId.getDefaultInstance();
parameter_ = org.yamcs.protobuf.Mdb.ParameterInfo.getDefaultInstance();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (hasId()) {
if (!getId().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
if (hasParameter()) {
if (!getParameter().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.writeMessage(1, id_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeMessage(2, parameter_);
}
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
.computeMessageSize(1, id_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, parameter_);
}
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.Rest.BulkGetParameterInfoResponse.GetParameterInfoResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.Rest.BulkGetParameterInfoResponse.GetParameterInfoResponse 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.Rest.BulkGetParameterInfoResponse.GetParameterInfoResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.Rest.BulkGetParameterInfoResponse.GetParameterInfoResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.yamcs.protobuf.Rest.BulkGetParameterInfoResponse.GetParameterInfoResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.yamcs.protobuf.Rest.BulkGetParameterInfoResponse.GetParameterInfoResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.yamcs.protobuf.Rest.BulkGetParameterInfoResponse.GetParameterInfoResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.yamcs.protobuf.Rest.BulkGetParameterInfoResponse.GetParameterInfoResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.yamcs.protobuf.Rest.BulkGetParameterInfoResponse.GetParameterInfoResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.yamcs.protobuf.Rest.BulkGetParameterInfoResponse.GetParameterInfoResponse 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.Rest.BulkGetParameterInfoResponse.GetParameterInfoResponse 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 parameters.BulkGetParameterInfoResponse.GetParameterInfoResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:parameters.BulkGetParameterInfoResponse.GetParameterInfoResponse)
org.yamcs.protobuf.Rest.BulkGetParameterInfoResponse.GetParameterInfoResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.Rest.internal_static_parameters_BulkGetParameterInfoResponse_GetParameterInfoResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.Rest.internal_static_parameters_BulkGetParameterInfoResponse_GetParameterInfoResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.Rest.BulkGetParameterInfoResponse.GetParameterInfoResponse.class, org.yamcs.protobuf.Rest.BulkGetParameterInfoResponse.GetParameterInfoResponse.Builder.class);
}
// Construct using org.yamcs.protobuf.Rest.BulkGetParameterInfoResponse.GetParameterInfoResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getIdFieldBuilder();
getParameterFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
if (idBuilder_ == null) {
id_ = org.yamcs.protobuf.Yamcs.NamedObjectId.getDefaultInstance();
} else {
idBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
if (parameterBuilder_ == null) {
parameter_ = org.yamcs.protobuf.Mdb.ParameterInfo.getDefaultInstance();
} else {
parameterBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.yamcs.protobuf.Rest.internal_static_parameters_BulkGetParameterInfoResponse_GetParameterInfoResponse_descriptor;
}
public org.yamcs.protobuf.Rest.BulkGetParameterInfoResponse.GetParameterInfoResponse getDefaultInstanceForType() {
return org.yamcs.protobuf.Rest.BulkGetParameterInfoResponse.GetParameterInfoResponse.getDefaultInstance();
}
public org.yamcs.protobuf.Rest.BulkGetParameterInfoResponse.GetParameterInfoResponse build() {
org.yamcs.protobuf.Rest.BulkGetParameterInfoResponse.GetParameterInfoResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.yamcs.protobuf.Rest.BulkGetParameterInfoResponse.GetParameterInfoResponse buildPartial() {
org.yamcs.protobuf.Rest.BulkGetParameterInfoResponse.GetParameterInfoResponse result = new org.yamcs.protobuf.Rest.BulkGetParameterInfoResponse.GetParameterInfoResponse(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
if (idBuilder_ == null) {
result.id_ = id_;
} else {
result.id_ = idBuilder_.build();
}
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
if (parameterBuilder_ == null) {
result.parameter_ = parameter_;
} else {
result.parameter_ = parameterBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.yamcs.protobuf.Rest.BulkGetParameterInfoResponse.GetParameterInfoResponse) {
return mergeFrom((org.yamcs.protobuf.Rest.BulkGetParameterInfoResponse.GetParameterInfoResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.yamcs.protobuf.Rest.BulkGetParameterInfoResponse.GetParameterInfoResponse other) {
if (other == org.yamcs.protobuf.Rest.BulkGetParameterInfoResponse.GetParameterInfoResponse.getDefaultInstance()) return this;
if (other.hasId()) {
mergeId(other.getId());
}
if (other.hasParameter()) {
mergeParameter(other.getParameter());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (hasId()) {
if (!getId().isInitialized()) {
return false;
}
}
if (hasParameter()) {
if (!getParameter().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.Rest.BulkGetParameterInfoResponse.GetParameterInfoResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.yamcs.protobuf.Rest.BulkGetParameterInfoResponse.GetParameterInfoResponse) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private org.yamcs.protobuf.Yamcs.NamedObjectId id_ = org.yamcs.protobuf.Yamcs.NamedObjectId.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
org.yamcs.protobuf.Yamcs.NamedObjectId, org.yamcs.protobuf.Yamcs.NamedObjectId.Builder, org.yamcs.protobuf.Yamcs.NamedObjectIdOrBuilder> idBuilder_;
/**
* optional .yamcs.NamedObjectId id = 1;
*/
public boolean hasId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional .yamcs.NamedObjectId id = 1;
*/
public org.yamcs.protobuf.Yamcs.NamedObjectId getId() {
if (idBuilder_ == null) {
return id_;
} else {
return idBuilder_.getMessage();
}
}
/**
* optional .yamcs.NamedObjectId id = 1;
*/
public Builder setId(org.yamcs.protobuf.Yamcs.NamedObjectId value) {
if (idBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
id_ = value;
onChanged();
} else {
idBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .yamcs.NamedObjectId id = 1;
*/
public Builder setId(
org.yamcs.protobuf.Yamcs.NamedObjectId.Builder builderForValue) {
if (idBuilder_ == null) {
id_ = builderForValue.build();
onChanged();
} else {
idBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .yamcs.NamedObjectId id = 1;
*/
public Builder mergeId(org.yamcs.protobuf.Yamcs.NamedObjectId value) {
if (idBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001) &&
id_ != org.yamcs.protobuf.Yamcs.NamedObjectId.getDefaultInstance()) {
id_ =
org.yamcs.protobuf.Yamcs.NamedObjectId.newBuilder(id_).mergeFrom(value).buildPartial();
} else {
id_ = value;
}
onChanged();
} else {
idBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .yamcs.NamedObjectId id = 1;
*/
public Builder clearId() {
if (idBuilder_ == null) {
id_ = org.yamcs.protobuf.Yamcs.NamedObjectId.getDefaultInstance();
onChanged();
} else {
idBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
/**
* optional .yamcs.NamedObjectId id = 1;
*/
public org.yamcs.protobuf.Yamcs.NamedObjectId.Builder getIdBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getIdFieldBuilder().getBuilder();
}
/**
* optional .yamcs.NamedObjectId id = 1;
*/
public org.yamcs.protobuf.Yamcs.NamedObjectIdOrBuilder getIdOrBuilder() {
if (idBuilder_ != null) {
return idBuilder_.getMessageOrBuilder();
} else {
return id_;
}
}
/**
* optional .yamcs.NamedObjectId id = 1;
*/
private com.google.protobuf.SingleFieldBuilder<
org.yamcs.protobuf.Yamcs.NamedObjectId, org.yamcs.protobuf.Yamcs.NamedObjectId.Builder, org.yamcs.protobuf.Yamcs.NamedObjectIdOrBuilder>
getIdFieldBuilder() {
if (idBuilder_ == null) {
idBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.yamcs.protobuf.Yamcs.NamedObjectId, org.yamcs.protobuf.Yamcs.NamedObjectId.Builder, org.yamcs.protobuf.Yamcs.NamedObjectIdOrBuilder>(
getId(),
getParentForChildren(),
isClean());
id_ = null;
}
return idBuilder_;
}
private org.yamcs.protobuf.Mdb.ParameterInfo parameter_ = org.yamcs.protobuf.Mdb.ParameterInfo.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
org.yamcs.protobuf.Mdb.ParameterInfo, org.yamcs.protobuf.Mdb.ParameterInfo.Builder, org.yamcs.protobuf.Mdb.ParameterInfoOrBuilder> parameterBuilder_;
/**
* optional .mdb.ParameterInfo parameter = 2;
*/
public boolean hasParameter() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional .mdb.ParameterInfo parameter = 2;
*/
public org.yamcs.protobuf.Mdb.ParameterInfo getParameter() {
if (parameterBuilder_ == null) {
return parameter_;
} else {
return parameterBuilder_.getMessage();
}
}
/**
* optional .mdb.ParameterInfo parameter = 2;
*/
public Builder setParameter(org.yamcs.protobuf.Mdb.ParameterInfo value) {
if (parameterBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
parameter_ = value;
onChanged();
} else {
parameterBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .mdb.ParameterInfo parameter = 2;
*/
public Builder setParameter(
org.yamcs.protobuf.Mdb.ParameterInfo.Builder builderForValue) {
if (parameterBuilder_ == null) {
parameter_ = builderForValue.build();
onChanged();
} else {
parameterBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .mdb.ParameterInfo parameter = 2;
*/
public Builder mergeParameter(org.yamcs.protobuf.Mdb.ParameterInfo value) {
if (parameterBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002) &&
parameter_ != org.yamcs.protobuf.Mdb.ParameterInfo.getDefaultInstance()) {
parameter_ =
org.yamcs.protobuf.Mdb.ParameterInfo.newBuilder(parameter_).mergeFrom(value).buildPartial();
} else {
parameter_ = value;
}
onChanged();
} else {
parameterBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .mdb.ParameterInfo parameter = 2;
*/
public Builder clearParameter() {
if (parameterBuilder_ == null) {
parameter_ = org.yamcs.protobuf.Mdb.ParameterInfo.getDefaultInstance();
onChanged();
} else {
parameterBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
/**
* optional .mdb.ParameterInfo parameter = 2;
*/
public org.yamcs.protobuf.Mdb.ParameterInfo.Builder getParameterBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getParameterFieldBuilder().getBuilder();
}
/**
* optional .mdb.ParameterInfo parameter = 2;
*/
public org.yamcs.protobuf.Mdb.ParameterInfoOrBuilder getParameterOrBuilder() {
if (parameterBuilder_ != null) {
return parameterBuilder_.getMessageOrBuilder();
} else {
return parameter_;
}
}
/**
* optional .mdb.ParameterInfo parameter = 2;
*/
private com.google.protobuf.SingleFieldBuilder<
org.yamcs.protobuf.Mdb.ParameterInfo, org.yamcs.protobuf.Mdb.ParameterInfo.Builder, org.yamcs.protobuf.Mdb.ParameterInfoOrBuilder>
getParameterFieldBuilder() {
if (parameterBuilder_ == null) {
parameterBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.yamcs.protobuf.Mdb.ParameterInfo, org.yamcs.protobuf.Mdb.ParameterInfo.Builder, org.yamcs.protobuf.Mdb.ParameterInfoOrBuilder>(
getParameter(),
getParentForChildren(),
isClean());
parameter_ = null;
}
return parameterBuilder_;
}
// @@protoc_insertion_point(builder_scope:parameters.BulkGetParameterInfoResponse.GetParameterInfoResponse)
}
static {
defaultInstance = new GetParameterInfoResponse(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:parameters.BulkGetParameterInfoResponse.GetParameterInfoResponse)
}
public static final int RESPONSE_FIELD_NUMBER = 1;
private java.util.List response_;
/**
* repeated .parameters.BulkGetParameterInfoResponse.GetParameterInfoResponse response = 1;
*/
public java.util.List getResponseList() {
return response_;
}
/**
* repeated .parameters.BulkGetParameterInfoResponse.GetParameterInfoResponse response = 1;
*/
public java.util.List extends org.yamcs.protobuf.Rest.BulkGetParameterInfoResponse.GetParameterInfoResponseOrBuilder>
getResponseOrBuilderList() {
return response_;
}
/**
* repeated .parameters.BulkGetParameterInfoResponse.GetParameterInfoResponse response = 1;
*/
public int getResponseCount() {
return response_.size();
}
/**
* repeated .parameters.BulkGetParameterInfoResponse.GetParameterInfoResponse response = 1;
*/
public org.yamcs.protobuf.Rest.BulkGetParameterInfoResponse.GetParameterInfoResponse getResponse(int index) {
return response_.get(index);
}
/**
* repeated .parameters.BulkGetParameterInfoResponse.GetParameterInfoResponse response = 1;
*/
public org.yamcs.protobuf.Rest.BulkGetParameterInfoResponse.GetParameterInfoResponseOrBuilder getResponseOrBuilder(
int index) {
return response_.get(index);
}
private void initFields() {
response_ = java.util.Collections.emptyList();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
for (int i = 0; i < getResponseCount(); i++) {
if (!getResponse(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 < response_.size(); i++) {
output.writeMessage(1, response_.get(i));
}
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 < response_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, response_.get(i));
}
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.Rest.BulkGetParameterInfoResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.Rest.BulkGetParameterInfoResponse 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.Rest.BulkGetParameterInfoResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.Rest.BulkGetParameterInfoResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.yamcs.protobuf.Rest.BulkGetParameterInfoResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.yamcs.protobuf.Rest.BulkGetParameterInfoResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.yamcs.protobuf.Rest.BulkGetParameterInfoResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.yamcs.protobuf.Rest.BulkGetParameterInfoResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.yamcs.protobuf.Rest.BulkGetParameterInfoResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.yamcs.protobuf.Rest.BulkGetParameterInfoResponse 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.Rest.BulkGetParameterInfoResponse 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 parameters.BulkGetParameterInfoResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:parameters.BulkGetParameterInfoResponse)
org.yamcs.protobuf.Rest.BulkGetParameterInfoResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.Rest.internal_static_parameters_BulkGetParameterInfoResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.Rest.internal_static_parameters_BulkGetParameterInfoResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.Rest.BulkGetParameterInfoResponse.class, org.yamcs.protobuf.Rest.BulkGetParameterInfoResponse.Builder.class);
}
// Construct using org.yamcs.protobuf.Rest.BulkGetParameterInfoResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getResponseFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
if (responseBuilder_ == null) {
response_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
responseBuilder_.clear();
}
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.yamcs.protobuf.Rest.internal_static_parameters_BulkGetParameterInfoResponse_descriptor;
}
public org.yamcs.protobuf.Rest.BulkGetParameterInfoResponse getDefaultInstanceForType() {
return org.yamcs.protobuf.Rest.BulkGetParameterInfoResponse.getDefaultInstance();
}
public org.yamcs.protobuf.Rest.BulkGetParameterInfoResponse build() {
org.yamcs.protobuf.Rest.BulkGetParameterInfoResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.yamcs.protobuf.Rest.BulkGetParameterInfoResponse buildPartial() {
org.yamcs.protobuf.Rest.BulkGetParameterInfoResponse result = new org.yamcs.protobuf.Rest.BulkGetParameterInfoResponse(this);
int from_bitField0_ = bitField0_;
if (responseBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
response_ = java.util.Collections.unmodifiableList(response_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.response_ = response_;
} else {
result.response_ = responseBuilder_.build();
}
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.yamcs.protobuf.Rest.BulkGetParameterInfoResponse) {
return mergeFrom((org.yamcs.protobuf.Rest.BulkGetParameterInfoResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.yamcs.protobuf.Rest.BulkGetParameterInfoResponse other) {
if (other == org.yamcs.protobuf.Rest.BulkGetParameterInfoResponse.getDefaultInstance()) return this;
if (responseBuilder_ == null) {
if (!other.response_.isEmpty()) {
if (response_.isEmpty()) {
response_ = other.response_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureResponseIsMutable();
response_.addAll(other.response_);
}
onChanged();
}
} else {
if (!other.response_.isEmpty()) {
if (responseBuilder_.isEmpty()) {
responseBuilder_.dispose();
responseBuilder_ = null;
response_ = other.response_;
bitField0_ = (bitField0_ & ~0x00000001);
responseBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getResponseFieldBuilder() : null;
} else {
responseBuilder_.addAllMessages(other.response_);
}
}
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
for (int i = 0; i < getResponseCount(); i++) {
if (!getResponse(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.Rest.BulkGetParameterInfoResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.yamcs.protobuf.Rest.BulkGetParameterInfoResponse) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List response_ =
java.util.Collections.emptyList();
private void ensureResponseIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
response_ = new java.util.ArrayList(response_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
org.yamcs.protobuf.Rest.BulkGetParameterInfoResponse.GetParameterInfoResponse, org.yamcs.protobuf.Rest.BulkGetParameterInfoResponse.GetParameterInfoResponse.Builder, org.yamcs.protobuf.Rest.BulkGetParameterInfoResponse.GetParameterInfoResponseOrBuilder> responseBuilder_;
/**
* repeated .parameters.BulkGetParameterInfoResponse.GetParameterInfoResponse response = 1;
*/
public java.util.List getResponseList() {
if (responseBuilder_ == null) {
return java.util.Collections.unmodifiableList(response_);
} else {
return responseBuilder_.getMessageList();
}
}
/**
* repeated .parameters.BulkGetParameterInfoResponse.GetParameterInfoResponse response = 1;
*/
public int getResponseCount() {
if (responseBuilder_ == null) {
return response_.size();
} else {
return responseBuilder_.getCount();
}
}
/**
* repeated .parameters.BulkGetParameterInfoResponse.GetParameterInfoResponse response = 1;
*/
public org.yamcs.protobuf.Rest.BulkGetParameterInfoResponse.GetParameterInfoResponse getResponse(int index) {
if (responseBuilder_ == null) {
return response_.get(index);
} else {
return responseBuilder_.getMessage(index);
}
}
/**
* repeated .parameters.BulkGetParameterInfoResponse.GetParameterInfoResponse response = 1;
*/
public Builder setResponse(
int index, org.yamcs.protobuf.Rest.BulkGetParameterInfoResponse.GetParameterInfoResponse value) {
if (responseBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureResponseIsMutable();
response_.set(index, value);
onChanged();
} else {
responseBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .parameters.BulkGetParameterInfoResponse.GetParameterInfoResponse response = 1;
*/
public Builder setResponse(
int index, org.yamcs.protobuf.Rest.BulkGetParameterInfoResponse.GetParameterInfoResponse.Builder builderForValue) {
if (responseBuilder_ == null) {
ensureResponseIsMutable();
response_.set(index, builderForValue.build());
onChanged();
} else {
responseBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .parameters.BulkGetParameterInfoResponse.GetParameterInfoResponse response = 1;
*/
public Builder addResponse(org.yamcs.protobuf.Rest.BulkGetParameterInfoResponse.GetParameterInfoResponse value) {
if (responseBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureResponseIsMutable();
response_.add(value);
onChanged();
} else {
responseBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .parameters.BulkGetParameterInfoResponse.GetParameterInfoResponse response = 1;
*/
public Builder addResponse(
int index, org.yamcs.protobuf.Rest.BulkGetParameterInfoResponse.GetParameterInfoResponse value) {
if (responseBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureResponseIsMutable();
response_.add(index, value);
onChanged();
} else {
responseBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .parameters.BulkGetParameterInfoResponse.GetParameterInfoResponse response = 1;
*/
public Builder addResponse(
org.yamcs.protobuf.Rest.BulkGetParameterInfoResponse.GetParameterInfoResponse.Builder builderForValue) {
if (responseBuilder_ == null) {
ensureResponseIsMutable();
response_.add(builderForValue.build());
onChanged();
} else {
responseBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .parameters.BulkGetParameterInfoResponse.GetParameterInfoResponse response = 1;
*/
public Builder addResponse(
int index, org.yamcs.protobuf.Rest.BulkGetParameterInfoResponse.GetParameterInfoResponse.Builder builderForValue) {
if (responseBuilder_ == null) {
ensureResponseIsMutable();
response_.add(index, builderForValue.build());
onChanged();
} else {
responseBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .parameters.BulkGetParameterInfoResponse.GetParameterInfoResponse response = 1;
*/
public Builder addAllResponse(
java.lang.Iterable extends org.yamcs.protobuf.Rest.BulkGetParameterInfoResponse.GetParameterInfoResponse> values) {
if (responseBuilder_ == null) {
ensureResponseIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, response_);
onChanged();
} else {
responseBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .parameters.BulkGetParameterInfoResponse.GetParameterInfoResponse response = 1;
*/
public Builder clearResponse() {
if (responseBuilder_ == null) {
response_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
responseBuilder_.clear();
}
return this;
}
/**
* repeated .parameters.BulkGetParameterInfoResponse.GetParameterInfoResponse response = 1;
*/
public Builder removeResponse(int index) {
if (responseBuilder_ == null) {
ensureResponseIsMutable();
response_.remove(index);
onChanged();
} else {
responseBuilder_.remove(index);
}
return this;
}
/**
* repeated .parameters.BulkGetParameterInfoResponse.GetParameterInfoResponse response = 1;
*/
public org.yamcs.protobuf.Rest.BulkGetParameterInfoResponse.GetParameterInfoResponse.Builder getResponseBuilder(
int index) {
return getResponseFieldBuilder().getBuilder(index);
}
/**
* repeated .parameters.BulkGetParameterInfoResponse.GetParameterInfoResponse response = 1;
*/
public org.yamcs.protobuf.Rest.BulkGetParameterInfoResponse.GetParameterInfoResponseOrBuilder getResponseOrBuilder(
int index) {
if (responseBuilder_ == null) {
return response_.get(index); } else {
return responseBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .parameters.BulkGetParameterInfoResponse.GetParameterInfoResponse response = 1;
*/
public java.util.List extends org.yamcs.protobuf.Rest.BulkGetParameterInfoResponse.GetParameterInfoResponseOrBuilder>
getResponseOrBuilderList() {
if (responseBuilder_ != null) {
return responseBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(response_);
}
}
/**
* repeated .parameters.BulkGetParameterInfoResponse.GetParameterInfoResponse response = 1;
*/
public org.yamcs.protobuf.Rest.BulkGetParameterInfoResponse.GetParameterInfoResponse.Builder addResponseBuilder() {
return getResponseFieldBuilder().addBuilder(
org.yamcs.protobuf.Rest.BulkGetParameterInfoResponse.GetParameterInfoResponse.getDefaultInstance());
}
/**
* repeated .parameters.BulkGetParameterInfoResponse.GetParameterInfoResponse response = 1;
*/
public org.yamcs.protobuf.Rest.BulkGetParameterInfoResponse.GetParameterInfoResponse.Builder addResponseBuilder(
int index) {
return getResponseFieldBuilder().addBuilder(
index, org.yamcs.protobuf.Rest.BulkGetParameterInfoResponse.GetParameterInfoResponse.getDefaultInstance());
}
/**
* repeated .parameters.BulkGetParameterInfoResponse.GetParameterInfoResponse response = 1;
*/
public java.util.List
getResponseBuilderList() {
return getResponseFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
org.yamcs.protobuf.Rest.BulkGetParameterInfoResponse.GetParameterInfoResponse, org.yamcs.protobuf.Rest.BulkGetParameterInfoResponse.GetParameterInfoResponse.Builder, org.yamcs.protobuf.Rest.BulkGetParameterInfoResponse.GetParameterInfoResponseOrBuilder>
getResponseFieldBuilder() {
if (responseBuilder_ == null) {
responseBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
org.yamcs.protobuf.Rest.BulkGetParameterInfoResponse.GetParameterInfoResponse, org.yamcs.protobuf.Rest.BulkGetParameterInfoResponse.GetParameterInfoResponse.Builder, org.yamcs.protobuf.Rest.BulkGetParameterInfoResponse.GetParameterInfoResponseOrBuilder>(
response_,
((bitField0_ & 0x00000001) == 0x00000001),
getParentForChildren(),
isClean());
response_ = null;
}
return responseBuilder_;
}
// @@protoc_insertion_point(builder_scope:parameters.BulkGetParameterInfoResponse)
}
static {
defaultInstance = new BulkGetParameterInfoResponse(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:parameters.BulkGetParameterInfoResponse)
}
public interface BulkGetParameterValueRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:parameters.BulkGetParameterValueRequest)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .yamcs.NamedObjectId id = 1;
*/
java.util.List
getIdList();
/**
* repeated .yamcs.NamedObjectId id = 1;
*/
org.yamcs.protobuf.Yamcs.NamedObjectId getId(int index);
/**
* repeated .yamcs.NamedObjectId id = 1;
*/
int getIdCount();
/**
* repeated .yamcs.NamedObjectId id = 1;
*/
java.util.List extends org.yamcs.protobuf.Yamcs.NamedObjectIdOrBuilder>
getIdOrBuilderList();
/**
* repeated .yamcs.NamedObjectId id = 1;
*/
org.yamcs.protobuf.Yamcs.NamedObjectIdOrBuilder getIdOrBuilder(
int index);
/**
* optional bool fromCache = 2;
*/
boolean hasFromCache();
/**
* optional bool fromCache = 2;
*/
boolean getFromCache();
/**
* optional uint64 timeout = 3;
*
*
*if not fromCache, wait this time (in milliseconds) to receive the parameter
*
*/
boolean hasTimeout();
/**
* optional uint64 timeout = 3;
*
*
*if not fromCache, wait this time (in milliseconds) to receive the parameter
*
*/
long getTimeout();
}
/**
* Protobuf type {@code parameters.BulkGetParameterValueRequest}
*/
public static final class BulkGetParameterValueRequest extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:parameters.BulkGetParameterValueRequest)
BulkGetParameterValueRequestOrBuilder {
// Use BulkGetParameterValueRequest.newBuilder() to construct.
private BulkGetParameterValueRequest(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private BulkGetParameterValueRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final BulkGetParameterValueRequest defaultInstance;
public static BulkGetParameterValueRequest getDefaultInstance() {
return defaultInstance;
}
public BulkGetParameterValueRequest getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private BulkGetParameterValueRequest(
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)) {
id_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
id_.add(input.readMessage(org.yamcs.protobuf.Yamcs.NamedObjectId.PARSER, extensionRegistry));
break;
}
case 16: {
bitField0_ |= 0x00000001;
fromCache_ = input.readBool();
break;
}
case 24: {
bitField0_ |= 0x00000002;
timeout_ = input.readUInt64();
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)) {
id_ = java.util.Collections.unmodifiableList(id_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.Rest.internal_static_parameters_BulkGetParameterValueRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.Rest.internal_static_parameters_BulkGetParameterValueRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.Rest.BulkGetParameterValueRequest.class, org.yamcs.protobuf.Rest.BulkGetParameterValueRequest.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public BulkGetParameterValueRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new BulkGetParameterValueRequest(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
public static final int ID_FIELD_NUMBER = 1;
private java.util.List id_;
/**
* repeated .yamcs.NamedObjectId id = 1;
*/
public java.util.List getIdList() {
return id_;
}
/**
* repeated .yamcs.NamedObjectId id = 1;
*/
public java.util.List extends org.yamcs.protobuf.Yamcs.NamedObjectIdOrBuilder>
getIdOrBuilderList() {
return id_;
}
/**
* repeated .yamcs.NamedObjectId id = 1;
*/
public int getIdCount() {
return id_.size();
}
/**
* repeated .yamcs.NamedObjectId id = 1;
*/
public org.yamcs.protobuf.Yamcs.NamedObjectId getId(int index) {
return id_.get(index);
}
/**
* repeated .yamcs.NamedObjectId id = 1;
*/
public org.yamcs.protobuf.Yamcs.NamedObjectIdOrBuilder getIdOrBuilder(
int index) {
return id_.get(index);
}
public static final int FROMCACHE_FIELD_NUMBER = 2;
private boolean fromCache_;
/**
* optional bool fromCache = 2;
*/
public boolean hasFromCache() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional bool fromCache = 2;
*/
public boolean getFromCache() {
return fromCache_;
}
public static final int TIMEOUT_FIELD_NUMBER = 3;
private long timeout_;
/**
* optional uint64 timeout = 3;
*
*
*if not fromCache, wait this time (in milliseconds) to receive the parameter
*
*/
public boolean hasTimeout() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional uint64 timeout = 3;
*
*
*if not fromCache, wait this time (in milliseconds) to receive the parameter
*
*/
public long getTimeout() {
return timeout_;
}
private void initFields() {
id_ = java.util.Collections.emptyList();
fromCache_ = false;
timeout_ = 0L;
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
for (int i = 0; i < getIdCount(); i++) {
if (!getId(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 < id_.size(); i++) {
output.writeMessage(1, id_.get(i));
}
if (((bitField0_ & 0x00000001) == 0x00000001)) {
output.writeBool(2, fromCache_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeUInt64(3, timeout_);
}
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 < id_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, id_.get(i));
}
if (((bitField0_ & 0x00000001) == 0x00000001)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(2, fromCache_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeUInt64Size(3, timeout_);
}
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.Rest.BulkGetParameterValueRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.Rest.BulkGetParameterValueRequest 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.Rest.BulkGetParameterValueRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.Rest.BulkGetParameterValueRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.yamcs.protobuf.Rest.BulkGetParameterValueRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.yamcs.protobuf.Rest.BulkGetParameterValueRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.yamcs.protobuf.Rest.BulkGetParameterValueRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.yamcs.protobuf.Rest.BulkGetParameterValueRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.yamcs.protobuf.Rest.BulkGetParameterValueRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.yamcs.protobuf.Rest.BulkGetParameterValueRequest 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.Rest.BulkGetParameterValueRequest 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 parameters.BulkGetParameterValueRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:parameters.BulkGetParameterValueRequest)
org.yamcs.protobuf.Rest.BulkGetParameterValueRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.Rest.internal_static_parameters_BulkGetParameterValueRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.Rest.internal_static_parameters_BulkGetParameterValueRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.Rest.BulkGetParameterValueRequest.class, org.yamcs.protobuf.Rest.BulkGetParameterValueRequest.Builder.class);
}
// Construct using org.yamcs.protobuf.Rest.BulkGetParameterValueRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getIdFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
if (idBuilder_ == null) {
id_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
idBuilder_.clear();
}
fromCache_ = false;
bitField0_ = (bitField0_ & ~0x00000002);
timeout_ = 0L;
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.yamcs.protobuf.Rest.internal_static_parameters_BulkGetParameterValueRequest_descriptor;
}
public org.yamcs.protobuf.Rest.BulkGetParameterValueRequest getDefaultInstanceForType() {
return org.yamcs.protobuf.Rest.BulkGetParameterValueRequest.getDefaultInstance();
}
public org.yamcs.protobuf.Rest.BulkGetParameterValueRequest build() {
org.yamcs.protobuf.Rest.BulkGetParameterValueRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.yamcs.protobuf.Rest.BulkGetParameterValueRequest buildPartial() {
org.yamcs.protobuf.Rest.BulkGetParameterValueRequest result = new org.yamcs.protobuf.Rest.BulkGetParameterValueRequest(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (idBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
id_ = java.util.Collections.unmodifiableList(id_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.id_ = id_;
} else {
result.id_ = idBuilder_.build();
}
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000001;
}
result.fromCache_ = fromCache_;
if (((from_bitField0_ & 0x00000004) == 0x00000004)) {
to_bitField0_ |= 0x00000002;
}
result.timeout_ = timeout_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.yamcs.protobuf.Rest.BulkGetParameterValueRequest) {
return mergeFrom((org.yamcs.protobuf.Rest.BulkGetParameterValueRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.yamcs.protobuf.Rest.BulkGetParameterValueRequest other) {
if (other == org.yamcs.protobuf.Rest.BulkGetParameterValueRequest.getDefaultInstance()) return this;
if (idBuilder_ == null) {
if (!other.id_.isEmpty()) {
if (id_.isEmpty()) {
id_ = other.id_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureIdIsMutable();
id_.addAll(other.id_);
}
onChanged();
}
} else {
if (!other.id_.isEmpty()) {
if (idBuilder_.isEmpty()) {
idBuilder_.dispose();
idBuilder_ = null;
id_ = other.id_;
bitField0_ = (bitField0_ & ~0x00000001);
idBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getIdFieldBuilder() : null;
} else {
idBuilder_.addAllMessages(other.id_);
}
}
}
if (other.hasFromCache()) {
setFromCache(other.getFromCache());
}
if (other.hasTimeout()) {
setTimeout(other.getTimeout());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
for (int i = 0; i < getIdCount(); i++) {
if (!getId(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.Rest.BulkGetParameterValueRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.yamcs.protobuf.Rest.BulkGetParameterValueRequest) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List id_ =
java.util.Collections.emptyList();
private void ensureIdIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
id_ = new java.util.ArrayList(id_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
org.yamcs.protobuf.Yamcs.NamedObjectId, org.yamcs.protobuf.Yamcs.NamedObjectId.Builder, org.yamcs.protobuf.Yamcs.NamedObjectIdOrBuilder> idBuilder_;
/**
* repeated .yamcs.NamedObjectId id = 1;
*/
public java.util.List getIdList() {
if (idBuilder_ == null) {
return java.util.Collections.unmodifiableList(id_);
} else {
return idBuilder_.getMessageList();
}
}
/**
* repeated .yamcs.NamedObjectId id = 1;
*/
public int getIdCount() {
if (idBuilder_ == null) {
return id_.size();
} else {
return idBuilder_.getCount();
}
}
/**
* repeated .yamcs.NamedObjectId id = 1;
*/
public org.yamcs.protobuf.Yamcs.NamedObjectId getId(int index) {
if (idBuilder_ == null) {
return id_.get(index);
} else {
return idBuilder_.getMessage(index);
}
}
/**
* repeated .yamcs.NamedObjectId id = 1;
*/
public Builder setId(
int index, org.yamcs.protobuf.Yamcs.NamedObjectId value) {
if (idBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureIdIsMutable();
id_.set(index, value);
onChanged();
} else {
idBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .yamcs.NamedObjectId id = 1;
*/
public Builder setId(
int index, org.yamcs.protobuf.Yamcs.NamedObjectId.Builder builderForValue) {
if (idBuilder_ == null) {
ensureIdIsMutable();
id_.set(index, builderForValue.build());
onChanged();
} else {
idBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .yamcs.NamedObjectId id = 1;
*/
public Builder addId(org.yamcs.protobuf.Yamcs.NamedObjectId value) {
if (idBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureIdIsMutable();
id_.add(value);
onChanged();
} else {
idBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .yamcs.NamedObjectId id = 1;
*/
public Builder addId(
int index, org.yamcs.protobuf.Yamcs.NamedObjectId value) {
if (idBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureIdIsMutable();
id_.add(index, value);
onChanged();
} else {
idBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .yamcs.NamedObjectId id = 1;
*/
public Builder addId(
org.yamcs.protobuf.Yamcs.NamedObjectId.Builder builderForValue) {
if (idBuilder_ == null) {
ensureIdIsMutable();
id_.add(builderForValue.build());
onChanged();
} else {
idBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .yamcs.NamedObjectId id = 1;
*/
public Builder addId(
int index, org.yamcs.protobuf.Yamcs.NamedObjectId.Builder builderForValue) {
if (idBuilder_ == null) {
ensureIdIsMutable();
id_.add(index, builderForValue.build());
onChanged();
} else {
idBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .yamcs.NamedObjectId id = 1;
*/
public Builder addAllId(
java.lang.Iterable extends org.yamcs.protobuf.Yamcs.NamedObjectId> values) {
if (idBuilder_ == null) {
ensureIdIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, id_);
onChanged();
} else {
idBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .yamcs.NamedObjectId id = 1;
*/
public Builder clearId() {
if (idBuilder_ == null) {
id_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
idBuilder_.clear();
}
return this;
}
/**
* repeated .yamcs.NamedObjectId id = 1;
*/
public Builder removeId(int index) {
if (idBuilder_ == null) {
ensureIdIsMutable();
id_.remove(index);
onChanged();
} else {
idBuilder_.remove(index);
}
return this;
}
/**
* repeated .yamcs.NamedObjectId id = 1;
*/
public org.yamcs.protobuf.Yamcs.NamedObjectId.Builder getIdBuilder(
int index) {
return getIdFieldBuilder().getBuilder(index);
}
/**
* repeated .yamcs.NamedObjectId id = 1;
*/
public org.yamcs.protobuf.Yamcs.NamedObjectIdOrBuilder getIdOrBuilder(
int index) {
if (idBuilder_ == null) {
return id_.get(index); } else {
return idBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .yamcs.NamedObjectId id = 1;
*/
public java.util.List extends org.yamcs.protobuf.Yamcs.NamedObjectIdOrBuilder>
getIdOrBuilderList() {
if (idBuilder_ != null) {
return idBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(id_);
}
}
/**
* repeated .yamcs.NamedObjectId id = 1;
*/
public org.yamcs.protobuf.Yamcs.NamedObjectId.Builder addIdBuilder() {
return getIdFieldBuilder().addBuilder(
org.yamcs.protobuf.Yamcs.NamedObjectId.getDefaultInstance());
}
/**
* repeated .yamcs.NamedObjectId id = 1;
*/
public org.yamcs.protobuf.Yamcs.NamedObjectId.Builder addIdBuilder(
int index) {
return getIdFieldBuilder().addBuilder(
index, org.yamcs.protobuf.Yamcs.NamedObjectId.getDefaultInstance());
}
/**
* repeated .yamcs.NamedObjectId id = 1;
*/
public java.util.List
getIdBuilderList() {
return getIdFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
org.yamcs.protobuf.Yamcs.NamedObjectId, org.yamcs.protobuf.Yamcs.NamedObjectId.Builder, org.yamcs.protobuf.Yamcs.NamedObjectIdOrBuilder>
getIdFieldBuilder() {
if (idBuilder_ == null) {
idBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
org.yamcs.protobuf.Yamcs.NamedObjectId, org.yamcs.protobuf.Yamcs.NamedObjectId.Builder, org.yamcs.protobuf.Yamcs.NamedObjectIdOrBuilder>(
id_,
((bitField0_ & 0x00000001) == 0x00000001),
getParentForChildren(),
isClean());
id_ = null;
}
return idBuilder_;
}
private boolean fromCache_ ;
/**
* optional bool fromCache = 2;
*/
public boolean hasFromCache() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional bool fromCache = 2;
*/
public boolean getFromCache() {
return fromCache_;
}
/**
* optional bool fromCache = 2;
*/
public Builder setFromCache(boolean value) {
bitField0_ |= 0x00000002;
fromCache_ = value;
onChanged();
return this;
}
/**
* optional bool fromCache = 2;
*/
public Builder clearFromCache() {
bitField0_ = (bitField0_ & ~0x00000002);
fromCache_ = false;
onChanged();
return this;
}
private long timeout_ ;
/**
* optional uint64 timeout = 3;
*
*
*if not fromCache, wait this time (in milliseconds) to receive the parameter
*
*/
public boolean hasTimeout() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional uint64 timeout = 3;
*
*
*if not fromCache, wait this time (in milliseconds) to receive the parameter
*
*/
public long getTimeout() {
return timeout_;
}
/**
* optional uint64 timeout = 3;
*
*
*if not fromCache, wait this time (in milliseconds) to receive the parameter
*
*/
public Builder setTimeout(long value) {
bitField0_ |= 0x00000004;
timeout_ = value;
onChanged();
return this;
}
/**
* optional uint64 timeout = 3;
*
*
*if not fromCache, wait this time (in milliseconds) to receive the parameter
*
*/
public Builder clearTimeout() {
bitField0_ = (bitField0_ & ~0x00000004);
timeout_ = 0L;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:parameters.BulkGetParameterValueRequest)
}
static {
defaultInstance = new BulkGetParameterValueRequest(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:parameters.BulkGetParameterValueRequest)
}
public interface BulkGetParameterValueResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:parameters.BulkGetParameterValueResponse)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .pvalue.ParameterValue value = 1;
*/
java.util.List
getValueList();
/**
* repeated .pvalue.ParameterValue value = 1;
*/
org.yamcs.protobuf.Pvalue.ParameterValue getValue(int index);
/**
* repeated .pvalue.ParameterValue value = 1;
*/
int getValueCount();
/**
* repeated .pvalue.ParameterValue value = 1;
*/
java.util.List extends org.yamcs.protobuf.Pvalue.ParameterValueOrBuilder>
getValueOrBuilderList();
/**
* repeated .pvalue.ParameterValue value = 1;
*/
org.yamcs.protobuf.Pvalue.ParameterValueOrBuilder getValueOrBuilder(
int index);
}
/**
* Protobuf type {@code parameters.BulkGetParameterValueResponse}
*/
public static final class BulkGetParameterValueResponse extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:parameters.BulkGetParameterValueResponse)
BulkGetParameterValueResponseOrBuilder {
// Use BulkGetParameterValueResponse.newBuilder() to construct.
private BulkGetParameterValueResponse(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private BulkGetParameterValueResponse(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final BulkGetParameterValueResponse defaultInstance;
public static BulkGetParameterValueResponse getDefaultInstance() {
return defaultInstance;
}
public BulkGetParameterValueResponse getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private BulkGetParameterValueResponse(
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)) {
value_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
value_.add(input.readMessage(org.yamcs.protobuf.Pvalue.ParameterValue.PARSER, extensionRegistry));
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)) {
value_ = java.util.Collections.unmodifiableList(value_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.Rest.internal_static_parameters_BulkGetParameterValueResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.Rest.internal_static_parameters_BulkGetParameterValueResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.Rest.BulkGetParameterValueResponse.class, org.yamcs.protobuf.Rest.BulkGetParameterValueResponse.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public BulkGetParameterValueResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new BulkGetParameterValueResponse(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public static final int VALUE_FIELD_NUMBER = 1;
private java.util.List value_;
/**
* repeated .pvalue.ParameterValue value = 1;
*/
public java.util.List getValueList() {
return value_;
}
/**
* repeated .pvalue.ParameterValue value = 1;
*/
public java.util.List extends org.yamcs.protobuf.Pvalue.ParameterValueOrBuilder>
getValueOrBuilderList() {
return value_;
}
/**
* repeated .pvalue.ParameterValue value = 1;
*/
public int getValueCount() {
return value_.size();
}
/**
* repeated .pvalue.ParameterValue value = 1;
*/
public org.yamcs.protobuf.Pvalue.ParameterValue getValue(int index) {
return value_.get(index);
}
/**
* repeated .pvalue.ParameterValue value = 1;
*/
public org.yamcs.protobuf.Pvalue.ParameterValueOrBuilder getValueOrBuilder(
int index) {
return value_.get(index);
}
private void initFields() {
value_ = java.util.Collections.emptyList();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
for (int i = 0; i < getValueCount(); i++) {
if (!getValue(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 < value_.size(); i++) {
output.writeMessage(1, value_.get(i));
}
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 < value_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, value_.get(i));
}
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.Rest.BulkGetParameterValueResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.Rest.BulkGetParameterValueResponse 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.Rest.BulkGetParameterValueResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.Rest.BulkGetParameterValueResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.yamcs.protobuf.Rest.BulkGetParameterValueResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.yamcs.protobuf.Rest.BulkGetParameterValueResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.yamcs.protobuf.Rest.BulkGetParameterValueResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.yamcs.protobuf.Rest.BulkGetParameterValueResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.yamcs.protobuf.Rest.BulkGetParameterValueResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.yamcs.protobuf.Rest.BulkGetParameterValueResponse 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.Rest.BulkGetParameterValueResponse 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 parameters.BulkGetParameterValueResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:parameters.BulkGetParameterValueResponse)
org.yamcs.protobuf.Rest.BulkGetParameterValueResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.Rest.internal_static_parameters_BulkGetParameterValueResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.Rest.internal_static_parameters_BulkGetParameterValueResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.Rest.BulkGetParameterValueResponse.class, org.yamcs.protobuf.Rest.BulkGetParameterValueResponse.Builder.class);
}
// Construct using org.yamcs.protobuf.Rest.BulkGetParameterValueResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getValueFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
if (valueBuilder_ == null) {
value_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
valueBuilder_.clear();
}
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.yamcs.protobuf.Rest.internal_static_parameters_BulkGetParameterValueResponse_descriptor;
}
public org.yamcs.protobuf.Rest.BulkGetParameterValueResponse getDefaultInstanceForType() {
return org.yamcs.protobuf.Rest.BulkGetParameterValueResponse.getDefaultInstance();
}
public org.yamcs.protobuf.Rest.BulkGetParameterValueResponse build() {
org.yamcs.protobuf.Rest.BulkGetParameterValueResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.yamcs.protobuf.Rest.BulkGetParameterValueResponse buildPartial() {
org.yamcs.protobuf.Rest.BulkGetParameterValueResponse result = new org.yamcs.protobuf.Rest.BulkGetParameterValueResponse(this);
int from_bitField0_ = bitField0_;
if (valueBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
value_ = java.util.Collections.unmodifiableList(value_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.value_ = value_;
} else {
result.value_ = valueBuilder_.build();
}
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.yamcs.protobuf.Rest.BulkGetParameterValueResponse) {
return mergeFrom((org.yamcs.protobuf.Rest.BulkGetParameterValueResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.yamcs.protobuf.Rest.BulkGetParameterValueResponse other) {
if (other == org.yamcs.protobuf.Rest.BulkGetParameterValueResponse.getDefaultInstance()) return this;
if (valueBuilder_ == null) {
if (!other.value_.isEmpty()) {
if (value_.isEmpty()) {
value_ = other.value_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureValueIsMutable();
value_.addAll(other.value_);
}
onChanged();
}
} else {
if (!other.value_.isEmpty()) {
if (valueBuilder_.isEmpty()) {
valueBuilder_.dispose();
valueBuilder_ = null;
value_ = other.value_;
bitField0_ = (bitField0_ & ~0x00000001);
valueBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getValueFieldBuilder() : null;
} else {
valueBuilder_.addAllMessages(other.value_);
}
}
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
for (int i = 0; i < getValueCount(); i++) {
if (!getValue(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.Rest.BulkGetParameterValueResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.yamcs.protobuf.Rest.BulkGetParameterValueResponse) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List value_ =
java.util.Collections.emptyList();
private void ensureValueIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
value_ = new java.util.ArrayList(value_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
org.yamcs.protobuf.Pvalue.ParameterValue, org.yamcs.protobuf.Pvalue.ParameterValue.Builder, org.yamcs.protobuf.Pvalue.ParameterValueOrBuilder> valueBuilder_;
/**
* repeated .pvalue.ParameterValue value = 1;
*/
public java.util.List getValueList() {
if (valueBuilder_ == null) {
return java.util.Collections.unmodifiableList(value_);
} else {
return valueBuilder_.getMessageList();
}
}
/**
* repeated .pvalue.ParameterValue value = 1;
*/
public int getValueCount() {
if (valueBuilder_ == null) {
return value_.size();
} else {
return valueBuilder_.getCount();
}
}
/**
* repeated .pvalue.ParameterValue value = 1;
*/
public org.yamcs.protobuf.Pvalue.ParameterValue getValue(int index) {
if (valueBuilder_ == null) {
return value_.get(index);
} else {
return valueBuilder_.getMessage(index);
}
}
/**
* repeated .pvalue.ParameterValue value = 1;
*/
public Builder setValue(
int index, org.yamcs.protobuf.Pvalue.ParameterValue value) {
if (valueBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureValueIsMutable();
value_.set(index, value);
onChanged();
} else {
valueBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .pvalue.ParameterValue value = 1;
*/
public Builder setValue(
int index, org.yamcs.protobuf.Pvalue.ParameterValue.Builder builderForValue) {
if (valueBuilder_ == null) {
ensureValueIsMutable();
value_.set(index, builderForValue.build());
onChanged();
} else {
valueBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .pvalue.ParameterValue value = 1;
*/
public Builder addValue(org.yamcs.protobuf.Pvalue.ParameterValue value) {
if (valueBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureValueIsMutable();
value_.add(value);
onChanged();
} else {
valueBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .pvalue.ParameterValue value = 1;
*/
public Builder addValue(
int index, org.yamcs.protobuf.Pvalue.ParameterValue value) {
if (valueBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureValueIsMutable();
value_.add(index, value);
onChanged();
} else {
valueBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .pvalue.ParameterValue value = 1;
*/
public Builder addValue(
org.yamcs.protobuf.Pvalue.ParameterValue.Builder builderForValue) {
if (valueBuilder_ == null) {
ensureValueIsMutable();
value_.add(builderForValue.build());
onChanged();
} else {
valueBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .pvalue.ParameterValue value = 1;
*/
public Builder addValue(
int index, org.yamcs.protobuf.Pvalue.ParameterValue.Builder builderForValue) {
if (valueBuilder_ == null) {
ensureValueIsMutable();
value_.add(index, builderForValue.build());
onChanged();
} else {
valueBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .pvalue.ParameterValue value = 1;
*/
public Builder addAllValue(
java.lang.Iterable extends org.yamcs.protobuf.Pvalue.ParameterValue> values) {
if (valueBuilder_ == null) {
ensureValueIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, value_);
onChanged();
} else {
valueBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .pvalue.ParameterValue value = 1;
*/
public Builder clearValue() {
if (valueBuilder_ == null) {
value_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
valueBuilder_.clear();
}
return this;
}
/**
* repeated .pvalue.ParameterValue value = 1;
*/
public Builder removeValue(int index) {
if (valueBuilder_ == null) {
ensureValueIsMutable();
value_.remove(index);
onChanged();
} else {
valueBuilder_.remove(index);
}
return this;
}
/**
* repeated .pvalue.ParameterValue value = 1;
*/
public org.yamcs.protobuf.Pvalue.ParameterValue.Builder getValueBuilder(
int index) {
return getValueFieldBuilder().getBuilder(index);
}
/**
* repeated .pvalue.ParameterValue value = 1;
*/
public org.yamcs.protobuf.Pvalue.ParameterValueOrBuilder getValueOrBuilder(
int index) {
if (valueBuilder_ == null) {
return value_.get(index); } else {
return valueBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .pvalue.ParameterValue value = 1;
*/
public java.util.List extends org.yamcs.protobuf.Pvalue.ParameterValueOrBuilder>
getValueOrBuilderList() {
if (valueBuilder_ != null) {
return valueBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(value_);
}
}
/**
* repeated .pvalue.ParameterValue value = 1;
*/
public org.yamcs.protobuf.Pvalue.ParameterValue.Builder addValueBuilder() {
return getValueFieldBuilder().addBuilder(
org.yamcs.protobuf.Pvalue.ParameterValue.getDefaultInstance());
}
/**
* repeated .pvalue.ParameterValue value = 1;
*/
public org.yamcs.protobuf.Pvalue.ParameterValue.Builder addValueBuilder(
int index) {
return getValueFieldBuilder().addBuilder(
index, org.yamcs.protobuf.Pvalue.ParameterValue.getDefaultInstance());
}
/**
* repeated .pvalue.ParameterValue value = 1;
*/
public java.util.List
getValueBuilderList() {
return getValueFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
org.yamcs.protobuf.Pvalue.ParameterValue, org.yamcs.protobuf.Pvalue.ParameterValue.Builder, org.yamcs.protobuf.Pvalue.ParameterValueOrBuilder>
getValueFieldBuilder() {
if (valueBuilder_ == null) {
valueBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
org.yamcs.protobuf.Pvalue.ParameterValue, org.yamcs.protobuf.Pvalue.ParameterValue.Builder, org.yamcs.protobuf.Pvalue.ParameterValueOrBuilder>(
value_,
((bitField0_ & 0x00000001) == 0x00000001),
getParentForChildren(),
isClean());
value_ = null;
}
return valueBuilder_;
}
// @@protoc_insertion_point(builder_scope:parameters.BulkGetParameterValueResponse)
}
static {
defaultInstance = new BulkGetParameterValueResponse(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:parameters.BulkGetParameterValueResponse)
}
public interface BulkSetParameterValueRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:parameters.BulkSetParameterValueRequest)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .parameters.BulkSetParameterValueRequest.SetParameterValueRequest request = 1;
*/
java.util.List
getRequestList();
/**
* repeated .parameters.BulkSetParameterValueRequest.SetParameterValueRequest request = 1;
*/
org.yamcs.protobuf.Rest.BulkSetParameterValueRequest.SetParameterValueRequest getRequest(int index);
/**
* repeated .parameters.BulkSetParameterValueRequest.SetParameterValueRequest request = 1;
*/
int getRequestCount();
/**
* repeated .parameters.BulkSetParameterValueRequest.SetParameterValueRequest request = 1;
*/
java.util.List extends org.yamcs.protobuf.Rest.BulkSetParameterValueRequest.SetParameterValueRequestOrBuilder>
getRequestOrBuilderList();
/**
* repeated .parameters.BulkSetParameterValueRequest.SetParameterValueRequest request = 1;
*/
org.yamcs.protobuf.Rest.BulkSetParameterValueRequest.SetParameterValueRequestOrBuilder getRequestOrBuilder(
int index);
}
/**
* Protobuf type {@code parameters.BulkSetParameterValueRequest}
*/
public static final class BulkSetParameterValueRequest extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:parameters.BulkSetParameterValueRequest)
BulkSetParameterValueRequestOrBuilder {
// Use BulkSetParameterValueRequest.newBuilder() to construct.
private BulkSetParameterValueRequest(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private BulkSetParameterValueRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final BulkSetParameterValueRequest defaultInstance;
public static BulkSetParameterValueRequest getDefaultInstance() {
return defaultInstance;
}
public BulkSetParameterValueRequest getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private BulkSetParameterValueRequest(
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)) {
request_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
request_.add(input.readMessage(org.yamcs.protobuf.Rest.BulkSetParameterValueRequest.SetParameterValueRequest.PARSER, extensionRegistry));
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)) {
request_ = java.util.Collections.unmodifiableList(request_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.Rest.internal_static_parameters_BulkSetParameterValueRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.Rest.internal_static_parameters_BulkSetParameterValueRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.Rest.BulkSetParameterValueRequest.class, org.yamcs.protobuf.Rest.BulkSetParameterValueRequest.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public BulkSetParameterValueRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new BulkSetParameterValueRequest(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public interface SetParameterValueRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:parameters.BulkSetParameterValueRequest.SetParameterValueRequest)
com.google.protobuf.MessageOrBuilder {
/**
* optional .yamcs.NamedObjectId id = 1;
*/
boolean hasId();
/**
* optional .yamcs.NamedObjectId id = 1;
*/
org.yamcs.protobuf.Yamcs.NamedObjectId getId();
/**
* optional .yamcs.NamedObjectId id = 1;
*/
org.yamcs.protobuf.Yamcs.NamedObjectIdOrBuilder getIdOrBuilder();
/**
* optional .yamcs.Value value = 2;
*/
boolean hasValue();
/**
* optional .yamcs.Value value = 2;
*/
org.yamcs.protobuf.Yamcs.Value getValue();
/**
* optional .yamcs.Value value = 2;
*/
org.yamcs.protobuf.Yamcs.ValueOrBuilder getValueOrBuilder();
}
/**
* Protobuf type {@code parameters.BulkSetParameterValueRequest.SetParameterValueRequest}
*/
public static final class SetParameterValueRequest extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:parameters.BulkSetParameterValueRequest.SetParameterValueRequest)
SetParameterValueRequestOrBuilder {
// Use SetParameterValueRequest.newBuilder() to construct.
private SetParameterValueRequest(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private SetParameterValueRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final SetParameterValueRequest defaultInstance;
public static SetParameterValueRequest getDefaultInstance() {
return defaultInstance;
}
public SetParameterValueRequest getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private SetParameterValueRequest(
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: {
org.yamcs.protobuf.Yamcs.NamedObjectId.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) == 0x00000001)) {
subBuilder = id_.toBuilder();
}
id_ = input.readMessage(org.yamcs.protobuf.Yamcs.NamedObjectId.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(id_);
id_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
break;
}
case 18: {
org.yamcs.protobuf.Yamcs.Value.Builder subBuilder = null;
if (((bitField0_ & 0x00000002) == 0x00000002)) {
subBuilder = value_.toBuilder();
}
value_ = input.readMessage(org.yamcs.protobuf.Yamcs.Value.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(value_);
value_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000002;
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 {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.Rest.internal_static_parameters_BulkSetParameterValueRequest_SetParameterValueRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.Rest.internal_static_parameters_BulkSetParameterValueRequest_SetParameterValueRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.Rest.BulkSetParameterValueRequest.SetParameterValueRequest.class, org.yamcs.protobuf.Rest.BulkSetParameterValueRequest.SetParameterValueRequest.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public SetParameterValueRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new SetParameterValueRequest(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
public static final int ID_FIELD_NUMBER = 1;
private org.yamcs.protobuf.Yamcs.NamedObjectId id_;
/**
* optional .yamcs.NamedObjectId id = 1;
*/
public boolean hasId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional .yamcs.NamedObjectId id = 1;
*/
public org.yamcs.protobuf.Yamcs.NamedObjectId getId() {
return id_;
}
/**
* optional .yamcs.NamedObjectId id = 1;
*/
public org.yamcs.protobuf.Yamcs.NamedObjectIdOrBuilder getIdOrBuilder() {
return id_;
}
public static final int VALUE_FIELD_NUMBER = 2;
private org.yamcs.protobuf.Yamcs.Value value_;
/**
* optional .yamcs.Value value = 2;
*/
public boolean hasValue() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional .yamcs.Value value = 2;
*/
public org.yamcs.protobuf.Yamcs.Value getValue() {
return value_;
}
/**
* optional .yamcs.Value value = 2;
*/
public org.yamcs.protobuf.Yamcs.ValueOrBuilder getValueOrBuilder() {
return value_;
}
private void initFields() {
id_ = org.yamcs.protobuf.Yamcs.NamedObjectId.getDefaultInstance();
value_ = org.yamcs.protobuf.Yamcs.Value.getDefaultInstance();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (hasId()) {
if (!getId().isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
if (hasValue()) {
if (!getValue().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.writeMessage(1, id_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeMessage(2, value_);
}
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
.computeMessageSize(1, id_);
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, value_);
}
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.Rest.BulkSetParameterValueRequest.SetParameterValueRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.Rest.BulkSetParameterValueRequest.SetParameterValueRequest 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.Rest.BulkSetParameterValueRequest.SetParameterValueRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.Rest.BulkSetParameterValueRequest.SetParameterValueRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.yamcs.protobuf.Rest.BulkSetParameterValueRequest.SetParameterValueRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.yamcs.protobuf.Rest.BulkSetParameterValueRequest.SetParameterValueRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.yamcs.protobuf.Rest.BulkSetParameterValueRequest.SetParameterValueRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.yamcs.protobuf.Rest.BulkSetParameterValueRequest.SetParameterValueRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.yamcs.protobuf.Rest.BulkSetParameterValueRequest.SetParameterValueRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.yamcs.protobuf.Rest.BulkSetParameterValueRequest.SetParameterValueRequest 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.Rest.BulkSetParameterValueRequest.SetParameterValueRequest 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 parameters.BulkSetParameterValueRequest.SetParameterValueRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:parameters.BulkSetParameterValueRequest.SetParameterValueRequest)
org.yamcs.protobuf.Rest.BulkSetParameterValueRequest.SetParameterValueRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.Rest.internal_static_parameters_BulkSetParameterValueRequest_SetParameterValueRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.Rest.internal_static_parameters_BulkSetParameterValueRequest_SetParameterValueRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.Rest.BulkSetParameterValueRequest.SetParameterValueRequest.class, org.yamcs.protobuf.Rest.BulkSetParameterValueRequest.SetParameterValueRequest.Builder.class);
}
// Construct using org.yamcs.protobuf.Rest.BulkSetParameterValueRequest.SetParameterValueRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getIdFieldBuilder();
getValueFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
if (idBuilder_ == null) {
id_ = org.yamcs.protobuf.Yamcs.NamedObjectId.getDefaultInstance();
} else {
idBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
if (valueBuilder_ == null) {
value_ = org.yamcs.protobuf.Yamcs.Value.getDefaultInstance();
} else {
valueBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.yamcs.protobuf.Rest.internal_static_parameters_BulkSetParameterValueRequest_SetParameterValueRequest_descriptor;
}
public org.yamcs.protobuf.Rest.BulkSetParameterValueRequest.SetParameterValueRequest getDefaultInstanceForType() {
return org.yamcs.protobuf.Rest.BulkSetParameterValueRequest.SetParameterValueRequest.getDefaultInstance();
}
public org.yamcs.protobuf.Rest.BulkSetParameterValueRequest.SetParameterValueRequest build() {
org.yamcs.protobuf.Rest.BulkSetParameterValueRequest.SetParameterValueRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.yamcs.protobuf.Rest.BulkSetParameterValueRequest.SetParameterValueRequest buildPartial() {
org.yamcs.protobuf.Rest.BulkSetParameterValueRequest.SetParameterValueRequest result = new org.yamcs.protobuf.Rest.BulkSetParameterValueRequest.SetParameterValueRequest(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
if (idBuilder_ == null) {
result.id_ = id_;
} else {
result.id_ = idBuilder_.build();
}
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
if (valueBuilder_ == null) {
result.value_ = value_;
} else {
result.value_ = valueBuilder_.build();
}
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.yamcs.protobuf.Rest.BulkSetParameterValueRequest.SetParameterValueRequest) {
return mergeFrom((org.yamcs.protobuf.Rest.BulkSetParameterValueRequest.SetParameterValueRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.yamcs.protobuf.Rest.BulkSetParameterValueRequest.SetParameterValueRequest other) {
if (other == org.yamcs.protobuf.Rest.BulkSetParameterValueRequest.SetParameterValueRequest.getDefaultInstance()) return this;
if (other.hasId()) {
mergeId(other.getId());
}
if (other.hasValue()) {
mergeValue(other.getValue());
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
if (hasId()) {
if (!getId().isInitialized()) {
return false;
}
}
if (hasValue()) {
if (!getValue().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.Rest.BulkSetParameterValueRequest.SetParameterValueRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.yamcs.protobuf.Rest.BulkSetParameterValueRequest.SetParameterValueRequest) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private org.yamcs.protobuf.Yamcs.NamedObjectId id_ = org.yamcs.protobuf.Yamcs.NamedObjectId.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
org.yamcs.protobuf.Yamcs.NamedObjectId, org.yamcs.protobuf.Yamcs.NamedObjectId.Builder, org.yamcs.protobuf.Yamcs.NamedObjectIdOrBuilder> idBuilder_;
/**
* optional .yamcs.NamedObjectId id = 1;
*/
public boolean hasId() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional .yamcs.NamedObjectId id = 1;
*/
public org.yamcs.protobuf.Yamcs.NamedObjectId getId() {
if (idBuilder_ == null) {
return id_;
} else {
return idBuilder_.getMessage();
}
}
/**
* optional .yamcs.NamedObjectId id = 1;
*/
public Builder setId(org.yamcs.protobuf.Yamcs.NamedObjectId value) {
if (idBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
id_ = value;
onChanged();
} else {
idBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .yamcs.NamedObjectId id = 1;
*/
public Builder setId(
org.yamcs.protobuf.Yamcs.NamedObjectId.Builder builderForValue) {
if (idBuilder_ == null) {
id_ = builderForValue.build();
onChanged();
} else {
idBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .yamcs.NamedObjectId id = 1;
*/
public Builder mergeId(org.yamcs.protobuf.Yamcs.NamedObjectId value) {
if (idBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001) &&
id_ != org.yamcs.protobuf.Yamcs.NamedObjectId.getDefaultInstance()) {
id_ =
org.yamcs.protobuf.Yamcs.NamedObjectId.newBuilder(id_).mergeFrom(value).buildPartial();
} else {
id_ = value;
}
onChanged();
} else {
idBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .yamcs.NamedObjectId id = 1;
*/
public Builder clearId() {
if (idBuilder_ == null) {
id_ = org.yamcs.protobuf.Yamcs.NamedObjectId.getDefaultInstance();
onChanged();
} else {
idBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
/**
* optional .yamcs.NamedObjectId id = 1;
*/
public org.yamcs.protobuf.Yamcs.NamedObjectId.Builder getIdBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getIdFieldBuilder().getBuilder();
}
/**
* optional .yamcs.NamedObjectId id = 1;
*/
public org.yamcs.protobuf.Yamcs.NamedObjectIdOrBuilder getIdOrBuilder() {
if (idBuilder_ != null) {
return idBuilder_.getMessageOrBuilder();
} else {
return id_;
}
}
/**
* optional .yamcs.NamedObjectId id = 1;
*/
private com.google.protobuf.SingleFieldBuilder<
org.yamcs.protobuf.Yamcs.NamedObjectId, org.yamcs.protobuf.Yamcs.NamedObjectId.Builder, org.yamcs.protobuf.Yamcs.NamedObjectIdOrBuilder>
getIdFieldBuilder() {
if (idBuilder_ == null) {
idBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.yamcs.protobuf.Yamcs.NamedObjectId, org.yamcs.protobuf.Yamcs.NamedObjectId.Builder, org.yamcs.protobuf.Yamcs.NamedObjectIdOrBuilder>(
getId(),
getParentForChildren(),
isClean());
id_ = null;
}
return idBuilder_;
}
private org.yamcs.protobuf.Yamcs.Value value_ = org.yamcs.protobuf.Yamcs.Value.getDefaultInstance();
private com.google.protobuf.SingleFieldBuilder<
org.yamcs.protobuf.Yamcs.Value, org.yamcs.protobuf.Yamcs.Value.Builder, org.yamcs.protobuf.Yamcs.ValueOrBuilder> valueBuilder_;
/**
* optional .yamcs.Value value = 2;
*/
public boolean hasValue() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional .yamcs.Value value = 2;
*/
public org.yamcs.protobuf.Yamcs.Value getValue() {
if (valueBuilder_ == null) {
return value_;
} else {
return valueBuilder_.getMessage();
}
}
/**
* optional .yamcs.Value value = 2;
*/
public Builder setValue(org.yamcs.protobuf.Yamcs.Value value) {
if (valueBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
value_ = value;
onChanged();
} else {
valueBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .yamcs.Value value = 2;
*/
public Builder setValue(
org.yamcs.protobuf.Yamcs.Value.Builder builderForValue) {
if (valueBuilder_ == null) {
value_ = builderForValue.build();
onChanged();
} else {
valueBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .yamcs.Value value = 2;
*/
public Builder mergeValue(org.yamcs.protobuf.Yamcs.Value value) {
if (valueBuilder_ == null) {
if (((bitField0_ & 0x00000002) == 0x00000002) &&
value_ != org.yamcs.protobuf.Yamcs.Value.getDefaultInstance()) {
value_ =
org.yamcs.protobuf.Yamcs.Value.newBuilder(value_).mergeFrom(value).buildPartial();
} else {
value_ = value;
}
onChanged();
} else {
valueBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .yamcs.Value value = 2;
*/
public Builder clearValue() {
if (valueBuilder_ == null) {
value_ = org.yamcs.protobuf.Yamcs.Value.getDefaultInstance();
onChanged();
} else {
valueBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
/**
* optional .yamcs.Value value = 2;
*/
public org.yamcs.protobuf.Yamcs.Value.Builder getValueBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getValueFieldBuilder().getBuilder();
}
/**
* optional .yamcs.Value value = 2;
*/
public org.yamcs.protobuf.Yamcs.ValueOrBuilder getValueOrBuilder() {
if (valueBuilder_ != null) {
return valueBuilder_.getMessageOrBuilder();
} else {
return value_;
}
}
/**
* optional .yamcs.Value value = 2;
*/
private com.google.protobuf.SingleFieldBuilder<
org.yamcs.protobuf.Yamcs.Value, org.yamcs.protobuf.Yamcs.Value.Builder, org.yamcs.protobuf.Yamcs.ValueOrBuilder>
getValueFieldBuilder() {
if (valueBuilder_ == null) {
valueBuilder_ = new com.google.protobuf.SingleFieldBuilder<
org.yamcs.protobuf.Yamcs.Value, org.yamcs.protobuf.Yamcs.Value.Builder, org.yamcs.protobuf.Yamcs.ValueOrBuilder>(
getValue(),
getParentForChildren(),
isClean());
value_ = null;
}
return valueBuilder_;
}
// @@protoc_insertion_point(builder_scope:parameters.BulkSetParameterValueRequest.SetParameterValueRequest)
}
static {
defaultInstance = new SetParameterValueRequest(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:parameters.BulkSetParameterValueRequest.SetParameterValueRequest)
}
public static final int REQUEST_FIELD_NUMBER = 1;
private java.util.List request_;
/**
* repeated .parameters.BulkSetParameterValueRequest.SetParameterValueRequest request = 1;
*/
public java.util.List getRequestList() {
return request_;
}
/**
* repeated .parameters.BulkSetParameterValueRequest.SetParameterValueRequest request = 1;
*/
public java.util.List extends org.yamcs.protobuf.Rest.BulkSetParameterValueRequest.SetParameterValueRequestOrBuilder>
getRequestOrBuilderList() {
return request_;
}
/**
* repeated .parameters.BulkSetParameterValueRequest.SetParameterValueRequest request = 1;
*/
public int getRequestCount() {
return request_.size();
}
/**
* repeated .parameters.BulkSetParameterValueRequest.SetParameterValueRequest request = 1;
*/
public org.yamcs.protobuf.Rest.BulkSetParameterValueRequest.SetParameterValueRequest getRequest(int index) {
return request_.get(index);
}
/**
* repeated .parameters.BulkSetParameterValueRequest.SetParameterValueRequest request = 1;
*/
public org.yamcs.protobuf.Rest.BulkSetParameterValueRequest.SetParameterValueRequestOrBuilder getRequestOrBuilder(
int index) {
return request_.get(index);
}
private void initFields() {
request_ = java.util.Collections.emptyList();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
for (int i = 0; i < getRequestCount(); i++) {
if (!getRequest(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 < request_.size(); i++) {
output.writeMessage(1, request_.get(i));
}
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 < request_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, request_.get(i));
}
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.Rest.BulkSetParameterValueRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.Rest.BulkSetParameterValueRequest 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.Rest.BulkSetParameterValueRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.Rest.BulkSetParameterValueRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.yamcs.protobuf.Rest.BulkSetParameterValueRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.yamcs.protobuf.Rest.BulkSetParameterValueRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.yamcs.protobuf.Rest.BulkSetParameterValueRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.yamcs.protobuf.Rest.BulkSetParameterValueRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.yamcs.protobuf.Rest.BulkSetParameterValueRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.yamcs.protobuf.Rest.BulkSetParameterValueRequest 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.Rest.BulkSetParameterValueRequest 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 parameters.BulkSetParameterValueRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:parameters.BulkSetParameterValueRequest)
org.yamcs.protobuf.Rest.BulkSetParameterValueRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.Rest.internal_static_parameters_BulkSetParameterValueRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.Rest.internal_static_parameters_BulkSetParameterValueRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.Rest.BulkSetParameterValueRequest.class, org.yamcs.protobuf.Rest.BulkSetParameterValueRequest.Builder.class);
}
// Construct using org.yamcs.protobuf.Rest.BulkSetParameterValueRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getRequestFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
if (requestBuilder_ == null) {
request_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
requestBuilder_.clear();
}
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.yamcs.protobuf.Rest.internal_static_parameters_BulkSetParameterValueRequest_descriptor;
}
public org.yamcs.protobuf.Rest.BulkSetParameterValueRequest getDefaultInstanceForType() {
return org.yamcs.protobuf.Rest.BulkSetParameterValueRequest.getDefaultInstance();
}
public org.yamcs.protobuf.Rest.BulkSetParameterValueRequest build() {
org.yamcs.protobuf.Rest.BulkSetParameterValueRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.yamcs.protobuf.Rest.BulkSetParameterValueRequest buildPartial() {
org.yamcs.protobuf.Rest.BulkSetParameterValueRequest result = new org.yamcs.protobuf.Rest.BulkSetParameterValueRequest(this);
int from_bitField0_ = bitField0_;
if (requestBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
request_ = java.util.Collections.unmodifiableList(request_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.request_ = request_;
} else {
result.request_ = requestBuilder_.build();
}
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.yamcs.protobuf.Rest.BulkSetParameterValueRequest) {
return mergeFrom((org.yamcs.protobuf.Rest.BulkSetParameterValueRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.yamcs.protobuf.Rest.BulkSetParameterValueRequest other) {
if (other == org.yamcs.protobuf.Rest.BulkSetParameterValueRequest.getDefaultInstance()) return this;
if (requestBuilder_ == null) {
if (!other.request_.isEmpty()) {
if (request_.isEmpty()) {
request_ = other.request_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureRequestIsMutable();
request_.addAll(other.request_);
}
onChanged();
}
} else {
if (!other.request_.isEmpty()) {
if (requestBuilder_.isEmpty()) {
requestBuilder_.dispose();
requestBuilder_ = null;
request_ = other.request_;
bitField0_ = (bitField0_ & ~0x00000001);
requestBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getRequestFieldBuilder() : null;
} else {
requestBuilder_.addAllMessages(other.request_);
}
}
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
for (int i = 0; i < getRequestCount(); i++) {
if (!getRequest(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.Rest.BulkSetParameterValueRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.yamcs.protobuf.Rest.BulkSetParameterValueRequest) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List request_ =
java.util.Collections.emptyList();
private void ensureRequestIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
request_ = new java.util.ArrayList(request_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
org.yamcs.protobuf.Rest.BulkSetParameterValueRequest.SetParameterValueRequest, org.yamcs.protobuf.Rest.BulkSetParameterValueRequest.SetParameterValueRequest.Builder, org.yamcs.protobuf.Rest.BulkSetParameterValueRequest.SetParameterValueRequestOrBuilder> requestBuilder_;
/**
* repeated .parameters.BulkSetParameterValueRequest.SetParameterValueRequest request = 1;
*/
public java.util.List getRequestList() {
if (requestBuilder_ == null) {
return java.util.Collections.unmodifiableList(request_);
} else {
return requestBuilder_.getMessageList();
}
}
/**
* repeated .parameters.BulkSetParameterValueRequest.SetParameterValueRequest request = 1;
*/
public int getRequestCount() {
if (requestBuilder_ == null) {
return request_.size();
} else {
return requestBuilder_.getCount();
}
}
/**
* repeated .parameters.BulkSetParameterValueRequest.SetParameterValueRequest request = 1;
*/
public org.yamcs.protobuf.Rest.BulkSetParameterValueRequest.SetParameterValueRequest getRequest(int index) {
if (requestBuilder_ == null) {
return request_.get(index);
} else {
return requestBuilder_.getMessage(index);
}
}
/**
* repeated .parameters.BulkSetParameterValueRequest.SetParameterValueRequest request = 1;
*/
public Builder setRequest(
int index, org.yamcs.protobuf.Rest.BulkSetParameterValueRequest.SetParameterValueRequest value) {
if (requestBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRequestIsMutable();
request_.set(index, value);
onChanged();
} else {
requestBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .parameters.BulkSetParameterValueRequest.SetParameterValueRequest request = 1;
*/
public Builder setRequest(
int index, org.yamcs.protobuf.Rest.BulkSetParameterValueRequest.SetParameterValueRequest.Builder builderForValue) {
if (requestBuilder_ == null) {
ensureRequestIsMutable();
request_.set(index, builderForValue.build());
onChanged();
} else {
requestBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .parameters.BulkSetParameterValueRequest.SetParameterValueRequest request = 1;
*/
public Builder addRequest(org.yamcs.protobuf.Rest.BulkSetParameterValueRequest.SetParameterValueRequest value) {
if (requestBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRequestIsMutable();
request_.add(value);
onChanged();
} else {
requestBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .parameters.BulkSetParameterValueRequest.SetParameterValueRequest request = 1;
*/
public Builder addRequest(
int index, org.yamcs.protobuf.Rest.BulkSetParameterValueRequest.SetParameterValueRequest value) {
if (requestBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureRequestIsMutable();
request_.add(index, value);
onChanged();
} else {
requestBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .parameters.BulkSetParameterValueRequest.SetParameterValueRequest request = 1;
*/
public Builder addRequest(
org.yamcs.protobuf.Rest.BulkSetParameterValueRequest.SetParameterValueRequest.Builder builderForValue) {
if (requestBuilder_ == null) {
ensureRequestIsMutable();
request_.add(builderForValue.build());
onChanged();
} else {
requestBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .parameters.BulkSetParameterValueRequest.SetParameterValueRequest request = 1;
*/
public Builder addRequest(
int index, org.yamcs.protobuf.Rest.BulkSetParameterValueRequest.SetParameterValueRequest.Builder builderForValue) {
if (requestBuilder_ == null) {
ensureRequestIsMutable();
request_.add(index, builderForValue.build());
onChanged();
} else {
requestBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .parameters.BulkSetParameterValueRequest.SetParameterValueRequest request = 1;
*/
public Builder addAllRequest(
java.lang.Iterable extends org.yamcs.protobuf.Rest.BulkSetParameterValueRequest.SetParameterValueRequest> values) {
if (requestBuilder_ == null) {
ensureRequestIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, request_);
onChanged();
} else {
requestBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .parameters.BulkSetParameterValueRequest.SetParameterValueRequest request = 1;
*/
public Builder clearRequest() {
if (requestBuilder_ == null) {
request_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
requestBuilder_.clear();
}
return this;
}
/**
* repeated .parameters.BulkSetParameterValueRequest.SetParameterValueRequest request = 1;
*/
public Builder removeRequest(int index) {
if (requestBuilder_ == null) {
ensureRequestIsMutable();
request_.remove(index);
onChanged();
} else {
requestBuilder_.remove(index);
}
return this;
}
/**
* repeated .parameters.BulkSetParameterValueRequest.SetParameterValueRequest request = 1;
*/
public org.yamcs.protobuf.Rest.BulkSetParameterValueRequest.SetParameterValueRequest.Builder getRequestBuilder(
int index) {
return getRequestFieldBuilder().getBuilder(index);
}
/**
* repeated .parameters.BulkSetParameterValueRequest.SetParameterValueRequest request = 1;
*/
public org.yamcs.protobuf.Rest.BulkSetParameterValueRequest.SetParameterValueRequestOrBuilder getRequestOrBuilder(
int index) {
if (requestBuilder_ == null) {
return request_.get(index); } else {
return requestBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .parameters.BulkSetParameterValueRequest.SetParameterValueRequest request = 1;
*/
public java.util.List extends org.yamcs.protobuf.Rest.BulkSetParameterValueRequest.SetParameterValueRequestOrBuilder>
getRequestOrBuilderList() {
if (requestBuilder_ != null) {
return requestBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(request_);
}
}
/**
* repeated .parameters.BulkSetParameterValueRequest.SetParameterValueRequest request = 1;
*/
public org.yamcs.protobuf.Rest.BulkSetParameterValueRequest.SetParameterValueRequest.Builder addRequestBuilder() {
return getRequestFieldBuilder().addBuilder(
org.yamcs.protobuf.Rest.BulkSetParameterValueRequest.SetParameterValueRequest.getDefaultInstance());
}
/**
* repeated .parameters.BulkSetParameterValueRequest.SetParameterValueRequest request = 1;
*/
public org.yamcs.protobuf.Rest.BulkSetParameterValueRequest.SetParameterValueRequest.Builder addRequestBuilder(
int index) {
return getRequestFieldBuilder().addBuilder(
index, org.yamcs.protobuf.Rest.BulkSetParameterValueRequest.SetParameterValueRequest.getDefaultInstance());
}
/**
* repeated .parameters.BulkSetParameterValueRequest.SetParameterValueRequest request = 1;
*/
public java.util.List
getRequestBuilderList() {
return getRequestFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
org.yamcs.protobuf.Rest.BulkSetParameterValueRequest.SetParameterValueRequest, org.yamcs.protobuf.Rest.BulkSetParameterValueRequest.SetParameterValueRequest.Builder, org.yamcs.protobuf.Rest.BulkSetParameterValueRequest.SetParameterValueRequestOrBuilder>
getRequestFieldBuilder() {
if (requestBuilder_ == null) {
requestBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
org.yamcs.protobuf.Rest.BulkSetParameterValueRequest.SetParameterValueRequest, org.yamcs.protobuf.Rest.BulkSetParameterValueRequest.SetParameterValueRequest.Builder, org.yamcs.protobuf.Rest.BulkSetParameterValueRequest.SetParameterValueRequestOrBuilder>(
request_,
((bitField0_ & 0x00000001) == 0x00000001),
getParentForChildren(),
isClean());
request_ = null;
}
return requestBuilder_;
}
// @@protoc_insertion_point(builder_scope:parameters.BulkSetParameterValueRequest)
}
static {
defaultInstance = new BulkSetParameterValueRequest(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:parameters.BulkSetParameterValueRequest)
}
public interface BulkDownloadParameterValueRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:parameters.BulkDownloadParameterValueRequest)
com.google.protobuf.MessageOrBuilder {
/**
* optional string start = 1;
*/
boolean hasStart();
/**
* optional string start = 1;
*/
java.lang.String getStart();
/**
* optional string start = 1;
*/
com.google.protobuf.ByteString
getStartBytes();
/**
* optional string stop = 2;
*/
boolean hasStop();
/**
* optional string stop = 2;
*/
java.lang.String getStop();
/**
* optional string stop = 2;
*/
com.google.protobuf.ByteString
getStopBytes();
/**
* repeated .yamcs.NamedObjectId id = 3;
*/
java.util.List
getIdList();
/**
* repeated .yamcs.NamedObjectId id = 3;
*/
org.yamcs.protobuf.Yamcs.NamedObjectId getId(int index);
/**
* repeated .yamcs.NamedObjectId id = 3;
*/
int getIdCount();
/**
* repeated .yamcs.NamedObjectId id = 3;
*/
java.util.List extends org.yamcs.protobuf.Yamcs.NamedObjectIdOrBuilder>
getIdOrBuilderList();
/**
* repeated .yamcs.NamedObjectId id = 3;
*/
org.yamcs.protobuf.Yamcs.NamedObjectIdOrBuilder getIdOrBuilder(
int index);
/**
* optional string namespace = 4;
*
*
* Namespace used to display parameter names in e.g. csv header. Only used when no parameter ids were specified.
*
*/
boolean hasNamespace();
/**
* optional string namespace = 4;
*
*
* Namespace used to display parameter names in e.g. csv header. Only used when no parameter ids were specified.
*
*/
java.lang.String getNamespace();
/**
* optional string namespace = 4;
*
*
* Namespace used to display parameter names in e.g. csv header. Only used when no parameter ids were specified.
*
*/
com.google.protobuf.ByteString
getNamespaceBytes();
}
/**
* Protobuf type {@code parameters.BulkDownloadParameterValueRequest}
*/
public static final class BulkDownloadParameterValueRequest extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:parameters.BulkDownloadParameterValueRequest)
BulkDownloadParameterValueRequestOrBuilder {
// Use BulkDownloadParameterValueRequest.newBuilder() to construct.
private BulkDownloadParameterValueRequest(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private BulkDownloadParameterValueRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final BulkDownloadParameterValueRequest defaultInstance;
public static BulkDownloadParameterValueRequest getDefaultInstance() {
return defaultInstance;
}
public BulkDownloadParameterValueRequest getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private BulkDownloadParameterValueRequest(
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: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
start_ = bs;
break;
}
case 18: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000002;
stop_ = bs;
break;
}
case 26: {
if (!((mutable_bitField0_ & 0x00000004) == 0x00000004)) {
id_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000004;
}
id_.add(input.readMessage(org.yamcs.protobuf.Yamcs.NamedObjectId.PARSER, extensionRegistry));
break;
}
case 34: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000004;
namespace_ = bs;
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)) {
id_ = java.util.Collections.unmodifiableList(id_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.Rest.internal_static_parameters_BulkDownloadParameterValueRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.Rest.internal_static_parameters_BulkDownloadParameterValueRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.Rest.BulkDownloadParameterValueRequest.class, org.yamcs.protobuf.Rest.BulkDownloadParameterValueRequest.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public BulkDownloadParameterValueRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new BulkDownloadParameterValueRequest(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
public static final int START_FIELD_NUMBER = 1;
private java.lang.Object start_;
/**
* optional string start = 1;
*/
public boolean hasStart() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional string start = 1;
*/
public java.lang.String getStart() {
java.lang.Object ref = start_;
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()) {
start_ = s;
}
return s;
}
}
/**
* optional string start = 1;
*/
public com.google.protobuf.ByteString
getStartBytes() {
java.lang.Object ref = start_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
start_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int STOP_FIELD_NUMBER = 2;
private java.lang.Object stop_;
/**
* optional string stop = 2;
*/
public boolean hasStop() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional string stop = 2;
*/
public java.lang.String getStop() {
java.lang.Object ref = stop_;
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()) {
stop_ = s;
}
return s;
}
}
/**
* optional string stop = 2;
*/
public com.google.protobuf.ByteString
getStopBytes() {
java.lang.Object ref = stop_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
stop_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int ID_FIELD_NUMBER = 3;
private java.util.List id_;
/**
* repeated .yamcs.NamedObjectId id = 3;
*/
public java.util.List getIdList() {
return id_;
}
/**
* repeated .yamcs.NamedObjectId id = 3;
*/
public java.util.List extends org.yamcs.protobuf.Yamcs.NamedObjectIdOrBuilder>
getIdOrBuilderList() {
return id_;
}
/**
* repeated .yamcs.NamedObjectId id = 3;
*/
public int getIdCount() {
return id_.size();
}
/**
* repeated .yamcs.NamedObjectId id = 3;
*/
public org.yamcs.protobuf.Yamcs.NamedObjectId getId(int index) {
return id_.get(index);
}
/**
* repeated .yamcs.NamedObjectId id = 3;
*/
public org.yamcs.protobuf.Yamcs.NamedObjectIdOrBuilder getIdOrBuilder(
int index) {
return id_.get(index);
}
public static final int NAMESPACE_FIELD_NUMBER = 4;
private java.lang.Object namespace_;
/**
* optional string namespace = 4;
*
*
* Namespace used to display parameter names in e.g. csv header. Only used when no parameter ids were specified.
*
*/
public boolean hasNamespace() {
return ((bitField0_ & 0x00000004) == 0x00000004);
}
/**
* optional string namespace = 4;
*
*
* Namespace used to display parameter names in e.g. csv header. Only used when no parameter ids were specified.
*
*/
public java.lang.String getNamespace() {
java.lang.Object ref = namespace_;
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()) {
namespace_ = s;
}
return s;
}
}
/**
* optional string namespace = 4;
*
*
* Namespace used to display parameter names in e.g. csv header. Only used when no parameter ids were specified.
*
*/
public com.google.protobuf.ByteString
getNamespaceBytes() {
java.lang.Object ref = namespace_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
namespace_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private void initFields() {
start_ = "";
stop_ = "";
id_ = java.util.Collections.emptyList();
namespace_ = "";
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
for (int i = 0; i < getIdCount(); i++) {
if (!getId(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, getStartBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeBytes(2, getStopBytes());
}
for (int i = 0; i < id_.size(); i++) {
output.writeMessage(3, id_.get(i));
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
output.writeBytes(4, getNamespaceBytes());
}
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, getStartBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, getStopBytes());
}
for (int i = 0; i < id_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, id_.get(i));
}
if (((bitField0_ & 0x00000004) == 0x00000004)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(4, getNamespaceBytes());
}
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.Rest.BulkDownloadParameterValueRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.Rest.BulkDownloadParameterValueRequest 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.Rest.BulkDownloadParameterValueRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.Rest.BulkDownloadParameterValueRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.yamcs.protobuf.Rest.BulkDownloadParameterValueRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.yamcs.protobuf.Rest.BulkDownloadParameterValueRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.yamcs.protobuf.Rest.BulkDownloadParameterValueRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.yamcs.protobuf.Rest.BulkDownloadParameterValueRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.yamcs.protobuf.Rest.BulkDownloadParameterValueRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.yamcs.protobuf.Rest.BulkDownloadParameterValueRequest 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.Rest.BulkDownloadParameterValueRequest 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 parameters.BulkDownloadParameterValueRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:parameters.BulkDownloadParameterValueRequest)
org.yamcs.protobuf.Rest.BulkDownloadParameterValueRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.Rest.internal_static_parameters_BulkDownloadParameterValueRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.Rest.internal_static_parameters_BulkDownloadParameterValueRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.Rest.BulkDownloadParameterValueRequest.class, org.yamcs.protobuf.Rest.BulkDownloadParameterValueRequest.Builder.class);
}
// Construct using org.yamcs.protobuf.Rest.BulkDownloadParameterValueRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getIdFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
start_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
stop_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
if (idBuilder_ == null) {
id_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
} else {
idBuilder_.clear();
}
namespace_ = "";
bitField0_ = (bitField0_ & ~0x00000008);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.yamcs.protobuf.Rest.internal_static_parameters_BulkDownloadParameterValueRequest_descriptor;
}
public org.yamcs.protobuf.Rest.BulkDownloadParameterValueRequest getDefaultInstanceForType() {
return org.yamcs.protobuf.Rest.BulkDownloadParameterValueRequest.getDefaultInstance();
}
public org.yamcs.protobuf.Rest.BulkDownloadParameterValueRequest build() {
org.yamcs.protobuf.Rest.BulkDownloadParameterValueRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.yamcs.protobuf.Rest.BulkDownloadParameterValueRequest buildPartial() {
org.yamcs.protobuf.Rest.BulkDownloadParameterValueRequest result = new org.yamcs.protobuf.Rest.BulkDownloadParameterValueRequest(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.start_ = start_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.stop_ = stop_;
if (idBuilder_ == null) {
if (((bitField0_ & 0x00000004) == 0x00000004)) {
id_ = java.util.Collections.unmodifiableList(id_);
bitField0_ = (bitField0_ & ~0x00000004);
}
result.id_ = id_;
} else {
result.id_ = idBuilder_.build();
}
if (((from_bitField0_ & 0x00000008) == 0x00000008)) {
to_bitField0_ |= 0x00000004;
}
result.namespace_ = namespace_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.yamcs.protobuf.Rest.BulkDownloadParameterValueRequest) {
return mergeFrom((org.yamcs.protobuf.Rest.BulkDownloadParameterValueRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.yamcs.protobuf.Rest.BulkDownloadParameterValueRequest other) {
if (other == org.yamcs.protobuf.Rest.BulkDownloadParameterValueRequest.getDefaultInstance()) return this;
if (other.hasStart()) {
bitField0_ |= 0x00000001;
start_ = other.start_;
onChanged();
}
if (other.hasStop()) {
bitField0_ |= 0x00000002;
stop_ = other.stop_;
onChanged();
}
if (idBuilder_ == null) {
if (!other.id_.isEmpty()) {
if (id_.isEmpty()) {
id_ = other.id_;
bitField0_ = (bitField0_ & ~0x00000004);
} else {
ensureIdIsMutable();
id_.addAll(other.id_);
}
onChanged();
}
} else {
if (!other.id_.isEmpty()) {
if (idBuilder_.isEmpty()) {
idBuilder_.dispose();
idBuilder_ = null;
id_ = other.id_;
bitField0_ = (bitField0_ & ~0x00000004);
idBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getIdFieldBuilder() : null;
} else {
idBuilder_.addAllMessages(other.id_);
}
}
}
if (other.hasNamespace()) {
bitField0_ |= 0x00000008;
namespace_ = other.namespace_;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
for (int i = 0; i < getIdCount(); i++) {
if (!getId(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.Rest.BulkDownloadParameterValueRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.yamcs.protobuf.Rest.BulkDownloadParameterValueRequest) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object start_ = "";
/**
* optional string start = 1;
*/
public boolean hasStart() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional string start = 1;
*/
public java.lang.String getStart() {
java.lang.Object ref = start_;
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()) {
start_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string start = 1;
*/
public com.google.protobuf.ByteString
getStartBytes() {
java.lang.Object ref = start_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
start_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string start = 1;
*/
public Builder setStart(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
start_ = value;
onChanged();
return this;
}
/**
* optional string start = 1;
*/
public Builder clearStart() {
bitField0_ = (bitField0_ & ~0x00000001);
start_ = getDefaultInstance().getStart();
onChanged();
return this;
}
/**
* optional string start = 1;
*/
public Builder setStartBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
start_ = value;
onChanged();
return this;
}
private java.lang.Object stop_ = "";
/**
* optional string stop = 2;
*/
public boolean hasStop() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional string stop = 2;
*/
public java.lang.String getStop() {
java.lang.Object ref = stop_;
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()) {
stop_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string stop = 2;
*/
public com.google.protobuf.ByteString
getStopBytes() {
java.lang.Object ref = stop_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
stop_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string stop = 2;
*/
public Builder setStop(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
stop_ = value;
onChanged();
return this;
}
/**
* optional string stop = 2;
*/
public Builder clearStop() {
bitField0_ = (bitField0_ & ~0x00000002);
stop_ = getDefaultInstance().getStop();
onChanged();
return this;
}
/**
* optional string stop = 2;
*/
public Builder setStopBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
stop_ = value;
onChanged();
return this;
}
private java.util.List id_ =
java.util.Collections.emptyList();
private void ensureIdIsMutable() {
if (!((bitField0_ & 0x00000004) == 0x00000004)) {
id_ = new java.util.ArrayList(id_);
bitField0_ |= 0x00000004;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
org.yamcs.protobuf.Yamcs.NamedObjectId, org.yamcs.protobuf.Yamcs.NamedObjectId.Builder, org.yamcs.protobuf.Yamcs.NamedObjectIdOrBuilder> idBuilder_;
/**
* repeated .yamcs.NamedObjectId id = 3;
*/
public java.util.List getIdList() {
if (idBuilder_ == null) {
return java.util.Collections.unmodifiableList(id_);
} else {
return idBuilder_.getMessageList();
}
}
/**
* repeated .yamcs.NamedObjectId id = 3;
*/
public int getIdCount() {
if (idBuilder_ == null) {
return id_.size();
} else {
return idBuilder_.getCount();
}
}
/**
* repeated .yamcs.NamedObjectId id = 3;
*/
public org.yamcs.protobuf.Yamcs.NamedObjectId getId(int index) {
if (idBuilder_ == null) {
return id_.get(index);
} else {
return idBuilder_.getMessage(index);
}
}
/**
* repeated .yamcs.NamedObjectId id = 3;
*/
public Builder setId(
int index, org.yamcs.protobuf.Yamcs.NamedObjectId value) {
if (idBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureIdIsMutable();
id_.set(index, value);
onChanged();
} else {
idBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .yamcs.NamedObjectId id = 3;
*/
public Builder setId(
int index, org.yamcs.protobuf.Yamcs.NamedObjectId.Builder builderForValue) {
if (idBuilder_ == null) {
ensureIdIsMutable();
id_.set(index, builderForValue.build());
onChanged();
} else {
idBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .yamcs.NamedObjectId id = 3;
*/
public Builder addId(org.yamcs.protobuf.Yamcs.NamedObjectId value) {
if (idBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureIdIsMutable();
id_.add(value);
onChanged();
} else {
idBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .yamcs.NamedObjectId id = 3;
*/
public Builder addId(
int index, org.yamcs.protobuf.Yamcs.NamedObjectId value) {
if (idBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureIdIsMutable();
id_.add(index, value);
onChanged();
} else {
idBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .yamcs.NamedObjectId id = 3;
*/
public Builder addId(
org.yamcs.protobuf.Yamcs.NamedObjectId.Builder builderForValue) {
if (idBuilder_ == null) {
ensureIdIsMutable();
id_.add(builderForValue.build());
onChanged();
} else {
idBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .yamcs.NamedObjectId id = 3;
*/
public Builder addId(
int index, org.yamcs.protobuf.Yamcs.NamedObjectId.Builder builderForValue) {
if (idBuilder_ == null) {
ensureIdIsMutable();
id_.add(index, builderForValue.build());
onChanged();
} else {
idBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .yamcs.NamedObjectId id = 3;
*/
public Builder addAllId(
java.lang.Iterable extends org.yamcs.protobuf.Yamcs.NamedObjectId> values) {
if (idBuilder_ == null) {
ensureIdIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, id_);
onChanged();
} else {
idBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .yamcs.NamedObjectId id = 3;
*/
public Builder clearId() {
if (idBuilder_ == null) {
id_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000004);
onChanged();
} else {
idBuilder_.clear();
}
return this;
}
/**
* repeated .yamcs.NamedObjectId id = 3;
*/
public Builder removeId(int index) {
if (idBuilder_ == null) {
ensureIdIsMutable();
id_.remove(index);
onChanged();
} else {
idBuilder_.remove(index);
}
return this;
}
/**
* repeated .yamcs.NamedObjectId id = 3;
*/
public org.yamcs.protobuf.Yamcs.NamedObjectId.Builder getIdBuilder(
int index) {
return getIdFieldBuilder().getBuilder(index);
}
/**
* repeated .yamcs.NamedObjectId id = 3;
*/
public org.yamcs.protobuf.Yamcs.NamedObjectIdOrBuilder getIdOrBuilder(
int index) {
if (idBuilder_ == null) {
return id_.get(index); } else {
return idBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .yamcs.NamedObjectId id = 3;
*/
public java.util.List extends org.yamcs.protobuf.Yamcs.NamedObjectIdOrBuilder>
getIdOrBuilderList() {
if (idBuilder_ != null) {
return idBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(id_);
}
}
/**
* repeated .yamcs.NamedObjectId id = 3;
*/
public org.yamcs.protobuf.Yamcs.NamedObjectId.Builder addIdBuilder() {
return getIdFieldBuilder().addBuilder(
org.yamcs.protobuf.Yamcs.NamedObjectId.getDefaultInstance());
}
/**
* repeated .yamcs.NamedObjectId id = 3;
*/
public org.yamcs.protobuf.Yamcs.NamedObjectId.Builder addIdBuilder(
int index) {
return getIdFieldBuilder().addBuilder(
index, org.yamcs.protobuf.Yamcs.NamedObjectId.getDefaultInstance());
}
/**
* repeated .yamcs.NamedObjectId id = 3;
*/
public java.util.List
getIdBuilderList() {
return getIdFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
org.yamcs.protobuf.Yamcs.NamedObjectId, org.yamcs.protobuf.Yamcs.NamedObjectId.Builder, org.yamcs.protobuf.Yamcs.NamedObjectIdOrBuilder>
getIdFieldBuilder() {
if (idBuilder_ == null) {
idBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
org.yamcs.protobuf.Yamcs.NamedObjectId, org.yamcs.protobuf.Yamcs.NamedObjectId.Builder, org.yamcs.protobuf.Yamcs.NamedObjectIdOrBuilder>(
id_,
((bitField0_ & 0x00000004) == 0x00000004),
getParentForChildren(),
isClean());
id_ = null;
}
return idBuilder_;
}
private java.lang.Object namespace_ = "";
/**
* optional string namespace = 4;
*
*
* Namespace used to display parameter names in e.g. csv header. Only used when no parameter ids were specified.
*
*/
public boolean hasNamespace() {
return ((bitField0_ & 0x00000008) == 0x00000008);
}
/**
* optional string namespace = 4;
*
*
* Namespace used to display parameter names in e.g. csv header. Only used when no parameter ids were specified.
*
*/
public java.lang.String getNamespace() {
java.lang.Object ref = namespace_;
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()) {
namespace_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string namespace = 4;
*
*
* Namespace used to display parameter names in e.g. csv header. Only used when no parameter ids were specified.
*
*/
public com.google.protobuf.ByteString
getNamespaceBytes() {
java.lang.Object ref = namespace_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
namespace_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string namespace = 4;
*
*
* Namespace used to display parameter names in e.g. csv header. Only used when no parameter ids were specified.
*
*/
public Builder setNamespace(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
namespace_ = value;
onChanged();
return this;
}
/**
* optional string namespace = 4;
*
*
* Namespace used to display parameter names in e.g. csv header. Only used when no parameter ids were specified.
*
*/
public Builder clearNamespace() {
bitField0_ = (bitField0_ & ~0x00000008);
namespace_ = getDefaultInstance().getNamespace();
onChanged();
return this;
}
/**
* optional string namespace = 4;
*
*
* Namespace used to display parameter names in e.g. csv header. Only used when no parameter ids were specified.
*
*/
public Builder setNamespaceBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
namespace_ = value;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:parameters.BulkDownloadParameterValueRequest)
}
static {
defaultInstance = new BulkDownloadParameterValueRequest(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:parameters.BulkDownloadParameterValueRequest)
}
public interface ListSpaceSystemInfoResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:parameters.ListSpaceSystemInfoResponse)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .yamcsManagement.SpaceSystemInfo spaceSystem = 1;
*/
java.util.List
getSpaceSystemList();
/**
* repeated .yamcsManagement.SpaceSystemInfo spaceSystem = 1;
*/
org.yamcs.protobuf.YamcsManagement.SpaceSystemInfo getSpaceSystem(int index);
/**
* repeated .yamcsManagement.SpaceSystemInfo spaceSystem = 1;
*/
int getSpaceSystemCount();
/**
* repeated .yamcsManagement.SpaceSystemInfo spaceSystem = 1;
*/
java.util.List extends org.yamcs.protobuf.YamcsManagement.SpaceSystemInfoOrBuilder>
getSpaceSystemOrBuilderList();
/**
* repeated .yamcsManagement.SpaceSystemInfo spaceSystem = 1;
*/
org.yamcs.protobuf.YamcsManagement.SpaceSystemInfoOrBuilder getSpaceSystemOrBuilder(
int index);
}
/**
* Protobuf type {@code parameters.ListSpaceSystemInfoResponse}
*/
public static final class ListSpaceSystemInfoResponse extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:parameters.ListSpaceSystemInfoResponse)
ListSpaceSystemInfoResponseOrBuilder {
// Use ListSpaceSystemInfoResponse.newBuilder() to construct.
private ListSpaceSystemInfoResponse(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private ListSpaceSystemInfoResponse(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final ListSpaceSystemInfoResponse defaultInstance;
public static ListSpaceSystemInfoResponse getDefaultInstance() {
return defaultInstance;
}
public ListSpaceSystemInfoResponse getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ListSpaceSystemInfoResponse(
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)) {
spaceSystem_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
spaceSystem_.add(input.readMessage(org.yamcs.protobuf.YamcsManagement.SpaceSystemInfo.PARSER, extensionRegistry));
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)) {
spaceSystem_ = java.util.Collections.unmodifiableList(spaceSystem_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.Rest.internal_static_parameters_ListSpaceSystemInfoResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.Rest.internal_static_parameters_ListSpaceSystemInfoResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.Rest.ListSpaceSystemInfoResponse.class, org.yamcs.protobuf.Rest.ListSpaceSystemInfoResponse.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public ListSpaceSystemInfoResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ListSpaceSystemInfoResponse(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public static final int SPACESYSTEM_FIELD_NUMBER = 1;
private java.util.List spaceSystem_;
/**
* repeated .yamcsManagement.SpaceSystemInfo spaceSystem = 1;
*/
public java.util.List getSpaceSystemList() {
return spaceSystem_;
}
/**
* repeated .yamcsManagement.SpaceSystemInfo spaceSystem = 1;
*/
public java.util.List extends org.yamcs.protobuf.YamcsManagement.SpaceSystemInfoOrBuilder>
getSpaceSystemOrBuilderList() {
return spaceSystem_;
}
/**
* repeated .yamcsManagement.SpaceSystemInfo spaceSystem = 1;
*/
public int getSpaceSystemCount() {
return spaceSystem_.size();
}
/**
* repeated .yamcsManagement.SpaceSystemInfo spaceSystem = 1;
*/
public org.yamcs.protobuf.YamcsManagement.SpaceSystemInfo getSpaceSystem(int index) {
return spaceSystem_.get(index);
}
/**
* repeated .yamcsManagement.SpaceSystemInfo spaceSystem = 1;
*/
public org.yamcs.protobuf.YamcsManagement.SpaceSystemInfoOrBuilder getSpaceSystemOrBuilder(
int index) {
return spaceSystem_.get(index);
}
private void initFields() {
spaceSystem_ = java.util.Collections.emptyList();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 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 < spaceSystem_.size(); i++) {
output.writeMessage(1, spaceSystem_.get(i));
}
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 < spaceSystem_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, spaceSystem_.get(i));
}
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.Rest.ListSpaceSystemInfoResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.Rest.ListSpaceSystemInfoResponse 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.Rest.ListSpaceSystemInfoResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.Rest.ListSpaceSystemInfoResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.yamcs.protobuf.Rest.ListSpaceSystemInfoResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.yamcs.protobuf.Rest.ListSpaceSystemInfoResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.yamcs.protobuf.Rest.ListSpaceSystemInfoResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.yamcs.protobuf.Rest.ListSpaceSystemInfoResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.yamcs.protobuf.Rest.ListSpaceSystemInfoResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.yamcs.protobuf.Rest.ListSpaceSystemInfoResponse 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.Rest.ListSpaceSystemInfoResponse 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 parameters.ListSpaceSystemInfoResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:parameters.ListSpaceSystemInfoResponse)
org.yamcs.protobuf.Rest.ListSpaceSystemInfoResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.Rest.internal_static_parameters_ListSpaceSystemInfoResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.Rest.internal_static_parameters_ListSpaceSystemInfoResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.Rest.ListSpaceSystemInfoResponse.class, org.yamcs.protobuf.Rest.ListSpaceSystemInfoResponse.Builder.class);
}
// Construct using org.yamcs.protobuf.Rest.ListSpaceSystemInfoResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getSpaceSystemFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
if (spaceSystemBuilder_ == null) {
spaceSystem_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
spaceSystemBuilder_.clear();
}
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.yamcs.protobuf.Rest.internal_static_parameters_ListSpaceSystemInfoResponse_descriptor;
}
public org.yamcs.protobuf.Rest.ListSpaceSystemInfoResponse getDefaultInstanceForType() {
return org.yamcs.protobuf.Rest.ListSpaceSystemInfoResponse.getDefaultInstance();
}
public org.yamcs.protobuf.Rest.ListSpaceSystemInfoResponse build() {
org.yamcs.protobuf.Rest.ListSpaceSystemInfoResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.yamcs.protobuf.Rest.ListSpaceSystemInfoResponse buildPartial() {
org.yamcs.protobuf.Rest.ListSpaceSystemInfoResponse result = new org.yamcs.protobuf.Rest.ListSpaceSystemInfoResponse(this);
int from_bitField0_ = bitField0_;
if (spaceSystemBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
spaceSystem_ = java.util.Collections.unmodifiableList(spaceSystem_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.spaceSystem_ = spaceSystem_;
} else {
result.spaceSystem_ = spaceSystemBuilder_.build();
}
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.yamcs.protobuf.Rest.ListSpaceSystemInfoResponse) {
return mergeFrom((org.yamcs.protobuf.Rest.ListSpaceSystemInfoResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.yamcs.protobuf.Rest.ListSpaceSystemInfoResponse other) {
if (other == org.yamcs.protobuf.Rest.ListSpaceSystemInfoResponse.getDefaultInstance()) return this;
if (spaceSystemBuilder_ == null) {
if (!other.spaceSystem_.isEmpty()) {
if (spaceSystem_.isEmpty()) {
spaceSystem_ = other.spaceSystem_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureSpaceSystemIsMutable();
spaceSystem_.addAll(other.spaceSystem_);
}
onChanged();
}
} else {
if (!other.spaceSystem_.isEmpty()) {
if (spaceSystemBuilder_.isEmpty()) {
spaceSystemBuilder_.dispose();
spaceSystemBuilder_ = null;
spaceSystem_ = other.spaceSystem_;
bitField0_ = (bitField0_ & ~0x00000001);
spaceSystemBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getSpaceSystemFieldBuilder() : null;
} else {
spaceSystemBuilder_.addAllMessages(other.spaceSystem_);
}
}
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.yamcs.protobuf.Rest.ListSpaceSystemInfoResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.yamcs.protobuf.Rest.ListSpaceSystemInfoResponse) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List spaceSystem_ =
java.util.Collections.emptyList();
private void ensureSpaceSystemIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
spaceSystem_ = new java.util.ArrayList(spaceSystem_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
org.yamcs.protobuf.YamcsManagement.SpaceSystemInfo, org.yamcs.protobuf.YamcsManagement.SpaceSystemInfo.Builder, org.yamcs.protobuf.YamcsManagement.SpaceSystemInfoOrBuilder> spaceSystemBuilder_;
/**
* repeated .yamcsManagement.SpaceSystemInfo spaceSystem = 1;
*/
public java.util.List getSpaceSystemList() {
if (spaceSystemBuilder_ == null) {
return java.util.Collections.unmodifiableList(spaceSystem_);
} else {
return spaceSystemBuilder_.getMessageList();
}
}
/**
* repeated .yamcsManagement.SpaceSystemInfo spaceSystem = 1;
*/
public int getSpaceSystemCount() {
if (spaceSystemBuilder_ == null) {
return spaceSystem_.size();
} else {
return spaceSystemBuilder_.getCount();
}
}
/**
* repeated .yamcsManagement.SpaceSystemInfo spaceSystem = 1;
*/
public org.yamcs.protobuf.YamcsManagement.SpaceSystemInfo getSpaceSystem(int index) {
if (spaceSystemBuilder_ == null) {
return spaceSystem_.get(index);
} else {
return spaceSystemBuilder_.getMessage(index);
}
}
/**
* repeated .yamcsManagement.SpaceSystemInfo spaceSystem = 1;
*/
public Builder setSpaceSystem(
int index, org.yamcs.protobuf.YamcsManagement.SpaceSystemInfo value) {
if (spaceSystemBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSpaceSystemIsMutable();
spaceSystem_.set(index, value);
onChanged();
} else {
spaceSystemBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .yamcsManagement.SpaceSystemInfo spaceSystem = 1;
*/
public Builder setSpaceSystem(
int index, org.yamcs.protobuf.YamcsManagement.SpaceSystemInfo.Builder builderForValue) {
if (spaceSystemBuilder_ == null) {
ensureSpaceSystemIsMutable();
spaceSystem_.set(index, builderForValue.build());
onChanged();
} else {
spaceSystemBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .yamcsManagement.SpaceSystemInfo spaceSystem = 1;
*/
public Builder addSpaceSystem(org.yamcs.protobuf.YamcsManagement.SpaceSystemInfo value) {
if (spaceSystemBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSpaceSystemIsMutable();
spaceSystem_.add(value);
onChanged();
} else {
spaceSystemBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .yamcsManagement.SpaceSystemInfo spaceSystem = 1;
*/
public Builder addSpaceSystem(
int index, org.yamcs.protobuf.YamcsManagement.SpaceSystemInfo value) {
if (spaceSystemBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureSpaceSystemIsMutable();
spaceSystem_.add(index, value);
onChanged();
} else {
spaceSystemBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .yamcsManagement.SpaceSystemInfo spaceSystem = 1;
*/
public Builder addSpaceSystem(
org.yamcs.protobuf.YamcsManagement.SpaceSystemInfo.Builder builderForValue) {
if (spaceSystemBuilder_ == null) {
ensureSpaceSystemIsMutable();
spaceSystem_.add(builderForValue.build());
onChanged();
} else {
spaceSystemBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .yamcsManagement.SpaceSystemInfo spaceSystem = 1;
*/
public Builder addSpaceSystem(
int index, org.yamcs.protobuf.YamcsManagement.SpaceSystemInfo.Builder builderForValue) {
if (spaceSystemBuilder_ == null) {
ensureSpaceSystemIsMutable();
spaceSystem_.add(index, builderForValue.build());
onChanged();
} else {
spaceSystemBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .yamcsManagement.SpaceSystemInfo spaceSystem = 1;
*/
public Builder addAllSpaceSystem(
java.lang.Iterable extends org.yamcs.protobuf.YamcsManagement.SpaceSystemInfo> values) {
if (spaceSystemBuilder_ == null) {
ensureSpaceSystemIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, spaceSystem_);
onChanged();
} else {
spaceSystemBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .yamcsManagement.SpaceSystemInfo spaceSystem = 1;
*/
public Builder clearSpaceSystem() {
if (spaceSystemBuilder_ == null) {
spaceSystem_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
spaceSystemBuilder_.clear();
}
return this;
}
/**
* repeated .yamcsManagement.SpaceSystemInfo spaceSystem = 1;
*/
public Builder removeSpaceSystem(int index) {
if (spaceSystemBuilder_ == null) {
ensureSpaceSystemIsMutable();
spaceSystem_.remove(index);
onChanged();
} else {
spaceSystemBuilder_.remove(index);
}
return this;
}
/**
* repeated .yamcsManagement.SpaceSystemInfo spaceSystem = 1;
*/
public org.yamcs.protobuf.YamcsManagement.SpaceSystemInfo.Builder getSpaceSystemBuilder(
int index) {
return getSpaceSystemFieldBuilder().getBuilder(index);
}
/**
* repeated .yamcsManagement.SpaceSystemInfo spaceSystem = 1;
*/
public org.yamcs.protobuf.YamcsManagement.SpaceSystemInfoOrBuilder getSpaceSystemOrBuilder(
int index) {
if (spaceSystemBuilder_ == null) {
return spaceSystem_.get(index); } else {
return spaceSystemBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .yamcsManagement.SpaceSystemInfo spaceSystem = 1;
*/
public java.util.List extends org.yamcs.protobuf.YamcsManagement.SpaceSystemInfoOrBuilder>
getSpaceSystemOrBuilderList() {
if (spaceSystemBuilder_ != null) {
return spaceSystemBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(spaceSystem_);
}
}
/**
* repeated .yamcsManagement.SpaceSystemInfo spaceSystem = 1;
*/
public org.yamcs.protobuf.YamcsManagement.SpaceSystemInfo.Builder addSpaceSystemBuilder() {
return getSpaceSystemFieldBuilder().addBuilder(
org.yamcs.protobuf.YamcsManagement.SpaceSystemInfo.getDefaultInstance());
}
/**
* repeated .yamcsManagement.SpaceSystemInfo spaceSystem = 1;
*/
public org.yamcs.protobuf.YamcsManagement.SpaceSystemInfo.Builder addSpaceSystemBuilder(
int index) {
return getSpaceSystemFieldBuilder().addBuilder(
index, org.yamcs.protobuf.YamcsManagement.SpaceSystemInfo.getDefaultInstance());
}
/**
* repeated .yamcsManagement.SpaceSystemInfo spaceSystem = 1;
*/
public java.util.List
getSpaceSystemBuilderList() {
return getSpaceSystemFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
org.yamcs.protobuf.YamcsManagement.SpaceSystemInfo, org.yamcs.protobuf.YamcsManagement.SpaceSystemInfo.Builder, org.yamcs.protobuf.YamcsManagement.SpaceSystemInfoOrBuilder>
getSpaceSystemFieldBuilder() {
if (spaceSystemBuilder_ == null) {
spaceSystemBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
org.yamcs.protobuf.YamcsManagement.SpaceSystemInfo, org.yamcs.protobuf.YamcsManagement.SpaceSystemInfo.Builder, org.yamcs.protobuf.YamcsManagement.SpaceSystemInfoOrBuilder>(
spaceSystem_,
((bitField0_ & 0x00000001) == 0x00000001),
getParentForChildren(),
isClean());
spaceSystem_ = null;
}
return spaceSystemBuilder_;
}
// @@protoc_insertion_point(builder_scope:parameters.ListSpaceSystemInfoResponse)
}
static {
defaultInstance = new ListSpaceSystemInfoResponse(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:parameters.ListSpaceSystemInfoResponse)
}
public interface ListContainerInfoResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:parameters.ListContainerInfoResponse)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .mdb.ContainerInfo container = 1;
*/
java.util.List
getContainerList();
/**
* repeated .mdb.ContainerInfo container = 1;
*/
org.yamcs.protobuf.Mdb.ContainerInfo getContainer(int index);
/**
* repeated .mdb.ContainerInfo container = 1;
*/
int getContainerCount();
/**
* repeated .mdb.ContainerInfo container = 1;
*/
java.util.List extends org.yamcs.protobuf.Mdb.ContainerInfoOrBuilder>
getContainerOrBuilderList();
/**
* repeated .mdb.ContainerInfo container = 1;
*/
org.yamcs.protobuf.Mdb.ContainerInfoOrBuilder getContainerOrBuilder(
int index);
}
/**
* Protobuf type {@code parameters.ListContainerInfoResponse}
*/
public static final class ListContainerInfoResponse extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:parameters.ListContainerInfoResponse)
ListContainerInfoResponseOrBuilder {
// Use ListContainerInfoResponse.newBuilder() to construct.
private ListContainerInfoResponse(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private ListContainerInfoResponse(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final ListContainerInfoResponse defaultInstance;
public static ListContainerInfoResponse getDefaultInstance() {
return defaultInstance;
}
public ListContainerInfoResponse getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ListContainerInfoResponse(
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)) {
container_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
container_.add(input.readMessage(org.yamcs.protobuf.Mdb.ContainerInfo.PARSER, extensionRegistry));
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)) {
container_ = java.util.Collections.unmodifiableList(container_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.Rest.internal_static_parameters_ListContainerInfoResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.Rest.internal_static_parameters_ListContainerInfoResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.Rest.ListContainerInfoResponse.class, org.yamcs.protobuf.Rest.ListContainerInfoResponse.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public ListContainerInfoResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ListContainerInfoResponse(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public static final int CONTAINER_FIELD_NUMBER = 1;
private java.util.List container_;
/**
* repeated .mdb.ContainerInfo container = 1;
*/
public java.util.List getContainerList() {
return container_;
}
/**
* repeated .mdb.ContainerInfo container = 1;
*/
public java.util.List extends org.yamcs.protobuf.Mdb.ContainerInfoOrBuilder>
getContainerOrBuilderList() {
return container_;
}
/**
* repeated .mdb.ContainerInfo container = 1;
*/
public int getContainerCount() {
return container_.size();
}
/**
* repeated .mdb.ContainerInfo container = 1;
*/
public org.yamcs.protobuf.Mdb.ContainerInfo getContainer(int index) {
return container_.get(index);
}
/**
* repeated .mdb.ContainerInfo container = 1;
*/
public org.yamcs.protobuf.Mdb.ContainerInfoOrBuilder getContainerOrBuilder(
int index) {
return container_.get(index);
}
private void initFields() {
container_ = java.util.Collections.emptyList();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
for (int i = 0; i < getContainerCount(); i++) {
if (!getContainer(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 < container_.size(); i++) {
output.writeMessage(1, container_.get(i));
}
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 < container_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, container_.get(i));
}
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.Rest.ListContainerInfoResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.Rest.ListContainerInfoResponse 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.Rest.ListContainerInfoResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.Rest.ListContainerInfoResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.yamcs.protobuf.Rest.ListContainerInfoResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.yamcs.protobuf.Rest.ListContainerInfoResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.yamcs.protobuf.Rest.ListContainerInfoResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.yamcs.protobuf.Rest.ListContainerInfoResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.yamcs.protobuf.Rest.ListContainerInfoResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.yamcs.protobuf.Rest.ListContainerInfoResponse 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.Rest.ListContainerInfoResponse 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 parameters.ListContainerInfoResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:parameters.ListContainerInfoResponse)
org.yamcs.protobuf.Rest.ListContainerInfoResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.Rest.internal_static_parameters_ListContainerInfoResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.Rest.internal_static_parameters_ListContainerInfoResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.Rest.ListContainerInfoResponse.class, org.yamcs.protobuf.Rest.ListContainerInfoResponse.Builder.class);
}
// Construct using org.yamcs.protobuf.Rest.ListContainerInfoResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getContainerFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
if (containerBuilder_ == null) {
container_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
containerBuilder_.clear();
}
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.yamcs.protobuf.Rest.internal_static_parameters_ListContainerInfoResponse_descriptor;
}
public org.yamcs.protobuf.Rest.ListContainerInfoResponse getDefaultInstanceForType() {
return org.yamcs.protobuf.Rest.ListContainerInfoResponse.getDefaultInstance();
}
public org.yamcs.protobuf.Rest.ListContainerInfoResponse build() {
org.yamcs.protobuf.Rest.ListContainerInfoResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.yamcs.protobuf.Rest.ListContainerInfoResponse buildPartial() {
org.yamcs.protobuf.Rest.ListContainerInfoResponse result = new org.yamcs.protobuf.Rest.ListContainerInfoResponse(this);
int from_bitField0_ = bitField0_;
if (containerBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
container_ = java.util.Collections.unmodifiableList(container_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.container_ = container_;
} else {
result.container_ = containerBuilder_.build();
}
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.yamcs.protobuf.Rest.ListContainerInfoResponse) {
return mergeFrom((org.yamcs.protobuf.Rest.ListContainerInfoResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.yamcs.protobuf.Rest.ListContainerInfoResponse other) {
if (other == org.yamcs.protobuf.Rest.ListContainerInfoResponse.getDefaultInstance()) return this;
if (containerBuilder_ == null) {
if (!other.container_.isEmpty()) {
if (container_.isEmpty()) {
container_ = other.container_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureContainerIsMutable();
container_.addAll(other.container_);
}
onChanged();
}
} else {
if (!other.container_.isEmpty()) {
if (containerBuilder_.isEmpty()) {
containerBuilder_.dispose();
containerBuilder_ = null;
container_ = other.container_;
bitField0_ = (bitField0_ & ~0x00000001);
containerBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getContainerFieldBuilder() : null;
} else {
containerBuilder_.addAllMessages(other.container_);
}
}
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
for (int i = 0; i < getContainerCount(); i++) {
if (!getContainer(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.Rest.ListContainerInfoResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.yamcs.protobuf.Rest.ListContainerInfoResponse) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List container_ =
java.util.Collections.emptyList();
private void ensureContainerIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
container_ = new java.util.ArrayList(container_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
org.yamcs.protobuf.Mdb.ContainerInfo, org.yamcs.protobuf.Mdb.ContainerInfo.Builder, org.yamcs.protobuf.Mdb.ContainerInfoOrBuilder> containerBuilder_;
/**
* repeated .mdb.ContainerInfo container = 1;
*/
public java.util.List getContainerList() {
if (containerBuilder_ == null) {
return java.util.Collections.unmodifiableList(container_);
} else {
return containerBuilder_.getMessageList();
}
}
/**
* repeated .mdb.ContainerInfo container = 1;
*/
public int getContainerCount() {
if (containerBuilder_ == null) {
return container_.size();
} else {
return containerBuilder_.getCount();
}
}
/**
* repeated .mdb.ContainerInfo container = 1;
*/
public org.yamcs.protobuf.Mdb.ContainerInfo getContainer(int index) {
if (containerBuilder_ == null) {
return container_.get(index);
} else {
return containerBuilder_.getMessage(index);
}
}
/**
* repeated .mdb.ContainerInfo container = 1;
*/
public Builder setContainer(
int index, org.yamcs.protobuf.Mdb.ContainerInfo value) {
if (containerBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureContainerIsMutable();
container_.set(index, value);
onChanged();
} else {
containerBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .mdb.ContainerInfo container = 1;
*/
public Builder setContainer(
int index, org.yamcs.protobuf.Mdb.ContainerInfo.Builder builderForValue) {
if (containerBuilder_ == null) {
ensureContainerIsMutable();
container_.set(index, builderForValue.build());
onChanged();
} else {
containerBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .mdb.ContainerInfo container = 1;
*/
public Builder addContainer(org.yamcs.protobuf.Mdb.ContainerInfo value) {
if (containerBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureContainerIsMutable();
container_.add(value);
onChanged();
} else {
containerBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .mdb.ContainerInfo container = 1;
*/
public Builder addContainer(
int index, org.yamcs.protobuf.Mdb.ContainerInfo value) {
if (containerBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureContainerIsMutable();
container_.add(index, value);
onChanged();
} else {
containerBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .mdb.ContainerInfo container = 1;
*/
public Builder addContainer(
org.yamcs.protobuf.Mdb.ContainerInfo.Builder builderForValue) {
if (containerBuilder_ == null) {
ensureContainerIsMutable();
container_.add(builderForValue.build());
onChanged();
} else {
containerBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .mdb.ContainerInfo container = 1;
*/
public Builder addContainer(
int index, org.yamcs.protobuf.Mdb.ContainerInfo.Builder builderForValue) {
if (containerBuilder_ == null) {
ensureContainerIsMutable();
container_.add(index, builderForValue.build());
onChanged();
} else {
containerBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .mdb.ContainerInfo container = 1;
*/
public Builder addAllContainer(
java.lang.Iterable extends org.yamcs.protobuf.Mdb.ContainerInfo> values) {
if (containerBuilder_ == null) {
ensureContainerIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, container_);
onChanged();
} else {
containerBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .mdb.ContainerInfo container = 1;
*/
public Builder clearContainer() {
if (containerBuilder_ == null) {
container_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
containerBuilder_.clear();
}
return this;
}
/**
* repeated .mdb.ContainerInfo container = 1;
*/
public Builder removeContainer(int index) {
if (containerBuilder_ == null) {
ensureContainerIsMutable();
container_.remove(index);
onChanged();
} else {
containerBuilder_.remove(index);
}
return this;
}
/**
* repeated .mdb.ContainerInfo container = 1;
*/
public org.yamcs.protobuf.Mdb.ContainerInfo.Builder getContainerBuilder(
int index) {
return getContainerFieldBuilder().getBuilder(index);
}
/**
* repeated .mdb.ContainerInfo container = 1;
*/
public org.yamcs.protobuf.Mdb.ContainerInfoOrBuilder getContainerOrBuilder(
int index) {
if (containerBuilder_ == null) {
return container_.get(index); } else {
return containerBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .mdb.ContainerInfo container = 1;
*/
public java.util.List extends org.yamcs.protobuf.Mdb.ContainerInfoOrBuilder>
getContainerOrBuilderList() {
if (containerBuilder_ != null) {
return containerBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(container_);
}
}
/**
* repeated .mdb.ContainerInfo container = 1;
*/
public org.yamcs.protobuf.Mdb.ContainerInfo.Builder addContainerBuilder() {
return getContainerFieldBuilder().addBuilder(
org.yamcs.protobuf.Mdb.ContainerInfo.getDefaultInstance());
}
/**
* repeated .mdb.ContainerInfo container = 1;
*/
public org.yamcs.protobuf.Mdb.ContainerInfo.Builder addContainerBuilder(
int index) {
return getContainerFieldBuilder().addBuilder(
index, org.yamcs.protobuf.Mdb.ContainerInfo.getDefaultInstance());
}
/**
* repeated .mdb.ContainerInfo container = 1;
*/
public java.util.List
getContainerBuilderList() {
return getContainerFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
org.yamcs.protobuf.Mdb.ContainerInfo, org.yamcs.protobuf.Mdb.ContainerInfo.Builder, org.yamcs.protobuf.Mdb.ContainerInfoOrBuilder>
getContainerFieldBuilder() {
if (containerBuilder_ == null) {
containerBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
org.yamcs.protobuf.Mdb.ContainerInfo, org.yamcs.protobuf.Mdb.ContainerInfo.Builder, org.yamcs.protobuf.Mdb.ContainerInfoOrBuilder>(
container_,
((bitField0_ & 0x00000001) == 0x00000001),
getParentForChildren(),
isClean());
container_ = null;
}
return containerBuilder_;
}
// @@protoc_insertion_point(builder_scope:parameters.ListContainerInfoResponse)
}
static {
defaultInstance = new ListContainerInfoResponse(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:parameters.ListContainerInfoResponse)
}
public interface ListCommandInfoResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:parameters.ListCommandInfoResponse)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .mdb.CommandInfo command = 1;
*/
java.util.List
getCommandList();
/**
* repeated .mdb.CommandInfo command = 1;
*/
org.yamcs.protobuf.Mdb.CommandInfo getCommand(int index);
/**
* repeated .mdb.CommandInfo command = 1;
*/
int getCommandCount();
/**
* repeated .mdb.CommandInfo command = 1;
*/
java.util.List extends org.yamcs.protobuf.Mdb.CommandInfoOrBuilder>
getCommandOrBuilderList();
/**
* repeated .mdb.CommandInfo command = 1;
*/
org.yamcs.protobuf.Mdb.CommandInfoOrBuilder getCommandOrBuilder(
int index);
}
/**
* Protobuf type {@code parameters.ListCommandInfoResponse}
*/
public static final class ListCommandInfoResponse extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:parameters.ListCommandInfoResponse)
ListCommandInfoResponseOrBuilder {
// Use ListCommandInfoResponse.newBuilder() to construct.
private ListCommandInfoResponse(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private ListCommandInfoResponse(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final ListCommandInfoResponse defaultInstance;
public static ListCommandInfoResponse getDefaultInstance() {
return defaultInstance;
}
public ListCommandInfoResponse getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ListCommandInfoResponse(
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)) {
command_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
command_.add(input.readMessage(org.yamcs.protobuf.Mdb.CommandInfo.PARSER, extensionRegistry));
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)) {
command_ = java.util.Collections.unmodifiableList(command_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.Rest.internal_static_parameters_ListCommandInfoResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.Rest.internal_static_parameters_ListCommandInfoResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.Rest.ListCommandInfoResponse.class, org.yamcs.protobuf.Rest.ListCommandInfoResponse.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public ListCommandInfoResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ListCommandInfoResponse(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public static final int COMMAND_FIELD_NUMBER = 1;
private java.util.List command_;
/**
* repeated .mdb.CommandInfo command = 1;
*/
public java.util.List getCommandList() {
return command_;
}
/**
* repeated .mdb.CommandInfo command = 1;
*/
public java.util.List extends org.yamcs.protobuf.Mdb.CommandInfoOrBuilder>
getCommandOrBuilderList() {
return command_;
}
/**
* repeated .mdb.CommandInfo command = 1;
*/
public int getCommandCount() {
return command_.size();
}
/**
* repeated .mdb.CommandInfo command = 1;
*/
public org.yamcs.protobuf.Mdb.CommandInfo getCommand(int index) {
return command_.get(index);
}
/**
* repeated .mdb.CommandInfo command = 1;
*/
public org.yamcs.protobuf.Mdb.CommandInfoOrBuilder getCommandOrBuilder(
int index) {
return command_.get(index);
}
private void initFields() {
command_ = java.util.Collections.emptyList();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
for (int i = 0; i < getCommandCount(); i++) {
if (!getCommand(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 < command_.size(); i++) {
output.writeMessage(1, command_.get(i));
}
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 < command_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, command_.get(i));
}
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.Rest.ListCommandInfoResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.Rest.ListCommandInfoResponse 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.Rest.ListCommandInfoResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.Rest.ListCommandInfoResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.yamcs.protobuf.Rest.ListCommandInfoResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.yamcs.protobuf.Rest.ListCommandInfoResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.yamcs.protobuf.Rest.ListCommandInfoResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.yamcs.protobuf.Rest.ListCommandInfoResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.yamcs.protobuf.Rest.ListCommandInfoResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.yamcs.protobuf.Rest.ListCommandInfoResponse 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.Rest.ListCommandInfoResponse 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 parameters.ListCommandInfoResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:parameters.ListCommandInfoResponse)
org.yamcs.protobuf.Rest.ListCommandInfoResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.Rest.internal_static_parameters_ListCommandInfoResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.Rest.internal_static_parameters_ListCommandInfoResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.Rest.ListCommandInfoResponse.class, org.yamcs.protobuf.Rest.ListCommandInfoResponse.Builder.class);
}
// Construct using org.yamcs.protobuf.Rest.ListCommandInfoResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getCommandFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
if (commandBuilder_ == null) {
command_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
commandBuilder_.clear();
}
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.yamcs.protobuf.Rest.internal_static_parameters_ListCommandInfoResponse_descriptor;
}
public org.yamcs.protobuf.Rest.ListCommandInfoResponse getDefaultInstanceForType() {
return org.yamcs.protobuf.Rest.ListCommandInfoResponse.getDefaultInstance();
}
public org.yamcs.protobuf.Rest.ListCommandInfoResponse build() {
org.yamcs.protobuf.Rest.ListCommandInfoResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.yamcs.protobuf.Rest.ListCommandInfoResponse buildPartial() {
org.yamcs.protobuf.Rest.ListCommandInfoResponse result = new org.yamcs.protobuf.Rest.ListCommandInfoResponse(this);
int from_bitField0_ = bitField0_;
if (commandBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
command_ = java.util.Collections.unmodifiableList(command_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.command_ = command_;
} else {
result.command_ = commandBuilder_.build();
}
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.yamcs.protobuf.Rest.ListCommandInfoResponse) {
return mergeFrom((org.yamcs.protobuf.Rest.ListCommandInfoResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.yamcs.protobuf.Rest.ListCommandInfoResponse other) {
if (other == org.yamcs.protobuf.Rest.ListCommandInfoResponse.getDefaultInstance()) return this;
if (commandBuilder_ == null) {
if (!other.command_.isEmpty()) {
if (command_.isEmpty()) {
command_ = other.command_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureCommandIsMutable();
command_.addAll(other.command_);
}
onChanged();
}
} else {
if (!other.command_.isEmpty()) {
if (commandBuilder_.isEmpty()) {
commandBuilder_.dispose();
commandBuilder_ = null;
command_ = other.command_;
bitField0_ = (bitField0_ & ~0x00000001);
commandBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getCommandFieldBuilder() : null;
} else {
commandBuilder_.addAllMessages(other.command_);
}
}
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
for (int i = 0; i < getCommandCount(); i++) {
if (!getCommand(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.Rest.ListCommandInfoResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.yamcs.protobuf.Rest.ListCommandInfoResponse) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List command_ =
java.util.Collections.emptyList();
private void ensureCommandIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
command_ = new java.util.ArrayList(command_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
org.yamcs.protobuf.Mdb.CommandInfo, org.yamcs.protobuf.Mdb.CommandInfo.Builder, org.yamcs.protobuf.Mdb.CommandInfoOrBuilder> commandBuilder_;
/**
* repeated .mdb.CommandInfo command = 1;
*/
public java.util.List getCommandList() {
if (commandBuilder_ == null) {
return java.util.Collections.unmodifiableList(command_);
} else {
return commandBuilder_.getMessageList();
}
}
/**
* repeated .mdb.CommandInfo command = 1;
*/
public int getCommandCount() {
if (commandBuilder_ == null) {
return command_.size();
} else {
return commandBuilder_.getCount();
}
}
/**
* repeated .mdb.CommandInfo command = 1;
*/
public org.yamcs.protobuf.Mdb.CommandInfo getCommand(int index) {
if (commandBuilder_ == null) {
return command_.get(index);
} else {
return commandBuilder_.getMessage(index);
}
}
/**
* repeated .mdb.CommandInfo command = 1;
*/
public Builder setCommand(
int index, org.yamcs.protobuf.Mdb.CommandInfo value) {
if (commandBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCommandIsMutable();
command_.set(index, value);
onChanged();
} else {
commandBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .mdb.CommandInfo command = 1;
*/
public Builder setCommand(
int index, org.yamcs.protobuf.Mdb.CommandInfo.Builder builderForValue) {
if (commandBuilder_ == null) {
ensureCommandIsMutable();
command_.set(index, builderForValue.build());
onChanged();
} else {
commandBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .mdb.CommandInfo command = 1;
*/
public Builder addCommand(org.yamcs.protobuf.Mdb.CommandInfo value) {
if (commandBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCommandIsMutable();
command_.add(value);
onChanged();
} else {
commandBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .mdb.CommandInfo command = 1;
*/
public Builder addCommand(
int index, org.yamcs.protobuf.Mdb.CommandInfo value) {
if (commandBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureCommandIsMutable();
command_.add(index, value);
onChanged();
} else {
commandBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .mdb.CommandInfo command = 1;
*/
public Builder addCommand(
org.yamcs.protobuf.Mdb.CommandInfo.Builder builderForValue) {
if (commandBuilder_ == null) {
ensureCommandIsMutable();
command_.add(builderForValue.build());
onChanged();
} else {
commandBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .mdb.CommandInfo command = 1;
*/
public Builder addCommand(
int index, org.yamcs.protobuf.Mdb.CommandInfo.Builder builderForValue) {
if (commandBuilder_ == null) {
ensureCommandIsMutable();
command_.add(index, builderForValue.build());
onChanged();
} else {
commandBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .mdb.CommandInfo command = 1;
*/
public Builder addAllCommand(
java.lang.Iterable extends org.yamcs.protobuf.Mdb.CommandInfo> values) {
if (commandBuilder_ == null) {
ensureCommandIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, command_);
onChanged();
} else {
commandBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .mdb.CommandInfo command = 1;
*/
public Builder clearCommand() {
if (commandBuilder_ == null) {
command_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
commandBuilder_.clear();
}
return this;
}
/**
* repeated .mdb.CommandInfo command = 1;
*/
public Builder removeCommand(int index) {
if (commandBuilder_ == null) {
ensureCommandIsMutable();
command_.remove(index);
onChanged();
} else {
commandBuilder_.remove(index);
}
return this;
}
/**
* repeated .mdb.CommandInfo command = 1;
*/
public org.yamcs.protobuf.Mdb.CommandInfo.Builder getCommandBuilder(
int index) {
return getCommandFieldBuilder().getBuilder(index);
}
/**
* repeated .mdb.CommandInfo command = 1;
*/
public org.yamcs.protobuf.Mdb.CommandInfoOrBuilder getCommandOrBuilder(
int index) {
if (commandBuilder_ == null) {
return command_.get(index); } else {
return commandBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .mdb.CommandInfo command = 1;
*/
public java.util.List extends org.yamcs.protobuf.Mdb.CommandInfoOrBuilder>
getCommandOrBuilderList() {
if (commandBuilder_ != null) {
return commandBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(command_);
}
}
/**
* repeated .mdb.CommandInfo command = 1;
*/
public org.yamcs.protobuf.Mdb.CommandInfo.Builder addCommandBuilder() {
return getCommandFieldBuilder().addBuilder(
org.yamcs.protobuf.Mdb.CommandInfo.getDefaultInstance());
}
/**
* repeated .mdb.CommandInfo command = 1;
*/
public org.yamcs.protobuf.Mdb.CommandInfo.Builder addCommandBuilder(
int index) {
return getCommandFieldBuilder().addBuilder(
index, org.yamcs.protobuf.Mdb.CommandInfo.getDefaultInstance());
}
/**
* repeated .mdb.CommandInfo command = 1;
*/
public java.util.List
getCommandBuilderList() {
return getCommandFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
org.yamcs.protobuf.Mdb.CommandInfo, org.yamcs.protobuf.Mdb.CommandInfo.Builder, org.yamcs.protobuf.Mdb.CommandInfoOrBuilder>
getCommandFieldBuilder() {
if (commandBuilder_ == null) {
commandBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
org.yamcs.protobuf.Mdb.CommandInfo, org.yamcs.protobuf.Mdb.CommandInfo.Builder, org.yamcs.protobuf.Mdb.CommandInfoOrBuilder>(
command_,
((bitField0_ & 0x00000001) == 0x00000001),
getParentForChildren(),
isClean());
command_ = null;
}
return commandBuilder_;
}
// @@protoc_insertion_point(builder_scope:parameters.ListCommandInfoResponse)
}
static {
defaultInstance = new ListCommandInfoResponse(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:parameters.ListCommandInfoResponse)
}
public interface ListAlgorithmInfoResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:parameters.ListAlgorithmInfoResponse)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .mdb.AlgorithmInfo algorithm = 1;
*/
java.util.List
getAlgorithmList();
/**
* repeated .mdb.AlgorithmInfo algorithm = 1;
*/
org.yamcs.protobuf.Mdb.AlgorithmInfo getAlgorithm(int index);
/**
* repeated .mdb.AlgorithmInfo algorithm = 1;
*/
int getAlgorithmCount();
/**
* repeated .mdb.AlgorithmInfo algorithm = 1;
*/
java.util.List extends org.yamcs.protobuf.Mdb.AlgorithmInfoOrBuilder>
getAlgorithmOrBuilderList();
/**
* repeated .mdb.AlgorithmInfo algorithm = 1;
*/
org.yamcs.protobuf.Mdb.AlgorithmInfoOrBuilder getAlgorithmOrBuilder(
int index);
}
/**
* Protobuf type {@code parameters.ListAlgorithmInfoResponse}
*/
public static final class ListAlgorithmInfoResponse extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:parameters.ListAlgorithmInfoResponse)
ListAlgorithmInfoResponseOrBuilder {
// Use ListAlgorithmInfoResponse.newBuilder() to construct.
private ListAlgorithmInfoResponse(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private ListAlgorithmInfoResponse(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final ListAlgorithmInfoResponse defaultInstance;
public static ListAlgorithmInfoResponse getDefaultInstance() {
return defaultInstance;
}
public ListAlgorithmInfoResponse getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ListAlgorithmInfoResponse(
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)) {
algorithm_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
algorithm_.add(input.readMessage(org.yamcs.protobuf.Mdb.AlgorithmInfo.PARSER, extensionRegistry));
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)) {
algorithm_ = java.util.Collections.unmodifiableList(algorithm_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.Rest.internal_static_parameters_ListAlgorithmInfoResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.Rest.internal_static_parameters_ListAlgorithmInfoResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.Rest.ListAlgorithmInfoResponse.class, org.yamcs.protobuf.Rest.ListAlgorithmInfoResponse.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public ListAlgorithmInfoResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ListAlgorithmInfoResponse(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public static final int ALGORITHM_FIELD_NUMBER = 1;
private java.util.List algorithm_;
/**
* repeated .mdb.AlgorithmInfo algorithm = 1;
*/
public java.util.List getAlgorithmList() {
return algorithm_;
}
/**
* repeated .mdb.AlgorithmInfo algorithm = 1;
*/
public java.util.List extends org.yamcs.protobuf.Mdb.AlgorithmInfoOrBuilder>
getAlgorithmOrBuilderList() {
return algorithm_;
}
/**
* repeated .mdb.AlgorithmInfo algorithm = 1;
*/
public int getAlgorithmCount() {
return algorithm_.size();
}
/**
* repeated .mdb.AlgorithmInfo algorithm = 1;
*/
public org.yamcs.protobuf.Mdb.AlgorithmInfo getAlgorithm(int index) {
return algorithm_.get(index);
}
/**
* repeated .mdb.AlgorithmInfo algorithm = 1;
*/
public org.yamcs.protobuf.Mdb.AlgorithmInfoOrBuilder getAlgorithmOrBuilder(
int index) {
return algorithm_.get(index);
}
private void initFields() {
algorithm_ = java.util.Collections.emptyList();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
for (int i = 0; i < getAlgorithmCount(); i++) {
if (!getAlgorithm(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 < algorithm_.size(); i++) {
output.writeMessage(1, algorithm_.get(i));
}
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 < algorithm_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, algorithm_.get(i));
}
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.Rest.ListAlgorithmInfoResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.Rest.ListAlgorithmInfoResponse 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.Rest.ListAlgorithmInfoResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.Rest.ListAlgorithmInfoResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.yamcs.protobuf.Rest.ListAlgorithmInfoResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.yamcs.protobuf.Rest.ListAlgorithmInfoResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.yamcs.protobuf.Rest.ListAlgorithmInfoResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.yamcs.protobuf.Rest.ListAlgorithmInfoResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.yamcs.protobuf.Rest.ListAlgorithmInfoResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.yamcs.protobuf.Rest.ListAlgorithmInfoResponse 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.Rest.ListAlgorithmInfoResponse 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 parameters.ListAlgorithmInfoResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:parameters.ListAlgorithmInfoResponse)
org.yamcs.protobuf.Rest.ListAlgorithmInfoResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.Rest.internal_static_parameters_ListAlgorithmInfoResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.Rest.internal_static_parameters_ListAlgorithmInfoResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.Rest.ListAlgorithmInfoResponse.class, org.yamcs.protobuf.Rest.ListAlgorithmInfoResponse.Builder.class);
}
// Construct using org.yamcs.protobuf.Rest.ListAlgorithmInfoResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getAlgorithmFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
if (algorithmBuilder_ == null) {
algorithm_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
algorithmBuilder_.clear();
}
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.yamcs.protobuf.Rest.internal_static_parameters_ListAlgorithmInfoResponse_descriptor;
}
public org.yamcs.protobuf.Rest.ListAlgorithmInfoResponse getDefaultInstanceForType() {
return org.yamcs.protobuf.Rest.ListAlgorithmInfoResponse.getDefaultInstance();
}
public org.yamcs.protobuf.Rest.ListAlgorithmInfoResponse build() {
org.yamcs.protobuf.Rest.ListAlgorithmInfoResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.yamcs.protobuf.Rest.ListAlgorithmInfoResponse buildPartial() {
org.yamcs.protobuf.Rest.ListAlgorithmInfoResponse result = new org.yamcs.protobuf.Rest.ListAlgorithmInfoResponse(this);
int from_bitField0_ = bitField0_;
if (algorithmBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
algorithm_ = java.util.Collections.unmodifiableList(algorithm_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.algorithm_ = algorithm_;
} else {
result.algorithm_ = algorithmBuilder_.build();
}
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.yamcs.protobuf.Rest.ListAlgorithmInfoResponse) {
return mergeFrom((org.yamcs.protobuf.Rest.ListAlgorithmInfoResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.yamcs.protobuf.Rest.ListAlgorithmInfoResponse other) {
if (other == org.yamcs.protobuf.Rest.ListAlgorithmInfoResponse.getDefaultInstance()) return this;
if (algorithmBuilder_ == null) {
if (!other.algorithm_.isEmpty()) {
if (algorithm_.isEmpty()) {
algorithm_ = other.algorithm_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureAlgorithmIsMutable();
algorithm_.addAll(other.algorithm_);
}
onChanged();
}
} else {
if (!other.algorithm_.isEmpty()) {
if (algorithmBuilder_.isEmpty()) {
algorithmBuilder_.dispose();
algorithmBuilder_ = null;
algorithm_ = other.algorithm_;
bitField0_ = (bitField0_ & ~0x00000001);
algorithmBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getAlgorithmFieldBuilder() : null;
} else {
algorithmBuilder_.addAllMessages(other.algorithm_);
}
}
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
for (int i = 0; i < getAlgorithmCount(); i++) {
if (!getAlgorithm(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.Rest.ListAlgorithmInfoResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.yamcs.protobuf.Rest.ListAlgorithmInfoResponse) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List algorithm_ =
java.util.Collections.emptyList();
private void ensureAlgorithmIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
algorithm_ = new java.util.ArrayList(algorithm_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
org.yamcs.protobuf.Mdb.AlgorithmInfo, org.yamcs.protobuf.Mdb.AlgorithmInfo.Builder, org.yamcs.protobuf.Mdb.AlgorithmInfoOrBuilder> algorithmBuilder_;
/**
* repeated .mdb.AlgorithmInfo algorithm = 1;
*/
public java.util.List getAlgorithmList() {
if (algorithmBuilder_ == null) {
return java.util.Collections.unmodifiableList(algorithm_);
} else {
return algorithmBuilder_.getMessageList();
}
}
/**
* repeated .mdb.AlgorithmInfo algorithm = 1;
*/
public int getAlgorithmCount() {
if (algorithmBuilder_ == null) {
return algorithm_.size();
} else {
return algorithmBuilder_.getCount();
}
}
/**
* repeated .mdb.AlgorithmInfo algorithm = 1;
*/
public org.yamcs.protobuf.Mdb.AlgorithmInfo getAlgorithm(int index) {
if (algorithmBuilder_ == null) {
return algorithm_.get(index);
} else {
return algorithmBuilder_.getMessage(index);
}
}
/**
* repeated .mdb.AlgorithmInfo algorithm = 1;
*/
public Builder setAlgorithm(
int index, org.yamcs.protobuf.Mdb.AlgorithmInfo value) {
if (algorithmBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAlgorithmIsMutable();
algorithm_.set(index, value);
onChanged();
} else {
algorithmBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .mdb.AlgorithmInfo algorithm = 1;
*/
public Builder setAlgorithm(
int index, org.yamcs.protobuf.Mdb.AlgorithmInfo.Builder builderForValue) {
if (algorithmBuilder_ == null) {
ensureAlgorithmIsMutable();
algorithm_.set(index, builderForValue.build());
onChanged();
} else {
algorithmBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .mdb.AlgorithmInfo algorithm = 1;
*/
public Builder addAlgorithm(org.yamcs.protobuf.Mdb.AlgorithmInfo value) {
if (algorithmBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAlgorithmIsMutable();
algorithm_.add(value);
onChanged();
} else {
algorithmBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .mdb.AlgorithmInfo algorithm = 1;
*/
public Builder addAlgorithm(
int index, org.yamcs.protobuf.Mdb.AlgorithmInfo value) {
if (algorithmBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureAlgorithmIsMutable();
algorithm_.add(index, value);
onChanged();
} else {
algorithmBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .mdb.AlgorithmInfo algorithm = 1;
*/
public Builder addAlgorithm(
org.yamcs.protobuf.Mdb.AlgorithmInfo.Builder builderForValue) {
if (algorithmBuilder_ == null) {
ensureAlgorithmIsMutable();
algorithm_.add(builderForValue.build());
onChanged();
} else {
algorithmBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .mdb.AlgorithmInfo algorithm = 1;
*/
public Builder addAlgorithm(
int index, org.yamcs.protobuf.Mdb.AlgorithmInfo.Builder builderForValue) {
if (algorithmBuilder_ == null) {
ensureAlgorithmIsMutable();
algorithm_.add(index, builderForValue.build());
onChanged();
} else {
algorithmBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .mdb.AlgorithmInfo algorithm = 1;
*/
public Builder addAllAlgorithm(
java.lang.Iterable extends org.yamcs.protobuf.Mdb.AlgorithmInfo> values) {
if (algorithmBuilder_ == null) {
ensureAlgorithmIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, algorithm_);
onChanged();
} else {
algorithmBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .mdb.AlgorithmInfo algorithm = 1;
*/
public Builder clearAlgorithm() {
if (algorithmBuilder_ == null) {
algorithm_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
algorithmBuilder_.clear();
}
return this;
}
/**
* repeated .mdb.AlgorithmInfo algorithm = 1;
*/
public Builder removeAlgorithm(int index) {
if (algorithmBuilder_ == null) {
ensureAlgorithmIsMutable();
algorithm_.remove(index);
onChanged();
} else {
algorithmBuilder_.remove(index);
}
return this;
}
/**
* repeated .mdb.AlgorithmInfo algorithm = 1;
*/
public org.yamcs.protobuf.Mdb.AlgorithmInfo.Builder getAlgorithmBuilder(
int index) {
return getAlgorithmFieldBuilder().getBuilder(index);
}
/**
* repeated .mdb.AlgorithmInfo algorithm = 1;
*/
public org.yamcs.protobuf.Mdb.AlgorithmInfoOrBuilder getAlgorithmOrBuilder(
int index) {
if (algorithmBuilder_ == null) {
return algorithm_.get(index); } else {
return algorithmBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .mdb.AlgorithmInfo algorithm = 1;
*/
public java.util.List extends org.yamcs.protobuf.Mdb.AlgorithmInfoOrBuilder>
getAlgorithmOrBuilderList() {
if (algorithmBuilder_ != null) {
return algorithmBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(algorithm_);
}
}
/**
* repeated .mdb.AlgorithmInfo algorithm = 1;
*/
public org.yamcs.protobuf.Mdb.AlgorithmInfo.Builder addAlgorithmBuilder() {
return getAlgorithmFieldBuilder().addBuilder(
org.yamcs.protobuf.Mdb.AlgorithmInfo.getDefaultInstance());
}
/**
* repeated .mdb.AlgorithmInfo algorithm = 1;
*/
public org.yamcs.protobuf.Mdb.AlgorithmInfo.Builder addAlgorithmBuilder(
int index) {
return getAlgorithmFieldBuilder().addBuilder(
index, org.yamcs.protobuf.Mdb.AlgorithmInfo.getDefaultInstance());
}
/**
* repeated .mdb.AlgorithmInfo algorithm = 1;
*/
public java.util.List
getAlgorithmBuilderList() {
return getAlgorithmFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
org.yamcs.protobuf.Mdb.AlgorithmInfo, org.yamcs.protobuf.Mdb.AlgorithmInfo.Builder, org.yamcs.protobuf.Mdb.AlgorithmInfoOrBuilder>
getAlgorithmFieldBuilder() {
if (algorithmBuilder_ == null) {
algorithmBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
org.yamcs.protobuf.Mdb.AlgorithmInfo, org.yamcs.protobuf.Mdb.AlgorithmInfo.Builder, org.yamcs.protobuf.Mdb.AlgorithmInfoOrBuilder>(
algorithm_,
((bitField0_ & 0x00000001) == 0x00000001),
getParentForChildren(),
isClean());
algorithm_ = null;
}
return algorithmBuilder_;
}
// @@protoc_insertion_point(builder_scope:parameters.ListAlgorithmInfoResponse)
}
static {
defaultInstance = new ListAlgorithmInfoResponse(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:parameters.ListAlgorithmInfoResponse)
}
public interface ListLinkInfoResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:parameters.ListLinkInfoResponse)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .yamcsManagement.LinkInfo link = 1;
*/
java.util.List
getLinkList();
/**
* repeated .yamcsManagement.LinkInfo link = 1;
*/
org.yamcs.protobuf.YamcsManagement.LinkInfo getLink(int index);
/**
* repeated .yamcsManagement.LinkInfo link = 1;
*/
int getLinkCount();
/**
* repeated .yamcsManagement.LinkInfo link = 1;
*/
java.util.List extends org.yamcs.protobuf.YamcsManagement.LinkInfoOrBuilder>
getLinkOrBuilderList();
/**
* repeated .yamcsManagement.LinkInfo link = 1;
*/
org.yamcs.protobuf.YamcsManagement.LinkInfoOrBuilder getLinkOrBuilder(
int index);
}
/**
* Protobuf type {@code parameters.ListLinkInfoResponse}
*/
public static final class ListLinkInfoResponse extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:parameters.ListLinkInfoResponse)
ListLinkInfoResponseOrBuilder {
// Use ListLinkInfoResponse.newBuilder() to construct.
private ListLinkInfoResponse(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private ListLinkInfoResponse(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final ListLinkInfoResponse defaultInstance;
public static ListLinkInfoResponse getDefaultInstance() {
return defaultInstance;
}
public ListLinkInfoResponse getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ListLinkInfoResponse(
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)) {
link_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
link_.add(input.readMessage(org.yamcs.protobuf.YamcsManagement.LinkInfo.PARSER, extensionRegistry));
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)) {
link_ = java.util.Collections.unmodifiableList(link_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.Rest.internal_static_parameters_ListLinkInfoResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.Rest.internal_static_parameters_ListLinkInfoResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.Rest.ListLinkInfoResponse.class, org.yamcs.protobuf.Rest.ListLinkInfoResponse.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public ListLinkInfoResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ListLinkInfoResponse(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public static final int LINK_FIELD_NUMBER = 1;
private java.util.List link_;
/**
* repeated .yamcsManagement.LinkInfo link = 1;
*/
public java.util.List getLinkList() {
return link_;
}
/**
* repeated .yamcsManagement.LinkInfo link = 1;
*/
public java.util.List extends org.yamcs.protobuf.YamcsManagement.LinkInfoOrBuilder>
getLinkOrBuilderList() {
return link_;
}
/**
* repeated .yamcsManagement.LinkInfo link = 1;
*/
public int getLinkCount() {
return link_.size();
}
/**
* repeated .yamcsManagement.LinkInfo link = 1;
*/
public org.yamcs.protobuf.YamcsManagement.LinkInfo getLink(int index) {
return link_.get(index);
}
/**
* repeated .yamcsManagement.LinkInfo link = 1;
*/
public org.yamcs.protobuf.YamcsManagement.LinkInfoOrBuilder getLinkOrBuilder(
int index) {
return link_.get(index);
}
private void initFields() {
link_ = java.util.Collections.emptyList();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
for (int i = 0; i < getLinkCount(); i++) {
if (!getLink(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 < link_.size(); i++) {
output.writeMessage(1, link_.get(i));
}
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 < link_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, link_.get(i));
}
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.Rest.ListLinkInfoResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.Rest.ListLinkInfoResponse 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.Rest.ListLinkInfoResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.Rest.ListLinkInfoResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.yamcs.protobuf.Rest.ListLinkInfoResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.yamcs.protobuf.Rest.ListLinkInfoResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.yamcs.protobuf.Rest.ListLinkInfoResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.yamcs.protobuf.Rest.ListLinkInfoResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.yamcs.protobuf.Rest.ListLinkInfoResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.yamcs.protobuf.Rest.ListLinkInfoResponse 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.Rest.ListLinkInfoResponse 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 parameters.ListLinkInfoResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:parameters.ListLinkInfoResponse)
org.yamcs.protobuf.Rest.ListLinkInfoResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.Rest.internal_static_parameters_ListLinkInfoResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.Rest.internal_static_parameters_ListLinkInfoResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.Rest.ListLinkInfoResponse.class, org.yamcs.protobuf.Rest.ListLinkInfoResponse.Builder.class);
}
// Construct using org.yamcs.protobuf.Rest.ListLinkInfoResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getLinkFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
if (linkBuilder_ == null) {
link_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
linkBuilder_.clear();
}
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.yamcs.protobuf.Rest.internal_static_parameters_ListLinkInfoResponse_descriptor;
}
public org.yamcs.protobuf.Rest.ListLinkInfoResponse getDefaultInstanceForType() {
return org.yamcs.protobuf.Rest.ListLinkInfoResponse.getDefaultInstance();
}
public org.yamcs.protobuf.Rest.ListLinkInfoResponse build() {
org.yamcs.protobuf.Rest.ListLinkInfoResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.yamcs.protobuf.Rest.ListLinkInfoResponse buildPartial() {
org.yamcs.protobuf.Rest.ListLinkInfoResponse result = new org.yamcs.protobuf.Rest.ListLinkInfoResponse(this);
int from_bitField0_ = bitField0_;
if (linkBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
link_ = java.util.Collections.unmodifiableList(link_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.link_ = link_;
} else {
result.link_ = linkBuilder_.build();
}
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.yamcs.protobuf.Rest.ListLinkInfoResponse) {
return mergeFrom((org.yamcs.protobuf.Rest.ListLinkInfoResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.yamcs.protobuf.Rest.ListLinkInfoResponse other) {
if (other == org.yamcs.protobuf.Rest.ListLinkInfoResponse.getDefaultInstance()) return this;
if (linkBuilder_ == null) {
if (!other.link_.isEmpty()) {
if (link_.isEmpty()) {
link_ = other.link_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureLinkIsMutable();
link_.addAll(other.link_);
}
onChanged();
}
} else {
if (!other.link_.isEmpty()) {
if (linkBuilder_.isEmpty()) {
linkBuilder_.dispose();
linkBuilder_ = null;
link_ = other.link_;
bitField0_ = (bitField0_ & ~0x00000001);
linkBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getLinkFieldBuilder() : null;
} else {
linkBuilder_.addAllMessages(other.link_);
}
}
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
for (int i = 0; i < getLinkCount(); i++) {
if (!getLink(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.Rest.ListLinkInfoResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.yamcs.protobuf.Rest.ListLinkInfoResponse) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List link_ =
java.util.Collections.emptyList();
private void ensureLinkIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
link_ = new java.util.ArrayList(link_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
org.yamcs.protobuf.YamcsManagement.LinkInfo, org.yamcs.protobuf.YamcsManagement.LinkInfo.Builder, org.yamcs.protobuf.YamcsManagement.LinkInfoOrBuilder> linkBuilder_;
/**
* repeated .yamcsManagement.LinkInfo link = 1;
*/
public java.util.List getLinkList() {
if (linkBuilder_ == null) {
return java.util.Collections.unmodifiableList(link_);
} else {
return linkBuilder_.getMessageList();
}
}
/**
* repeated .yamcsManagement.LinkInfo link = 1;
*/
public int getLinkCount() {
if (linkBuilder_ == null) {
return link_.size();
} else {
return linkBuilder_.getCount();
}
}
/**
* repeated .yamcsManagement.LinkInfo link = 1;
*/
public org.yamcs.protobuf.YamcsManagement.LinkInfo getLink(int index) {
if (linkBuilder_ == null) {
return link_.get(index);
} else {
return linkBuilder_.getMessage(index);
}
}
/**
* repeated .yamcsManagement.LinkInfo link = 1;
*/
public Builder setLink(
int index, org.yamcs.protobuf.YamcsManagement.LinkInfo value) {
if (linkBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureLinkIsMutable();
link_.set(index, value);
onChanged();
} else {
linkBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .yamcsManagement.LinkInfo link = 1;
*/
public Builder setLink(
int index, org.yamcs.protobuf.YamcsManagement.LinkInfo.Builder builderForValue) {
if (linkBuilder_ == null) {
ensureLinkIsMutable();
link_.set(index, builderForValue.build());
onChanged();
} else {
linkBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .yamcsManagement.LinkInfo link = 1;
*/
public Builder addLink(org.yamcs.protobuf.YamcsManagement.LinkInfo value) {
if (linkBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureLinkIsMutable();
link_.add(value);
onChanged();
} else {
linkBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .yamcsManagement.LinkInfo link = 1;
*/
public Builder addLink(
int index, org.yamcs.protobuf.YamcsManagement.LinkInfo value) {
if (linkBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureLinkIsMutable();
link_.add(index, value);
onChanged();
} else {
linkBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .yamcsManagement.LinkInfo link = 1;
*/
public Builder addLink(
org.yamcs.protobuf.YamcsManagement.LinkInfo.Builder builderForValue) {
if (linkBuilder_ == null) {
ensureLinkIsMutable();
link_.add(builderForValue.build());
onChanged();
} else {
linkBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .yamcsManagement.LinkInfo link = 1;
*/
public Builder addLink(
int index, org.yamcs.protobuf.YamcsManagement.LinkInfo.Builder builderForValue) {
if (linkBuilder_ == null) {
ensureLinkIsMutable();
link_.add(index, builderForValue.build());
onChanged();
} else {
linkBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .yamcsManagement.LinkInfo link = 1;
*/
public Builder addAllLink(
java.lang.Iterable extends org.yamcs.protobuf.YamcsManagement.LinkInfo> values) {
if (linkBuilder_ == null) {
ensureLinkIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, link_);
onChanged();
} else {
linkBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .yamcsManagement.LinkInfo link = 1;
*/
public Builder clearLink() {
if (linkBuilder_ == null) {
link_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
linkBuilder_.clear();
}
return this;
}
/**
* repeated .yamcsManagement.LinkInfo link = 1;
*/
public Builder removeLink(int index) {
if (linkBuilder_ == null) {
ensureLinkIsMutable();
link_.remove(index);
onChanged();
} else {
linkBuilder_.remove(index);
}
return this;
}
/**
* repeated .yamcsManagement.LinkInfo link = 1;
*/
public org.yamcs.protobuf.YamcsManagement.LinkInfo.Builder getLinkBuilder(
int index) {
return getLinkFieldBuilder().getBuilder(index);
}
/**
* repeated .yamcsManagement.LinkInfo link = 1;
*/
public org.yamcs.protobuf.YamcsManagement.LinkInfoOrBuilder getLinkOrBuilder(
int index) {
if (linkBuilder_ == null) {
return link_.get(index); } else {
return linkBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .yamcsManagement.LinkInfo link = 1;
*/
public java.util.List extends org.yamcs.protobuf.YamcsManagement.LinkInfoOrBuilder>
getLinkOrBuilderList() {
if (linkBuilder_ != null) {
return linkBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(link_);
}
}
/**
* repeated .yamcsManagement.LinkInfo link = 1;
*/
public org.yamcs.protobuf.YamcsManagement.LinkInfo.Builder addLinkBuilder() {
return getLinkFieldBuilder().addBuilder(
org.yamcs.protobuf.YamcsManagement.LinkInfo.getDefaultInstance());
}
/**
* repeated .yamcsManagement.LinkInfo link = 1;
*/
public org.yamcs.protobuf.YamcsManagement.LinkInfo.Builder addLinkBuilder(
int index) {
return getLinkFieldBuilder().addBuilder(
index, org.yamcs.protobuf.YamcsManagement.LinkInfo.getDefaultInstance());
}
/**
* repeated .yamcsManagement.LinkInfo link = 1;
*/
public java.util.List
getLinkBuilderList() {
return getLinkFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
org.yamcs.protobuf.YamcsManagement.LinkInfo, org.yamcs.protobuf.YamcsManagement.LinkInfo.Builder, org.yamcs.protobuf.YamcsManagement.LinkInfoOrBuilder>
getLinkFieldBuilder() {
if (linkBuilder_ == null) {
linkBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
org.yamcs.protobuf.YamcsManagement.LinkInfo, org.yamcs.protobuf.YamcsManagement.LinkInfo.Builder, org.yamcs.protobuf.YamcsManagement.LinkInfoOrBuilder>(
link_,
((bitField0_ & 0x00000001) == 0x00000001),
getParentForChildren(),
isClean());
link_ = null;
}
return linkBuilder_;
}
// @@protoc_insertion_point(builder_scope:parameters.ListLinkInfoResponse)
}
static {
defaultInstance = new ListLinkInfoResponse(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:parameters.ListLinkInfoResponse)
}
public interface ListCommandsResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:parameters.ListCommandsResponse)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .commanding.CommandHistoryEntry entry = 1;
*/
java.util.List
getEntryList();
/**
* repeated .commanding.CommandHistoryEntry entry = 1;
*/
org.yamcs.protobuf.Commanding.CommandHistoryEntry getEntry(int index);
/**
* repeated .commanding.CommandHistoryEntry entry = 1;
*/
int getEntryCount();
/**
* repeated .commanding.CommandHistoryEntry entry = 1;
*/
java.util.List extends org.yamcs.protobuf.Commanding.CommandHistoryEntryOrBuilder>
getEntryOrBuilderList();
/**
* repeated .commanding.CommandHistoryEntry entry = 1;
*/
org.yamcs.protobuf.Commanding.CommandHistoryEntryOrBuilder getEntryOrBuilder(
int index);
}
/**
* Protobuf type {@code parameters.ListCommandsResponse}
*/
public static final class ListCommandsResponse extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:parameters.ListCommandsResponse)
ListCommandsResponseOrBuilder {
// Use ListCommandsResponse.newBuilder() to construct.
private ListCommandsResponse(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private ListCommandsResponse(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final ListCommandsResponse defaultInstance;
public static ListCommandsResponse getDefaultInstance() {
return defaultInstance;
}
public ListCommandsResponse getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ListCommandsResponse(
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)) {
entry_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
entry_.add(input.readMessage(org.yamcs.protobuf.Commanding.CommandHistoryEntry.PARSER, extensionRegistry));
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)) {
entry_ = java.util.Collections.unmodifiableList(entry_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.Rest.internal_static_parameters_ListCommandsResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.Rest.internal_static_parameters_ListCommandsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.Rest.ListCommandsResponse.class, org.yamcs.protobuf.Rest.ListCommandsResponse.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public ListCommandsResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ListCommandsResponse(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public static final int ENTRY_FIELD_NUMBER = 1;
private java.util.List entry_;
/**
* repeated .commanding.CommandHistoryEntry entry = 1;
*/
public java.util.List getEntryList() {
return entry_;
}
/**
* repeated .commanding.CommandHistoryEntry entry = 1;
*/
public java.util.List extends org.yamcs.protobuf.Commanding.CommandHistoryEntryOrBuilder>
getEntryOrBuilderList() {
return entry_;
}
/**
* repeated .commanding.CommandHistoryEntry entry = 1;
*/
public int getEntryCount() {
return entry_.size();
}
/**
* repeated .commanding.CommandHistoryEntry entry = 1;
*/
public org.yamcs.protobuf.Commanding.CommandHistoryEntry getEntry(int index) {
return entry_.get(index);
}
/**
* repeated .commanding.CommandHistoryEntry entry = 1;
*/
public org.yamcs.protobuf.Commanding.CommandHistoryEntryOrBuilder getEntryOrBuilder(
int index) {
return entry_.get(index);
}
private void initFields() {
entry_ = java.util.Collections.emptyList();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
for (int i = 0; i < getEntryCount(); i++) {
if (!getEntry(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 < entry_.size(); i++) {
output.writeMessage(1, entry_.get(i));
}
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 < entry_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, entry_.get(i));
}
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.Rest.ListCommandsResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.Rest.ListCommandsResponse 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.Rest.ListCommandsResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.Rest.ListCommandsResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.yamcs.protobuf.Rest.ListCommandsResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.yamcs.protobuf.Rest.ListCommandsResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.yamcs.protobuf.Rest.ListCommandsResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.yamcs.protobuf.Rest.ListCommandsResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.yamcs.protobuf.Rest.ListCommandsResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.yamcs.protobuf.Rest.ListCommandsResponse 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.Rest.ListCommandsResponse 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 parameters.ListCommandsResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:parameters.ListCommandsResponse)
org.yamcs.protobuf.Rest.ListCommandsResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.Rest.internal_static_parameters_ListCommandsResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.Rest.internal_static_parameters_ListCommandsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.Rest.ListCommandsResponse.class, org.yamcs.protobuf.Rest.ListCommandsResponse.Builder.class);
}
// Construct using org.yamcs.protobuf.Rest.ListCommandsResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getEntryFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
if (entryBuilder_ == null) {
entry_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
entryBuilder_.clear();
}
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.yamcs.protobuf.Rest.internal_static_parameters_ListCommandsResponse_descriptor;
}
public org.yamcs.protobuf.Rest.ListCommandsResponse getDefaultInstanceForType() {
return org.yamcs.protobuf.Rest.ListCommandsResponse.getDefaultInstance();
}
public org.yamcs.protobuf.Rest.ListCommandsResponse build() {
org.yamcs.protobuf.Rest.ListCommandsResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.yamcs.protobuf.Rest.ListCommandsResponse buildPartial() {
org.yamcs.protobuf.Rest.ListCommandsResponse result = new org.yamcs.protobuf.Rest.ListCommandsResponse(this);
int from_bitField0_ = bitField0_;
if (entryBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
entry_ = java.util.Collections.unmodifiableList(entry_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.entry_ = entry_;
} else {
result.entry_ = entryBuilder_.build();
}
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.yamcs.protobuf.Rest.ListCommandsResponse) {
return mergeFrom((org.yamcs.protobuf.Rest.ListCommandsResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.yamcs.protobuf.Rest.ListCommandsResponse other) {
if (other == org.yamcs.protobuf.Rest.ListCommandsResponse.getDefaultInstance()) return this;
if (entryBuilder_ == null) {
if (!other.entry_.isEmpty()) {
if (entry_.isEmpty()) {
entry_ = other.entry_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureEntryIsMutable();
entry_.addAll(other.entry_);
}
onChanged();
}
} else {
if (!other.entry_.isEmpty()) {
if (entryBuilder_.isEmpty()) {
entryBuilder_.dispose();
entryBuilder_ = null;
entry_ = other.entry_;
bitField0_ = (bitField0_ & ~0x00000001);
entryBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getEntryFieldBuilder() : null;
} else {
entryBuilder_.addAllMessages(other.entry_);
}
}
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
for (int i = 0; i < getEntryCount(); i++) {
if (!getEntry(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.Rest.ListCommandsResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.yamcs.protobuf.Rest.ListCommandsResponse) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List entry_ =
java.util.Collections.emptyList();
private void ensureEntryIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
entry_ = new java.util.ArrayList(entry_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
org.yamcs.protobuf.Commanding.CommandHistoryEntry, org.yamcs.protobuf.Commanding.CommandHistoryEntry.Builder, org.yamcs.protobuf.Commanding.CommandHistoryEntryOrBuilder> entryBuilder_;
/**
* repeated .commanding.CommandHistoryEntry entry = 1;
*/
public java.util.List getEntryList() {
if (entryBuilder_ == null) {
return java.util.Collections.unmodifiableList(entry_);
} else {
return entryBuilder_.getMessageList();
}
}
/**
* repeated .commanding.CommandHistoryEntry entry = 1;
*/
public int getEntryCount() {
if (entryBuilder_ == null) {
return entry_.size();
} else {
return entryBuilder_.getCount();
}
}
/**
* repeated .commanding.CommandHistoryEntry entry = 1;
*/
public org.yamcs.protobuf.Commanding.CommandHistoryEntry getEntry(int index) {
if (entryBuilder_ == null) {
return entry_.get(index);
} else {
return entryBuilder_.getMessage(index);
}
}
/**
* repeated .commanding.CommandHistoryEntry entry = 1;
*/
public Builder setEntry(
int index, org.yamcs.protobuf.Commanding.CommandHistoryEntry value) {
if (entryBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureEntryIsMutable();
entry_.set(index, value);
onChanged();
} else {
entryBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .commanding.CommandHistoryEntry entry = 1;
*/
public Builder setEntry(
int index, org.yamcs.protobuf.Commanding.CommandHistoryEntry.Builder builderForValue) {
if (entryBuilder_ == null) {
ensureEntryIsMutable();
entry_.set(index, builderForValue.build());
onChanged();
} else {
entryBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .commanding.CommandHistoryEntry entry = 1;
*/
public Builder addEntry(org.yamcs.protobuf.Commanding.CommandHistoryEntry value) {
if (entryBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureEntryIsMutable();
entry_.add(value);
onChanged();
} else {
entryBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .commanding.CommandHistoryEntry entry = 1;
*/
public Builder addEntry(
int index, org.yamcs.protobuf.Commanding.CommandHistoryEntry value) {
if (entryBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureEntryIsMutable();
entry_.add(index, value);
onChanged();
} else {
entryBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .commanding.CommandHistoryEntry entry = 1;
*/
public Builder addEntry(
org.yamcs.protobuf.Commanding.CommandHistoryEntry.Builder builderForValue) {
if (entryBuilder_ == null) {
ensureEntryIsMutable();
entry_.add(builderForValue.build());
onChanged();
} else {
entryBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .commanding.CommandHistoryEntry entry = 1;
*/
public Builder addEntry(
int index, org.yamcs.protobuf.Commanding.CommandHistoryEntry.Builder builderForValue) {
if (entryBuilder_ == null) {
ensureEntryIsMutable();
entry_.add(index, builderForValue.build());
onChanged();
} else {
entryBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .commanding.CommandHistoryEntry entry = 1;
*/
public Builder addAllEntry(
java.lang.Iterable extends org.yamcs.protobuf.Commanding.CommandHistoryEntry> values) {
if (entryBuilder_ == null) {
ensureEntryIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, entry_);
onChanged();
} else {
entryBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .commanding.CommandHistoryEntry entry = 1;
*/
public Builder clearEntry() {
if (entryBuilder_ == null) {
entry_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
entryBuilder_.clear();
}
return this;
}
/**
* repeated .commanding.CommandHistoryEntry entry = 1;
*/
public Builder removeEntry(int index) {
if (entryBuilder_ == null) {
ensureEntryIsMutable();
entry_.remove(index);
onChanged();
} else {
entryBuilder_.remove(index);
}
return this;
}
/**
* repeated .commanding.CommandHistoryEntry entry = 1;
*/
public org.yamcs.protobuf.Commanding.CommandHistoryEntry.Builder getEntryBuilder(
int index) {
return getEntryFieldBuilder().getBuilder(index);
}
/**
* repeated .commanding.CommandHistoryEntry entry = 1;
*/
public org.yamcs.protobuf.Commanding.CommandHistoryEntryOrBuilder getEntryOrBuilder(
int index) {
if (entryBuilder_ == null) {
return entry_.get(index); } else {
return entryBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .commanding.CommandHistoryEntry entry = 1;
*/
public java.util.List extends org.yamcs.protobuf.Commanding.CommandHistoryEntryOrBuilder>
getEntryOrBuilderList() {
if (entryBuilder_ != null) {
return entryBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(entry_);
}
}
/**
* repeated .commanding.CommandHistoryEntry entry = 1;
*/
public org.yamcs.protobuf.Commanding.CommandHistoryEntry.Builder addEntryBuilder() {
return getEntryFieldBuilder().addBuilder(
org.yamcs.protobuf.Commanding.CommandHistoryEntry.getDefaultInstance());
}
/**
* repeated .commanding.CommandHistoryEntry entry = 1;
*/
public org.yamcs.protobuf.Commanding.CommandHistoryEntry.Builder addEntryBuilder(
int index) {
return getEntryFieldBuilder().addBuilder(
index, org.yamcs.protobuf.Commanding.CommandHistoryEntry.getDefaultInstance());
}
/**
* repeated .commanding.CommandHistoryEntry entry = 1;
*/
public java.util.List
getEntryBuilderList() {
return getEntryFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
org.yamcs.protobuf.Commanding.CommandHistoryEntry, org.yamcs.protobuf.Commanding.CommandHistoryEntry.Builder, org.yamcs.protobuf.Commanding.CommandHistoryEntryOrBuilder>
getEntryFieldBuilder() {
if (entryBuilder_ == null) {
entryBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
org.yamcs.protobuf.Commanding.CommandHistoryEntry, org.yamcs.protobuf.Commanding.CommandHistoryEntry.Builder, org.yamcs.protobuf.Commanding.CommandHistoryEntryOrBuilder>(
entry_,
((bitField0_ & 0x00000001) == 0x00000001),
getParentForChildren(),
isClean());
entry_ = null;
}
return entryBuilder_;
}
// @@protoc_insertion_point(builder_scope:parameters.ListCommandsResponse)
}
static {
defaultInstance = new ListCommandsResponse(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:parameters.ListCommandsResponse)
}
public interface EditLinkRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:parameters.EditLinkRequest)
com.google.protobuf.MessageOrBuilder {
/**
* optional string state = 1;
*/
boolean hasState();
/**
* optional string state = 1;
*/
java.lang.String getState();
/**
* optional string state = 1;
*/
com.google.protobuf.ByteString
getStateBytes();
}
/**
* Protobuf type {@code parameters.EditLinkRequest}
*/
public static final class EditLinkRequest extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:parameters.EditLinkRequest)
EditLinkRequestOrBuilder {
// Use EditLinkRequest.newBuilder() to construct.
private EditLinkRequest(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private EditLinkRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final EditLinkRequest defaultInstance;
public static EditLinkRequest getDefaultInstance() {
return defaultInstance;
}
public EditLinkRequest getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private EditLinkRequest(
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: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
state_ = bs;
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 {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.Rest.internal_static_parameters_EditLinkRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.Rest.internal_static_parameters_EditLinkRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.Rest.EditLinkRequest.class, org.yamcs.protobuf.Rest.EditLinkRequest.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public EditLinkRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new EditLinkRequest(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
public static final int STATE_FIELD_NUMBER = 1;
private java.lang.Object state_;
/**
* optional string state = 1;
*/
public boolean hasState() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional string state = 1;
*/
public java.lang.String getState() {
java.lang.Object ref = state_;
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()) {
state_ = s;
}
return s;
}
}
/**
* optional string state = 1;
*/
public com.google.protobuf.ByteString
getStateBytes() {
java.lang.Object ref = state_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
state_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private void initFields() {
state_ = "";
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 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, getStateBytes());
}
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, getStateBytes());
}
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.Rest.EditLinkRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.Rest.EditLinkRequest 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.Rest.EditLinkRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.Rest.EditLinkRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.yamcs.protobuf.Rest.EditLinkRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.yamcs.protobuf.Rest.EditLinkRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.yamcs.protobuf.Rest.EditLinkRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.yamcs.protobuf.Rest.EditLinkRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.yamcs.protobuf.Rest.EditLinkRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.yamcs.protobuf.Rest.EditLinkRequest 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.Rest.EditLinkRequest 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 parameters.EditLinkRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:parameters.EditLinkRequest)
org.yamcs.protobuf.Rest.EditLinkRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.Rest.internal_static_parameters_EditLinkRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.Rest.internal_static_parameters_EditLinkRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.Rest.EditLinkRequest.class, org.yamcs.protobuf.Rest.EditLinkRequest.Builder.class);
}
// Construct using org.yamcs.protobuf.Rest.EditLinkRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
state_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.yamcs.protobuf.Rest.internal_static_parameters_EditLinkRequest_descriptor;
}
public org.yamcs.protobuf.Rest.EditLinkRequest getDefaultInstanceForType() {
return org.yamcs.protobuf.Rest.EditLinkRequest.getDefaultInstance();
}
public org.yamcs.protobuf.Rest.EditLinkRequest build() {
org.yamcs.protobuf.Rest.EditLinkRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.yamcs.protobuf.Rest.EditLinkRequest buildPartial() {
org.yamcs.protobuf.Rest.EditLinkRequest result = new org.yamcs.protobuf.Rest.EditLinkRequest(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.state_ = state_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.yamcs.protobuf.Rest.EditLinkRequest) {
return mergeFrom((org.yamcs.protobuf.Rest.EditLinkRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.yamcs.protobuf.Rest.EditLinkRequest other) {
if (other == org.yamcs.protobuf.Rest.EditLinkRequest.getDefaultInstance()) return this;
if (other.hasState()) {
bitField0_ |= 0x00000001;
state_ = other.state_;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.yamcs.protobuf.Rest.EditLinkRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.yamcs.protobuf.Rest.EditLinkRequest) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object state_ = "";
/**
* optional string state = 1;
*/
public boolean hasState() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional string state = 1;
*/
public java.lang.String getState() {
java.lang.Object ref = state_;
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()) {
state_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string state = 1;
*/
public com.google.protobuf.ByteString
getStateBytes() {
java.lang.Object ref = state_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
state_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string state = 1;
*/
public Builder setState(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
state_ = value;
onChanged();
return this;
}
/**
* optional string state = 1;
*/
public Builder clearState() {
bitField0_ = (bitField0_ & ~0x00000001);
state_ = getDefaultInstance().getState();
onChanged();
return this;
}
/**
* optional string state = 1;
*/
public Builder setStateBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
state_ = value;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:parameters.EditLinkRequest)
}
static {
defaultInstance = new EditLinkRequest(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:parameters.EditLinkRequest)
}
public interface EditCommandQueueRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:parameters.EditCommandQueueRequest)
com.google.protobuf.MessageOrBuilder {
/**
* optional string state = 1;
*/
boolean hasState();
/**
* optional string state = 1;
*/
java.lang.String getState();
/**
* optional string state = 1;
*/
com.google.protobuf.ByteString
getStateBytes();
}
/**
* Protobuf type {@code parameters.EditCommandQueueRequest}
*/
public static final class EditCommandQueueRequest extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:parameters.EditCommandQueueRequest)
EditCommandQueueRequestOrBuilder {
// Use EditCommandQueueRequest.newBuilder() to construct.
private EditCommandQueueRequest(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private EditCommandQueueRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final EditCommandQueueRequest defaultInstance;
public static EditCommandQueueRequest getDefaultInstance() {
return defaultInstance;
}
public EditCommandQueueRequest getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private EditCommandQueueRequest(
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: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
state_ = bs;
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 {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.Rest.internal_static_parameters_EditCommandQueueRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.Rest.internal_static_parameters_EditCommandQueueRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.Rest.EditCommandQueueRequest.class, org.yamcs.protobuf.Rest.EditCommandQueueRequest.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public EditCommandQueueRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new EditCommandQueueRequest(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
public static final int STATE_FIELD_NUMBER = 1;
private java.lang.Object state_;
/**
* optional string state = 1;
*/
public boolean hasState() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional string state = 1;
*/
public java.lang.String getState() {
java.lang.Object ref = state_;
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()) {
state_ = s;
}
return s;
}
}
/**
* optional string state = 1;
*/
public com.google.protobuf.ByteString
getStateBytes() {
java.lang.Object ref = state_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
state_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private void initFields() {
state_ = "";
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 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, getStateBytes());
}
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, getStateBytes());
}
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.Rest.EditCommandQueueRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.Rest.EditCommandQueueRequest 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.Rest.EditCommandQueueRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.Rest.EditCommandQueueRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.yamcs.protobuf.Rest.EditCommandQueueRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.yamcs.protobuf.Rest.EditCommandQueueRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.yamcs.protobuf.Rest.EditCommandQueueRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.yamcs.protobuf.Rest.EditCommandQueueRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.yamcs.protobuf.Rest.EditCommandQueueRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.yamcs.protobuf.Rest.EditCommandQueueRequest 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.Rest.EditCommandQueueRequest 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 parameters.EditCommandQueueRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:parameters.EditCommandQueueRequest)
org.yamcs.protobuf.Rest.EditCommandQueueRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.Rest.internal_static_parameters_EditCommandQueueRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.Rest.internal_static_parameters_EditCommandQueueRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.Rest.EditCommandQueueRequest.class, org.yamcs.protobuf.Rest.EditCommandQueueRequest.Builder.class);
}
// Construct using org.yamcs.protobuf.Rest.EditCommandQueueRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
state_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.yamcs.protobuf.Rest.internal_static_parameters_EditCommandQueueRequest_descriptor;
}
public org.yamcs.protobuf.Rest.EditCommandQueueRequest getDefaultInstanceForType() {
return org.yamcs.protobuf.Rest.EditCommandQueueRequest.getDefaultInstance();
}
public org.yamcs.protobuf.Rest.EditCommandQueueRequest build() {
org.yamcs.protobuf.Rest.EditCommandQueueRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.yamcs.protobuf.Rest.EditCommandQueueRequest buildPartial() {
org.yamcs.protobuf.Rest.EditCommandQueueRequest result = new org.yamcs.protobuf.Rest.EditCommandQueueRequest(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.state_ = state_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.yamcs.protobuf.Rest.EditCommandQueueRequest) {
return mergeFrom((org.yamcs.protobuf.Rest.EditCommandQueueRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.yamcs.protobuf.Rest.EditCommandQueueRequest other) {
if (other == org.yamcs.protobuf.Rest.EditCommandQueueRequest.getDefaultInstance()) return this;
if (other.hasState()) {
bitField0_ |= 0x00000001;
state_ = other.state_;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.yamcs.protobuf.Rest.EditCommandQueueRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.yamcs.protobuf.Rest.EditCommandQueueRequest) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object state_ = "";
/**
* optional string state = 1;
*/
public boolean hasState() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional string state = 1;
*/
public java.lang.String getState() {
java.lang.Object ref = state_;
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()) {
state_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
* optional string state = 1;
*/
public com.google.protobuf.ByteString
getStateBytes() {
java.lang.Object ref = state_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
state_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
* optional string state = 1;
*/
public Builder setState(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
state_ = value;
onChanged();
return this;
}
/**
* optional string state = 1;
*/
public Builder clearState() {
bitField0_ = (bitField0_ & ~0x00000001);
state_ = getDefaultInstance().getState();
onChanged();
return this;
}
/**
* optional string state = 1;
*/
public Builder setStateBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
state_ = value;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:parameters.EditCommandQueueRequest)
}
static {
defaultInstance = new EditCommandQueueRequest(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:parameters.EditCommandQueueRequest)
}
public interface ListClientsResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:parameters.ListClientsResponse)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .yamcsManagement.ClientInfo client = 1;
*/
java.util.List
getClientList();
/**
* repeated .yamcsManagement.ClientInfo client = 1;
*/
org.yamcs.protobuf.YamcsManagement.ClientInfo getClient(int index);
/**
* repeated .yamcsManagement.ClientInfo client = 1;
*/
int getClientCount();
/**
* repeated .yamcsManagement.ClientInfo client = 1;
*/
java.util.List extends org.yamcs.protobuf.YamcsManagement.ClientInfoOrBuilder>
getClientOrBuilderList();
/**
* repeated .yamcsManagement.ClientInfo client = 1;
*/
org.yamcs.protobuf.YamcsManagement.ClientInfoOrBuilder getClientOrBuilder(
int index);
}
/**
* Protobuf type {@code parameters.ListClientsResponse}
*/
public static final class ListClientsResponse extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:parameters.ListClientsResponse)
ListClientsResponseOrBuilder {
// Use ListClientsResponse.newBuilder() to construct.
private ListClientsResponse(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private ListClientsResponse(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final ListClientsResponse defaultInstance;
public static ListClientsResponse getDefaultInstance() {
return defaultInstance;
}
public ListClientsResponse getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ListClientsResponse(
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)) {
client_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
client_.add(input.readMessage(org.yamcs.protobuf.YamcsManagement.ClientInfo.PARSER, extensionRegistry));
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)) {
client_ = java.util.Collections.unmodifiableList(client_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.Rest.internal_static_parameters_ListClientsResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.Rest.internal_static_parameters_ListClientsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.Rest.ListClientsResponse.class, org.yamcs.protobuf.Rest.ListClientsResponse.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public ListClientsResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ListClientsResponse(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public static final int CLIENT_FIELD_NUMBER = 1;
private java.util.List client_;
/**
* repeated .yamcsManagement.ClientInfo client = 1;
*/
public java.util.List getClientList() {
return client_;
}
/**
* repeated .yamcsManagement.ClientInfo client = 1;
*/
public java.util.List extends org.yamcs.protobuf.YamcsManagement.ClientInfoOrBuilder>
getClientOrBuilderList() {
return client_;
}
/**
* repeated .yamcsManagement.ClientInfo client = 1;
*/
public int getClientCount() {
return client_.size();
}
/**
* repeated .yamcsManagement.ClientInfo client = 1;
*/
public org.yamcs.protobuf.YamcsManagement.ClientInfo getClient(int index) {
return client_.get(index);
}
/**
* repeated .yamcsManagement.ClientInfo client = 1;
*/
public org.yamcs.protobuf.YamcsManagement.ClientInfoOrBuilder getClientOrBuilder(
int index) {
return client_.get(index);
}
private void initFields() {
client_ = java.util.Collections.emptyList();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
for (int i = 0; i < getClientCount(); i++) {
if (!getClient(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 < client_.size(); i++) {
output.writeMessage(1, client_.get(i));
}
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 < client_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, client_.get(i));
}
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.Rest.ListClientsResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.Rest.ListClientsResponse 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.Rest.ListClientsResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.Rest.ListClientsResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.yamcs.protobuf.Rest.ListClientsResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.yamcs.protobuf.Rest.ListClientsResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.yamcs.protobuf.Rest.ListClientsResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.yamcs.protobuf.Rest.ListClientsResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.yamcs.protobuf.Rest.ListClientsResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.yamcs.protobuf.Rest.ListClientsResponse 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.Rest.ListClientsResponse 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 parameters.ListClientsResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:parameters.ListClientsResponse)
org.yamcs.protobuf.Rest.ListClientsResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.Rest.internal_static_parameters_ListClientsResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.Rest.internal_static_parameters_ListClientsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.Rest.ListClientsResponse.class, org.yamcs.protobuf.Rest.ListClientsResponse.Builder.class);
}
// Construct using org.yamcs.protobuf.Rest.ListClientsResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getClientFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
if (clientBuilder_ == null) {
client_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
clientBuilder_.clear();
}
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.yamcs.protobuf.Rest.internal_static_parameters_ListClientsResponse_descriptor;
}
public org.yamcs.protobuf.Rest.ListClientsResponse getDefaultInstanceForType() {
return org.yamcs.protobuf.Rest.ListClientsResponse.getDefaultInstance();
}
public org.yamcs.protobuf.Rest.ListClientsResponse build() {
org.yamcs.protobuf.Rest.ListClientsResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.yamcs.protobuf.Rest.ListClientsResponse buildPartial() {
org.yamcs.protobuf.Rest.ListClientsResponse result = new org.yamcs.protobuf.Rest.ListClientsResponse(this);
int from_bitField0_ = bitField0_;
if (clientBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
client_ = java.util.Collections.unmodifiableList(client_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.client_ = client_;
} else {
result.client_ = clientBuilder_.build();
}
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.yamcs.protobuf.Rest.ListClientsResponse) {
return mergeFrom((org.yamcs.protobuf.Rest.ListClientsResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.yamcs.protobuf.Rest.ListClientsResponse other) {
if (other == org.yamcs.protobuf.Rest.ListClientsResponse.getDefaultInstance()) return this;
if (clientBuilder_ == null) {
if (!other.client_.isEmpty()) {
if (client_.isEmpty()) {
client_ = other.client_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureClientIsMutable();
client_.addAll(other.client_);
}
onChanged();
}
} else {
if (!other.client_.isEmpty()) {
if (clientBuilder_.isEmpty()) {
clientBuilder_.dispose();
clientBuilder_ = null;
client_ = other.client_;
bitField0_ = (bitField0_ & ~0x00000001);
clientBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getClientFieldBuilder() : null;
} else {
clientBuilder_.addAllMessages(other.client_);
}
}
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
for (int i = 0; i < getClientCount(); i++) {
if (!getClient(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.Rest.ListClientsResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.yamcs.protobuf.Rest.ListClientsResponse) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List client_ =
java.util.Collections.emptyList();
private void ensureClientIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
client_ = new java.util.ArrayList(client_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
org.yamcs.protobuf.YamcsManagement.ClientInfo, org.yamcs.protobuf.YamcsManagement.ClientInfo.Builder, org.yamcs.protobuf.YamcsManagement.ClientInfoOrBuilder> clientBuilder_;
/**
* repeated .yamcsManagement.ClientInfo client = 1;
*/
public java.util.List getClientList() {
if (clientBuilder_ == null) {
return java.util.Collections.unmodifiableList(client_);
} else {
return clientBuilder_.getMessageList();
}
}
/**
* repeated .yamcsManagement.ClientInfo client = 1;
*/
public int getClientCount() {
if (clientBuilder_ == null) {
return client_.size();
} else {
return clientBuilder_.getCount();
}
}
/**
* repeated .yamcsManagement.ClientInfo client = 1;
*/
public org.yamcs.protobuf.YamcsManagement.ClientInfo getClient(int index) {
if (clientBuilder_ == null) {
return client_.get(index);
} else {
return clientBuilder_.getMessage(index);
}
}
/**
* repeated .yamcsManagement.ClientInfo client = 1;
*/
public Builder setClient(
int index, org.yamcs.protobuf.YamcsManagement.ClientInfo value) {
if (clientBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureClientIsMutable();
client_.set(index, value);
onChanged();
} else {
clientBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .yamcsManagement.ClientInfo client = 1;
*/
public Builder setClient(
int index, org.yamcs.protobuf.YamcsManagement.ClientInfo.Builder builderForValue) {
if (clientBuilder_ == null) {
ensureClientIsMutable();
client_.set(index, builderForValue.build());
onChanged();
} else {
clientBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .yamcsManagement.ClientInfo client = 1;
*/
public Builder addClient(org.yamcs.protobuf.YamcsManagement.ClientInfo value) {
if (clientBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureClientIsMutable();
client_.add(value);
onChanged();
} else {
clientBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .yamcsManagement.ClientInfo client = 1;
*/
public Builder addClient(
int index, org.yamcs.protobuf.YamcsManagement.ClientInfo value) {
if (clientBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureClientIsMutable();
client_.add(index, value);
onChanged();
} else {
clientBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .yamcsManagement.ClientInfo client = 1;
*/
public Builder addClient(
org.yamcs.protobuf.YamcsManagement.ClientInfo.Builder builderForValue) {
if (clientBuilder_ == null) {
ensureClientIsMutable();
client_.add(builderForValue.build());
onChanged();
} else {
clientBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .yamcsManagement.ClientInfo client = 1;
*/
public Builder addClient(
int index, org.yamcs.protobuf.YamcsManagement.ClientInfo.Builder builderForValue) {
if (clientBuilder_ == null) {
ensureClientIsMutable();
client_.add(index, builderForValue.build());
onChanged();
} else {
clientBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .yamcsManagement.ClientInfo client = 1;
*/
public Builder addAllClient(
java.lang.Iterable extends org.yamcs.protobuf.YamcsManagement.ClientInfo> values) {
if (clientBuilder_ == null) {
ensureClientIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, client_);
onChanged();
} else {
clientBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .yamcsManagement.ClientInfo client = 1;
*/
public Builder clearClient() {
if (clientBuilder_ == null) {
client_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
clientBuilder_.clear();
}
return this;
}
/**
* repeated .yamcsManagement.ClientInfo client = 1;
*/
public Builder removeClient(int index) {
if (clientBuilder_ == null) {
ensureClientIsMutable();
client_.remove(index);
onChanged();
} else {
clientBuilder_.remove(index);
}
return this;
}
/**
* repeated .yamcsManagement.ClientInfo client = 1;
*/
public org.yamcs.protobuf.YamcsManagement.ClientInfo.Builder getClientBuilder(
int index) {
return getClientFieldBuilder().getBuilder(index);
}
/**
* repeated .yamcsManagement.ClientInfo client = 1;
*/
public org.yamcs.protobuf.YamcsManagement.ClientInfoOrBuilder getClientOrBuilder(
int index) {
if (clientBuilder_ == null) {
return client_.get(index); } else {
return clientBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .yamcsManagement.ClientInfo client = 1;
*/
public java.util.List extends org.yamcs.protobuf.YamcsManagement.ClientInfoOrBuilder>
getClientOrBuilderList() {
if (clientBuilder_ != null) {
return clientBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(client_);
}
}
/**
* repeated .yamcsManagement.ClientInfo client = 1;
*/
public org.yamcs.protobuf.YamcsManagement.ClientInfo.Builder addClientBuilder() {
return getClientFieldBuilder().addBuilder(
org.yamcs.protobuf.YamcsManagement.ClientInfo.getDefaultInstance());
}
/**
* repeated .yamcsManagement.ClientInfo client = 1;
*/
public org.yamcs.protobuf.YamcsManagement.ClientInfo.Builder addClientBuilder(
int index) {
return getClientFieldBuilder().addBuilder(
index, org.yamcs.protobuf.YamcsManagement.ClientInfo.getDefaultInstance());
}
/**
* repeated .yamcsManagement.ClientInfo client = 1;
*/
public java.util.List
getClientBuilderList() {
return getClientFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
org.yamcs.protobuf.YamcsManagement.ClientInfo, org.yamcs.protobuf.YamcsManagement.ClientInfo.Builder, org.yamcs.protobuf.YamcsManagement.ClientInfoOrBuilder>
getClientFieldBuilder() {
if (clientBuilder_ == null) {
clientBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
org.yamcs.protobuf.YamcsManagement.ClientInfo, org.yamcs.protobuf.YamcsManagement.ClientInfo.Builder, org.yamcs.protobuf.YamcsManagement.ClientInfoOrBuilder>(
client_,
((bitField0_ & 0x00000001) == 0x00000001),
getParentForChildren(),
isClean());
client_ = null;
}
return clientBuilder_;
}
// @@protoc_insertion_point(builder_scope:parameters.ListClientsResponse)
}
static {
defaultInstance = new ListClientsResponse(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:parameters.ListClientsResponse)
}
public interface EditClientRequestOrBuilder extends
// @@protoc_insertion_point(interface_extends:parameters.EditClientRequest)
com.google.protobuf.MessageOrBuilder {
/**
* optional string instance = 1;
*/
boolean hasInstance();
/**
* optional string instance = 1;
*/
java.lang.String getInstance();
/**
* optional string instance = 1;
*/
com.google.protobuf.ByteString
getInstanceBytes();
/**
* optional string processor = 2;
*/
boolean hasProcessor();
/**
* optional string processor = 2;
*/
java.lang.String getProcessor();
/**
* optional string processor = 2;
*/
com.google.protobuf.ByteString
getProcessorBytes();
}
/**
* Protobuf type {@code parameters.EditClientRequest}
*/
public static final class EditClientRequest extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:parameters.EditClientRequest)
EditClientRequestOrBuilder {
// Use EditClientRequest.newBuilder() to construct.
private EditClientRequest(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private EditClientRequest(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final EditClientRequest defaultInstance;
public static EditClientRequest getDefaultInstance() {
return defaultInstance;
}
public EditClientRequest getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private EditClientRequest(
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: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
instance_ = bs;
break;
}
case 18: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000002;
processor_ = bs;
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 {
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.Rest.internal_static_parameters_EditClientRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.Rest.internal_static_parameters_EditClientRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.Rest.EditClientRequest.class, org.yamcs.protobuf.Rest.EditClientRequest.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public EditClientRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new EditClientRequest(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
private int bitField0_;
public static final int INSTANCE_FIELD_NUMBER = 1;
private java.lang.Object instance_;
/**
* optional string instance = 1;
*/
public boolean hasInstance() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional string instance = 1;
*/
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 = 1;
*/
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 = 2;
private java.lang.Object processor_;
/**
* optional string processor = 2;
*/
public boolean hasProcessor() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional string processor = 2;
*/
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 = 2;
*/
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;
}
}
private void initFields() {
instance_ = "";
processor_ = "";
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 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, getInstanceBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
output.writeBytes(2, getProcessorBytes());
}
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, getInstanceBytes());
}
if (((bitField0_ & 0x00000002) == 0x00000002)) {
size += com.google.protobuf.CodedOutputStream
.computeBytesSize(2, getProcessorBytes());
}
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.Rest.EditClientRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.Rest.EditClientRequest 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.Rest.EditClientRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.Rest.EditClientRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.yamcs.protobuf.Rest.EditClientRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.yamcs.protobuf.Rest.EditClientRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.yamcs.protobuf.Rest.EditClientRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.yamcs.protobuf.Rest.EditClientRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.yamcs.protobuf.Rest.EditClientRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.yamcs.protobuf.Rest.EditClientRequest 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.Rest.EditClientRequest 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 parameters.EditClientRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:parameters.EditClientRequest)
org.yamcs.protobuf.Rest.EditClientRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.Rest.internal_static_parameters_EditClientRequest_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.Rest.internal_static_parameters_EditClientRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.Rest.EditClientRequest.class, org.yamcs.protobuf.Rest.EditClientRequest.Builder.class);
}
// Construct using org.yamcs.protobuf.Rest.EditClientRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
instance_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
processor_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.yamcs.protobuf.Rest.internal_static_parameters_EditClientRequest_descriptor;
}
public org.yamcs.protobuf.Rest.EditClientRequest getDefaultInstanceForType() {
return org.yamcs.protobuf.Rest.EditClientRequest.getDefaultInstance();
}
public org.yamcs.protobuf.Rest.EditClientRequest build() {
org.yamcs.protobuf.Rest.EditClientRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.yamcs.protobuf.Rest.EditClientRequest buildPartial() {
org.yamcs.protobuf.Rest.EditClientRequest result = new org.yamcs.protobuf.Rest.EditClientRequest(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) == 0x00000001)) {
to_bitField0_ |= 0x00000001;
}
result.instance_ = instance_;
if (((from_bitField0_ & 0x00000002) == 0x00000002)) {
to_bitField0_ |= 0x00000002;
}
result.processor_ = processor_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.yamcs.protobuf.Rest.EditClientRequest) {
return mergeFrom((org.yamcs.protobuf.Rest.EditClientRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.yamcs.protobuf.Rest.EditClientRequest other) {
if (other == org.yamcs.protobuf.Rest.EditClientRequest.getDefaultInstance()) return this;
if (other.hasInstance()) {
bitField0_ |= 0x00000001;
instance_ = other.instance_;
onChanged();
}
if (other.hasProcessor()) {
bitField0_ |= 0x00000002;
processor_ = other.processor_;
onChanged();
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
return true;
}
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.yamcs.protobuf.Rest.EditClientRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.yamcs.protobuf.Rest.EditClientRequest) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object instance_ = "";
/**
* optional string instance = 1;
*/
public boolean hasInstance() {
return ((bitField0_ & 0x00000001) == 0x00000001);
}
/**
* optional string instance = 1;
*/
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 = 1;
*/
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 = 1;
*/
public Builder setInstance(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
instance_ = value;
onChanged();
return this;
}
/**
* optional string instance = 1;
*/
public Builder clearInstance() {
bitField0_ = (bitField0_ & ~0x00000001);
instance_ = getDefaultInstance().getInstance();
onChanged();
return this;
}
/**
* optional string instance = 1;
*/
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 = 2;
*/
public boolean hasProcessor() {
return ((bitField0_ & 0x00000002) == 0x00000002);
}
/**
* optional string processor = 2;
*/
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 = 2;
*/
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 = 2;
*/
public Builder setProcessor(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
processor_ = value;
onChanged();
return this;
}
/**
* optional string processor = 2;
*/
public Builder clearProcessor() {
bitField0_ = (bitField0_ & ~0x00000002);
processor_ = getDefaultInstance().getProcessor();
onChanged();
return this;
}
/**
* optional string processor = 2;
*/
public Builder setProcessorBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
processor_ = value;
onChanged();
return this;
}
// @@protoc_insertion_point(builder_scope:parameters.EditClientRequest)
}
static {
defaultInstance = new EditClientRequest(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:parameters.EditClientRequest)
}
public interface ListProcessorsResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:parameters.ListProcessorsResponse)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .yamcsManagement.ProcessorInfo processor = 1;
*/
java.util.List
getProcessorList();
/**
* repeated .yamcsManagement.ProcessorInfo processor = 1;
*/
org.yamcs.protobuf.YamcsManagement.ProcessorInfo getProcessor(int index);
/**
* repeated .yamcsManagement.ProcessorInfo processor = 1;
*/
int getProcessorCount();
/**
* repeated .yamcsManagement.ProcessorInfo processor = 1;
*/
java.util.List extends org.yamcs.protobuf.YamcsManagement.ProcessorInfoOrBuilder>
getProcessorOrBuilderList();
/**
* repeated .yamcsManagement.ProcessorInfo processor = 1;
*/
org.yamcs.protobuf.YamcsManagement.ProcessorInfoOrBuilder getProcessorOrBuilder(
int index);
}
/**
* Protobuf type {@code parameters.ListProcessorsResponse}
*/
public static final class ListProcessorsResponse extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:parameters.ListProcessorsResponse)
ListProcessorsResponseOrBuilder {
// Use ListProcessorsResponse.newBuilder() to construct.
private ListProcessorsResponse(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private ListProcessorsResponse(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final ListProcessorsResponse defaultInstance;
public static ListProcessorsResponse getDefaultInstance() {
return defaultInstance;
}
public ListProcessorsResponse getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ListProcessorsResponse(
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)) {
processor_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
processor_.add(input.readMessage(org.yamcs.protobuf.YamcsManagement.ProcessorInfo.PARSER, extensionRegistry));
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)) {
processor_ = java.util.Collections.unmodifiableList(processor_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.Rest.internal_static_parameters_ListProcessorsResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.Rest.internal_static_parameters_ListProcessorsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.Rest.ListProcessorsResponse.class, org.yamcs.protobuf.Rest.ListProcessorsResponse.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public ListProcessorsResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ListProcessorsResponse(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public static final int PROCESSOR_FIELD_NUMBER = 1;
private java.util.List processor_;
/**
* repeated .yamcsManagement.ProcessorInfo processor = 1;
*/
public java.util.List getProcessorList() {
return processor_;
}
/**
* repeated .yamcsManagement.ProcessorInfo processor = 1;
*/
public java.util.List extends org.yamcs.protobuf.YamcsManagement.ProcessorInfoOrBuilder>
getProcessorOrBuilderList() {
return processor_;
}
/**
* repeated .yamcsManagement.ProcessorInfo processor = 1;
*/
public int getProcessorCount() {
return processor_.size();
}
/**
* repeated .yamcsManagement.ProcessorInfo processor = 1;
*/
public org.yamcs.protobuf.YamcsManagement.ProcessorInfo getProcessor(int index) {
return processor_.get(index);
}
/**
* repeated .yamcsManagement.ProcessorInfo processor = 1;
*/
public org.yamcs.protobuf.YamcsManagement.ProcessorInfoOrBuilder getProcessorOrBuilder(
int index) {
return processor_.get(index);
}
private void initFields() {
processor_ = java.util.Collections.emptyList();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
for (int i = 0; i < getProcessorCount(); i++) {
if (!getProcessor(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 < processor_.size(); i++) {
output.writeMessage(1, processor_.get(i));
}
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 < processor_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, processor_.get(i));
}
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.Rest.ListProcessorsResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.Rest.ListProcessorsResponse 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.Rest.ListProcessorsResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.Rest.ListProcessorsResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.yamcs.protobuf.Rest.ListProcessorsResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.yamcs.protobuf.Rest.ListProcessorsResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.yamcs.protobuf.Rest.ListProcessorsResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.yamcs.protobuf.Rest.ListProcessorsResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.yamcs.protobuf.Rest.ListProcessorsResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.yamcs.protobuf.Rest.ListProcessorsResponse 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.Rest.ListProcessorsResponse 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 parameters.ListProcessorsResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:parameters.ListProcessorsResponse)
org.yamcs.protobuf.Rest.ListProcessorsResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.Rest.internal_static_parameters_ListProcessorsResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.Rest.internal_static_parameters_ListProcessorsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.Rest.ListProcessorsResponse.class, org.yamcs.protobuf.Rest.ListProcessorsResponse.Builder.class);
}
// Construct using org.yamcs.protobuf.Rest.ListProcessorsResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getProcessorFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
if (processorBuilder_ == null) {
processor_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
processorBuilder_.clear();
}
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.yamcs.protobuf.Rest.internal_static_parameters_ListProcessorsResponse_descriptor;
}
public org.yamcs.protobuf.Rest.ListProcessorsResponse getDefaultInstanceForType() {
return org.yamcs.protobuf.Rest.ListProcessorsResponse.getDefaultInstance();
}
public org.yamcs.protobuf.Rest.ListProcessorsResponse build() {
org.yamcs.protobuf.Rest.ListProcessorsResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.yamcs.protobuf.Rest.ListProcessorsResponse buildPartial() {
org.yamcs.protobuf.Rest.ListProcessorsResponse result = new org.yamcs.protobuf.Rest.ListProcessorsResponse(this);
int from_bitField0_ = bitField0_;
if (processorBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
processor_ = java.util.Collections.unmodifiableList(processor_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.processor_ = processor_;
} else {
result.processor_ = processorBuilder_.build();
}
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.yamcs.protobuf.Rest.ListProcessorsResponse) {
return mergeFrom((org.yamcs.protobuf.Rest.ListProcessorsResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.yamcs.protobuf.Rest.ListProcessorsResponse other) {
if (other == org.yamcs.protobuf.Rest.ListProcessorsResponse.getDefaultInstance()) return this;
if (processorBuilder_ == null) {
if (!other.processor_.isEmpty()) {
if (processor_.isEmpty()) {
processor_ = other.processor_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureProcessorIsMutable();
processor_.addAll(other.processor_);
}
onChanged();
}
} else {
if (!other.processor_.isEmpty()) {
if (processorBuilder_.isEmpty()) {
processorBuilder_.dispose();
processorBuilder_ = null;
processor_ = other.processor_;
bitField0_ = (bitField0_ & ~0x00000001);
processorBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getProcessorFieldBuilder() : null;
} else {
processorBuilder_.addAllMessages(other.processor_);
}
}
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
for (int i = 0; i < getProcessorCount(); i++) {
if (!getProcessor(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.Rest.ListProcessorsResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.yamcs.protobuf.Rest.ListProcessorsResponse) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List processor_ =
java.util.Collections.emptyList();
private void ensureProcessorIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
processor_ = new java.util.ArrayList(processor_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
org.yamcs.protobuf.YamcsManagement.ProcessorInfo, org.yamcs.protobuf.YamcsManagement.ProcessorInfo.Builder, org.yamcs.protobuf.YamcsManagement.ProcessorInfoOrBuilder> processorBuilder_;
/**
* repeated .yamcsManagement.ProcessorInfo processor = 1;
*/
public java.util.List getProcessorList() {
if (processorBuilder_ == null) {
return java.util.Collections.unmodifiableList(processor_);
} else {
return processorBuilder_.getMessageList();
}
}
/**
* repeated .yamcsManagement.ProcessorInfo processor = 1;
*/
public int getProcessorCount() {
if (processorBuilder_ == null) {
return processor_.size();
} else {
return processorBuilder_.getCount();
}
}
/**
* repeated .yamcsManagement.ProcessorInfo processor = 1;
*/
public org.yamcs.protobuf.YamcsManagement.ProcessorInfo getProcessor(int index) {
if (processorBuilder_ == null) {
return processor_.get(index);
} else {
return processorBuilder_.getMessage(index);
}
}
/**
* repeated .yamcsManagement.ProcessorInfo processor = 1;
*/
public Builder setProcessor(
int index, org.yamcs.protobuf.YamcsManagement.ProcessorInfo value) {
if (processorBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureProcessorIsMutable();
processor_.set(index, value);
onChanged();
} else {
processorBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .yamcsManagement.ProcessorInfo processor = 1;
*/
public Builder setProcessor(
int index, org.yamcs.protobuf.YamcsManagement.ProcessorInfo.Builder builderForValue) {
if (processorBuilder_ == null) {
ensureProcessorIsMutable();
processor_.set(index, builderForValue.build());
onChanged();
} else {
processorBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .yamcsManagement.ProcessorInfo processor = 1;
*/
public Builder addProcessor(org.yamcs.protobuf.YamcsManagement.ProcessorInfo value) {
if (processorBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureProcessorIsMutable();
processor_.add(value);
onChanged();
} else {
processorBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .yamcsManagement.ProcessorInfo processor = 1;
*/
public Builder addProcessor(
int index, org.yamcs.protobuf.YamcsManagement.ProcessorInfo value) {
if (processorBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureProcessorIsMutable();
processor_.add(index, value);
onChanged();
} else {
processorBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .yamcsManagement.ProcessorInfo processor = 1;
*/
public Builder addProcessor(
org.yamcs.protobuf.YamcsManagement.ProcessorInfo.Builder builderForValue) {
if (processorBuilder_ == null) {
ensureProcessorIsMutable();
processor_.add(builderForValue.build());
onChanged();
} else {
processorBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .yamcsManagement.ProcessorInfo processor = 1;
*/
public Builder addProcessor(
int index, org.yamcs.protobuf.YamcsManagement.ProcessorInfo.Builder builderForValue) {
if (processorBuilder_ == null) {
ensureProcessorIsMutable();
processor_.add(index, builderForValue.build());
onChanged();
} else {
processorBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .yamcsManagement.ProcessorInfo processor = 1;
*/
public Builder addAllProcessor(
java.lang.Iterable extends org.yamcs.protobuf.YamcsManagement.ProcessorInfo> values) {
if (processorBuilder_ == null) {
ensureProcessorIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, processor_);
onChanged();
} else {
processorBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .yamcsManagement.ProcessorInfo processor = 1;
*/
public Builder clearProcessor() {
if (processorBuilder_ == null) {
processor_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
processorBuilder_.clear();
}
return this;
}
/**
* repeated .yamcsManagement.ProcessorInfo processor = 1;
*/
public Builder removeProcessor(int index) {
if (processorBuilder_ == null) {
ensureProcessorIsMutable();
processor_.remove(index);
onChanged();
} else {
processorBuilder_.remove(index);
}
return this;
}
/**
* repeated .yamcsManagement.ProcessorInfo processor = 1;
*/
public org.yamcs.protobuf.YamcsManagement.ProcessorInfo.Builder getProcessorBuilder(
int index) {
return getProcessorFieldBuilder().getBuilder(index);
}
/**
* repeated .yamcsManagement.ProcessorInfo processor = 1;
*/
public org.yamcs.protobuf.YamcsManagement.ProcessorInfoOrBuilder getProcessorOrBuilder(
int index) {
if (processorBuilder_ == null) {
return processor_.get(index); } else {
return processorBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .yamcsManagement.ProcessorInfo processor = 1;
*/
public java.util.List extends org.yamcs.protobuf.YamcsManagement.ProcessorInfoOrBuilder>
getProcessorOrBuilderList() {
if (processorBuilder_ != null) {
return processorBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(processor_);
}
}
/**
* repeated .yamcsManagement.ProcessorInfo processor = 1;
*/
public org.yamcs.protobuf.YamcsManagement.ProcessorInfo.Builder addProcessorBuilder() {
return getProcessorFieldBuilder().addBuilder(
org.yamcs.protobuf.YamcsManagement.ProcessorInfo.getDefaultInstance());
}
/**
* repeated .yamcsManagement.ProcessorInfo processor = 1;
*/
public org.yamcs.protobuf.YamcsManagement.ProcessorInfo.Builder addProcessorBuilder(
int index) {
return getProcessorFieldBuilder().addBuilder(
index, org.yamcs.protobuf.YamcsManagement.ProcessorInfo.getDefaultInstance());
}
/**
* repeated .yamcsManagement.ProcessorInfo processor = 1;
*/
public java.util.List
getProcessorBuilderList() {
return getProcessorFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
org.yamcs.protobuf.YamcsManagement.ProcessorInfo, org.yamcs.protobuf.YamcsManagement.ProcessorInfo.Builder, org.yamcs.protobuf.YamcsManagement.ProcessorInfoOrBuilder>
getProcessorFieldBuilder() {
if (processorBuilder_ == null) {
processorBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
org.yamcs.protobuf.YamcsManagement.ProcessorInfo, org.yamcs.protobuf.YamcsManagement.ProcessorInfo.Builder, org.yamcs.protobuf.YamcsManagement.ProcessorInfoOrBuilder>(
processor_,
((bitField0_ & 0x00000001) == 0x00000001),
getParentForChildren(),
isClean());
processor_ = null;
}
return processorBuilder_;
}
// @@protoc_insertion_point(builder_scope:parameters.ListProcessorsResponse)
}
static {
defaultInstance = new ListProcessorsResponse(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:parameters.ListProcessorsResponse)
}
public interface ListCommandQueuesResponseOrBuilder extends
// @@protoc_insertion_point(interface_extends:parameters.ListCommandQueuesResponse)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .commanding.CommandQueueInfo queue = 1;
*/
java.util.List
getQueueList();
/**
* repeated .commanding.CommandQueueInfo queue = 1;
*/
org.yamcs.protobuf.Commanding.CommandQueueInfo getQueue(int index);
/**
* repeated .commanding.CommandQueueInfo queue = 1;
*/
int getQueueCount();
/**
* repeated .commanding.CommandQueueInfo queue = 1;
*/
java.util.List extends org.yamcs.protobuf.Commanding.CommandQueueInfoOrBuilder>
getQueueOrBuilderList();
/**
* repeated .commanding.CommandQueueInfo queue = 1;
*/
org.yamcs.protobuf.Commanding.CommandQueueInfoOrBuilder getQueueOrBuilder(
int index);
}
/**
* Protobuf type {@code parameters.ListCommandQueuesResponse}
*/
public static final class ListCommandQueuesResponse extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:parameters.ListCommandQueuesResponse)
ListCommandQueuesResponseOrBuilder {
// Use ListCommandQueuesResponse.newBuilder() to construct.
private ListCommandQueuesResponse(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private ListCommandQueuesResponse(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final ListCommandQueuesResponse defaultInstance;
public static ListCommandQueuesResponse getDefaultInstance() {
return defaultInstance;
}
public ListCommandQueuesResponse getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ListCommandQueuesResponse(
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)) {
queue_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
queue_.add(input.readMessage(org.yamcs.protobuf.Commanding.CommandQueueInfo.PARSER, extensionRegistry));
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)) {
queue_ = java.util.Collections.unmodifiableList(queue_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.Rest.internal_static_parameters_ListCommandQueuesResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.Rest.internal_static_parameters_ListCommandQueuesResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.Rest.ListCommandQueuesResponse.class, org.yamcs.protobuf.Rest.ListCommandQueuesResponse.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public ListCommandQueuesResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ListCommandQueuesResponse(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public static final int QUEUE_FIELD_NUMBER = 1;
private java.util.List queue_;
/**
* repeated .commanding.CommandQueueInfo queue = 1;
*/
public java.util.List getQueueList() {
return queue_;
}
/**
* repeated .commanding.CommandQueueInfo queue = 1;
*/
public java.util.List extends org.yamcs.protobuf.Commanding.CommandQueueInfoOrBuilder>
getQueueOrBuilderList() {
return queue_;
}
/**
* repeated .commanding.CommandQueueInfo queue = 1;
*/
public int getQueueCount() {
return queue_.size();
}
/**
* repeated .commanding.CommandQueueInfo queue = 1;
*/
public org.yamcs.protobuf.Commanding.CommandQueueInfo getQueue(int index) {
return queue_.get(index);
}
/**
* repeated .commanding.CommandQueueInfo queue = 1;
*/
public org.yamcs.protobuf.Commanding.CommandQueueInfoOrBuilder getQueueOrBuilder(
int index) {
return queue_.get(index);
}
private void initFields() {
queue_ = java.util.Collections.emptyList();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
for (int i = 0; i < getQueueCount(); i++) {
if (!getQueue(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 < queue_.size(); i++) {
output.writeMessage(1, queue_.get(i));
}
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 < queue_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, queue_.get(i));
}
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.Rest.ListCommandQueuesResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.Rest.ListCommandQueuesResponse 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.Rest.ListCommandQueuesResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.Rest.ListCommandQueuesResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.yamcs.protobuf.Rest.ListCommandQueuesResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.yamcs.protobuf.Rest.ListCommandQueuesResponse parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.yamcs.protobuf.Rest.ListCommandQueuesResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.yamcs.protobuf.Rest.ListCommandQueuesResponse parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.yamcs.protobuf.Rest.ListCommandQueuesResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.yamcs.protobuf.Rest.ListCommandQueuesResponse 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.Rest.ListCommandQueuesResponse 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 parameters.ListCommandQueuesResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:parameters.ListCommandQueuesResponse)
org.yamcs.protobuf.Rest.ListCommandQueuesResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.Rest.internal_static_parameters_ListCommandQueuesResponse_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.Rest.internal_static_parameters_ListCommandQueuesResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.Rest.ListCommandQueuesResponse.class, org.yamcs.protobuf.Rest.ListCommandQueuesResponse.Builder.class);
}
// Construct using org.yamcs.protobuf.Rest.ListCommandQueuesResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getQueueFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
if (queueBuilder_ == null) {
queue_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
queueBuilder_.clear();
}
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.yamcs.protobuf.Rest.internal_static_parameters_ListCommandQueuesResponse_descriptor;
}
public org.yamcs.protobuf.Rest.ListCommandQueuesResponse getDefaultInstanceForType() {
return org.yamcs.protobuf.Rest.ListCommandQueuesResponse.getDefaultInstance();
}
public org.yamcs.protobuf.Rest.ListCommandQueuesResponse build() {
org.yamcs.protobuf.Rest.ListCommandQueuesResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.yamcs.protobuf.Rest.ListCommandQueuesResponse buildPartial() {
org.yamcs.protobuf.Rest.ListCommandQueuesResponse result = new org.yamcs.protobuf.Rest.ListCommandQueuesResponse(this);
int from_bitField0_ = bitField0_;
if (queueBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
queue_ = java.util.Collections.unmodifiableList(queue_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.queue_ = queue_;
} else {
result.queue_ = queueBuilder_.build();
}
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.yamcs.protobuf.Rest.ListCommandQueuesResponse) {
return mergeFrom((org.yamcs.protobuf.Rest.ListCommandQueuesResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.yamcs.protobuf.Rest.ListCommandQueuesResponse other) {
if (other == org.yamcs.protobuf.Rest.ListCommandQueuesResponse.getDefaultInstance()) return this;
if (queueBuilder_ == null) {
if (!other.queue_.isEmpty()) {
if (queue_.isEmpty()) {
queue_ = other.queue_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureQueueIsMutable();
queue_.addAll(other.queue_);
}
onChanged();
}
} else {
if (!other.queue_.isEmpty()) {
if (queueBuilder_.isEmpty()) {
queueBuilder_.dispose();
queueBuilder_ = null;
queue_ = other.queue_;
bitField0_ = (bitField0_ & ~0x00000001);
queueBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getQueueFieldBuilder() : null;
} else {
queueBuilder_.addAllMessages(other.queue_);
}
}
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
for (int i = 0; i < getQueueCount(); i++) {
if (!getQueue(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.Rest.ListCommandQueuesResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.yamcs.protobuf.Rest.ListCommandQueuesResponse) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List queue_ =
java.util.Collections.emptyList();
private void ensureQueueIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
queue_ = new java.util.ArrayList(queue_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
org.yamcs.protobuf.Commanding.CommandQueueInfo, org.yamcs.protobuf.Commanding.CommandQueueInfo.Builder, org.yamcs.protobuf.Commanding.CommandQueueInfoOrBuilder> queueBuilder_;
/**
* repeated .commanding.CommandQueueInfo queue = 1;
*/
public java.util.List getQueueList() {
if (queueBuilder_ == null) {
return java.util.Collections.unmodifiableList(queue_);
} else {
return queueBuilder_.getMessageList();
}
}
/**
* repeated .commanding.CommandQueueInfo queue = 1;
*/
public int getQueueCount() {
if (queueBuilder_ == null) {
return queue_.size();
} else {
return queueBuilder_.getCount();
}
}
/**
* repeated .commanding.CommandQueueInfo queue = 1;
*/
public org.yamcs.protobuf.Commanding.CommandQueueInfo getQueue(int index) {
if (queueBuilder_ == null) {
return queue_.get(index);
} else {
return queueBuilder_.getMessage(index);
}
}
/**
* repeated .commanding.CommandQueueInfo queue = 1;
*/
public Builder setQueue(
int index, org.yamcs.protobuf.Commanding.CommandQueueInfo value) {
if (queueBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureQueueIsMutable();
queue_.set(index, value);
onChanged();
} else {
queueBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .commanding.CommandQueueInfo queue = 1;
*/
public Builder setQueue(
int index, org.yamcs.protobuf.Commanding.CommandQueueInfo.Builder builderForValue) {
if (queueBuilder_ == null) {
ensureQueueIsMutable();
queue_.set(index, builderForValue.build());
onChanged();
} else {
queueBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .commanding.CommandQueueInfo queue = 1;
*/
public Builder addQueue(org.yamcs.protobuf.Commanding.CommandQueueInfo value) {
if (queueBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureQueueIsMutable();
queue_.add(value);
onChanged();
} else {
queueBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .commanding.CommandQueueInfo queue = 1;
*/
public Builder addQueue(
int index, org.yamcs.protobuf.Commanding.CommandQueueInfo value) {
if (queueBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureQueueIsMutable();
queue_.add(index, value);
onChanged();
} else {
queueBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .commanding.CommandQueueInfo queue = 1;
*/
public Builder addQueue(
org.yamcs.protobuf.Commanding.CommandQueueInfo.Builder builderForValue) {
if (queueBuilder_ == null) {
ensureQueueIsMutable();
queue_.add(builderForValue.build());
onChanged();
} else {
queueBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .commanding.CommandQueueInfo queue = 1;
*/
public Builder addQueue(
int index, org.yamcs.protobuf.Commanding.CommandQueueInfo.Builder builderForValue) {
if (queueBuilder_ == null) {
ensureQueueIsMutable();
queue_.add(index, builderForValue.build());
onChanged();
} else {
queueBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .commanding.CommandQueueInfo queue = 1;
*/
public Builder addAllQueue(
java.lang.Iterable extends org.yamcs.protobuf.Commanding.CommandQueueInfo> values) {
if (queueBuilder_ == null) {
ensureQueueIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, queue_);
onChanged();
} else {
queueBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .commanding.CommandQueueInfo queue = 1;
*/
public Builder clearQueue() {
if (queueBuilder_ == null) {
queue_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
queueBuilder_.clear();
}
return this;
}
/**
* repeated .commanding.CommandQueueInfo queue = 1;
*/
public Builder removeQueue(int index) {
if (queueBuilder_ == null) {
ensureQueueIsMutable();
queue_.remove(index);
onChanged();
} else {
queueBuilder_.remove(index);
}
return this;
}
/**
* repeated .commanding.CommandQueueInfo queue = 1;
*/
public org.yamcs.protobuf.Commanding.CommandQueueInfo.Builder getQueueBuilder(
int index) {
return getQueueFieldBuilder().getBuilder(index);
}
/**
* repeated .commanding.CommandQueueInfo queue = 1;
*/
public org.yamcs.protobuf.Commanding.CommandQueueInfoOrBuilder getQueueOrBuilder(
int index) {
if (queueBuilder_ == null) {
return queue_.get(index); } else {
return queueBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .commanding.CommandQueueInfo queue = 1;
*/
public java.util.List extends org.yamcs.protobuf.Commanding.CommandQueueInfoOrBuilder>
getQueueOrBuilderList() {
if (queueBuilder_ != null) {
return queueBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(queue_);
}
}
/**
* repeated .commanding.CommandQueueInfo queue = 1;
*/
public org.yamcs.protobuf.Commanding.CommandQueueInfo.Builder addQueueBuilder() {
return getQueueFieldBuilder().addBuilder(
org.yamcs.protobuf.Commanding.CommandQueueInfo.getDefaultInstance());
}
/**
* repeated .commanding.CommandQueueInfo queue = 1;
*/
public org.yamcs.protobuf.Commanding.CommandQueueInfo.Builder addQueueBuilder(
int index) {
return getQueueFieldBuilder().addBuilder(
index, org.yamcs.protobuf.Commanding.CommandQueueInfo.getDefaultInstance());
}
/**
* repeated .commanding.CommandQueueInfo queue = 1;
*/
public java.util.List
getQueueBuilderList() {
return getQueueFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilder<
org.yamcs.protobuf.Commanding.CommandQueueInfo, org.yamcs.protobuf.Commanding.CommandQueueInfo.Builder, org.yamcs.protobuf.Commanding.CommandQueueInfoOrBuilder>
getQueueFieldBuilder() {
if (queueBuilder_ == null) {
queueBuilder_ = new com.google.protobuf.RepeatedFieldBuilder<
org.yamcs.protobuf.Commanding.CommandQueueInfo, org.yamcs.protobuf.Commanding.CommandQueueInfo.Builder, org.yamcs.protobuf.Commanding.CommandQueueInfoOrBuilder>(
queue_,
((bitField0_ & 0x00000001) == 0x00000001),
getParentForChildren(),
isClean());
queue_ = null;
}
return queueBuilder_;
}
// @@protoc_insertion_point(builder_scope:parameters.ListCommandQueuesResponse)
}
static {
defaultInstance = new ListCommandQueuesResponse(true);
defaultInstance.initFields();
}
// @@protoc_insertion_point(class_scope:parameters.ListCommandQueuesResponse)
}
public interface ListCommandQueueEntriesOrBuilder extends
// @@protoc_insertion_point(interface_extends:parameters.ListCommandQueueEntries)
com.google.protobuf.MessageOrBuilder {
/**
* repeated .commanding.CommandQueueEntry entry = 1;
*/
java.util.List
getEntryList();
/**
* repeated .commanding.CommandQueueEntry entry = 1;
*/
org.yamcs.protobuf.Commanding.CommandQueueEntry getEntry(int index);
/**
* repeated .commanding.CommandQueueEntry entry = 1;
*/
int getEntryCount();
/**
* repeated .commanding.CommandQueueEntry entry = 1;
*/
java.util.List extends org.yamcs.protobuf.Commanding.CommandQueueEntryOrBuilder>
getEntryOrBuilderList();
/**
* repeated .commanding.CommandQueueEntry entry = 1;
*/
org.yamcs.protobuf.Commanding.CommandQueueEntryOrBuilder getEntryOrBuilder(
int index);
}
/**
* Protobuf type {@code parameters.ListCommandQueueEntries}
*/
public static final class ListCommandQueueEntries extends
com.google.protobuf.GeneratedMessage implements
// @@protoc_insertion_point(message_implements:parameters.ListCommandQueueEntries)
ListCommandQueueEntriesOrBuilder {
// Use ListCommandQueueEntries.newBuilder() to construct.
private ListCommandQueueEntries(com.google.protobuf.GeneratedMessage.Builder> builder) {
super(builder);
this.unknownFields = builder.getUnknownFields();
}
private ListCommandQueueEntries(boolean noInit) { this.unknownFields = com.google.protobuf.UnknownFieldSet.getDefaultInstance(); }
private static final ListCommandQueueEntries defaultInstance;
public static ListCommandQueueEntries getDefaultInstance() {
return defaultInstance;
}
public ListCommandQueueEntries getDefaultInstanceForType() {
return defaultInstance;
}
private final com.google.protobuf.UnknownFieldSet unknownFields;
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ListCommandQueueEntries(
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)) {
entry_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
entry_.add(input.readMessage(org.yamcs.protobuf.Commanding.CommandQueueEntry.PARSER, extensionRegistry));
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)) {
entry_ = java.util.Collections.unmodifiableList(entry_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.Rest.internal_static_parameters_ListCommandQueueEntries_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.Rest.internal_static_parameters_ListCommandQueueEntries_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.Rest.ListCommandQueueEntries.class, org.yamcs.protobuf.Rest.ListCommandQueueEntries.Builder.class);
}
public static com.google.protobuf.Parser PARSER =
new com.google.protobuf.AbstractParser() {
public ListCommandQueueEntries parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ListCommandQueueEntries(input, extensionRegistry);
}
};
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
public static final int ENTRY_FIELD_NUMBER = 1;
private java.util.List entry_;
/**
* repeated .commanding.CommandQueueEntry entry = 1;
*/
public java.util.List getEntryList() {
return entry_;
}
/**
* repeated .commanding.CommandQueueEntry entry = 1;
*/
public java.util.List extends org.yamcs.protobuf.Commanding.CommandQueueEntryOrBuilder>
getEntryOrBuilderList() {
return entry_;
}
/**
* repeated .commanding.CommandQueueEntry entry = 1;
*/
public int getEntryCount() {
return entry_.size();
}
/**
* repeated .commanding.CommandQueueEntry entry = 1;
*/
public org.yamcs.protobuf.Commanding.CommandQueueEntry getEntry(int index) {
return entry_.get(index);
}
/**
* repeated .commanding.CommandQueueEntry entry = 1;
*/
public org.yamcs.protobuf.Commanding.CommandQueueEntryOrBuilder getEntryOrBuilder(
int index) {
return entry_.get(index);
}
private void initFields() {
entry_ = java.util.Collections.emptyList();
}
private byte memoizedIsInitialized = -1;
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
for (int i = 0; i < getEntryCount(); i++) {
if (!getEntry(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 < entry_.size(); i++) {
output.writeMessage(1, entry_.get(i));
}
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 < entry_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, entry_.get(i));
}
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.Rest.ListCommandQueueEntries parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.Rest.ListCommandQueueEntries 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.Rest.ListCommandQueueEntries parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.Rest.ListCommandQueueEntries parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.yamcs.protobuf.Rest.ListCommandQueueEntries parseFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.yamcs.protobuf.Rest.ListCommandQueueEntries parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseFrom(input, extensionRegistry);
}
public static org.yamcs.protobuf.Rest.ListCommandQueueEntries parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input);
}
public static org.yamcs.protobuf.Rest.ListCommandQueueEntries parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return PARSER.parseDelimitedFrom(input, extensionRegistry);
}
public static org.yamcs.protobuf.Rest.ListCommandQueueEntries parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return PARSER.parseFrom(input);
}
public static org.yamcs.protobuf.Rest.ListCommandQueueEntries 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.Rest.ListCommandQueueEntries 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 parameters.ListCommandQueueEntries}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessage.Builder implements
// @@protoc_insertion_point(builder_implements:parameters.ListCommandQueueEntries)
org.yamcs.protobuf.Rest.ListCommandQueueEntriesOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.Rest.internal_static_parameters_ListCommandQueueEntries_descriptor;
}
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.Rest.internal_static_parameters_ListCommandQueueEntries_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.Rest.ListCommandQueueEntries.class, org.yamcs.protobuf.Rest.ListCommandQueueEntries.Builder.class);
}
// Construct using org.yamcs.protobuf.Rest.ListCommandQueueEntries.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessage.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders) {
getEntryFieldBuilder();
}
}
private static Builder create() {
return new Builder();
}
public Builder clear() {
super.clear();
if (entryBuilder_ == null) {
entry_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
entryBuilder_.clear();
}
return this;
}
public Builder clone() {
return create().mergeFrom(buildPartial());
}
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.yamcs.protobuf.Rest.internal_static_parameters_ListCommandQueueEntries_descriptor;
}
public org.yamcs.protobuf.Rest.ListCommandQueueEntries getDefaultInstanceForType() {
return org.yamcs.protobuf.Rest.ListCommandQueueEntries.getDefaultInstance();
}
public org.yamcs.protobuf.Rest.ListCommandQueueEntries build() {
org.yamcs.protobuf.Rest.ListCommandQueueEntries result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
public org.yamcs.protobuf.Rest.ListCommandQueueEntries buildPartial() {
org.yamcs.protobuf.Rest.ListCommandQueueEntries result = new org.yamcs.protobuf.Rest.ListCommandQueueEntries(this);
int from_bitField0_ = bitField0_;
if (entryBuilder_ == null) {
if (((bitField0_ & 0x00000001) == 0x00000001)) {
entry_ = java.util.Collections.unmodifiableList(entry_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.entry_ = entry_;
} else {
result.entry_ = entryBuilder_.build();
}
onBuilt();
return result;
}
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.yamcs.protobuf.Rest.ListCommandQueueEntries) {
return mergeFrom((org.yamcs.protobuf.Rest.ListCommandQueueEntries)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.yamcs.protobuf.Rest.ListCommandQueueEntries other) {
if (other == org.yamcs.protobuf.Rest.ListCommandQueueEntries.getDefaultInstance()) return this;
if (entryBuilder_ == null) {
if (!other.entry_.isEmpty()) {
if (entry_.isEmpty()) {
entry_ = other.entry_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureEntryIsMutable();
entry_.addAll(other.entry_);
}
onChanged();
}
} else {
if (!other.entry_.isEmpty()) {
if (entryBuilder_.isEmpty()) {
entryBuilder_.dispose();
entryBuilder_ = null;
entry_ = other.entry_;
bitField0_ = (bitField0_ & ~0x00000001);
entryBuilder_ =
com.google.protobuf.GeneratedMessage.alwaysUseFieldBuilders ?
getEntryFieldBuilder() : null;
} else {
entryBuilder_.addAllMessages(other.entry_);
}
}
}
this.mergeUnknownFields(other.getUnknownFields());
return this;
}
public final boolean isInitialized() {
for (int i = 0; i < getEntryCount(); i++) {
if (!getEntry(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.Rest.ListCommandQueueEntries parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.yamcs.protobuf.Rest.ListCommandQueueEntries) e.getUnfinishedMessage();
throw e;
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List entry_ =
java.util.Collections.emptyList();
private void ensureEntryIsMutable() {
if (!((bitField0_ & 0x00000001) == 0x00000001)) {
entry_ = new java.util.ArrayList(entry_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilder<
org.yamcs.protobuf.Commanding.CommandQueueEntry, org.yamcs.protobuf.Commanding.CommandQueueEntry.Builder, org.yamcs.protobuf.Commanding.CommandQueueEntryOrBuilder> entryBuilder_;
/**
*