org.yamcs.protobuf.ExportParameterValuesRequest Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of yamcs-api Show documentation
Show all versions of yamcs-api Show documentation
Used by external clients to communicate with Yamcs
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: yamcs/protobuf/archive/export_service.proto
package org.yamcs.protobuf;
/**
* Protobuf type {@code yamcs.protobuf.archive.ExportParameterValuesRequest}
*/
public final class ExportParameterValuesRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yamcs.protobuf.archive.ExportParameterValuesRequest)
ExportParameterValuesRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use ExportParameterValuesRequest.newBuilder() to construct.
private ExportParameterValuesRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ExportParameterValuesRequest() {
instance_ = "";
parameters_ = com.google.protobuf.LazyStringArrayList.EMPTY;
namespace_ = "";
extra_ = com.google.protobuf.LazyStringArrayList.EMPTY;
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ExportParameterValuesRequest(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
this();
if (extensionRegistry == null) {
throw new java.lang.NullPointerException();
}
int mutable_bitField0_ = 0;
com.google.protobuf.UnknownFieldSet.Builder unknownFields =
com.google.protobuf.UnknownFieldSet.newBuilder();
try {
boolean done = false;
while (!done) {
int tag = input.readTag();
switch (tag) {
case 0:
done = true;
break;
case 10: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
instance_ = bs;
break;
}
case 18: {
com.google.protobuf.Timestamp.Builder subBuilder = null;
if (((bitField0_ & 0x00000002) != 0)) {
subBuilder = start_.toBuilder();
}
start_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(start_);
start_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000002;
break;
}
case 26: {
com.google.protobuf.Timestamp.Builder subBuilder = null;
if (((bitField0_ & 0x00000004) != 0)) {
subBuilder = stop_.toBuilder();
}
stop_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(stop_);
stop_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000004;
break;
}
case 34: {
com.google.protobuf.ByteString bs = input.readBytes();
if (!((mutable_bitField0_ & 0x00000008) != 0)) {
parameters_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000008;
}
parameters_.add(bs);
break;
}
case 42: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000008;
namespace_ = bs;
break;
}
case 50: {
com.google.protobuf.ByteString bs = input.readBytes();
if (!((mutable_bitField0_ & 0x00000020) != 0)) {
extra_ = new com.google.protobuf.LazyStringArrayList();
mutable_bitField0_ |= 0x00000020;
}
extra_.add(bs);
break;
}
default: {
if (!parseUnknownField(
input, unknownFields, extensionRegistry, tag)) {
done = true;
}
break;
}
}
}
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
throw e.setUnfinishedMessage(this);
} catch (java.io.IOException e) {
throw new com.google.protobuf.InvalidProtocolBufferException(
e).setUnfinishedMessage(this);
} finally {
if (((mutable_bitField0_ & 0x00000008) != 0)) {
parameters_ = parameters_.getUnmodifiableView();
}
if (((mutable_bitField0_ & 0x00000020) != 0)) {
extra_ = extra_.getUnmodifiableView();
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.ExportServiceProto.internal_static_yamcs_protobuf_archive_ExportParameterValuesRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.ExportServiceProto.internal_static_yamcs_protobuf_archive_ExportParameterValuesRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.ExportParameterValuesRequest.class, org.yamcs.protobuf.ExportParameterValuesRequest.Builder.class);
}
private int bitField0_;
public static final int INSTANCE_FIELD_NUMBER = 1;
private volatile java.lang.Object instance_;
/**
* optional string instance = 1;
*/
public boolean hasInstance() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* 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 START_FIELD_NUMBER = 2;
private com.google.protobuf.Timestamp start_;
/**
* optional .google.protobuf.Timestamp start = 2;
*/
public boolean hasStart() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional .google.protobuf.Timestamp start = 2;
*/
public com.google.protobuf.Timestamp getStart() {
return start_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : start_;
}
/**
* optional .google.protobuf.Timestamp start = 2;
*/
public com.google.protobuf.TimestampOrBuilder getStartOrBuilder() {
return start_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : start_;
}
public static final int STOP_FIELD_NUMBER = 3;
private com.google.protobuf.Timestamp stop_;
/**
* optional .google.protobuf.Timestamp stop = 3;
*/
public boolean hasStop() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional .google.protobuf.Timestamp stop = 3;
*/
public com.google.protobuf.Timestamp getStop() {
return stop_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : stop_;
}
/**
* optional .google.protobuf.Timestamp stop = 3;
*/
public com.google.protobuf.TimestampOrBuilder getStopOrBuilder() {
return stop_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : stop_;
}
public static final int PARAMETERS_FIELD_NUMBER = 4;
private com.google.protobuf.LazyStringList parameters_;
/**
* repeated string parameters = 4;
*/
public com.google.protobuf.ProtocolStringList
getParametersList() {
return parameters_;
}
/**
* repeated string parameters = 4;
*/
public int getParametersCount() {
return parameters_.size();
}
/**
* repeated string parameters = 4;
*/
public java.lang.String getParameters(int index) {
return parameters_.get(index);
}
/**
* repeated string parameters = 4;
*/
public com.google.protobuf.ByteString
getParametersBytes(int index) {
return parameters_.getByteString(index);
}
public static final int NAMESPACE_FIELD_NUMBER = 5;
private volatile java.lang.Object namespace_;
/**
*
* Namespace used to display parameter names in csv header. Only used when no parameter ids were specified.
*
*
* optional string namespace = 5;
*/
public boolean hasNamespace() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* Namespace used to display parameter names in csv header. Only used when no parameter ids were specified.
*
*
* optional string namespace = 5;
*/
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;
}
}
/**
*
* Namespace used to display parameter names in csv header. Only used when no parameter ids were specified.
*
*
* optional string namespace = 5;
*/
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;
}
}
public static final int EXTRA_FIELD_NUMBER = 6;
private com.google.protobuf.LazyStringList extra_;
/**
* repeated string extra = 6;
*/
public com.google.protobuf.ProtocolStringList
getExtraList() {
return extra_;
}
/**
* repeated string extra = 6;
*/
public int getExtraCount() {
return extra_.size();
}
/**
* repeated string extra = 6;
*/
public java.lang.String getExtra(int index) {
return extra_.get(index);
}
/**
* repeated string extra = 6;
*/
public com.google.protobuf.ByteString
getExtraBytes(int index) {
return extra_.getByteString(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, instance_);
}
if (((bitField0_ & 0x00000002) != 0)) {
output.writeMessage(2, getStart());
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeMessage(3, getStop());
}
for (int i = 0; i < parameters_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, parameters_.getRaw(i));
}
if (((bitField0_ & 0x00000008) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 5, namespace_);
}
for (int i = 0; i < extra_.size(); i++) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 6, extra_.getRaw(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, instance_);
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, getStart());
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(3, getStop());
}
{
int dataSize = 0;
for (int i = 0; i < parameters_.size(); i++) {
dataSize += computeStringSizeNoTag(parameters_.getRaw(i));
}
size += dataSize;
size += 1 * getParametersList().size();
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, namespace_);
}
{
int dataSize = 0;
for (int i = 0; i < extra_.size(); i++) {
dataSize += computeStringSizeNoTag(extra_.getRaw(i));
}
size += dataSize;
size += 1 * getExtraList().size();
}
size += unknownFields.getSerializedSize();
memoizedSize = size;
return size;
}
@java.lang.Override
public boolean equals(final java.lang.Object obj) {
if (obj == this) {
return true;
}
if (!(obj instanceof org.yamcs.protobuf.ExportParameterValuesRequest)) {
return super.equals(obj);
}
org.yamcs.protobuf.ExportParameterValuesRequest other = (org.yamcs.protobuf.ExportParameterValuesRequest) obj;
if (hasInstance() != other.hasInstance()) return false;
if (hasInstance()) {
if (!getInstance()
.equals(other.getInstance())) return false;
}
if (hasStart() != other.hasStart()) return false;
if (hasStart()) {
if (!getStart()
.equals(other.getStart())) return false;
}
if (hasStop() != other.hasStop()) return false;
if (hasStop()) {
if (!getStop()
.equals(other.getStop())) return false;
}
if (!getParametersList()
.equals(other.getParametersList())) return false;
if (hasNamespace() != other.hasNamespace()) return false;
if (hasNamespace()) {
if (!getNamespace()
.equals(other.getNamespace())) return false;
}
if (!getExtraList()
.equals(other.getExtraList())) return false;
if (!unknownFields.equals(other.unknownFields)) return false;
return true;
}
@java.lang.Override
public int hashCode() {
if (memoizedHashCode != 0) {
return memoizedHashCode;
}
int hash = 41;
hash = (19 * hash) + getDescriptor().hashCode();
if (hasInstance()) {
hash = (37 * hash) + INSTANCE_FIELD_NUMBER;
hash = (53 * hash) + getInstance().hashCode();
}
if (hasStart()) {
hash = (37 * hash) + START_FIELD_NUMBER;
hash = (53 * hash) + getStart().hashCode();
}
if (hasStop()) {
hash = (37 * hash) + STOP_FIELD_NUMBER;
hash = (53 * hash) + getStop().hashCode();
}
if (getParametersCount() > 0) {
hash = (37 * hash) + PARAMETERS_FIELD_NUMBER;
hash = (53 * hash) + getParametersList().hashCode();
}
if (hasNamespace()) {
hash = (37 * hash) + NAMESPACE_FIELD_NUMBER;
hash = (53 * hash) + getNamespace().hashCode();
}
if (getExtraCount() > 0) {
hash = (37 * hash) + EXTRA_FIELD_NUMBER;
hash = (53 * hash) + getExtraList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.yamcs.protobuf.ExportParameterValuesRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.ExportParameterValuesRequest parseFrom(
java.nio.ByteBuffer data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.yamcs.protobuf.ExportParameterValuesRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.ExportParameterValuesRequest 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.ExportParameterValuesRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.ExportParameterValuesRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.yamcs.protobuf.ExportParameterValuesRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.ExportParameterValuesRequest parseFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
public static org.yamcs.protobuf.ExportParameterValuesRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.ExportParameterValuesRequest parseDelimitedFrom(
java.io.InputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input, extensionRegistry);
}
public static org.yamcs.protobuf.ExportParameterValuesRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.ExportParameterValuesRequest parseFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input, extensionRegistry);
}
@java.lang.Override
public Builder newBuilderForType() { return newBuilder(); }
public static Builder newBuilder() {
return DEFAULT_INSTANCE.toBuilder();
}
public static Builder newBuilder(org.yamcs.protobuf.ExportParameterValuesRequest prototype) {
return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype);
}
@java.lang.Override
public Builder toBuilder() {
return this == DEFAULT_INSTANCE
? new Builder() : new Builder().mergeFrom(this);
}
@java.lang.Override
protected Builder newBuilderForType(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
Builder builder = new Builder(parent);
return builder;
}
/**
* Protobuf type {@code yamcs.protobuf.archive.ExportParameterValuesRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yamcs.protobuf.archive.ExportParameterValuesRequest)
org.yamcs.protobuf.ExportParameterValuesRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.ExportServiceProto.internal_static_yamcs_protobuf_archive_ExportParameterValuesRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.ExportServiceProto.internal_static_yamcs_protobuf_archive_ExportParameterValuesRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.ExportParameterValuesRequest.class, org.yamcs.protobuf.ExportParameterValuesRequest.Builder.class);
}
// Construct using org.yamcs.protobuf.ExportParameterValuesRequest.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getStartFieldBuilder();
getStopFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
instance_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
if (startBuilder_ == null) {
start_ = null;
} else {
startBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
if (stopBuilder_ == null) {
stop_ = null;
} else {
stopBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
parameters_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000008);
namespace_ = "";
bitField0_ = (bitField0_ & ~0x00000010);
extra_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000020);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.yamcs.protobuf.ExportServiceProto.internal_static_yamcs_protobuf_archive_ExportParameterValuesRequest_descriptor;
}
@java.lang.Override
public org.yamcs.protobuf.ExportParameterValuesRequest getDefaultInstanceForType() {
return org.yamcs.protobuf.ExportParameterValuesRequest.getDefaultInstance();
}
@java.lang.Override
public org.yamcs.protobuf.ExportParameterValuesRequest build() {
org.yamcs.protobuf.ExportParameterValuesRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.yamcs.protobuf.ExportParameterValuesRequest buildPartial() {
org.yamcs.protobuf.ExportParameterValuesRequest result = new org.yamcs.protobuf.ExportParameterValuesRequest(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
to_bitField0_ |= 0x00000001;
}
result.instance_ = instance_;
if (((from_bitField0_ & 0x00000002) != 0)) {
if (startBuilder_ == null) {
result.start_ = start_;
} else {
result.start_ = startBuilder_.build();
}
to_bitField0_ |= 0x00000002;
}
if (((from_bitField0_ & 0x00000004) != 0)) {
if (stopBuilder_ == null) {
result.stop_ = stop_;
} else {
result.stop_ = stopBuilder_.build();
}
to_bitField0_ |= 0x00000004;
}
if (((bitField0_ & 0x00000008) != 0)) {
parameters_ = parameters_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000008);
}
result.parameters_ = parameters_;
if (((from_bitField0_ & 0x00000010) != 0)) {
to_bitField0_ |= 0x00000008;
}
result.namespace_ = namespace_;
if (((bitField0_ & 0x00000020) != 0)) {
extra_ = extra_.getUnmodifiableView();
bitField0_ = (bitField0_ & ~0x00000020);
}
result.extra_ = extra_;
result.bitField0_ = to_bitField0_;
onBuilt();
return result;
}
@java.lang.Override
public Builder clone() {
return super.clone();
}
@java.lang.Override
public Builder setField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.setField(field, value);
}
@java.lang.Override
public Builder clearField(
com.google.protobuf.Descriptors.FieldDescriptor field) {
return super.clearField(field);
}
@java.lang.Override
public Builder clearOneof(
com.google.protobuf.Descriptors.OneofDescriptor oneof) {
return super.clearOneof(oneof);
}
@java.lang.Override
public Builder setRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
int index, java.lang.Object value) {
return super.setRepeatedField(field, index, value);
}
@java.lang.Override
public Builder addRepeatedField(
com.google.protobuf.Descriptors.FieldDescriptor field,
java.lang.Object value) {
return super.addRepeatedField(field, value);
}
@java.lang.Override
public Builder mergeFrom(com.google.protobuf.Message other) {
if (other instanceof org.yamcs.protobuf.ExportParameterValuesRequest) {
return mergeFrom((org.yamcs.protobuf.ExportParameterValuesRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.yamcs.protobuf.ExportParameterValuesRequest other) {
if (other == org.yamcs.protobuf.ExportParameterValuesRequest.getDefaultInstance()) return this;
if (other.hasInstance()) {
bitField0_ |= 0x00000001;
instance_ = other.instance_;
onChanged();
}
if (other.hasStart()) {
mergeStart(other.getStart());
}
if (other.hasStop()) {
mergeStop(other.getStop());
}
if (!other.parameters_.isEmpty()) {
if (parameters_.isEmpty()) {
parameters_ = other.parameters_;
bitField0_ = (bitField0_ & ~0x00000008);
} else {
ensureParametersIsMutable();
parameters_.addAll(other.parameters_);
}
onChanged();
}
if (other.hasNamespace()) {
bitField0_ |= 0x00000010;
namespace_ = other.namespace_;
onChanged();
}
if (!other.extra_.isEmpty()) {
if (extra_.isEmpty()) {
extra_ = other.extra_;
bitField0_ = (bitField0_ & ~0x00000020);
} else {
ensureExtraIsMutable();
extra_.addAll(other.extra_);
}
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
return true;
}
@java.lang.Override
public Builder mergeFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws java.io.IOException {
org.yamcs.protobuf.ExportParameterValuesRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.yamcs.protobuf.ExportParameterValuesRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} 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) != 0);
}
/**
* 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 com.google.protobuf.Timestamp start_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startBuilder_;
/**
* optional .google.protobuf.Timestamp start = 2;
*/
public boolean hasStart() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
* optional .google.protobuf.Timestamp start = 2;
*/
public com.google.protobuf.Timestamp getStart() {
if (startBuilder_ == null) {
return start_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : start_;
} else {
return startBuilder_.getMessage();
}
}
/**
* optional .google.protobuf.Timestamp start = 2;
*/
public Builder setStart(com.google.protobuf.Timestamp value) {
if (startBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
start_ = value;
onChanged();
} else {
startBuilder_.setMessage(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .google.protobuf.Timestamp start = 2;
*/
public Builder setStart(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (startBuilder_ == null) {
start_ = builderForValue.build();
onChanged();
} else {
startBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .google.protobuf.Timestamp start = 2;
*/
public Builder mergeStart(com.google.protobuf.Timestamp value) {
if (startBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0) &&
start_ != null &&
start_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
start_ =
com.google.protobuf.Timestamp.newBuilder(start_).mergeFrom(value).buildPartial();
} else {
start_ = value;
}
onChanged();
} else {
startBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000002;
return this;
}
/**
* optional .google.protobuf.Timestamp start = 2;
*/
public Builder clearStart() {
if (startBuilder_ == null) {
start_ = null;
onChanged();
} else {
startBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
/**
* optional .google.protobuf.Timestamp start = 2;
*/
public com.google.protobuf.Timestamp.Builder getStartBuilder() {
bitField0_ |= 0x00000002;
onChanged();
return getStartFieldBuilder().getBuilder();
}
/**
* optional .google.protobuf.Timestamp start = 2;
*/
public com.google.protobuf.TimestampOrBuilder getStartOrBuilder() {
if (startBuilder_ != null) {
return startBuilder_.getMessageOrBuilder();
} else {
return start_ == null ?
com.google.protobuf.Timestamp.getDefaultInstance() : start_;
}
}
/**
* optional .google.protobuf.Timestamp start = 2;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
getStartFieldBuilder() {
if (startBuilder_ == null) {
startBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
getStart(),
getParentForChildren(),
isClean());
start_ = null;
}
return startBuilder_;
}
private com.google.protobuf.Timestamp stop_;
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> stopBuilder_;
/**
* optional .google.protobuf.Timestamp stop = 3;
*/
public boolean hasStop() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional .google.protobuf.Timestamp stop = 3;
*/
public com.google.protobuf.Timestamp getStop() {
if (stopBuilder_ == null) {
return stop_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : stop_;
} else {
return stopBuilder_.getMessage();
}
}
/**
* optional .google.protobuf.Timestamp stop = 3;
*/
public Builder setStop(com.google.protobuf.Timestamp value) {
if (stopBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
stop_ = value;
onChanged();
} else {
stopBuilder_.setMessage(value);
}
bitField0_ |= 0x00000004;
return this;
}
/**
* optional .google.protobuf.Timestamp stop = 3;
*/
public Builder setStop(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (stopBuilder_ == null) {
stop_ = builderForValue.build();
onChanged();
} else {
stopBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000004;
return this;
}
/**
* optional .google.protobuf.Timestamp stop = 3;
*/
public Builder mergeStop(com.google.protobuf.Timestamp value) {
if (stopBuilder_ == null) {
if (((bitField0_ & 0x00000004) != 0) &&
stop_ != null &&
stop_ != com.google.protobuf.Timestamp.getDefaultInstance()) {
stop_ =
com.google.protobuf.Timestamp.newBuilder(stop_).mergeFrom(value).buildPartial();
} else {
stop_ = value;
}
onChanged();
} else {
stopBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000004;
return this;
}
/**
* optional .google.protobuf.Timestamp stop = 3;
*/
public Builder clearStop() {
if (stopBuilder_ == null) {
stop_ = null;
onChanged();
} else {
stopBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
/**
* optional .google.protobuf.Timestamp stop = 3;
*/
public com.google.protobuf.Timestamp.Builder getStopBuilder() {
bitField0_ |= 0x00000004;
onChanged();
return getStopFieldBuilder().getBuilder();
}
/**
* optional .google.protobuf.Timestamp stop = 3;
*/
public com.google.protobuf.TimestampOrBuilder getStopOrBuilder() {
if (stopBuilder_ != null) {
return stopBuilder_.getMessageOrBuilder();
} else {
return stop_ == null ?
com.google.protobuf.Timestamp.getDefaultInstance() : stop_;
}
}
/**
* optional .google.protobuf.Timestamp stop = 3;
*/
private com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>
getStopFieldBuilder() {
if (stopBuilder_ == null) {
stopBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>(
getStop(),
getParentForChildren(),
isClean());
stop_ = null;
}
return stopBuilder_;
}
private com.google.protobuf.LazyStringList parameters_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureParametersIsMutable() {
if (!((bitField0_ & 0x00000008) != 0)) {
parameters_ = new com.google.protobuf.LazyStringArrayList(parameters_);
bitField0_ |= 0x00000008;
}
}
/**
* repeated string parameters = 4;
*/
public com.google.protobuf.ProtocolStringList
getParametersList() {
return parameters_.getUnmodifiableView();
}
/**
* repeated string parameters = 4;
*/
public int getParametersCount() {
return parameters_.size();
}
/**
* repeated string parameters = 4;
*/
public java.lang.String getParameters(int index) {
return parameters_.get(index);
}
/**
* repeated string parameters = 4;
*/
public com.google.protobuf.ByteString
getParametersBytes(int index) {
return parameters_.getByteString(index);
}
/**
* repeated string parameters = 4;
*/
public Builder setParameters(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureParametersIsMutable();
parameters_.set(index, value);
onChanged();
return this;
}
/**
* repeated string parameters = 4;
*/
public Builder addParameters(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureParametersIsMutable();
parameters_.add(value);
onChanged();
return this;
}
/**
* repeated string parameters = 4;
*/
public Builder addAllParameters(
java.lang.Iterable values) {
ensureParametersIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, parameters_);
onChanged();
return this;
}
/**
* repeated string parameters = 4;
*/
public Builder clearParameters() {
parameters_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000008);
onChanged();
return this;
}
/**
* repeated string parameters = 4;
*/
public Builder addParametersBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureParametersIsMutable();
parameters_.add(value);
onChanged();
return this;
}
private java.lang.Object namespace_ = "";
/**
*
* Namespace used to display parameter names in csv header. Only used when no parameter ids were specified.
*
*
* optional string namespace = 5;
*/
public boolean hasNamespace() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
*
* Namespace used to display parameter names in csv header. Only used when no parameter ids were specified.
*
*
* optional string namespace = 5;
*/
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;
}
}
/**
*
* Namespace used to display parameter names in csv header. Only used when no parameter ids were specified.
*
*
* optional string namespace = 5;
*/
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;
}
}
/**
*
* Namespace used to display parameter names in csv header. Only used when no parameter ids were specified.
*
*
* optional string namespace = 5;
*/
public Builder setNamespace(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000010;
namespace_ = value;
onChanged();
return this;
}
/**
*
* Namespace used to display parameter names in csv header. Only used when no parameter ids were specified.
*
*
* optional string namespace = 5;
*/
public Builder clearNamespace() {
bitField0_ = (bitField0_ & ~0x00000010);
namespace_ = getDefaultInstance().getNamespace();
onChanged();
return this;
}
/**
*
* Namespace used to display parameter names in csv header. Only used when no parameter ids were specified.
*
*
* optional string namespace = 5;
*/
public Builder setNamespaceBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000010;
namespace_ = value;
onChanged();
return this;
}
private com.google.protobuf.LazyStringList extra_ = com.google.protobuf.LazyStringArrayList.EMPTY;
private void ensureExtraIsMutable() {
if (!((bitField0_ & 0x00000020) != 0)) {
extra_ = new com.google.protobuf.LazyStringArrayList(extra_);
bitField0_ |= 0x00000020;
}
}
/**
* repeated string extra = 6;
*/
public com.google.protobuf.ProtocolStringList
getExtraList() {
return extra_.getUnmodifiableView();
}
/**
* repeated string extra = 6;
*/
public int getExtraCount() {
return extra_.size();
}
/**
* repeated string extra = 6;
*/
public java.lang.String getExtra(int index) {
return extra_.get(index);
}
/**
* repeated string extra = 6;
*/
public com.google.protobuf.ByteString
getExtraBytes(int index) {
return extra_.getByteString(index);
}
/**
* repeated string extra = 6;
*/
public Builder setExtra(
int index, java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureExtraIsMutable();
extra_.set(index, value);
onChanged();
return this;
}
/**
* repeated string extra = 6;
*/
public Builder addExtra(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
ensureExtraIsMutable();
extra_.add(value);
onChanged();
return this;
}
/**
* repeated string extra = 6;
*/
public Builder addAllExtra(
java.lang.Iterable values) {
ensureExtraIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, extra_);
onChanged();
return this;
}
/**
* repeated string extra = 6;
*/
public Builder clearExtra() {
extra_ = com.google.protobuf.LazyStringArrayList.EMPTY;
bitField0_ = (bitField0_ & ~0x00000020);
onChanged();
return this;
}
/**
* repeated string extra = 6;
*/
public Builder addExtraBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
ensureExtraIsMutable();
extra_.add(value);
onChanged();
return this;
}
@java.lang.Override
public final Builder setUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.setUnknownFields(unknownFields);
}
@java.lang.Override
public final Builder mergeUnknownFields(
final com.google.protobuf.UnknownFieldSet unknownFields) {
return super.mergeUnknownFields(unknownFields);
}
// @@protoc_insertion_point(builder_scope:yamcs.protobuf.archive.ExportParameterValuesRequest)
}
// @@protoc_insertion_point(class_scope:yamcs.protobuf.archive.ExportParameterValuesRequest)
private static final org.yamcs.protobuf.ExportParameterValuesRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.yamcs.protobuf.ExportParameterValuesRequest();
}
public static org.yamcs.protobuf.ExportParameterValuesRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ExportParameterValuesRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ExportParameterValuesRequest(input, extensionRegistry);
}
};
public static com.google.protobuf.Parser parser() {
return PARSER;
}
@java.lang.Override
public com.google.protobuf.Parser getParserForType() {
return PARSER;
}
@java.lang.Override
public org.yamcs.protobuf.ExportParameterValuesRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}