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

yandex.cloud.api.loadtesting.agent.v1.AgentServiceOuterClass Maven / Gradle / Ivy

// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: yandex/cloud/loadtesting/agent/v1/agent_service.proto

package yandex.cloud.api.loadtesting.agent.v1;

public final class AgentServiceOuterClass {
  private AgentServiceOuterClass() {}
  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistryLite registry) {
  }

  public static void registerAllExtensions(
      com.google.protobuf.ExtensionRegistry registry) {
    registerAllExtensions(
        (com.google.protobuf.ExtensionRegistryLite) registry);
  }
  public interface ClaimAgentStatusRequestOrBuilder extends
      // @@protoc_insertion_point(interface_extends:yandex.cloud.loadtesting.agent.v1.ClaimAgentStatusRequest)
      com.google.protobuf.MessageOrBuilder {

    /**
     * string agent_instance_id = 1;
     * @return The agentInstanceId.
     */
    java.lang.String getAgentInstanceId();
    /**
     * string agent_instance_id = 1;
     * @return The bytes for agentInstanceId.
     */
    com.google.protobuf.ByteString
        getAgentInstanceIdBytes();

    /**
     * .yandex.cloud.loadtesting.agent.v1.ClaimAgentStatusRequest.Status status = 2;
     * @return The enum numeric value on the wire for status.
     */
    int getStatusValue();
    /**
     * .yandex.cloud.loadtesting.agent.v1.ClaimAgentStatusRequest.Status status = 2;
     * @return The status.
     */
    yandex.cloud.api.loadtesting.agent.v1.AgentServiceOuterClass.ClaimAgentStatusRequest.Status getStatus();
  }
  /**
   * Protobuf type {@code yandex.cloud.loadtesting.agent.v1.ClaimAgentStatusRequest}
   */
  public static final class ClaimAgentStatusRequest extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:yandex.cloud.loadtesting.agent.v1.ClaimAgentStatusRequest)
      ClaimAgentStatusRequestOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use ClaimAgentStatusRequest.newBuilder() to construct.
    private ClaimAgentStatusRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) {
      super(builder);
    }
    private ClaimAgentStatusRequest() {
      agentInstanceId_ = "";
      status_ = 0;
    }

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

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private ClaimAgentStatusRequest(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      this();
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      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: {
              java.lang.String s = input.readStringRequireUtf8();

              agentInstanceId_ = s;
              break;
            }
            case 16: {
              int rawValue = input.readEnum();

              status_ = rawValue;
              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 yandex.cloud.api.loadtesting.agent.v1.AgentServiceOuterClass.internal_static_yandex_cloud_loadtesting_agent_v1_ClaimAgentStatusRequest_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return yandex.cloud.api.loadtesting.agent.v1.AgentServiceOuterClass.internal_static_yandex_cloud_loadtesting_agent_v1_ClaimAgentStatusRequest_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              yandex.cloud.api.loadtesting.agent.v1.AgentServiceOuterClass.ClaimAgentStatusRequest.class, yandex.cloud.api.loadtesting.agent.v1.AgentServiceOuterClass.ClaimAgentStatusRequest.Builder.class);
    }

    /**
     * Protobuf enum {@code yandex.cloud.loadtesting.agent.v1.ClaimAgentStatusRequest.Status}
     */
    public enum Status
        implements com.google.protobuf.ProtocolMessageEnum {
      /**
       * STATUS_UNSPECIFIED = 0;
       */
      STATUS_UNSPECIFIED(0),
      /**
       * READY_FOR_TEST = 1;
       */
      READY_FOR_TEST(1),
      /**
       * PREPARING_TEST = 2;
       */
      PREPARING_TEST(2),
      /**
       * TESTING = 3;
       */
      TESTING(3),
      /**
       * TANK_FAILED = 4;
       */
      TANK_FAILED(4),
      /**
       * STOPPED = 5;
       */
      STOPPED(5),
      /**
       * UPLOADING_ARTIFACTS = 6;
       */
      UPLOADING_ARTIFACTS(6),
      UNRECOGNIZED(-1),
      ;

      /**
       * STATUS_UNSPECIFIED = 0;
       */
      public static final int STATUS_UNSPECIFIED_VALUE = 0;
      /**
       * READY_FOR_TEST = 1;
       */
      public static final int READY_FOR_TEST_VALUE = 1;
      /**
       * PREPARING_TEST = 2;
       */
      public static final int PREPARING_TEST_VALUE = 2;
      /**
       * TESTING = 3;
       */
      public static final int TESTING_VALUE = 3;
      /**
       * TANK_FAILED = 4;
       */
      public static final int TANK_FAILED_VALUE = 4;
      /**
       * STOPPED = 5;
       */
      public static final int STOPPED_VALUE = 5;
      /**
       * UPLOADING_ARTIFACTS = 6;
       */
      public static final int UPLOADING_ARTIFACTS_VALUE = 6;


      public final int getNumber() {
        if (this == UNRECOGNIZED) {
          throw new java.lang.IllegalArgumentException(
              "Can't get the number of an unknown enum value.");
        }
        return value;
      }

      /**
       * @param value The numeric wire value of the corresponding enum entry.
       * @return The enum associated with the given numeric wire value.
       * @deprecated Use {@link #forNumber(int)} instead.
       */
      @java.lang.Deprecated
      public static Status valueOf(int value) {
        return forNumber(value);
      }

      /**
       * @param value The numeric wire value of the corresponding enum entry.
       * @return The enum associated with the given numeric wire value.
       */
      public static Status forNumber(int value) {
        switch (value) {
          case 0: return STATUS_UNSPECIFIED;
          case 1: return READY_FOR_TEST;
          case 2: return PREPARING_TEST;
          case 3: return TESTING;
          case 4: return TANK_FAILED;
          case 5: return STOPPED;
          case 6: return UPLOADING_ARTIFACTS;
          default: return null;
        }
      }

      public static com.google.protobuf.Internal.EnumLiteMap
          internalGetValueMap() {
        return internalValueMap;
      }
      private static final com.google.protobuf.Internal.EnumLiteMap<
          Status> internalValueMap =
            new com.google.protobuf.Internal.EnumLiteMap() {
              public Status findValueByNumber(int number) {
                return Status.forNumber(number);
              }
            };

      public final com.google.protobuf.Descriptors.EnumValueDescriptor
          getValueDescriptor() {
        if (this == UNRECOGNIZED) {
          throw new java.lang.IllegalStateException(
              "Can't get the descriptor of an unrecognized enum value.");
        }
        return getDescriptor().getValues().get(ordinal());
      }
      public final com.google.protobuf.Descriptors.EnumDescriptor
          getDescriptorForType() {
        return getDescriptor();
      }
      public static final com.google.protobuf.Descriptors.EnumDescriptor
          getDescriptor() {
        return yandex.cloud.api.loadtesting.agent.v1.AgentServiceOuterClass.ClaimAgentStatusRequest.getDescriptor().getEnumTypes().get(0);
      }

      private static final Status[] VALUES = values();

      public static Status valueOf(
          com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
        if (desc.getType() != getDescriptor()) {
          throw new java.lang.IllegalArgumentException(
            "EnumValueDescriptor is not for this type.");
        }
        if (desc.getIndex() == -1) {
          return UNRECOGNIZED;
        }
        return VALUES[desc.getIndex()];
      }

      private final int value;

      private Status(int value) {
        this.value = value;
      }

      // @@protoc_insertion_point(enum_scope:yandex.cloud.loadtesting.agent.v1.ClaimAgentStatusRequest.Status)
    }

    public static final int AGENT_INSTANCE_ID_FIELD_NUMBER = 1;
    private volatile java.lang.Object agentInstanceId_;
    /**
     * string agent_instance_id = 1;
     * @return The agentInstanceId.
     */
    @java.lang.Override
    public java.lang.String getAgentInstanceId() {
      java.lang.Object ref = agentInstanceId_;
      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();
        agentInstanceId_ = s;
        return s;
      }
    }
    /**
     * string agent_instance_id = 1;
     * @return The bytes for agentInstanceId.
     */
    @java.lang.Override
    public com.google.protobuf.ByteString
        getAgentInstanceIdBytes() {
      java.lang.Object ref = agentInstanceId_;
      if (ref instanceof java.lang.String) {
        com.google.protobuf.ByteString b = 
            com.google.protobuf.ByteString.copyFromUtf8(
                (java.lang.String) ref);
        agentInstanceId_ = b;
        return b;
      } else {
        return (com.google.protobuf.ByteString) ref;
      }
    }

    public static final int STATUS_FIELD_NUMBER = 2;
    private int status_;
    /**
     * .yandex.cloud.loadtesting.agent.v1.ClaimAgentStatusRequest.Status status = 2;
     * @return The enum numeric value on the wire for status.
     */
    @java.lang.Override public int getStatusValue() {
      return status_;
    }
    /**
     * .yandex.cloud.loadtesting.agent.v1.ClaimAgentStatusRequest.Status status = 2;
     * @return The status.
     */
    @java.lang.Override public yandex.cloud.api.loadtesting.agent.v1.AgentServiceOuterClass.ClaimAgentStatusRequest.Status getStatus() {
      @SuppressWarnings("deprecation")
      yandex.cloud.api.loadtesting.agent.v1.AgentServiceOuterClass.ClaimAgentStatusRequest.Status result = yandex.cloud.api.loadtesting.agent.v1.AgentServiceOuterClass.ClaimAgentStatusRequest.Status.valueOf(status_);
      return result == null ? yandex.cloud.api.loadtesting.agent.v1.AgentServiceOuterClass.ClaimAgentStatusRequest.Status.UNRECOGNIZED : result;
    }

    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 (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(agentInstanceId_)) {
        com.google.protobuf.GeneratedMessageV3.writeString(output, 1, agentInstanceId_);
      }
      if (status_ != yandex.cloud.api.loadtesting.agent.v1.AgentServiceOuterClass.ClaimAgentStatusRequest.Status.STATUS_UNSPECIFIED.getNumber()) {
        output.writeEnum(2, status_);
      }
      unknownFields.writeTo(output);
    }

    @java.lang.Override
    public int getSerializedSize() {
      int size = memoizedSize;
      if (size != -1) return size;

      size = 0;
      if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(agentInstanceId_)) {
        size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, agentInstanceId_);
      }
      if (status_ != yandex.cloud.api.loadtesting.agent.v1.AgentServiceOuterClass.ClaimAgentStatusRequest.Status.STATUS_UNSPECIFIED.getNumber()) {
        size += com.google.protobuf.CodedOutputStream
          .computeEnumSize(2, status_);
      }
      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 yandex.cloud.api.loadtesting.agent.v1.AgentServiceOuterClass.ClaimAgentStatusRequest)) {
        return super.equals(obj);
      }
      yandex.cloud.api.loadtesting.agent.v1.AgentServiceOuterClass.ClaimAgentStatusRequest other = (yandex.cloud.api.loadtesting.agent.v1.AgentServiceOuterClass.ClaimAgentStatusRequest) obj;

      if (!getAgentInstanceId()
          .equals(other.getAgentInstanceId())) return false;
      if (status_ != other.status_) 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();
      hash = (37 * hash) + AGENT_INSTANCE_ID_FIELD_NUMBER;
      hash = (53 * hash) + getAgentInstanceId().hashCode();
      hash = (37 * hash) + STATUS_FIELD_NUMBER;
      hash = (53 * hash) + status_;
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static yandex.cloud.api.loadtesting.agent.v1.AgentServiceOuterClass.ClaimAgentStatusRequest parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static yandex.cloud.api.loadtesting.agent.v1.AgentServiceOuterClass.ClaimAgentStatusRequest parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static yandex.cloud.api.loadtesting.agent.v1.AgentServiceOuterClass.ClaimAgentStatusRequest parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static yandex.cloud.api.loadtesting.agent.v1.AgentServiceOuterClass.ClaimAgentStatusRequest parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static yandex.cloud.api.loadtesting.agent.v1.AgentServiceOuterClass.ClaimAgentStatusRequest parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static yandex.cloud.api.loadtesting.agent.v1.AgentServiceOuterClass.ClaimAgentStatusRequest parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static yandex.cloud.api.loadtesting.agent.v1.AgentServiceOuterClass.ClaimAgentStatusRequest parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static yandex.cloud.api.loadtesting.agent.v1.AgentServiceOuterClass.ClaimAgentStatusRequest 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 yandex.cloud.api.loadtesting.agent.v1.AgentServiceOuterClass.ClaimAgentStatusRequest parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static yandex.cloud.api.loadtesting.agent.v1.AgentServiceOuterClass.ClaimAgentStatusRequest 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 yandex.cloud.api.loadtesting.agent.v1.AgentServiceOuterClass.ClaimAgentStatusRequest parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static yandex.cloud.api.loadtesting.agent.v1.AgentServiceOuterClass.ClaimAgentStatusRequest 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(yandex.cloud.api.loadtesting.agent.v1.AgentServiceOuterClass.ClaimAgentStatusRequest 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 yandex.cloud.loadtesting.agent.v1.ClaimAgentStatusRequest}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder implements
        // @@protoc_insertion_point(builder_implements:yandex.cloud.loadtesting.agent.v1.ClaimAgentStatusRequest)
        yandex.cloud.api.loadtesting.agent.v1.AgentServiceOuterClass.ClaimAgentStatusRequestOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return yandex.cloud.api.loadtesting.agent.v1.AgentServiceOuterClass.internal_static_yandex_cloud_loadtesting_agent_v1_ClaimAgentStatusRequest_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return yandex.cloud.api.loadtesting.agent.v1.AgentServiceOuterClass.internal_static_yandex_cloud_loadtesting_agent_v1_ClaimAgentStatusRequest_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                yandex.cloud.api.loadtesting.agent.v1.AgentServiceOuterClass.ClaimAgentStatusRequest.class, yandex.cloud.api.loadtesting.agent.v1.AgentServiceOuterClass.ClaimAgentStatusRequest.Builder.class);
      }

      // Construct using yandex.cloud.api.loadtesting.agent.v1.AgentServiceOuterClass.ClaimAgentStatusRequest.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();
        agentInstanceId_ = "";

        status_ = 0;

        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return yandex.cloud.api.loadtesting.agent.v1.AgentServiceOuterClass.internal_static_yandex_cloud_loadtesting_agent_v1_ClaimAgentStatusRequest_descriptor;
      }

      @java.lang.Override
      public yandex.cloud.api.loadtesting.agent.v1.AgentServiceOuterClass.ClaimAgentStatusRequest getDefaultInstanceForType() {
        return yandex.cloud.api.loadtesting.agent.v1.AgentServiceOuterClass.ClaimAgentStatusRequest.getDefaultInstance();
      }

      @java.lang.Override
      public yandex.cloud.api.loadtesting.agent.v1.AgentServiceOuterClass.ClaimAgentStatusRequest build() {
        yandex.cloud.api.loadtesting.agent.v1.AgentServiceOuterClass.ClaimAgentStatusRequest result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public yandex.cloud.api.loadtesting.agent.v1.AgentServiceOuterClass.ClaimAgentStatusRequest buildPartial() {
        yandex.cloud.api.loadtesting.agent.v1.AgentServiceOuterClass.ClaimAgentStatusRequest result = new yandex.cloud.api.loadtesting.agent.v1.AgentServiceOuterClass.ClaimAgentStatusRequest(this);
        result.agentInstanceId_ = agentInstanceId_;
        result.status_ = status_;
        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 yandex.cloud.api.loadtesting.agent.v1.AgentServiceOuterClass.ClaimAgentStatusRequest) {
          return mergeFrom((yandex.cloud.api.loadtesting.agent.v1.AgentServiceOuterClass.ClaimAgentStatusRequest)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(yandex.cloud.api.loadtesting.agent.v1.AgentServiceOuterClass.ClaimAgentStatusRequest other) {
        if (other == yandex.cloud.api.loadtesting.agent.v1.AgentServiceOuterClass.ClaimAgentStatusRequest.getDefaultInstance()) return this;
        if (!other.getAgentInstanceId().isEmpty()) {
          agentInstanceId_ = other.agentInstanceId_;
          onChanged();
        }
        if (other.status_ != 0) {
          setStatusValue(other.getStatusValue());
        }
        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 {
        yandex.cloud.api.loadtesting.agent.v1.AgentServiceOuterClass.ClaimAgentStatusRequest parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (yandex.cloud.api.loadtesting.agent.v1.AgentServiceOuterClass.ClaimAgentStatusRequest) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }

      private java.lang.Object agentInstanceId_ = "";
      /**
       * string agent_instance_id = 1;
       * @return The agentInstanceId.
       */
      public java.lang.String getAgentInstanceId() {
        java.lang.Object ref = agentInstanceId_;
        if (!(ref instanceof java.lang.String)) {
          com.google.protobuf.ByteString bs =
              (com.google.protobuf.ByteString) ref;
          java.lang.String s = bs.toStringUtf8();
          agentInstanceId_ = s;
          return s;
        } else {
          return (java.lang.String) ref;
        }
      }
      /**
       * string agent_instance_id = 1;
       * @return The bytes for agentInstanceId.
       */
      public com.google.protobuf.ByteString
          getAgentInstanceIdBytes() {
        java.lang.Object ref = agentInstanceId_;
        if (ref instanceof String) {
          com.google.protobuf.ByteString b = 
              com.google.protobuf.ByteString.copyFromUtf8(
                  (java.lang.String) ref);
          agentInstanceId_ = b;
          return b;
        } else {
          return (com.google.protobuf.ByteString) ref;
        }
      }
      /**
       * string agent_instance_id = 1;
       * @param value The agentInstanceId to set.
       * @return This builder for chaining.
       */
      public Builder setAgentInstanceId(
          java.lang.String value) {
        if (value == null) {
    throw new NullPointerException();
  }
  
        agentInstanceId_ = value;
        onChanged();
        return this;
      }
      /**
       * string agent_instance_id = 1;
       * @return This builder for chaining.
       */
      public Builder clearAgentInstanceId() {
        
        agentInstanceId_ = getDefaultInstance().getAgentInstanceId();
        onChanged();
        return this;
      }
      /**
       * string agent_instance_id = 1;
       * @param value The bytes for agentInstanceId to set.
       * @return This builder for chaining.
       */
      public Builder setAgentInstanceIdBytes(
          com.google.protobuf.ByteString value) {
        if (value == null) {
    throw new NullPointerException();
  }
  checkByteStringIsUtf8(value);
        
        agentInstanceId_ = value;
        onChanged();
        return this;
      }

      private int status_ = 0;
      /**
       * .yandex.cloud.loadtesting.agent.v1.ClaimAgentStatusRequest.Status status = 2;
       * @return The enum numeric value on the wire for status.
       */
      @java.lang.Override public int getStatusValue() {
        return status_;
      }
      /**
       * .yandex.cloud.loadtesting.agent.v1.ClaimAgentStatusRequest.Status status = 2;
       * @param value The enum numeric value on the wire for status to set.
       * @return This builder for chaining.
       */
      public Builder setStatusValue(int value) {
        
        status_ = value;
        onChanged();
        return this;
      }
      /**
       * .yandex.cloud.loadtesting.agent.v1.ClaimAgentStatusRequest.Status status = 2;
       * @return The status.
       */
      @java.lang.Override
      public yandex.cloud.api.loadtesting.agent.v1.AgentServiceOuterClass.ClaimAgentStatusRequest.Status getStatus() {
        @SuppressWarnings("deprecation")
        yandex.cloud.api.loadtesting.agent.v1.AgentServiceOuterClass.ClaimAgentStatusRequest.Status result = yandex.cloud.api.loadtesting.agent.v1.AgentServiceOuterClass.ClaimAgentStatusRequest.Status.valueOf(status_);
        return result == null ? yandex.cloud.api.loadtesting.agent.v1.AgentServiceOuterClass.ClaimAgentStatusRequest.Status.UNRECOGNIZED : result;
      }
      /**
       * .yandex.cloud.loadtesting.agent.v1.ClaimAgentStatusRequest.Status status = 2;
       * @param value The status to set.
       * @return This builder for chaining.
       */
      public Builder setStatus(yandex.cloud.api.loadtesting.agent.v1.AgentServiceOuterClass.ClaimAgentStatusRequest.Status value) {
        if (value == null) {
          throw new NullPointerException();
        }
        
        status_ = value.getNumber();
        onChanged();
        return this;
      }
      /**
       * .yandex.cloud.loadtesting.agent.v1.ClaimAgentStatusRequest.Status status = 2;
       * @return This builder for chaining.
       */
      public Builder clearStatus() {
        
        status_ = 0;
        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:yandex.cloud.loadtesting.agent.v1.ClaimAgentStatusRequest)
    }

    // @@protoc_insertion_point(class_scope:yandex.cloud.loadtesting.agent.v1.ClaimAgentStatusRequest)
    private static final yandex.cloud.api.loadtesting.agent.v1.AgentServiceOuterClass.ClaimAgentStatusRequest DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new yandex.cloud.api.loadtesting.agent.v1.AgentServiceOuterClass.ClaimAgentStatusRequest();
    }

    public static yandex.cloud.api.loadtesting.agent.v1.AgentServiceOuterClass.ClaimAgentStatusRequest getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static final com.google.protobuf.Parser
        PARSER = new com.google.protobuf.AbstractParser() {
      @java.lang.Override
      public ClaimAgentStatusRequest parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return new ClaimAgentStatusRequest(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 yandex.cloud.api.loadtesting.agent.v1.AgentServiceOuterClass.ClaimAgentStatusRequest getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  public interface ClaimAgentStatusResponseOrBuilder extends
      // @@protoc_insertion_point(interface_extends:yandex.cloud.loadtesting.agent.v1.ClaimAgentStatusResponse)
      com.google.protobuf.MessageOrBuilder {

    /**
     * int64 code = 1;
     * @return The code.
     */
    long getCode();
  }
  /**
   * Protobuf type {@code yandex.cloud.loadtesting.agent.v1.ClaimAgentStatusResponse}
   */
  public static final class ClaimAgentStatusResponse extends
      com.google.protobuf.GeneratedMessageV3 implements
      // @@protoc_insertion_point(message_implements:yandex.cloud.loadtesting.agent.v1.ClaimAgentStatusResponse)
      ClaimAgentStatusResponseOrBuilder {
  private static final long serialVersionUID = 0L;
    // Use ClaimAgentStatusResponse.newBuilder() to construct.
    private ClaimAgentStatusResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) {
      super(builder);
    }
    private ClaimAgentStatusResponse() {
    }

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

    @java.lang.Override
    public final com.google.protobuf.UnknownFieldSet
    getUnknownFields() {
      return this.unknownFields;
    }
    private ClaimAgentStatusResponse(
        com.google.protobuf.CodedInputStream input,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      this();
      if (extensionRegistry == null) {
        throw new java.lang.NullPointerException();
      }
      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: {

              code_ = input.readInt64();
              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 yandex.cloud.api.loadtesting.agent.v1.AgentServiceOuterClass.internal_static_yandex_cloud_loadtesting_agent_v1_ClaimAgentStatusResponse_descriptor;
    }

    @java.lang.Override
    protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
        internalGetFieldAccessorTable() {
      return yandex.cloud.api.loadtesting.agent.v1.AgentServiceOuterClass.internal_static_yandex_cloud_loadtesting_agent_v1_ClaimAgentStatusResponse_fieldAccessorTable
          .ensureFieldAccessorsInitialized(
              yandex.cloud.api.loadtesting.agent.v1.AgentServiceOuterClass.ClaimAgentStatusResponse.class, yandex.cloud.api.loadtesting.agent.v1.AgentServiceOuterClass.ClaimAgentStatusResponse.Builder.class);
    }

    public static final int CODE_FIELD_NUMBER = 1;
    private long code_;
    /**
     * int64 code = 1;
     * @return The code.
     */
    @java.lang.Override
    public long getCode() {
      return code_;
    }

    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 (code_ != 0L) {
        output.writeInt64(1, code_);
      }
      unknownFields.writeTo(output);
    }

    @java.lang.Override
    public int getSerializedSize() {
      int size = memoizedSize;
      if (size != -1) return size;

      size = 0;
      if (code_ != 0L) {
        size += com.google.protobuf.CodedOutputStream
          .computeInt64Size(1, code_);
      }
      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 yandex.cloud.api.loadtesting.agent.v1.AgentServiceOuterClass.ClaimAgentStatusResponse)) {
        return super.equals(obj);
      }
      yandex.cloud.api.loadtesting.agent.v1.AgentServiceOuterClass.ClaimAgentStatusResponse other = (yandex.cloud.api.loadtesting.agent.v1.AgentServiceOuterClass.ClaimAgentStatusResponse) obj;

      if (getCode()
          != other.getCode()) 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();
      hash = (37 * hash) + CODE_FIELD_NUMBER;
      hash = (53 * hash) + com.google.protobuf.Internal.hashLong(
          getCode());
      hash = (29 * hash) + unknownFields.hashCode();
      memoizedHashCode = hash;
      return hash;
    }

    public static yandex.cloud.api.loadtesting.agent.v1.AgentServiceOuterClass.ClaimAgentStatusResponse parseFrom(
        java.nio.ByteBuffer data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static yandex.cloud.api.loadtesting.agent.v1.AgentServiceOuterClass.ClaimAgentStatusResponse parseFrom(
        java.nio.ByteBuffer data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static yandex.cloud.api.loadtesting.agent.v1.AgentServiceOuterClass.ClaimAgentStatusResponse parseFrom(
        com.google.protobuf.ByteString data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static yandex.cloud.api.loadtesting.agent.v1.AgentServiceOuterClass.ClaimAgentStatusResponse parseFrom(
        com.google.protobuf.ByteString data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static yandex.cloud.api.loadtesting.agent.v1.AgentServiceOuterClass.ClaimAgentStatusResponse parseFrom(byte[] data)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data);
    }
    public static yandex.cloud.api.loadtesting.agent.v1.AgentServiceOuterClass.ClaimAgentStatusResponse parseFrom(
        byte[] data,
        com.google.protobuf.ExtensionRegistryLite extensionRegistry)
        throws com.google.protobuf.InvalidProtocolBufferException {
      return PARSER.parseFrom(data, extensionRegistry);
    }
    public static yandex.cloud.api.loadtesting.agent.v1.AgentServiceOuterClass.ClaimAgentStatusResponse parseFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static yandex.cloud.api.loadtesting.agent.v1.AgentServiceOuterClass.ClaimAgentStatusResponse 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 yandex.cloud.api.loadtesting.agent.v1.AgentServiceOuterClass.ClaimAgentStatusResponse parseDelimitedFrom(java.io.InputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseDelimitedWithIOException(PARSER, input);
    }
    public static yandex.cloud.api.loadtesting.agent.v1.AgentServiceOuterClass.ClaimAgentStatusResponse 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 yandex.cloud.api.loadtesting.agent.v1.AgentServiceOuterClass.ClaimAgentStatusResponse parseFrom(
        com.google.protobuf.CodedInputStream input)
        throws java.io.IOException {
      return com.google.protobuf.GeneratedMessageV3
          .parseWithIOException(PARSER, input);
    }
    public static yandex.cloud.api.loadtesting.agent.v1.AgentServiceOuterClass.ClaimAgentStatusResponse 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(yandex.cloud.api.loadtesting.agent.v1.AgentServiceOuterClass.ClaimAgentStatusResponse 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 yandex.cloud.loadtesting.agent.v1.ClaimAgentStatusResponse}
     */
    public static final class Builder extends
        com.google.protobuf.GeneratedMessageV3.Builder implements
        // @@protoc_insertion_point(builder_implements:yandex.cloud.loadtesting.agent.v1.ClaimAgentStatusResponse)
        yandex.cloud.api.loadtesting.agent.v1.AgentServiceOuterClass.ClaimAgentStatusResponseOrBuilder {
      public static final com.google.protobuf.Descriptors.Descriptor
          getDescriptor() {
        return yandex.cloud.api.loadtesting.agent.v1.AgentServiceOuterClass.internal_static_yandex_cloud_loadtesting_agent_v1_ClaimAgentStatusResponse_descriptor;
      }

      @java.lang.Override
      protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
          internalGetFieldAccessorTable() {
        return yandex.cloud.api.loadtesting.agent.v1.AgentServiceOuterClass.internal_static_yandex_cloud_loadtesting_agent_v1_ClaimAgentStatusResponse_fieldAccessorTable
            .ensureFieldAccessorsInitialized(
                yandex.cloud.api.loadtesting.agent.v1.AgentServiceOuterClass.ClaimAgentStatusResponse.class, yandex.cloud.api.loadtesting.agent.v1.AgentServiceOuterClass.ClaimAgentStatusResponse.Builder.class);
      }

      // Construct using yandex.cloud.api.loadtesting.agent.v1.AgentServiceOuterClass.ClaimAgentStatusResponse.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();
        code_ = 0L;

        return this;
      }

      @java.lang.Override
      public com.google.protobuf.Descriptors.Descriptor
          getDescriptorForType() {
        return yandex.cloud.api.loadtesting.agent.v1.AgentServiceOuterClass.internal_static_yandex_cloud_loadtesting_agent_v1_ClaimAgentStatusResponse_descriptor;
      }

      @java.lang.Override
      public yandex.cloud.api.loadtesting.agent.v1.AgentServiceOuterClass.ClaimAgentStatusResponse getDefaultInstanceForType() {
        return yandex.cloud.api.loadtesting.agent.v1.AgentServiceOuterClass.ClaimAgentStatusResponse.getDefaultInstance();
      }

      @java.lang.Override
      public yandex.cloud.api.loadtesting.agent.v1.AgentServiceOuterClass.ClaimAgentStatusResponse build() {
        yandex.cloud.api.loadtesting.agent.v1.AgentServiceOuterClass.ClaimAgentStatusResponse result = buildPartial();
        if (!result.isInitialized()) {
          throw newUninitializedMessageException(result);
        }
        return result;
      }

      @java.lang.Override
      public yandex.cloud.api.loadtesting.agent.v1.AgentServiceOuterClass.ClaimAgentStatusResponse buildPartial() {
        yandex.cloud.api.loadtesting.agent.v1.AgentServiceOuterClass.ClaimAgentStatusResponse result = new yandex.cloud.api.loadtesting.agent.v1.AgentServiceOuterClass.ClaimAgentStatusResponse(this);
        result.code_ = code_;
        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 yandex.cloud.api.loadtesting.agent.v1.AgentServiceOuterClass.ClaimAgentStatusResponse) {
          return mergeFrom((yandex.cloud.api.loadtesting.agent.v1.AgentServiceOuterClass.ClaimAgentStatusResponse)other);
        } else {
          super.mergeFrom(other);
          return this;
        }
      }

      public Builder mergeFrom(yandex.cloud.api.loadtesting.agent.v1.AgentServiceOuterClass.ClaimAgentStatusResponse other) {
        if (other == yandex.cloud.api.loadtesting.agent.v1.AgentServiceOuterClass.ClaimAgentStatusResponse.getDefaultInstance()) return this;
        if (other.getCode() != 0L) {
          setCode(other.getCode());
        }
        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 {
        yandex.cloud.api.loadtesting.agent.v1.AgentServiceOuterClass.ClaimAgentStatusResponse parsedMessage = null;
        try {
          parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry);
        } catch (com.google.protobuf.InvalidProtocolBufferException e) {
          parsedMessage = (yandex.cloud.api.loadtesting.agent.v1.AgentServiceOuterClass.ClaimAgentStatusResponse) e.getUnfinishedMessage();
          throw e.unwrapIOException();
        } finally {
          if (parsedMessage != null) {
            mergeFrom(parsedMessage);
          }
        }
        return this;
      }

      private long code_ ;
      /**
       * int64 code = 1;
       * @return The code.
       */
      @java.lang.Override
      public long getCode() {
        return code_;
      }
      /**
       * int64 code = 1;
       * @param value The code to set.
       * @return This builder for chaining.
       */
      public Builder setCode(long value) {
        
        code_ = value;
        onChanged();
        return this;
      }
      /**
       * int64 code = 1;
       * @return This builder for chaining.
       */
      public Builder clearCode() {
        
        code_ = 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:yandex.cloud.loadtesting.agent.v1.ClaimAgentStatusResponse)
    }

    // @@protoc_insertion_point(class_scope:yandex.cloud.loadtesting.agent.v1.ClaimAgentStatusResponse)
    private static final yandex.cloud.api.loadtesting.agent.v1.AgentServiceOuterClass.ClaimAgentStatusResponse DEFAULT_INSTANCE;
    static {
      DEFAULT_INSTANCE = new yandex.cloud.api.loadtesting.agent.v1.AgentServiceOuterClass.ClaimAgentStatusResponse();
    }

    public static yandex.cloud.api.loadtesting.agent.v1.AgentServiceOuterClass.ClaimAgentStatusResponse getDefaultInstance() {
      return DEFAULT_INSTANCE;
    }

    private static final com.google.protobuf.Parser
        PARSER = new com.google.protobuf.AbstractParser() {
      @java.lang.Override
      public ClaimAgentStatusResponse parsePartialFrom(
          com.google.protobuf.CodedInputStream input,
          com.google.protobuf.ExtensionRegistryLite extensionRegistry)
          throws com.google.protobuf.InvalidProtocolBufferException {
        return new ClaimAgentStatusResponse(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 yandex.cloud.api.loadtesting.agent.v1.AgentServiceOuterClass.ClaimAgentStatusResponse getDefaultInstanceForType() {
      return DEFAULT_INSTANCE;
    }

  }

  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_yandex_cloud_loadtesting_agent_v1_ClaimAgentStatusRequest_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_yandex_cloud_loadtesting_agent_v1_ClaimAgentStatusRequest_fieldAccessorTable;
  private static final com.google.protobuf.Descriptors.Descriptor
    internal_static_yandex_cloud_loadtesting_agent_v1_ClaimAgentStatusResponse_descriptor;
  private static final 
    com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
      internal_static_yandex_cloud_loadtesting_agent_v1_ClaimAgentStatusResponse_fieldAccessorTable;

  public static com.google.protobuf.Descriptors.FileDescriptor
      getDescriptor() {
    return descriptor;
  }
  private static  com.google.protobuf.Descriptors.FileDescriptor
      descriptor;
  static {
    java.lang.String[] descriptorData = {
      "\n5yandex/cloud/loadtesting/agent/v1/agen" +
      "t_service.proto\022!yandex.cloud.loadtestin" +
      "g.agent.v1\032\034google/api/annotations.proto" +
      "\"\226\002\n\027ClaimAgentStatusRequest\022\031\n\021agent_in" +
      "stance_id\030\001 \001(\t\022Q\n\006status\030\002 \001(\0162A.yandex" +
      ".cloud.loadtesting.agent.v1.ClaimAgentSt" +
      "atusRequest.Status\"\214\001\n\006Status\022\026\n\022STATUS_" +
      "UNSPECIFIED\020\000\022\022\n\016READY_FOR_TEST\020\001\022\022\n\016PRE" +
      "PARING_TEST\020\002\022\013\n\007TESTING\020\003\022\017\n\013TANK_FAILE" +
      "D\020\004\022\013\n\007STOPPED\020\005\022\027\n\023UPLOADING_ARTIFACTS\020" +
      "\006\"(\n\030ClaimAgentStatusResponse\022\014\n\004code\030\001 " +
      "\001(\0032\340\001\n\014AgentService\022\317\001\n\013ClaimStatus\022:.y" +
      "andex.cloud.loadtesting.agent.v1.ClaimAg" +
      "entStatusRequest\032;.yandex.cloud.loadtest" +
      "ing.agent.v1.ClaimAgentStatusResponse\"G\202" +
      "\323\344\223\002A\"




© 2015 - 2025 Weber Informatics LLC | Privacy Policy