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

org.yamcs.protobuf.TimelineBand 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/timeline/timeline.proto

package org.yamcs.protobuf;

/**
 * Protobuf type {@code yamcs.protobuf.timeline.TimelineBand}
 */
public final class TimelineBand extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:yamcs.protobuf.timeline.TimelineBand)
    TimelineBandOrBuilder {
private static final long serialVersionUID = 0L;
  // Use TimelineBand.newBuilder() to construct.
  private TimelineBand(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private TimelineBand() {
    instance_ = "";
    id_ = "";
    name_ = "";
    username_ = "";
    source_ = "";
    tags_ = com.google.protobuf.LazyStringArrayList.EMPTY;
    filters_ = java.util.Collections.emptyList();
    type_ = 1;
    description_ = "";
  }

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

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private TimelineBand(
      com.google.protobuf.CodedInputStream input,
      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
      throws com.google.protobuf.InvalidProtocolBufferException {
    this();
    if (extensionRegistry == null) {
      throw new java.lang.NullPointerException();
    }
    int mutable_bitField0_ = 0;
    com.google.protobuf.UnknownFieldSet.Builder unknownFields =
        com.google.protobuf.UnknownFieldSet.newBuilder();
    try {
      boolean done = false;
      while (!done) {
        int tag = input.readTag();
        switch (tag) {
          case 0:
            done = true;
            break;
          case 10: {
            com.google.protobuf.ByteString bs = input.readBytes();
            bitField0_ |= 0x00000001;
            instance_ = bs;
            break;
          }
          case 18: {
            com.google.protobuf.ByteString bs = input.readBytes();
            bitField0_ |= 0x00000002;
            id_ = bs;
            break;
          }
          case 26: {
            com.google.protobuf.ByteString bs = input.readBytes();
            bitField0_ |= 0x00000004;
            name_ = bs;
            break;
          }
          case 34: {
            com.google.protobuf.ByteString bs = input.readBytes();
            bitField0_ |= 0x00000008;
            username_ = bs;
            break;
          }
          case 40: {
            bitField0_ |= 0x00000010;
            shared_ = input.readBool();
            break;
          }
          case 50: {
            com.google.protobuf.ByteString bs = input.readBytes();
            bitField0_ |= 0x00000020;
            source_ = bs;
            break;
          }
          case 58: {
            com.google.protobuf.ByteString bs = input.readBytes();
            if (!((mutable_bitField0_ & 0x00000040) != 0)) {
              tags_ = new com.google.protobuf.LazyStringArrayList();
              mutable_bitField0_ |= 0x00000040;
            }
            tags_.add(bs);
            break;
          }
          case 66: {
            if (!((mutable_bitField0_ & 0x00000080) != 0)) {
              filters_ = new java.util.ArrayList();
              mutable_bitField0_ |= 0x00000080;
            }
            filters_.add(
                input.readMessage(org.yamcs.protobuf.ItemFilter.PARSER, extensionRegistry));
            break;
          }
          case 72: {
            int rawValue = input.readEnum();
              @SuppressWarnings("deprecation")
            org.yamcs.protobuf.TimelineBandType value = org.yamcs.protobuf.TimelineBandType.valueOf(rawValue);
            if (value == null) {
              unknownFields.mergeVarintField(9, rawValue);
            } else {
              bitField0_ |= 0x00000040;
              type_ = rawValue;
            }
            break;
          }
          case 82: {
            com.google.protobuf.ByteString bs = input.readBytes();
            bitField0_ |= 0x00000080;
            description_ = bs;
            break;
          }
          case 90: {
            if (!((mutable_bitField0_ & 0x00000400) != 0)) {
              properties_ = com.google.protobuf.MapField.newMapField(
                  PropertiesDefaultEntryHolder.defaultEntry);
              mutable_bitField0_ |= 0x00000400;
            }
            com.google.protobuf.MapEntry
            properties__ = input.readMessage(
                PropertiesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
            properties_.getMutableMap().put(
                properties__.getKey(), properties__.getValue());
            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_ & 0x00000040) != 0)) {
        tags_ = tags_.getUnmodifiableView();
      }
      if (((mutable_bitField0_ & 0x00000080) != 0)) {
        filters_ = java.util.Collections.unmodifiableList(filters_);
      }
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return org.yamcs.protobuf.TimelineProto.internal_static_yamcs_protobuf_timeline_TimelineBand_descriptor;
  }

  @SuppressWarnings({"rawtypes"})
  @java.lang.Override
  protected com.google.protobuf.MapField internalGetMapField(
      int number) {
    switch (number) {
      case 11:
        return internalGetProperties();
      default:
        throw new RuntimeException(
            "Invalid map field number: " + number);
    }
  }
  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return org.yamcs.protobuf.TimelineProto.internal_static_yamcs_protobuf_timeline_TimelineBand_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            org.yamcs.protobuf.TimelineBand.class, org.yamcs.protobuf.TimelineBand.Builder.class);
  }

  private int bitField0_;
  public static final int INSTANCE_FIELD_NUMBER = 1;
  private volatile java.lang.Object instance_;
  /**
   * 
   * Yamcs instance name
   * 
* * optional string instance = 1; * @return Whether the instance field is set. */ @java.lang.Override public boolean hasInstance() { return ((bitField0_ & 0x00000001) != 0); } /** *
   * Yamcs instance name
   * 
* * optional string instance = 1; * @return The instance. */ @java.lang.Override public java.lang.String getInstance() { java.lang.Object ref = instance_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { instance_ = s; } return s; } } /** *
   * Yamcs instance name
   * 
* * optional string instance = 1; * @return The bytes for instance. */ @java.lang.Override public com.google.protobuf.ByteString getInstanceBytes() { java.lang.Object ref = instance_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); instance_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ID_FIELD_NUMBER = 2; private volatile java.lang.Object id_; /** *
   * Band identifier (UUID)
   * 
* * optional string id = 2; * @return Whether the id field is set. */ @java.lang.Override public boolean hasId() { return ((bitField0_ & 0x00000002) != 0); } /** *
   * Band identifier (UUID)
   * 
* * optional string id = 2; * @return The id. */ @java.lang.Override public java.lang.String getId() { java.lang.Object ref = id_; 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()) { id_ = s; } return s; } } /** *
   * Band identifier (UUID)
   * 
* * optional string id = 2; * @return The bytes for id. */ @java.lang.Override public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int NAME_FIELD_NUMBER = 3; private volatile java.lang.Object name_; /** *
   * Band name
   * 
* * optional string name = 3; * @return Whether the name field is set. */ @java.lang.Override public boolean hasName() { return ((bitField0_ & 0x00000004) != 0); } /** *
   * Band name
   * 
* * optional string name = 3; * @return The name. */ @java.lang.Override public java.lang.String getName() { java.lang.Object ref = name_; 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()) { name_ = s; } return s; } } /** *
   * Band name
   * 
* * optional string name = 3; * @return The bytes for name. */ @java.lang.Override public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int USERNAME_FIELD_NUMBER = 4; private volatile java.lang.Object username_; /** *
   * User who has created the band
   * 
* * optional string username = 4; * @return Whether the username field is set. */ @java.lang.Override public boolean hasUsername() { return ((bitField0_ & 0x00000008) != 0); } /** *
   * User who has created the band
   * 
* * optional string username = 4; * @return The username. */ @java.lang.Override public java.lang.String getUsername() { java.lang.Object ref = username_; 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()) { username_ = s; } return s; } } /** *
   * User who has created the band
   * 
* * optional string username = 4; * @return The bytes for username. */ @java.lang.Override public com.google.protobuf.ByteString getUsernameBytes() { java.lang.Object ref = username_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); username_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int SHARED_FIELD_NUMBER = 5; private boolean shared_; /** *
   * If true, all users have access to this band, otherwise only the user who has created it
   * 
* * optional bool shared = 5; * @return Whether the shared field is set. */ @java.lang.Override public boolean hasShared() { return ((bitField0_ & 0x00000010) != 0); } /** *
   * If true, all users have access to this band, otherwise only the user who has created it
   * 
* * optional bool shared = 5; * @return The shared. */ @java.lang.Override public boolean getShared() { return shared_; } public static final int SOURCE_FIELD_NUMBER = 6; private volatile java.lang.Object source_; /** *
   * The band contains only items from this source
   * 
* * optional string source = 6; * @return Whether the source field is set. */ @java.lang.Override public boolean hasSource() { return ((bitField0_ & 0x00000020) != 0); } /** *
   * The band contains only items from this source
   * 
* * optional string source = 6; * @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; } } /** *
   * The band contains only items from this source
   * 
* * optional string source = 6; * @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 TAGS_FIELD_NUMBER = 7; private com.google.protobuf.LazyStringList tags_; /** *
   *the band contains only items with these tags; if the list is empty, then all items from the given source are part of the band
   *this is deprecated, the filters below should be used to select the items
   * 
* * repeated string tags = 7 [deprecated = true]; * @deprecated * @return A list containing the tags. */ @java.lang.Deprecated public com.google.protobuf.ProtocolStringList getTagsList() { return tags_; } /** *
   *the band contains only items with these tags; if the list is empty, then all items from the given source are part of the band
   *this is deprecated, the filters below should be used to select the items
   * 
* * repeated string tags = 7 [deprecated = true]; * @deprecated * @return The count of tags. */ @java.lang.Deprecated public int getTagsCount() { return tags_.size(); } /** *
   *the band contains only items with these tags; if the list is empty, then all items from the given source are part of the band
   *this is deprecated, the filters below should be used to select the items
   * 
* * repeated string tags = 7 [deprecated = true]; * @deprecated * @param index The index of the element to return. * @return The tags at the given index. */ @java.lang.Deprecated public java.lang.String getTags(int index) { return tags_.get(index); } /** *
   *the band contains only items with these tags; if the list is empty, then all items from the given source are part of the band
   *this is deprecated, the filters below should be used to select the items
   * 
* * repeated string tags = 7 [deprecated = true]; * @deprecated * @param index The index of the value to return. * @return The bytes of the tags at the given index. */ @java.lang.Deprecated public com.google.protobuf.ByteString getTagsBytes(int index) { return tags_.getByteString(index); } public static final int FILTERS_FIELD_NUMBER = 8; private java.util.List filters_; /** *
   * The filters are to be considered in an AND manner.
   * An item is part of the band if it matches all filters.
   * If the list is empty, then all items from the given source are part of the band
   * 
* * repeated .yamcs.protobuf.timeline.ItemFilter filters = 8; */ @java.lang.Override public java.util.List getFiltersList() { return filters_; } /** *
   * The filters are to be considered in an AND manner.
   * An item is part of the band if it matches all filters.
   * If the list is empty, then all items from the given source are part of the band
   * 
* * repeated .yamcs.protobuf.timeline.ItemFilter filters = 8; */ @java.lang.Override public java.util.List getFiltersOrBuilderList() { return filters_; } /** *
   * The filters are to be considered in an AND manner.
   * An item is part of the band if it matches all filters.
   * If the list is empty, then all items from the given source are part of the band
   * 
* * repeated .yamcs.protobuf.timeline.ItemFilter filters = 8; */ @java.lang.Override public int getFiltersCount() { return filters_.size(); } /** *
   * The filters are to be considered in an AND manner.
   * An item is part of the band if it matches all filters.
   * If the list is empty, then all items from the given source are part of the band
   * 
* * repeated .yamcs.protobuf.timeline.ItemFilter filters = 8; */ @java.lang.Override public org.yamcs.protobuf.ItemFilter getFilters(int index) { return filters_.get(index); } /** *
   * The filters are to be considered in an AND manner.
   * An item is part of the band if it matches all filters.
   * If the list is empty, then all items from the given source are part of the band
   * 
* * repeated .yamcs.protobuf.timeline.ItemFilter filters = 8; */ @java.lang.Override public org.yamcs.protobuf.ItemFilterOrBuilder getFiltersOrBuilder( int index) { return filters_.get(index); } public static final int TYPE_FIELD_NUMBER = 9; private int type_; /** *
   * Type of band
   * 
* * optional .yamcs.protobuf.timeline.TimelineBandType type = 9; * @return Whether the type field is set. */ @java.lang.Override public boolean hasType() { return ((bitField0_ & 0x00000040) != 0); } /** *
   * Type of band
   * 
* * optional .yamcs.protobuf.timeline.TimelineBandType type = 9; * @return The type. */ @java.lang.Override public org.yamcs.protobuf.TimelineBandType getType() { @SuppressWarnings("deprecation") org.yamcs.protobuf.TimelineBandType result = org.yamcs.protobuf.TimelineBandType.valueOf(type_); return result == null ? org.yamcs.protobuf.TimelineBandType.TIME_RULER : result; } public static final int DESCRIPTION_FIELD_NUMBER = 10; private volatile java.lang.Object description_; /** *
   * Band description
   * 
* * optional string description = 10; * @return Whether the description field is set. */ @java.lang.Override public boolean hasDescription() { return ((bitField0_ & 0x00000080) != 0); } /** *
   * Band description
   * 
* * optional string description = 10; * @return The description. */ @java.lang.Override public java.lang.String getDescription() { java.lang.Object ref = description_; 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()) { description_ = s; } return s; } } /** *
   * Band description
   * 
* * optional string description = 10; * @return The bytes for description. */ @java.lang.Override public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); description_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PROPERTIES_FIELD_NUMBER = 11; private static final class PropertiesDefaultEntryHolder { static final com.google.protobuf.MapEntry< java.lang.String, java.lang.String> defaultEntry = com.google.protobuf.MapEntry .newDefaultInstance( org.yamcs.protobuf.TimelineProto.internal_static_yamcs_protobuf_timeline_TimelineBand_PropertiesEntry_descriptor, com.google.protobuf.WireFormat.FieldType.STRING, "", com.google.protobuf.WireFormat.FieldType.STRING, ""); } private com.google.protobuf.MapField< java.lang.String, java.lang.String> properties_; private com.google.protobuf.MapField internalGetProperties() { if (properties_ == null) { return com.google.protobuf.MapField.emptyMapField( PropertiesDefaultEntryHolder.defaultEntry); } return properties_; } public int getPropertiesCount() { return internalGetProperties().getMap().size(); } /** *
   * Additional properties used by yamcs-web to render this band
   * 
* * map<string, string> properties = 11; */ @java.lang.Override public boolean containsProperties( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetProperties().getMap().containsKey(key); } /** * Use {@link #getPropertiesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getProperties() { return getPropertiesMap(); } /** *
   * Additional properties used by yamcs-web to render this band
   * 
* * map<string, string> properties = 11; */ @java.lang.Override public java.util.Map getPropertiesMap() { return internalGetProperties().getMap(); } /** *
   * Additional properties used by yamcs-web to render this band
   * 
* * map<string, string> properties = 11; */ @java.lang.Override public java.lang.String getPropertiesOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetProperties().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
   * Additional properties used by yamcs-web to render this band
   * 
* * map<string, string> properties = 11; */ @java.lang.Override public java.lang.String getPropertiesOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetProperties().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (((bitField0_ & 0x00000001) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, instance_); } if (((bitField0_ & 0x00000002) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, id_); } if (((bitField0_ & 0x00000004) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, name_); } if (((bitField0_ & 0x00000008) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, username_); } if (((bitField0_ & 0x00000010) != 0)) { output.writeBool(5, shared_); } if (((bitField0_ & 0x00000020) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 6, source_); } for (int i = 0; i < tags_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, tags_.getRaw(i)); } for (int i = 0; i < filters_.size(); i++) { output.writeMessage(8, filters_.get(i)); } if (((bitField0_ & 0x00000040) != 0)) { output.writeEnum(9, type_); } if (((bitField0_ & 0x00000080) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 10, description_); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetProperties(), PropertiesDefaultEntryHolder.defaultEntry, 11); unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, instance_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, id_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, name_); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, username_); } if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(5, shared_); } if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, source_); } { int dataSize = 0; for (int i = 0; i < tags_.size(); i++) { dataSize += computeStringSizeNoTag(tags_.getRaw(i)); } size += dataSize; size += 1 * getTagsList().size(); } for (int i = 0; i < filters_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(8, filters_.get(i)); } if (((bitField0_ & 0x00000040) != 0)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(9, type_); } if (((bitField0_ & 0x00000080) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, description_); } for (java.util.Map.Entry entry : internalGetProperties().getMap().entrySet()) { com.google.protobuf.MapEntry properties__ = PropertiesDefaultEntryHolder.defaultEntry.newBuilderForType() .setKey(entry.getKey()) .setValue(entry.getValue()) .build(); size += com.google.protobuf.CodedOutputStream .computeMessageSize(11, properties__); } 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.TimelineBand)) { return super.equals(obj); } org.yamcs.protobuf.TimelineBand other = (org.yamcs.protobuf.TimelineBand) obj; if (hasInstance() != other.hasInstance()) return false; if (hasInstance()) { if (!getInstance() .equals(other.getInstance())) return false; } if (hasId() != other.hasId()) return false; if (hasId()) { if (!getId() .equals(other.getId())) return false; } if (hasName() != other.hasName()) return false; if (hasName()) { if (!getName() .equals(other.getName())) return false; } if (hasUsername() != other.hasUsername()) return false; if (hasUsername()) { if (!getUsername() .equals(other.getUsername())) return false; } if (hasShared() != other.hasShared()) return false; if (hasShared()) { if (getShared() != other.getShared()) return false; } if (hasSource() != other.hasSource()) return false; if (hasSource()) { if (!getSource() .equals(other.getSource())) return false; } if (!getTagsList() .equals(other.getTagsList())) return false; if (!getFiltersList() .equals(other.getFiltersList())) return false; if (hasType() != other.hasType()) return false; if (hasType()) { if (type_ != other.type_) return false; } if (hasDescription() != other.hasDescription()) return false; if (hasDescription()) { if (!getDescription() .equals(other.getDescription())) return false; } if (!internalGetProperties().equals( other.internalGetProperties())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); if (hasInstance()) { hash = (37 * hash) + INSTANCE_FIELD_NUMBER; hash = (53 * hash) + getInstance().hashCode(); } if (hasId()) { hash = (37 * hash) + ID_FIELD_NUMBER; hash = (53 * hash) + getId().hashCode(); } if (hasName()) { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); } if (hasUsername()) { hash = (37 * hash) + USERNAME_FIELD_NUMBER; hash = (53 * hash) + getUsername().hashCode(); } if (hasShared()) { hash = (37 * hash) + SHARED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getShared()); } if (hasSource()) { hash = (37 * hash) + SOURCE_FIELD_NUMBER; hash = (53 * hash) + getSource().hashCode(); } if (getTagsCount() > 0) { hash = (37 * hash) + TAGS_FIELD_NUMBER; hash = (53 * hash) + getTagsList().hashCode(); } if (getFiltersCount() > 0) { hash = (37 * hash) + FILTERS_FIELD_NUMBER; hash = (53 * hash) + getFiltersList().hashCode(); } if (hasType()) { hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_; } if (hasDescription()) { hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; hash = (53 * hash) + getDescription().hashCode(); } if (!internalGetProperties().getMap().isEmpty()) { hash = (37 * hash) + PROPERTIES_FIELD_NUMBER; hash = (53 * hash) + internalGetProperties().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.yamcs.protobuf.TimelineBand parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.yamcs.protobuf.TimelineBand 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.TimelineBand parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.yamcs.protobuf.TimelineBand 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.TimelineBand parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.yamcs.protobuf.TimelineBand parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.yamcs.protobuf.TimelineBand parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.yamcs.protobuf.TimelineBand 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.TimelineBand parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.yamcs.protobuf.TimelineBand 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.TimelineBand parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.yamcs.protobuf.TimelineBand 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.TimelineBand 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.TimelineBand} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yamcs.protobuf.timeline.TimelineBand) org.yamcs.protobuf.TimelineBandOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.yamcs.protobuf.TimelineProto.internal_static_yamcs_protobuf_timeline_TimelineBand_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 11: return internalGetProperties(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { case 11: return internalGetMutableProperties(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.yamcs.protobuf.TimelineProto.internal_static_yamcs_protobuf_timeline_TimelineBand_fieldAccessorTable .ensureFieldAccessorsInitialized( org.yamcs.protobuf.TimelineBand.class, org.yamcs.protobuf.TimelineBand.Builder.class); } // Construct using org.yamcs.protobuf.TimelineBand.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getFiltersFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); instance_ = ""; bitField0_ = (bitField0_ & ~0x00000001); id_ = ""; bitField0_ = (bitField0_ & ~0x00000002); name_ = ""; bitField0_ = (bitField0_ & ~0x00000004); username_ = ""; bitField0_ = (bitField0_ & ~0x00000008); shared_ = false; bitField0_ = (bitField0_ & ~0x00000010); source_ = ""; bitField0_ = (bitField0_ & ~0x00000020); tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000040); if (filtersBuilder_ == null) { filters_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000080); } else { filtersBuilder_.clear(); } type_ = 1; bitField0_ = (bitField0_ & ~0x00000100); description_ = ""; bitField0_ = (bitField0_ & ~0x00000200); internalGetMutableProperties().clear(); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.yamcs.protobuf.TimelineProto.internal_static_yamcs_protobuf_timeline_TimelineBand_descriptor; } @java.lang.Override public org.yamcs.protobuf.TimelineBand getDefaultInstanceForType() { return org.yamcs.protobuf.TimelineBand.getDefaultInstance(); } @java.lang.Override public org.yamcs.protobuf.TimelineBand build() { org.yamcs.protobuf.TimelineBand result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.yamcs.protobuf.TimelineBand buildPartial() { org.yamcs.protobuf.TimelineBand result = new org.yamcs.protobuf.TimelineBand(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { to_bitField0_ |= 0x00000001; } result.instance_ = instance_; if (((from_bitField0_ & 0x00000002) != 0)) { to_bitField0_ |= 0x00000002; } result.id_ = id_; if (((from_bitField0_ & 0x00000004) != 0)) { to_bitField0_ |= 0x00000004; } result.name_ = name_; if (((from_bitField0_ & 0x00000008) != 0)) { to_bitField0_ |= 0x00000008; } result.username_ = username_; if (((from_bitField0_ & 0x00000010) != 0)) { result.shared_ = shared_; to_bitField0_ |= 0x00000010; } if (((from_bitField0_ & 0x00000020) != 0)) { to_bitField0_ |= 0x00000020; } result.source_ = source_; if (((bitField0_ & 0x00000040) != 0)) { tags_ = tags_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000040); } result.tags_ = tags_; if (filtersBuilder_ == null) { if (((bitField0_ & 0x00000080) != 0)) { filters_ = java.util.Collections.unmodifiableList(filters_); bitField0_ = (bitField0_ & ~0x00000080); } result.filters_ = filters_; } else { result.filters_ = filtersBuilder_.build(); } if (((from_bitField0_ & 0x00000100) != 0)) { to_bitField0_ |= 0x00000040; } result.type_ = type_; if (((from_bitField0_ & 0x00000200) != 0)) { to_bitField0_ |= 0x00000080; } result.description_ = description_; result.properties_ = internalGetProperties(); result.properties_.makeImmutable(); 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.TimelineBand) { return mergeFrom((org.yamcs.protobuf.TimelineBand)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.yamcs.protobuf.TimelineBand other) { if (other == org.yamcs.protobuf.TimelineBand.getDefaultInstance()) return this; if (other.hasInstance()) { bitField0_ |= 0x00000001; instance_ = other.instance_; onChanged(); } if (other.hasId()) { bitField0_ |= 0x00000002; id_ = other.id_; onChanged(); } if (other.hasName()) { bitField0_ |= 0x00000004; name_ = other.name_; onChanged(); } if (other.hasUsername()) { bitField0_ |= 0x00000008; username_ = other.username_; onChanged(); } if (other.hasShared()) { setShared(other.getShared()); } if (other.hasSource()) { bitField0_ |= 0x00000020; source_ = other.source_; onChanged(); } if (!other.tags_.isEmpty()) { if (tags_.isEmpty()) { tags_ = other.tags_; bitField0_ = (bitField0_ & ~0x00000040); } else { ensureTagsIsMutable(); tags_.addAll(other.tags_); } onChanged(); } if (filtersBuilder_ == null) { if (!other.filters_.isEmpty()) { if (filters_.isEmpty()) { filters_ = other.filters_; bitField0_ = (bitField0_ & ~0x00000080); } else { ensureFiltersIsMutable(); filters_.addAll(other.filters_); } onChanged(); } } else { if (!other.filters_.isEmpty()) { if (filtersBuilder_.isEmpty()) { filtersBuilder_.dispose(); filtersBuilder_ = null; filters_ = other.filters_; bitField0_ = (bitField0_ & ~0x00000080); filtersBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getFiltersFieldBuilder() : null; } else { filtersBuilder_.addAllMessages(other.filters_); } } } if (other.hasType()) { setType(other.getType()); } if (other.hasDescription()) { bitField0_ |= 0x00000200; description_ = other.description_; onChanged(); } internalGetMutableProperties().mergeFrom( other.internalGetProperties()); 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.TimelineBand parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.yamcs.protobuf.TimelineBand) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object instance_ = ""; /** *
     * Yamcs instance name
     * 
* * optional string instance = 1; * @return Whether the instance field is set. */ public boolean hasInstance() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * Yamcs instance name
     * 
* * optional string instance = 1; * @return The instance. */ public java.lang.String getInstance() { java.lang.Object ref = instance_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { instance_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
     * Yamcs instance name
     * 
* * optional string instance = 1; * @return The bytes for instance. */ public com.google.protobuf.ByteString getInstanceBytes() { java.lang.Object ref = instance_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); instance_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Yamcs instance name
     * 
* * optional string instance = 1; * @param value The instance to set. * @return This builder for chaining. */ public Builder setInstance( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; instance_ = value; onChanged(); return this; } /** *
     * Yamcs instance name
     * 
* * optional string instance = 1; * @return This builder for chaining. */ public Builder clearInstance() { bitField0_ = (bitField0_ & ~0x00000001); instance_ = getDefaultInstance().getInstance(); onChanged(); return this; } /** *
     * Yamcs instance name
     * 
* * optional string instance = 1; * @param value The bytes for instance to set. * @return This builder for chaining. */ public Builder setInstanceBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000001; instance_ = value; onChanged(); return this; } private java.lang.Object id_ = ""; /** *
     * Band identifier (UUID)
     * 
* * optional string id = 2; * @return Whether the id field is set. */ public boolean hasId() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * Band identifier (UUID)
     * 
* * optional string id = 2; * @return The id. */ public java.lang.String getId() { java.lang.Object ref = id_; 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()) { id_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
     * Band identifier (UUID)
     * 
* * optional string id = 2; * @return The bytes for id. */ public com.google.protobuf.ByteString getIdBytes() { java.lang.Object ref = id_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); id_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Band identifier (UUID)
     * 
* * optional string id = 2; * @param value The id to set. * @return This builder for chaining. */ public Builder setId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; id_ = value; onChanged(); return this; } /** *
     * Band identifier (UUID)
     * 
* * optional string id = 2; * @return This builder for chaining. */ public Builder clearId() { bitField0_ = (bitField0_ & ~0x00000002); id_ = getDefaultInstance().getId(); onChanged(); return this; } /** *
     * Band identifier (UUID)
     * 
* * optional string id = 2; * @param value The bytes for id to set. * @return This builder for chaining. */ public Builder setIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; id_ = value; onChanged(); return this; } private java.lang.Object name_ = ""; /** *
     * Band name
     * 
* * optional string name = 3; * @return Whether the name field is set. */ public boolean hasName() { return ((bitField0_ & 0x00000004) != 0); } /** *
     * Band name
     * 
* * optional string name = 3; * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; 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()) { name_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
     * Band name
     * 
* * optional string name = 3; * @return The bytes for name. */ public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); name_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Band name
     * 
* * optional string name = 3; * @param value The name to set. * @return This builder for chaining. */ public Builder setName( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; name_ = value; onChanged(); return this; } /** *
     * Band name
     * 
* * optional string name = 3; * @return This builder for chaining. */ public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000004); name_ = getDefaultInstance().getName(); onChanged(); return this; } /** *
     * Band name
     * 
* * optional string name = 3; * @param value The bytes for name to set. * @return This builder for chaining. */ public Builder setNameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; name_ = value; onChanged(); return this; } private java.lang.Object username_ = ""; /** *
     * User who has created the band
     * 
* * optional string username = 4; * @return Whether the username field is set. */ public boolean hasUsername() { return ((bitField0_ & 0x00000008) != 0); } /** *
     * User who has created the band
     * 
* * optional string username = 4; * @return The username. */ public java.lang.String getUsername() { java.lang.Object ref = username_; 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()) { username_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
     * User who has created the band
     * 
* * optional string username = 4; * @return The bytes for username. */ public com.google.protobuf.ByteString getUsernameBytes() { java.lang.Object ref = username_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); username_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * User who has created the band
     * 
* * optional string username = 4; * @param value The username to set. * @return This builder for chaining. */ public Builder setUsername( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; username_ = value; onChanged(); return this; } /** *
     * User who has created the band
     * 
* * optional string username = 4; * @return This builder for chaining. */ public Builder clearUsername() { bitField0_ = (bitField0_ & ~0x00000008); username_ = getDefaultInstance().getUsername(); onChanged(); return this; } /** *
     * User who has created the band
     * 
* * optional string username = 4; * @param value The bytes for username to set. * @return This builder for chaining. */ public Builder setUsernameBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; username_ = value; onChanged(); return this; } private boolean shared_ ; /** *
     * If true, all users have access to this band, otherwise only the user who has created it
     * 
* * optional bool shared = 5; * @return Whether the shared field is set. */ @java.lang.Override public boolean hasShared() { return ((bitField0_ & 0x00000010) != 0); } /** *
     * If true, all users have access to this band, otherwise only the user who has created it
     * 
* * optional bool shared = 5; * @return The shared. */ @java.lang.Override public boolean getShared() { return shared_; } /** *
     * If true, all users have access to this band, otherwise only the user who has created it
     * 
* * optional bool shared = 5; * @param value The shared to set. * @return This builder for chaining. */ public Builder setShared(boolean value) { bitField0_ |= 0x00000010; shared_ = value; onChanged(); return this; } /** *
     * If true, all users have access to this band, otherwise only the user who has created it
     * 
* * optional bool shared = 5; * @return This builder for chaining. */ public Builder clearShared() { bitField0_ = (bitField0_ & ~0x00000010); shared_ = false; onChanged(); return this; } private java.lang.Object source_ = ""; /** *
     * The band contains only items from this source
     * 
* * optional string source = 6; * @return Whether the source field is set. */ public boolean hasSource() { return ((bitField0_ & 0x00000020) != 0); } /** *
     * The band contains only items from this source
     * 
* * optional string source = 6; * @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; } } /** *
     * The band contains only items from this source
     * 
* * optional string source = 6; * @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; } } /** *
     * The band contains only items from this source
     * 
* * optional string source = 6; * @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_ |= 0x00000020; source_ = value; onChanged(); return this; } /** *
     * The band contains only items from this source
     * 
* * optional string source = 6; * @return This builder for chaining. */ public Builder clearSource() { bitField0_ = (bitField0_ & ~0x00000020); source_ = getDefaultInstance().getSource(); onChanged(); return this; } /** *
     * The band contains only items from this source
     * 
* * optional string source = 6; * @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_ |= 0x00000020; source_ = value; onChanged(); return this; } private com.google.protobuf.LazyStringList tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; private void ensureTagsIsMutable() { if (!((bitField0_ & 0x00000040) != 0)) { tags_ = new com.google.protobuf.LazyStringArrayList(tags_); bitField0_ |= 0x00000040; } } /** *
     *the band contains only items with these tags; if the list is empty, then all items from the given source are part of the band
     *this is deprecated, the filters below should be used to select the items
     * 
* * repeated string tags = 7 [deprecated = true]; * @deprecated * @return A list containing the tags. */ @java.lang.Deprecated public com.google.protobuf.ProtocolStringList getTagsList() { return tags_.getUnmodifiableView(); } /** *
     *the band contains only items with these tags; if the list is empty, then all items from the given source are part of the band
     *this is deprecated, the filters below should be used to select the items
     * 
* * repeated string tags = 7 [deprecated = true]; * @deprecated * @return The count of tags. */ @java.lang.Deprecated public int getTagsCount() { return tags_.size(); } /** *
     *the band contains only items with these tags; if the list is empty, then all items from the given source are part of the band
     *this is deprecated, the filters below should be used to select the items
     * 
* * repeated string tags = 7 [deprecated = true]; * @deprecated * @param index The index of the element to return. * @return The tags at the given index. */ @java.lang.Deprecated public java.lang.String getTags(int index) { return tags_.get(index); } /** *
     *the band contains only items with these tags; if the list is empty, then all items from the given source are part of the band
     *this is deprecated, the filters below should be used to select the items
     * 
* * repeated string tags = 7 [deprecated = true]; * @deprecated * @param index The index of the value to return. * @return The bytes of the tags at the given index. */ @java.lang.Deprecated public com.google.protobuf.ByteString getTagsBytes(int index) { return tags_.getByteString(index); } /** *
     *the band contains only items with these tags; if the list is empty, then all items from the given source are part of the band
     *this is deprecated, the filters below should be used to select the items
     * 
* * repeated string tags = 7 [deprecated = true]; * @deprecated * @param index The index to set the value at. * @param value The tags to set. * @return This builder for chaining. */ @java.lang.Deprecated public Builder setTags( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureTagsIsMutable(); tags_.set(index, value); onChanged(); return this; } /** *
     *the band contains only items with these tags; if the list is empty, then all items from the given source are part of the band
     *this is deprecated, the filters below should be used to select the items
     * 
* * repeated string tags = 7 [deprecated = true]; * @deprecated * @param value The tags to add. * @return This builder for chaining. */ @java.lang.Deprecated public Builder addTags( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureTagsIsMutable(); tags_.add(value); onChanged(); return this; } /** *
     *the band contains only items with these tags; if the list is empty, then all items from the given source are part of the band
     *this is deprecated, the filters below should be used to select the items
     * 
* * repeated string tags = 7 [deprecated = true]; * @deprecated * @param values The tags to add. * @return This builder for chaining. */ @java.lang.Deprecated public Builder addAllTags( java.lang.Iterable values) { ensureTagsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, tags_); onChanged(); return this; } /** *
     *the band contains only items with these tags; if the list is empty, then all items from the given source are part of the band
     *this is deprecated, the filters below should be used to select the items
     * 
* * repeated string tags = 7 [deprecated = true]; * @deprecated * @return This builder for chaining. */ @java.lang.Deprecated public Builder clearTags() { tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } /** *
     *the band contains only items with these tags; if the list is empty, then all items from the given source are part of the band
     *this is deprecated, the filters below should be used to select the items
     * 
* * repeated string tags = 7 [deprecated = true]; * @deprecated * @param value The bytes of the tags to add. * @return This builder for chaining. */ @java.lang.Deprecated public Builder addTagsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureTagsIsMutable(); tags_.add(value); onChanged(); return this; } private java.util.List filters_ = java.util.Collections.emptyList(); private void ensureFiltersIsMutable() { if (!((bitField0_ & 0x00000080) != 0)) { filters_ = new java.util.ArrayList(filters_); bitField0_ |= 0x00000080; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.yamcs.protobuf.ItemFilter, org.yamcs.protobuf.ItemFilter.Builder, org.yamcs.protobuf.ItemFilterOrBuilder> filtersBuilder_; /** *
     * The filters are to be considered in an AND manner.
     * An item is part of the band if it matches all filters.
     * If the list is empty, then all items from the given source are part of the band
     * 
* * repeated .yamcs.protobuf.timeline.ItemFilter filters = 8; */ public java.util.List getFiltersList() { if (filtersBuilder_ == null) { return java.util.Collections.unmodifiableList(filters_); } else { return filtersBuilder_.getMessageList(); } } /** *
     * The filters are to be considered in an AND manner.
     * An item is part of the band if it matches all filters.
     * If the list is empty, then all items from the given source are part of the band
     * 
* * repeated .yamcs.protobuf.timeline.ItemFilter filters = 8; */ public int getFiltersCount() { if (filtersBuilder_ == null) { return filters_.size(); } else { return filtersBuilder_.getCount(); } } /** *
     * The filters are to be considered in an AND manner.
     * An item is part of the band if it matches all filters.
     * If the list is empty, then all items from the given source are part of the band
     * 
* * repeated .yamcs.protobuf.timeline.ItemFilter filters = 8; */ public org.yamcs.protobuf.ItemFilter getFilters(int index) { if (filtersBuilder_ == null) { return filters_.get(index); } else { return filtersBuilder_.getMessage(index); } } /** *
     * The filters are to be considered in an AND manner.
     * An item is part of the band if it matches all filters.
     * If the list is empty, then all items from the given source are part of the band
     * 
* * repeated .yamcs.protobuf.timeline.ItemFilter filters = 8; */ public Builder setFilters( int index, org.yamcs.protobuf.ItemFilter value) { if (filtersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFiltersIsMutable(); filters_.set(index, value); onChanged(); } else { filtersBuilder_.setMessage(index, value); } return this; } /** *
     * The filters are to be considered in an AND manner.
     * An item is part of the band if it matches all filters.
     * If the list is empty, then all items from the given source are part of the band
     * 
* * repeated .yamcs.protobuf.timeline.ItemFilter filters = 8; */ public Builder setFilters( int index, org.yamcs.protobuf.ItemFilter.Builder builderForValue) { if (filtersBuilder_ == null) { ensureFiltersIsMutable(); filters_.set(index, builderForValue.build()); onChanged(); } else { filtersBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * The filters are to be considered in an AND manner.
     * An item is part of the band if it matches all filters.
     * If the list is empty, then all items from the given source are part of the band
     * 
* * repeated .yamcs.protobuf.timeline.ItemFilter filters = 8; */ public Builder addFilters(org.yamcs.protobuf.ItemFilter value) { if (filtersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFiltersIsMutable(); filters_.add(value); onChanged(); } else { filtersBuilder_.addMessage(value); } return this; } /** *
     * The filters are to be considered in an AND manner.
     * An item is part of the band if it matches all filters.
     * If the list is empty, then all items from the given source are part of the band
     * 
* * repeated .yamcs.protobuf.timeline.ItemFilter filters = 8; */ public Builder addFilters( int index, org.yamcs.protobuf.ItemFilter value) { if (filtersBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureFiltersIsMutable(); filters_.add(index, value); onChanged(); } else { filtersBuilder_.addMessage(index, value); } return this; } /** *
     * The filters are to be considered in an AND manner.
     * An item is part of the band if it matches all filters.
     * If the list is empty, then all items from the given source are part of the band
     * 
* * repeated .yamcs.protobuf.timeline.ItemFilter filters = 8; */ public Builder addFilters( org.yamcs.protobuf.ItemFilter.Builder builderForValue) { if (filtersBuilder_ == null) { ensureFiltersIsMutable(); filters_.add(builderForValue.build()); onChanged(); } else { filtersBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * The filters are to be considered in an AND manner.
     * An item is part of the band if it matches all filters.
     * If the list is empty, then all items from the given source are part of the band
     * 
* * repeated .yamcs.protobuf.timeline.ItemFilter filters = 8; */ public Builder addFilters( int index, org.yamcs.protobuf.ItemFilter.Builder builderForValue) { if (filtersBuilder_ == null) { ensureFiltersIsMutable(); filters_.add(index, builderForValue.build()); onChanged(); } else { filtersBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * The filters are to be considered in an AND manner.
     * An item is part of the band if it matches all filters.
     * If the list is empty, then all items from the given source are part of the band
     * 
* * repeated .yamcs.protobuf.timeline.ItemFilter filters = 8; */ public Builder addAllFilters( java.lang.Iterable values) { if (filtersBuilder_ == null) { ensureFiltersIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, filters_); onChanged(); } else { filtersBuilder_.addAllMessages(values); } return this; } /** *
     * The filters are to be considered in an AND manner.
     * An item is part of the band if it matches all filters.
     * If the list is empty, then all items from the given source are part of the band
     * 
* * repeated .yamcs.protobuf.timeline.ItemFilter filters = 8; */ public Builder clearFilters() { if (filtersBuilder_ == null) { filters_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000080); onChanged(); } else { filtersBuilder_.clear(); } return this; } /** *
     * The filters are to be considered in an AND manner.
     * An item is part of the band if it matches all filters.
     * If the list is empty, then all items from the given source are part of the band
     * 
* * repeated .yamcs.protobuf.timeline.ItemFilter filters = 8; */ public Builder removeFilters(int index) { if (filtersBuilder_ == null) { ensureFiltersIsMutable(); filters_.remove(index); onChanged(); } else { filtersBuilder_.remove(index); } return this; } /** *
     * The filters are to be considered in an AND manner.
     * An item is part of the band if it matches all filters.
     * If the list is empty, then all items from the given source are part of the band
     * 
* * repeated .yamcs.protobuf.timeline.ItemFilter filters = 8; */ public org.yamcs.protobuf.ItemFilter.Builder getFiltersBuilder( int index) { return getFiltersFieldBuilder().getBuilder(index); } /** *
     * The filters are to be considered in an AND manner.
     * An item is part of the band if it matches all filters.
     * If the list is empty, then all items from the given source are part of the band
     * 
* * repeated .yamcs.protobuf.timeline.ItemFilter filters = 8; */ public org.yamcs.protobuf.ItemFilterOrBuilder getFiltersOrBuilder( int index) { if (filtersBuilder_ == null) { return filters_.get(index); } else { return filtersBuilder_.getMessageOrBuilder(index); } } /** *
     * The filters are to be considered in an AND manner.
     * An item is part of the band if it matches all filters.
     * If the list is empty, then all items from the given source are part of the band
     * 
* * repeated .yamcs.protobuf.timeline.ItemFilter filters = 8; */ public java.util.List getFiltersOrBuilderList() { if (filtersBuilder_ != null) { return filtersBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(filters_); } } /** *
     * The filters are to be considered in an AND manner.
     * An item is part of the band if it matches all filters.
     * If the list is empty, then all items from the given source are part of the band
     * 
* * repeated .yamcs.protobuf.timeline.ItemFilter filters = 8; */ public org.yamcs.protobuf.ItemFilter.Builder addFiltersBuilder() { return getFiltersFieldBuilder().addBuilder( org.yamcs.protobuf.ItemFilter.getDefaultInstance()); } /** *
     * The filters are to be considered in an AND manner.
     * An item is part of the band if it matches all filters.
     * If the list is empty, then all items from the given source are part of the band
     * 
* * repeated .yamcs.protobuf.timeline.ItemFilter filters = 8; */ public org.yamcs.protobuf.ItemFilter.Builder addFiltersBuilder( int index) { return getFiltersFieldBuilder().addBuilder( index, org.yamcs.protobuf.ItemFilter.getDefaultInstance()); } /** *
     * The filters are to be considered in an AND manner.
     * An item is part of the band if it matches all filters.
     * If the list is empty, then all items from the given source are part of the band
     * 
* * repeated .yamcs.protobuf.timeline.ItemFilter filters = 8; */ public java.util.List getFiltersBuilderList() { return getFiltersFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.yamcs.protobuf.ItemFilter, org.yamcs.protobuf.ItemFilter.Builder, org.yamcs.protobuf.ItemFilterOrBuilder> getFiltersFieldBuilder() { if (filtersBuilder_ == null) { filtersBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.yamcs.protobuf.ItemFilter, org.yamcs.protobuf.ItemFilter.Builder, org.yamcs.protobuf.ItemFilterOrBuilder>( filters_, ((bitField0_ & 0x00000080) != 0), getParentForChildren(), isClean()); filters_ = null; } return filtersBuilder_; } private int type_ = 1; /** *
     * Type of band
     * 
* * optional .yamcs.protobuf.timeline.TimelineBandType type = 9; * @return Whether the type field is set. */ @java.lang.Override public boolean hasType() { return ((bitField0_ & 0x00000100) != 0); } /** *
     * Type of band
     * 
* * optional .yamcs.protobuf.timeline.TimelineBandType type = 9; * @return The type. */ @java.lang.Override public org.yamcs.protobuf.TimelineBandType getType() { @SuppressWarnings("deprecation") org.yamcs.protobuf.TimelineBandType result = org.yamcs.protobuf.TimelineBandType.valueOf(type_); return result == null ? org.yamcs.protobuf.TimelineBandType.TIME_RULER : result; } /** *
     * Type of band
     * 
* * optional .yamcs.protobuf.timeline.TimelineBandType type = 9; * @param value The type to set. * @return This builder for chaining. */ public Builder setType(org.yamcs.protobuf.TimelineBandType value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000100; type_ = value.getNumber(); onChanged(); return this; } /** *
     * Type of band
     * 
* * optional .yamcs.protobuf.timeline.TimelineBandType type = 9; * @return This builder for chaining. */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000100); type_ = 1; onChanged(); return this; } private java.lang.Object description_ = ""; /** *
     * Band description
     * 
* * optional string description = 10; * @return Whether the description field is set. */ public boolean hasDescription() { return ((bitField0_ & 0x00000200) != 0); } /** *
     * Band description
     * 
* * optional string description = 10; * @return The description. */ public java.lang.String getDescription() { java.lang.Object ref = description_; 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()) { description_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
     * Band description
     * 
* * optional string description = 10; * @return The bytes for description. */ public com.google.protobuf.ByteString getDescriptionBytes() { java.lang.Object ref = description_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); description_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Band description
     * 
* * optional string description = 10; * @param value The description to set. * @return This builder for chaining. */ public Builder setDescription( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000200; description_ = value; onChanged(); return this; } /** *
     * Band description
     * 
* * optional string description = 10; * @return This builder for chaining. */ public Builder clearDescription() { bitField0_ = (bitField0_ & ~0x00000200); description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** *
     * Band description
     * 
* * optional string description = 10; * @param value The bytes for description to set. * @return This builder for chaining. */ public Builder setDescriptionBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000200; description_ = value; onChanged(); return this; } private com.google.protobuf.MapField< java.lang.String, java.lang.String> properties_; private com.google.protobuf.MapField internalGetProperties() { if (properties_ == null) { return com.google.protobuf.MapField.emptyMapField( PropertiesDefaultEntryHolder.defaultEntry); } return properties_; } private com.google.protobuf.MapField internalGetMutableProperties() { onChanged();; if (properties_ == null) { properties_ = com.google.protobuf.MapField.newMapField( PropertiesDefaultEntryHolder.defaultEntry); } if (!properties_.isMutable()) { properties_ = properties_.copy(); } return properties_; } public int getPropertiesCount() { return internalGetProperties().getMap().size(); } /** *
     * Additional properties used by yamcs-web to render this band
     * 
* * map<string, string> properties = 11; */ @java.lang.Override public boolean containsProperties( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } return internalGetProperties().getMap().containsKey(key); } /** * Use {@link #getPropertiesMap()} instead. */ @java.lang.Override @java.lang.Deprecated public java.util.Map getProperties() { return getPropertiesMap(); } /** *
     * Additional properties used by yamcs-web to render this band
     * 
* * map<string, string> properties = 11; */ @java.lang.Override public java.util.Map getPropertiesMap() { return internalGetProperties().getMap(); } /** *
     * Additional properties used by yamcs-web to render this band
     * 
* * map<string, string> properties = 11; */ @java.lang.Override public java.lang.String getPropertiesOrDefault( java.lang.String key, java.lang.String defaultValue) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetProperties().getMap(); return map.containsKey(key) ? map.get(key) : defaultValue; } /** *
     * Additional properties used by yamcs-web to render this band
     * 
* * map<string, string> properties = 11; */ @java.lang.Override public java.lang.String getPropertiesOrThrow( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } java.util.Map map = internalGetProperties().getMap(); if (!map.containsKey(key)) { throw new java.lang.IllegalArgumentException(); } return map.get(key); } public Builder clearProperties() { internalGetMutableProperties().getMutableMap() .clear(); return this; } /** *
     * Additional properties used by yamcs-web to render this band
     * 
* * map<string, string> properties = 11; */ public Builder removeProperties( java.lang.String key) { if (key == null) { throw new NullPointerException("map key"); } internalGetMutableProperties().getMutableMap() .remove(key); return this; } /** * Use alternate mutation accessors instead. */ @java.lang.Deprecated public java.util.Map getMutableProperties() { return internalGetMutableProperties().getMutableMap(); } /** *
     * Additional properties used by yamcs-web to render this band
     * 
* * map<string, string> properties = 11; */ public Builder putProperties( java.lang.String key, java.lang.String value) { if (key == null) { throw new NullPointerException("map key"); } if (value == null) { throw new NullPointerException("map value"); } internalGetMutableProperties().getMutableMap() .put(key, value); return this; } /** *
     * Additional properties used by yamcs-web to render this band
     * 
* * map<string, string> properties = 11; */ public Builder putAllProperties( java.util.Map values) { internalGetMutableProperties().getMutableMap() .putAll(values); 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.TimelineBand) } // @@protoc_insertion_point(class_scope:yamcs.protobuf.timeline.TimelineBand) private static final org.yamcs.protobuf.TimelineBand DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.yamcs.protobuf.TimelineBand(); } public static org.yamcs.protobuf.TimelineBand getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public TimelineBand parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new TimelineBand(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.TimelineBand getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy