
org.yamcs.protobuf.ListItemsRequest 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/timeline/timeline.proto
package org.yamcs.protobuf;
/**
* Protobuf type {@code yamcs.protobuf.timeline.ListItemsRequest}
*/
public final class ListItemsRequest extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yamcs.protobuf.timeline.ListItemsRequest)
ListItemsRequestOrBuilder {
private static final long serialVersionUID = 0L;
// Use ListItemsRequest.newBuilder() to construct.
private ListItemsRequest(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ListItemsRequest() {
instance_ = "";
source_ = "";
next_ = "";
band_ = "";
filters_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ListItemsRequest();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ListItemsRequest(
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.ByteString bs = input.readBytes();
bitField0_ |= 0x00000002;
source_ = bs;
break;
}
case 24: {
bitField0_ |= 0x00000004;
limit_ = input.readInt32();
break;
}
case 34: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000008;
next_ = bs;
break;
}
case 42: {
com.google.protobuf.Timestamp.Builder subBuilder = null;
if (((bitField0_ & 0x00000010) != 0)) {
subBuilder = start_.toBuilder();
}
start_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(start_);
start_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000010;
break;
}
case 50: {
com.google.protobuf.Timestamp.Builder subBuilder = null;
if (((bitField0_ & 0x00000020) != 0)) {
subBuilder = stop_.toBuilder();
}
stop_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(stop_);
stop_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000020;
break;
}
case 58: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000040;
band_ = bs;
break;
}
case 66: {
if (!((mutable_bitField0_ & 0x00000080) != 0)) {
filters_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000080;
}
filters_.add(
input.readMessage(org.yamcs.protobuf.ItemFilter.PARSER, extensionRegistry));
break;
}
case 72: {
bitField0_ |= 0x00000080;
details_ = input.readBool();
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_ & 0x00000080) != 0)) {
filters_ = java.util.Collections.unmodifiableList(filters_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.TimelineProto.internal_static_yamcs_protobuf_timeline_ListItemsRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.TimelineProto.internal_static_yamcs_protobuf_timeline_ListItemsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.ListItemsRequest.class, org.yamcs.protobuf.ListItemsRequest.Builder.class);
}
private int bitField0_;
public static final int INSTANCE_FIELD_NUMBER = 1;
private volatile java.lang.Object instance_;
/**
*
*Yamcs instance name
*
*
* optional string instance = 1;
* @return Whether the instance field is set.
*/
@java.lang.Override
public boolean hasInstance() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*Yamcs instance name
*
*
* optional string instance = 1;
* @return The instance.
*/
@java.lang.Override
public java.lang.String getInstance() {
java.lang.Object ref = instance_;
if (ref instanceof java.lang.String) {
return (java.lang.String) ref;
} else {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
instance_ = s;
}
return s;
}
}
/**
*
*Yamcs instance name
*
*
* optional string instance = 1;
* @return The bytes for instance.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getInstanceBytes() {
java.lang.Object ref = instance_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
instance_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int SOURCE_FIELD_NUMBER = 2;
private volatile java.lang.Object source_;
/**
*
* Item source
*
*
* optional string source = 2;
* @return Whether the source field is set.
*/
@java.lang.Override
public boolean hasSource() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Item source
*
*
* optional string source = 2;
* @return The source.
*/
@java.lang.Override
public java.lang.String getSource() {
java.lang.Object ref = source_;
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()) {
source_ = s;
}
return s;
}
}
/**
*
* Item source
*
*
* optional string source = 2;
* @return The bytes for source.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getSourceBytes() {
java.lang.Object ref = source_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
source_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int LIMIT_FIELD_NUMBER = 3;
private int limit_;
/**
* optional int32 limit = 3;
* @return Whether the limit field is set.
*/
@java.lang.Override
public boolean hasLimit() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional int32 limit = 3;
* @return The limit.
*/
@java.lang.Override
public int getLimit() {
return limit_;
}
public static final int NEXT_FIELD_NUMBER = 4;
private volatile java.lang.Object next_;
/**
*
* Continuation token returned by a previous page response.
*
*
* optional string next = 4;
* @return Whether the next field is set.
*/
@java.lang.Override
public boolean hasNext() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* Continuation token returned by a previous page response.
*
*
* optional string next = 4;
* @return The next.
*/
@java.lang.Override
public java.lang.String getNext() {
java.lang.Object ref = next_;
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()) {
next_ = s;
}
return s;
}
}
/**
*
* Continuation token returned by a previous page response.
*
*
* optional string next = 4;
* @return The bytes for next.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getNextBytes() {
java.lang.Object ref = next_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
next_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int START_FIELD_NUMBER = 5;
private com.google.protobuf.Timestamp start_;
/**
* optional .google.protobuf.Timestamp start = 5;
* @return Whether the start field is set.
*/
@java.lang.Override
public boolean hasStart() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* optional .google.protobuf.Timestamp start = 5;
* @return The start.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getStart() {
return start_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : start_;
}
/**
* optional .google.protobuf.Timestamp start = 5;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getStartOrBuilder() {
return start_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : start_;
}
public static final int STOP_FIELD_NUMBER = 6;
private com.google.protobuf.Timestamp stop_;
/**
* optional .google.protobuf.Timestamp stop = 6;
* @return Whether the stop field is set.
*/
@java.lang.Override
public boolean hasStop() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
* optional .google.protobuf.Timestamp stop = 6;
* @return The stop.
*/
@java.lang.Override
public com.google.protobuf.Timestamp getStop() {
return stop_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : stop_;
}
/**
* optional .google.protobuf.Timestamp stop = 6;
*/
@java.lang.Override
public com.google.protobuf.TimestampOrBuilder getStopOrBuilder() {
return stop_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : stop_;
}
public static final int BAND_FIELD_NUMBER = 7;
private volatile java.lang.Object band_;
/**
*
* Use the band defined source and filter
*
*
* optional string band = 7;
* @return Whether the band field is set.
*/
@java.lang.Override
public boolean hasBand() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
*
* Use the band defined source and filter
*
*
* optional string band = 7;
* @return The band.
*/
@java.lang.Override
public java.lang.String getBand() {
java.lang.Object ref = band_;
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()) {
band_ = s;
}
return s;
}
}
/**
*
* Use the band defined source and filter
*
*
* optional string band = 7;
* @return The bytes for band.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getBandBytes() {
java.lang.Object ref = band_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
band_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
public static final int FILTERS_FIELD_NUMBER = 8;
private java.util.List filters_;
/**
*
* If the band is not specified, these filters and the source above will be used
*
*
* repeated .yamcs.protobuf.timeline.ItemFilter filters = 8;
*/
@java.lang.Override
public java.util.List getFiltersList() {
return filters_;
}
/**
*
* If the band is not specified, these filters and the source above will be used
*
*
* repeated .yamcs.protobuf.timeline.ItemFilter filters = 8;
*/
@java.lang.Override
public java.util.List extends org.yamcs.protobuf.ItemFilterOrBuilder>
getFiltersOrBuilderList() {
return filters_;
}
/**
*
* If the band is not specified, these filters and the source above will be used
*
*
* repeated .yamcs.protobuf.timeline.ItemFilter filters = 8;
*/
@java.lang.Override
public int getFiltersCount() {
return filters_.size();
}
/**
*
* If the band is not specified, these filters and the source above will be used
*
*
* repeated .yamcs.protobuf.timeline.ItemFilter filters = 8;
*/
@java.lang.Override
public org.yamcs.protobuf.ItemFilter getFilters(int index) {
return filters_.get(index);
}
/**
*
* If the band is not specified, these filters and the source above will be used
*
*
* repeated .yamcs.protobuf.timeline.ItemFilter filters = 8;
*/
@java.lang.Override
public org.yamcs.protobuf.ItemFilterOrBuilder getFiltersOrBuilder(
int index) {
return filters_.get(index);
}
public static final int DETAILS_FIELD_NUMBER = 9;
private boolean details_;
/**
*
* If true, send the items with full details
* If false, some details like the description will be omited from the listed items
*
*
* optional bool details = 9;
* @return Whether the details field is set.
*/
@java.lang.Override
public boolean hasDetails() {
return ((bitField0_ & 0x00000080) != 0);
}
/**
*
* If true, send the items with full details
* If false, some details like the description will be omited from the listed items
*
*
* optional bool details = 9;
* @return The details.
*/
@java.lang.Override
public boolean getDetails() {
return details_;
}
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)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, source_);
}
if (((bitField0_ & 0x00000004) != 0)) {
output.writeInt32(3, limit_);
}
if (((bitField0_ & 0x00000008) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 4, next_);
}
if (((bitField0_ & 0x00000010) != 0)) {
output.writeMessage(5, getStart());
}
if (((bitField0_ & 0x00000020) != 0)) {
output.writeMessage(6, getStop());
}
if (((bitField0_ & 0x00000040) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 7, band_);
}
for (int i = 0; i < filters_.size(); i++) {
output.writeMessage(8, filters_.get(i));
}
if (((bitField0_ & 0x00000080) != 0)) {
output.writeBool(9, details_);
}
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.GeneratedMessageV3.computeStringSize(2, source_);
}
if (((bitField0_ & 0x00000004) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeInt32Size(3, limit_);
}
if (((bitField0_ & 0x00000008) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, next_);
}
if (((bitField0_ & 0x00000010) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(5, getStart());
}
if (((bitField0_ & 0x00000020) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(6, getStop());
}
if (((bitField0_ & 0x00000040) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, band_);
}
for (int i = 0; i < filters_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(8, filters_.get(i));
}
if (((bitField0_ & 0x00000080) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeBoolSize(9, details_);
}
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.ListItemsRequest)) {
return super.equals(obj);
}
org.yamcs.protobuf.ListItemsRequest other = (org.yamcs.protobuf.ListItemsRequest) obj;
if (hasInstance() != other.hasInstance()) return false;
if (hasInstance()) {
if (!getInstance()
.equals(other.getInstance())) return false;
}
if (hasSource() != other.hasSource()) return false;
if (hasSource()) {
if (!getSource()
.equals(other.getSource())) return false;
}
if (hasLimit() != other.hasLimit()) return false;
if (hasLimit()) {
if (getLimit()
!= other.getLimit()) return false;
}
if (hasNext() != other.hasNext()) return false;
if (hasNext()) {
if (!getNext()
.equals(other.getNext())) 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 (hasBand() != other.hasBand()) return false;
if (hasBand()) {
if (!getBand()
.equals(other.getBand())) return false;
}
if (!getFiltersList()
.equals(other.getFiltersList())) return false;
if (hasDetails() != other.hasDetails()) return false;
if (hasDetails()) {
if (getDetails()
!= other.getDetails()) 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 (hasSource()) {
hash = (37 * hash) + SOURCE_FIELD_NUMBER;
hash = (53 * hash) + getSource().hashCode();
}
if (hasLimit()) {
hash = (37 * hash) + LIMIT_FIELD_NUMBER;
hash = (53 * hash) + getLimit();
}
if (hasNext()) {
hash = (37 * hash) + NEXT_FIELD_NUMBER;
hash = (53 * hash) + getNext().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 (hasBand()) {
hash = (37 * hash) + BAND_FIELD_NUMBER;
hash = (53 * hash) + getBand().hashCode();
}
if (getFiltersCount() > 0) {
hash = (37 * hash) + FILTERS_FIELD_NUMBER;
hash = (53 * hash) + getFiltersList().hashCode();
}
if (hasDetails()) {
hash = (37 * hash) + DETAILS_FIELD_NUMBER;
hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(
getDetails());
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.yamcs.protobuf.ListItemsRequest parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.ListItemsRequest 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.ListItemsRequest parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.ListItemsRequest 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.ListItemsRequest parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.ListItemsRequest parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.yamcs.protobuf.ListItemsRequest parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.ListItemsRequest 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.ListItemsRequest parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.ListItemsRequest 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.ListItemsRequest parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.ListItemsRequest 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.ListItemsRequest 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.timeline.ListItemsRequest}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yamcs.protobuf.timeline.ListItemsRequest)
org.yamcs.protobuf.ListItemsRequestOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.TimelineProto.internal_static_yamcs_protobuf_timeline_ListItemsRequest_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.TimelineProto.internal_static_yamcs_protobuf_timeline_ListItemsRequest_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.ListItemsRequest.class, org.yamcs.protobuf.ListItemsRequest.Builder.class);
}
// Construct using org.yamcs.protobuf.ListItemsRequest.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();
getFiltersFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
instance_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
source_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
limit_ = 0;
bitField0_ = (bitField0_ & ~0x00000004);
next_ = "";
bitField0_ = (bitField0_ & ~0x00000008);
if (startBuilder_ == null) {
start_ = null;
} else {
startBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000010);
if (stopBuilder_ == null) {
stop_ = null;
} else {
stopBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000020);
band_ = "";
bitField0_ = (bitField0_ & ~0x00000040);
if (filtersBuilder_ == null) {
filters_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000080);
} else {
filtersBuilder_.clear();
}
details_ = false;
bitField0_ = (bitField0_ & ~0x00000100);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.yamcs.protobuf.TimelineProto.internal_static_yamcs_protobuf_timeline_ListItemsRequest_descriptor;
}
@java.lang.Override
public org.yamcs.protobuf.ListItemsRequest getDefaultInstanceForType() {
return org.yamcs.protobuf.ListItemsRequest.getDefaultInstance();
}
@java.lang.Override
public org.yamcs.protobuf.ListItemsRequest build() {
org.yamcs.protobuf.ListItemsRequest result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.yamcs.protobuf.ListItemsRequest buildPartial() {
org.yamcs.protobuf.ListItemsRequest result = new org.yamcs.protobuf.ListItemsRequest(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
to_bitField0_ |= 0x00000001;
}
result.instance_ = instance_;
if (((from_bitField0_ & 0x00000002) != 0)) {
to_bitField0_ |= 0x00000002;
}
result.source_ = source_;
if (((from_bitField0_ & 0x00000004) != 0)) {
result.limit_ = limit_;
to_bitField0_ |= 0x00000004;
}
if (((from_bitField0_ & 0x00000008) != 0)) {
to_bitField0_ |= 0x00000008;
}
result.next_ = next_;
if (((from_bitField0_ & 0x00000010) != 0)) {
if (startBuilder_ == null) {
result.start_ = start_;
} else {
result.start_ = startBuilder_.build();
}
to_bitField0_ |= 0x00000010;
}
if (((from_bitField0_ & 0x00000020) != 0)) {
if (stopBuilder_ == null) {
result.stop_ = stop_;
} else {
result.stop_ = stopBuilder_.build();
}
to_bitField0_ |= 0x00000020;
}
if (((from_bitField0_ & 0x00000040) != 0)) {
to_bitField0_ |= 0x00000040;
}
result.band_ = band_;
if (filtersBuilder_ == null) {
if (((bitField0_ & 0x00000080) != 0)) {
filters_ = java.util.Collections.unmodifiableList(filters_);
bitField0_ = (bitField0_ & ~0x00000080);
}
result.filters_ = filters_;
} else {
result.filters_ = filtersBuilder_.build();
}
if (((from_bitField0_ & 0x00000100) != 0)) {
result.details_ = details_;
to_bitField0_ |= 0x00000080;
}
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.ListItemsRequest) {
return mergeFrom((org.yamcs.protobuf.ListItemsRequest)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.yamcs.protobuf.ListItemsRequest other) {
if (other == org.yamcs.protobuf.ListItemsRequest.getDefaultInstance()) return this;
if (other.hasInstance()) {
bitField0_ |= 0x00000001;
instance_ = other.instance_;
onChanged();
}
if (other.hasSource()) {
bitField0_ |= 0x00000002;
source_ = other.source_;
onChanged();
}
if (other.hasLimit()) {
setLimit(other.getLimit());
}
if (other.hasNext()) {
bitField0_ |= 0x00000008;
next_ = other.next_;
onChanged();
}
if (other.hasStart()) {
mergeStart(other.getStart());
}
if (other.hasStop()) {
mergeStop(other.getStop());
}
if (other.hasBand()) {
bitField0_ |= 0x00000040;
band_ = other.band_;
onChanged();
}
if (filtersBuilder_ == null) {
if (!other.filters_.isEmpty()) {
if (filters_.isEmpty()) {
filters_ = other.filters_;
bitField0_ = (bitField0_ & ~0x00000080);
} else {
ensureFiltersIsMutable();
filters_.addAll(other.filters_);
}
onChanged();
}
} else {
if (!other.filters_.isEmpty()) {
if (filtersBuilder_.isEmpty()) {
filtersBuilder_.dispose();
filtersBuilder_ = null;
filters_ = other.filters_;
bitField0_ = (bitField0_ & ~0x00000080);
filtersBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getFiltersFieldBuilder() : null;
} else {
filtersBuilder_.addAllMessages(other.filters_);
}
}
}
if (other.hasDetails()) {
setDetails(other.getDetails());
}
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.ListItemsRequest parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.yamcs.protobuf.ListItemsRequest) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object instance_ = "";
/**
*
*Yamcs instance name
*
*
* optional string instance = 1;
* @return Whether the instance field is set.
*/
public boolean hasInstance() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*Yamcs instance name
*
*
* optional string instance = 1;
* @return The instance.
*/
public java.lang.String getInstance() {
java.lang.Object ref = instance_;
if (!(ref instanceof java.lang.String)) {
com.google.protobuf.ByteString bs =
(com.google.protobuf.ByteString) ref;
java.lang.String s = bs.toStringUtf8();
if (bs.isValidUtf8()) {
instance_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
*Yamcs instance name
*
*
* optional string instance = 1;
* @return The bytes for instance.
*/
public com.google.protobuf.ByteString
getInstanceBytes() {
java.lang.Object ref = instance_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
instance_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
*Yamcs instance name
*
*
* optional string instance = 1;
* @param value The instance to set.
* @return This builder for chaining.
*/
public Builder setInstance(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
instance_ = value;
onChanged();
return this;
}
/**
*
*Yamcs instance name
*
*
* optional string instance = 1;
* @return This builder for chaining.
*/
public Builder clearInstance() {
bitField0_ = (bitField0_ & ~0x00000001);
instance_ = getDefaultInstance().getInstance();
onChanged();
return this;
}
/**
*
*Yamcs instance name
*
*
* optional string instance = 1;
* @param value The bytes for instance to set.
* @return This builder for chaining.
*/
public Builder setInstanceBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000001;
instance_ = value;
onChanged();
return this;
}
private java.lang.Object source_ = "";
/**
*
* Item source
*
*
* optional string source = 2;
* @return Whether the source field is set.
*/
public boolean hasSource() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Item source
*
*
* optional string source = 2;
* @return The source.
*/
public java.lang.String getSource() {
java.lang.Object ref = source_;
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()) {
source_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Item source
*
*
* optional string source = 2;
* @return The bytes for source.
*/
public com.google.protobuf.ByteString
getSourceBytes() {
java.lang.Object ref = source_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
source_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Item source
*
*
* optional string source = 2;
* @param value The source to set.
* @return This builder for chaining.
*/
public Builder setSource(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
source_ = value;
onChanged();
return this;
}
/**
*
* Item source
*
*
* optional string source = 2;
* @return This builder for chaining.
*/
public Builder clearSource() {
bitField0_ = (bitField0_ & ~0x00000002);
source_ = getDefaultInstance().getSource();
onChanged();
return this;
}
/**
*
* Item source
*
*
* optional string source = 2;
* @param value The bytes for source to set.
* @return This builder for chaining.
*/
public Builder setSourceBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000002;
source_ = value;
onChanged();
return this;
}
private int limit_ ;
/**
* optional int32 limit = 3;
* @return Whether the limit field is set.
*/
@java.lang.Override
public boolean hasLimit() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
* optional int32 limit = 3;
* @return The limit.
*/
@java.lang.Override
public int getLimit() {
return limit_;
}
/**
* optional int32 limit = 3;
* @param value The limit to set.
* @return This builder for chaining.
*/
public Builder setLimit(int value) {
bitField0_ |= 0x00000004;
limit_ = value;
onChanged();
return this;
}
/**
* optional int32 limit = 3;
* @return This builder for chaining.
*/
public Builder clearLimit() {
bitField0_ = (bitField0_ & ~0x00000004);
limit_ = 0;
onChanged();
return this;
}
private java.lang.Object next_ = "";
/**
*
* Continuation token returned by a previous page response.
*
*
* optional string next = 4;
* @return Whether the next field is set.
*/
public boolean hasNext() {
return ((bitField0_ & 0x00000008) != 0);
}
/**
*
* Continuation token returned by a previous page response.
*
*
* optional string next = 4;
* @return The next.
*/
public java.lang.String getNext() {
java.lang.Object ref = next_;
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()) {
next_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Continuation token returned by a previous page response.
*
*
* optional string next = 4;
* @return The bytes for next.
*/
public com.google.protobuf.ByteString
getNextBytes() {
java.lang.Object ref = next_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
next_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Continuation token returned by a previous page response.
*
*
* optional string next = 4;
* @param value The next to set.
* @return This builder for chaining.
*/
public Builder setNext(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
next_ = value;
onChanged();
return this;
}
/**
*
* Continuation token returned by a previous page response.
*
*
* optional string next = 4;
* @return This builder for chaining.
*/
public Builder clearNext() {
bitField0_ = (bitField0_ & ~0x00000008);
next_ = getDefaultInstance().getNext();
onChanged();
return this;
}
/**
*
* Continuation token returned by a previous page response.
*
*
* optional string next = 4;
* @param value The bytes for next to set.
* @return This builder for chaining.
*/
public Builder setNextBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000008;
next_ = 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 = 5;
* @return Whether the start field is set.
*/
public boolean hasStart() {
return ((bitField0_ & 0x00000010) != 0);
}
/**
* optional .google.protobuf.Timestamp start = 5;
* @return The start.
*/
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 = 5;
*/
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_ |= 0x00000010;
return this;
}
/**
* optional .google.protobuf.Timestamp start = 5;
*/
public Builder setStart(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (startBuilder_ == null) {
start_ = builderForValue.build();
onChanged();
} else {
startBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000010;
return this;
}
/**
* optional .google.protobuf.Timestamp start = 5;
*/
public Builder mergeStart(com.google.protobuf.Timestamp value) {
if (startBuilder_ == null) {
if (((bitField0_ & 0x00000010) != 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_ |= 0x00000010;
return this;
}
/**
* optional .google.protobuf.Timestamp start = 5;
*/
public Builder clearStart() {
if (startBuilder_ == null) {
start_ = null;
onChanged();
} else {
startBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000010);
return this;
}
/**
* optional .google.protobuf.Timestamp start = 5;
*/
public com.google.protobuf.Timestamp.Builder getStartBuilder() {
bitField0_ |= 0x00000010;
onChanged();
return getStartFieldBuilder().getBuilder();
}
/**
* optional .google.protobuf.Timestamp start = 5;
*/
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 = 5;
*/
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 = 6;
* @return Whether the stop field is set.
*/
public boolean hasStop() {
return ((bitField0_ & 0x00000020) != 0);
}
/**
* optional .google.protobuf.Timestamp stop = 6;
* @return The stop.
*/
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 = 6;
*/
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_ |= 0x00000020;
return this;
}
/**
* optional .google.protobuf.Timestamp stop = 6;
*/
public Builder setStop(
com.google.protobuf.Timestamp.Builder builderForValue) {
if (stopBuilder_ == null) {
stop_ = builderForValue.build();
onChanged();
} else {
stopBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000020;
return this;
}
/**
* optional .google.protobuf.Timestamp stop = 6;
*/
public Builder mergeStop(com.google.protobuf.Timestamp value) {
if (stopBuilder_ == null) {
if (((bitField0_ & 0x00000020) != 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_ |= 0x00000020;
return this;
}
/**
* optional .google.protobuf.Timestamp stop = 6;
*/
public Builder clearStop() {
if (stopBuilder_ == null) {
stop_ = null;
onChanged();
} else {
stopBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000020);
return this;
}
/**
* optional .google.protobuf.Timestamp stop = 6;
*/
public com.google.protobuf.Timestamp.Builder getStopBuilder() {
bitField0_ |= 0x00000020;
onChanged();
return getStopFieldBuilder().getBuilder();
}
/**
* optional .google.protobuf.Timestamp stop = 6;
*/
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 = 6;
*/
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 java.lang.Object band_ = "";
/**
*
* Use the band defined source and filter
*
*
* optional string band = 7;
* @return Whether the band field is set.
*/
public boolean hasBand() {
return ((bitField0_ & 0x00000040) != 0);
}
/**
*
* Use the band defined source and filter
*
*
* optional string band = 7;
* @return The band.
*/
public java.lang.String getBand() {
java.lang.Object ref = band_;
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()) {
band_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Use the band defined source and filter
*
*
* optional string band = 7;
* @return The bytes for band.
*/
public com.google.protobuf.ByteString
getBandBytes() {
java.lang.Object ref = band_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
band_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Use the band defined source and filter
*
*
* optional string band = 7;
* @param value The band to set.
* @return This builder for chaining.
*/
public Builder setBand(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000040;
band_ = value;
onChanged();
return this;
}
/**
*
* Use the band defined source and filter
*
*
* optional string band = 7;
* @return This builder for chaining.
*/
public Builder clearBand() {
bitField0_ = (bitField0_ & ~0x00000040);
band_ = getDefaultInstance().getBand();
onChanged();
return this;
}
/**
*
* Use the band defined source and filter
*
*
* optional string band = 7;
* @param value The bytes for band to set.
* @return This builder for chaining.
*/
public Builder setBandBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000040;
band_ = value;
onChanged();
return this;
}
private java.util.List filters_ =
java.util.Collections.emptyList();
private void ensureFiltersIsMutable() {
if (!((bitField0_ & 0x00000080) != 0)) {
filters_ = new java.util.ArrayList(filters_);
bitField0_ |= 0x00000080;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.yamcs.protobuf.ItemFilter, org.yamcs.protobuf.ItemFilter.Builder, org.yamcs.protobuf.ItemFilterOrBuilder> filtersBuilder_;
/**
*
* If the band is not specified, these filters and the source above will be used
*
*
* repeated .yamcs.protobuf.timeline.ItemFilter filters = 8;
*/
public java.util.List getFiltersList() {
if (filtersBuilder_ == null) {
return java.util.Collections.unmodifiableList(filters_);
} else {
return filtersBuilder_.getMessageList();
}
}
/**
*
* If the band is not specified, these filters and the source above will be used
*
*
* repeated .yamcs.protobuf.timeline.ItemFilter filters = 8;
*/
public int getFiltersCount() {
if (filtersBuilder_ == null) {
return filters_.size();
} else {
return filtersBuilder_.getCount();
}
}
/**
*
* If the band is not specified, these filters and the source above will be used
*
*
* repeated .yamcs.protobuf.timeline.ItemFilter filters = 8;
*/
public org.yamcs.protobuf.ItemFilter getFilters(int index) {
if (filtersBuilder_ == null) {
return filters_.get(index);
} else {
return filtersBuilder_.getMessage(index);
}
}
/**
*
* If the band is not specified, these filters and the source above will be used
*
*
* repeated .yamcs.protobuf.timeline.ItemFilter filters = 8;
*/
public Builder setFilters(
int index, org.yamcs.protobuf.ItemFilter value) {
if (filtersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFiltersIsMutable();
filters_.set(index, value);
onChanged();
} else {
filtersBuilder_.setMessage(index, value);
}
return this;
}
/**
*
* If the band is not specified, these filters and the source above will be used
*
*
* repeated .yamcs.protobuf.timeline.ItemFilter filters = 8;
*/
public Builder setFilters(
int index, org.yamcs.protobuf.ItemFilter.Builder builderForValue) {
if (filtersBuilder_ == null) {
ensureFiltersIsMutable();
filters_.set(index, builderForValue.build());
onChanged();
} else {
filtersBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
* If the band is not specified, these filters and the source above will be used
*
*
* repeated .yamcs.protobuf.timeline.ItemFilter filters = 8;
*/
public Builder addFilters(org.yamcs.protobuf.ItemFilter value) {
if (filtersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFiltersIsMutable();
filters_.add(value);
onChanged();
} else {
filtersBuilder_.addMessage(value);
}
return this;
}
/**
*
* If the band is not specified, these filters and the source above will be used
*
*
* repeated .yamcs.protobuf.timeline.ItemFilter filters = 8;
*/
public Builder addFilters(
int index, org.yamcs.protobuf.ItemFilter value) {
if (filtersBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureFiltersIsMutable();
filters_.add(index, value);
onChanged();
} else {
filtersBuilder_.addMessage(index, value);
}
return this;
}
/**
*
* If the band is not specified, these filters and the source above will be used
*
*
* repeated .yamcs.protobuf.timeline.ItemFilter filters = 8;
*/
public Builder addFilters(
org.yamcs.protobuf.ItemFilter.Builder builderForValue) {
if (filtersBuilder_ == null) {
ensureFiltersIsMutable();
filters_.add(builderForValue.build());
onChanged();
} else {
filtersBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
* If the band is not specified, these filters and the source above will be used
*
*
* repeated .yamcs.protobuf.timeline.ItemFilter filters = 8;
*/
public Builder addFilters(
int index, org.yamcs.protobuf.ItemFilter.Builder builderForValue) {
if (filtersBuilder_ == null) {
ensureFiltersIsMutable();
filters_.add(index, builderForValue.build());
onChanged();
} else {
filtersBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
* If the band is not specified, these filters and the source above will be used
*
*
* repeated .yamcs.protobuf.timeline.ItemFilter filters = 8;
*/
public Builder addAllFilters(
java.lang.Iterable extends org.yamcs.protobuf.ItemFilter> values) {
if (filtersBuilder_ == null) {
ensureFiltersIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, filters_);
onChanged();
} else {
filtersBuilder_.addAllMessages(values);
}
return this;
}
/**
*
* If the band is not specified, these filters and the source above will be used
*
*
* repeated .yamcs.protobuf.timeline.ItemFilter filters = 8;
*/
public Builder clearFilters() {
if (filtersBuilder_ == null) {
filters_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000080);
onChanged();
} else {
filtersBuilder_.clear();
}
return this;
}
/**
*
* If the band is not specified, these filters and the source above will be used
*
*
* repeated .yamcs.protobuf.timeline.ItemFilter filters = 8;
*/
public Builder removeFilters(int index) {
if (filtersBuilder_ == null) {
ensureFiltersIsMutable();
filters_.remove(index);
onChanged();
} else {
filtersBuilder_.remove(index);
}
return this;
}
/**
*
* If the band is not specified, these filters and the source above will be used
*
*
* repeated .yamcs.protobuf.timeline.ItemFilter filters = 8;
*/
public org.yamcs.protobuf.ItemFilter.Builder getFiltersBuilder(
int index) {
return getFiltersFieldBuilder().getBuilder(index);
}
/**
*
* If the band is not specified, these filters and the source above will be used
*
*
* repeated .yamcs.protobuf.timeline.ItemFilter filters = 8;
*/
public org.yamcs.protobuf.ItemFilterOrBuilder getFiltersOrBuilder(
int index) {
if (filtersBuilder_ == null) {
return filters_.get(index); } else {
return filtersBuilder_.getMessageOrBuilder(index);
}
}
/**
*
* If the band is not specified, these filters and the source above will be used
*
*
* repeated .yamcs.protobuf.timeline.ItemFilter filters = 8;
*/
public java.util.List extends org.yamcs.protobuf.ItemFilterOrBuilder>
getFiltersOrBuilderList() {
if (filtersBuilder_ != null) {
return filtersBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(filters_);
}
}
/**
*
* If the band is not specified, these filters and the source above will be used
*
*
* repeated .yamcs.protobuf.timeline.ItemFilter filters = 8;
*/
public org.yamcs.protobuf.ItemFilter.Builder addFiltersBuilder() {
return getFiltersFieldBuilder().addBuilder(
org.yamcs.protobuf.ItemFilter.getDefaultInstance());
}
/**
*
* If the band is not specified, these filters and the source above will be used
*
*
* repeated .yamcs.protobuf.timeline.ItemFilter filters = 8;
*/
public org.yamcs.protobuf.ItemFilter.Builder addFiltersBuilder(
int index) {
return getFiltersFieldBuilder().addBuilder(
index, org.yamcs.protobuf.ItemFilter.getDefaultInstance());
}
/**
*
* If the band is not specified, these filters and the source above will be used
*
*
* repeated .yamcs.protobuf.timeline.ItemFilter filters = 8;
*/
public java.util.List
getFiltersBuilderList() {
return getFiltersFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.yamcs.protobuf.ItemFilter, org.yamcs.protobuf.ItemFilter.Builder, org.yamcs.protobuf.ItemFilterOrBuilder>
getFiltersFieldBuilder() {
if (filtersBuilder_ == null) {
filtersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.yamcs.protobuf.ItemFilter, org.yamcs.protobuf.ItemFilter.Builder, org.yamcs.protobuf.ItemFilterOrBuilder>(
filters_,
((bitField0_ & 0x00000080) != 0),
getParentForChildren(),
isClean());
filters_ = null;
}
return filtersBuilder_;
}
private boolean details_ ;
/**
*
* If true, send the items with full details
* If false, some details like the description will be omited from the listed items
*
*
* optional bool details = 9;
* @return Whether the details field is set.
*/
@java.lang.Override
public boolean hasDetails() {
return ((bitField0_ & 0x00000100) != 0);
}
/**
*
* If true, send the items with full details
* If false, some details like the description will be omited from the listed items
*
*
* optional bool details = 9;
* @return The details.
*/
@java.lang.Override
public boolean getDetails() {
return details_;
}
/**
*
* If true, send the items with full details
* If false, some details like the description will be omited from the listed items
*
*
* optional bool details = 9;
* @param value The details to set.
* @return This builder for chaining.
*/
public Builder setDetails(boolean value) {
bitField0_ |= 0x00000100;
details_ = value;
onChanged();
return this;
}
/**
*
* If true, send the items with full details
* If false, some details like the description will be omited from the listed items
*
*
* optional bool details = 9;
* @return This builder for chaining.
*/
public Builder clearDetails() {
bitField0_ = (bitField0_ & ~0x00000100);
details_ = false;
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.timeline.ListItemsRequest)
}
// @@protoc_insertion_point(class_scope:yamcs.protobuf.timeline.ListItemsRequest)
private static final org.yamcs.protobuf.ListItemsRequest DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.yamcs.protobuf.ListItemsRequest();
}
public static org.yamcs.protobuf.ListItemsRequest getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ListItemsRequest parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ListItemsRequest(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.ListItemsRequest getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy