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

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

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

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private UpdateItemRequest(
      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;
            id_ = bs;
            break;
          }
          case 34: {
            com.google.protobuf.ByteString bs = input.readBytes();
            bitField0_ |= 0x00000008;
            name_ = bs;
            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 64: {
            bitField0_ |= 0x00000040;
            clearTags_ = input.readBool();
            break;
          }
          case 74: {
            com.google.protobuf.ByteString bs = input.readBytes();
            bitField0_ |= 0x00000080;
            groupId_ = bs;
            break;
          }
          case 82: {
            org.yamcs.protobuf.RelativeTime.Builder subBuilder = null;
            if (((bitField0_ & 0x00000100) != 0)) {
              subBuilder = relativeTime_.toBuilder();
            }
            relativeTime_ = input.readMessage(org.yamcs.protobuf.RelativeTime.PARSER, extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(relativeTime_);
              relativeTime_ = subBuilder.buildPartial();
            }
            bitField0_ |= 0x00000100;
            break;
          }
          case 88: {
            int rawValue = input.readEnum();
              @SuppressWarnings("deprecation")
            org.yamcs.protobuf.ExecutionStatus value = org.yamcs.protobuf.ExecutionStatus.valueOf(rawValue);
            if (value == null) {
              unknownFields.mergeVarintField(11, rawValue);
            } else {
              bitField0_ |= 0x00000200;
              status_ = rawValue;
            }
            break;
          }
          case 98: {
            com.google.protobuf.ByteString bs = input.readBytes();
            bitField0_ |= 0x00000400;
            failureReason_ = bs;
            break;
          }
          case 106: {
            if (!((mutable_bitField0_ & 0x00001000) != 0)) {
              properties_ = com.google.protobuf.MapField.newMapField(
                  PropertiesDefaultEntryHolder.defaultEntry);
              mutable_bitField0_ |= 0x00001000;
            }
            com.google.protobuf.MapEntry
            properties__ = input.readMessage(
                PropertiesDefaultEntryHolder.defaultEntry.getParserForType(), extensionRegistry);
            properties_.getMutableMap().put(
                properties__.getKey(), properties__.getValue());
            break;
          }
          case 112: {
            bitField0_ |= 0x00000800;
            clearProperties_ = input.readBool();
            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_UpdateItemRequest_descriptor;
  }

  @SuppressWarnings({"rawtypes"})
  @java.lang.Override
  protected com.google.protobuf.MapField internalGetMapField(
      int number) {
    switch (number) {
      case 13:
        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_UpdateItemRequest_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            org.yamcs.protobuf.UpdateItemRequest.class, org.yamcs.protobuf.UpdateItemRequest.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 ID_FIELD_NUMBER = 3; private volatile java.lang.Object id_; /** *
   * Item identifier
   * 
* * optional string id = 3; * @return Whether the id field is set. */ @java.lang.Override public boolean hasId() { return ((bitField0_ & 0x00000004) != 0); } /** *
   * Item identifier
   * 
* * optional string id = 3; * @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; } } /** *
   * Item identifier
   * 
* * optional string id = 3; * @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 = 4; private volatile java.lang.Object name_; /** *
   * Item name
   * 
* * optional string name = 4; * @return Whether the name field is set. */ @java.lang.Override public boolean hasName() { return ((bitField0_ & 0x00000008) != 0); } /** *
   * Item name
   * 
* * optional string name = 4; * @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 = 4; * @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 START_FIELD_NUMBER = 5; private com.google.protobuf.Timestamp start_; /** *
   * New start time
   * 
* * optional .google.protobuf.Timestamp start = 5; * @return Whether the start field is set. */ @java.lang.Override public boolean hasStart() { return ((bitField0_ & 0x00000010) != 0); } /** *
   * New start time
   * 
* * 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_; } /** *
   * New start time
   * 
* * 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_; /** *
   * New duration
   * 
* * optional .google.protobuf.Duration duration = 6; * @return Whether the duration field is set. */ @java.lang.Override public boolean hasDuration() { return ((bitField0_ & 0x00000020) != 0); } /** *
   * New duration
   * 
* * 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_; } /** *
   * New duration
   * 
* * 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_; /** *
   * New tags
   * 
* * repeated string tags = 7; * @return A list containing the tags. */ public com.google.protobuf.ProtocolStringList getTagsList() { return tags_; } /** *
   * New tags
   * 
* * repeated string tags = 7; * @return The count of tags. */ public int getTagsCount() { return tags_.size(); } /** *
   * New 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); } /** *
   * New 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 CLEARTAGS_FIELD_NUMBER = 8; private boolean clearTags_; /** *
   * Set this to true to remove completely all the tags
   * 
* * optional bool clearTags = 8; * @return Whether the clearTags field is set. */ @java.lang.Override public boolean hasClearTags() { return ((bitField0_ & 0x00000040) != 0); } /** *
   * Set this to true to remove completely all the tags
   * 
* * optional bool clearTags = 8; * @return The clearTags. */ @java.lang.Override public boolean getClearTags() { return clearTags_; } public static final int GROUPID_FIELD_NUMBER = 9; private volatile java.lang.Object groupId_; /** *
   * New group identifier.
   * To keep the old value, leave out. To clear the group, set to an empty string
   * 
* * optional string groupId = 9; * @return Whether the groupId field is set. */ @java.lang.Override public boolean hasGroupId() { return ((bitField0_ & 0x00000080) != 0); } /** *
   * New group identifier.
   * To keep the old value, leave out. To clear the group, set to an empty string
   * 
* * optional string groupId = 9; * @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; } } /** *
   * New group identifier.
   * To keep the old value, leave out. To clear the group, set to an empty string
   * 
* * optional string groupId = 9; * @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 = 10; private org.yamcs.protobuf.RelativeTime relativeTime_; /** *
   * New relative time.
   * To keep the old value, leave out the property. To clear, set ``start``.
   * 
* * optional .yamcs.protobuf.timeline.RelativeTime relativeTime = 10; * @return Whether the relativeTime field is set. */ @java.lang.Override public boolean hasRelativeTime() { return ((bitField0_ & 0x00000100) != 0); } /** *
   * New relative time.
   * To keep the old value, leave out the property. To clear, set ``start``.
   * 
* * optional .yamcs.protobuf.timeline.RelativeTime relativeTime = 10; * @return The relativeTime. */ @java.lang.Override public org.yamcs.protobuf.RelativeTime getRelativeTime() { return relativeTime_ == null ? org.yamcs.protobuf.RelativeTime.getDefaultInstance() : relativeTime_; } /** *
   * New relative time.
   * To keep the old value, leave out the property. To clear, set ``start``.
   * 
* * optional .yamcs.protobuf.timeline.RelativeTime relativeTime = 10; */ @java.lang.Override public org.yamcs.protobuf.RelativeTimeOrBuilder getRelativeTimeOrBuilder() { return relativeTime_ == null ? org.yamcs.protobuf.RelativeTime.getDefaultInstance() : relativeTime_; } public static final int STATUS_FIELD_NUMBER = 11; private int status_; /** *
   *new status (valid for activities)
   * 
* * optional .yamcs.protobuf.timeline.ExecutionStatus status = 11; * @return Whether the status field is set. */ @java.lang.Override public boolean hasStatus() { return ((bitField0_ & 0x00000200) != 0); } /** *
   *new status (valid for activities)
   * 
* * optional .yamcs.protobuf.timeline.ExecutionStatus status = 11; * @return The status. */ @java.lang.Override public org.yamcs.protobuf.ExecutionStatus getStatus() { @SuppressWarnings("deprecation") org.yamcs.protobuf.ExecutionStatus result = org.yamcs.protobuf.ExecutionStatus.valueOf(status_); return result == null ? org.yamcs.protobuf.ExecutionStatus.PLANNED : result; } public static final int FAILUREREASON_FIELD_NUMBER = 12; private volatile java.lang.Object failureReason_; /** *
   *failure reason (valid for activities)
   * 
* * optional string failureReason = 12; * @return Whether the failureReason field is set. */ @java.lang.Override public boolean hasFailureReason() { return ((bitField0_ & 0x00000400) != 0); } /** *
   *failure reason (valid for activities)
   * 
* * optional string failureReason = 12; * @return The failureReason. */ @java.lang.Override public java.lang.String getFailureReason() { java.lang.Object ref = failureReason_; 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()) { failureReason_ = s; } return s; } } /** *
   *failure reason (valid for activities)
   * 
* * optional string failureReason = 12; * @return The bytes for failureReason. */ @java.lang.Override public com.google.protobuf.ByteString getFailureReasonBytes() { java.lang.Object ref = failureReason_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); failureReason_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int PROPERTIES_FIELD_NUMBER = 13; 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_UpdateItemRequest_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 = 13; */ @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 = 13; */ @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 = 13; */ @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 = 13; */ @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 CLEARPROPERTIES_FIELD_NUMBER = 14; private boolean clearProperties_; /** *
   * Set this to true to remove completely all properties
   * 
* * optional bool clearProperties = 14; * @return Whether the clearProperties field is set. */ @java.lang.Override public boolean hasClearProperties() { return ((bitField0_ & 0x00000800) != 0); } /** *
   * Set this to true to remove completely all properties
   * 
* * optional bool clearProperties = 14; * @return The clearProperties. */ @java.lang.Override public boolean getClearProperties() { return clearProperties_; } 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, id_); } if (((bitField0_ & 0x00000008) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, name_); } 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)) { output.writeBool(8, clearTags_); } if (((bitField0_ & 0x00000080) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 9, groupId_); } if (((bitField0_ & 0x00000100) != 0)) { output.writeMessage(10, getRelativeTime()); } if (((bitField0_ & 0x00000200) != 0)) { output.writeEnum(11, status_); } if (((bitField0_ & 0x00000400) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 12, failureReason_); } com.google.protobuf.GeneratedMessageV3 .serializeStringMapTo( output, internalGetProperties(), PropertiesDefaultEntryHolder.defaultEntry, 13); if (((bitField0_ & 0x00000800) != 0)) { output.writeBool(14, clearProperties_); } 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, id_); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, name_); } 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.CodedOutputStream .computeBoolSize(8, clearTags_); } if (((bitField0_ & 0x00000080) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, groupId_); } if (((bitField0_ & 0x00000100) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(10, getRelativeTime()); } if (((bitField0_ & 0x00000200) != 0)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(11, status_); } if (((bitField0_ & 0x00000400) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(12, failureReason_); } 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(13, properties__); } if (((bitField0_ & 0x00000800) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(14, clearProperties_); } 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.UpdateItemRequest)) { return super.equals(obj); } org.yamcs.protobuf.UpdateItemRequest other = (org.yamcs.protobuf.UpdateItemRequest) 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 (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 (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 (hasClearTags() != other.hasClearTags()) return false; if (hasClearTags()) { if (getClearTags() != other.getClearTags()) 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 (hasStatus() != other.hasStatus()) return false; if (hasStatus()) { if (status_ != other.status_) return false; } if (hasFailureReason() != other.hasFailureReason()) return false; if (hasFailureReason()) { if (!getFailureReason() .equals(other.getFailureReason())) return false; } if (!internalGetProperties().equals( other.internalGetProperties())) return false; if (hasClearProperties() != other.hasClearProperties()) return false; if (hasClearProperties()) { if (getClearProperties() != other.getClearProperties()) 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 (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 (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 (hasClearTags()) { hash = (37 * hash) + CLEARTAGS_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getClearTags()); } 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 (hasStatus()) { hash = (37 * hash) + STATUS_FIELD_NUMBER; hash = (53 * hash) + status_; } if (hasFailureReason()) { hash = (37 * hash) + FAILUREREASON_FIELD_NUMBER; hash = (53 * hash) + getFailureReason().hashCode(); } if (!internalGetProperties().getMap().isEmpty()) { hash = (37 * hash) + PROPERTIES_FIELD_NUMBER; hash = (53 * hash) + internalGetProperties().hashCode(); } if (hasClearProperties()) { hash = (37 * hash) + CLEARPROPERTIES_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getClearProperties()); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.yamcs.protobuf.UpdateItemRequest parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.yamcs.protobuf.UpdateItemRequest 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.UpdateItemRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.yamcs.protobuf.UpdateItemRequest 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.UpdateItemRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.yamcs.protobuf.UpdateItemRequest parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.yamcs.protobuf.UpdateItemRequest parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.yamcs.protobuf.UpdateItemRequest 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.UpdateItemRequest parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.yamcs.protobuf.UpdateItemRequest 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.UpdateItemRequest parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.yamcs.protobuf.UpdateItemRequest 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.UpdateItemRequest 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.UpdateItemRequest} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yamcs.protobuf.timeline.UpdateItemRequest) org.yamcs.protobuf.UpdateItemRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.yamcs.protobuf.TimelineProto.internal_static_yamcs_protobuf_timeline_UpdateItemRequest_descriptor; } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMapField( int number) { switch (number) { case 13: return internalGetProperties(); default: throw new RuntimeException( "Invalid map field number: " + number); } } @SuppressWarnings({"rawtypes"}) protected com.google.protobuf.MapField internalGetMutableMapField( int number) { switch (number) { case 13: 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_UpdateItemRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( org.yamcs.protobuf.UpdateItemRequest.class, org.yamcs.protobuf.UpdateItemRequest.Builder.class); } // Construct using org.yamcs.protobuf.UpdateItemRequest.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(); } } @java.lang.Override public Builder clear() { super.clear(); instance_ = ""; bitField0_ = (bitField0_ & ~0x00000001); source_ = ""; bitField0_ = (bitField0_ & ~0x00000002); id_ = ""; bitField0_ = (bitField0_ & ~0x00000004); name_ = ""; 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); clearTags_ = false; bitField0_ = (bitField0_ & ~0x00000080); groupId_ = ""; bitField0_ = (bitField0_ & ~0x00000100); if (relativeTimeBuilder_ == null) { relativeTime_ = null; } else { relativeTimeBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000200); status_ = 1; bitField0_ = (bitField0_ & ~0x00000400); failureReason_ = ""; bitField0_ = (bitField0_ & ~0x00000800); internalGetMutableProperties().clear(); clearProperties_ = false; bitField0_ = (bitField0_ & ~0x00002000); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.yamcs.protobuf.TimelineProto.internal_static_yamcs_protobuf_timeline_UpdateItemRequest_descriptor; } @java.lang.Override public org.yamcs.protobuf.UpdateItemRequest getDefaultInstanceForType() { return org.yamcs.protobuf.UpdateItemRequest.getDefaultInstance(); } @java.lang.Override public org.yamcs.protobuf.UpdateItemRequest build() { org.yamcs.protobuf.UpdateItemRequest result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.yamcs.protobuf.UpdateItemRequest buildPartial() { org.yamcs.protobuf.UpdateItemRequest result = new org.yamcs.protobuf.UpdateItemRequest(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.id_ = id_; if (((from_bitField0_ & 0x00000008) != 0)) { to_bitField0_ |= 0x00000008; } result.name_ = name_; 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)) { result.clearTags_ = clearTags_; to_bitField0_ |= 0x00000040; } if (((from_bitField0_ & 0x00000100) != 0)) { to_bitField0_ |= 0x00000080; } result.groupId_ = groupId_; if (((from_bitField0_ & 0x00000200) != 0)) { if (relativeTimeBuilder_ == null) { result.relativeTime_ = relativeTime_; } else { result.relativeTime_ = relativeTimeBuilder_.build(); } to_bitField0_ |= 0x00000100; } if (((from_bitField0_ & 0x00000400) != 0)) { to_bitField0_ |= 0x00000200; } result.status_ = status_; if (((from_bitField0_ & 0x00000800) != 0)) { to_bitField0_ |= 0x00000400; } result.failureReason_ = failureReason_; result.properties_ = internalGetProperties(); result.properties_.makeImmutable(); if (((from_bitField0_ & 0x00002000) != 0)) { result.clearProperties_ = clearProperties_; to_bitField0_ |= 0x00000800; } 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.UpdateItemRequest) { return mergeFrom((org.yamcs.protobuf.UpdateItemRequest)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.yamcs.protobuf.UpdateItemRequest other) { if (other == org.yamcs.protobuf.UpdateItemRequest.getDefaultInstance()) return this; if (other.hasInstance()) { bitField0_ |= 0x00000001; instance_ = other.instance_; onChanged(); } if (other.hasSource()) { bitField0_ |= 0x00000002; source_ = other.source_; onChanged(); } if (other.hasId()) { bitField0_ |= 0x00000004; id_ = other.id_; onChanged(); } if (other.hasName()) { bitField0_ |= 0x00000008; name_ = other.name_; onChanged(); } 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.hasClearTags()) { setClearTags(other.getClearTags()); } if (other.hasGroupId()) { bitField0_ |= 0x00000100; groupId_ = other.groupId_; onChanged(); } if (other.hasRelativeTime()) { mergeRelativeTime(other.getRelativeTime()); } if (other.hasStatus()) { setStatus(other.getStatus()); } if (other.hasFailureReason()) { bitField0_ |= 0x00000800; failureReason_ = other.failureReason_; onChanged(); } internalGetMutableProperties().mergeFrom( other.internalGetProperties()); if (other.hasClearProperties()) { setClearProperties(other.getClearProperties()); } 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.UpdateItemRequest parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.yamcs.protobuf.UpdateItemRequest) 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 id_ = ""; /** *
     * Item identifier
     * 
* * optional string id = 3; * @return Whether the id field is set. */ public boolean hasId() { return ((bitField0_ & 0x00000004) != 0); } /** *
     * Item identifier
     * 
* * optional string id = 3; * @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; } } /** *
     * Item identifier
     * 
* * optional string id = 3; * @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; } } /** *
     * Item identifier
     * 
* * optional string id = 3; * @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_ |= 0x00000004; id_ = value; onChanged(); return this; } /** *
     * Item identifier
     * 
* * optional string id = 3; * @return This builder for chaining. */ public Builder clearId() { bitField0_ = (bitField0_ & ~0x00000004); id_ = getDefaultInstance().getId(); onChanged(); return this; } /** *
     * Item identifier
     * 
* * optional string id = 3; * @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_ |= 0x00000004; id_ = value; onChanged(); return this; } private java.lang.Object name_ = ""; /** *
     * Item name
     * 
* * optional string name = 4; * @return Whether the name field is set. */ public boolean hasName() { return ((bitField0_ & 0x00000008) != 0); } /** *
     * Item name
     * 
* * optional string name = 4; * @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 = 4; * @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 = 4; * @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_ |= 0x00000008; name_ = value; onChanged(); return this; } /** *
     * Item name
     * 
* * optional string name = 4; * @return This builder for chaining. */ public Builder clearName() { bitField0_ = (bitField0_ & ~0x00000008); name_ = getDefaultInstance().getName(); onChanged(); return this; } /** *
     * Item name
     * 
* * optional string name = 4; * @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_ |= 0x00000008; name_ = value; 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_; /** *
     * New start time
     * 
* * optional .google.protobuf.Timestamp start = 5; * @return Whether the start field is set. */ public boolean hasStart() { return ((bitField0_ & 0x00000010) != 0); } /** *
     * New start time
     * 
* * 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(); } } /** *
     * New start time
     * 
* * 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; } /** *
     * New start time
     * 
* * 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; } /** *
     * New start time
     * 
* * 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; } /** *
     * New start time
     * 
* * optional .google.protobuf.Timestamp start = 5; */ public Builder clearStart() { if (startBuilder_ == null) { start_ = null; onChanged(); } else { startBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000010); return this; } /** *
     * New start time
     * 
* * optional .google.protobuf.Timestamp start = 5; */ public com.google.protobuf.Timestamp.Builder getStartBuilder() { bitField0_ |= 0x00000010; onChanged(); return getStartFieldBuilder().getBuilder(); } /** *
     * New start time
     * 
* * 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_; } } /** *
     * New start time
     * 
* * 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_; /** *
     * New duration
     * 
* * optional .google.protobuf.Duration duration = 6; * @return Whether the duration field is set. */ public boolean hasDuration() { return ((bitField0_ & 0x00000020) != 0); } /** *
     * New duration
     * 
* * 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(); } } /** *
     * New duration
     * 
* * 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; } /** *
     * New duration
     * 
* * 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; } /** *
     * New duration
     * 
* * 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; } /** *
     * New duration
     * 
* * optional .google.protobuf.Duration duration = 6; */ public Builder clearDuration() { if (durationBuilder_ == null) { duration_ = null; onChanged(); } else { durationBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000020); return this; } /** *
     * New duration
     * 
* * optional .google.protobuf.Duration duration = 6; */ public com.google.protobuf.Duration.Builder getDurationBuilder() { bitField0_ |= 0x00000020; onChanged(); return getDurationFieldBuilder().getBuilder(); } /** *
     * New duration
     * 
* * 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_; } } /** *
     * New duration
     * 
* * 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; } } /** *
     * New tags
     * 
* * repeated string tags = 7; * @return A list containing the tags. */ public com.google.protobuf.ProtocolStringList getTagsList() { return tags_.getUnmodifiableView(); } /** *
     * New tags
     * 
* * repeated string tags = 7; * @return The count of tags. */ public int getTagsCount() { return tags_.size(); } /** *
     * New 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); } /** *
     * New 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); } /** *
     * New 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; } /** *
     * New 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; } /** *
     * New 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; } /** *
     * New 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; } /** *
     * New 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 boolean clearTags_ ; /** *
     * Set this to true to remove completely all the tags
     * 
* * optional bool clearTags = 8; * @return Whether the clearTags field is set. */ @java.lang.Override public boolean hasClearTags() { return ((bitField0_ & 0x00000080) != 0); } /** *
     * Set this to true to remove completely all the tags
     * 
* * optional bool clearTags = 8; * @return The clearTags. */ @java.lang.Override public boolean getClearTags() { return clearTags_; } /** *
     * Set this to true to remove completely all the tags
     * 
* * optional bool clearTags = 8; * @param value The clearTags to set. * @return This builder for chaining. */ public Builder setClearTags(boolean value) { bitField0_ |= 0x00000080; clearTags_ = value; onChanged(); return this; } /** *
     * Set this to true to remove completely all the tags
     * 
* * optional bool clearTags = 8; * @return This builder for chaining. */ public Builder clearClearTags() { bitField0_ = (bitField0_ & ~0x00000080); clearTags_ = false; onChanged(); return this; } private java.lang.Object groupId_ = ""; /** *
     * New group identifier.
     * To keep the old value, leave out. To clear the group, set to an empty string
     * 
* * optional string groupId = 9; * @return Whether the groupId field is set. */ public boolean hasGroupId() { return ((bitField0_ & 0x00000100) != 0); } /** *
     * New group identifier.
     * To keep the old value, leave out. To clear the group, set to an empty string
     * 
* * optional string groupId = 9; * @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; } } /** *
     * New group identifier.
     * To keep the old value, leave out. To clear the group, set to an empty string
     * 
* * optional string groupId = 9; * @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; } } /** *
     * New group identifier.
     * To keep the old value, leave out. To clear the group, set to an empty string
     * 
* * optional string groupId = 9; * @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_ |= 0x00000100; groupId_ = value; onChanged(); return this; } /** *
     * New group identifier.
     * To keep the old value, leave out. To clear the group, set to an empty string
     * 
* * optional string groupId = 9; * @return This builder for chaining. */ public Builder clearGroupId() { bitField0_ = (bitField0_ & ~0x00000100); groupId_ = getDefaultInstance().getGroupId(); onChanged(); return this; } /** *
     * New group identifier.
     * To keep the old value, leave out. To clear the group, set to an empty string
     * 
* * optional string groupId = 9; * @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_ |= 0x00000100; 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_; /** *
     * New relative time.
     * To keep the old value, leave out the property. To clear, set ``start``.
     * 
* * optional .yamcs.protobuf.timeline.RelativeTime relativeTime = 10; * @return Whether the relativeTime field is set. */ public boolean hasRelativeTime() { return ((bitField0_ & 0x00000200) != 0); } /** *
     * New relative time.
     * To keep the old value, leave out the property. To clear, set ``start``.
     * 
* * optional .yamcs.protobuf.timeline.RelativeTime relativeTime = 10; * @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(); } } /** *
     * New relative time.
     * To keep the old value, leave out the property. To clear, set ``start``.
     * 
* * optional .yamcs.protobuf.timeline.RelativeTime relativeTime = 10; */ 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_ |= 0x00000200; return this; } /** *
     * New relative time.
     * To keep the old value, leave out the property. To clear, set ``start``.
     * 
* * optional .yamcs.protobuf.timeline.RelativeTime relativeTime = 10; */ public Builder setRelativeTime( org.yamcs.protobuf.RelativeTime.Builder builderForValue) { if (relativeTimeBuilder_ == null) { relativeTime_ = builderForValue.build(); onChanged(); } else { relativeTimeBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000200; return this; } /** *
     * New relative time.
     * To keep the old value, leave out the property. To clear, set ``start``.
     * 
* * optional .yamcs.protobuf.timeline.RelativeTime relativeTime = 10; */ public Builder mergeRelativeTime(org.yamcs.protobuf.RelativeTime value) { if (relativeTimeBuilder_ == null) { if (((bitField0_ & 0x00000200) != 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_ |= 0x00000200; return this; } /** *
     * New relative time.
     * To keep the old value, leave out the property. To clear, set ``start``.
     * 
* * optional .yamcs.protobuf.timeline.RelativeTime relativeTime = 10; */ public Builder clearRelativeTime() { if (relativeTimeBuilder_ == null) { relativeTime_ = null; onChanged(); } else { relativeTimeBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000200); return this; } /** *
     * New relative time.
     * To keep the old value, leave out the property. To clear, set ``start``.
     * 
* * optional .yamcs.protobuf.timeline.RelativeTime relativeTime = 10; */ public org.yamcs.protobuf.RelativeTime.Builder getRelativeTimeBuilder() { bitField0_ |= 0x00000200; onChanged(); return getRelativeTimeFieldBuilder().getBuilder(); } /** *
     * New relative time.
     * To keep the old value, leave out the property. To clear, set ``start``.
     * 
* * optional .yamcs.protobuf.timeline.RelativeTime relativeTime = 10; */ public org.yamcs.protobuf.RelativeTimeOrBuilder getRelativeTimeOrBuilder() { if (relativeTimeBuilder_ != null) { return relativeTimeBuilder_.getMessageOrBuilder(); } else { return relativeTime_ == null ? org.yamcs.protobuf.RelativeTime.getDefaultInstance() : relativeTime_; } } /** *
     * New relative time.
     * To keep the old value, leave out the property. To clear, set ``start``.
     * 
* * optional .yamcs.protobuf.timeline.RelativeTime relativeTime = 10; */ 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 int status_ = 1; /** *
     *new status (valid for activities)
     * 
* * optional .yamcs.protobuf.timeline.ExecutionStatus status = 11; * @return Whether the status field is set. */ @java.lang.Override public boolean hasStatus() { return ((bitField0_ & 0x00000400) != 0); } /** *
     *new status (valid for activities)
     * 
* * optional .yamcs.protobuf.timeline.ExecutionStatus status = 11; * @return The status. */ @java.lang.Override public org.yamcs.protobuf.ExecutionStatus getStatus() { @SuppressWarnings("deprecation") org.yamcs.protobuf.ExecutionStatus result = org.yamcs.protobuf.ExecutionStatus.valueOf(status_); return result == null ? org.yamcs.protobuf.ExecutionStatus.PLANNED : result; } /** *
     *new status (valid for activities)
     * 
* * optional .yamcs.protobuf.timeline.ExecutionStatus status = 11; * @param value The status to set. * @return This builder for chaining. */ public Builder setStatus(org.yamcs.protobuf.ExecutionStatus value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000400; status_ = value.getNumber(); onChanged(); return this; } /** *
     *new status (valid for activities)
     * 
* * optional .yamcs.protobuf.timeline.ExecutionStatus status = 11; * @return This builder for chaining. */ public Builder clearStatus() { bitField0_ = (bitField0_ & ~0x00000400); status_ = 1; onChanged(); return this; } private java.lang.Object failureReason_ = ""; /** *
     *failure reason (valid for activities)
     * 
* * optional string failureReason = 12; * @return Whether the failureReason field is set. */ public boolean hasFailureReason() { return ((bitField0_ & 0x00000800) != 0); } /** *
     *failure reason (valid for activities)
     * 
* * optional string failureReason = 12; * @return The failureReason. */ public java.lang.String getFailureReason() { java.lang.Object ref = failureReason_; 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()) { failureReason_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
     *failure reason (valid for activities)
     * 
* * optional string failureReason = 12; * @return The bytes for failureReason. */ public com.google.protobuf.ByteString getFailureReasonBytes() { java.lang.Object ref = failureReason_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); failureReason_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     *failure reason (valid for activities)
     * 
* * optional string failureReason = 12; * @param value The failureReason to set. * @return This builder for chaining. */ public Builder setFailureReason( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000800; failureReason_ = value; onChanged(); return this; } /** *
     *failure reason (valid for activities)
     * 
* * optional string failureReason = 12; * @return This builder for chaining. */ public Builder clearFailureReason() { bitField0_ = (bitField0_ & ~0x00000800); failureReason_ = getDefaultInstance().getFailureReason(); onChanged(); return this; } /** *
     *failure reason (valid for activities)
     * 
* * optional string failureReason = 12; * @param value The bytes for failureReason to set. * @return This builder for chaining. */ public Builder setFailureReasonBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000800; failureReason_ = 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 = 13; */ @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 = 13; */ @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 = 13; */ @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 = 13; */ @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 = 13; */ 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 = 13; */ 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 = 13; */ public Builder putAllProperties( java.util.Map values) { internalGetMutableProperties().getMutableMap() .putAll(values); return this; } private boolean clearProperties_ ; /** *
     * Set this to true to remove completely all properties
     * 
* * optional bool clearProperties = 14; * @return Whether the clearProperties field is set. */ @java.lang.Override public boolean hasClearProperties() { return ((bitField0_ & 0x00002000) != 0); } /** *
     * Set this to true to remove completely all properties
     * 
* * optional bool clearProperties = 14; * @return The clearProperties. */ @java.lang.Override public boolean getClearProperties() { return clearProperties_; } /** *
     * Set this to true to remove completely all properties
     * 
* * optional bool clearProperties = 14; * @param value The clearProperties to set. * @return This builder for chaining. */ public Builder setClearProperties(boolean value) { bitField0_ |= 0x00002000; clearProperties_ = value; onChanged(); return this; } /** *
     * Set this to true to remove completely all properties
     * 
* * optional bool clearProperties = 14; * @return This builder for chaining. */ public Builder clearClearProperties() { bitField0_ = (bitField0_ & ~0x00002000); clearProperties_ = false; onChanged(); return this; } @java.lang.Override public final Builder setUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @java.lang.Override public final Builder mergeUnknownFields( final com.google.protobuf.UnknownFieldSet unknownFields) { return super.mergeUnknownFields(unknownFields); } // @@protoc_insertion_point(builder_scope:yamcs.protobuf.timeline.UpdateItemRequest) } // @@protoc_insertion_point(class_scope:yamcs.protobuf.timeline.UpdateItemRequest) private static final org.yamcs.protobuf.UpdateItemRequest DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.yamcs.protobuf.UpdateItemRequest(); } public static org.yamcs.protobuf.UpdateItemRequest getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public UpdateItemRequest parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new UpdateItemRequest(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.UpdateItemRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy