All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.yamcs.protobuf.ListPacketNamesResponse Maven / Gradle / Ivy

There is a newer version: 5.10.9
Show newest version
// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: yamcs/protobuf/packets/packets_service.proto

package org.yamcs.protobuf;

/**
 * Protobuf type {@code yamcs.protobuf.packets.ListPacketNamesResponse}
 */
public final class ListPacketNamesResponse extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:yamcs.protobuf.packets.ListPacketNamesResponse)
    ListPacketNamesResponseOrBuilder {
private static final long serialVersionUID = 0L;
  // Use ListPacketNamesResponse.newBuilder() to construct.
  private ListPacketNamesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private ListPacketNamesResponse() {
    name_ = com.google.protobuf.LazyStringArrayList.EMPTY;
    packets_ = com.google.protobuf.LazyStringArrayList.EMPTY;
    links_ = com.google.protobuf.LazyStringArrayList.EMPTY;
  }

  @java.lang.Override
  @SuppressWarnings({"unused"})
  protected java.lang.Object newInstance(
      UnusedPrivateParameter unused) {
    return new ListPacketNamesResponse();
  }

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private ListPacketNamesResponse(
      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();
            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
              name_ = new com.google.protobuf.LazyStringArrayList();
              mutable_bitField0_ |= 0x00000001;
            }
            name_.add(bs);
            break;
          }
          case 18: {
            com.google.protobuf.ByteString bs = input.readBytes();
            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
              packets_ = new com.google.protobuf.LazyStringArrayList();
              mutable_bitField0_ |= 0x00000002;
            }
            packets_.add(bs);
            break;
          }
          case 26: {
            com.google.protobuf.ByteString bs = input.readBytes();
            if (!((mutable_bitField0_ & 0x00000004) != 0)) {
              links_ = new com.google.protobuf.LazyStringArrayList();
              mutable_bitField0_ |= 0x00000004;
            }
            links_.add(bs);
            break;
          }
          default: {
            if (!parseUnknownField(
                input, unknownFields, extensionRegistry, tag)) {
              done = true;
            }
            break;
          }
        }
      }
    } catch (com.google.protobuf.InvalidProtocolBufferException e) {
      throw e.setUnfinishedMessage(this);
    } catch (java.io.IOException e) {
      throw new com.google.protobuf.InvalidProtocolBufferException(
          e).setUnfinishedMessage(this);
    } finally {
      if (((mutable_bitField0_ & 0x00000001) != 0)) {
        name_ = name_.getUnmodifiableView();
      }
      if (((mutable_bitField0_ & 0x00000002) != 0)) {
        packets_ = packets_.getUnmodifiableView();
      }
      if (((mutable_bitField0_ & 0x00000004) != 0)) {
        links_ = links_.getUnmodifiableView();
      }
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return org.yamcs.protobuf.PacketsServiceProto.internal_static_yamcs_protobuf_packets_ListPacketNamesResponse_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return org.yamcs.protobuf.PacketsServiceProto.internal_static_yamcs_protobuf_packets_ListPacketNamesResponse_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            org.yamcs.protobuf.ListPacketNamesResponse.class, org.yamcs.protobuf.ListPacketNamesResponse.Builder.class);
  }

  public static final int NAME_FIELD_NUMBER = 1;
  private com.google.protobuf.LazyStringList name_;
  /**
   * 
   * Known packet names.
   * 
* * repeated string name = 1 [deprecated = true]; * @deprecated * @return A list containing the name. */ @java.lang.Deprecated public com.google.protobuf.ProtocolStringList getNameList() { return name_; } /** *
   * Known packet names.
   * 
* * repeated string name = 1 [deprecated = true]; * @deprecated * @return The count of name. */ @java.lang.Deprecated public int getNameCount() { return name_.size(); } /** *
   * Known packet names.
   * 
* * repeated string name = 1 [deprecated = true]; * @deprecated * @param index The index of the element to return. * @return The name at the given index. */ @java.lang.Deprecated public java.lang.String getName(int index) { return name_.get(index); } /** *
   * Known packet names.
   * 
* * repeated string name = 1 [deprecated = true]; * @deprecated * @param index The index of the value to return. * @return The bytes of the name at the given index. */ @java.lang.Deprecated public com.google.protobuf.ByteString getNameBytes(int index) { return name_.getByteString(index); } public static final int PACKETS_FIELD_NUMBER = 2; private com.google.protobuf.LazyStringList packets_; /** *
   * Known packet names.
   * 
* * repeated string packets = 2; * @return A list containing the packets. */ public com.google.protobuf.ProtocolStringList getPacketsList() { return packets_; } /** *
   * Known packet names.
   * 
* * repeated string packets = 2; * @return The count of packets. */ public int getPacketsCount() { return packets_.size(); } /** *
   * Known packet names.
   * 
* * repeated string packets = 2; * @param index The index of the element to return. * @return The packets at the given index. */ public java.lang.String getPackets(int index) { return packets_.get(index); } /** *
   * Known packet names.
   * 
* * repeated string packets = 2; * @param index The index of the value to return. * @return The bytes of the packets at the given index. */ public com.google.protobuf.ByteString getPacketsBytes(int index) { return packets_.getByteString(index); } public static final int LINKS_FIELD_NUMBER = 3; private com.google.protobuf.LazyStringList links_; /** *
   * Known link names.
   * 
* * repeated string links = 3; * @return A list containing the links. */ public com.google.protobuf.ProtocolStringList getLinksList() { return links_; } /** *
   * Known link names.
   * 
* * repeated string links = 3; * @return The count of links. */ public int getLinksCount() { return links_.size(); } /** *
   * Known link names.
   * 
* * repeated string links = 3; * @param index The index of the element to return. * @return The links at the given index. */ public java.lang.String getLinks(int index) { return links_.get(index); } /** *
   * Known link names.
   * 
* * repeated string links = 3; * @param index The index of the value to return. * @return The bytes of the links at the given index. */ public com.google.protobuf.ByteString getLinksBytes(int index) { return links_.getByteString(index); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < name_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_.getRaw(i)); } for (int i = 0; i < packets_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, packets_.getRaw(i)); } for (int i = 0; i < links_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, links_.getRaw(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; { int dataSize = 0; for (int i = 0; i < name_.size(); i++) { dataSize += computeStringSizeNoTag(name_.getRaw(i)); } size += dataSize; size += 1 * getNameList().size(); } { int dataSize = 0; for (int i = 0; i < packets_.size(); i++) { dataSize += computeStringSizeNoTag(packets_.getRaw(i)); } size += dataSize; size += 1 * getPacketsList().size(); } { int dataSize = 0; for (int i = 0; i < links_.size(); i++) { dataSize += computeStringSizeNoTag(links_.getRaw(i)); } size += dataSize; size += 1 * getLinksList().size(); } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; } @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof org.yamcs.protobuf.ListPacketNamesResponse)) { return super.equals(obj); } org.yamcs.protobuf.ListPacketNamesResponse other = (org.yamcs.protobuf.ListPacketNamesResponse) obj; if (!getNameList() .equals(other.getNameList())) return false; if (!getPacketsList() .equals(other.getPacketsList())) return false; if (!getLinksList() .equals(other.getLinksList())) 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 (getNameCount() > 0) { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getNameList().hashCode(); } if (getPacketsCount() > 0) { hash = (37 * hash) + PACKETS_FIELD_NUMBER; hash = (53 * hash) + getPacketsList().hashCode(); } if (getLinksCount() > 0) { hash = (37 * hash) + LINKS_FIELD_NUMBER; hash = (53 * hash) + getLinksList().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.yamcs.protobuf.ListPacketNamesResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.yamcs.protobuf.ListPacketNamesResponse 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.ListPacketNamesResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.yamcs.protobuf.ListPacketNamesResponse 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.ListPacketNamesResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.yamcs.protobuf.ListPacketNamesResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.yamcs.protobuf.ListPacketNamesResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.yamcs.protobuf.ListPacketNamesResponse 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.ListPacketNamesResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.yamcs.protobuf.ListPacketNamesResponse 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.ListPacketNamesResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.yamcs.protobuf.ListPacketNamesResponse 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.ListPacketNamesResponse 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.packets.ListPacketNamesResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yamcs.protobuf.packets.ListPacketNamesResponse) org.yamcs.protobuf.ListPacketNamesResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.yamcs.protobuf.PacketsServiceProto.internal_static_yamcs_protobuf_packets_ListPacketNamesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.yamcs.protobuf.PacketsServiceProto.internal_static_yamcs_protobuf_packets_ListPacketNamesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.yamcs.protobuf.ListPacketNamesResponse.class, org.yamcs.protobuf.ListPacketNamesResponse.Builder.class); } // Construct using org.yamcs.protobuf.ListPacketNamesResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); name_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); packets_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); links_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000004); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.yamcs.protobuf.PacketsServiceProto.internal_static_yamcs_protobuf_packets_ListPacketNamesResponse_descriptor; } @java.lang.Override public org.yamcs.protobuf.ListPacketNamesResponse getDefaultInstanceForType() { return org.yamcs.protobuf.ListPacketNamesResponse.getDefaultInstance(); } @java.lang.Override public org.yamcs.protobuf.ListPacketNamesResponse build() { org.yamcs.protobuf.ListPacketNamesResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.yamcs.protobuf.ListPacketNamesResponse buildPartial() { org.yamcs.protobuf.ListPacketNamesResponse result = new org.yamcs.protobuf.ListPacketNamesResponse(this); int from_bitField0_ = bitField0_; if (((bitField0_ & 0x00000001) != 0)) { name_ = name_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000001); } result.name_ = name_; if (((bitField0_ & 0x00000002) != 0)) { packets_ = packets_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000002); } result.packets_ = packets_; if (((bitField0_ & 0x00000004) != 0)) { links_ = links_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000004); } result.links_ = links_; 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.ListPacketNamesResponse) { return mergeFrom((org.yamcs.protobuf.ListPacketNamesResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.yamcs.protobuf.ListPacketNamesResponse other) { if (other == org.yamcs.protobuf.ListPacketNamesResponse.getDefaultInstance()) return this; if (!other.name_.isEmpty()) { if (name_.isEmpty()) { name_ = other.name_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureNameIsMutable(); name_.addAll(other.name_); } onChanged(); } if (!other.packets_.isEmpty()) { if (packets_.isEmpty()) { packets_ = other.packets_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensurePacketsIsMutable(); packets_.addAll(other.packets_); } onChanged(); } if (!other.links_.isEmpty()) { if (links_.isEmpty()) { links_ = other.links_; bitField0_ = (bitField0_ & ~0x00000004); } else { ensureLinksIsMutable(); links_.addAll(other.links_); } 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.ListPacketNamesResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.yamcs.protobuf.ListPacketNamesResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private com.google.protobuf.LazyStringList name_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureNameIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { name_ = new com.google.protobuf.LazyStringArrayList(name_); bitField0_ |= 0x00000001; } } /** *
     * Known packet names.
     * 
* * repeated string name = 1 [deprecated = true]; * @deprecated * @return A list containing the name. */ @java.lang.Deprecated public com.google.protobuf.ProtocolStringList getNameList() { return name_.getUnmodifiableView(); } /** *
     * Known packet names.
     * 
* * repeated string name = 1 [deprecated = true]; * @deprecated * @return The count of name. */ @java.lang.Deprecated public int getNameCount() { return name_.size(); } /** *
     * Known packet names.
     * 
* * repeated string name = 1 [deprecated = true]; * @deprecated * @param index The index of the element to return. * @return The name at the given index. */ @java.lang.Deprecated public java.lang.String getName(int index) { return name_.get(index); } /** *
     * Known packet names.
     * 
* * repeated string name = 1 [deprecated = true]; * @deprecated * @param index The index of the value to return. * @return The bytes of the name at the given index. */ @java.lang.Deprecated public com.google.protobuf.ByteString getNameBytes(int index) { return name_.getByteString(index); } /** *
     * Known packet names.
     * 
* * repeated string name = 1 [deprecated = true]; * @deprecated * @param index The index to set the value at. * @param value The name to set. * @return This builder for chaining. */ @java.lang.Deprecated public Builder setName( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureNameIsMutable(); name_.set(index, value); onChanged(); return this; } /** *
     * Known packet names.
     * 
* * repeated string name = 1 [deprecated = true]; * @deprecated * @param value The name to add. * @return This builder for chaining. */ @java.lang.Deprecated public Builder addName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureNameIsMutable(); name_.add(value); onChanged(); return this; } /** *
     * Known packet names.
     * 
* * repeated string name = 1 [deprecated = true]; * @deprecated * @param values The name to add. * @return This builder for chaining. */ @java.lang.Deprecated public Builder addAllName( java.lang.Iterable values) { ensureNameIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, name_); onChanged(); return this; } /** *
     * Known packet names.
     * 
* * repeated string name = 1 [deprecated = true]; * @deprecated * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearName() { name_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000001); onChanged(); return this; } /** *
     * Known packet names.
     * 
* * repeated string name = 1 [deprecated = true]; * @deprecated * @param value The bytes of the name to add. * @return This builder for chaining. */ @java.lang.Deprecated public Builder addNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureNameIsMutable(); name_.add(value); onChanged(); return this; } private com.google.protobuf.LazyStringList packets_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensurePacketsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { packets_ = new com.google.protobuf.LazyStringArrayList(packets_); bitField0_ |= 0x00000002; } } /** *
     * Known packet names.
     * 
* * repeated string packets = 2; * @return A list containing the packets. */ public com.google.protobuf.ProtocolStringList getPacketsList() { return packets_.getUnmodifiableView(); } /** *
     * Known packet names.
     * 
* * repeated string packets = 2; * @return The count of packets. */ public int getPacketsCount() { return packets_.size(); } /** *
     * Known packet names.
     * 
* * repeated string packets = 2; * @param index The index of the element to return. * @return The packets at the given index. */ public java.lang.String getPackets(int index) { return packets_.get(index); } /** *
     * Known packet names.
     * 
* * repeated string packets = 2; * @param index The index of the value to return. * @return The bytes of the packets at the given index. */ public com.google.protobuf.ByteString getPacketsBytes(int index) { return packets_.getByteString(index); } /** *
     * Known packet names.
     * 
* * repeated string packets = 2; * @param index The index to set the value at. * @param value The packets to set. * @return This builder for chaining. */ public Builder setPackets( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensurePacketsIsMutable(); packets_.set(index, value); onChanged(); return this; } /** *
     * Known packet names.
     * 
* * repeated string packets = 2; * @param value The packets to add. * @return This builder for chaining. */ public Builder addPackets( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensurePacketsIsMutable(); packets_.add(value); onChanged(); return this; } /** *
     * Known packet names.
     * 
* * repeated string packets = 2; * @param values The packets to add. * @return This builder for chaining. */ public Builder addAllPackets( java.lang.Iterable values) { ensurePacketsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, packets_); onChanged(); return this; } /** *
     * Known packet names.
     * 
* * repeated string packets = 2; * @return This builder for chaining. */ public Builder clearPackets() { packets_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000002); onChanged(); return this; } /** *
     * Known packet names.
     * 
* * repeated string packets = 2; * @param value The bytes of the packets to add. * @return This builder for chaining. */ public Builder addPacketsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensurePacketsIsMutable(); packets_.add(value); onChanged(); return this; } private com.google.protobuf.LazyStringList links_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureLinksIsMutable() { if (!((bitField0_ & 0x00000004) != 0)) { links_ = new com.google.protobuf.LazyStringArrayList(links_); bitField0_ |= 0x00000004; } } /** *
     * Known link names.
     * 
* * repeated string links = 3; * @return A list containing the links. */ public com.google.protobuf.ProtocolStringList getLinksList() { return links_.getUnmodifiableView(); } /** *
     * Known link names.
     * 
* * repeated string links = 3; * @return The count of links. */ public int getLinksCount() { return links_.size(); } /** *
     * Known link names.
     * 
* * repeated string links = 3; * @param index The index of the element to return. * @return The links at the given index. */ public java.lang.String getLinks(int index) { return links_.get(index); } /** *
     * Known link names.
     * 
* * repeated string links = 3; * @param index The index of the value to return. * @return The bytes of the links at the given index. */ public com.google.protobuf.ByteString getLinksBytes(int index) { return links_.getByteString(index); } /** *
     * Known link names.
     * 
* * repeated string links = 3; * @param index The index to set the value at. * @param value The links to set. * @return This builder for chaining. */ public Builder setLinks( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureLinksIsMutable(); links_.set(index, value); onChanged(); return this; } /** *
     * Known link names.
     * 
* * repeated string links = 3; * @param value The links to add. * @return This builder for chaining. */ public Builder addLinks( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureLinksIsMutable(); links_.add(value); onChanged(); return this; } /** *
     * Known link names.
     * 
* * repeated string links = 3; * @param values The links to add. * @return This builder for chaining. */ public Builder addAllLinks( java.lang.Iterable values) { ensureLinksIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, links_); onChanged(); return this; } /** *
     * Known link names.
     * 
* * repeated string links = 3; * @return This builder for chaining. */ public Builder clearLinks() { links_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000004); onChanged(); return this; } /** *
     * Known link names.
     * 
* * repeated string links = 3; * @param value The bytes of the links to add. * @return This builder for chaining. */ public Builder addLinksBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureLinksIsMutable(); links_.add(value); onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:yamcs.protobuf.packets.ListPacketNamesResponse) } // @@protoc_insertion_point(class_scope:yamcs.protobuf.packets.ListPacketNamesResponse) private static final org.yamcs.protobuf.ListPacketNamesResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.yamcs.protobuf.ListPacketNamesResponse(); } public static org.yamcs.protobuf.ListPacketNamesResponse getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ListPacketNamesResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ListPacketNamesResponse(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.ListPacketNamesResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy