
org.yamcs.protobuf.IndexGroup 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.IndexGroup}
*/
public final class IndexGroup extends
com.google.protobuf.GeneratedMessageV3 implements
// @@protoc_insertion_point(message_implements:yamcs.protobuf.archive.IndexGroup)
IndexGroupOrBuilder {
private static final long serialVersionUID = 0L;
// Use IndexGroup.newBuilder() to construct.
private IndexGroup(com.google.protobuf.GeneratedMessageV3.Builder> builder) {
super(builder);
}
private IndexGroup() {
entry_ = java.util.Collections.emptyList();
}
@java.lang.Override
@SuppressWarnings({"unused"})
protected java.lang.Object newInstance(
UnusedPrivateParameter unused) {
return new IndexGroup();
}
@java.lang.Override
public final com.google.protobuf.UnknownFieldSet
getUnknownFields() {
return this.unknownFields;
}
private IndexGroup(
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: {
org.yamcs.protobuf.Yamcs.NamedObjectId.Builder subBuilder = null;
if (((bitField0_ & 0x00000001) != 0)) {
subBuilder = id_.toBuilder();
}
id_ = input.readMessage(org.yamcs.protobuf.Yamcs.NamedObjectId.PARSER, extensionRegistry);
if (subBuilder != null) {
subBuilder.mergeFrom(id_);
id_ = subBuilder.buildPartial();
}
bitField0_ |= 0x00000001;
break;
}
case 18: {
if (!((mutable_bitField0_ & 0x00000002) != 0)) {
entry_ = new java.util.ArrayList();
mutable_bitField0_ |= 0x00000002;
}
entry_.add(
input.readMessage(org.yamcs.protobuf.IndexEntry.PARSER, extensionRegistry));
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)) {
entry_ = java.util.Collections.unmodifiableList(entry_);
}
this.unknownFields = unknownFields.build();
makeExtensionsImmutable();
}
}
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.IndexServiceProto.internal_static_yamcs_protobuf_archive_IndexGroup_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.IndexServiceProto.internal_static_yamcs_protobuf_archive_IndexGroup_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.IndexGroup.class, org.yamcs.protobuf.IndexGroup.Builder.class);
}
private int bitField0_;
public static final int ID_FIELD_NUMBER = 1;
private org.yamcs.protobuf.Yamcs.NamedObjectId id_;
/**
* optional .yamcs.protobuf.NamedObjectId id = 1;
* @return Whether the id field is set.
*/
@java.lang.Override
public boolean hasId() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional .yamcs.protobuf.NamedObjectId id = 1;
* @return The id.
*/
@java.lang.Override
public org.yamcs.protobuf.Yamcs.NamedObjectId getId() {
return id_ == null ? org.yamcs.protobuf.Yamcs.NamedObjectId.getDefaultInstance() : id_;
}
/**
* optional .yamcs.protobuf.NamedObjectId id = 1;
*/
@java.lang.Override
public org.yamcs.protobuf.Yamcs.NamedObjectIdOrBuilder getIdOrBuilder() {
return id_ == null ? org.yamcs.protobuf.Yamcs.NamedObjectId.getDefaultInstance() : id_;
}
public static final int ENTRY_FIELD_NUMBER = 2;
private java.util.List entry_;
/**
* repeated .yamcs.protobuf.archive.IndexEntry entry = 2;
*/
@java.lang.Override
public java.util.List getEntryList() {
return entry_;
}
/**
* repeated .yamcs.protobuf.archive.IndexEntry entry = 2;
*/
@java.lang.Override
public java.util.List extends org.yamcs.protobuf.IndexEntryOrBuilder>
getEntryOrBuilderList() {
return entry_;
}
/**
* repeated .yamcs.protobuf.archive.IndexEntry entry = 2;
*/
@java.lang.Override
public int getEntryCount() {
return entry_.size();
}
/**
* repeated .yamcs.protobuf.archive.IndexEntry entry = 2;
*/
@java.lang.Override
public org.yamcs.protobuf.IndexEntry getEntry(int index) {
return entry_.get(index);
}
/**
* repeated .yamcs.protobuf.archive.IndexEntry entry = 2;
*/
@java.lang.Override
public org.yamcs.protobuf.IndexEntryOrBuilder getEntryOrBuilder(
int index) {
return entry_.get(index);
}
private byte memoizedIsInitialized = -1;
@java.lang.Override
public final boolean isInitialized() {
byte isInitialized = memoizedIsInitialized;
if (isInitialized == 1) return true;
if (isInitialized == 0) return false;
if (hasId()) {
if (!getId().isInitialized()) {
memoizedIsInitialized = 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)) {
output.writeMessage(1, getId());
}
for (int i = 0; i < entry_.size(); i++) {
output.writeMessage(2, entry_.get(i));
}
unknownFields.writeTo(output);
}
@java.lang.Override
public int getSerializedSize() {
int size = memoizedSize;
if (size != -1) return size;
size = 0;
if (((bitField0_ & 0x00000001) != 0)) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(1, getId());
}
for (int i = 0; i < entry_.size(); i++) {
size += com.google.protobuf.CodedOutputStream
.computeMessageSize(2, entry_.get(i));
}
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.IndexGroup)) {
return super.equals(obj);
}
org.yamcs.protobuf.IndexGroup other = (org.yamcs.protobuf.IndexGroup) obj;
if (hasId() != other.hasId()) return false;
if (hasId()) {
if (!getId()
.equals(other.getId())) return false;
}
if (!getEntryList()
.equals(other.getEntryList())) 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 (hasId()) {
hash = (37 * hash) + ID_FIELD_NUMBER;
hash = (53 * hash) + getId().hashCode();
}
if (getEntryCount() > 0) {
hash = (37 * hash) + ENTRY_FIELD_NUMBER;
hash = (53 * hash) + getEntryList().hashCode();
}
hash = (29 * hash) + unknownFields.hashCode();
memoizedHashCode = hash;
return hash;
}
public static org.yamcs.protobuf.IndexGroup parseFrom(
java.nio.ByteBuffer data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.IndexGroup 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.IndexGroup parseFrom(
com.google.protobuf.ByteString data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.IndexGroup 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.IndexGroup parseFrom(byte[] data)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data);
}
public static org.yamcs.protobuf.IndexGroup parseFrom(
byte[] data,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return PARSER.parseFrom(data, extensionRegistry);
}
public static org.yamcs.protobuf.IndexGroup parseFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.IndexGroup 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.IndexGroup parseDelimitedFrom(java.io.InputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseDelimitedWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.IndexGroup 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.IndexGroup parseFrom(
com.google.protobuf.CodedInputStream input)
throws java.io.IOException {
return com.google.protobuf.GeneratedMessageV3
.parseWithIOException(PARSER, input);
}
public static org.yamcs.protobuf.IndexGroup 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.IndexGroup 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.IndexGroup}
*/
public static final class Builder extends
com.google.protobuf.GeneratedMessageV3.Builder implements
// @@protoc_insertion_point(builder_implements:yamcs.protobuf.archive.IndexGroup)
org.yamcs.protobuf.IndexGroupOrBuilder {
public static final com.google.protobuf.Descriptors.Descriptor
getDescriptor() {
return org.yamcs.protobuf.IndexServiceProto.internal_static_yamcs_protobuf_archive_IndexGroup_descriptor;
}
@java.lang.Override
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable() {
return org.yamcs.protobuf.IndexServiceProto.internal_static_yamcs_protobuf_archive_IndexGroup_fieldAccessorTable
.ensureFieldAccessorsInitialized(
org.yamcs.protobuf.IndexGroup.class, org.yamcs.protobuf.IndexGroup.Builder.class);
}
// Construct using org.yamcs.protobuf.IndexGroup.newBuilder()
private Builder() {
maybeForceBuilderInitialization();
}
private Builder(
com.google.protobuf.GeneratedMessageV3.BuilderParent parent) {
super(parent);
maybeForceBuilderInitialization();
}
private void maybeForceBuilderInitialization() {
if (com.google.protobuf.GeneratedMessageV3
.alwaysUseFieldBuilders) {
getIdFieldBuilder();
getEntryFieldBuilder();
}
}
@java.lang.Override
public Builder clear() {
super.clear();
if (idBuilder_ == null) {
id_ = null;
} else {
idBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
if (entryBuilder_ == null) {
entry_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
} else {
entryBuilder_.clear();
}
return this;
}
@java.lang.Override
public com.google.protobuf.Descriptors.Descriptor
getDescriptorForType() {
return org.yamcs.protobuf.IndexServiceProto.internal_static_yamcs_protobuf_archive_IndexGroup_descriptor;
}
@java.lang.Override
public org.yamcs.protobuf.IndexGroup getDefaultInstanceForType() {
return org.yamcs.protobuf.IndexGroup.getDefaultInstance();
}
@java.lang.Override
public org.yamcs.protobuf.IndexGroup build() {
org.yamcs.protobuf.IndexGroup result = buildPartial();
if (!result.isInitialized()) {
throw newUninitializedMessageException(result);
}
return result;
}
@java.lang.Override
public org.yamcs.protobuf.IndexGroup buildPartial() {
org.yamcs.protobuf.IndexGroup result = new org.yamcs.protobuf.IndexGroup(this);
int from_bitField0_ = bitField0_;
int to_bitField0_ = 0;
if (((from_bitField0_ & 0x00000001) != 0)) {
if (idBuilder_ == null) {
result.id_ = id_;
} else {
result.id_ = idBuilder_.build();
}
to_bitField0_ |= 0x00000001;
}
if (entryBuilder_ == null) {
if (((bitField0_ & 0x00000002) != 0)) {
entry_ = java.util.Collections.unmodifiableList(entry_);
bitField0_ = (bitField0_ & ~0x00000002);
}
result.entry_ = entry_;
} else {
result.entry_ = entryBuilder_.build();
}
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.IndexGroup) {
return mergeFrom((org.yamcs.protobuf.IndexGroup)other);
} else {
super.mergeFrom(other);
return this;
}
}
public Builder mergeFrom(org.yamcs.protobuf.IndexGroup other) {
if (other == org.yamcs.protobuf.IndexGroup.getDefaultInstance()) return this;
if (other.hasId()) {
mergeId(other.getId());
}
if (entryBuilder_ == null) {
if (!other.entry_.isEmpty()) {
if (entry_.isEmpty()) {
entry_ = other.entry_;
bitField0_ = (bitField0_ & ~0x00000002);
} else {
ensureEntryIsMutable();
entry_.addAll(other.entry_);
}
onChanged();
}
} else {
if (!other.entry_.isEmpty()) {
if (entryBuilder_.isEmpty()) {
entryBuilder_.dispose();
entryBuilder_ = null;
entry_ = other.entry_;
bitField0_ = (bitField0_ & ~0x00000002);
entryBuilder_ =
com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ?
getEntryFieldBuilder() : null;
} else {
entryBuilder_.addAllMessages(other.entry_);
}
}
}
this.mergeUnknownFields(other.unknownFields);
onChanged();
return this;
}
@java.lang.Override
public final boolean isInitialized() {
if (hasId()) {
if (!getId().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.IndexGroup parsedMessage = null;
try {
parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
} catch (com.google.protobuf.InvalidProtocolBufferException e) {
parsedMessage = (org.yamcs.protobuf.IndexGroup) e.getUnfinishedMessage();
throw e.unwrapIOException();
} finally {
if (parsedMessage != null) {
mergeFrom(parsedMessage);
}
}
return this;
}
private int bitField0_;
private org.yamcs.protobuf.Yamcs.NamedObjectId id_;
private com.google.protobuf.SingleFieldBuilderV3<
org.yamcs.protobuf.Yamcs.NamedObjectId, org.yamcs.protobuf.Yamcs.NamedObjectId.Builder, org.yamcs.protobuf.Yamcs.NamedObjectIdOrBuilder> idBuilder_;
/**
* optional .yamcs.protobuf.NamedObjectId id = 1;
* @return Whether the id field is set.
*/
public boolean hasId() {
return ((bitField0_ & 0x00000001) != 0);
}
/**
* optional .yamcs.protobuf.NamedObjectId id = 1;
* @return The id.
*/
public org.yamcs.protobuf.Yamcs.NamedObjectId getId() {
if (idBuilder_ == null) {
return id_ == null ? org.yamcs.protobuf.Yamcs.NamedObjectId.getDefaultInstance() : id_;
} else {
return idBuilder_.getMessage();
}
}
/**
* optional .yamcs.protobuf.NamedObjectId id = 1;
*/
public Builder setId(org.yamcs.protobuf.Yamcs.NamedObjectId value) {
if (idBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
id_ = value;
onChanged();
} else {
idBuilder_.setMessage(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .yamcs.protobuf.NamedObjectId id = 1;
*/
public Builder setId(
org.yamcs.protobuf.Yamcs.NamedObjectId.Builder builderForValue) {
if (idBuilder_ == null) {
id_ = builderForValue.build();
onChanged();
} else {
idBuilder_.setMessage(builderForValue.build());
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .yamcs.protobuf.NamedObjectId id = 1;
*/
public Builder mergeId(org.yamcs.protobuf.Yamcs.NamedObjectId value) {
if (idBuilder_ == null) {
if (((bitField0_ & 0x00000001) != 0) &&
id_ != null &&
id_ != org.yamcs.protobuf.Yamcs.NamedObjectId.getDefaultInstance()) {
id_ =
org.yamcs.protobuf.Yamcs.NamedObjectId.newBuilder(id_).mergeFrom(value).buildPartial();
} else {
id_ = value;
}
onChanged();
} else {
idBuilder_.mergeFrom(value);
}
bitField0_ |= 0x00000001;
return this;
}
/**
* optional .yamcs.protobuf.NamedObjectId id = 1;
*/
public Builder clearId() {
if (idBuilder_ == null) {
id_ = null;
onChanged();
} else {
idBuilder_.clear();
}
bitField0_ = (bitField0_ & ~0x00000001);
return this;
}
/**
* optional .yamcs.protobuf.NamedObjectId id = 1;
*/
public org.yamcs.protobuf.Yamcs.NamedObjectId.Builder getIdBuilder() {
bitField0_ |= 0x00000001;
onChanged();
return getIdFieldBuilder().getBuilder();
}
/**
* optional .yamcs.protobuf.NamedObjectId id = 1;
*/
public org.yamcs.protobuf.Yamcs.NamedObjectIdOrBuilder getIdOrBuilder() {
if (idBuilder_ != null) {
return idBuilder_.getMessageOrBuilder();
} else {
return id_ == null ?
org.yamcs.protobuf.Yamcs.NamedObjectId.getDefaultInstance() : id_;
}
}
/**
* optional .yamcs.protobuf.NamedObjectId id = 1;
*/
private com.google.protobuf.SingleFieldBuilderV3<
org.yamcs.protobuf.Yamcs.NamedObjectId, org.yamcs.protobuf.Yamcs.NamedObjectId.Builder, org.yamcs.protobuf.Yamcs.NamedObjectIdOrBuilder>
getIdFieldBuilder() {
if (idBuilder_ == null) {
idBuilder_ = new com.google.protobuf.SingleFieldBuilderV3<
org.yamcs.protobuf.Yamcs.NamedObjectId, org.yamcs.protobuf.Yamcs.NamedObjectId.Builder, org.yamcs.protobuf.Yamcs.NamedObjectIdOrBuilder>(
getId(),
getParentForChildren(),
isClean());
id_ = null;
}
return idBuilder_;
}
private java.util.List entry_ =
java.util.Collections.emptyList();
private void ensureEntryIsMutable() {
if (!((bitField0_ & 0x00000002) != 0)) {
entry_ = new java.util.ArrayList(entry_);
bitField0_ |= 0x00000002;
}
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.yamcs.protobuf.IndexEntry, org.yamcs.protobuf.IndexEntry.Builder, org.yamcs.protobuf.IndexEntryOrBuilder> entryBuilder_;
/**
* repeated .yamcs.protobuf.archive.IndexEntry entry = 2;
*/
public java.util.List getEntryList() {
if (entryBuilder_ == null) {
return java.util.Collections.unmodifiableList(entry_);
} else {
return entryBuilder_.getMessageList();
}
}
/**
* repeated .yamcs.protobuf.archive.IndexEntry entry = 2;
*/
public int getEntryCount() {
if (entryBuilder_ == null) {
return entry_.size();
} else {
return entryBuilder_.getCount();
}
}
/**
* repeated .yamcs.protobuf.archive.IndexEntry entry = 2;
*/
public org.yamcs.protobuf.IndexEntry getEntry(int index) {
if (entryBuilder_ == null) {
return entry_.get(index);
} else {
return entryBuilder_.getMessage(index);
}
}
/**
* repeated .yamcs.protobuf.archive.IndexEntry entry = 2;
*/
public Builder setEntry(
int index, org.yamcs.protobuf.IndexEntry value) {
if (entryBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureEntryIsMutable();
entry_.set(index, value);
onChanged();
} else {
entryBuilder_.setMessage(index, value);
}
return this;
}
/**
* repeated .yamcs.protobuf.archive.IndexEntry entry = 2;
*/
public Builder setEntry(
int index, org.yamcs.protobuf.IndexEntry.Builder builderForValue) {
if (entryBuilder_ == null) {
ensureEntryIsMutable();
entry_.set(index, builderForValue.build());
onChanged();
} else {
entryBuilder_.setMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .yamcs.protobuf.archive.IndexEntry entry = 2;
*/
public Builder addEntry(org.yamcs.protobuf.IndexEntry value) {
if (entryBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureEntryIsMutable();
entry_.add(value);
onChanged();
} else {
entryBuilder_.addMessage(value);
}
return this;
}
/**
* repeated .yamcs.protobuf.archive.IndexEntry entry = 2;
*/
public Builder addEntry(
int index, org.yamcs.protobuf.IndexEntry value) {
if (entryBuilder_ == null) {
if (value == null) {
throw new NullPointerException();
}
ensureEntryIsMutable();
entry_.add(index, value);
onChanged();
} else {
entryBuilder_.addMessage(index, value);
}
return this;
}
/**
* repeated .yamcs.protobuf.archive.IndexEntry entry = 2;
*/
public Builder addEntry(
org.yamcs.protobuf.IndexEntry.Builder builderForValue) {
if (entryBuilder_ == null) {
ensureEntryIsMutable();
entry_.add(builderForValue.build());
onChanged();
} else {
entryBuilder_.addMessage(builderForValue.build());
}
return this;
}
/**
* repeated .yamcs.protobuf.archive.IndexEntry entry = 2;
*/
public Builder addEntry(
int index, org.yamcs.protobuf.IndexEntry.Builder builderForValue) {
if (entryBuilder_ == null) {
ensureEntryIsMutable();
entry_.add(index, builderForValue.build());
onChanged();
} else {
entryBuilder_.addMessage(index, builderForValue.build());
}
return this;
}
/**
* repeated .yamcs.protobuf.archive.IndexEntry entry = 2;
*/
public Builder addAllEntry(
java.lang.Iterable extends org.yamcs.protobuf.IndexEntry> values) {
if (entryBuilder_ == null) {
ensureEntryIsMutable();
com.google.protobuf.AbstractMessageLite.Builder.addAll(
values, entry_);
onChanged();
} else {
entryBuilder_.addAllMessages(values);
}
return this;
}
/**
* repeated .yamcs.protobuf.archive.IndexEntry entry = 2;
*/
public Builder clearEntry() {
if (entryBuilder_ == null) {
entry_ = java.util.Collections.emptyList();
bitField0_ = (bitField0_ & ~0x00000002);
onChanged();
} else {
entryBuilder_.clear();
}
return this;
}
/**
* repeated .yamcs.protobuf.archive.IndexEntry entry = 2;
*/
public Builder removeEntry(int index) {
if (entryBuilder_ == null) {
ensureEntryIsMutable();
entry_.remove(index);
onChanged();
} else {
entryBuilder_.remove(index);
}
return this;
}
/**
* repeated .yamcs.protobuf.archive.IndexEntry entry = 2;
*/
public org.yamcs.protobuf.IndexEntry.Builder getEntryBuilder(
int index) {
return getEntryFieldBuilder().getBuilder(index);
}
/**
* repeated .yamcs.protobuf.archive.IndexEntry entry = 2;
*/
public org.yamcs.protobuf.IndexEntryOrBuilder getEntryOrBuilder(
int index) {
if (entryBuilder_ == null) {
return entry_.get(index); } else {
return entryBuilder_.getMessageOrBuilder(index);
}
}
/**
* repeated .yamcs.protobuf.archive.IndexEntry entry = 2;
*/
public java.util.List extends org.yamcs.protobuf.IndexEntryOrBuilder>
getEntryOrBuilderList() {
if (entryBuilder_ != null) {
return entryBuilder_.getMessageOrBuilderList();
} else {
return java.util.Collections.unmodifiableList(entry_);
}
}
/**
* repeated .yamcs.protobuf.archive.IndexEntry entry = 2;
*/
public org.yamcs.protobuf.IndexEntry.Builder addEntryBuilder() {
return getEntryFieldBuilder().addBuilder(
org.yamcs.protobuf.IndexEntry.getDefaultInstance());
}
/**
* repeated .yamcs.protobuf.archive.IndexEntry entry = 2;
*/
public org.yamcs.protobuf.IndexEntry.Builder addEntryBuilder(
int index) {
return getEntryFieldBuilder().addBuilder(
index, org.yamcs.protobuf.IndexEntry.getDefaultInstance());
}
/**
* repeated .yamcs.protobuf.archive.IndexEntry entry = 2;
*/
public java.util.List
getEntryBuilderList() {
return getEntryFieldBuilder().getBuilderList();
}
private com.google.protobuf.RepeatedFieldBuilderV3<
org.yamcs.protobuf.IndexEntry, org.yamcs.protobuf.IndexEntry.Builder, org.yamcs.protobuf.IndexEntryOrBuilder>
getEntryFieldBuilder() {
if (entryBuilder_ == null) {
entryBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3<
org.yamcs.protobuf.IndexEntry, org.yamcs.protobuf.IndexEntry.Builder, org.yamcs.protobuf.IndexEntryOrBuilder>(
entry_,
((bitField0_ & 0x00000002) != 0),
getParentForChildren(),
isClean());
entry_ = null;
}
return entryBuilder_;
}
@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.IndexGroup)
}
// @@protoc_insertion_point(class_scope:yamcs.protobuf.archive.IndexGroup)
private static final org.yamcs.protobuf.IndexGroup DEFAULT_INSTANCE;
static {
DEFAULT_INSTANCE = new org.yamcs.protobuf.IndexGroup();
}
public static org.yamcs.protobuf.IndexGroup getDefaultInstance() {
return DEFAULT_INSTANCE;
}
@java.lang.Deprecated public static final com.google.protobuf.Parser
PARSER = new com.google.protobuf.AbstractParser() {
@java.lang.Override
public IndexGroup parsePartialFrom(
com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry)
throws com.google.protobuf.InvalidProtocolBufferException {
return new IndexGroup(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.IndexGroup getDefaultInstanceForType() {
return DEFAULT_INSTANCE;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy