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

org.yamcs.protobuf.ListCommandsResponse 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/commanding/commands_service.proto

package org.yamcs.protobuf;

/**
 * Protobuf type {@code yamcs.protobuf.commanding.ListCommandsResponse}
 */
public final class ListCommandsResponse extends
    com.google.protobuf.GeneratedMessageV3 implements
    // @@protoc_insertion_point(message_implements:yamcs.protobuf.commanding.ListCommandsResponse)
    ListCommandsResponseOrBuilder {
private static final long serialVersionUID = 0L;
  // Use ListCommandsResponse.newBuilder() to construct.
  private ListCommandsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
    super(builder);
  }
  private ListCommandsResponse() {
    entry_ = java.util.Collections.emptyList();
    commands_ = java.util.Collections.emptyList();
    continuationToken_ = "";
  }

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

  @java.lang.Override
  public final com.google.protobuf.UnknownFieldSet
  getUnknownFields() {
    return this.unknownFields;
  }
  private ListCommandsResponse(
      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: {
            if (!((mutable_bitField0_ & 0x00000001) != 0)) {
              entry_ = new java.util.ArrayList();
              mutable_bitField0_ |= 0x00000001;
            }
            entry_.add(
                input.readMessage(org.yamcs.protobuf.Commanding.CommandHistoryEntry.PARSER, extensionRegistry));
            break;
          }
          case 18: {
            com.google.protobuf.ByteString bs = input.readBytes();
            bitField0_ |= 0x00000001;
            continuationToken_ = bs;
            break;
          }
          case 26: {
            if (!((mutable_bitField0_ & 0x00000002) != 0)) {
              commands_ = new java.util.ArrayList();
              mutable_bitField0_ |= 0x00000002;
            }
            commands_.add(
                input.readMessage(org.yamcs.protobuf.Commanding.CommandHistoryEntry.PARSER, extensionRegistry));
            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_ & 0x00000001) != 0)) {
        entry_ = java.util.Collections.unmodifiableList(entry_);
      }
      if (((mutable_bitField0_ & 0x00000002) != 0)) {
        commands_ = java.util.Collections.unmodifiableList(commands_);
      }
      this.unknownFields = unknownFields.build();
      makeExtensionsImmutable();
    }
  }
  public static final com.google.protobuf.Descriptors.Descriptor
      getDescriptor() {
    return org.yamcs.protobuf.CommandsServiceProto.internal_static_yamcs_protobuf_commanding_ListCommandsResponse_descriptor;
  }

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

  private int bitField0_;
  public static final int ENTRY_FIELD_NUMBER = 1;
  private java.util.List entry_;
  /**
   * 
   * Deprecated, use ``commands`` instead
   * 
* * repeated .yamcs.protobuf.commanding.CommandHistoryEntry entry = 1 [deprecated = true]; */ @java.lang.Override @java.lang.Deprecated public java.util.List getEntryList() { return entry_; } /** *
   * Deprecated, use ``commands`` instead
   * 
* * repeated .yamcs.protobuf.commanding.CommandHistoryEntry entry = 1 [deprecated = true]; */ @java.lang.Override @java.lang.Deprecated public java.util.List getEntryOrBuilderList() { return entry_; } /** *
   * Deprecated, use ``commands`` instead
   * 
* * repeated .yamcs.protobuf.commanding.CommandHistoryEntry entry = 1 [deprecated = true]; */ @java.lang.Override @java.lang.Deprecated public int getEntryCount() { return entry_.size(); } /** *
   * Deprecated, use ``commands`` instead
   * 
* * repeated .yamcs.protobuf.commanding.CommandHistoryEntry entry = 1 [deprecated = true]; */ @java.lang.Override @java.lang.Deprecated public org.yamcs.protobuf.Commanding.CommandHistoryEntry getEntry(int index) { return entry_.get(index); } /** *
   * Deprecated, use ``commands`` instead
   * 
* * repeated .yamcs.protobuf.commanding.CommandHistoryEntry entry = 1 [deprecated = true]; */ @java.lang.Override @java.lang.Deprecated public org.yamcs.protobuf.Commanding.CommandHistoryEntryOrBuilder getEntryOrBuilder( int index) { return entry_.get(index); } public static final int COMMANDS_FIELD_NUMBER = 3; private java.util.List commands_; /** *
   * Page  of matching commands
   * 
* * repeated .yamcs.protobuf.commanding.CommandHistoryEntry commands = 3; */ @java.lang.Override public java.util.List getCommandsList() { return commands_; } /** *
   * Page  of matching commands
   * 
* * repeated .yamcs.protobuf.commanding.CommandHistoryEntry commands = 3; */ @java.lang.Override public java.util.List getCommandsOrBuilderList() { return commands_; } /** *
   * Page  of matching commands
   * 
* * repeated .yamcs.protobuf.commanding.CommandHistoryEntry commands = 3; */ @java.lang.Override public int getCommandsCount() { return commands_.size(); } /** *
   * Page  of matching commands
   * 
* * repeated .yamcs.protobuf.commanding.CommandHistoryEntry commands = 3; */ @java.lang.Override public org.yamcs.protobuf.Commanding.CommandHistoryEntry getCommands(int index) { return commands_.get(index); } /** *
   * Page  of matching commands
   * 
* * repeated .yamcs.protobuf.commanding.CommandHistoryEntry commands = 3; */ @java.lang.Override public org.yamcs.protobuf.Commanding.CommandHistoryEntryOrBuilder getCommandsOrBuilder( int index) { return commands_.get(index); } public static final int CONTINUATIONTOKEN_FIELD_NUMBER = 2; private volatile java.lang.Object continuationToken_; /** *
   * Token indicating the response is only partial. More results can then
   * be obtained by performing the same request (including all original
   * query parameters) and setting the ``next`` parameter to this token.
   * 
* * optional string continuationToken = 2; * @return Whether the continuationToken field is set. */ @java.lang.Override public boolean hasContinuationToken() { return ((bitField0_ & 0x00000001) != 0); } /** *
   * Token indicating the response is only partial. More results can then
   * be obtained by performing the same request (including all original
   * query parameters) and setting the ``next`` parameter to this token.
   * 
* * optional string continuationToken = 2; * @return The continuationToken. */ @java.lang.Override public java.lang.String getContinuationToken() { java.lang.Object ref = continuationToken_; 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()) { continuationToken_ = s; } return s; } } /** *
   * Token indicating the response is only partial. More results can then
   * be obtained by performing the same request (including all original
   * query parameters) and setting the ``next`` parameter to this token.
   * 
* * optional string continuationToken = 2; * @return The bytes for continuationToken. */ @java.lang.Override public com.google.protobuf.ByteString getContinuationTokenBytes() { java.lang.Object ref = continuationToken_; if (ref instanceof java.lang.String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); continuationToken_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } private byte memoizedIsInitialized = -1; @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; if (isInitialized == 1) return true; if (isInitialized == 0) return false; for (int i = 0; i < getEntryCount(); i++) { if (!getEntry(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } for (int i = 0; i < getCommandsCount(); i++) { if (!getCommands(i).isInitialized()) { memoizedIsInitialized = 0; return false; } } memoizedIsInitialized = 1; return true; } @java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { for (int i = 0; i < entry_.size(); i++) { output.writeMessage(1, entry_.get(i)); } if (((bitField0_ & 0x00000001) != 0)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, continuationToken_); } for (int i = 0; i < commands_.size(); i++) { output.writeMessage(3, commands_.get(i)); } unknownFields.writeTo(output); } @java.lang.Override public int getSerializedSize() { int size = memoizedSize; if (size != -1) return size; size = 0; for (int i = 0; i < entry_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(1, entry_.get(i)); } if (((bitField0_ & 0x00000001) != 0)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, continuationToken_); } for (int i = 0; i < commands_.size(); i++) { size += com.google.protobuf.CodedOutputStream .computeMessageSize(3, commands_.get(i)); } 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.ListCommandsResponse)) { return super.equals(obj); } org.yamcs.protobuf.ListCommandsResponse other = (org.yamcs.protobuf.ListCommandsResponse) obj; if (!getEntryList() .equals(other.getEntryList())) return false; if (!getCommandsList() .equals(other.getCommandsList())) return false; if (hasContinuationToken() != other.hasContinuationToken()) return false; if (hasContinuationToken()) { if (!getContinuationToken() .equals(other.getContinuationToken())) 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 (getEntryCount() > 0) { hash = (37 * hash) + ENTRY_FIELD_NUMBER; hash = (53 * hash) + getEntryList().hashCode(); } if (getCommandsCount() > 0) { hash = (37 * hash) + COMMANDS_FIELD_NUMBER; hash = (53 * hash) + getCommandsList().hashCode(); } if (hasContinuationToken()) { hash = (37 * hash) + CONTINUATIONTOKEN_FIELD_NUMBER; hash = (53 * hash) + getContinuationToken().hashCode(); } hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; } public static org.yamcs.protobuf.ListCommandsResponse parseFrom( java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.yamcs.protobuf.ListCommandsResponse 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.ListCommandsResponse parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.yamcs.protobuf.ListCommandsResponse 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.ListCommandsResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } public static org.yamcs.protobuf.ListCommandsResponse parseFrom( byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } public static org.yamcs.protobuf.ListCommandsResponse parseFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.yamcs.protobuf.ListCommandsResponse 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.ListCommandsResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseDelimitedWithIOException(PARSER, input); } public static org.yamcs.protobuf.ListCommandsResponse 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.ListCommandsResponse parseFrom( com.google.protobuf.CodedInputStream input) throws java.io.IOException { return com.google.protobuf.GeneratedMessageV3 .parseWithIOException(PARSER, input); } public static org.yamcs.protobuf.ListCommandsResponse 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.ListCommandsResponse 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.commanding.ListCommandsResponse} */ public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder implements // @@protoc_insertion_point(builder_implements:yamcs.protobuf.commanding.ListCommandsResponse) org.yamcs.protobuf.ListCommandsResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { return org.yamcs.protobuf.CommandsServiceProto.internal_static_yamcs_protobuf_commanding_ListCommandsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { return org.yamcs.protobuf.CommandsServiceProto.internal_static_yamcs_protobuf_commanding_ListCommandsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( org.yamcs.protobuf.ListCommandsResponse.class, org.yamcs.protobuf.ListCommandsResponse.Builder.class); } // Construct using org.yamcs.protobuf.ListCommandsResponse.newBuilder() private Builder() { maybeForceBuilderInitialization(); } private Builder( com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } private void maybeForceBuilderInitialization() { if (com.google.protobuf.GeneratedMessageV3 .alwaysUseFieldBuilders) { getEntryFieldBuilder(); getCommandsFieldBuilder(); } } @java.lang.Override public Builder clear() { super.clear(); if (entryBuilder_ == null) { entry_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); } else { entryBuilder_.clear(); } if (commandsBuilder_ == null) { commands_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); } else { commandsBuilder_.clear(); } continuationToken_ = ""; bitField0_ = (bitField0_ & ~0x00000004); return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { return org.yamcs.protobuf.CommandsServiceProto.internal_static_yamcs_protobuf_commanding_ListCommandsResponse_descriptor; } @java.lang.Override public org.yamcs.protobuf.ListCommandsResponse getDefaultInstanceForType() { return org.yamcs.protobuf.ListCommandsResponse.getDefaultInstance(); } @java.lang.Override public org.yamcs.protobuf.ListCommandsResponse build() { org.yamcs.protobuf.ListCommandsResponse result = buildPartial(); if (!result.isInitialized()) { throw newUninitializedMessageException(result); } return result; } @java.lang.Override public org.yamcs.protobuf.ListCommandsResponse buildPartial() { org.yamcs.protobuf.ListCommandsResponse result = new org.yamcs.protobuf.ListCommandsResponse(this); int from_bitField0_ = bitField0_; int to_bitField0_ = 0; if (entryBuilder_ == null) { if (((bitField0_ & 0x00000001) != 0)) { entry_ = java.util.Collections.unmodifiableList(entry_); bitField0_ = (bitField0_ & ~0x00000001); } result.entry_ = entry_; } else { result.entry_ = entryBuilder_.build(); } if (commandsBuilder_ == null) { if (((bitField0_ & 0x00000002) != 0)) { commands_ = java.util.Collections.unmodifiableList(commands_); bitField0_ = (bitField0_ & ~0x00000002); } result.commands_ = commands_; } else { result.commands_ = commandsBuilder_.build(); } if (((from_bitField0_ & 0x00000004) != 0)) { to_bitField0_ |= 0x00000001; } result.continuationToken_ = continuationToken_; 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.ListCommandsResponse) { return mergeFrom((org.yamcs.protobuf.ListCommandsResponse)other); } else { super.mergeFrom(other); return this; } } public Builder mergeFrom(org.yamcs.protobuf.ListCommandsResponse other) { if (other == org.yamcs.protobuf.ListCommandsResponse.getDefaultInstance()) return this; if (entryBuilder_ == null) { if (!other.entry_.isEmpty()) { if (entry_.isEmpty()) { entry_ = other.entry_; bitField0_ = (bitField0_ & ~0x00000001); } else { ensureEntryIsMutable(); entry_.addAll(other.entry_); } onChanged(); } } else { if (!other.entry_.isEmpty()) { if (entryBuilder_.isEmpty()) { entryBuilder_.dispose(); entryBuilder_ = null; entry_ = other.entry_; bitField0_ = (bitField0_ & ~0x00000001); entryBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getEntryFieldBuilder() : null; } else { entryBuilder_.addAllMessages(other.entry_); } } } if (commandsBuilder_ == null) { if (!other.commands_.isEmpty()) { if (commands_.isEmpty()) { commands_ = other.commands_; bitField0_ = (bitField0_ & ~0x00000002); } else { ensureCommandsIsMutable(); commands_.addAll(other.commands_); } onChanged(); } } else { if (!other.commands_.isEmpty()) { if (commandsBuilder_.isEmpty()) { commandsBuilder_.dispose(); commandsBuilder_ = null; commands_ = other.commands_; bitField0_ = (bitField0_ & ~0x00000002); commandsBuilder_ = com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? getCommandsFieldBuilder() : null; } else { commandsBuilder_.addAllMessages(other.commands_); } } } if (other.hasContinuationToken()) { bitField0_ |= 0x00000004; continuationToken_ = other.continuationToken_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; } @java.lang.Override public final boolean isInitialized() { for (int i = 0; i < getEntryCount(); i++) { if (!getEntry(i).isInitialized()) { return false; } } for (int i = 0; i < getCommandsCount(); i++) { if (!getCommands(i).isInitialized()) { return false; } } 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.ListCommandsResponse parsedMessage = null; try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { parsedMessage = (org.yamcs.protobuf.ListCommandsResponse) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { mergeFrom(parsedMessage); } } return this; } private int bitField0_; private java.util.List entry_ = java.util.Collections.emptyList(); private void ensureEntryIsMutable() { if (!((bitField0_ & 0x00000001) != 0)) { entry_ = new java.util.ArrayList(entry_); bitField0_ |= 0x00000001; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.yamcs.protobuf.Commanding.CommandHistoryEntry, org.yamcs.protobuf.Commanding.CommandHistoryEntry.Builder, org.yamcs.protobuf.Commanding.CommandHistoryEntryOrBuilder> entryBuilder_; /** *
     * Deprecated, use ``commands`` instead
     * 
* * repeated .yamcs.protobuf.commanding.CommandHistoryEntry entry = 1 [deprecated = true]; */ @java.lang.Deprecated public java.util.List getEntryList() { if (entryBuilder_ == null) { return java.util.Collections.unmodifiableList(entry_); } else { return entryBuilder_.getMessageList(); } } /** *
     * Deprecated, use ``commands`` instead
     * 
* * repeated .yamcs.protobuf.commanding.CommandHistoryEntry entry = 1 [deprecated = true]; */ @java.lang.Deprecated public int getEntryCount() { if (entryBuilder_ == null) { return entry_.size(); } else { return entryBuilder_.getCount(); } } /** *
     * Deprecated, use ``commands`` instead
     * 
* * repeated .yamcs.protobuf.commanding.CommandHistoryEntry entry = 1 [deprecated = true]; */ @java.lang.Deprecated public org.yamcs.protobuf.Commanding.CommandHistoryEntry getEntry(int index) { if (entryBuilder_ == null) { return entry_.get(index); } else { return entryBuilder_.getMessage(index); } } /** *
     * Deprecated, use ``commands`` instead
     * 
* * repeated .yamcs.protobuf.commanding.CommandHistoryEntry entry = 1 [deprecated = true]; */ @java.lang.Deprecated public Builder setEntry( int index, org.yamcs.protobuf.Commanding.CommandHistoryEntry value) { if (entryBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEntryIsMutable(); entry_.set(index, value); onChanged(); } else { entryBuilder_.setMessage(index, value); } return this; } /** *
     * Deprecated, use ``commands`` instead
     * 
* * repeated .yamcs.protobuf.commanding.CommandHistoryEntry entry = 1 [deprecated = true]; */ @java.lang.Deprecated public Builder setEntry( int index, org.yamcs.protobuf.Commanding.CommandHistoryEntry.Builder builderForValue) { if (entryBuilder_ == null) { ensureEntryIsMutable(); entry_.set(index, builderForValue.build()); onChanged(); } else { entryBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * Deprecated, use ``commands`` instead
     * 
* * repeated .yamcs.protobuf.commanding.CommandHistoryEntry entry = 1 [deprecated = true]; */ @java.lang.Deprecated public Builder addEntry(org.yamcs.protobuf.Commanding.CommandHistoryEntry value) { if (entryBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEntryIsMutable(); entry_.add(value); onChanged(); } else { entryBuilder_.addMessage(value); } return this; } /** *
     * Deprecated, use ``commands`` instead
     * 
* * repeated .yamcs.protobuf.commanding.CommandHistoryEntry entry = 1 [deprecated = true]; */ @java.lang.Deprecated public Builder addEntry( int index, org.yamcs.protobuf.Commanding.CommandHistoryEntry value) { if (entryBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureEntryIsMutable(); entry_.add(index, value); onChanged(); } else { entryBuilder_.addMessage(index, value); } return this; } /** *
     * Deprecated, use ``commands`` instead
     * 
* * repeated .yamcs.protobuf.commanding.CommandHistoryEntry entry = 1 [deprecated = true]; */ @java.lang.Deprecated public Builder addEntry( org.yamcs.protobuf.Commanding.CommandHistoryEntry.Builder builderForValue) { if (entryBuilder_ == null) { ensureEntryIsMutable(); entry_.add(builderForValue.build()); onChanged(); } else { entryBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * Deprecated, use ``commands`` instead
     * 
* * repeated .yamcs.protobuf.commanding.CommandHistoryEntry entry = 1 [deprecated = true]; */ @java.lang.Deprecated public Builder addEntry( int index, org.yamcs.protobuf.Commanding.CommandHistoryEntry.Builder builderForValue) { if (entryBuilder_ == null) { ensureEntryIsMutable(); entry_.add(index, builderForValue.build()); onChanged(); } else { entryBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * Deprecated, use ``commands`` instead
     * 
* * repeated .yamcs.protobuf.commanding.CommandHistoryEntry entry = 1 [deprecated = true]; */ @java.lang.Deprecated public Builder addAllEntry( java.lang.Iterable values) { if (entryBuilder_ == null) { ensureEntryIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, entry_); onChanged(); } else { entryBuilder_.addAllMessages(values); } return this; } /** *
     * Deprecated, use ``commands`` instead
     * 
* * repeated .yamcs.protobuf.commanding.CommandHistoryEntry entry = 1 [deprecated = true]; */ @java.lang.Deprecated public Builder clearEntry() { if (entryBuilder_ == null) { entry_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000001); onChanged(); } else { entryBuilder_.clear(); } return this; } /** *
     * Deprecated, use ``commands`` instead
     * 
* * repeated .yamcs.protobuf.commanding.CommandHistoryEntry entry = 1 [deprecated = true]; */ @java.lang.Deprecated public Builder removeEntry(int index) { if (entryBuilder_ == null) { ensureEntryIsMutable(); entry_.remove(index); onChanged(); } else { entryBuilder_.remove(index); } return this; } /** *
     * Deprecated, use ``commands`` instead
     * 
* * repeated .yamcs.protobuf.commanding.CommandHistoryEntry entry = 1 [deprecated = true]; */ @java.lang.Deprecated public org.yamcs.protobuf.Commanding.CommandHistoryEntry.Builder getEntryBuilder( int index) { return getEntryFieldBuilder().getBuilder(index); } /** *
     * Deprecated, use ``commands`` instead
     * 
* * repeated .yamcs.protobuf.commanding.CommandHistoryEntry entry = 1 [deprecated = true]; */ @java.lang.Deprecated public org.yamcs.protobuf.Commanding.CommandHistoryEntryOrBuilder getEntryOrBuilder( int index) { if (entryBuilder_ == null) { return entry_.get(index); } else { return entryBuilder_.getMessageOrBuilder(index); } } /** *
     * Deprecated, use ``commands`` instead
     * 
* * repeated .yamcs.protobuf.commanding.CommandHistoryEntry entry = 1 [deprecated = true]; */ @java.lang.Deprecated public java.util.List getEntryOrBuilderList() { if (entryBuilder_ != null) { return entryBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(entry_); } } /** *
     * Deprecated, use ``commands`` instead
     * 
* * repeated .yamcs.protobuf.commanding.CommandHistoryEntry entry = 1 [deprecated = true]; */ @java.lang.Deprecated public org.yamcs.protobuf.Commanding.CommandHistoryEntry.Builder addEntryBuilder() { return getEntryFieldBuilder().addBuilder( org.yamcs.protobuf.Commanding.CommandHistoryEntry.getDefaultInstance()); } /** *
     * Deprecated, use ``commands`` instead
     * 
* * repeated .yamcs.protobuf.commanding.CommandHistoryEntry entry = 1 [deprecated = true]; */ @java.lang.Deprecated public org.yamcs.protobuf.Commanding.CommandHistoryEntry.Builder addEntryBuilder( int index) { return getEntryFieldBuilder().addBuilder( index, org.yamcs.protobuf.Commanding.CommandHistoryEntry.getDefaultInstance()); } /** *
     * Deprecated, use ``commands`` instead
     * 
* * repeated .yamcs.protobuf.commanding.CommandHistoryEntry entry = 1 [deprecated = true]; */ @java.lang.Deprecated public java.util.List getEntryBuilderList() { return getEntryFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.yamcs.protobuf.Commanding.CommandHistoryEntry, org.yamcs.protobuf.Commanding.CommandHistoryEntry.Builder, org.yamcs.protobuf.Commanding.CommandHistoryEntryOrBuilder> getEntryFieldBuilder() { if (entryBuilder_ == null) { entryBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.yamcs.protobuf.Commanding.CommandHistoryEntry, org.yamcs.protobuf.Commanding.CommandHistoryEntry.Builder, org.yamcs.protobuf.Commanding.CommandHistoryEntryOrBuilder>( entry_, ((bitField0_ & 0x00000001) != 0), getParentForChildren(), isClean()); entry_ = null; } return entryBuilder_; } private java.util.List commands_ = java.util.Collections.emptyList(); private void ensureCommandsIsMutable() { if (!((bitField0_ & 0x00000002) != 0)) { commands_ = new java.util.ArrayList(commands_); bitField0_ |= 0x00000002; } } private com.google.protobuf.RepeatedFieldBuilderV3< org.yamcs.protobuf.Commanding.CommandHistoryEntry, org.yamcs.protobuf.Commanding.CommandHistoryEntry.Builder, org.yamcs.protobuf.Commanding.CommandHistoryEntryOrBuilder> commandsBuilder_; /** *
     * Page  of matching commands
     * 
* * repeated .yamcs.protobuf.commanding.CommandHistoryEntry commands = 3; */ public java.util.List getCommandsList() { if (commandsBuilder_ == null) { return java.util.Collections.unmodifiableList(commands_); } else { return commandsBuilder_.getMessageList(); } } /** *
     * Page  of matching commands
     * 
* * repeated .yamcs.protobuf.commanding.CommandHistoryEntry commands = 3; */ public int getCommandsCount() { if (commandsBuilder_ == null) { return commands_.size(); } else { return commandsBuilder_.getCount(); } } /** *
     * Page  of matching commands
     * 
* * repeated .yamcs.protobuf.commanding.CommandHistoryEntry commands = 3; */ public org.yamcs.protobuf.Commanding.CommandHistoryEntry getCommands(int index) { if (commandsBuilder_ == null) { return commands_.get(index); } else { return commandsBuilder_.getMessage(index); } } /** *
     * Page  of matching commands
     * 
* * repeated .yamcs.protobuf.commanding.CommandHistoryEntry commands = 3; */ public Builder setCommands( int index, org.yamcs.protobuf.Commanding.CommandHistoryEntry value) { if (commandsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCommandsIsMutable(); commands_.set(index, value); onChanged(); } else { commandsBuilder_.setMessage(index, value); } return this; } /** *
     * Page  of matching commands
     * 
* * repeated .yamcs.protobuf.commanding.CommandHistoryEntry commands = 3; */ public Builder setCommands( int index, org.yamcs.protobuf.Commanding.CommandHistoryEntry.Builder builderForValue) { if (commandsBuilder_ == null) { ensureCommandsIsMutable(); commands_.set(index, builderForValue.build()); onChanged(); } else { commandsBuilder_.setMessage(index, builderForValue.build()); } return this; } /** *
     * Page  of matching commands
     * 
* * repeated .yamcs.protobuf.commanding.CommandHistoryEntry commands = 3; */ public Builder addCommands(org.yamcs.protobuf.Commanding.CommandHistoryEntry value) { if (commandsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCommandsIsMutable(); commands_.add(value); onChanged(); } else { commandsBuilder_.addMessage(value); } return this; } /** *
     * Page  of matching commands
     * 
* * repeated .yamcs.protobuf.commanding.CommandHistoryEntry commands = 3; */ public Builder addCommands( int index, org.yamcs.protobuf.Commanding.CommandHistoryEntry value) { if (commandsBuilder_ == null) { if (value == null) { throw new NullPointerException(); } ensureCommandsIsMutable(); commands_.add(index, value); onChanged(); } else { commandsBuilder_.addMessage(index, value); } return this; } /** *
     * Page  of matching commands
     * 
* * repeated .yamcs.protobuf.commanding.CommandHistoryEntry commands = 3; */ public Builder addCommands( org.yamcs.protobuf.Commanding.CommandHistoryEntry.Builder builderForValue) { if (commandsBuilder_ == null) { ensureCommandsIsMutable(); commands_.add(builderForValue.build()); onChanged(); } else { commandsBuilder_.addMessage(builderForValue.build()); } return this; } /** *
     * Page  of matching commands
     * 
* * repeated .yamcs.protobuf.commanding.CommandHistoryEntry commands = 3; */ public Builder addCommands( int index, org.yamcs.protobuf.Commanding.CommandHistoryEntry.Builder builderForValue) { if (commandsBuilder_ == null) { ensureCommandsIsMutable(); commands_.add(index, builderForValue.build()); onChanged(); } else { commandsBuilder_.addMessage(index, builderForValue.build()); } return this; } /** *
     * Page  of matching commands
     * 
* * repeated .yamcs.protobuf.commanding.CommandHistoryEntry commands = 3; */ public Builder addAllCommands( java.lang.Iterable values) { if (commandsBuilder_ == null) { ensureCommandsIsMutable(); com.google.protobuf.AbstractMessageLite.Builder.addAll( values, commands_); onChanged(); } else { commandsBuilder_.addAllMessages(values); } return this; } /** *
     * Page  of matching commands
     * 
* * repeated .yamcs.protobuf.commanding.CommandHistoryEntry commands = 3; */ public Builder clearCommands() { if (commandsBuilder_ == null) { commands_ = java.util.Collections.emptyList(); bitField0_ = (bitField0_ & ~0x00000002); onChanged(); } else { commandsBuilder_.clear(); } return this; } /** *
     * Page  of matching commands
     * 
* * repeated .yamcs.protobuf.commanding.CommandHistoryEntry commands = 3; */ public Builder removeCommands(int index) { if (commandsBuilder_ == null) { ensureCommandsIsMutable(); commands_.remove(index); onChanged(); } else { commandsBuilder_.remove(index); } return this; } /** *
     * Page  of matching commands
     * 
* * repeated .yamcs.protobuf.commanding.CommandHistoryEntry commands = 3; */ public org.yamcs.protobuf.Commanding.CommandHistoryEntry.Builder getCommandsBuilder( int index) { return getCommandsFieldBuilder().getBuilder(index); } /** *
     * Page  of matching commands
     * 
* * repeated .yamcs.protobuf.commanding.CommandHistoryEntry commands = 3; */ public org.yamcs.protobuf.Commanding.CommandHistoryEntryOrBuilder getCommandsOrBuilder( int index) { if (commandsBuilder_ == null) { return commands_.get(index); } else { return commandsBuilder_.getMessageOrBuilder(index); } } /** *
     * Page  of matching commands
     * 
* * repeated .yamcs.protobuf.commanding.CommandHistoryEntry commands = 3; */ public java.util.List getCommandsOrBuilderList() { if (commandsBuilder_ != null) { return commandsBuilder_.getMessageOrBuilderList(); } else { return java.util.Collections.unmodifiableList(commands_); } } /** *
     * Page  of matching commands
     * 
* * repeated .yamcs.protobuf.commanding.CommandHistoryEntry commands = 3; */ public org.yamcs.protobuf.Commanding.CommandHistoryEntry.Builder addCommandsBuilder() { return getCommandsFieldBuilder().addBuilder( org.yamcs.protobuf.Commanding.CommandHistoryEntry.getDefaultInstance()); } /** *
     * Page  of matching commands
     * 
* * repeated .yamcs.protobuf.commanding.CommandHistoryEntry commands = 3; */ public org.yamcs.protobuf.Commanding.CommandHistoryEntry.Builder addCommandsBuilder( int index) { return getCommandsFieldBuilder().addBuilder( index, org.yamcs.protobuf.Commanding.CommandHistoryEntry.getDefaultInstance()); } /** *
     * Page  of matching commands
     * 
* * repeated .yamcs.protobuf.commanding.CommandHistoryEntry commands = 3; */ public java.util.List getCommandsBuilderList() { return getCommandsFieldBuilder().getBuilderList(); } private com.google.protobuf.RepeatedFieldBuilderV3< org.yamcs.protobuf.Commanding.CommandHistoryEntry, org.yamcs.protobuf.Commanding.CommandHistoryEntry.Builder, org.yamcs.protobuf.Commanding.CommandHistoryEntryOrBuilder> getCommandsFieldBuilder() { if (commandsBuilder_ == null) { commandsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< org.yamcs.protobuf.Commanding.CommandHistoryEntry, org.yamcs.protobuf.Commanding.CommandHistoryEntry.Builder, org.yamcs.protobuf.Commanding.CommandHistoryEntryOrBuilder>( commands_, ((bitField0_ & 0x00000002) != 0), getParentForChildren(), isClean()); commands_ = null; } return commandsBuilder_; } private java.lang.Object continuationToken_ = ""; /** *
     * Token indicating the response is only partial. More results can then
     * be obtained by performing the same request (including all original
     * query parameters) and setting the ``next`` parameter to this token.
     * 
* * optional string continuationToken = 2; * @return Whether the continuationToken field is set. */ public boolean hasContinuationToken() { return ((bitField0_ & 0x00000004) != 0); } /** *
     * Token indicating the response is only partial. More results can then
     * be obtained by performing the same request (including all original
     * query parameters) and setting the ``next`` parameter to this token.
     * 
* * optional string continuationToken = 2; * @return The continuationToken. */ public java.lang.String getContinuationToken() { java.lang.Object ref = continuationToken_; 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()) { continuationToken_ = s; } return s; } else { return (java.lang.String) ref; } } /** *
     * Token indicating the response is only partial. More results can then
     * be obtained by performing the same request (including all original
     * query parameters) and setting the ``next`` parameter to this token.
     * 
* * optional string continuationToken = 2; * @return The bytes for continuationToken. */ public com.google.protobuf.ByteString getContinuationTokenBytes() { java.lang.Object ref = continuationToken_; if (ref instanceof String) { com.google.protobuf.ByteString b = com.google.protobuf.ByteString.copyFromUtf8( (java.lang.String) ref); continuationToken_ = b; return b; } else { return (com.google.protobuf.ByteString) ref; } } /** *
     * Token indicating the response is only partial. More results can then
     * be obtained by performing the same request (including all original
     * query parameters) and setting the ``next`` parameter to this token.
     * 
* * optional string continuationToken = 2; * @param value The continuationToken to set. * @return This builder for chaining. */ public Builder setContinuationToken( java.lang.String value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; continuationToken_ = value; onChanged(); return this; } /** *
     * Token indicating the response is only partial. More results can then
     * be obtained by performing the same request (including all original
     * query parameters) and setting the ``next`` parameter to this token.
     * 
* * optional string continuationToken = 2; * @return This builder for chaining. */ public Builder clearContinuationToken() { bitField0_ = (bitField0_ & ~0x00000004); continuationToken_ = getDefaultInstance().getContinuationToken(); onChanged(); return this; } /** *
     * Token indicating the response is only partial. More results can then
     * be obtained by performing the same request (including all original
     * query parameters) and setting the ``next`` parameter to this token.
     * 
* * optional string continuationToken = 2; * @param value The bytes for continuationToken to set. * @return This builder for chaining. */ public Builder setContinuationTokenBytes( com.google.protobuf.ByteString value) { if (value == null) { throw new NullPointerException(); } bitField0_ |= 0x00000004; continuationToken_ = value; 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.commanding.ListCommandsResponse) } // @@protoc_insertion_point(class_scope:yamcs.protobuf.commanding.ListCommandsResponse) private static final org.yamcs.protobuf.ListCommandsResponse DEFAULT_INSTANCE; static { DEFAULT_INSTANCE = new org.yamcs.protobuf.ListCommandsResponse(); } public static org.yamcs.protobuf.ListCommandsResponse getDefaultInstance() { return DEFAULT_INSTANCE; } @java.lang.Deprecated public static final com.google.protobuf.Parser PARSER = new com.google.protobuf.AbstractParser() { @java.lang.Override public ListCommandsResponse parsePartialFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return new ListCommandsResponse(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.ListCommandsResponse getDefaultInstanceForType() { return DEFAULT_INSTANCE; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy