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

org.yamcs.protobuf.CreateItemRequest 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.CreateItemRequest}
 */
public final class CreateItemRequest extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:yamcs.protobuf.timeline.CreateItemRequest)
    CreateItemRequestOrBuilder {
private static final long serialVersionUID = 0L;
  // Use CreateItemRequest.newBuilder() to construct.
  private CreateItemRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private CreateItemRequest() {
    instance_ = "";
    source_ = "";
    name_ = "";
    type_ = 1;
    tags_ = com.google.protobuf.LazyStringArrayList.EMPTY;
    groupId_ = "";
    description_ = "";
  }

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

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private CreateItemRequest(
      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;
            source_ = bs;
            break;
          }
          case 26: {
            com.google.protobuf.ByteString bs = input.readBytes();
            bitField0_ |= 0x00000004;
            name_ = bs;
            break;
          }
          case 32: {
            int rawValue = input.readEnum();
              @SuppressWarnings("deprecation")
            org.yamcs.protobuf.TimelineItemType value = org.yamcs.protobuf.TimelineItemType.valueOf(rawValue);
            if (value == null) {
              unknownFields.mergeVarintField(4, rawValue);
            } else {
              bitField0_ |= 0x00000008;
              type_ = rawValue;
            }
            break;
          }
          case 42: {
            com.google.protobuf.Timestamp.Builder subBuilder = null;
            if (((bitField0_ & 0x00000010) != 0)) {
              subBuilder = start_.toBuilder();
            }
            start_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(start_);
              start_ = subBuilder.buildPartial();
            }
            bitField0_ |= 0x00000010;
            break;
          }
          case 50: {
            com.google.protobuf.Duration.Builder subBuilder = null;
            if (((bitField0_ & 0x00000020) != 0)) {
              subBuilder = duration_.toBuilder();
            }
            duration_ = input.readMessage(com.google.protobuf.Duration.parser(), extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(duration_);
              duration_ = subBuilder.buildPartial();
            }
            bitField0_ |= 0x00000020;
            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: {
            com.google.protobuf.ByteString bs = input.readBytes();
            bitField0_ |= 0x00000040;
            groupId_ = bs;
            break;
          }
          case 74: {
            org.yamcs.protobuf.RelativeTime.Builder subBuilder = null;
            if (((bitField0_ & 0x00000080) != 0)) {
              subBuilder = relativeTime_.toBuilder();
            }
            relativeTime_ = input.readMessage(org.yamcs.protobuf.RelativeTime.PARSER, extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(relativeTime_);
              relativeTime_ = subBuilder.buildPartial();
            }
            bitField0_ |= 0x00000080;
            break;
          }
          case 82: {
            com.google.protobuf.ByteString bs = input.readBytes();
            bitField0_ |= 0x00000100;
            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;
          }
          case 98: {
            org.yamcs.protobuf.activities.ActivityDefinitionInfo.Builder subBuilder = null;
            if (((bitField0_ & 0x00000200) != 0)) {
              subBuilder = activityDefinition_.toBuilder();
            }
            activityDefinition_ = input.readMessage(org.yamcs.protobuf.activities.ActivityDefinitionInfo.PARSER, extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(activityDefinition_);
              activityDefinition_ = subBuilder.buildPartial();
            }
            bitField0_ |= 0x00000200;
            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();
      }
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return org.yamcs.protobuf.TimelineProto.internal_static_yamcs_protobuf_timeline_CreateItemRequest_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_CreateItemRequest_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            org.yamcs.protobuf.CreateItemRequest.class, org.yamcs.protobuf.CreateItemRequest.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 SOURCE_FIELD_NUMBER = 2; private volatile java.lang.Object source_; /** *
   * Item source
   * 
* * optional string source = 2; * @return Whether the source field is set. */ @java.lang.Override public boolean hasSource() { return ((bitField0_ & 0x00000002) != 0); } /** *
   * Item source
   * 
* * optional string source = 2; * @return The source. */ @java.lang.Override public java.lang.String getSource() { java.lang.Object ref = source_; if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { source_ = s; } return s; } } /** *
   * Item source
   * 
* * optional string source = 2; * @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 NAME_FIELD_NUMBER = 3; private volatile java.lang.Object name_; /** *
   * Item name
   * 
* * optional string name = 3; * @return Whether the name field is set. */ @java.lang.Override public boolean hasName() { return ((bitField0_ & 0x00000004) != 0); } /** *
   * Item 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; } } /** *
   * Item 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 TYPE_FIELD_NUMBER = 4; private int type_; /** *
   * Item type
   * 
* * optional .yamcs.protobuf.timeline.TimelineItemType type = 4; * @return Whether the type field is set. */ @java.lang.Override public boolean hasType() { return ((bitField0_ & 0x00000008) != 0); } /** *
   * Item type
   * 
* * optional .yamcs.protobuf.timeline.TimelineItemType type = 4; * @return The type. */ @java.lang.Override public org.yamcs.protobuf.TimelineItemType getType() { @SuppressWarnings("deprecation") org.yamcs.protobuf.TimelineItemType result = org.yamcs.protobuf.TimelineItemType.valueOf(type_); return result == null ? org.yamcs.protobuf.TimelineItemType.EVENT : result; } public static final int START_FIELD_NUMBER = 5; private com.google.protobuf.Timestamp start_; /** *
   * Item start. The fields ``start`` and ``relativeTime``
   * are mutually exclusive
   * 
* * optional .google.protobuf.Timestamp start = 5; * @return Whether the start field is set. */ @java.lang.Override public boolean hasStart() { return ((bitField0_ & 0x00000010) != 0); } /** *
   * Item start. The fields ``start`` and ``relativeTime``
   * are mutually exclusive
   * 
* * optional .google.protobuf.Timestamp start = 5; * @return The start. */ @java.lang.Override public com.google.protobuf.Timestamp getStart() { return start_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : start_; } /** *
   * Item start. The fields ``start`` and ``relativeTime``
   * are mutually exclusive
   * 
* * optional .google.protobuf.Timestamp start = 5; */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getStartOrBuilder() { return start_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : start_; } public static final int DURATION_FIELD_NUMBER = 6; private com.google.protobuf.Duration duration_; /** *
   * Item duration. Applies also if ``relativeTime`` is specified
   * 
* * optional .google.protobuf.Duration duration = 6; * @return Whether the duration field is set. */ @java.lang.Override public boolean hasDuration() { return ((bitField0_ & 0x00000020) != 0); } /** *
   * Item duration. Applies also if ``relativeTime`` is specified
   * 
* * optional .google.protobuf.Duration duration = 6; * @return The duration. */ @java.lang.Override public com.google.protobuf.Duration getDuration() { return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; } /** *
   * Item duration. Applies also if ``relativeTime`` is specified
   * 
* * optional .google.protobuf.Duration duration = 6; */ @java.lang.Override public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; } public static final int TAGS_FIELD_NUMBER = 7; private com.google.protobuf.LazyStringList tags_; /** *
   * Tags
   * 
* * repeated string tags = 7; * @return A list containing the tags. */ public com.google.protobuf.ProtocolStringList getTagsList() { return tags_; } /** *
   * Tags
   * 
* * repeated string tags = 7; * @return The count of tags. */ public int getTagsCount() { return tags_.size(); } /** *
   * Tags
   * 
* * repeated string tags = 7; * @param index The index of the element to return. * @return The tags at the given index. */ public java.lang.String getTags(int index) { return tags_.get(index); } /** *
   * Tags
   * 
* * repeated string tags = 7; * @param index The index of the value to return. * @return The bytes of the tags at the given index. */ public com.google.protobuf.ByteString getTagsBytes(int index) { return tags_.getByteString(index); } public static final int GROUPID_FIELD_NUMBER = 8; private volatile java.lang.Object groupId_; /** *
   * If this item is part of a group, this is the group identifier
   * 
* * optional string groupId = 8; * @return Whether the groupId field is set. */ @java.lang.Override public boolean hasGroupId() { return ((bitField0_ & 0x00000040) != 0); } /** *
   * If this item is part of a group, this is the group identifier
   * 
* * optional string groupId = 8; * @return The groupId. */ @java.lang.Override public java.lang.String getGroupId() { java.lang.Object ref = groupId_; 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()) { groupId_ = s; } return s; } } /** *
   * If this item is part of a group, this is the group identifier
   * 
* * optional string groupId = 8; * @return The bytes for groupId. */ @java.lang.Override public com.google.protobuf.ByteString getGroupIdBytes() { java.lang.Object ref = groupId_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); groupId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int RELATIVETIME_FIELD_NUMBER = 9; private org.yamcs.protobuf.RelativeTime relativeTime_; /** *
   * If the item time specification is relative to another item,
   * ``relativeTime`` contains a reference to that item, as well
   * as the relative start (the duration is the same as given by the
   * ``duration`` field).
   * 
* * optional .yamcs.protobuf.timeline.RelativeTime relativeTime = 9; * @return Whether the relativeTime field is set. */ @java.lang.Override public boolean hasRelativeTime() { return ((bitField0_ & 0x00000080) != 0); } /** *
   * If the item time specification is relative to another item,
   * ``relativeTime`` contains a reference to that item, as well
   * as the relative start (the duration is the same as given by the
   * ``duration`` field).
   * 
* * optional .yamcs.protobuf.timeline.RelativeTime relativeTime = 9; * @return The relativeTime. */ @java.lang.Override public org.yamcs.protobuf.RelativeTime getRelativeTime() { return relativeTime_ == null ? org.yamcs.protobuf.RelativeTime.getDefaultInstance() : relativeTime_; } /** *
   * If the item time specification is relative to another item,
   * ``relativeTime`` contains a reference to that item, as well
   * as the relative start (the duration is the same as given by the
   * ``duration`` field).
   * 
* * optional .yamcs.protobuf.timeline.RelativeTime relativeTime = 9; */ @java.lang.Override public org.yamcs.protobuf.RelativeTimeOrBuilder getRelativeTimeOrBuilder() { return relativeTime_ == null ? org.yamcs.protobuf.RelativeTime.getDefaultInstance() : relativeTime_; } public static final int DESCRIPTION_FIELD_NUMBER = 10; private volatile java.lang.Object description_; /** *
   * Item description
   * 
* * optional string description = 10; * @return Whether the description field is set. */ @java.lang.Override public boolean hasDescription() { return ((bitField0_ & 0x00000100) != 0); } /** *
   * Item 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; } } /** *
   * Item 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_CreateItemRequest_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 item
   * 
* * 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 item
   * 
* * 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 item
   * 
* * 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 item
   * 
* * 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 static final int ACTIVITYDEFINITION_FIELD_NUMBER = 12; private org.yamcs.protobuf.activities.ActivityDefinitionInfo activityDefinition_; /** *
   * Activity definition associated to this item.
   * Required if ``type`` is ACTIVITY.
   * 
* * optional .yamcs.protobuf.activities.ActivityDefinitionInfo activityDefinition = 12; * @return Whether the activityDefinition field is set. */ @java.lang.Override public boolean hasActivityDefinition() { return ((bitField0_ & 0x00000200) != 0); } /** *
   * Activity definition associated to this item.
   * Required if ``type`` is ACTIVITY.
   * 
* * optional .yamcs.protobuf.activities.ActivityDefinitionInfo activityDefinition = 12; * @return The activityDefinition. */ @java.lang.Override public org.yamcs.protobuf.activities.ActivityDefinitionInfo getActivityDefinition() { return activityDefinition_ == null ? org.yamcs.protobuf.activities.ActivityDefinitionInfo.getDefaultInstance() : activityDefinition_; } /** *
   * Activity definition associated to this item.
   * Required if ``type`` is ACTIVITY.
   * 
* * optional .yamcs.protobuf.activities.ActivityDefinitionInfo activityDefinition = 12; */ @java.lang.Override public org.yamcs.protobuf.activities.ActivityDefinitionInfoOrBuilder getActivityDefinitionOrBuilder() { return activityDefinition_ == null ? org.yamcs.protobuf.activities.ActivityDefinitionInfo.getDefaultInstance() : activityDefinition_; } 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, source_); } if (((bitField0_ & 0x00000004) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, name_); } if (((bitField0_ & 0x00000008) != 0)) { output.writeEnum(4, type_); } if (((bitField0_ & 0x00000010) != 0)) { output.writeMessage(5, getStart()); } if (((bitField0_ & 0x00000020) != 0)) { output.writeMessage(6, getDuration()); } for (int i = 0; i < tags_.size(); i++) { com.google.protobuf.GeneratedMessageV3.writeString(output, 7, tags_.getRaw(i)); } if (((bitField0_ & 0x00000040) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 8, groupId_); } if (((bitField0_ & 0x00000080) != 0)) { output.writeMessage(9, getRelativeTime()); } if (((bitField0_ & 0x00000100) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 10, description_); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetProperties(), PropertiesDefaultEntryHolder.defaultEntry, 11); if (((bitField0_ & 0x00000200) != 0)) { output.writeMessage(12, getActivityDefinition()); } 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, source_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, name_); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(4, type_); } if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(5, getStart()); } if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getDuration()); } { int dataSize = 0; for (int i = 0; i < tags_.size(); i++) { dataSize += computeStringSizeNoTag(tags_.getRaw(i)); } size += dataSize; size += 1 * getTagsList().size(); } if (((bitField0_ & 0x00000040) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, groupId_); } if (((bitField0_ & 0x00000080) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(9, getRelativeTime()); } if (((bitField0_ & 0x00000100) != 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__); } if (((bitField0_ & 0x00000200) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(12, getActivityDefinition()); } 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.CreateItemRequest)) { return super.equals(obj); } org.yamcs.protobuf.CreateItemRequest other = (org.yamcs.protobuf.CreateItemRequest) obj; if (hasInstance() != other.hasInstance()) return false; if (hasInstance()) { if (!getInstance() .equals(other.getInstance())) return false; } if (hasSource() != other.hasSource()) return false; if (hasSource()) { if (!getSource() .equals(other.getSource())) return false; } if (hasName() != other.hasName()) return false; if (hasName()) { if (!getName() .equals(other.getName())) return false; } if (hasType() != other.hasType()) return false; if (hasType()) { if (type_ != other.type_) return false; } if (hasStart() != other.hasStart()) return false; if (hasStart()) { if (!getStart() .equals(other.getStart())) return false; } if (hasDuration() != other.hasDuration()) return false; if (hasDuration()) { if (!getDuration() .equals(other.getDuration())) return false; } if (!getTagsList() .equals(other.getTagsList())) return false; if (hasGroupId() != other.hasGroupId()) return false; if (hasGroupId()) { if (!getGroupId() .equals(other.getGroupId())) return false; } if (hasRelativeTime() != other.hasRelativeTime()) return false; if (hasRelativeTime()) { if (!getRelativeTime() .equals(other.getRelativeTime())) 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 (hasActivityDefinition() != other.hasActivityDefinition()) return false; if (hasActivityDefinition()) { if (!getActivityDefinition() .equals(other.getActivityDefinition())) 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 (hasSource()) { hash = (37 * hash) + SOURCE_FIELD_NUMBER; hash = (53 * hash) + getSource().hashCode(); } if (hasName()) { hash = (37 * hash) + NAME_FIELD_NUMBER; hash = (53 * hash) + getName().hashCode(); } if (hasType()) { hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + type_; } if (hasStart()) { hash = (37 * hash) + START_FIELD_NUMBER; hash = (53 * hash) + getStart().hashCode(); } if (hasDuration()) { hash = (37 * hash) + DURATION_FIELD_NUMBER; hash = (53 * hash) + getDuration().hashCode(); } if (getTagsCount() > 0) { hash = (37 * hash) + TAGS_FIELD_NUMBER; hash = (53 * hash) + getTagsList().hashCode(); } if (hasGroupId()) { hash = (37 * hash) + GROUPID_FIELD_NUMBER; hash = (53 * hash) + getGroupId().hashCode(); } if (hasRelativeTime()) { hash = (37 * hash) + RELATIVETIME_FIELD_NUMBER; hash = (53 * hash) + getRelativeTime().hashCode(); } 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(); } if (hasActivityDefinition()) { hash = (37 * hash) + ACTIVITYDEFINITION_FIELD_NUMBER; hash = (53 * hash) + getActivityDefinition().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.yamcs.protobuf.CreateItemRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.yamcs.protobuf.CreateItemRequest 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.CreateItemRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.yamcs.protobuf.CreateItemRequest 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.CreateItemRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.yamcs.protobuf.CreateItemRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.yamcs.protobuf.CreateItemRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.yamcs.protobuf.CreateItemRequest 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.CreateItemRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.yamcs.protobuf.CreateItemRequest 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.CreateItemRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.yamcs.protobuf.CreateItemRequest 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.CreateItemRequest 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.CreateItemRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yamcs.protobuf.timeline.CreateItemRequest) org.yamcs.protobuf.CreateItemRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.yamcs.protobuf.TimelineProto.internal_static_yamcs_protobuf_timeline_CreateItemRequest_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_CreateItemRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.yamcs.protobuf.CreateItemRequest.class, org.yamcs.protobuf.CreateItemRequest.Builder.class); } // Construct using org.yamcs.protobuf.CreateItemRequest.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getStartFieldBuilder(); getDurationFieldBuilder(); getRelativeTimeFieldBuilder(); getActivityDefinitionFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); instance_ = ""; bitField0_ = (bitField0_ & ~0x00000001); source_ = ""; bitField0_ = (bitField0_ & ~0x00000002); name_ = ""; bitField0_ = (bitField0_ & ~0x00000004); type_ = 1; bitField0_ = (bitField0_ & ~0x00000008); if (startBuilder_ == null) { start_ = null; } else { startBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); if (durationBuilder_ == null) { duration_ = null; } else { durationBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000020); tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000040); groupId_ = ""; bitField0_ = (bitField0_ & ~0x00000080); if (relativeTimeBuilder_ == null) { relativeTime_ = null; } else { relativeTimeBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000100); description_ = ""; bitField0_ = (bitField0_ & ~0x00000200); internalGetMutableProperties().clear(); if (activityDefinitionBuilder_ == null) { activityDefinition_ = null; } else { activityDefinitionBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000800); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.yamcs.protobuf.TimelineProto.internal_static_yamcs_protobuf_timeline_CreateItemRequest_descriptor; } @java.lang.Override public org.yamcs.protobuf.CreateItemRequest getDefaultInstanceForType() { return org.yamcs.protobuf.CreateItemRequest.getDefaultInstance(); } @java.lang.Override public org.yamcs.protobuf.CreateItemRequest build() { org.yamcs.protobuf.CreateItemRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.yamcs.protobuf.CreateItemRequest buildPartial() { org.yamcs.protobuf.CreateItemRequest result = new org.yamcs.protobuf.CreateItemRequest(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.source_ = source_; if (((from_bitField0_ & 0x00000004) != 0)) { to_bitField0_ |= 0x00000004; } result.name_ = name_; if (((from_bitField0_ & 0x00000008) != 0)) { to_bitField0_ |= 0x00000008; } result.type_ = type_; if (((from_bitField0_ & 0x00000010) != 0)) { if (startBuilder_ == null) { result.start_ = start_; } else { result.start_ = startBuilder_.build(); } to_bitField0_ |= 0x00000010; } if (((from_bitField0_ & 0x00000020) != 0)) { if (durationBuilder_ == null) { result.duration_ = duration_; } else { result.duration_ = durationBuilder_.build(); } to_bitField0_ |= 0x00000020; } if (((bitField0_ & 0x00000040) != 0)) { tags_ = tags_.getUnmodifiableView(); bitField0_ = (bitField0_ & ~0x00000040); } result.tags_ = tags_; if (((from_bitField0_ & 0x00000080) != 0)) { to_bitField0_ |= 0x00000040; } result.groupId_ = groupId_; if (((from_bitField0_ & 0x00000100) != 0)) { if (relativeTimeBuilder_ == null) { result.relativeTime_ = relativeTime_; } else { result.relativeTime_ = relativeTimeBuilder_.build(); } to_bitField0_ |= 0x00000080; } if (((from_bitField0_ & 0x00000200) != 0)) { to_bitField0_ |= 0x00000100; } result.description_ = description_; result.properties_ = internalGetProperties(); result.properties_.makeImmutable(); if (((from_bitField0_ & 0x00000800) != 0)) { if (activityDefinitionBuilder_ == null) { result.activityDefinition_ = activityDefinition_; } else { result.activityDefinition_ = activityDefinitionBuilder_.build(); } to_bitField0_ |= 0x00000200; } 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.CreateItemRequest) { return mergeFrom((org.yamcs.protobuf.CreateItemRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.yamcs.protobuf.CreateItemRequest other) { if (other == org.yamcs.protobuf.CreateItemRequest.getDefaultInstance()) return this; if (other.hasInstance()) { bitField0_ |= 0x00000001; instance_ = other.instance_; onChanged(); } if (other.hasSource()) { bitField0_ |= 0x00000002; source_ = other.source_; onChanged(); } if (other.hasName()) { bitField0_ |= 0x00000004; name_ = other.name_; onChanged(); } if (other.hasType()) { setType(other.getType()); } if (other.hasStart()) { mergeStart(other.getStart()); } if (other.hasDuration()) { mergeDuration(other.getDuration()); } if (!other.tags_.isEmpty()) { if (tags_.isEmpty()) { tags_ = other.tags_; bitField0_ = (bitField0_ & ~0x00000040); } else { ensureTagsIsMutable(); tags_.addAll(other.tags_); } onChanged(); } if (other.hasGroupId()) { bitField0_ |= 0x00000080; groupId_ = other.groupId_; onChanged(); } if (other.hasRelativeTime()) { mergeRelativeTime(other.getRelativeTime()); } if (other.hasDescription()) { bitField0_ |= 0x00000200; description_ = other.description_; onChanged(); } internalGetMutableProperties().mergeFrom( other.internalGetProperties()); if (other.hasActivityDefinition()) { mergeActivityDefinition(other.getActivityDefinition()); } 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.CreateItemRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.yamcs.protobuf.CreateItemRequest) 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 source_ = ""; /** *
     * Item source
     * 
* * optional string source = 2; * @return Whether the source field is set. */ public boolean hasSource() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * Item source
     * 
* * optional string source = 2; * @return The source. */ public java.lang.String getSource() { java.lang.Object ref = source_; if (!(ref instanceof java.lang.String)) { com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); if (bs.isValidUtf8()) { source_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
     * Item source
     * 
* * optional string source = 2; * @return The bytes for source. */ public com.google.protobuf.ByteString getSourceBytes() { java.lang.Object ref = source_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); source_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Item source
     * 
* * optional string source = 2; * @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_ |= 0x00000002; source_ = value; onChanged(); return this; } /** *
     * Item source
     * 
* * optional string source = 2; * @return This builder for chaining. */ public Builder clearSource() { bitField0_ = (bitField0_ & ~0x00000002); source_ = getDefaultInstance().getSource(); onChanged(); return this; } /** *
     * Item source
     * 
* * optional string source = 2; * @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_ |= 0x00000002; source_ = value; onChanged(); return this; } private java.lang.Object name_ = ""; /** *
     * Item name
     * 
* * optional string name = 3; * @return Whether the name field is set. */ public boolean hasName() { return ((bitField0_ & 0x00000004) != 0); } /** *
     * Item 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; } } /** *
     * Item 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; } } /** *
     * Item 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; } /** *
     * Item name
     * 
* * optional string name = 3; * @return This builder for chaining. */ public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000004); name_ = getDefaultInstance().getName(); onChanged(); return this; } /** *
     * Item 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 int type_ = 1; /** *
     * Item type
     * 
* * optional .yamcs.protobuf.timeline.TimelineItemType type = 4; * @return Whether the type field is set. */ @java.lang.Override public boolean hasType() { return ((bitField0_ & 0x00000008) != 0); } /** *
     * Item type
     * 
* * optional .yamcs.protobuf.timeline.TimelineItemType type = 4; * @return The type. */ @java.lang.Override public org.yamcs.protobuf.TimelineItemType getType() { @SuppressWarnings("deprecation") org.yamcs.protobuf.TimelineItemType result = org.yamcs.protobuf.TimelineItemType.valueOf(type_); return result == null ? org.yamcs.protobuf.TimelineItemType.EVENT : result; } /** *
     * Item type
     * 
* * optional .yamcs.protobuf.timeline.TimelineItemType type = 4; * @param value The type to set. * @return This builder for chaining. */ public Builder setType(org.yamcs.protobuf.TimelineItemType value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; type_ = value.getNumber(); onChanged(); return this; } /** *
     * Item type
     * 
* * optional .yamcs.protobuf.timeline.TimelineItemType type = 4; * @return This builder for chaining. */ public Builder clearType() { bitField0_ = (bitField0_ & ~0x00000008); type_ = 1; onChanged(); return this; } private com.google.protobuf.Timestamp start_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> startBuilder_; /** *
     * Item start. The fields ``start`` and ``relativeTime``
     * are mutually exclusive
     * 
* * optional .google.protobuf.Timestamp start = 5; * @return Whether the start field is set. */ public boolean hasStart() { return ((bitField0_ & 0x00000010) != 0); } /** *
     * Item start. The fields ``start`` and ``relativeTime``
     * are mutually exclusive
     * 
* * optional .google.protobuf.Timestamp start = 5; * @return The start. */ public com.google.protobuf.Timestamp getStart() { if (startBuilder_ == null) { return start_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : start_; } else { return startBuilder_.getMessage(); } } /** *
     * Item start. The fields ``start`` and ``relativeTime``
     * are mutually exclusive
     * 
* * optional .google.protobuf.Timestamp start = 5; */ public Builder setStart(com.google.protobuf.Timestamp value) { if (startBuilder_ == null) { if (value == null) { throw new NullPointerException(); } start_ = value; onChanged(); } else { startBuilder_.setMessage(value); } bitField0_ |= 0x00000010; return this; } /** *
     * Item start. The fields ``start`` and ``relativeTime``
     * are mutually exclusive
     * 
* * optional .google.protobuf.Timestamp start = 5; */ public Builder setStart( com.google.protobuf.Timestamp.Builder builderForValue) { if (startBuilder_ == null) { start_ = builderForValue.build(); onChanged(); } else { startBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000010; return this; } /** *
     * Item start. The fields ``start`` and ``relativeTime``
     * are mutually exclusive
     * 
* * optional .google.protobuf.Timestamp start = 5; */ public Builder mergeStart(com.google.protobuf.Timestamp value) { if (startBuilder_ == null) { if (((bitField0_ & 0x00000010) != 0) && start_ != null && start_ != com.google.protobuf.Timestamp.getDefaultInstance()) { start_ = com.google.protobuf.Timestamp.newBuilder(start_).mergeFrom(value).buildPartial(); } else { start_ = value; } onChanged(); } else { startBuilder_.mergeFrom(value); } bitField0_ |= 0x00000010; return this; } /** *
     * Item start. The fields ``start`` and ``relativeTime``
     * are mutually exclusive
     * 
* * optional .google.protobuf.Timestamp start = 5; */ public Builder clearStart() { if (startBuilder_ == null) { start_ = null; onChanged(); } else { startBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); return this; } /** *
     * Item start. The fields ``start`` and ``relativeTime``
     * are mutually exclusive
     * 
* * optional .google.protobuf.Timestamp start = 5; */ public com.google.protobuf.Timestamp.Builder getStartBuilder() { bitField0_ |= 0x00000010; onChanged(); return getStartFieldBuilder().getBuilder(); } /** *
     * Item start. The fields ``start`` and ``relativeTime``
     * are mutually exclusive
     * 
* * optional .google.protobuf.Timestamp start = 5; */ public com.google.protobuf.TimestampOrBuilder getStartOrBuilder() { if (startBuilder_ != null) { return startBuilder_.getMessageOrBuilder(); } else { return start_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : start_; } } /** *
     * Item start. The fields ``start`` and ``relativeTime``
     * are mutually exclusive
     * 
* * optional .google.protobuf.Timestamp start = 5; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> getStartFieldBuilder() { if (startBuilder_ == null) { startBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( getStart(), getParentForChildren(), isClean()); start_ = null; } return startBuilder_; } private com.google.protobuf.Duration duration_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> durationBuilder_; /** *
     * Item duration. Applies also if ``relativeTime`` is specified
     * 
* * optional .google.protobuf.Duration duration = 6; * @return Whether the duration field is set. */ public boolean hasDuration() { return ((bitField0_ & 0x00000020) != 0); } /** *
     * Item duration. Applies also if ``relativeTime`` is specified
     * 
* * optional .google.protobuf.Duration duration = 6; * @return The duration. */ public com.google.protobuf.Duration getDuration() { if (durationBuilder_ == null) { return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; } else { return durationBuilder_.getMessage(); } } /** *
     * Item duration. Applies also if ``relativeTime`` is specified
     * 
* * optional .google.protobuf.Duration duration = 6; */ public Builder setDuration(com.google.protobuf.Duration value) { if (durationBuilder_ == null) { if (value == null) { throw new NullPointerException(); } duration_ = value; onChanged(); } else { durationBuilder_.setMessage(value); } bitField0_ |= 0x00000020; return this; } /** *
     * Item duration. Applies also if ``relativeTime`` is specified
     * 
* * optional .google.protobuf.Duration duration = 6; */ public Builder setDuration( com.google.protobuf.Duration.Builder builderForValue) { if (durationBuilder_ == null) { duration_ = builderForValue.build(); onChanged(); } else { durationBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000020; return this; } /** *
     * Item duration. Applies also if ``relativeTime`` is specified
     * 
* * optional .google.protobuf.Duration duration = 6; */ public Builder mergeDuration(com.google.protobuf.Duration value) { if (durationBuilder_ == null) { if (((bitField0_ & 0x00000020) != 0) && duration_ != null && duration_ != com.google.protobuf.Duration.getDefaultInstance()) { duration_ = com.google.protobuf.Duration.newBuilder(duration_).mergeFrom(value).buildPartial(); } else { duration_ = value; } onChanged(); } else { durationBuilder_.mergeFrom(value); } bitField0_ |= 0x00000020; return this; } /** *
     * Item duration. Applies also if ``relativeTime`` is specified
     * 
* * optional .google.protobuf.Duration duration = 6; */ public Builder clearDuration() { if (durationBuilder_ == null) { duration_ = null; onChanged(); } else { durationBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000020); return this; } /** *
     * Item duration. Applies also if ``relativeTime`` is specified
     * 
* * optional .google.protobuf.Duration duration = 6; */ public com.google.protobuf.Duration.Builder getDurationBuilder() { bitField0_ |= 0x00000020; onChanged(); return getDurationFieldBuilder().getBuilder(); } /** *
     * Item duration. Applies also if ``relativeTime`` is specified
     * 
* * optional .google.protobuf.Duration duration = 6; */ public com.google.protobuf.DurationOrBuilder getDurationOrBuilder() { if (durationBuilder_ != null) { return durationBuilder_.getMessageOrBuilder(); } else { return duration_ == null ? com.google.protobuf.Duration.getDefaultInstance() : duration_; } } /** *
     * Item duration. Applies also if ``relativeTime`` is specified
     * 
* * optional .google.protobuf.Duration duration = 6; */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder> getDurationFieldBuilder() { if (durationBuilder_ == null) { durationBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Duration, com.google.protobuf.Duration.Builder, com.google.protobuf.DurationOrBuilder>( getDuration(), getParentForChildren(), isClean()); duration_ = null; } return durationBuilder_; } 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; } } /** *
     * Tags
     * 
* * repeated string tags = 7; * @return A list containing the tags. */ public com.google.protobuf.ProtocolStringList getTagsList() { return tags_.getUnmodifiableView(); } /** *
     * Tags
     * 
* * repeated string tags = 7; * @return The count of tags. */ public int getTagsCount() { return tags_.size(); } /** *
     * Tags
     * 
* * repeated string tags = 7; * @param index The index of the element to return. * @return The tags at the given index. */ public java.lang.String getTags(int index) { return tags_.get(index); } /** *
     * Tags
     * 
* * repeated string tags = 7; * @param index The index of the value to return. * @return The bytes of the tags at the given index. */ public com.google.protobuf.ByteString getTagsBytes(int index) { return tags_.getByteString(index); } /** *
     * Tags
     * 
* * repeated string tags = 7; * @param index The index to set the value at. * @param value The tags to set. * @return This builder for chaining. */ public Builder setTags( int index, java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureTagsIsMutable(); tags_.set(index, value); onChanged(); return this; } /** *
     * Tags
     * 
* * repeated string tags = 7; * @param value The tags to add. * @return This builder for chaining. */ public Builder addTags( java.lang.String value) { if (value == null) { throw new NullPointerException(); } ensureTagsIsMutable(); tags_.add(value); onChanged(); return this; } /** *
     * Tags
     * 
* * repeated string tags = 7; * @param values The tags to add. * @return This builder for chaining. */ public Builder addAllTags( java.lang.Iterable values) { ensureTagsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, tags_); onChanged(); return this; } /** *
     * Tags
     * 
* * repeated string tags = 7; * @return This builder for chaining. */ public Builder clearTags() { tags_ = com.google.protobuf.LazyStringArrayList.EMPTY; bitField0_ = (bitField0_ & ~0x00000040); onChanged(); return this; } /** *
     * Tags
     * 
* * repeated string tags = 7; * @param value The bytes of the tags to add. * @return This builder for chaining. */ public Builder addTagsBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } ensureTagsIsMutable(); tags_.add(value); onChanged(); return this; } private java.lang.Object groupId_ = ""; /** *
     * If this item is part of a group, this is the group identifier
     * 
* * optional string groupId = 8; * @return Whether the groupId field is set. */ public boolean hasGroupId() { return ((bitField0_ & 0x00000080) != 0); } /** *
     * If this item is part of a group, this is the group identifier
     * 
* * optional string groupId = 8; * @return The groupId. */ public java.lang.String getGroupId() { java.lang.Object ref = groupId_; 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()) { groupId_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
     * If this item is part of a group, this is the group identifier
     * 
* * optional string groupId = 8; * @return The bytes for groupId. */ public com.google.protobuf.ByteString getGroupIdBytes() { java.lang.Object ref = groupId_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); groupId_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * If this item is part of a group, this is the group identifier
     * 
* * optional string groupId = 8; * @param value The groupId to set. * @return This builder for chaining. */ public Builder setGroupId( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000080; groupId_ = value; onChanged(); return this; } /** *
     * If this item is part of a group, this is the group identifier
     * 
* * optional string groupId = 8; * @return This builder for chaining. */ public Builder clearGroupId() { bitField0_ = (bitField0_ & ~0x00000080); groupId_ = getDefaultInstance().getGroupId(); onChanged(); return this; } /** *
     * If this item is part of a group, this is the group identifier
     * 
* * optional string groupId = 8; * @param value The bytes for groupId to set. * @return This builder for chaining. */ public Builder setGroupIdBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000080; groupId_ = value; onChanged(); return this; } private org.yamcs.protobuf.RelativeTime relativeTime_; private com.google.protobuf.SingleFieldBuilderV3< org.yamcs.protobuf.RelativeTime, org.yamcs.protobuf.RelativeTime.Builder, org.yamcs.protobuf.RelativeTimeOrBuilder> relativeTimeBuilder_; /** *
     * If the item time specification is relative to another item,
     * ``relativeTime`` contains a reference to that item, as well
     * as the relative start (the duration is the same as given by the
     * ``duration`` field).
     * 
* * optional .yamcs.protobuf.timeline.RelativeTime relativeTime = 9; * @return Whether the relativeTime field is set. */ public boolean hasRelativeTime() { return ((bitField0_ & 0x00000100) != 0); } /** *
     * If the item time specification is relative to another item,
     * ``relativeTime`` contains a reference to that item, as well
     * as the relative start (the duration is the same as given by the
     * ``duration`` field).
     * 
* * optional .yamcs.protobuf.timeline.RelativeTime relativeTime = 9; * @return The relativeTime. */ public org.yamcs.protobuf.RelativeTime getRelativeTime() { if (relativeTimeBuilder_ == null) { return relativeTime_ == null ? org.yamcs.protobuf.RelativeTime.getDefaultInstance() : relativeTime_; } else { return relativeTimeBuilder_.getMessage(); } } /** *
     * If the item time specification is relative to another item,
     * ``relativeTime`` contains a reference to that item, as well
     * as the relative start (the duration is the same as given by the
     * ``duration`` field).
     * 
* * optional .yamcs.protobuf.timeline.RelativeTime relativeTime = 9; */ public Builder setRelativeTime(org.yamcs.protobuf.RelativeTime value) { if (relativeTimeBuilder_ == null) { if (value == null) { throw new NullPointerException(); } relativeTime_ = value; onChanged(); } else { relativeTimeBuilder_.setMessage(value); } bitField0_ |= 0x00000100; return this; } /** *
     * If the item time specification is relative to another item,
     * ``relativeTime`` contains a reference to that item, as well
     * as the relative start (the duration is the same as given by the
     * ``duration`` field).
     * 
* * optional .yamcs.protobuf.timeline.RelativeTime relativeTime = 9; */ public Builder setRelativeTime( org.yamcs.protobuf.RelativeTime.Builder builderForValue) { if (relativeTimeBuilder_ == null) { relativeTime_ = builderForValue.build(); onChanged(); } else { relativeTimeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000100; return this; } /** *
     * If the item time specification is relative to another item,
     * ``relativeTime`` contains a reference to that item, as well
     * as the relative start (the duration is the same as given by the
     * ``duration`` field).
     * 
* * optional .yamcs.protobuf.timeline.RelativeTime relativeTime = 9; */ public Builder mergeRelativeTime(org.yamcs.protobuf.RelativeTime value) { if (relativeTimeBuilder_ == null) { if (((bitField0_ & 0x00000100) != 0) && relativeTime_ != null && relativeTime_ != org.yamcs.protobuf.RelativeTime.getDefaultInstance()) { relativeTime_ = org.yamcs.protobuf.RelativeTime.newBuilder(relativeTime_).mergeFrom(value).buildPartial(); } else { relativeTime_ = value; } onChanged(); } else { relativeTimeBuilder_.mergeFrom(value); } bitField0_ |= 0x00000100; return this; } /** *
     * If the item time specification is relative to another item,
     * ``relativeTime`` contains a reference to that item, as well
     * as the relative start (the duration is the same as given by the
     * ``duration`` field).
     * 
* * optional .yamcs.protobuf.timeline.RelativeTime relativeTime = 9; */ public Builder clearRelativeTime() { if (relativeTimeBuilder_ == null) { relativeTime_ = null; onChanged(); } else { relativeTimeBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000100); return this; } /** *
     * If the item time specification is relative to another item,
     * ``relativeTime`` contains a reference to that item, as well
     * as the relative start (the duration is the same as given by the
     * ``duration`` field).
     * 
* * optional .yamcs.protobuf.timeline.RelativeTime relativeTime = 9; */ public org.yamcs.protobuf.RelativeTime.Builder getRelativeTimeBuilder() { bitField0_ |= 0x00000100; onChanged(); return getRelativeTimeFieldBuilder().getBuilder(); } /** *
     * If the item time specification is relative to another item,
     * ``relativeTime`` contains a reference to that item, as well
     * as the relative start (the duration is the same as given by the
     * ``duration`` field).
     * 
* * optional .yamcs.protobuf.timeline.RelativeTime relativeTime = 9; */ public org.yamcs.protobuf.RelativeTimeOrBuilder getRelativeTimeOrBuilder() { if (relativeTimeBuilder_ != null) { return relativeTimeBuilder_.getMessageOrBuilder(); } else { return relativeTime_ == null ? org.yamcs.protobuf.RelativeTime.getDefaultInstance() : relativeTime_; } } /** *
     * If the item time specification is relative to another item,
     * ``relativeTime`` contains a reference to that item, as well
     * as the relative start (the duration is the same as given by the
     * ``duration`` field).
     * 
* * optional .yamcs.protobuf.timeline.RelativeTime relativeTime = 9; */ private com.google.protobuf.SingleFieldBuilderV3< org.yamcs.protobuf.RelativeTime, org.yamcs.protobuf.RelativeTime.Builder, org.yamcs.protobuf.RelativeTimeOrBuilder> getRelativeTimeFieldBuilder() { if (relativeTimeBuilder_ == null) { relativeTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.yamcs.protobuf.RelativeTime, org.yamcs.protobuf.RelativeTime.Builder, org.yamcs.protobuf.RelativeTimeOrBuilder>( getRelativeTime(), getParentForChildren(), isClean()); relativeTime_ = null; } return relativeTimeBuilder_; } private java.lang.Object description_ = ""; /** *
     * Item description
     * 
* * optional string description = 10; * @return Whether the description field is set. */ public boolean hasDescription() { return ((bitField0_ & 0x00000200) != 0); } /** *
     * Item 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; } } /** *
     * Item 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; } } /** *
     * Item 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; } /** *
     * Item description
     * 
* * optional string description = 10; * @return This builder for chaining. */ public Builder clearDescription() { bitField0_ = (bitField0_ & ~0x00000200); description_ = getDefaultInstance().getDescription(); onChanged(); return this; } /** *
     * Item 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 item
     * 
* * 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 item
     * 
* * 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 item
     * 
* * 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 item
     * 
* * 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 item
     * 
* * 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 item
     * 
* * 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 item
     * 
* * map<string, string> properties = 11; */ public Builder putAllProperties( java.util.Map values) { internalGetMutableProperties().getMutableMap() .putAll(values); return this; } private org.yamcs.protobuf.activities.ActivityDefinitionInfo activityDefinition_; private com.google.protobuf.SingleFieldBuilderV3< org.yamcs.protobuf.activities.ActivityDefinitionInfo, org.yamcs.protobuf.activities.ActivityDefinitionInfo.Builder, org.yamcs.protobuf.activities.ActivityDefinitionInfoOrBuilder> activityDefinitionBuilder_; /** *
     * Activity definition associated to this item.
     * Required if ``type`` is ACTIVITY.
     * 
* * optional .yamcs.protobuf.activities.ActivityDefinitionInfo activityDefinition = 12; * @return Whether the activityDefinition field is set. */ public boolean hasActivityDefinition() { return ((bitField0_ & 0x00000800) != 0); } /** *
     * Activity definition associated to this item.
     * Required if ``type`` is ACTIVITY.
     * 
* * optional .yamcs.protobuf.activities.ActivityDefinitionInfo activityDefinition = 12; * @return The activityDefinition. */ public org.yamcs.protobuf.activities.ActivityDefinitionInfo getActivityDefinition() { if (activityDefinitionBuilder_ == null) { return activityDefinition_ == null ? org.yamcs.protobuf.activities.ActivityDefinitionInfo.getDefaultInstance() : activityDefinition_; } else { return activityDefinitionBuilder_.getMessage(); } } /** *
     * Activity definition associated to this item.
     * Required if ``type`` is ACTIVITY.
     * 
* * optional .yamcs.protobuf.activities.ActivityDefinitionInfo activityDefinition = 12; */ public Builder setActivityDefinition(org.yamcs.protobuf.activities.ActivityDefinitionInfo value) { if (activityDefinitionBuilder_ == null) { if (value == null) { throw new NullPointerException(); } activityDefinition_ = value; onChanged(); } else { activityDefinitionBuilder_.setMessage(value); } bitField0_ |= 0x00000800; return this; } /** *
     * Activity definition associated to this item.
     * Required if ``type`` is ACTIVITY.
     * 
* * optional .yamcs.protobuf.activities.ActivityDefinitionInfo activityDefinition = 12; */ public Builder setActivityDefinition( org.yamcs.protobuf.activities.ActivityDefinitionInfo.Builder builderForValue) { if (activityDefinitionBuilder_ == null) { activityDefinition_ = builderForValue.build(); onChanged(); } else { activityDefinitionBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000800; return this; } /** *
     * Activity definition associated to this item.
     * Required if ``type`` is ACTIVITY.
     * 
* * optional .yamcs.protobuf.activities.ActivityDefinitionInfo activityDefinition = 12; */ public Builder mergeActivityDefinition(org.yamcs.protobuf.activities.ActivityDefinitionInfo value) { if (activityDefinitionBuilder_ == null) { if (((bitField0_ & 0x00000800) != 0) && activityDefinition_ != null && activityDefinition_ != org.yamcs.protobuf.activities.ActivityDefinitionInfo.getDefaultInstance()) { activityDefinition_ = org.yamcs.protobuf.activities.ActivityDefinitionInfo.newBuilder(activityDefinition_).mergeFrom(value).buildPartial(); } else { activityDefinition_ = value; } onChanged(); } else { activityDefinitionBuilder_.mergeFrom(value); } bitField0_ |= 0x00000800; return this; } /** *
     * Activity definition associated to this item.
     * Required if ``type`` is ACTIVITY.
     * 
* * optional .yamcs.protobuf.activities.ActivityDefinitionInfo activityDefinition = 12; */ public Builder clearActivityDefinition() { if (activityDefinitionBuilder_ == null) { activityDefinition_ = null; onChanged(); } else { activityDefinitionBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000800); return this; } /** *
     * Activity definition associated to this item.
     * Required if ``type`` is ACTIVITY.
     * 
* * optional .yamcs.protobuf.activities.ActivityDefinitionInfo activityDefinition = 12; */ public org.yamcs.protobuf.activities.ActivityDefinitionInfo.Builder getActivityDefinitionBuilder() { bitField0_ |= 0x00000800; onChanged(); return getActivityDefinitionFieldBuilder().getBuilder(); } /** *
     * Activity definition associated to this item.
     * Required if ``type`` is ACTIVITY.
     * 
* * optional .yamcs.protobuf.activities.ActivityDefinitionInfo activityDefinition = 12; */ public org.yamcs.protobuf.activities.ActivityDefinitionInfoOrBuilder getActivityDefinitionOrBuilder() { if (activityDefinitionBuilder_ != null) { return activityDefinitionBuilder_.getMessageOrBuilder(); } else { return activityDefinition_ == null ? org.yamcs.protobuf.activities.ActivityDefinitionInfo.getDefaultInstance() : activityDefinition_; } } /** *
     * Activity definition associated to this item.
     * Required if ``type`` is ACTIVITY.
     * 
* * optional .yamcs.protobuf.activities.ActivityDefinitionInfo activityDefinition = 12; */ private com.google.protobuf.SingleFieldBuilderV3< org.yamcs.protobuf.activities.ActivityDefinitionInfo, org.yamcs.protobuf.activities.ActivityDefinitionInfo.Builder, org.yamcs.protobuf.activities.ActivityDefinitionInfoOrBuilder> getActivityDefinitionFieldBuilder() { if (activityDefinitionBuilder_ == null) { activityDefinitionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.yamcs.protobuf.activities.ActivityDefinitionInfo, org.yamcs.protobuf.activities.ActivityDefinitionInfo.Builder, org.yamcs.protobuf.activities.ActivityDefinitionInfoOrBuilder>( getActivityDefinition(), getParentForChildren(), isClean()); activityDefinition_ = null; } return activityDefinitionBuilder_; } @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.CreateItemRequest) } // @@protoc_insertion_point(class_scope:yamcs.protobuf.timeline.CreateItemRequest) private static final org.yamcs.protobuf.CreateItemRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.yamcs.protobuf.CreateItemRequest(); } public static org.yamcs.protobuf.CreateItemRequest getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public CreateItemRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new CreateItemRequest(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.CreateItemRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy