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

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

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

package org.yamcs.protobuf;

/**
 * Protobuf type {@code yamcs.protobuf.cop1.Cop1Config}
 */
public  final class Cop1Config extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:yamcs.protobuf.cop1.Cop1Config)
    Cop1ConfigOrBuilder {
private static final long serialVersionUID = 0L;
  // Use Cop1Config.newBuilder() to construct.
  private Cop1Config(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private Cop1Config() {
    timeoutType_ = 0;
  }

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private Cop1Config(
      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 8: {
            bitField0_ |= 0x00000001;
            vcId_ = input.readUInt32();
            break;
          }
          case 24: {
            bitField0_ |= 0x00000002;
            bdAbsolutePriority_ = input.readBool();
            break;
          }
          case 32: {
            bitField0_ |= 0x00000004;
            windowWidth_ = input.readUInt32();
            break;
          }
          case 40: {
            int rawValue = input.readEnum();
              @SuppressWarnings("deprecation")
            org.yamcs.protobuf.TimeoutType value = org.yamcs.protobuf.TimeoutType.valueOf(rawValue);
            if (value == null) {
              unknownFields.mergeVarintField(5, rawValue);
            } else {
              bitField0_ |= 0x00000008;
              timeoutType_ = rawValue;
            }
            break;
          }
          case 48: {
            bitField0_ |= 0x00000010;
            txLimit_ = input.readUInt32();
            break;
          }
          case 56: {
            bitField0_ |= 0x00000020;
            t1_ = input.readUInt64();
            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 {
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return org.yamcs.protobuf.Cop1Proto.internal_static_yamcs_protobuf_cop1_Cop1Config_descriptor;
  }

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

  private int bitField0_;
  public static final int VCID_FIELD_NUMBER = 1;
  private int vcId_;
  /**
   * optional uint32 vcId = 1;
   */
  public boolean hasVcId() {
    return ((bitField0_ & 0x00000001) != 0);
  }
  /**
   * optional uint32 vcId = 1;
   */
  public int getVcId() {
    return vcId_;
  }

  public static final int BDABSOLUTEPRIORITY_FIELD_NUMBER = 3;
  private boolean bdAbsolutePriority_;
  /**
   * 
   *if true, the BD frames are sent immediately, without going to the waiting queue
   * 
* * optional bool bdAbsolutePriority = 3; */ public boolean hasBdAbsolutePriority() { return ((bitField0_ & 0x00000002) != 0); } /** *
   *if true, the BD frames are sent immediately, without going to the waiting queue
   * 
* * optional bool bdAbsolutePriority = 3; */ public boolean getBdAbsolutePriority() { return bdAbsolutePriority_; } public static final int WINDOWWIDTH_FIELD_NUMBER = 4; private int windowWidth_; /** *
   *maximum size of the sent queue (i.e. how many unackonwledged frames can be in the queue before timing out)
   * 
* * optional uint32 windowWidth = 4; */ public boolean hasWindowWidth() { return ((bitField0_ & 0x00000004) != 0); } /** *
   *maximum size of the sent queue (i.e. how many unackonwledged frames can be in the queue before timing out)
   * 
* * optional uint32 windowWidth = 4; */ public int getWindowWidth() { return windowWidth_; } public static final int TIMEOUTTYPE_FIELD_NUMBER = 5; private int timeoutType_; /** *
   *what should happen on timeout go to SUSPEND or go to UNITIALIZED
   * 
* * optional .yamcs.protobuf.cop1.TimeoutType timeoutType = 5; */ public boolean hasTimeoutType() { return ((bitField0_ & 0x00000008) != 0); } /** *
   *what should happen on timeout go to SUSPEND or go to UNITIALIZED
   * 
* * optional .yamcs.protobuf.cop1.TimeoutType timeoutType = 5; */ public org.yamcs.protobuf.TimeoutType getTimeoutType() { @SuppressWarnings("deprecation") org.yamcs.protobuf.TimeoutType result = org.yamcs.protobuf.TimeoutType.valueOf(timeoutType_); return result == null ? org.yamcs.protobuf.TimeoutType.UNITIALIZE : result; } public static final int TXLIMIT_FIELD_NUMBER = 6; private int txLimit_; /** *
   *how many times the frames are transmitted before timing out
   * 
* * optional uint32 txLimit = 6; */ public boolean hasTxLimit() { return ((bitField0_ & 0x00000010) != 0); } /** *
   *how many times the frames are transmitted before timing out
   * 
* * optional uint32 txLimit = 6; */ public int getTxLimit() { return txLimit_; } public static final int T1_FIELD_NUMBER = 7; private long t1_; /** *
   *how many milliseconds to wait between retransmissions
   * 
* * optional uint64 t1 = 7; */ public boolean hasT1() { return ((bitField0_ & 0x00000020) != 0); } /** *
   *how many milliseconds to wait between retransmissions
   * 
* * optional uint64 t1 = 7; */ public long getT1() { return t1_; } 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)) { output.writeUInt32(1, vcId_); } if (((bitField0_ & 0x00000002) != 0)) { output.writeBool(3, bdAbsolutePriority_); } if (((bitField0_ & 0x00000004) != 0)) { output.writeUInt32(4, windowWidth_); } if (((bitField0_ & 0x00000008) != 0)) { output.writeEnum(5, timeoutType_); } if (((bitField0_ & 0x00000010) != 0)) { output.writeUInt32(6, txLimit_); } if (((bitField0_ & 0x00000020) != 0)) { output.writeUInt64(7, t1_); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(1, vcId_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(3, bdAbsolutePriority_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(4, windowWidth_); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeEnumSize(5, timeoutType_); } if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt32Size(6, txLimit_); } if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream .computeUInt64Size(7, t1_); } 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.Cop1Config)) { return super.equals(obj); } org.yamcs.protobuf.Cop1Config other = (org.yamcs.protobuf.Cop1Config) obj; if (hasVcId() != other.hasVcId()) return false; if (hasVcId()) { if (getVcId() != other.getVcId()) return false; } if (hasBdAbsolutePriority() != other.hasBdAbsolutePriority()) return false; if (hasBdAbsolutePriority()) { if (getBdAbsolutePriority() != other.getBdAbsolutePriority()) return false; } if (hasWindowWidth() != other.hasWindowWidth()) return false; if (hasWindowWidth()) { if (getWindowWidth() != other.getWindowWidth()) return false; } if (hasTimeoutType() != other.hasTimeoutType()) return false; if (hasTimeoutType()) { if (timeoutType_ != other.timeoutType_) return false; } if (hasTxLimit() != other.hasTxLimit()) return false; if (hasTxLimit()) { if (getTxLimit() != other.getTxLimit()) return false; } if (hasT1() != other.hasT1()) return false; if (hasT1()) { if (getT1() != other.getT1()) 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 (hasVcId()) { hash = (37 * hash) + VCID_FIELD_NUMBER; hash = (53 * hash) + getVcId(); } if (hasBdAbsolutePriority()) { hash = (37 * hash) + BDABSOLUTEPRIORITY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getBdAbsolutePriority()); } if (hasWindowWidth()) { hash = (37 * hash) + WINDOWWIDTH_FIELD_NUMBER; hash = (53 * hash) + getWindowWidth(); } if (hasTimeoutType()) { hash = (37 * hash) + TIMEOUTTYPE_FIELD_NUMBER; hash = (53 * hash) + timeoutType_; } if (hasTxLimit()) { hash = (37 * hash) + TXLIMIT_FIELD_NUMBER; hash = (53 * hash) + getTxLimit(); } if (hasT1()) { hash = (37 * hash) + T1_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getT1()); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.yamcs.protobuf.Cop1Config parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.yamcs.protobuf.Cop1Config 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.Cop1Config parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.yamcs.protobuf.Cop1Config 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.Cop1Config parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.yamcs.protobuf.Cop1Config parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.yamcs.protobuf.Cop1Config parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.yamcs.protobuf.Cop1Config 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.Cop1Config parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.yamcs.protobuf.Cop1Config 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.Cop1Config parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.yamcs.protobuf.Cop1Config 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.Cop1Config 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.cop1.Cop1Config} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yamcs.protobuf.cop1.Cop1Config) org.yamcs.protobuf.Cop1ConfigOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.yamcs.protobuf.Cop1Proto.internal_static_yamcs_protobuf_cop1_Cop1Config_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.yamcs.protobuf.Cop1Proto.internal_static_yamcs_protobuf_cop1_Cop1Config_fieldAccessorTable .ensureFieldAccessorsInitialized( org.yamcs.protobuf.Cop1Config.class, org.yamcs.protobuf.Cop1Config.Builder.class); } // Construct using org.yamcs.protobuf.Cop1Config.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { } } @java.lang.Override public Builder clear() { super.clear(); vcId_ = 0; bitField0_ = (bitField0_ & ~0x00000001); bdAbsolutePriority_ = false; bitField0_ = (bitField0_ & ~0x00000002); windowWidth_ = 0; bitField0_ = (bitField0_ & ~0x00000004); timeoutType_ = 0; bitField0_ = (bitField0_ & ~0x00000008); txLimit_ = 0; bitField0_ = (bitField0_ & ~0x00000010); t1_ = 0L; bitField0_ = (bitField0_ & ~0x00000020); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.yamcs.protobuf.Cop1Proto.internal_static_yamcs_protobuf_cop1_Cop1Config_descriptor; } @java.lang.Override public org.yamcs.protobuf.Cop1Config getDefaultInstanceForType() { return org.yamcs.protobuf.Cop1Config.getDefaultInstance(); } @java.lang.Override public org.yamcs.protobuf.Cop1Config build() { org.yamcs.protobuf.Cop1Config result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.yamcs.protobuf.Cop1Config buildPartial() { org.yamcs.protobuf.Cop1Config result = new org.yamcs.protobuf.Cop1Config(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { result.vcId_ = vcId_; to_bitField0_ |= 0x00000001; } if (((from_bitField0_ & 0x00000002) != 0)) { result.bdAbsolutePriority_ = bdAbsolutePriority_; to_bitField0_ |= 0x00000002; } if (((from_bitField0_ & 0x00000004) != 0)) { result.windowWidth_ = windowWidth_; to_bitField0_ |= 0x00000004; } if (((from_bitField0_ & 0x00000008) != 0)) { to_bitField0_ |= 0x00000008; } result.timeoutType_ = timeoutType_; if (((from_bitField0_ & 0x00000010) != 0)) { result.txLimit_ = txLimit_; to_bitField0_ |= 0x00000010; } if (((from_bitField0_ & 0x00000020) != 0)) { result.t1_ = t1_; to_bitField0_ |= 0x00000020; } 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.Cop1Config) { return mergeFrom((org.yamcs.protobuf.Cop1Config)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.yamcs.protobuf.Cop1Config other) { if (other == org.yamcs.protobuf.Cop1Config.getDefaultInstance()) return this; if (other.hasVcId()) { setVcId(other.getVcId()); } if (other.hasBdAbsolutePriority()) { setBdAbsolutePriority(other.getBdAbsolutePriority()); } if (other.hasWindowWidth()) { setWindowWidth(other.getWindowWidth()); } if (other.hasTimeoutType()) { setTimeoutType(other.getTimeoutType()); } if (other.hasTxLimit()) { setTxLimit(other.getTxLimit()); } if (other.hasT1()) { setT1(other.getT1()); } 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.Cop1Config parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.yamcs.protobuf.Cop1Config) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private int vcId_ ; /** * optional uint32 vcId = 1; */ public boolean hasVcId() { return ((bitField0_ & 0x00000001) != 0); } /** * optional uint32 vcId = 1; */ public int getVcId() { return vcId_; } /** * optional uint32 vcId = 1; */ public Builder setVcId(int value) { bitField0_ |= 0x00000001; vcId_ = value; onChanged(); return this; } /** * optional uint32 vcId = 1; */ public Builder clearVcId() { bitField0_ = (bitField0_ & ~0x00000001); vcId_ = 0; onChanged(); return this; } private boolean bdAbsolutePriority_ ; /** *
     *if true, the BD frames are sent immediately, without going to the waiting queue
     * 
* * optional bool bdAbsolutePriority = 3; */ public boolean hasBdAbsolutePriority() { return ((bitField0_ & 0x00000002) != 0); } /** *
     *if true, the BD frames are sent immediately, without going to the waiting queue
     * 
* * optional bool bdAbsolutePriority = 3; */ public boolean getBdAbsolutePriority() { return bdAbsolutePriority_; } /** *
     *if true, the BD frames are sent immediately, without going to the waiting queue
     * 
* * optional bool bdAbsolutePriority = 3; */ public Builder setBdAbsolutePriority(boolean value) { bitField0_ |= 0x00000002; bdAbsolutePriority_ = value; onChanged(); return this; } /** *
     *if true, the BD frames are sent immediately, without going to the waiting queue
     * 
* * optional bool bdAbsolutePriority = 3; */ public Builder clearBdAbsolutePriority() { bitField0_ = (bitField0_ & ~0x00000002); bdAbsolutePriority_ = false; onChanged(); return this; } private int windowWidth_ ; /** *
     *maximum size of the sent queue (i.e. how many unackonwledged frames can be in the queue before timing out)
     * 
* * optional uint32 windowWidth = 4; */ public boolean hasWindowWidth() { return ((bitField0_ & 0x00000004) != 0); } /** *
     *maximum size of the sent queue (i.e. how many unackonwledged frames can be in the queue before timing out)
     * 
* * optional uint32 windowWidth = 4; */ public int getWindowWidth() { return windowWidth_; } /** *
     *maximum size of the sent queue (i.e. how many unackonwledged frames can be in the queue before timing out)
     * 
* * optional uint32 windowWidth = 4; */ public Builder setWindowWidth(int value) { bitField0_ |= 0x00000004; windowWidth_ = value; onChanged(); return this; } /** *
     *maximum size of the sent queue (i.e. how many unackonwledged frames can be in the queue before timing out)
     * 
* * optional uint32 windowWidth = 4; */ public Builder clearWindowWidth() { bitField0_ = (bitField0_ & ~0x00000004); windowWidth_ = 0; onChanged(); return this; } private int timeoutType_ = 0; /** *
     *what should happen on timeout go to SUSPEND or go to UNITIALIZED
     * 
* * optional .yamcs.protobuf.cop1.TimeoutType timeoutType = 5; */ public boolean hasTimeoutType() { return ((bitField0_ & 0x00000008) != 0); } /** *
     *what should happen on timeout go to SUSPEND or go to UNITIALIZED
     * 
* * optional .yamcs.protobuf.cop1.TimeoutType timeoutType = 5; */ public org.yamcs.protobuf.TimeoutType getTimeoutType() { @SuppressWarnings("deprecation") org.yamcs.protobuf.TimeoutType result = org.yamcs.protobuf.TimeoutType.valueOf(timeoutType_); return result == null ? org.yamcs.protobuf.TimeoutType.UNITIALIZE : result; } /** *
     *what should happen on timeout go to SUSPEND or go to UNITIALIZED
     * 
* * optional .yamcs.protobuf.cop1.TimeoutType timeoutType = 5; */ public Builder setTimeoutType(org.yamcs.protobuf.TimeoutType value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000008; timeoutType_ = value.getNumber(); onChanged(); return this; } /** *
     *what should happen on timeout go to SUSPEND or go to UNITIALIZED
     * 
* * optional .yamcs.protobuf.cop1.TimeoutType timeoutType = 5; */ public Builder clearTimeoutType() { bitField0_ = (bitField0_ & ~0x00000008); timeoutType_ = 0; onChanged(); return this; } private int txLimit_ ; /** *
     *how many times the frames are transmitted before timing out
     * 
* * optional uint32 txLimit = 6; */ public boolean hasTxLimit() { return ((bitField0_ & 0x00000010) != 0); } /** *
     *how many times the frames are transmitted before timing out
     * 
* * optional uint32 txLimit = 6; */ public int getTxLimit() { return txLimit_; } /** *
     *how many times the frames are transmitted before timing out
     * 
* * optional uint32 txLimit = 6; */ public Builder setTxLimit(int value) { bitField0_ |= 0x00000010; txLimit_ = value; onChanged(); return this; } /** *
     *how many times the frames are transmitted before timing out
     * 
* * optional uint32 txLimit = 6; */ public Builder clearTxLimit() { bitField0_ = (bitField0_ & ~0x00000010); txLimit_ = 0; onChanged(); return this; } private long t1_ ; /** *
     *how many milliseconds to wait between retransmissions
     * 
* * optional uint64 t1 = 7; */ public boolean hasT1() { return ((bitField0_ & 0x00000020) != 0); } /** *
     *how many milliseconds to wait between retransmissions
     * 
* * optional uint64 t1 = 7; */ public long getT1() { return t1_; } /** *
     *how many milliseconds to wait between retransmissions
     * 
* * optional uint64 t1 = 7; */ public Builder setT1(long value) { bitField0_ |= 0x00000020; t1_ = value; onChanged(); return this; } /** *
     *how many milliseconds to wait between retransmissions
     * 
* * optional uint64 t1 = 7; */ public Builder clearT1() { bitField0_ = (bitField0_ & ~0x00000020); t1_ = 0L; 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.cop1.Cop1Config) } // @@protoc_insertion_point(class_scope:yamcs.protobuf.cop1.Cop1Config) private static final org.yamcs.protobuf.Cop1Config DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.yamcs.protobuf.Cop1Config(); } public static org.yamcs.protobuf.Cop1Config getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public Cop1Config parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new Cop1Config(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.Cop1Config getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy