
org.yamcs.protobuf.IndexResponse 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/index_service.proto
package org.yamcs.protobuf;
/**
* Protobuf type {@code yamcs.protobuf.archive.IndexResponse}
*/
public final class IndexResponse extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yamcs.protobuf.archive.IndexResponse)
IndexResponseOrBuilder {
private static final long serialVersionUID = 0L;
// Use IndexResponse.newBuilder() to construct.
private IndexResponse(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private IndexResponse() {
group_ = java.util.Collections.emptyList();
continuationToken_ = "";
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new IndexResponse();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private IndexResponse(
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: {
if (!((mutable_bitField0_ & 0x00000001) != 0)) {
group_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000001;
}
group_.add(
input.readMessage(org.yamcs.protobuf.IndexGroup.PARSER, extensionRegistry));
break;
}
case 18: {
com.google.protobuf.ByteString bs = input.readBytes();
bitField0_ |= 0x00000001;
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_ & 0x00000001) != 0)) {
group_ = java.util.Collections.unmodifiableList(group_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.IndexServiceProto.internal_static_yamcs_protobuf_archive_IndexResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.IndexServiceProto.internal_static_yamcs_protobuf_archive_IndexResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.IndexResponse.class, org.yamcs.protobuf.IndexResponse.Builder.class);
}
private int bitField0_;
public static final int GROUP_FIELD_NUMBER = 1;
private java.util.List group_;
/**
* repeated .yamcs.protobuf.archive.IndexGroup group = 1;
*/
@java.lang.Override
public java.util.List getGroupList() {
return group_;
}
/**
* repeated .yamcs.protobuf.archive.IndexGroup group = 1;
*/
@java.lang.Override
public java.util.List extends org.yamcs.protobuf.IndexGroupOrBuilder>
getGroupOrBuilderList() {
return group_;
}
/**
* repeated .yamcs.protobuf.archive.IndexGroup group = 1;
*/
@java.lang.Override
public int getGroupCount() {
return group_.size();
}
/**
* repeated .yamcs.protobuf.archive.IndexGroup group = 1;
*/
@java.lang.Override
public org.yamcs.protobuf.IndexGroup getGroup(int index) {
return group_.get(index);
}
/**
* repeated .yamcs.protobuf.archive.IndexGroup group = 1;
*/
@java.lang.Override
public org.yamcs.protobuf.IndexGroupOrBuilder getGroupOrBuilder(
int index) {
return group_.get(index);
}
public static final int CONTINUATIONTOKEN_FIELD_NUMBER = 2;
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 = 2;
* @return Whether the continuationToken field is set.
*/
@java.lang.Override
public boolean hasContinuationToken() {
return ((bitField0_ & 0x00000001) != 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 = 2;
* @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 = 2;
* @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;
for (int i = 0; i < getGroupCount(); i++) {
if (!getGroup(i).isInitialized()) {
memoizedIsInitialized = 0;
return false;
}
}
memoizedIsInitialized = 1;
return true;
}
@java.lang.Override
public void writeTo(com.google.protobuf.CodedOutputStream output)
throws java.io.IOException {
for (int i = 0; i < group_.size(); i++) {
output.writeMessage(1, group_.get(i));
}
if (((bitField0_ & 0x00000001) != 0)) {
com.google.protobuf.GeneratedMessageV3.writeString(output, 2, continuationToken_);
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
for (int i = 0; i < group_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, group_.get(i));
}
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, 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.IndexResponse)) {
return super.equals(obj);
}
org.yamcs.protobuf.IndexResponse other = (org.yamcs.protobuf.IndexResponse) obj;
if (!getGroupList()
.equals(other.getGroupList())) 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 (getGroupCount() > 0) {
hash = (37 * hash) + GROUP_FIELD_NUMBER;
hash = (53 * hash) + getGroupList().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.IndexResponse parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.IndexResponse 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.IndexResponse parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.IndexResponse 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.IndexResponse parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.IndexResponse parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.yamcs.protobuf.IndexResponse parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.IndexResponse 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.IndexResponse parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.IndexResponse 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.IndexResponse parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.IndexResponse 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.IndexResponse 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.IndexResponse}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yamcs.protobuf.archive.IndexResponse)
org.yamcs.protobuf.IndexResponseOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.IndexServiceProto.internal_static_yamcs_protobuf_archive_IndexResponse_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.IndexServiceProto.internal_static_yamcs_protobuf_archive_IndexResponse_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.IndexResponse.class, org.yamcs.protobuf.IndexResponse.Builder.class);
}
// Construct using org.yamcs.protobuf.IndexResponse.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getGroupFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (groupBuilder_ == null) {
group_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
} else {
groupBuilder_.clear();
}
continuationToken_ = "";
bitField0_ = (bitField0_ & ~0x00000002);
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.yamcs.protobuf.IndexServiceProto.internal_static_yamcs_protobuf_archive_IndexResponse_descriptor;
}
@java.lang.Override
public org.yamcs.protobuf.IndexResponse getDefaultInstanceForType() {
return org.yamcs.protobuf.IndexResponse.getDefaultInstance();
}
@java.lang.Override
public org.yamcs.protobuf.IndexResponse build() {
org.yamcs.protobuf.IndexResponse result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.yamcs.protobuf.IndexResponse buildPartial() {
org.yamcs.protobuf.IndexResponse result = new org.yamcs.protobuf.IndexResponse(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (groupBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0)) {
group_ = java.util.Collections.unmodifiableList(group_);
bitField0_ = (bitField0_ & ~0x00000001);
}
result.group_ = group_;
} else {
result.group_ = groupBuilder_.build();
}
if (((from_bitField0_ & 0x00000002) != 0)) {
to_bitField0_ |= 0x00000001;
}
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.IndexResponse) {
return mergeFrom((org.yamcs.protobuf.IndexResponse)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.yamcs.protobuf.IndexResponse other) {
if (other == org.yamcs.protobuf.IndexResponse.getDefaultInstance()) return this;
if (groupBuilder_ == null) {
if (!other.group_.isEmpty()) {
if (group_.isEmpty()) {
group_ = other.group_;
bitField0_ = (bitField0_ & ~0x00000001);
} else {
ensureGroupIsMutable();
group_.addAll(other.group_);
}
onChanged();
}
} else {
if (!other.group_.isEmpty()) {
if (groupBuilder_.isEmpty()) {
groupBuilder_.dispose();
groupBuilder_ = null;
group_ = other.group_;
bitField0_ = (bitField0_ & ~0x00000001);
groupBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getGroupFieldBuilder() : null;
} else {
groupBuilder_.addAllMessages(other.group_);
}
}
}
if (other.hasContinuationToken()) {
bitField0_ |= 0x00000002;
continuationToken_ = other.continuationToken_;
onChanged();
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
for (int i = 0; i < getGroupCount(); i++) {
if (!getGroup(i).isInitialized()) {
return false;
}
}
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.IndexResponse parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.yamcs.protobuf.IndexResponse) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private java.util.List group_ =
java.util.Collections.emptyList();
private void ensureGroupIsMutable() {
if (!((bitField0_ & 0x00000001) != 0)) {
group_ = new java.util.ArrayList(group_);
bitField0_ |= 0x00000001;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.yamcs.protobuf.IndexGroup, org.yamcs.protobuf.IndexGroup.Builder, org.yamcs.protobuf.IndexGroupOrBuilder> groupBuilder_;
/**
* repeated .yamcs.protobuf.archive.IndexGroup group = 1;
*/
public java.util.List getGroupList() {
if (groupBuilder_ == null) {
return java.util.Collections.unmodifiableList(group_);
} else {
return groupBuilder_.getMessageList();
}
}
/**
* repeated .yamcs.protobuf.archive.IndexGroup group = 1;
*/
public int getGroupCount() {
if (groupBuilder_ == null) {
return group_.size();
} else {
return groupBuilder_.getCount();
}
}
/**
* repeated .yamcs.protobuf.archive.IndexGroup group = 1;
*/
public org.yamcs.protobuf.IndexGroup getGroup(int index) {
if (groupBuilder_ == null) {
return group_.get(index);
} else {
return groupBuilder_.getMessage(index);
}
}
/**
* repeated .yamcs.protobuf.archive.IndexGroup group = 1;
*/
public Builder setGroup(
int index, org.yamcs.protobuf.IndexGroup value) {
if (groupBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureGroupIsMutable();
group_.set(index, value);
onChanged();
} else {
groupBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .yamcs.protobuf.archive.IndexGroup group = 1;
*/
public Builder setGroup(
int index, org.yamcs.protobuf.IndexGroup.Builder builderForValue) {
if (groupBuilder_ == null) {
ensureGroupIsMutable();
group_.set(index, builderForValue.build());
onChanged();
} else {
groupBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .yamcs.protobuf.archive.IndexGroup group = 1;
*/
public Builder addGroup(org.yamcs.protobuf.IndexGroup value) {
if (groupBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureGroupIsMutable();
group_.add(value);
onChanged();
} else {
groupBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .yamcs.protobuf.archive.IndexGroup group = 1;
*/
public Builder addGroup(
int index, org.yamcs.protobuf.IndexGroup value) {
if (groupBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureGroupIsMutable();
group_.add(index, value);
onChanged();
} else {
groupBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .yamcs.protobuf.archive.IndexGroup group = 1;
*/
public Builder addGroup(
org.yamcs.protobuf.IndexGroup.Builder builderForValue) {
if (groupBuilder_ == null) {
ensureGroupIsMutable();
group_.add(builderForValue.build());
onChanged();
} else {
groupBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .yamcs.protobuf.archive.IndexGroup group = 1;
*/
public Builder addGroup(
int index, org.yamcs.protobuf.IndexGroup.Builder builderForValue) {
if (groupBuilder_ == null) {
ensureGroupIsMutable();
group_.add(index, builderForValue.build());
onChanged();
} else {
groupBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .yamcs.protobuf.archive.IndexGroup group = 1;
*/
public Builder addAllGroup(
java.lang.Iterable extends org.yamcs.protobuf.IndexGroup> values) {
if (groupBuilder_ == null) {
ensureGroupIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, group_);
onChanged();
} else {
groupBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .yamcs.protobuf.archive.IndexGroup group = 1;
*/
public Builder clearGroup() {
if (groupBuilder_ == null) {
group_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000001);
onChanged();
} else {
groupBuilder_.clear();
}
return this;
}
/**
* repeated .yamcs.protobuf.archive.IndexGroup group = 1;
*/
public Builder removeGroup(int index) {
if (groupBuilder_ == null) {
ensureGroupIsMutable();
group_.remove(index);
onChanged();
} else {
groupBuilder_.remove(index);
}
return this;
}
/**
* repeated .yamcs.protobuf.archive.IndexGroup group = 1;
*/
public org.yamcs.protobuf.IndexGroup.Builder getGroupBuilder(
int index) {
return getGroupFieldBuilder().getBuilder(index);
}
/**
* repeated .yamcs.protobuf.archive.IndexGroup group = 1;
*/
public org.yamcs.protobuf.IndexGroupOrBuilder getGroupOrBuilder(
int index) {
if (groupBuilder_ == null) {
return group_.get(index); } else {
return groupBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .yamcs.protobuf.archive.IndexGroup group = 1;
*/
public java.util.List extends org.yamcs.protobuf.IndexGroupOrBuilder>
getGroupOrBuilderList() {
if (groupBuilder_ != null) {
return groupBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(group_);
}
}
/**
* repeated .yamcs.protobuf.archive.IndexGroup group = 1;
*/
public org.yamcs.protobuf.IndexGroup.Builder addGroupBuilder() {
return getGroupFieldBuilder().addBuilder(
org.yamcs.protobuf.IndexGroup.getDefaultInstance());
}
/**
* repeated .yamcs.protobuf.archive.IndexGroup group = 1;
*/
public org.yamcs.protobuf.IndexGroup.Builder addGroupBuilder(
int index) {
return getGroupFieldBuilder().addBuilder(
index, org.yamcs.protobuf.IndexGroup.getDefaultInstance());
}
/**
* repeated .yamcs.protobuf.archive.IndexGroup group = 1;
*/
public java.util.List
getGroupBuilderList() {
return getGroupFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.yamcs.protobuf.IndexGroup, org.yamcs.protobuf.IndexGroup.Builder, org.yamcs.protobuf.IndexGroupOrBuilder>
getGroupFieldBuilder() {
if (groupBuilder_ == null) {
groupBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.yamcs.protobuf.IndexGroup, org.yamcs.protobuf.IndexGroup.Builder, org.yamcs.protobuf.IndexGroupOrBuilder>(
group_,
((bitField0_ & 0x00000001) != 0),
getParentForChildren(),
isClean());
group_ = null;
}
return groupBuilder_;
}
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 = 2;
* @return Whether the continuationToken field is set.
*/
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 = 2;
* @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 = 2;
* @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 = 2;
* @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_ |= 0x00000002;
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 = 2;
* @return This builder for chaining.
*/
public Builder clearContinuationToken() {
bitField0_ = (bitField0_ & ~0x00000002);
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 = 2;
* @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_ |= 0x00000002;
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.archive.IndexResponse)
}
// @@protoc_insertion_point(class_scope:yamcs.protobuf.archive.IndexResponse)
private static final org.yamcs.protobuf.IndexResponse DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.yamcs.protobuf.IndexResponse();
}
public static org.yamcs.protobuf.IndexResponse getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public IndexResponse parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new IndexResponse(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.IndexResponse getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy