
org.yamcs.protobuf.ListItemsResponse 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.ListItemsResponse}
*/
public final class ListItemsResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yamcs.protobuf.timeline.ListItemsResponse)
ListItemsResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use ListItemsResponse.newBuilder() to construct.
private ListItemsResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private ListItemsResponse() {
source_ = "";
items_ = java.util.Collections.emptyList();
continuationToken_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new ListItemsResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private ListItemsResponse(
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;
source_ = bs;
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
items_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
items_.add(
input.readMessage(org.yamcs.protobuf.TimelineItem.PARSER, extensionRegistry));
break;
}
case 26: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000002;
continuationToken_ = 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_ & 0x00000002) != 0)) {
items_ = java.util.Collections.unmodifiableList(items_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.TimelineProto.internal_static_yamcs_protobuf_timeline_ListItemsResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.TimelineProto.internal_static_yamcs_protobuf_timeline_ListItemsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.ListItemsResponse.class, org.yamcs.protobuf.ListItemsResponse.Builder.class);
}
private int bitField0_;
public static final int SOURCE_FIELD_NUMBER = 1;
private volatile java.lang.Object source_;
/**
*
*item source
*
*
* optional string source = 1;
* @return Whether the source field is set.
*/
@java.lang.Override
public boolean hasSource() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*item source
*
*
* optional string source = 1;
* @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 = 1;
* @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 ITEMS_FIELD_NUMBER = 2;
private java.util.List items_;
/**
*
*items
*
*
* repeated .yamcs.protobuf.timeline.TimelineItem items = 2;
*/
@java.lang.Override
public java.util.List getItemsList() {
return items_;
}
/**
*
*items
*
*
* repeated .yamcs.protobuf.timeline.TimelineItem items = 2;
*/
@java.lang.Override
public java.util.List extends org.yamcs.protobuf.TimelineItemOrBuilder>
getItemsOrBuilderList() {
return items_;
}
/**
*
*items
*
*
* repeated .yamcs.protobuf.timeline.TimelineItem items = 2;
*/
@java.lang.Override
public int getItemsCount() {
return items_.size();
}
/**
*
*items
*
*
* repeated .yamcs.protobuf.timeline.TimelineItem items = 2;
*/
@java.lang.Override
public org.yamcs.protobuf.TimelineItem getItems(int index) {
return items_.get(index);
}
/**
*
*items
*
*
* repeated .yamcs.protobuf.timeline.TimelineItem items = 2;
*/
@java.lang.Override
public org.yamcs.protobuf.TimelineItemOrBuilder getItemsOrBuilder(
int index) {
return items_.get(index);
}
public static final int CONTINUATIONTOKEN_FIELD_NUMBER = 3;
private volatile java.lang.Object continuationToken_;
/**
*
* Token indicating the response is only partial. More results can then
* be obtained by performing the same request (including all original
* query parameters) and setting the ``next`` parameter to this token.
*
*
* optional string continuationToken = 3;
* @return Whether the continuationToken field is set.
*/
@java.lang.Override
public boolean hasContinuationToken() {
return ((bitField0_ & 0x00000002) != 0);
}
/**
*
* Token indicating the response is only partial. More results can then
* be obtained by performing the same request (including all original
* query parameters) and setting the ``next`` parameter to this token.
*
*
* optional string continuationToken = 3;
* @return The continuationToken.
*/
@java.lang.Override
public java.lang.String getContinuationToken() {
java.lang.Object ref = continuationToken_;
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()) {
continuationToken_ = s;
}
return s;
}
}
/**
*
* Token indicating the response is only partial. More results can then
* be obtained by performing the same request (including all original
* query parameters) and setting the ``next`` parameter to this token.
*
*
* optional string continuationToken = 3;
* @return The bytes for continuationToken.
*/
@java.lang.Override
public com.google.protobuf.ByteString
getContinuationTokenBytes() {
java.lang.Object ref = continuationToken_;
if (ref instanceof java.lang.String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
continuationToken_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
if (((bitField0_ & 0x00000001) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 1, source_);
}
for (int i = 0; i < items_.size(); i++) {
output.writeMessage(2, items_.get(i));
}
if (((bitField0_ & 0x00000002) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 3, continuationToken_);
}
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, source_);
}
for (int i = 0; i < items_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, items_.get(i));
}
if (((bitField0_ & 0x00000002) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, continuationToken_);
}
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.ListItemsResponse)) {
return super.equals(obj);
}
org.yamcs.protobuf.ListItemsResponse other = (org.yamcs.protobuf.ListItemsResponse) obj;
if (hasSource() != other.hasSource()) return false;
if (hasSource()) {
if (!getSource()
.equals(other.getSource())) return false;
}
if (!getItemsList()
.equals(other.getItemsList())) return false;
if (hasContinuationToken() != other.hasContinuationToken()) return false;
if (hasContinuationToken()) {
if (!getContinuationToken()
.equals(other.getContinuationToken())) 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 (hasSource()) {
hash = (37 * hash) + SOURCE_FIELD_NUMBER;
hash = (53 * hash) + getSource().hashCode();
}
if (getItemsCount() > 0) {
hash = (37 * hash) + ITEMS_FIELD_NUMBER;
hash = (53 * hash) + getItemsList().hashCode();
}
if (hasContinuationToken()) {
hash = (37 * hash) + CONTINUATIONTOKEN_FIELD_NUMBER;
hash = (53 * hash) + getContinuationToken().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.yamcs.protobuf.ListItemsResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.ListItemsResponse 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.ListItemsResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.ListItemsResponse 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.ListItemsResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.ListItemsResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.yamcs.protobuf.ListItemsResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.ListItemsResponse 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.ListItemsResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.ListItemsResponse 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.ListItemsResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.ListItemsResponse 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.ListItemsResponse 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.ListItemsResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yamcs.protobuf.timeline.ListItemsResponse)
org.yamcs.protobuf.ListItemsResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.TimelineProto.internal_static_yamcs_protobuf_timeline_ListItemsResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.TimelineProto.internal_static_yamcs_protobuf_timeline_ListItemsResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.ListItemsResponse.class, org.yamcs.protobuf.ListItemsResponse.Builder.class);
}
// Construct using org.yamcs.protobuf.ListItemsResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getItemsFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
source_ = "";
bitField0_ = (bitField0_ & ~0x00000001);
if (itemsBuilder_ == null) {
items_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
itemsBuilder_.clear();
}
continuationToken_ = "";
bitField0_ = (bitField0_ & ~0x00000004);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.yamcs.protobuf.TimelineProto.internal_static_yamcs_protobuf_timeline_ListItemsResponse_descriptor;
}
@java.lang.Override
public org.yamcs.protobuf.ListItemsResponse getDefaultInstanceForType() {
return org.yamcs.protobuf.ListItemsResponse.getDefaultInstance();
}
@java.lang.Override
public org.yamcs.protobuf.ListItemsResponse build() {
org.yamcs.protobuf.ListItemsResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.yamcs.protobuf.ListItemsResponse buildPartial() {
org.yamcs.protobuf.ListItemsResponse result = new org.yamcs.protobuf.ListItemsResponse(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
to_bitField0_ |= 0x00000001;
}
result.source_ = source_;
if (itemsBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
items_ = java.util.Collections.unmodifiableList(items_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.items_ = items_;
} else {
result.items_ = itemsBuilder_.build();
}
if (((from_bitField0_ & 0x00000004) != 0)) {
to_bitField0_ |= 0x00000002;
}
result.continuationToken_ = continuationToken_;
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.ListItemsResponse) {
return mergeFrom((org.yamcs.protobuf.ListItemsResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.yamcs.protobuf.ListItemsResponse other) {
if (other == org.yamcs.protobuf.ListItemsResponse.getDefaultInstance()) return this;
if (other.hasSource()) {
bitField0_ |= 0x00000001;
source_ = other.source_;
onChanged();
}
if (itemsBuilder_ == null) {
if (!other.items_.isEmpty()) {
if (items_.isEmpty()) {
items_ = other.items_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureItemsIsMutable();
items_.addAll(other.items_);
}
onChanged();
}
} else {
if (!other.items_.isEmpty()) {
if (itemsBuilder_.isEmpty()) {
itemsBuilder_.dispose();
itemsBuilder_ = null;
items_ = other.items_;
bitField0_ = (bitField0_ & ~0x00000002);
itemsBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getItemsFieldBuilder() : null;
} else {
itemsBuilder_.addAllMessages(other.items_);
}
}
}
if (other.hasContinuationToken()) {
bitField0_ |= 0x00000004;
continuationToken_ = other.continuationToken_;
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.ListItemsResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.yamcs.protobuf.ListItemsResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.lang.Object source_ = "";
/**
*
*item source
*
*
* optional string source = 1;
* @return Whether the source field is set.
*/
public boolean hasSource() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
*
*item source
*
*
* optional string source = 1;
* @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 = 1;
* @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 = 1;
* @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_ |= 0x00000001;
source_ = value;
onChanged();
return this;
}
/**
*
*item source
*
*
* optional string source = 1;
* @return This builder for chaining.
*/
public Builder clearSource() {
bitField0_ = (bitField0_ & ~0x00000001);
source_ = getDefaultInstance().getSource();
onChanged();
return this;
}
/**
*
*item source
*
*
* optional string source = 1;
* @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_ |= 0x00000001;
source_ = value;
onChanged();
return this;
}
private java.util.List items_ =
java.util.Collections.emptyList();
private void ensureItemsIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
items_ = new java.util.ArrayList(items_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.yamcs.protobuf.TimelineItem, org.yamcs.protobuf.TimelineItem.Builder, org.yamcs.protobuf.TimelineItemOrBuilder> itemsBuilder_;
/**
*
*items
*
*
* repeated .yamcs.protobuf.timeline.TimelineItem items = 2;
*/
public java.util.List getItemsList() {
if (itemsBuilder_ == null) {
return java.util.Collections.unmodifiableList(items_);
} else {
return itemsBuilder_.getMessageList();
}
}
/**
*
*items
*
*
* repeated .yamcs.protobuf.timeline.TimelineItem items = 2;
*/
public int getItemsCount() {
if (itemsBuilder_ == null) {
return items_.size();
} else {
return itemsBuilder_.getCount();
}
}
/**
*
*items
*
*
* repeated .yamcs.protobuf.timeline.TimelineItem items = 2;
*/
public org.yamcs.protobuf.TimelineItem getItems(int index) {
if (itemsBuilder_ == null) {
return items_.get(index);
} else {
return itemsBuilder_.getMessage(index);
}
}
/**
*
*items
*
*
* repeated .yamcs.protobuf.timeline.TimelineItem items = 2;
*/
public Builder setItems(
int index, org.yamcs.protobuf.TimelineItem value) {
if (itemsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureItemsIsMutable();
items_.set(index, value);
onChanged();
} else {
itemsBuilder_.setMessage(index, value);
}
return this;
}
/**
*
*items
*
*
* repeated .yamcs.protobuf.timeline.TimelineItem items = 2;
*/
public Builder setItems(
int index, org.yamcs.protobuf.TimelineItem.Builder builderForValue) {
if (itemsBuilder_ == null) {
ensureItemsIsMutable();
items_.set(index, builderForValue.build());
onChanged();
} else {
itemsBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
*
*items
*
*
* repeated .yamcs.protobuf.timeline.TimelineItem items = 2;
*/
public Builder addItems(org.yamcs.protobuf.TimelineItem value) {
if (itemsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureItemsIsMutable();
items_.add(value);
onChanged();
} else {
itemsBuilder_.addMessage(value);
}
return this;
}
/**
*
*items
*
*
* repeated .yamcs.protobuf.timeline.TimelineItem items = 2;
*/
public Builder addItems(
int index, org.yamcs.protobuf.TimelineItem value) {
if (itemsBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureItemsIsMutable();
items_.add(index, value);
onChanged();
} else {
itemsBuilder_.addMessage(index, value);
}
return this;
}
/**
*
*items
*
*
* repeated .yamcs.protobuf.timeline.TimelineItem items = 2;
*/
public Builder addItems(
org.yamcs.protobuf.TimelineItem.Builder builderForValue) {
if (itemsBuilder_ == null) {
ensureItemsIsMutable();
items_.add(builderForValue.build());
onChanged();
} else {
itemsBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
*
*items
*
*
* repeated .yamcs.protobuf.timeline.TimelineItem items = 2;
*/
public Builder addItems(
int index, org.yamcs.protobuf.TimelineItem.Builder builderForValue) {
if (itemsBuilder_ == null) {
ensureItemsIsMutable();
items_.add(index, builderForValue.build());
onChanged();
} else {
itemsBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
*
*items
*
*
* repeated .yamcs.protobuf.timeline.TimelineItem items = 2;
*/
public Builder addAllItems(
java.lang.Iterable extends org.yamcs.protobuf.TimelineItem> values) {
if (itemsBuilder_ == null) {
ensureItemsIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, items_);
onChanged();
} else {
itemsBuilder_.addAllMessages(values);
}
return this;
}
/**
*
*items
*
*
* repeated .yamcs.protobuf.timeline.TimelineItem items = 2;
*/
public Builder clearItems() {
if (itemsBuilder_ == null) {
items_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
itemsBuilder_.clear();
}
return this;
}
/**
*
*items
*
*
* repeated .yamcs.protobuf.timeline.TimelineItem items = 2;
*/
public Builder removeItems(int index) {
if (itemsBuilder_ == null) {
ensureItemsIsMutable();
items_.remove(index);
onChanged();
} else {
itemsBuilder_.remove(index);
}
return this;
}
/**
*
*items
*
*
* repeated .yamcs.protobuf.timeline.TimelineItem items = 2;
*/
public org.yamcs.protobuf.TimelineItem.Builder getItemsBuilder(
int index) {
return getItemsFieldBuilder().getBuilder(index);
}
/**
*
*items
*
*
* repeated .yamcs.protobuf.timeline.TimelineItem items = 2;
*/
public org.yamcs.protobuf.TimelineItemOrBuilder getItemsOrBuilder(
int index) {
if (itemsBuilder_ == null) {
return items_.get(index); } else {
return itemsBuilder_.getMessageOrBuilder(index);
}
}
/**
*
*items
*
*
* repeated .yamcs.protobuf.timeline.TimelineItem items = 2;
*/
public java.util.List extends org.yamcs.protobuf.TimelineItemOrBuilder>
getItemsOrBuilderList() {
if (itemsBuilder_ != null) {
return itemsBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(items_);
}
}
/**
*
*items
*
*
* repeated .yamcs.protobuf.timeline.TimelineItem items = 2;
*/
public org.yamcs.protobuf.TimelineItem.Builder addItemsBuilder() {
return getItemsFieldBuilder().addBuilder(
org.yamcs.protobuf.TimelineItem.getDefaultInstance());
}
/**
*
*items
*
*
* repeated .yamcs.protobuf.timeline.TimelineItem items = 2;
*/
public org.yamcs.protobuf.TimelineItem.Builder addItemsBuilder(
int index) {
return getItemsFieldBuilder().addBuilder(
index, org.yamcs.protobuf.TimelineItem.getDefaultInstance());
}
/**
*
*items
*
*
* repeated .yamcs.protobuf.timeline.TimelineItem items = 2;
*/
public java.util.List
getItemsBuilderList() {
return getItemsFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.yamcs.protobuf.TimelineItem, org.yamcs.protobuf.TimelineItem.Builder, org.yamcs.protobuf.TimelineItemOrBuilder>
getItemsFieldBuilder() {
if (itemsBuilder_ == null) {
itemsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.yamcs.protobuf.TimelineItem, org.yamcs.protobuf.TimelineItem.Builder, org.yamcs.protobuf.TimelineItemOrBuilder>(
items_,
((bitField0_ & 0x00000002) != 0),
getParentForChildren(),
isClean());
items_ = null;
}
return itemsBuilder_;
}
private java.lang.Object continuationToken_ = "";
/**
*
* Token indicating the response is only partial. More results can then
* be obtained by performing the same request (including all original
* query parameters) and setting the ``next`` parameter to this token.
*
*
* optional string continuationToken = 3;
* @return Whether the continuationToken field is set.
*/
public boolean hasContinuationToken() {
return ((bitField0_ & 0x00000004) != 0);
}
/**
*
* Token indicating the response is only partial. More results can then
* be obtained by performing the same request (including all original
* query parameters) and setting the ``next`` parameter to this token.
*
*
* optional string continuationToken = 3;
* @return The continuationToken.
*/
public java.lang.String getContinuationToken() {
java.lang.Object ref = continuationToken_;
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()) {
continuationToken_ = s;
}
return s;
} else {
return (java.lang.String) ref;
}
}
/**
*
* Token indicating the response is only partial. More results can then
* be obtained by performing the same request (including all original
* query parameters) and setting the ``next`` parameter to this token.
*
*
* optional string continuationToken = 3;
* @return The bytes for continuationToken.
*/
public com.google.protobuf.ByteString
getContinuationTokenBytes() {
java.lang.Object ref = continuationToken_;
if (ref instanceof String) {
com.google.protobuf.ByteString b =
com.google.protobuf.ByteString.copyFromUtf8(
(java.lang.String) ref);
continuationToken_ = b;
return b;
} else {
return (com.google.protobuf.ByteString) ref;
}
}
/**
*
* Token indicating the response is only partial. More results can then
* be obtained by performing the same request (including all original
* query parameters) and setting the ``next`` parameter to this token.
*
*
* optional string continuationToken = 3;
* @param value The continuationToken to set.
* @return This builder for chaining.
*/
public Builder setContinuationToken(
java.lang.String value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
continuationToken_ = value;
onChanged();
return this;
}
/**
*
* Token indicating the response is only partial. More results can then
* be obtained by performing the same request (including all original
* query parameters) and setting the ``next`` parameter to this token.
*
*
* optional string continuationToken = 3;
* @return This builder for chaining.
*/
public Builder clearContinuationToken() {
bitField0_ = (bitField0_ & ~0x00000004);
continuationToken_ = getDefaultInstance().getContinuationToken();
onChanged();
return this;
}
/**
*
* Token indicating the response is only partial. More results can then
* be obtained by performing the same request (including all original
* query parameters) and setting the ``next`` parameter to this token.
*
*
* optional string continuationToken = 3;
* @param value The bytes for continuationToken to set.
* @return This builder for chaining.
*/
public Builder setContinuationTokenBytes(
com.google.protobuf.ByteString value) {
if (value == null) {
throw new NullPointerException();
}
bitField0_ |= 0x00000004;
continuationToken_ = 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.timeline.ListItemsResponse)
}
// @@protoc_insertion_point(class_scope:yamcs.protobuf.timeline.ListItemsResponse)
private static final org.yamcs.protobuf.ListItemsResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.yamcs.protobuf.ListItemsResponse();
}
public static org.yamcs.protobuf.ListItemsResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public ListItemsResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new ListItemsResponse(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.ListItemsResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy