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

org.yamcs.protobuf.actions.ActionInfo 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/actions/actions.proto

package org.yamcs.protobuf.actions;

/**
 * Protobuf type {@code yamcs.protobuf.actions.ActionInfo}
 */
public final class ActionInfo extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:yamcs.protobuf.actions.ActionInfo)
    ActionInfoOrBuilder {
private static final long serialVersionUID = 0L;
  // Use ActionInfo.newBuilder() to construct.
  private ActionInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private ActionInfo() {
    id_ = "";
    label_ = "";
    style_ = "";
  }

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

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private ActionInfo(
      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;
            id_ = bs;
            break;
          }
          case 18: {
            com.google.protobuf.ByteString bs = input.readBytes();
            bitField0_ |= 0x00000002;
            label_ = bs;
            break;
          }
          case 26: {
            com.google.protobuf.ByteString bs = input.readBytes();
            bitField0_ |= 0x00000004;
            style_ = bs;
            break;
          }
          case 32: {
            bitField0_ |= 0x00000008;
            enabled_ = input.readBool();
            break;
          }
          case 40: {
            bitField0_ |= 0x00000010;
            checked_ = input.readBool();
            break;
          }
          case 50: {
            org.yamcs.protobuf.config.SpecInfo.Builder subBuilder = null;
            if (((bitField0_ & 0x00000020) != 0)) {
              subBuilder = spec_.toBuilder();
            }
            spec_ = input.readMessage(org.yamcs.protobuf.config.SpecInfo.PARSER, extensionRegistry);
            if (subBuilder != null) {
              subBuilder.mergeFrom(spec_);
              spec_ = subBuilder.buildPartial();
            }
            bitField0_ |= 0x00000020;
            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.actions.ActionsProto.internal_static_yamcs_protobuf_actions_ActionInfo_descriptor;
  }

  @java.lang.Override
  protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internalGetFieldAccessorTable() {
    return org.yamcs.protobuf.actions.ActionsProto.internal_static_yamcs_protobuf_actions_ActionInfo_fieldAccessorTable
        .ensureFieldAccessorsInitialized(
            org.yamcs.protobuf.actions.ActionInfo.class, org.yamcs.protobuf.actions.ActionInfo.Builder.class);
  }

  private int bitField0_;
  public static final int ID_FIELD_NUMBER = 1;
  private volatile java.lang.Object id_;
  /**
   * 
   * Action identifier
   * 
* * optional string id = 1; * @return Whether the id field is set. */ @java.lang.Override public boolean hasId() { return ((bitField0_ & 0x00000001) != 0); } /** *
   * Action identifier
   * 
* * optional string id = 1; * @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; } } /** *
   * Action identifier
   * 
* * optional string id = 1; * @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 LABEL_FIELD_NUMBER = 2; private volatile java.lang.Object label_; /** *
   * Label describing an action
   * 
* * optional string label = 2; * @return Whether the label field is set. */ @java.lang.Override public boolean hasLabel() { return ((bitField0_ & 0x00000002) != 0); } /** *
   * Label describing an action
   * 
* * optional string label = 2; * @return The label. */ @java.lang.Override public java.lang.String getLabel() { java.lang.Object ref = label_; 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()) { label_ = s; } return s; } } /** *
   * Label describing an action
   * 
* * optional string label = 2; * @return The bytes for label. */ @java.lang.Override public com.google.protobuf.ByteString getLabelBytes() { java.lang.Object ref = label_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); label_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int STYLE_FIELD_NUMBER = 3; private volatile java.lang.Object style_; /** *
   * Action style, one of ``PUSH_BUTTON`` or ``CHECK_BOX``
   * 
* * optional string style = 3; * @return Whether the style field is set. */ @java.lang.Override public boolean hasStyle() { return ((bitField0_ & 0x00000004) != 0); } /** *
   * Action style, one of ``PUSH_BUTTON`` or ``CHECK_BOX``
   * 
* * optional string style = 3; * @return The style. */ @java.lang.Override public java.lang.String getStyle() { java.lang.Object ref = style_; 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()) { style_ = s; } return s; } } /** *
   * Action style, one of ``PUSH_BUTTON`` or ``CHECK_BOX``
   * 
* * optional string style = 3; * @return The bytes for style. */ @java.lang.Override public com.google.protobuf.ByteString getStyleBytes() { java.lang.Object ref = style_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); style_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } public static final int ENABLED_FIELD_NUMBER = 4; private boolean enabled_; /** *
   * Whether this action is currently enabled
   * 
* * optional bool enabled = 4; * @return Whether the enabled field is set. */ @java.lang.Override public boolean hasEnabled() { return ((bitField0_ & 0x00000008) != 0); } /** *
   * Whether this action is currently enabled
   * 
* * optional bool enabled = 4; * @return The enabled. */ @java.lang.Override public boolean getEnabled() { return enabled_; } public static final int CHECKED_FIELD_NUMBER = 5; private boolean checked_; /** *
   * Whether this action is currently checked
   * 
* * optional bool checked = 5; * @return Whether the checked field is set. */ @java.lang.Override public boolean hasChecked() { return ((bitField0_ & 0x00000010) != 0); } /** *
   * Whether this action is currently checked
   * 
* * optional bool checked = 5; * @return The checked. */ @java.lang.Override public boolean getChecked() { return checked_; } public static final int SPEC_FIELD_NUMBER = 6; private org.yamcs.protobuf.config.SpecInfo spec_; /** *
   * Specification of action options (if any)
   * 
* * optional .yamcs.protobuf.config.SpecInfo spec = 6; * @return Whether the spec field is set. */ @java.lang.Override public boolean hasSpec() { return ((bitField0_ & 0x00000020) != 0); } /** *
   * Specification of action options (if any)
   * 
* * optional .yamcs.protobuf.config.SpecInfo spec = 6; * @return The spec. */ @java.lang.Override public org.yamcs.protobuf.config.SpecInfo getSpec() { return spec_ == null ? org.yamcs.protobuf.config.SpecInfo.getDefaultInstance() : spec_; } /** *
   * Specification of action options (if any)
   * 
* * optional .yamcs.protobuf.config.SpecInfo spec = 6; */ @java.lang.Override public org.yamcs.protobuf.config.SpecInfoOrBuilder getSpecOrBuilder() { return spec_ == null ? org.yamcs.protobuf.config.SpecInfo.getDefaultInstance() : spec_; } 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, id_); } if (((bitField0_ & 0x00000002) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, label_); } if (((bitField0_ & 0x00000004) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 3, style_); } if (((bitField0_ & 0x00000008) != 0)) { output.writeBool(4, enabled_); } if (((bitField0_ & 0x00000010) != 0)) { output.writeBool(5, checked_); } if (((bitField0_ & 0x00000020) != 0)) { output.writeMessage(6, getSpec()); } 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, id_); } if (((bitField0_ & 0x00000002) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, label_); } if (((bitField0_ & 0x00000004) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, style_); } if (((bitField0_ & 0x00000008) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(4, enabled_); } if (((bitField0_ & 0x00000010) != 0)) { size += com.google.protobuf.CodedOutputStream .computeBoolSize(5, checked_); } if (((bitField0_ & 0x00000020) != 0)) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(6, getSpec()); } 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.actions.ActionInfo)) { return super.equals(obj); } org.yamcs.protobuf.actions.ActionInfo other = (org.yamcs.protobuf.actions.ActionInfo) obj; if (hasId() != other.hasId()) return false; if (hasId()) { if (!getId() .equals(other.getId())) return false; } if (hasLabel() != other.hasLabel()) return false; if (hasLabel()) { if (!getLabel() .equals(other.getLabel())) return false; } if (hasStyle() != other.hasStyle()) return false; if (hasStyle()) { if (!getStyle() .equals(other.getStyle())) return false; } if (hasEnabled() != other.hasEnabled()) return false; if (hasEnabled()) { if (getEnabled() != other.getEnabled()) return false; } if (hasChecked() != other.hasChecked()) return false; if (hasChecked()) { if (getChecked() != other.getChecked()) return false; } if (hasSpec() != other.hasSpec()) return false; if (hasSpec()) { if (!getSpec() .equals(other.getSpec())) 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 (hasId()) { hash = (37 * hash) + ID_FIELD_NUMBER; hash = (53 * hash) + getId().hashCode(); } if (hasLabel()) { hash = (37 * hash) + LABEL_FIELD_NUMBER; hash = (53 * hash) + getLabel().hashCode(); } if (hasStyle()) { hash = (37 * hash) + STYLE_FIELD_NUMBER; hash = (53 * hash) + getStyle().hashCode(); } if (hasEnabled()) { hash = (37 * hash) + ENABLED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getEnabled()); } if (hasChecked()) { hash = (37 * hash) + CHECKED_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( getChecked()); } if (hasSpec()) { hash = (37 * hash) + SPEC_FIELD_NUMBER; hash = (53 * hash) + getSpec().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.yamcs.protobuf.actions.ActionInfo parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.yamcs.protobuf.actions.ActionInfo 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.actions.ActionInfo parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.yamcs.protobuf.actions.ActionInfo 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.actions.ActionInfo parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.yamcs.protobuf.actions.ActionInfo parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.yamcs.protobuf.actions.ActionInfo parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.yamcs.protobuf.actions.ActionInfo 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.actions.ActionInfo parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.yamcs.protobuf.actions.ActionInfo 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.actions.ActionInfo parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.yamcs.protobuf.actions.ActionInfo 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.actions.ActionInfo 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.actions.ActionInfo} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yamcs.protobuf.actions.ActionInfo) org.yamcs.protobuf.actions.ActionInfoOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.yamcs.protobuf.actions.ActionsProto.internal_static_yamcs_protobuf_actions_ActionInfo_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.yamcs.protobuf.actions.ActionsProto.internal_static_yamcs_protobuf_actions_ActionInfo_fieldAccessorTable .ensureFieldAccessorsInitialized( org.yamcs.protobuf.actions.ActionInfo.class, org.yamcs.protobuf.actions.ActionInfo.Builder.class); } // Construct using org.yamcs.protobuf.actions.ActionInfo.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getSpecFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); id_ = ""; bitField0_ = (bitField0_ & ~0x00000001); label_ = ""; bitField0_ = (bitField0_ & ~0x00000002); style_ = ""; bitField0_ = (bitField0_ & ~0x00000004); enabled_ = false; bitField0_ = (bitField0_ & ~0x00000008); checked_ = false; bitField0_ = (bitField0_ & ~0x00000010); if (specBuilder_ == null) { spec_ = null; } else { specBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000020); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.yamcs.protobuf.actions.ActionsProto.internal_static_yamcs_protobuf_actions_ActionInfo_descriptor; } @java.lang.Override public org.yamcs.protobuf.actions.ActionInfo getDefaultInstanceForType() { return org.yamcs.protobuf.actions.ActionInfo.getDefaultInstance(); } @java.lang.Override public org.yamcs.protobuf.actions.ActionInfo build() { org.yamcs.protobuf.actions.ActionInfo result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.yamcs.protobuf.actions.ActionInfo buildPartial() { org.yamcs.protobuf.actions.ActionInfo result = new org.yamcs.protobuf.actions.ActionInfo(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (((from_bitField0_ & 0x00000001) != 0)) { to_bitField0_ |= 0x00000001; } result.id_ = id_; if (((from_bitField0_ & 0x00000002) != 0)) { to_bitField0_ |= 0x00000002; } result.label_ = label_; if (((from_bitField0_ & 0x00000004) != 0)) { to_bitField0_ |= 0x00000004; } result.style_ = style_; if (((from_bitField0_ & 0x00000008) != 0)) { result.enabled_ = enabled_; to_bitField0_ |= 0x00000008; } if (((from_bitField0_ & 0x00000010) != 0)) { result.checked_ = checked_; to_bitField0_ |= 0x00000010; } if (((from_bitField0_ & 0x00000020) != 0)) { if (specBuilder_ == null) { result.spec_ = spec_; } else { result.spec_ = specBuilder_.build(); } 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.actions.ActionInfo) { return mergeFrom((org.yamcs.protobuf.actions.ActionInfo)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.yamcs.protobuf.actions.ActionInfo other) { if (other == org.yamcs.protobuf.actions.ActionInfo.getDefaultInstance()) return this; if (other.hasId()) { bitField0_ |= 0x00000001; id_ = other.id_; onChanged(); } if (other.hasLabel()) { bitField0_ |= 0x00000002; label_ = other.label_; onChanged(); } if (other.hasStyle()) { bitField0_ |= 0x00000004; style_ = other.style_; onChanged(); } if (other.hasEnabled()) { setEnabled(other.getEnabled()); } if (other.hasChecked()) { setChecked(other.getChecked()); } if (other.hasSpec()) { mergeSpec(other.getSpec()); } 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.actions.ActionInfo parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.yamcs.protobuf.actions.ActionInfo) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.lang.Object id_ = ""; /** *
     * Action identifier
     * 
* * optional string id = 1; * @return Whether the id field is set. */ public boolean hasId() { return ((bitField0_ & 0x00000001) != 0); } /** *
     * Action identifier
     * 
* * optional string id = 1; * @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; } } /** *
     * Action identifier
     * 
* * optional string id = 1; * @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; } } /** *
     * Action identifier
     * 
* * optional string id = 1; * @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_ |= 0x00000001; id_ = value; onChanged(); return this; } /** *
     * Action identifier
     * 
* * optional string id = 1; * @return This builder for chaining. */ public Builder clearId() { bitField0_ = (bitField0_ & ~0x00000001); id_ = getDefaultInstance().getId(); onChanged(); return this; } /** *
     * Action identifier
     * 
* * optional string id = 1; * @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_ |= 0x00000001; id_ = value; onChanged(); return this; } private java.lang.Object label_ = ""; /** *
     * Label describing an action
     * 
* * optional string label = 2; * @return Whether the label field is set. */ public boolean hasLabel() { return ((bitField0_ & 0x00000002) != 0); } /** *
     * Label describing an action
     * 
* * optional string label = 2; * @return The label. */ public java.lang.String getLabel() { java.lang.Object ref = label_; 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()) { label_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
     * Label describing an action
     * 
* * optional string label = 2; * @return The bytes for label. */ public com.google.protobuf.ByteString getLabelBytes() { java.lang.Object ref = label_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); label_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Label describing an action
     * 
* * optional string label = 2; * @param value The label to set. * @return This builder for chaining. */ public Builder setLabel( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; label_ = value; onChanged(); return this; } /** *
     * Label describing an action
     * 
* * optional string label = 2; * @return This builder for chaining. */ public Builder clearLabel() { bitField0_ = (bitField0_ & ~0x00000002); label_ = getDefaultInstance().getLabel(); onChanged(); return this; } /** *
     * Label describing an action
     * 
* * optional string label = 2; * @param value The bytes for label to set. * @return This builder for chaining. */ public Builder setLabelBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000002; label_ = value; onChanged(); return this; } private java.lang.Object style_ = ""; /** *
     * Action style, one of ``PUSH_BUTTON`` or ``CHECK_BOX``
     * 
* * optional string style = 3; * @return Whether the style field is set. */ public boolean hasStyle() { return ((bitField0_ & 0x00000004) != 0); } /** *
     * Action style, one of ``PUSH_BUTTON`` or ``CHECK_BOX``
     * 
* * optional string style = 3; * @return The style. */ public java.lang.String getStyle() { java.lang.Object ref = style_; 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()) { style_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
     * Action style, one of ``PUSH_BUTTON`` or ``CHECK_BOX``
     * 
* * optional string style = 3; * @return The bytes for style. */ public com.google.protobuf.ByteString getStyleBytes() { java.lang.Object ref = style_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); style_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Action style, one of ``PUSH_BUTTON`` or ``CHECK_BOX``
     * 
* * optional string style = 3; * @param value The style to set. * @return This builder for chaining. */ public Builder setStyle( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; style_ = value; onChanged(); return this; } /** *
     * Action style, one of ``PUSH_BUTTON`` or ``CHECK_BOX``
     * 
* * optional string style = 3; * @return This builder for chaining. */ public Builder clearStyle() { bitField0_ = (bitField0_ & ~0x00000004); style_ = getDefaultInstance().getStyle(); onChanged(); return this; } /** *
     * Action style, one of ``PUSH_BUTTON`` or ``CHECK_BOX``
     * 
* * optional string style = 3; * @param value The bytes for style to set. * @return This builder for chaining. */ public Builder setStyleBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; style_ = value; onChanged(); return this; } private boolean enabled_ ; /** *
     * Whether this action is currently enabled
     * 
* * optional bool enabled = 4; * @return Whether the enabled field is set. */ @java.lang.Override public boolean hasEnabled() { return ((bitField0_ & 0x00000008) != 0); } /** *
     * Whether this action is currently enabled
     * 
* * optional bool enabled = 4; * @return The enabled. */ @java.lang.Override public boolean getEnabled() { return enabled_; } /** *
     * Whether this action is currently enabled
     * 
* * optional bool enabled = 4; * @param value The enabled to set. * @return This builder for chaining. */ public Builder setEnabled(boolean value) { bitField0_ |= 0x00000008; enabled_ = value; onChanged(); return this; } /** *
     * Whether this action is currently enabled
     * 
* * optional bool enabled = 4; * @return This builder for chaining. */ public Builder clearEnabled() { bitField0_ = (bitField0_ & ~0x00000008); enabled_ = false; onChanged(); return this; } private boolean checked_ ; /** *
     * Whether this action is currently checked
     * 
* * optional bool checked = 5; * @return Whether the checked field is set. */ @java.lang.Override public boolean hasChecked() { return ((bitField0_ & 0x00000010) != 0); } /** *
     * Whether this action is currently checked
     * 
* * optional bool checked = 5; * @return The checked. */ @java.lang.Override public boolean getChecked() { return checked_; } /** *
     * Whether this action is currently checked
     * 
* * optional bool checked = 5; * @param value The checked to set. * @return This builder for chaining. */ public Builder setChecked(boolean value) { bitField0_ |= 0x00000010; checked_ = value; onChanged(); return this; } /** *
     * Whether this action is currently checked
     * 
* * optional bool checked = 5; * @return This builder for chaining. */ public Builder clearChecked() { bitField0_ = (bitField0_ & ~0x00000010); checked_ = false; onChanged(); return this; } private org.yamcs.protobuf.config.SpecInfo spec_; private com.google.protobuf.SingleFieldBuilderV3< org.yamcs.protobuf.config.SpecInfo, org.yamcs.protobuf.config.SpecInfo.Builder, org.yamcs.protobuf.config.SpecInfoOrBuilder> specBuilder_; /** *
     * Specification of action options (if any)
     * 
* * optional .yamcs.protobuf.config.SpecInfo spec = 6; * @return Whether the spec field is set. */ public boolean hasSpec() { return ((bitField0_ & 0x00000020) != 0); } /** *
     * Specification of action options (if any)
     * 
* * optional .yamcs.protobuf.config.SpecInfo spec = 6; * @return The spec. */ public org.yamcs.protobuf.config.SpecInfo getSpec() { if (specBuilder_ == null) { return spec_ == null ? org.yamcs.protobuf.config.SpecInfo.getDefaultInstance() : spec_; } else { return specBuilder_.getMessage(); } } /** *
     * Specification of action options (if any)
     * 
* * optional .yamcs.protobuf.config.SpecInfo spec = 6; */ public Builder setSpec(org.yamcs.protobuf.config.SpecInfo value) { if (specBuilder_ == null) { if (value == null) { throw new NullPointerException(); } spec_ = value; onChanged(); } else { specBuilder_.setMessage(value); } bitField0_ |= 0x00000020; return this; } /** *
     * Specification of action options (if any)
     * 
* * optional .yamcs.protobuf.config.SpecInfo spec = 6; */ public Builder setSpec( org.yamcs.protobuf.config.SpecInfo.Builder builderForValue) { if (specBuilder_ == null) { spec_ = builderForValue.build(); onChanged(); } else { specBuilder_.setMessage(builderForValue.build()); } bitField0_ |= 0x00000020; return this; } /** *
     * Specification of action options (if any)
     * 
* * optional .yamcs.protobuf.config.SpecInfo spec = 6; */ public Builder mergeSpec(org.yamcs.protobuf.config.SpecInfo value) { if (specBuilder_ == null) { if (((bitField0_ & 0x00000020) != 0) && spec_ != null && spec_ != org.yamcs.protobuf.config.SpecInfo.getDefaultInstance()) { spec_ = org.yamcs.protobuf.config.SpecInfo.newBuilder(spec_).mergeFrom(value).buildPartial(); } else { spec_ = value; } onChanged(); } else { specBuilder_.mergeFrom(value); } bitField0_ |= 0x00000020; return this; } /** *
     * Specification of action options (if any)
     * 
* * optional .yamcs.protobuf.config.SpecInfo spec = 6; */ public Builder clearSpec() { if (specBuilder_ == null) { spec_ = null; onChanged(); } else { specBuilder_.clear(); } bitField0_ = (bitField0_ & ~0x00000020); return this; } /** *
     * Specification of action options (if any)
     * 
* * optional .yamcs.protobuf.config.SpecInfo spec = 6; */ public org.yamcs.protobuf.config.SpecInfo.Builder getSpecBuilder() { bitField0_ |= 0x00000020; onChanged(); return getSpecFieldBuilder().getBuilder(); } /** *
     * Specification of action options (if any)
     * 
* * optional .yamcs.protobuf.config.SpecInfo spec = 6; */ public org.yamcs.protobuf.config.SpecInfoOrBuilder getSpecOrBuilder() { if (specBuilder_ != null) { return specBuilder_.getMessageOrBuilder(); } else { return spec_ == null ? org.yamcs.protobuf.config.SpecInfo.getDefaultInstance() : spec_; } } /** *
     * Specification of action options (if any)
     * 
* * optional .yamcs.protobuf.config.SpecInfo spec = 6; */ private com.google.protobuf.SingleFieldBuilderV3< org.yamcs.protobuf.config.SpecInfo, org.yamcs.protobuf.config.SpecInfo.Builder, org.yamcs.protobuf.config.SpecInfoOrBuilder> getSpecFieldBuilder() { if (specBuilder_ == null) { specBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< org.yamcs.protobuf.config.SpecInfo, org.yamcs.protobuf.config.SpecInfo.Builder, org.yamcs.protobuf.config.SpecInfoOrBuilder>( getSpec(), getParentForChildren(), isClean()); spec_ = null; } return specBuilder_; } @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.actions.ActionInfo) } // @@protoc_insertion_point(class_scope:yamcs.protobuf.actions.ActionInfo) private static final org.yamcs.protobuf.actions.ActionInfo DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.yamcs.protobuf.actions.ActionInfo(); } public static org.yamcs.protobuf.actions.ActionInfo getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ActionInfo parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ActionInfo(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.actions.ActionInfo getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy